1 #!/bin/bash 2 # 3 # ########################################################## 4 # ### THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT. ### 5 # ########################################################## 6 # 7 #! /bin/sh 8 # Guess values for system-dependent variables and create Makefiles. 9 # Generated by GNU Autoconf 2.69 for OpenJDK jdk9. 10 # 11 # Report bugs to <build-dev@openjdk.java.net>. 12 # 13 # 14 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc. 15 # 16 # 17 # This configure script is free software; the Free Software Foundation 18 # gives unlimited permission to copy, distribute and modify it. 19 ## -------------------- ## 20 ## M4sh Initialization. ## 21 ## -------------------- ## 22 23 # Be more Bourne compatible 24 DUALCASE=1; export DUALCASE # for MKS sh 25 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 26 emulate sh 27 NULLCMD=: 28 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 29 # is contrary to our usage. Disable this feature. 30 alias -g '${1+"$@"}'='"$@"' 31 setopt NO_GLOB_SUBST 32 else 33 case `(set -o) 2>/dev/null` in #( 34 *posix*) : 35 set -o posix ;; #( 36 *) : 37 ;; 38 esac 39 fi 40 41 42 as_nl=' 43 ' 44 export as_nl 45 # Printing a long string crashes Solaris 7 /usr/bin/printf. 46 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 47 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 48 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 49 # Prefer a ksh shell builtin over an external printf program on Solaris, 50 # but without wasting forks for bash or zsh. 51 if test -z "$BASH_VERSION$ZSH_VERSION" \ 52 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 53 as_echo='print -r --' 54 as_echo_n='print -rn --' 55 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 56 as_echo='printf %s\n' 57 as_echo_n='printf %s' 58 else 59 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 60 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 61 as_echo_n='/usr/ucb/echo -n' 62 else 63 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 64 as_echo_n_body='eval 65 arg=$1; 66 case $arg in #( 67 *"$as_nl"*) 68 expr "X$arg" : "X\\(.*\\)$as_nl"; 69 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 70 esac; 71 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 72 ' 73 export as_echo_n_body 74 as_echo_n='sh -c $as_echo_n_body as_echo' 75 fi 76 export as_echo_body 77 as_echo='sh -c $as_echo_body as_echo' 78 fi 79 80 # The user is always right. 81 if test "${PATH_SEPARATOR+set}" != set; then 82 PATH_SEPARATOR=: 83 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 84 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 85 PATH_SEPARATOR=';' 86 } 87 fi 88 89 90 # IFS 91 # We need space, tab and new line, in precisely that order. Quoting is 92 # there to prevent editors from complaining about space-tab. 93 # (If _AS_PATH_WALK were called with IFS unset, it would disable word 94 # splitting by setting IFS to empty value.) 95 IFS=" "" $as_nl" 96 97 # Find who we are. Look in the path if we contain no directory separator. 98 as_myself= 99 case $0 in #(( 100 *[\\/]* ) as_myself=$0 ;; 101 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 102 for as_dir in $PATH 103 do 104 IFS=$as_save_IFS 105 test -z "$as_dir" && as_dir=. 106 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 107 done 108 IFS=$as_save_IFS 109 110 ;; 111 esac 112 # We did not find ourselves, most probably we were run as `sh COMMAND' 113 # in which case we are not to be found in the path. 114 if test "x$as_myself" = x; then 115 as_myself=$0 116 fi 117 if test ! -f "$as_myself"; then 118 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 119 exit 1 120 fi 121 122 # Unset variables that we do not need and which cause bugs (e.g. in 123 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 124 # suppresses any "Segmentation fault" message there. '((' could 125 # trigger a bug in pdksh 5.2.14. 126 for as_var in BASH_ENV ENV MAIL MAILPATH 127 do eval test x\${$as_var+set} = xset \ 128 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 129 done 130 PS1='$ ' 131 PS2='> ' 132 PS4='+ ' 133 134 # NLS nuisances. 135 LC_ALL=C 136 export LC_ALL 137 LANGUAGE=C 138 export LANGUAGE 139 140 # CDPATH. 141 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH 142 143 # Use a proper internal environment variable to ensure we don't fall 144 # into an infinite loop, continuously re-executing ourselves. 145 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then 146 _as_can_reexec=no; export _as_can_reexec; 147 # We cannot yet assume a decent shell, so we have to provide a 148 # neutralization value for shells without unset; and this also 149 # works around shells that cannot unset nonexistent variables. 150 # Preserve -v and -x to the replacement shell. 151 BASH_ENV=/dev/null 152 ENV=/dev/null 153 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 154 case $- in # (((( 155 *v*x* | *x*v* ) as_opts=-vx ;; 156 *v* ) as_opts=-v ;; 157 *x* ) as_opts=-x ;; 158 * ) as_opts= ;; 159 esac 160 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 161 # Admittedly, this is quite paranoid, since all the known shells bail 162 # out after a failed `exec'. 163 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 164 as_fn_exit 255 165 fi 166 # We don't want this to propagate to other subprocesses. 167 { _as_can_reexec=; unset _as_can_reexec;} 168 if test "x$CONFIG_SHELL" = x; then 169 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : 170 emulate sh 171 NULLCMD=: 172 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which 173 # is contrary to our usage. Disable this feature. 174 alias -g '\${1+\"\$@\"}'='\"\$@\"' 175 setopt NO_GLOB_SUBST 176 else 177 case \`(set -o) 2>/dev/null\` in #( 178 *posix*) : 179 set -o posix ;; #( 180 *) : 181 ;; 182 esac 183 fi 184 " 185 as_required="as_fn_return () { (exit \$1); } 186 as_fn_success () { as_fn_return 0; } 187 as_fn_failure () { as_fn_return 1; } 188 as_fn_ret_success () { return 0; } 189 as_fn_ret_failure () { return 1; } 190 191 exitcode=0 192 as_fn_success || { exitcode=1; echo as_fn_success failed.; } 193 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } 194 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } 195 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } 196 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : 197 198 else 199 exitcode=1; echo positional parameters were not saved. 200 fi 201 test x\$exitcode = x0 || exit 1 202 test -x / || exit 1" 203 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO 204 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO 205 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && 206 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 207 test \$(( 1 + 1 )) = 2 || exit 1" 208 if (eval "$as_required") 2>/dev/null; then : 209 as_have_required=yes 210 else 211 as_have_required=no 212 fi 213 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : 214 215 else 216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 217 as_found=false 218 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 219 do 220 IFS=$as_save_IFS 221 test -z "$as_dir" && as_dir=. 222 as_found=: 223 case $as_dir in #( 224 /*) 225 for as_base in sh bash ksh sh5; do 226 # Try only shells that exist, to save several forks. 227 as_shell=$as_dir/$as_base 228 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 229 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : 230 CONFIG_SHELL=$as_shell as_have_required=yes 231 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : 232 break 2 233 fi 234 fi 235 done;; 236 esac 237 as_found=false 238 done 239 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && 240 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : 241 CONFIG_SHELL=$SHELL as_have_required=yes 242 fi; } 243 IFS=$as_save_IFS 244 245 246 if test "x$CONFIG_SHELL" != x; then : 247 export CONFIG_SHELL 248 # We cannot yet assume a decent shell, so we have to provide a 249 # neutralization value for shells without unset; and this also 250 # works around shells that cannot unset nonexistent variables. 251 # Preserve -v and -x to the replacement shell. 252 BASH_ENV=/dev/null 253 ENV=/dev/null 254 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 255 case $- in # (((( 256 *v*x* | *x*v* ) as_opts=-vx ;; 257 *v* ) as_opts=-v ;; 258 *x* ) as_opts=-x ;; 259 * ) as_opts= ;; 260 esac 261 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 262 # Admittedly, this is quite paranoid, since all the known shells bail 263 # out after a failed `exec'. 264 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 265 exit 255 266 fi 267 268 if test x$as_have_required = xno; then : 269 $as_echo "$0: This script requires a shell more modern than all" 270 $as_echo "$0: the shells that I found on your system." 271 if test x${ZSH_VERSION+set} = xset ; then 272 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" 273 $as_echo "$0: be upgraded to zsh 4.3.4 or later." 274 else 275 $as_echo "$0: Please tell bug-autoconf@gnu.org and 276 $0: build-dev@openjdk.java.net about your system, including 277 $0: any error possibly output before this message. Then 278 $0: install a modern shell, or manually run the script 279 $0: under such a shell if you do have one." 280 fi 281 exit 1 282 fi 283 fi 284 fi 285 SHELL=${CONFIG_SHELL-/bin/sh} 286 export SHELL 287 # Unset more variables known to interfere with behavior of common tools. 288 CLICOLOR_FORCE= GREP_OPTIONS= 289 unset CLICOLOR_FORCE GREP_OPTIONS 290 291 ## --------------------- ## 292 ## M4sh Shell Functions. ## 293 ## --------------------- ## 294 # as_fn_unset VAR 295 # --------------- 296 # Portably unset VAR. 297 as_fn_unset () 298 { 299 { eval $1=; unset $1;} 300 } 301 as_unset=as_fn_unset 302 303 # as_fn_set_status STATUS 304 # ----------------------- 305 # Set $? to STATUS, without forking. 306 as_fn_set_status () 307 { 308 return $1 309 } # as_fn_set_status 310 311 # as_fn_exit STATUS 312 # ----------------- 313 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 314 as_fn_exit () 315 { 316 set +e 317 as_fn_set_status $1 318 exit $1 319 } # as_fn_exit 320 321 # as_fn_mkdir_p 322 # ------------- 323 # Create "$as_dir" as a directory, including parents if necessary. 324 as_fn_mkdir_p () 325 { 326 327 case $as_dir in #( 328 -*) as_dir=./$as_dir;; 329 esac 330 test -d "$as_dir" || eval $as_mkdir_p || { 331 as_dirs= 332 while :; do 333 case $as_dir in #( 334 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 335 *) as_qdir=$as_dir;; 336 esac 337 as_dirs="'$as_qdir' $as_dirs" 338 as_dir=`$as_dirname -- "$as_dir" || 339 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 340 X"$as_dir" : 'X\(//\)[^/]' \| \ 341 X"$as_dir" : 'X\(//\)$' \| \ 342 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 343 $as_echo X"$as_dir" | 344 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 345 s//\1/ 346 q 347 } 348 /^X\(\/\/\)[^/].*/{ 349 s//\1/ 350 q 351 } 352 /^X\(\/\/\)$/{ 353 s//\1/ 354 q 355 } 356 /^X\(\/\).*/{ 357 s//\1/ 358 q 359 } 360 s/.*/./; q'` 361 test -d "$as_dir" && break 362 done 363 test -z "$as_dirs" || eval "mkdir $as_dirs" 364 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 365 366 367 } # as_fn_mkdir_p 368 369 # as_fn_executable_p FILE 370 # ----------------------- 371 # Test if FILE is an executable regular file. 372 as_fn_executable_p () 373 { 374 test -f "$1" && test -x "$1" 375 } # as_fn_executable_p 376 # as_fn_append VAR VALUE 377 # ---------------------- 378 # Append the text in VALUE to the end of the definition contained in VAR. Take 379 # advantage of any shell optimizations that allow amortized linear growth over 380 # repeated appends, instead of the typical quadratic growth present in naive 381 # implementations. 382 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 383 eval 'as_fn_append () 384 { 385 eval $1+=\$2 386 }' 387 else 388 as_fn_append () 389 { 390 eval $1=\$$1\$2 391 } 392 fi # as_fn_append 393 394 # as_fn_arith ARG... 395 # ------------------ 396 # Perform arithmetic evaluation on the ARGs, and store the result in the 397 # global $as_val. Take advantage of shells that can avoid forks. The arguments 398 # must be portable across $(()) and expr. 399 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 400 eval 'as_fn_arith () 401 { 402 as_val=$(( $* )) 403 }' 404 else 405 as_fn_arith () 406 { 407 as_val=`expr "$@" || test $? -eq 1` 408 } 409 fi # as_fn_arith 410 411 412 # as_fn_error STATUS ERROR [LINENO LOG_FD] 413 # ---------------------------------------- 414 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 415 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the 416 # script with STATUS, using 1 if that was 0. 417 as_fn_error () 418 { 419 as_status=$1; test $as_status -eq 0 && as_status=1 420 if test "$4"; then 421 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 422 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 423 fi 424 $as_echo "$as_me: error: $2" >&2 425 as_fn_exit $as_status 426 } # as_fn_error 427 428 if expr a : '\(a\)' >/dev/null 2>&1 && 429 test "X`expr 00001 : '.*\(...\)'`" = X001; then 430 as_expr=expr 431 else 432 as_expr=false 433 fi 434 435 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 436 as_basename=basename 437 else 438 as_basename=false 439 fi 440 441 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 442 as_dirname=dirname 443 else 444 as_dirname=false 445 fi 446 447 as_me=`$as_basename -- "$0" || 448 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 449 X"$0" : 'X\(//\)$' \| \ 450 X"$0" : 'X\(/\)' \| . 2>/dev/null || 451 $as_echo X/"$0" | 452 sed '/^.*\/\([^/][^/]*\)\/*$/{ 453 s//\1/ 454 q 455 } 456 /^X\/\(\/\/\)$/{ 457 s//\1/ 458 q 459 } 460 /^X\/\(\/\).*/{ 461 s//\1/ 462 q 463 } 464 s/.*/./; q'` 465 466 # Avoid depending upon Character Ranges. 467 as_cr_letters='abcdefghijklmnopqrstuvwxyz' 468 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 469 as_cr_Letters=$as_cr_letters$as_cr_LETTERS 470 as_cr_digits='0123456789' 471 as_cr_alnum=$as_cr_Letters$as_cr_digits 472 473 474 as_lineno_1=$LINENO as_lineno_1a=$LINENO 475 as_lineno_2=$LINENO as_lineno_2a=$LINENO 476 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && 477 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { 478 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) 479 sed -n ' 480 p 481 /[$]LINENO/= 482 ' <$as_myself | 483 sed ' 484 s/[$]LINENO.*/&-/ 485 t lineno 486 b 487 :lineno 488 N 489 :loop 490 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 491 t loop 492 s/-\n.*// 493 ' >$as_me.lineno && 494 chmod +x "$as_me.lineno" || 495 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 496 497 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have 498 # already done that, so ensure we don't try to do so again and fall 499 # in an infinite loop. This has already happened in practice. 500 _as_can_reexec=no; export _as_can_reexec 501 # Don't try to exec as it changes $[0], causing all sort of problems 502 # (the dirname of $[0] is not the place where we might find the 503 # original and so on. Autoconf is especially sensitive to this). 504 . "./$as_me.lineno" 505 # Exit status is that of the last command. 506 exit 507 } 508 509 ECHO_C= ECHO_N= ECHO_T= 510 case `echo -n x` in #((((( 511 -n*) 512 case `echo 'xy\c'` in 513 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 514 xy) ECHO_C='\c';; 515 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 516 ECHO_T=' ';; 517 esac;; 518 *) 519 ECHO_N='-n';; 520 esac 521 522 rm -f conf$$ conf$$.exe conf$$.file 523 if test -d conf$$.dir; then 524 rm -f conf$$.dir/conf$$.file 525 else 526 rm -f conf$$.dir 527 mkdir conf$$.dir 2>/dev/null 528 fi 529 if (echo >conf$$.file) 2>/dev/null; then 530 if ln -s conf$$.file conf$$ 2>/dev/null; then 531 as_ln_s='ln -s' 532 # ... but there are two gotchas: 533 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 534 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 535 # In both cases, we have to default to `cp -pR'. 536 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 537 as_ln_s='cp -pR' 538 elif ln conf$$.file conf$$ 2>/dev/null; then 539 as_ln_s=ln 540 else 541 as_ln_s='cp -pR' 542 fi 543 else 544 as_ln_s='cp -pR' 545 fi 546 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 547 rmdir conf$$.dir 2>/dev/null 548 549 if mkdir -p . 2>/dev/null; then 550 as_mkdir_p='mkdir -p "$as_dir"' 551 else 552 test -d ./-p && rmdir ./-p 553 as_mkdir_p=false 554 fi 555 556 as_test_x='test -x' 557 as_executable_p=as_fn_executable_p 558 559 # Sed expression to map a string onto a valid CPP name. 560 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 561 562 # Sed expression to map a string onto a valid variable name. 563 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 564 565 566 test -n "$DJDIR" || exec 7<&0 </dev/null 567 exec 6>&1 568 569 # Name of the host. 570 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, 571 # so uname gets run too. 572 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 573 574 # 575 # Initializations. 576 # 577 ac_default_prefix=/usr/local 578 ac_clean_files= 579 ac_config_libobj_dir=. 580 LIBOBJS= 581 cross_compiling=no 582 subdirs= 583 MFLAGS= 584 MAKEFLAGS= 585 586 # Identity of this package. 587 PACKAGE_NAME='OpenJDK' 588 PACKAGE_TARNAME='openjdk' 589 PACKAGE_VERSION='jdk9' 590 PACKAGE_STRING='OpenJDK jdk9' 591 PACKAGE_BUGREPORT='build-dev@openjdk.java.net' 592 PACKAGE_URL='http://openjdk.java.net' 593 594 # Factoring default headers for most tests. 595 ac_includes_default="\ 596 #include <stdio.h> 597 #ifdef HAVE_SYS_TYPES_H 598 # include <sys/types.h> 599 #endif 600 #ifdef HAVE_SYS_STAT_H 601 # include <sys/stat.h> 602 #endif 603 #ifdef STDC_HEADERS 604 # include <stdlib.h> 605 # include <stddef.h> 606 #else 607 # ifdef HAVE_STDLIB_H 608 # include <stdlib.h> 609 # endif 610 #endif 611 #ifdef HAVE_STRING_H 612 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H 613 # include <memory.h> 614 # endif 615 # include <string.h> 616 #endif 617 #ifdef HAVE_STRINGS_H 618 # include <strings.h> 619 #endif 620 #ifdef HAVE_INTTYPES_H 621 # include <inttypes.h> 622 #endif 623 #ifdef HAVE_STDINT_H 624 # include <stdint.h> 625 #endif 626 #ifdef HAVE_UNISTD_H 627 # include <unistd.h> 628 #endif" 629 630 ac_subst_vars='LTLIBOBJS 631 LIBOBJS 632 CFLAGS_CCACHE 633 CCACHE 634 USE_PRECOMPILED_HEADER 635 BUILD_ICECC 636 ICECC 637 ICECC_WRAPPER 638 ICECC_CREATE_ENV 639 ICECC_CMD 640 ENABLE_JAVAC_SERVER 641 ENABLE_SJAVAC 642 SJAVAC_SERVER_JAVA_FLAGS 643 SJAVAC_SERVER_JAVA 644 JAVA_TOOL_FLAGS_SMALL 645 JAVA_FLAGS_SMALL 646 JAVA_FLAGS_JAVAC 647 BOOTCYCLE_JVM_ARGS_BIG 648 JAVA_FLAGS_BIG 649 JAVA_FLAGS 650 TEST_JOBS 651 JOBS 652 MEMORY_SIZE 653 NUM_CORES 654 ENABLE_GENERATE_CLASSLIST 655 BUILD_FAILURE_HANDLER 656 ENABLE_INTREE_EC 657 STLPORT_LIB 658 LIBZIP_CAN_USE_MMAP 659 LIBDL 660 LIBM 661 USE_EXTERNAL_LCMS 662 LCMS_LIBS 663 LCMS_CFLAGS 664 USE_EXTERNAL_LIBZ 665 USE_EXTERNAL_LIBPNG 666 PNG_LIBS 667 PNG_CFLAGS 668 USE_EXTERNAL_LIBGIF 669 USE_EXTERNAL_LIBJPEG 670 LLVM_LIBS 671 LLVM_LDFLAGS 672 LLVM_CFLAGS 673 LLVM_CONFIG 674 LIBFFI_LIBS 675 LIBFFI_CFLAGS 676 ALSA_LIBS 677 ALSA_CFLAGS 678 FREETYPE_BUNDLE_LIB_PATH 679 FREETYPE_LIBS 680 FREETYPE_CFLAGS 681 CUPS_CFLAGS 682 X_EXTRA_LIBS 683 X_LIBS 684 X_PRE_LIBS 685 X_CFLAGS 686 XMKMF 687 MSVCP_DLL 688 MSVCR_DLL 689 LIBCXX 690 STATIC_CXX_SETTING 691 FIXPATH_DETACH_FLAG 692 FIXPATH 693 BUILD_GTEST 694 VALID_JVM_FEATURES 695 JVM_FEATURES_custom 696 JVM_FEATURES_zeroshark 697 JVM_FEATURES_zero 698 JVM_FEATURES_minimal 699 JVM_FEATURES_core 700 JVM_FEATURES_client 701 JVM_FEATURES_server 702 INCLUDE_DTRACE 703 GCOV_ENABLED 704 STRIP_POLICY 705 DEBUG_BINARIES 706 ZIP_EXTERNAL_DEBUG_SYMBOLS 707 COPY_DEBUG_SYMBOLS 708 COMPILE_WITH_DEBUG_SYMBOLS 709 CFLAGS_WARNINGS_ARE_ERRORS 710 BUILD_CC_DISABLE_WARNING_PREFIX 711 DISABLE_WARNING_PREFIX 712 HOTSPOT_SET_WARNINGS_AS_ERRORS 713 WARNINGS_AS_ERRORS 714 COMPILER_SUPPORTS_TARGET_BITS_FLAG 715 ZERO_ARCHFLAG 716 LDFLAGS_TESTEXE 717 LDFLAGS_TESTLIB 718 CXXFLAGS_TESTEXE 719 CXXFLAGS_TESTLIB 720 CFLAGS_TESTEXE 721 CFLAGS_TESTLIB 722 OPENJDK_BUILD_JVM_LIBS 723 OPENJDK_BUILD_JVM_ASFLAGS 724 OPENJDK_BUILD_JVM_LDFLAGS 725 OPENJDK_BUILD_JVM_CFLAGS 726 OPENJDK_BUILD_LDFLAGS_HASH_STYLE 727 OPENJDK_BUILD_LDFLAGS_CXX_JDK 728 OPENJDK_BUILD_JDKEXE_LIBS 729 OPENJDK_BUILD_JDKLIB_LIBS 730 OPENJDK_BUILD_LDFLAGS_JDKEXE 731 OPENJDK_BUILD_LDFLAGS_JDKLIB 732 OPENJDK_BUILD_CXXFLAGS_JDKEXE 733 OPENJDK_BUILD_CXXFLAGS_JDKLIB 734 OPENJDK_BUILD_CFLAGS_JDKEXE 735 OPENJDK_BUILD_CFLAGS_JDKLIB 736 OPENJDK_BUILD_CXXSTD_CXXFLAG 737 JVM_LIBS 738 JVM_ASFLAGS 739 JVM_LDFLAGS 740 JVM_CFLAGS 741 LDFLAGS_HASH_STYLE 742 LDFLAGS_CXX_JDK 743 JDKEXE_LIBS 744 JDKLIB_LIBS 745 LDFLAGS_JDKEXE 746 LDFLAGS_JDKLIB 747 CXXFLAGS_JDKEXE 748 CXXFLAGS_JDKLIB 749 CFLAGS_JDKEXE 750 CFLAGS_JDKLIB 751 MACOSX_VERSION_MIN 752 NO_LIFETIME_DSE_CFLAG 753 NO_NULL_POINTER_CHECK_CFLAG 754 CXXSTD_CXXFLAG 755 CXX_O_FLAG_SIZE 756 CXX_O_FLAG_NONE 757 CXX_O_FLAG_DEBUG 758 CXX_O_FLAG_NORM 759 CXX_O_FLAG_HI 760 CXX_O_FLAG_HIGHEST 761 CXX_O_FLAG_HIGHEST_JVM 762 C_O_FLAG_SIZE 763 C_O_FLAG_NONE 764 C_O_FLAG_DEBUG 765 C_O_FLAG_NORM 766 C_O_FLAG_HI 767 C_O_FLAG_HIGHEST 768 C_O_FLAG_HIGHEST_JVM 769 JVM_CFLAGS_SYMBOLS 770 CXXFLAGS_DEBUG_SYMBOLS 771 CFLAGS_DEBUG_SYMBOLS 772 CXX_FLAG_DEPS 773 C_FLAG_DEPS 774 SHARED_LIBRARY_FLAGS 775 SET_SHARED_LIBRARY_MAPFILE 776 SET_SHARED_LIBRARY_NAME 777 SET_SHARED_LIBRARY_ORIGIN 778 SET_EXECUTABLE_ORIGIN 779 CXX_FLAG_REORDER 780 C_FLAG_REORDER 781 JVM_RCFLAGS 782 RC_FLAGS 783 AR_OUT_OPTION 784 LD_OUT_OPTION 785 EXE_OUT_OPTION 786 CC_OUT_OPTION 787 STRIPFLAGS 788 ARFLAGS 789 COMPILER_BINDCMD_FILE_FLAG 790 COMPILER_COMMAND_FILE_FLAG 791 COMPILER_TARGET_BITS_FLAG 792 JT_HOME 793 JTREGEXE 794 HOTSPOT_TOOLCHAIN_TYPE 795 USING_BROKEN_SUSE_LD 796 PACKAGE_PATH 797 USE_CLANG 798 HOTSPOT_LD 799 HOTSPOT_CXX 800 HOTSPOT_RC 801 HOTSPOT_MT 802 BUILD_AS 803 BUILD_LDCXX 804 BUILD_LD 805 BUILD_STRIP 806 BUILD_OBJCOPY 807 BUILD_AR 808 BUILD_NM 809 BUILD_CXX 810 BUILD_CC 811 BUILD_SYSROOT_LDFLAGS 812 BUILD_SYSROOT_CFLAGS 813 ac_ct_OBJDUMP 814 OBJDUMP 815 ac_ct_OBJCOPY 816 OBJCOPY 817 ac_ct_NM 818 ac_ct_STRIP 819 GNM 820 NM 821 STRIP 822 MSBUILD 823 DUMPBIN 824 RC 825 MT 826 LIPO 827 ac_ct_AR 828 AR 829 AS 830 LDCXX 831 LD 832 CXXCPP 833 CPP 834 CXX_VERSION_NUMBER 835 CC_VERSION_NUMBER 836 ac_ct_CXX 837 CXXFLAGS 838 CXX 839 TOOLCHAIN_PATH_CXX 840 POTENTIAL_CXX 841 OBJEXT 842 EXEEXT 843 ac_ct_CC 844 CPPFLAGS 845 LDFLAGS 846 CFLAGS 847 CC 848 TOOLCHAIN_PATH_CC 849 POTENTIAL_CC 850 TOOLCHAIN_VERSION 851 VS_LIB 852 VS_INCLUDE 853 VS_PATH 854 CYGWIN_LINK 855 SYSROOT_LDFLAGS 856 SYSROOT_CFLAGS 857 EXTRA_LDFLAGS 858 EXTRA_CXXFLAGS 859 EXTRA_CFLAGS 860 LEGACY_EXTRA_LDFLAGS 861 LEGACY_EXTRA_CXXFLAGS 862 LEGACY_EXTRA_CFLAGS 863 EXE_SUFFIX 864 OBJ_SUFFIX 865 STATIC_LIBRARY 866 SHARED_LIBRARY 867 STATIC_LIBRARY_SUFFIX 868 SHARED_LIBRARY_SUFFIX 869 LIBRARY_PREFIX 870 TOOLCHAIN_TYPE 871 STATIC_BUILD 872 IMPORT_MODULES_MAKE 873 IMPORT_MODULES_SRC 874 IMPORT_MODULES_CONF 875 IMPORT_MODULES_LIBS 876 IMPORT_MODULES_CMDS 877 IMPORT_MODULES_CLASSES 878 BUILD_HOTSPOT 879 HOTSPOT_DIST 880 BUILD_OUTPUT 881 JDK_TOPDIR 882 NASHORN_TOPDIR 883 HOTSPOT_TOPDIR 884 JAXWS_TOPDIR 885 JAXP_TOPDIR 886 CORBA_TOPDIR 887 LANGTOOLS_TOPDIR 888 EXTERNAL_BUILDJDK 889 BUILD_JDK 890 CREATE_BUILDJDK 891 JLINK 892 JMOD 893 BOOT_JDK_BITS 894 JAVAC_FLAGS 895 BOOT_JDK_MODULAR 896 BOOT_JDK_SOURCETARGET 897 JARSIGNER 898 JAR 899 JAVAH 900 JAVAC 901 JAVA 902 BOOT_JDK 903 JAVA_CHECK 904 JAVAC_CHECK 905 VERSION_IS_GA 906 VERSION_SHORT 907 VERSION_STRING 908 VERSION_NUMBER_FOUR_POSITIONS 909 VERSION_NUMBER 910 VERSION_OPT 911 VERSION_BUILD 912 VERSION_PRE 913 VERSION_PATCH 914 VERSION_SECURITY 915 VERSION_MINOR 916 VERSION_MAJOR 917 MACOSX_BUNDLE_ID_BASE 918 MACOSX_BUNDLE_NAME_BASE 919 HOTSPOT_VM_DISTRO 920 COMPANY_NAME 921 JDK_RC_PLATFORM_NAME 922 PRODUCT_SUFFIX 923 PRODUCT_NAME 924 LAUNCHER_NAME 925 JLINK_KEEP_PACKAGED_MODULES 926 COPYRIGHT_YEAR 927 COMPRESS_JARS 928 INCLUDE_SA 929 UNLIMITED_CRYPTO 930 CACERTS_FILE 931 BUILD_HEADLESS 932 SUPPORT_HEADFUL 933 SUPPORT_HEADLESS 934 DEFAULT_MAKE_TARGET 935 OS_VERSION_MICRO 936 OS_VERSION_MINOR 937 OS_VERSION_MAJOR 938 PKG_CONFIG 939 BASH_ARGS 940 SETFILE 941 CODESIGN 942 XATTR 943 DSYMUTIL 944 IS_GNU_TIME 945 PATCH 946 DTRACE 947 TIME 948 STAT 949 HG 950 READELF 951 OTOOL 952 LDD 953 ZIP 954 UNZIP 955 TAR_SUPPORTS_TRANSFORM 956 TAR_INCLUDE_PARAM 957 TAR_CREATE_EXTRA_PARAM 958 TAR_TYPE 959 FIND_DELETE 960 OUTPUT_SYNC 961 OUTPUT_SYNC_SUPPORTED 962 CHECK_TOOLSDIR_MAKE 963 CHECK_TOOLSDIR_GMAKE 964 CHECK_MAKE 965 CHECK_GMAKE 966 MAKE 967 PKGHANDLER 968 CONFIGURESUPPORT_OUTPUTDIR 969 OUTPUT_ROOT 970 CONF_NAME 971 SPEC 972 SDKROOT 973 XCODEBUILD 974 VALID_JVM_VARIANTS 975 JVM_VARIANTS 976 DEBUG_LEVEL 977 HOTSPOT_DEBUG_LEVEL 978 JDK_VARIANT 979 SET_OPENJDK 980 USERNAME 981 CANONICAL_TOPDIR 982 ORIGINAL_TOPDIR 983 TOPDIR 984 PATH_SEP 985 ZERO_ARCHDEF 986 HOTSPOT_BUILD_CPU_DEFINE 987 HOTSPOT_BUILD_CPU_ARCH 988 HOTSPOT_BUILD_CPU 989 HOTSPOT_BUILD_OS_TYPE 990 HOTSPOT_BUILD_OS 991 OPENJDK_BUILD_BUNDLE_PLATFORM 992 OPENJDK_BUILD_CPU_BUNDLE 993 OPENJDK_BUILD_OS_BUNDLE 994 OPENJDK_BUILD_OS_EXPORT_DIR 995 OPENJDK_BUILD_CPU_JLI_CFLAGS 996 OPENJDK_BUILD_CPU_OSARCH 997 OPENJDK_BUILD_CPU_ISADIR 998 OPENJDK_BUILD_CPU_LIBDIR 999 OPENJDK_BUILD_CPU_LEGACY_LIB 1000 OPENJDK_BUILD_CPU_LEGACY 1001 HOTSPOT_TARGET_CPU_DEFINE 1002 HOTSPOT_TARGET_CPU_ARCH 1003 HOTSPOT_TARGET_CPU 1004 HOTSPOT_TARGET_OS_TYPE 1005 HOTSPOT_TARGET_OS 1006 DEFINE_CROSS_COMPILE_ARCH 1007 LP64 1008 OPENJDK_TARGET_BUNDLE_PLATFORM 1009 OPENJDK_TARGET_CPU_BUNDLE 1010 OPENJDK_TARGET_OS_BUNDLE 1011 OPENJDK_TARGET_OS_EXPORT_DIR 1012 OPENJDK_TARGET_CPU_JLI_CFLAGS 1013 OPENJDK_TARGET_CPU_OSARCH 1014 OPENJDK_TARGET_CPU_ISADIR 1015 OPENJDK_TARGET_CPU_LIBDIR 1016 OPENJDK_TARGET_CPU_LEGACY_LIB 1017 OPENJDK_TARGET_CPU_LEGACY 1018 REQUIRED_OS_VERSION 1019 REQUIRED_OS_NAME 1020 COMPILE_TYPE 1021 OPENJDK_TARGET_CPU_ENDIAN 1022 OPENJDK_TARGET_CPU_BITS 1023 OPENJDK_TARGET_CPU_ARCH 1024 OPENJDK_TARGET_CPU 1025 OPENJDK_TARGET_OS_ENV 1026 OPENJDK_TARGET_OS_TYPE 1027 OPENJDK_TARGET_OS 1028 OPENJDK_BUILD_CPU_ENDIAN 1029 OPENJDK_BUILD_CPU_BITS 1030 OPENJDK_BUILD_CPU_ARCH 1031 OPENJDK_BUILD_CPU 1032 OPENJDK_BUILD_OS_ENV 1033 OPENJDK_BUILD_OS_TYPE 1034 OPENJDK_BUILD_OS 1035 OPENJDK_BUILD_AUTOCONF_NAME 1036 OPENJDK_TARGET_AUTOCONF_NAME 1037 target_os 1038 target_vendor 1039 target_cpu 1040 target 1041 host_os 1042 host_vendor 1043 host_cpu 1044 host 1045 build_os 1046 build_vendor 1047 build_cpu 1048 build 1049 NICE 1050 CPIO 1051 DF 1052 READLINK 1053 CYGPATH 1054 SED 1055 FGREP 1056 EGREP 1057 GREP 1058 AWK 1059 XARGS 1060 WHICH 1061 WC 1062 UNIQ 1063 UNAME 1064 TR 1065 TOUCH 1066 TEE 1067 TAR 1068 TAIL 1069 SORT 1070 SH 1071 RMDIR 1072 RM 1073 PRINTF 1074 NAWK 1075 MV 1076 MKTEMP 1077 MKDIR 1078 LS 1079 LN 1080 GZIP 1081 GUNZIP 1082 HEAD 1083 FIND 1084 FILE 1085 EXPR 1086 ECHO 1087 DIRNAME 1088 DIFF 1089 DATE 1090 CUT 1091 CP 1092 COMM 1093 CMP 1094 CHMOD 1095 CAT 1096 BASH 1097 BASENAME 1098 DATE_WHEN_CONFIGURED 1099 ORIGINAL_PATH 1100 CONFIGURE_COMMAND_LINE 1101 target_alias 1102 host_alias 1103 build_alias 1104 LIBS 1105 ECHO_T 1106 ECHO_N 1107 ECHO_C 1108 DEFS 1109 mandir 1110 localedir 1111 libdir 1112 psdir 1113 pdfdir 1114 dvidir 1115 htmldir 1116 infodir 1117 docdir 1118 oldincludedir 1119 includedir 1120 localstatedir 1121 sharedstatedir 1122 sysconfdir 1123 datadir 1124 datarootdir 1125 libexecdir 1126 sbindir 1127 bindir 1128 program_transform_name 1129 prefix 1130 exec_prefix 1131 PACKAGE_URL 1132 PACKAGE_BUGREPORT 1133 PACKAGE_STRING 1134 PACKAGE_VERSION 1135 PACKAGE_TARNAME 1136 PACKAGE_NAME 1137 PATH_SEPARATOR 1138 SHELL' 1139 ac_subst_files='' 1140 ac_user_opts=' 1141 enable_option_checking 1142 with_target_bits 1143 enable_openjdk_only 1144 with_custom_make_dir 1145 with_jdk_variant 1146 enable_debug 1147 with_debug_level 1148 with_jvm_variants 1149 with_devkit 1150 with_sys_root 1151 with_sysroot 1152 with_tools_dir 1153 with_toolchain_path 1154 with_extra_path 1155 with_sdk_name 1156 with_conf_name 1157 with_output_sync 1158 with_default_make_target 1159 enable_headful 1160 with_cacerts_file 1161 enable_unlimited_crypto 1162 with_copyright_year 1163 enable_keep_packaged_modules 1164 with_milestone 1165 with_update_version 1166 with_user_release_suffix 1167 with_build_number 1168 with_version_string 1169 with_version_pre 1170 with_version_opt 1171 with_version_build 1172 with_version_major 1173 with_version_minor 1174 with_version_security 1175 with_version_patch 1176 with_boot_jdk 1177 with_build_jdk 1178 with_add_source_root 1179 with_override_source_root 1180 with_adds_and_overrides 1181 with_override_langtools 1182 with_override_corba 1183 with_override_jaxp 1184 with_override_jaxws 1185 with_override_hotspot 1186 with_override_nashorn 1187 with_override_jdk 1188 with_import_hotspot 1189 with_import_modules 1190 enable_static_build 1191 with_toolchain_type 1192 with_extra_cflags 1193 with_extra_cxxflags 1194 with_extra_ldflags 1195 with_toolchain_version 1196 with_build_devkit 1197 with_jtreg 1198 enable_warnings_as_errors 1199 with_native_debug_symbols 1200 enable_debug_symbols 1201 enable_zip_debug_info 1202 enable_native_coverage 1203 enable_dtrace 1204 with_jvm_features 1205 with_jvm_interpreter 1206 enable_hotspot_gtest 1207 with_stdc__lib 1208 with_msvcr_dll 1209 with_msvcp_dll 1210 with_x 1211 with_cups 1212 with_cups_include 1213 with_freetype 1214 with_freetype_include 1215 with_freetype_lib 1216 with_freetype_src 1217 enable_freetype_bundling 1218 with_alsa 1219 with_alsa_include 1220 with_alsa_lib 1221 with_libffi 1222 with_libffi_include 1223 with_libffi_lib 1224 with_libjpeg 1225 with_giflib 1226 with_libpng 1227 with_zlib 1228 with_lcms 1229 with_dxsdk 1230 with_dxsdk_lib 1231 with_dxsdk_include 1232 enable_jtreg_failure_handler 1233 enable_generate_classlist 1234 with_num_cores 1235 with_memory_size 1236 with_jobs 1237 with_test_jobs 1238 with_boot_jdk_jvmargs 1239 with_sjavac_server_java 1240 enable_sjavac 1241 enable_javac_server 1242 enable_icecc 1243 enable_precompiled_headers 1244 enable_ccache 1245 with_ccache_dir 1246 ' 1247 ac_precious_vars='build_alias 1248 host_alias 1249 target_alias 1250 BASENAME 1251 BASH 1252 CAT 1253 CHMOD 1254 CMP 1255 COMM 1256 CP 1257 CUT 1258 DATE 1259 DIFF 1260 DIRNAME 1261 ECHO 1262 EXPR 1263 FILE 1264 FIND 1265 HEAD 1266 GUNZIP 1267 GZIP 1268 LN 1269 LS 1270 MKDIR 1271 MKTEMP 1272 MV 1273 NAWK 1274 PRINTF 1275 RM 1276 RMDIR 1277 SH 1278 SORT 1279 TAIL 1280 TAR 1281 TEE 1282 TOUCH 1283 TR 1284 UNAME 1285 UNIQ 1286 WC 1287 WHICH 1288 XARGS 1289 AWK 1290 GREP 1291 EGREP 1292 FGREP 1293 SED 1294 CYGPATH 1295 READLINK 1296 DF 1297 CPIO 1298 NICE 1299 MAKE 1300 UNZIP 1301 ZIP 1302 LDD 1303 OTOOL 1304 READELF 1305 HG 1306 STAT 1307 TIME 1308 DTRACE 1309 PATCH 1310 DSYMUTIL 1311 XATTR 1312 CODESIGN 1313 SETFILE 1314 PKG_CONFIG 1315 JAVA 1316 JAVAC 1317 JAVAH 1318 JAR 1319 JARSIGNER 1320 CC 1321 CFLAGS 1322 LDFLAGS 1323 LIBS 1324 CPPFLAGS 1325 CXX 1326 CXXFLAGS 1327 CCC 1328 CPP 1329 CXXCPP 1330 AS 1331 AR 1332 LIPO 1333 STRIP 1334 NM 1335 GNM 1336 OBJCOPY 1337 OBJDUMP 1338 BUILD_CC 1339 BUILD_CXX 1340 BUILD_NM 1341 BUILD_AR 1342 BUILD_OBJCOPY 1343 BUILD_STRIP 1344 JTREGEXE 1345 XMKMF 1346 FREETYPE_CFLAGS 1347 FREETYPE_LIBS 1348 ALSA_CFLAGS 1349 ALSA_LIBS 1350 LIBFFI_CFLAGS 1351 LIBFFI_LIBS 1352 PNG_CFLAGS 1353 PNG_LIBS 1354 LCMS_CFLAGS 1355 LCMS_LIBS 1356 ICECC_CMD 1357 ICECC_CREATE_ENV 1358 ICECC_WRAPPER 1359 CCACHE' 1360 1361 1362 # Initialize some variables set by options. 1363 ac_init_help= 1364 ac_init_version=false 1365 ac_unrecognized_opts= 1366 ac_unrecognized_sep= 1367 # The variables have the same names as the options, with 1368 # dashes changed to underlines. 1369 cache_file=/dev/null 1370 exec_prefix=NONE 1371 no_create= 1372 no_recursion= 1373 prefix=NONE 1374 program_prefix=NONE 1375 program_suffix=NONE 1376 program_transform_name=s,x,x, 1377 silent= 1378 site= 1379 srcdir= 1380 verbose= 1381 x_includes=NONE 1382 x_libraries=NONE 1383 1384 # Installation directory options. 1385 # These are left unexpanded so users can "make install exec_prefix=/foo" 1386 # and all the variables that are supposed to be based on exec_prefix 1387 # by default will actually change. 1388 # Use braces instead of parens because sh, perl, etc. also accept them. 1389 # (The list follows the same order as the GNU Coding Standards.) 1390 bindir='${exec_prefix}/bin' 1391 sbindir='${exec_prefix}/sbin' 1392 libexecdir='${exec_prefix}/libexec' 1393 datarootdir='${prefix}/share' 1394 datadir='${datarootdir}' 1395 sysconfdir='${prefix}/etc' 1396 sharedstatedir='${prefix}/com' 1397 localstatedir='${prefix}/var' 1398 includedir='${prefix}/include' 1399 oldincludedir='/usr/include' 1400 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 1401 infodir='${datarootdir}/info' 1402 htmldir='${docdir}' 1403 dvidir='${docdir}' 1404 pdfdir='${docdir}' 1405 psdir='${docdir}' 1406 libdir='${exec_prefix}/lib' 1407 localedir='${datarootdir}/locale' 1408 mandir='${datarootdir}/man' 1409 1410 ac_prev= 1411 ac_dashdash= 1412 for ac_option 1413 do 1414 # If the previous option needs an argument, assign it. 1415 if test -n "$ac_prev"; then 1416 eval $ac_prev=\$ac_option 1417 ac_prev= 1418 continue 1419 fi 1420 1421 case $ac_option in 1422 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 1423 *=) ac_optarg= ;; 1424 *) ac_optarg=yes ;; 1425 esac 1426 1427 # Accept the important Cygnus configure options, so we can diagnose typos. 1428 1429 case $ac_dashdash$ac_option in 1430 --) 1431 ac_dashdash=yes ;; 1432 1433 -bindir | --bindir | --bindi | --bind | --bin | --bi) 1434 ac_prev=bindir ;; 1435 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 1436 bindir=$ac_optarg ;; 1437 1438 -build | --build | --buil | --bui | --bu) 1439 ac_prev=build_alias ;; 1440 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 1441 build_alias=$ac_optarg ;; 1442 1443 -cache-file | --cache-file | --cache-fil | --cache-fi \ 1444 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 1445 ac_prev=cache_file ;; 1446 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 1447 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 1448 cache_file=$ac_optarg ;; 1449 1450 --config-cache | -C) 1451 cache_file=config.cache ;; 1452 1453 -datadir | --datadir | --datadi | --datad) 1454 ac_prev=datadir ;; 1455 -datadir=* | --datadir=* | --datadi=* | --datad=*) 1456 datadir=$ac_optarg ;; 1457 1458 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 1459 | --dataroo | --dataro | --datar) 1460 ac_prev=datarootdir ;; 1461 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 1462 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 1463 datarootdir=$ac_optarg ;; 1464 1465 -disable-* | --disable-*) 1466 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 1467 # Reject names that are not valid shell variable names. 1468 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1469 as_fn_error $? "invalid feature name: $ac_useropt" 1470 ac_useropt_orig=$ac_useropt 1471 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1472 case $ac_user_opts in 1473 *" 1474 "enable_$ac_useropt" 1475 "*) ;; 1476 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 1477 ac_unrecognized_sep=', ';; 1478 esac 1479 eval enable_$ac_useropt=no ;; 1480 1481 -docdir | --docdir | --docdi | --doc | --do) 1482 ac_prev=docdir ;; 1483 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 1484 docdir=$ac_optarg ;; 1485 1486 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 1487 ac_prev=dvidir ;; 1488 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 1489 dvidir=$ac_optarg ;; 1490 1491 -enable-* | --enable-*) 1492 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 1493 # Reject names that are not valid shell variable names. 1494 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1495 as_fn_error $? "invalid feature name: $ac_useropt" 1496 ac_useropt_orig=$ac_useropt 1497 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1498 case $ac_user_opts in 1499 *" 1500 "enable_$ac_useropt" 1501 "*) ;; 1502 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 1503 ac_unrecognized_sep=', ';; 1504 esac 1505 eval enable_$ac_useropt=\$ac_optarg ;; 1506 1507 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 1508 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 1509 | --exec | --exe | --ex) 1510 ac_prev=exec_prefix ;; 1511 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 1512 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 1513 | --exec=* | --exe=* | --ex=*) 1514 exec_prefix=$ac_optarg ;; 1515 1516 -gas | --gas | --ga | --g) 1517 # Obsolete; use --with-gas. 1518 with_gas=yes ;; 1519 1520 -help | --help | --hel | --he | -h) 1521 ac_init_help=long ;; 1522 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 1523 ac_init_help=recursive ;; 1524 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 1525 ac_init_help=short ;; 1526 1527 -host | --host | --hos | --ho) 1528 ac_prev=host_alias ;; 1529 -host=* | --host=* | --hos=* | --ho=*) 1530 host_alias=$ac_optarg ;; 1531 1532 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 1533 ac_prev=htmldir ;; 1534 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 1535 | --ht=*) 1536 htmldir=$ac_optarg ;; 1537 1538 -includedir | --includedir | --includedi | --included | --include \ 1539 | --includ | --inclu | --incl | --inc) 1540 ac_prev=includedir ;; 1541 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1542 | --includ=* | --inclu=* | --incl=* | --inc=*) 1543 includedir=$ac_optarg ;; 1544 1545 -infodir | --infodir | --infodi | --infod | --info | --inf) 1546 ac_prev=infodir ;; 1547 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1548 infodir=$ac_optarg ;; 1549 1550 -libdir | --libdir | --libdi | --libd) 1551 ac_prev=libdir ;; 1552 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1553 libdir=$ac_optarg ;; 1554 1555 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1556 | --libexe | --libex | --libe) 1557 ac_prev=libexecdir ;; 1558 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1559 | --libexe=* | --libex=* | --libe=*) 1560 libexecdir=$ac_optarg ;; 1561 1562 -localedir | --localedir | --localedi | --localed | --locale) 1563 ac_prev=localedir ;; 1564 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1565 localedir=$ac_optarg ;; 1566 1567 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1568 | --localstate | --localstat | --localsta | --localst | --locals) 1569 ac_prev=localstatedir ;; 1570 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1571 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1572 localstatedir=$ac_optarg ;; 1573 1574 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1575 ac_prev=mandir ;; 1576 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1577 mandir=$ac_optarg ;; 1578 1579 -nfp | --nfp | --nf) 1580 # Obsolete; use --without-fp. 1581 with_fp=no ;; 1582 1583 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1584 | --no-cr | --no-c | -n) 1585 no_create=yes ;; 1586 1587 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1588 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1589 no_recursion=yes ;; 1590 1591 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1592 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1593 | --oldin | --oldi | --old | --ol | --o) 1594 ac_prev=oldincludedir ;; 1595 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1596 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1597 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1598 oldincludedir=$ac_optarg ;; 1599 1600 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1601 ac_prev=prefix ;; 1602 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1603 prefix=$ac_optarg ;; 1604 1605 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1606 | --program-pre | --program-pr | --program-p) 1607 ac_prev=program_prefix ;; 1608 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1609 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1610 program_prefix=$ac_optarg ;; 1611 1612 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1613 | --program-suf | --program-su | --program-s) 1614 ac_prev=program_suffix ;; 1615 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1616 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1617 program_suffix=$ac_optarg ;; 1618 1619 -program-transform-name | --program-transform-name \ 1620 | --program-transform-nam | --program-transform-na \ 1621 | --program-transform-n | --program-transform- \ 1622 | --program-transform | --program-transfor \ 1623 | --program-transfo | --program-transf \ 1624 | --program-trans | --program-tran \ 1625 | --progr-tra | --program-tr | --program-t) 1626 ac_prev=program_transform_name ;; 1627 -program-transform-name=* | --program-transform-name=* \ 1628 | --program-transform-nam=* | --program-transform-na=* \ 1629 | --program-transform-n=* | --program-transform-=* \ 1630 | --program-transform=* | --program-transfor=* \ 1631 | --program-transfo=* | --program-transf=* \ 1632 | --program-trans=* | --program-tran=* \ 1633 | --progr-tra=* | --program-tr=* | --program-t=*) 1634 program_transform_name=$ac_optarg ;; 1635 1636 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1637 ac_prev=pdfdir ;; 1638 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1639 pdfdir=$ac_optarg ;; 1640 1641 -psdir | --psdir | --psdi | --psd | --ps) 1642 ac_prev=psdir ;; 1643 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1644 psdir=$ac_optarg ;; 1645 1646 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1647 | -silent | --silent | --silen | --sile | --sil) 1648 silent=yes ;; 1649 1650 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1651 ac_prev=sbindir ;; 1652 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1653 | --sbi=* | --sb=*) 1654 sbindir=$ac_optarg ;; 1655 1656 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1657 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1658 | --sharedst | --shareds | --shared | --share | --shar \ 1659 | --sha | --sh) 1660 ac_prev=sharedstatedir ;; 1661 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1662 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1663 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1664 | --sha=* | --sh=*) 1665 sharedstatedir=$ac_optarg ;; 1666 1667 -site | --site | --sit) 1668 ac_prev=site ;; 1669 -site=* | --site=* | --sit=*) 1670 site=$ac_optarg ;; 1671 1672 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1673 ac_prev=srcdir ;; 1674 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1675 srcdir=$ac_optarg ;; 1676 1677 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1678 | --syscon | --sysco | --sysc | --sys | --sy) 1679 ac_prev=sysconfdir ;; 1680 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1681 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1682 sysconfdir=$ac_optarg ;; 1683 1684 -target | --target | --targe | --targ | --tar | --ta | --t) 1685 ac_prev=target_alias ;; 1686 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1687 target_alias=$ac_optarg ;; 1688 1689 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1690 verbose=yes ;; 1691 1692 -version | --version | --versio | --versi | --vers | -V) 1693 ac_init_version=: ;; 1694 1695 -with-* | --with-*) 1696 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1697 # Reject names that are not valid shell variable names. 1698 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1699 as_fn_error $? "invalid package name: $ac_useropt" 1700 ac_useropt_orig=$ac_useropt 1701 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1702 case $ac_user_opts in 1703 *" 1704 "with_$ac_useropt" 1705 "*) ;; 1706 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1707 ac_unrecognized_sep=', ';; 1708 esac 1709 eval with_$ac_useropt=\$ac_optarg ;; 1710 1711 -without-* | --without-*) 1712 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1713 # Reject names that are not valid shell variable names. 1714 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1715 as_fn_error $? "invalid package name: $ac_useropt" 1716 ac_useropt_orig=$ac_useropt 1717 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1718 case $ac_user_opts in 1719 *" 1720 "with_$ac_useropt" 1721 "*) ;; 1722 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1723 ac_unrecognized_sep=', ';; 1724 esac 1725 eval with_$ac_useropt=no ;; 1726 1727 --x) 1728 # Obsolete; use --with-x. 1729 with_x=yes ;; 1730 1731 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1732 | --x-incl | --x-inc | --x-in | --x-i) 1733 ac_prev=x_includes ;; 1734 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1735 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1736 x_includes=$ac_optarg ;; 1737 1738 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1739 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1740 ac_prev=x_libraries ;; 1741 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1742 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1743 x_libraries=$ac_optarg ;; 1744 1745 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1746 Try \`$0 --help' for more information" 1747 ;; 1748 1749 *=*) 1750 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1751 # Reject names that are not valid shell variable names. 1752 case $ac_envvar in #( 1753 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1754 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1755 esac 1756 eval $ac_envvar=\$ac_optarg 1757 export $ac_envvar ;; 1758 1759 *) 1760 # FIXME: should be removed in autoconf 3.0. 1761 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1762 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1763 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1764 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1765 ;; 1766 1767 esac 1768 done 1769 1770 if test -n "$ac_prev"; then 1771 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1772 as_fn_error $? "missing argument to $ac_option" 1773 fi 1774 1775 if test -n "$ac_unrecognized_opts"; then 1776 case $enable_option_checking in 1777 no) ;; 1778 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1779 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1780 esac 1781 fi 1782 1783 # Check all directory arguments for consistency. 1784 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1785 datadir sysconfdir sharedstatedir localstatedir includedir \ 1786 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1787 libdir localedir mandir 1788 do 1789 eval ac_val=\$$ac_var 1790 # Remove trailing slashes. 1791 case $ac_val in 1792 */ ) 1793 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1794 eval $ac_var=\$ac_val;; 1795 esac 1796 # Be sure to have absolute directory names. 1797 case $ac_val in 1798 [\\/$]* | ?:[\\/]* ) continue;; 1799 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1800 esac 1801 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1802 done 1803 1804 # There might be people who depend on the old broken behavior: `$host' 1805 # used to hold the argument of --host etc. 1806 # FIXME: To remove some day. 1807 build=$build_alias 1808 host=$host_alias 1809 target=$target_alias 1810 1811 # FIXME: To remove some day. 1812 if test "x$host_alias" != x; then 1813 if test "x$build_alias" = x; then 1814 cross_compiling=maybe 1815 elif test "x$build_alias" != "x$host_alias"; then 1816 cross_compiling=yes 1817 fi 1818 fi 1819 1820 ac_tool_prefix= 1821 test -n "$host_alias" && ac_tool_prefix=$host_alias- 1822 1823 test "$silent" = yes && exec 6>/dev/null 1824 1825 1826 ac_pwd=`pwd` && test -n "$ac_pwd" && 1827 ac_ls_di=`ls -di .` && 1828 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1829 as_fn_error $? "working directory cannot be determined" 1830 test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1831 as_fn_error $? "pwd does not report name of working directory" 1832 1833 1834 # Find the source files, if location was not specified. 1835 if test -z "$srcdir"; then 1836 ac_srcdir_defaulted=yes 1837 # Try the directory containing this script, then the parent directory. 1838 ac_confdir=`$as_dirname -- "$as_myself" || 1839 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1840 X"$as_myself" : 'X\(//\)[^/]' \| \ 1841 X"$as_myself" : 'X\(//\)$' \| \ 1842 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1843 $as_echo X"$as_myself" | 1844 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1845 s//\1/ 1846 q 1847 } 1848 /^X\(\/\/\)[^/].*/{ 1849 s//\1/ 1850 q 1851 } 1852 /^X\(\/\/\)$/{ 1853 s//\1/ 1854 q 1855 } 1856 /^X\(\/\).*/{ 1857 s//\1/ 1858 q 1859 } 1860 s/.*/./; q'` 1861 srcdir=$ac_confdir 1862 if test ! -r "$srcdir/$ac_unique_file"; then 1863 srcdir=.. 1864 fi 1865 else 1866 ac_srcdir_defaulted=no 1867 fi 1868 if test ! -r "$srcdir/$ac_unique_file"; then 1869 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1870 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1871 fi 1872 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1873 ac_abs_confdir=`( 1874 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1875 pwd)` 1876 # When building in place, set srcdir=. 1877 if test "$ac_abs_confdir" = "$ac_pwd"; then 1878 srcdir=. 1879 fi 1880 # Remove unnecessary trailing slashes from srcdir. 1881 # Double slashes in file names in object file debugging info 1882 # mess up M-x gdb in Emacs. 1883 case $srcdir in 1884 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1885 esac 1886 for ac_var in $ac_precious_vars; do 1887 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1888 eval ac_env_${ac_var}_value=\$${ac_var} 1889 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1890 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1891 done 1892 1893 # 1894 # Report the --help message. 1895 # 1896 if test "$ac_init_help" = "long"; then 1897 # Omit some internal or obsolete options to make the list less imposing. 1898 # This message is too long to be a string in the A/UX 3.1 sh. 1899 cat <<_ACEOF 1900 \`configure' configures OpenJDK jdk9 to adapt to many kinds of systems. 1901 1902 Usage: $0 [OPTION]... [VAR=VALUE]... 1903 1904 To assign environment variables (e.g., CC, CFLAGS...), specify them as 1905 VAR=VALUE. See below for descriptions of some of the useful variables. 1906 1907 Defaults for the options are specified in brackets. 1908 1909 Configuration: 1910 -h, --help display this help and exit 1911 --help=short display options specific to this package 1912 --help=recursive display the short help of all the included packages 1913 -V, --version display version information and exit 1914 -q, --quiet, --silent do not print \`checking ...' messages 1915 --cache-file=FILE cache test results in FILE [disabled] 1916 -C, --config-cache alias for \`--cache-file=config.cache' 1917 -n, --no-create do not create output files 1918 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1919 1920 Installation directories: 1921 --prefix=PREFIX install architecture-independent files in PREFIX 1922 [$ac_default_prefix] 1923 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1924 [PREFIX] 1925 1926 By default, \`make install' will install all the files in 1927 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1928 an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1929 for instance \`--prefix=\$HOME'. 1930 1931 For better control, use the options below. 1932 1933 Fine tuning of the installation directories: 1934 --bindir=DIR user executables [EPREFIX/bin] 1935 --sbindir=DIR system admin executables [EPREFIX/sbin] 1936 --libexecdir=DIR program executables [EPREFIX/libexec] 1937 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1938 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1939 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1940 --libdir=DIR object code libraries [EPREFIX/lib] 1941 --includedir=DIR C header files [PREFIX/include] 1942 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1943 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1944 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1945 --infodir=DIR info documentation [DATAROOTDIR/info] 1946 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1947 --mandir=DIR man documentation [DATAROOTDIR/man] 1948 --docdir=DIR documentation root [DATAROOTDIR/doc/openjdk] 1949 --htmldir=DIR html documentation [DOCDIR] 1950 --dvidir=DIR dvi documentation [DOCDIR] 1951 --pdfdir=DIR pdf documentation [DOCDIR] 1952 --psdir=DIR ps documentation [DOCDIR] 1953 _ACEOF 1954 1955 cat <<\_ACEOF 1956 1957 X features: 1958 --x-includes=DIR X include files are in DIR 1959 --x-libraries=DIR X library files are in DIR 1960 1961 System types: 1962 --build=BUILD configure for building on BUILD [guessed] 1963 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1964 --target=TARGET configure for building compilers for TARGET [HOST] 1965 _ACEOF 1966 fi 1967 1968 if test -n "$ac_init_help"; then 1969 case $ac_init_help in 1970 short | recursive ) echo "Configuration of OpenJDK jdk9:";; 1971 esac 1972 cat <<\_ACEOF 1973 1974 Optional Features: 1975 --disable-option-checking ignore unrecognized --enable/--with options 1976 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1977 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1978 --enable-openjdk-only suppress building custom source even if present 1979 [disabled] 1980 --enable-debug set the debug level to fastdebug (shorthand for 1981 --with-debug-level=fastdebug) [disabled] 1982 --disable-headful disable building headful support (graphical UI 1983 support) [enabled] 1984 --enable-unlimited-crypto 1985 Enable unlimited crypto policy [disabled] 1986 --disable-keep-packaged-modules 1987 Do not keep packaged modules in jdk image [enable] 1988 --enable-static-build enable static library build [disabled] 1989 --disable-warnings-as-errors 1990 do not consider native warnings to be an error 1991 [enabled] 1992 --enable-debug-symbols Deprecated. Option is kept for backwards 1993 compatibility and is ignored 1994 --enable-zip-debug-info Deprecated. Option is kept for backwards 1995 compatibility and is ignored 1996 --enable-native-coverage 1997 enable native compilation with code coverage 1998 data[disabled] 1999 --enable-dtrace[=yes/no/auto] 2000 enable dtrace. Default is auto, where dtrace is 2001 enabled if all dependencies are present. 2002 --disable-hotspot-gtest Disables building of the Hotspot unit tests 2003 --disable-freetype-bundling 2004 disable bundling of the freetype library with the 2005 build result [enabled on Windows or when using 2006 --with-freetype, disabled otherwise] 2007 --enable-jtreg-failure-handler 2008 forces build of the jtreg failure handler to be 2009 enabled, missing dependencies become fatal errors. 2010 Default is auto, where the failure handler is built 2011 if all dependencies are present and otherwise just 2012 disabled. 2013 --disable-generate-classlist 2014 forces enabling or disabling of the generation of a 2015 CDS classlist at build time. Default is to generate 2016 it when either the server or client JVMs are built. 2017 --enable-sjavac use sjavac to do fast incremental compiles 2018 [disabled] 2019 --disable-javac-server disable javac server [enabled] 2020 --enable-icecc enable distribted compilation of native code using 2021 icecc/icecream [disabled] 2022 --disable-precompiled-headers 2023 disable using precompiled headers when compiling C++ 2024 [enabled] 2025 --enable-ccache enable using ccache to speed up recompilations 2026 [disabled] 2027 2028 Optional Packages: 2029 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 2030 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 2031 --with-target-bits build 32-bit or 64-bit binaries (for platforms that 2032 support it), e.g. --with-target-bits=32 [guessed] 2033 --with-custom-make-dir Deprecated. Option is kept for backwards 2034 compatibility and is ignored 2035 --with-jdk-variant JDK variant to build (normal) [normal] 2036 --with-debug-level set the debug level (release, fastdebug, slowdebug, 2037 optimized) [release] 2038 --with-jvm-variants JVM variants (separated by commas) to build 2039 (server,client,minimal,core,zero,zeroshark,custom) 2040 [server] 2041 --with-devkit use this devkit for compilers, tools and resources 2042 --with-sys-root alias for --with-sysroot for backwards compatability 2043 --with-sysroot use this directory as sysroot 2044 --with-tools-dir alias for --with-toolchain-path for backwards 2045 compatibility 2046 --with-toolchain-path prepend these directories when searching for 2047 toolchain binaries (compilers etc) 2048 --with-extra-path prepend these directories to the default path 2049 --with-sdk-name use the platform SDK of the given name. [macosx] 2050 --with-conf-name use this as the name of the configuration [generated 2051 from important configuration options] 2052 --with-output-sync set make output sync type if supported by make. 2053 [recurse] 2054 --with-default-make-target 2055 set the default make target [exploded-image] 2056 --with-cacerts-file specify alternative cacerts file 2057 --with-copyright-year Set copyright year value for build [current year] 2058 --with-milestone Deprecated. Option is kept for backwards 2059 compatibility and is ignored 2060 --with-update-version Deprecated. Option is kept for backwards 2061 compatibility and is ignored 2062 --with-user-release-suffix 2063 Deprecated. Option is kept for backwards 2064 compatibility and is ignored 2065 --with-build-number Deprecated. Option is kept for backwards 2066 compatibility and is ignored 2067 --with-version-string Set version string [calculated] 2068 --with-version-pre Set the base part of the version 'PRE' field 2069 (pre-release identifier) ['internal'] 2070 --with-version-opt Set version 'OPT' field (build metadata) 2071 [<timestamp>.<user>.<dirname>] 2072 --with-version-build Set version 'BUILD' field (build number) [not 2073 specified] 2074 --with-version-major Set version 'MAJOR' field (first number) [current 2075 source value] 2076 --with-version-minor Set version 'MINOR' field (second number) [current 2077 source value] 2078 --with-version-security Set version 'SECURITY' field (third number) [current 2079 source value] 2080 --with-version-patch Set version 'PATCH' field (fourth number) [not 2081 specified] 2082 --with-boot-jdk path to Boot JDK (used to bootstrap build) [probed] 2083 --with-build-jdk path to JDK of same version as is being built[the 2084 newly built JDK] 2085 --with-add-source-root Deprecated. Option is kept for backwards 2086 compatibility and is ignored 2087 --with-override-source-root 2088 Deprecated. Option is kept for backwards 2089 compatibility and is ignored 2090 --with-adds-and-overrides 2091 Deprecated. Option is kept for backwards 2092 compatibility and is ignored 2093 --with-override-langtools 2094 Deprecated. Option is kept for backwards 2095 compatibility and is ignored 2096 --with-override-corba Deprecated. Option is kept for backwards 2097 compatibility and is ignored 2098 --with-override-jaxp Deprecated. Option is kept for backwards 2099 compatibility and is ignored 2100 --with-override-jaxws Deprecated. Option is kept for backwards 2101 compatibility and is ignored 2102 --with-override-hotspot Deprecated. Option is kept for backwards 2103 compatibility and is ignored 2104 --with-override-nashorn Deprecated. Option is kept for backwards 2105 compatibility and is ignored 2106 --with-override-jdk Deprecated. Option is kept for backwards 2107 compatibility and is ignored 2108 --with-import-hotspot import hotspot binaries from this jdk image or 2109 hotspot build dist dir instead of building from 2110 source 2111 --with-import-modules import a set of prebuilt modules either as a zip 2112 file or an exploded directory 2113 --with-toolchain-type the toolchain type (or family) to use, use '--help' 2114 to show possible values [platform dependent] 2115 --with-extra-cflags extra flags to be used when compiling jdk c-files 2116 --with-extra-cxxflags extra flags to be used when compiling jdk c++-files 2117 --with-extra-ldflags extra flags to be used when linking jdk 2118 --with-toolchain-version 2119 the version of the toolchain to look for, use 2120 '--help' to show possible values [platform 2121 dependent] 2122 --with-build-devkit Devkit to use for the build platform toolchain 2123 --with-jtreg Regression Test Harness [probed] 2124 --with-native-debug-symbols 2125 set the native debug symbol configuration (none, 2126 internal, external, zipped) [varying] 2127 --with-jvm-features additional JVM features to enable (separated by 2128 comma), use '--help' to show possible values [none] 2129 --with-jvm-interpreter Deprecated. Option is kept for backwards 2130 compatibility and is ignored 2131 --with-stdc++lib=<static>,<dynamic>,<default> 2132 force linking of the C++ runtime on Linux to either 2133 static or dynamic, default is static with dynamic as 2134 fallback 2135 --with-msvcr-dll path to microsoft C runtime dll (msvcr*.dll) 2136 (Windows only) [probed] 2137 --with-msvcp-dll path to microsoft C++ runtime dll (msvcp*.dll) 2138 (Windows only) [probed] 2139 --with-x use the X Window System 2140 --with-cups specify prefix directory for the cups package 2141 (expecting the headers under PATH/include) 2142 --with-cups-include specify directory for the cups include files 2143 --with-freetype specify prefix directory for the freetype package 2144 (expecting the libraries under PATH/lib and the 2145 headers under PATH/include) 2146 --with-freetype-include specify directory for the freetype include files 2147 --with-freetype-lib specify directory for the freetype library 2148 --with-freetype-src specify directory with freetype sources to 2149 automatically build the library (experimental, 2150 Windows-only) 2151 --with-alsa specify prefix directory for the alsa package 2152 (expecting the libraries under PATH/lib and the 2153 headers under PATH/include) 2154 --with-alsa-include specify directory for the alsa include files 2155 --with-alsa-lib specify directory for the alsa library 2156 --with-libffi specify prefix directory for the libffi package 2157 (expecting the libraries under PATH/lib and the 2158 headers under PATH/include) 2159 --with-libffi-include specify directory for the libffi include files 2160 --with-libffi-lib specify directory for the libffi library 2161 --with-libjpeg use libjpeg from build system or OpenJDK source 2162 (system, bundled) [bundled] 2163 --with-giflib use giflib from build system or OpenJDK source 2164 (system, bundled) [bundled] 2165 --with-libpng use libpng from build system or OpenJDK source 2166 (system, bundled) [bundled] 2167 --with-zlib use zlib from build system or OpenJDK source 2168 (system, bundled) [bundled] 2169 --with-lcms use lcms2 from build system or OpenJDK source 2170 (system, bundled) [bundled] 2171 --with-dxsdk Deprecated. Option is kept for backwards 2172 compatibility and is ignored 2173 --with-dxsdk-lib Deprecated. Option is kept for backwards 2174 compatibility and is ignored 2175 --with-dxsdk-include Deprecated. Option is kept for backwards 2176 compatibility and is ignored 2177 --with-num-cores number of cores in the build system, e.g. 2178 --with-num-cores=8 [probed] 2179 --with-memory-size memory (in MB) available in the build system, e.g. 2180 --with-memory-size=1024 [probed] 2181 --with-jobs number of parallel jobs to let make run [calculated 2182 based on cores and memory] 2183 --with-test-jobs number of parallel tests jobs to run [based on build 2184 jobs] 2185 --with-boot-jdk-jvmargs specify JVM arguments to be passed to all java 2186 invocations of boot JDK, overriding the default 2187 values, e.g --with-boot-jdk-jvmargs="-Xmx8G 2188 -enableassertions" 2189 --with-sjavac-server-java 2190 use this java binary for running the sjavac 2191 background server [Boot JDK java] 2192 --with-ccache-dir where to store ccache files [~/.ccache] 2193 2194 Some influential environment variables: 2195 BASENAME Override default value for BASENAME 2196 BASH Override default value for BASH 2197 CAT Override default value for CAT 2198 CHMOD Override default value for CHMOD 2199 CMP Override default value for CMP 2200 COMM Override default value for COMM 2201 CP Override default value for CP 2202 CUT Override default value for CUT 2203 DATE Override default value for DATE 2204 DIFF Override default value for DIFF 2205 DIRNAME Override default value for DIRNAME 2206 ECHO Override default value for ECHO 2207 EXPR Override default value for EXPR 2208 FILE Override default value for FILE 2209 FIND Override default value for FIND 2210 HEAD Override default value for HEAD 2211 GUNZIP Override default value for GUNZIP 2212 GZIP Override default value for GZIP 2213 LN Override default value for LN 2214 LS Override default value for LS 2215 MKDIR Override default value for MKDIR 2216 MKTEMP Override default value for MKTEMP 2217 MV Override default value for MV 2218 NAWK Override default value for NAWK 2219 PRINTF Override default value for PRINTF 2220 RM Override default value for RM 2221 RMDIR Override default value for RMDIR 2222 SH Override default value for SH 2223 SORT Override default value for SORT 2224 TAIL Override default value for TAIL 2225 TAR Override default value for TAR 2226 TEE Override default value for TEE 2227 TOUCH Override default value for TOUCH 2228 TR Override default value for TR 2229 UNAME Override default value for UNAME 2230 UNIQ Override default value for UNIQ 2231 WC Override default value for WC 2232 WHICH Override default value for WHICH 2233 XARGS Override default value for XARGS 2234 AWK Override default value for AWK 2235 GREP Override default value for GREP 2236 EGREP Override default value for EGREP 2237 FGREP Override default value for FGREP 2238 SED Override default value for SED 2239 CYGPATH Override default value for CYGPATH 2240 READLINK Override default value for READLINK 2241 DF Override default value for DF 2242 CPIO Override default value for CPIO 2243 NICE Override default value for NICE 2244 MAKE Override default value for MAKE 2245 UNZIP Override default value for UNZIP 2246 ZIP Override default value for ZIP 2247 LDD Override default value for LDD 2248 OTOOL Override default value for OTOOL 2249 READELF Override default value for READELF 2250 HG Override default value for HG 2251 STAT Override default value for STAT 2252 TIME Override default value for TIME 2253 DTRACE Override default value for DTRACE 2254 PATCH Override default value for PATCH 2255 DSYMUTIL Override default value for DSYMUTIL 2256 XATTR Override default value for XATTR 2257 CODESIGN Override default value for CODESIGN 2258 SETFILE Override default value for SETFILE 2259 PKG_CONFIG path to pkg-config utility 2260 JAVA Override default value for JAVA 2261 JAVAC Override default value for JAVAC 2262 JAVAH Override default value for JAVAH 2263 JAR Override default value for JAR 2264 JARSIGNER Override default value for JARSIGNER 2265 CC C compiler command 2266 CFLAGS C compiler flags 2267 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 2268 nonstandard directory <lib dir> 2269 LIBS libraries to pass to the linker, e.g. -l<library> 2270 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 2271 you have headers in a nonstandard directory <include dir> 2272 CXX C++ compiler command 2273 CXXFLAGS C++ compiler flags 2274 CPP C preprocessor 2275 CXXCPP C++ preprocessor 2276 AS Override default value for AS 2277 AR Override default value for AR 2278 LIPO Override default value for LIPO 2279 STRIP Override default value for STRIP 2280 NM Override default value for NM 2281 GNM Override default value for GNM 2282 OBJCOPY Override default value for OBJCOPY 2283 OBJDUMP Override default value for OBJDUMP 2284 BUILD_CC Override default value for BUILD_CC 2285 BUILD_CXX Override default value for BUILD_CXX 2286 BUILD_NM Override default value for BUILD_NM 2287 BUILD_AR Override default value for BUILD_AR 2288 BUILD_OBJCOPY 2289 Override default value for BUILD_OBJCOPY 2290 BUILD_STRIP Override default value for BUILD_STRIP 2291 JTREGEXE Override default value for JTREGEXE 2292 XMKMF Path to xmkmf, Makefile generator for X Window System 2293 FREETYPE_CFLAGS 2294 C compiler flags for FREETYPE, overriding pkg-config 2295 FREETYPE_LIBS 2296 linker flags for FREETYPE, overriding pkg-config 2297 ALSA_CFLAGS C compiler flags for ALSA, overriding pkg-config 2298 ALSA_LIBS linker flags for ALSA, overriding pkg-config 2299 LIBFFI_CFLAGS 2300 C compiler flags for LIBFFI, overriding pkg-config 2301 LIBFFI_LIBS linker flags for LIBFFI, overriding pkg-config 2302 PNG_CFLAGS C compiler flags for PNG, overriding pkg-config 2303 PNG_LIBS linker flags for PNG, overriding pkg-config 2304 LCMS_CFLAGS C compiler flags for LCMS, overriding pkg-config 2305 LCMS_LIBS linker flags for LCMS, overriding pkg-config 2306 ICECC_CMD Override default value for ICECC_CMD 2307 ICECC_CREATE_ENV 2308 Override default value for ICECC_CREATE_ENV 2309 ICECC_WRAPPER 2310 Override default value for ICECC_WRAPPER 2311 CCACHE Override default value for CCACHE 2312 2313 Use these variables to override the choices made by `configure' or to help 2314 it to find libraries and programs with nonstandard names/locations. 2315 2316 Report bugs to <build-dev@openjdk.java.net>. 2317 OpenJDK home page: <http://openjdk.java.net>. 2318 _ACEOF 2319 ac_status=$? 2320 fi 2321 2322 if test "$ac_init_help" = "recursive"; then 2323 # If there are subdirs, report their specific --help. 2324 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 2325 test -d "$ac_dir" || 2326 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 2327 continue 2328 ac_builddir=. 2329 2330 case "$ac_dir" in 2331 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 2332 *) 2333 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 2334 # A ".." for each directory in $ac_dir_suffix. 2335 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 2336 case $ac_top_builddir_sub in 2337 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 2338 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 2339 esac ;; 2340 esac 2341 ac_abs_top_builddir=$ac_pwd 2342 ac_abs_builddir=$ac_pwd$ac_dir_suffix 2343 # for backward compatibility: 2344 ac_top_builddir=$ac_top_build_prefix 2345 2346 case $srcdir in 2347 .) # We are building in place. 2348 ac_srcdir=. 2349 ac_top_srcdir=$ac_top_builddir_sub 2350 ac_abs_top_srcdir=$ac_pwd ;; 2351 [\\/]* | ?:[\\/]* ) # Absolute name. 2352 ac_srcdir=$srcdir$ac_dir_suffix; 2353 ac_top_srcdir=$srcdir 2354 ac_abs_top_srcdir=$srcdir ;; 2355 *) # Relative name. 2356 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 2357 ac_top_srcdir=$ac_top_build_prefix$srcdir 2358 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 2359 esac 2360 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 2361 2362 cd "$ac_dir" || { ac_status=$?; continue; } 2363 # Check for guested configure. 2364 if test -f "$ac_srcdir/configure.gnu"; then 2365 echo && 2366 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 2367 elif test -f "$ac_srcdir/configure"; then 2368 echo && 2369 $SHELL "$ac_srcdir/configure" --help=recursive 2370 else 2371 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 2372 fi || ac_status=$? 2373 cd "$ac_pwd" || { ac_status=$?; break; } 2374 done 2375 fi 2376 2377 test -n "$ac_init_help" && exit $ac_status 2378 if $ac_init_version; then 2379 cat <<\_ACEOF 2380 OpenJDK configure jdk9 2381 generated by GNU Autoconf 2.69 2382 2383 Copyright (C) 2012 Free Software Foundation, Inc. 2384 This configure script is free software; the Free Software Foundation 2385 gives unlimited permission to copy, distribute and modify it. 2386 _ACEOF 2387 exit 2388 fi 2389 2390 ## ------------------------ ## 2391 ## Autoconf initialization. ## 2392 ## ------------------------ ## 2393 2394 # ac_fn_c_try_compile LINENO 2395 # -------------------------- 2396 # Try to compile conftest.$ac_ext, and return whether this succeeded. 2397 ac_fn_c_try_compile () 2398 { 2399 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2400 rm -f conftest.$ac_objext 2401 if { { ac_try="$ac_compile" 2402 case "(($ac_try" in 2403 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2404 *) ac_try_echo=$ac_try;; 2405 esac 2406 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2407 $as_echo "$ac_try_echo"; } >&5 2408 (eval "$ac_compile") 2>conftest.err 2409 ac_status=$? 2410 if test -s conftest.err; then 2411 grep -v '^ *+' conftest.err >conftest.er1 2412 cat conftest.er1 >&5 2413 mv -f conftest.er1 conftest.err 2414 fi 2415 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2416 test $ac_status = 0; } && { 2417 test -z "$ac_c_werror_flag" || 2418 test ! -s conftest.err 2419 } && test -s conftest.$ac_objext; then : 2420 ac_retval=0 2421 else 2422 $as_echo "$as_me: failed program was:" >&5 2423 sed 's/^/| /' conftest.$ac_ext >&5 2424 2425 ac_retval=1 2426 fi 2427 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2428 as_fn_set_status $ac_retval 2429 2430 } # ac_fn_c_try_compile 2431 2432 # ac_fn_cxx_try_compile LINENO 2433 # ---------------------------- 2434 # Try to compile conftest.$ac_ext, and return whether this succeeded. 2435 ac_fn_cxx_try_compile () 2436 { 2437 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2438 rm -f conftest.$ac_objext 2439 if { { ac_try="$ac_compile" 2440 case "(($ac_try" in 2441 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2442 *) ac_try_echo=$ac_try;; 2443 esac 2444 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2445 $as_echo "$ac_try_echo"; } >&5 2446 (eval "$ac_compile") 2>conftest.err 2447 ac_status=$? 2448 if test -s conftest.err; then 2449 grep -v '^ *+' conftest.err >conftest.er1 2450 cat conftest.er1 >&5 2451 mv -f conftest.er1 conftest.err 2452 fi 2453 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2454 test $ac_status = 0; } && { 2455 test -z "$ac_cxx_werror_flag" || 2456 test ! -s conftest.err 2457 } && test -s conftest.$ac_objext; then : 2458 ac_retval=0 2459 else 2460 $as_echo "$as_me: failed program was:" >&5 2461 sed 's/^/| /' conftest.$ac_ext >&5 2462 2463 ac_retval=1 2464 fi 2465 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2466 as_fn_set_status $ac_retval 2467 2468 } # ac_fn_cxx_try_compile 2469 2470 # ac_fn_c_try_cpp LINENO 2471 # ---------------------- 2472 # Try to preprocess conftest.$ac_ext, and return whether this succeeded. 2473 ac_fn_c_try_cpp () 2474 { 2475 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2476 if { { ac_try="$ac_cpp conftest.$ac_ext" 2477 case "(($ac_try" in 2478 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2479 *) ac_try_echo=$ac_try;; 2480 esac 2481 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2482 $as_echo "$ac_try_echo"; } >&5 2483 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 2484 ac_status=$? 2485 if test -s conftest.err; then 2486 grep -v '^ *+' conftest.err >conftest.er1 2487 cat conftest.er1 >&5 2488 mv -f conftest.er1 conftest.err 2489 fi 2490 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2491 test $ac_status = 0; } > conftest.i && { 2492 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 2493 test ! -s conftest.err 2494 }; then : 2495 ac_retval=0 2496 else 2497 $as_echo "$as_me: failed program was:" >&5 2498 sed 's/^/| /' conftest.$ac_ext >&5 2499 2500 ac_retval=1 2501 fi 2502 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2503 as_fn_set_status $ac_retval 2504 2505 } # ac_fn_c_try_cpp 2506 2507 # ac_fn_cxx_try_cpp LINENO 2508 # ------------------------ 2509 # Try to preprocess conftest.$ac_ext, and return whether this succeeded. 2510 ac_fn_cxx_try_cpp () 2511 { 2512 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2513 if { { ac_try="$ac_cpp conftest.$ac_ext" 2514 case "(($ac_try" in 2515 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2516 *) ac_try_echo=$ac_try;; 2517 esac 2518 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2519 $as_echo "$ac_try_echo"; } >&5 2520 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 2521 ac_status=$? 2522 if test -s conftest.err; then 2523 grep -v '^ *+' conftest.err >conftest.er1 2524 cat conftest.er1 >&5 2525 mv -f conftest.er1 conftest.err 2526 fi 2527 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2528 test $ac_status = 0; } > conftest.i && { 2529 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || 2530 test ! -s conftest.err 2531 }; then : 2532 ac_retval=0 2533 else 2534 $as_echo "$as_me: failed program was:" >&5 2535 sed 's/^/| /' conftest.$ac_ext >&5 2536 2537 ac_retval=1 2538 fi 2539 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2540 as_fn_set_status $ac_retval 2541 2542 } # ac_fn_cxx_try_cpp 2543 2544 # ac_fn_c_try_link LINENO 2545 # ----------------------- 2546 # Try to link conftest.$ac_ext, and return whether this succeeded. 2547 ac_fn_c_try_link () 2548 { 2549 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2550 rm -f conftest.$ac_objext conftest$ac_exeext 2551 if { { ac_try="$ac_link" 2552 case "(($ac_try" in 2553 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2554 *) ac_try_echo=$ac_try;; 2555 esac 2556 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2557 $as_echo "$ac_try_echo"; } >&5 2558 (eval "$ac_link") 2>conftest.err 2559 ac_status=$? 2560 if test -s conftest.err; then 2561 grep -v '^ *+' conftest.err >conftest.er1 2562 cat conftest.er1 >&5 2563 mv -f conftest.er1 conftest.err 2564 fi 2565 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2566 test $ac_status = 0; } && { 2567 test -z "$ac_c_werror_flag" || 2568 test ! -s conftest.err 2569 } && test -s conftest$ac_exeext && { 2570 test "$cross_compiling" = yes || 2571 test -x conftest$ac_exeext 2572 }; then : 2573 ac_retval=0 2574 else 2575 $as_echo "$as_me: failed program was:" >&5 2576 sed 's/^/| /' conftest.$ac_ext >&5 2577 2578 ac_retval=1 2579 fi 2580 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 2581 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 2582 # interfere with the next link command; also delete a directory that is 2583 # left behind by Apple's compiler. We do this before executing the actions. 2584 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 2585 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2586 as_fn_set_status $ac_retval 2587 2588 } # ac_fn_c_try_link 2589 2590 # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES 2591 # --------------------------------------------------------- 2592 # Tests whether HEADER exists, giving a warning if it cannot be compiled using 2593 # the include files in INCLUDES and setting the cache variable VAR 2594 # accordingly. 2595 ac_fn_cxx_check_header_mongrel () 2596 { 2597 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2598 if eval \${$3+:} false; then : 2599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2600 $as_echo_n "checking for $2... " >&6; } 2601 if eval \${$3+:} false; then : 2602 $as_echo_n "(cached) " >&6 2603 fi 2604 eval ac_res=\$$3 2605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2606 $as_echo "$ac_res" >&6; } 2607 else 2608 # Is the header compilable? 2609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 2610 $as_echo_n "checking $2 usability... " >&6; } 2611 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2612 /* end confdefs.h. */ 2613 $4 2614 #include <$2> 2615 _ACEOF 2616 if ac_fn_cxx_try_compile "$LINENO"; then : 2617 ac_header_compiler=yes 2618 else 2619 ac_header_compiler=no 2620 fi 2621 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 2623 $as_echo "$ac_header_compiler" >&6; } 2624 2625 # Is the header present? 2626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 2627 $as_echo_n "checking $2 presence... " >&6; } 2628 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2629 /* end confdefs.h. */ 2630 #include <$2> 2631 _ACEOF 2632 if ac_fn_cxx_try_cpp "$LINENO"; then : 2633 ac_header_preproc=yes 2634 else 2635 ac_header_preproc=no 2636 fi 2637 rm -f conftest.err conftest.i conftest.$ac_ext 2638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 2639 $as_echo "$ac_header_preproc" >&6; } 2640 2641 # So? What about this header? 2642 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #(( 2643 yes:no: ) 2644 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 2645 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} 2646 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 2647 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 2648 ;; 2649 no:yes:* ) 2650 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 2651 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} 2652 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 2653 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} 2654 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 2655 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} 2656 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 2657 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} 2658 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 2659 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 2660 ( $as_echo "## ----------------------------------------- ## 2661 ## Report this to build-dev@openjdk.java.net ## 2662 ## ----------------------------------------- ##" 2663 ) | sed "s/^/$as_me: WARNING: /" >&2 2664 ;; 2665 esac 2666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2667 $as_echo_n "checking for $2... " >&6; } 2668 if eval \${$3+:} false; then : 2669 $as_echo_n "(cached) " >&6 2670 else 2671 eval "$3=\$ac_header_compiler" 2672 fi 2673 eval ac_res=\$$3 2674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2675 $as_echo "$ac_res" >&6; } 2676 fi 2677 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2678 2679 } # ac_fn_cxx_check_header_mongrel 2680 2681 # ac_fn_cxx_try_run LINENO 2682 # ------------------------ 2683 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 2684 # that executables *can* be run. 2685 ac_fn_cxx_try_run () 2686 { 2687 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2688 if { { ac_try="$ac_link" 2689 case "(($ac_try" in 2690 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2691 *) ac_try_echo=$ac_try;; 2692 esac 2693 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2694 $as_echo "$ac_try_echo"; } >&5 2695 (eval "$ac_link") 2>&5 2696 ac_status=$? 2697 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2698 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 2699 { { case "(($ac_try" in 2700 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2701 *) ac_try_echo=$ac_try;; 2702 esac 2703 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2704 $as_echo "$ac_try_echo"; } >&5 2705 (eval "$ac_try") 2>&5 2706 ac_status=$? 2707 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2708 test $ac_status = 0; }; }; then : 2709 ac_retval=0 2710 else 2711 $as_echo "$as_me: program exited with status $ac_status" >&5 2712 $as_echo "$as_me: failed program was:" >&5 2713 sed 's/^/| /' conftest.$ac_ext >&5 2714 2715 ac_retval=$ac_status 2716 fi 2717 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 2718 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2719 as_fn_set_status $ac_retval 2720 2721 } # ac_fn_cxx_try_run 2722 2723 # ac_fn_cxx_check_header_compile LINENO HEADER VAR INCLUDES 2724 # --------------------------------------------------------- 2725 # Tests whether HEADER exists and can be compiled using the include files in 2726 # INCLUDES, setting the cache variable VAR accordingly. 2727 ac_fn_cxx_check_header_compile () 2728 { 2729 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2731 $as_echo_n "checking for $2... " >&6; } 2732 if eval \${$3+:} false; then : 2733 $as_echo_n "(cached) " >&6 2734 else 2735 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2736 /* end confdefs.h. */ 2737 $4 2738 #include <$2> 2739 _ACEOF 2740 if ac_fn_cxx_try_compile "$LINENO"; then : 2741 eval "$3=yes" 2742 else 2743 eval "$3=no" 2744 fi 2745 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2746 fi 2747 eval ac_res=\$$3 2748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2749 $as_echo "$ac_res" >&6; } 2750 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2751 2752 } # ac_fn_cxx_check_header_compile 2753 2754 # ac_fn_cxx_compute_int LINENO EXPR VAR INCLUDES 2755 # ---------------------------------------------- 2756 # Tries to find the compile-time value of EXPR in a program that includes 2757 # INCLUDES, setting VAR accordingly. Returns whether the value could be 2758 # computed 2759 ac_fn_cxx_compute_int () 2760 { 2761 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2762 if test "$cross_compiling" = yes; then 2763 # Depending upon the size, compute the lo and hi bounds. 2764 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2765 /* end confdefs.h. */ 2766 $4 2767 int 2768 main () 2769 { 2770 static int test_array [1 - 2 * !(($2) >= 0)]; 2771 test_array [0] = 0; 2772 return test_array [0]; 2773 2774 ; 2775 return 0; 2776 } 2777 _ACEOF 2778 if ac_fn_cxx_try_compile "$LINENO"; then : 2779 ac_lo=0 ac_mid=0 2780 while :; do 2781 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2782 /* end confdefs.h. */ 2783 $4 2784 int 2785 main () 2786 { 2787 static int test_array [1 - 2 * !(($2) <= $ac_mid)]; 2788 test_array [0] = 0; 2789 return test_array [0]; 2790 2791 ; 2792 return 0; 2793 } 2794 _ACEOF 2795 if ac_fn_cxx_try_compile "$LINENO"; then : 2796 ac_hi=$ac_mid; break 2797 else 2798 as_fn_arith $ac_mid + 1 && ac_lo=$as_val 2799 if test $ac_lo -le $ac_mid; then 2800 ac_lo= ac_hi= 2801 break 2802 fi 2803 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val 2804 fi 2805 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2806 done 2807 else 2808 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2809 /* end confdefs.h. */ 2810 $4 2811 int 2812 main () 2813 { 2814 static int test_array [1 - 2 * !(($2) < 0)]; 2815 test_array [0] = 0; 2816 return test_array [0]; 2817 2818 ; 2819 return 0; 2820 } 2821 _ACEOF 2822 if ac_fn_cxx_try_compile "$LINENO"; then : 2823 ac_hi=-1 ac_mid=-1 2824 while :; do 2825 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2826 /* end confdefs.h. */ 2827 $4 2828 int 2829 main () 2830 { 2831 static int test_array [1 - 2 * !(($2) >= $ac_mid)]; 2832 test_array [0] = 0; 2833 return test_array [0]; 2834 2835 ; 2836 return 0; 2837 } 2838 _ACEOF 2839 if ac_fn_cxx_try_compile "$LINENO"; then : 2840 ac_lo=$ac_mid; break 2841 else 2842 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val 2843 if test $ac_mid -le $ac_hi; then 2844 ac_lo= ac_hi= 2845 break 2846 fi 2847 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val 2848 fi 2849 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2850 done 2851 else 2852 ac_lo= ac_hi= 2853 fi 2854 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2855 fi 2856 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2857 # Binary search between lo and hi bounds. 2858 while test "x$ac_lo" != "x$ac_hi"; do 2859 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val 2860 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2861 /* end confdefs.h. */ 2862 $4 2863 int 2864 main () 2865 { 2866 static int test_array [1 - 2 * !(($2) <= $ac_mid)]; 2867 test_array [0] = 0; 2868 return test_array [0]; 2869 2870 ; 2871 return 0; 2872 } 2873 _ACEOF 2874 if ac_fn_cxx_try_compile "$LINENO"; then : 2875 ac_hi=$ac_mid 2876 else 2877 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val 2878 fi 2879 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2880 done 2881 case $ac_lo in #(( 2882 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;; 2883 '') ac_retval=1 ;; 2884 esac 2885 else 2886 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2887 /* end confdefs.h. */ 2888 $4 2889 static long int longval () { return $2; } 2890 static unsigned long int ulongval () { return $2; } 2891 #include <stdio.h> 2892 #include <stdlib.h> 2893 int 2894 main () 2895 { 2896 2897 FILE *f = fopen ("conftest.val", "w"); 2898 if (! f) 2899 return 1; 2900 if (($2) < 0) 2901 { 2902 long int i = longval (); 2903 if (i != ($2)) 2904 return 1; 2905 fprintf (f, "%ld", i); 2906 } 2907 else 2908 { 2909 unsigned long int i = ulongval (); 2910 if (i != ($2)) 2911 return 1; 2912 fprintf (f, "%lu", i); 2913 } 2914 /* Do not output a trailing newline, as this causes \r\n confusion 2915 on some platforms. */ 2916 return ferror (f) || fclose (f) != 0; 2917 2918 ; 2919 return 0; 2920 } 2921 _ACEOF 2922 if ac_fn_cxx_try_run "$LINENO"; then : 2923 echo >>conftest.val; read $3 <conftest.val; ac_retval=0 2924 else 2925 ac_retval=1 2926 fi 2927 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 2928 conftest.$ac_objext conftest.beam conftest.$ac_ext 2929 rm -f conftest.val 2930 2931 fi 2932 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2933 as_fn_set_status $ac_retval 2934 2935 } # ac_fn_cxx_compute_int 2936 2937 # ac_fn_cxx_try_link LINENO 2938 # ------------------------- 2939 # Try to link conftest.$ac_ext, and return whether this succeeded. 2940 ac_fn_cxx_try_link () 2941 { 2942 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2943 rm -f conftest.$ac_objext conftest$ac_exeext 2944 if { { ac_try="$ac_link" 2945 case "(($ac_try" in 2946 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2947 *) ac_try_echo=$ac_try;; 2948 esac 2949 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2950 $as_echo "$ac_try_echo"; } >&5 2951 (eval "$ac_link") 2>conftest.err 2952 ac_status=$? 2953 if test -s conftest.err; then 2954 grep -v '^ *+' conftest.err >conftest.er1 2955 cat conftest.er1 >&5 2956 mv -f conftest.er1 conftest.err 2957 fi 2958 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2959 test $ac_status = 0; } && { 2960 test -z "$ac_cxx_werror_flag" || 2961 test ! -s conftest.err 2962 } && test -s conftest$ac_exeext && { 2963 test "$cross_compiling" = yes || 2964 test -x conftest$ac_exeext 2965 }; then : 2966 ac_retval=0 2967 else 2968 $as_echo "$as_me: failed program was:" >&5 2969 sed 's/^/| /' conftest.$ac_ext >&5 2970 2971 ac_retval=1 2972 fi 2973 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 2974 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 2975 # interfere with the next link command; also delete a directory that is 2976 # left behind by Apple's compiler. We do this before executing the actions. 2977 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 2978 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2979 as_fn_set_status $ac_retval 2980 2981 } # ac_fn_cxx_try_link 2982 2983 # ac_fn_cxx_check_func LINENO FUNC VAR 2984 # ------------------------------------ 2985 # Tests whether FUNC exists, setting the cache variable VAR accordingly 2986 ac_fn_cxx_check_func () 2987 { 2988 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2990 $as_echo_n "checking for $2... " >&6; } 2991 if eval \${$3+:} false; then : 2992 $as_echo_n "(cached) " >&6 2993 else 2994 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2995 /* end confdefs.h. */ 2996 /* Define $2 to an innocuous variant, in case <limits.h> declares $2. 2997 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 2998 #define $2 innocuous_$2 2999 3000 /* System header to define __stub macros and hopefully few prototypes, 3001 which can conflict with char $2 (); below. 3002 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3003 <limits.h> exists even on freestanding compilers. */ 3004 3005 #ifdef __STDC__ 3006 # include <limits.h> 3007 #else 3008 # include <assert.h> 3009 #endif 3010 3011 #undef $2 3012 3013 /* Override any GCC internal prototype to avoid an error. 3014 Use char because int might match the return type of a GCC 3015 builtin and then its argument prototype would still apply. */ 3016 #ifdef __cplusplus 3017 extern "C" 3018 #endif 3019 char $2 (); 3020 /* The GNU C library defines this for functions which it implements 3021 to always fail with ENOSYS. Some functions are actually named 3022 something starting with __ and the normal name is an alias. */ 3023 #if defined __stub_$2 || defined __stub___$2 3024 choke me 3025 #endif 3026 3027 int 3028 main () 3029 { 3030 return $2 (); 3031 ; 3032 return 0; 3033 } 3034 _ACEOF 3035 if ac_fn_cxx_try_link "$LINENO"; then : 3036 eval "$3=yes" 3037 else 3038 eval "$3=no" 3039 fi 3040 rm -f core conftest.err conftest.$ac_objext \ 3041 conftest$ac_exeext conftest.$ac_ext 3042 fi 3043 eval ac_res=\$$3 3044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 3045 $as_echo "$ac_res" >&6; } 3046 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 3047 3048 } # ac_fn_cxx_check_func 3049 3050 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 3051 # ------------------------------------------------------- 3052 # Tests whether HEADER exists and can be compiled using the include files in 3053 # INCLUDES, setting the cache variable VAR accordingly. 3054 ac_fn_c_check_header_compile () 3055 { 3056 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 3057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 3058 $as_echo_n "checking for $2... " >&6; } 3059 if eval \${$3+:} false; then : 3060 $as_echo_n "(cached) " >&6 3061 else 3062 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3063 /* end confdefs.h. */ 3064 $4 3065 #include <$2> 3066 _ACEOF 3067 if ac_fn_c_try_compile "$LINENO"; then : 3068 eval "$3=yes" 3069 else 3070 eval "$3=no" 3071 fi 3072 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3073 fi 3074 eval ac_res=\$$3 3075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 3076 $as_echo "$ac_res" >&6; } 3077 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 3078 3079 } # ac_fn_c_check_header_compile 3080 cat >config.log <<_ACEOF 3081 This file contains any messages produced by compilers while 3082 running configure, to aid debugging if configure makes a mistake. 3083 3084 It was created by OpenJDK $as_me jdk9, which was 3085 generated by GNU Autoconf 2.69. Invocation command line was 3086 3087 $ $0 $@ 3088 3089 _ACEOF 3090 exec 5>>config.log 3091 { 3092 cat <<_ASUNAME 3093 ## --------- ## 3094 ## Platform. ## 3095 ## --------- ## 3096 3097 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 3098 uname -m = `(uname -m) 2>/dev/null || echo unknown` 3099 uname -r = `(uname -r) 2>/dev/null || echo unknown` 3100 uname -s = `(uname -s) 2>/dev/null || echo unknown` 3101 uname -v = `(uname -v) 2>/dev/null || echo unknown` 3102 3103 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 3104 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 3105 3106 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 3107 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 3108 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 3109 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 3110 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 3111 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 3112 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 3113 3114 _ASUNAME 3115 3116 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3117 for as_dir in $PATH 3118 do 3119 IFS=$as_save_IFS 3120 test -z "$as_dir" && as_dir=. 3121 $as_echo "PATH: $as_dir" 3122 done 3123 IFS=$as_save_IFS 3124 3125 } >&5 3126 3127 cat >&5 <<_ACEOF 3128 3129 3130 ## ----------- ## 3131 ## Core tests. ## 3132 ## ----------- ## 3133 3134 _ACEOF 3135 3136 3137 # Keep a trace of the command line. 3138 # Strip out --no-create and --no-recursion so they do not pile up. 3139 # Strip out --silent because we don't want to record it for future runs. 3140 # Also quote any args containing shell meta-characters. 3141 # Make two passes to allow for proper duplicate-argument suppression. 3142 ac_configure_args= 3143 ac_configure_args0= 3144 ac_configure_args1= 3145 ac_must_keep_next=false 3146 for ac_pass in 1 2 3147 do 3148 for ac_arg 3149 do 3150 case $ac_arg in 3151 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 3152 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 3153 | -silent | --silent | --silen | --sile | --sil) 3154 continue ;; 3155 *\'*) 3156 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 3157 esac 3158 case $ac_pass in 3159 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 3160 2) 3161 as_fn_append ac_configure_args1 " '$ac_arg'" 3162 if test $ac_must_keep_next = true; then 3163 ac_must_keep_next=false # Got value, back to normal. 3164 else 3165 case $ac_arg in 3166 *=* | --config-cache | -C | -disable-* | --disable-* \ 3167 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 3168 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 3169 | -with-* | --with-* | -without-* | --without-* | --x) 3170 case "$ac_configure_args0 " in 3171 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 3172 esac 3173 ;; 3174 -* ) ac_must_keep_next=true ;; 3175 esac 3176 fi 3177 as_fn_append ac_configure_args " '$ac_arg'" 3178 ;; 3179 esac 3180 done 3181 done 3182 { ac_configure_args0=; unset ac_configure_args0;} 3183 { ac_configure_args1=; unset ac_configure_args1;} 3184 3185 # When interrupted or exit'd, cleanup temporary files, and complete 3186 # config.log. We remove comments because anyway the quotes in there 3187 # would cause problems or look ugly. 3188 # WARNING: Use '\'' to represent an apostrophe within the trap. 3189 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 3190 trap 'exit_status=$? 3191 # Save into config.log some information that might help in debugging. 3192 { 3193 echo 3194 3195 $as_echo "## ---------------- ## 3196 ## Cache variables. ## 3197 ## ---------------- ##" 3198 echo 3199 # The following way of writing the cache mishandles newlines in values, 3200 ( 3201 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 3202 eval ac_val=\$$ac_var 3203 case $ac_val in #( 3204 *${as_nl}*) 3205 case $ac_var in #( 3206 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 3207 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 3208 esac 3209 case $ac_var in #( 3210 _ | IFS | as_nl) ;; #( 3211 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 3212 *) { eval $ac_var=; unset $ac_var;} ;; 3213 esac ;; 3214 esac 3215 done 3216 (set) 2>&1 | 3217 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 3218 *${as_nl}ac_space=\ *) 3219 sed -n \ 3220 "s/'\''/'\''\\\\'\'''\''/g; 3221 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 3222 ;; #( 3223 *) 3224 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 3225 ;; 3226 esac | 3227 sort 3228 ) 3229 echo 3230 3231 $as_echo "## ----------------- ## 3232 ## Output variables. ## 3233 ## ----------------- ##" 3234 echo 3235 for ac_var in $ac_subst_vars 3236 do 3237 eval ac_val=\$$ac_var 3238 case $ac_val in 3239 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 3240 esac 3241 $as_echo "$ac_var='\''$ac_val'\''" 3242 done | sort 3243 echo 3244 3245 if test -n "$ac_subst_files"; then 3246 $as_echo "## ------------------- ## 3247 ## File substitutions. ## 3248 ## ------------------- ##" 3249 echo 3250 for ac_var in $ac_subst_files 3251 do 3252 eval ac_val=\$$ac_var 3253 case $ac_val in 3254 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 3255 esac 3256 $as_echo "$ac_var='\''$ac_val'\''" 3257 done | sort 3258 echo 3259 fi 3260 3261 if test -s confdefs.h; then 3262 $as_echo "## ----------- ## 3263 ## confdefs.h. ## 3264 ## ----------- ##" 3265 echo 3266 cat confdefs.h 3267 echo 3268 fi 3269 test "$ac_signal" != 0 && 3270 $as_echo "$as_me: caught signal $ac_signal" 3271 $as_echo "$as_me: exit $exit_status" 3272 } >&5 3273 rm -f core *.core core.conftest.* && 3274 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 3275 exit $exit_status 3276 ' 0 3277 for ac_signal in 1 2 13 15; do 3278 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 3279 done 3280 ac_signal=0 3281 3282 # confdefs.h avoids OS command line length limits that DEFS can exceed. 3283 rm -f -r conftest* confdefs.h 3284 3285 $as_echo "/* confdefs.h */" > confdefs.h 3286 3287 # Predefined preprocessor variables. 3288 3289 cat >>confdefs.h <<_ACEOF 3290 #define PACKAGE_NAME "$PACKAGE_NAME" 3291 _ACEOF 3292 3293 cat >>confdefs.h <<_ACEOF 3294 #define PACKAGE_TARNAME "$PACKAGE_TARNAME" 3295 _ACEOF 3296 3297 cat >>confdefs.h <<_ACEOF 3298 #define PACKAGE_VERSION "$PACKAGE_VERSION" 3299 _ACEOF 3300 3301 cat >>confdefs.h <<_ACEOF 3302 #define PACKAGE_STRING "$PACKAGE_STRING" 3303 _ACEOF 3304 3305 cat >>confdefs.h <<_ACEOF 3306 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 3307 _ACEOF 3308 3309 cat >>confdefs.h <<_ACEOF 3310 #define PACKAGE_URL "$PACKAGE_URL" 3311 _ACEOF 3312 3313 3314 # Let the site file select an alternate cache file if it wants to. 3315 # Prefer an explicitly selected file to automatically selected ones. 3316 ac_site_file1=NONE 3317 ac_site_file2=NONE 3318 if test -n "$CONFIG_SITE"; then 3319 # We do not want a PATH search for config.site. 3320 case $CONFIG_SITE in #(( 3321 -*) ac_site_file1=./$CONFIG_SITE;; 3322 */*) ac_site_file1=$CONFIG_SITE;; 3323 *) ac_site_file1=./$CONFIG_SITE;; 3324 esac 3325 elif test "x$prefix" != xNONE; then 3326 ac_site_file1=$prefix/share/config.site 3327 ac_site_file2=$prefix/etc/config.site 3328 else 3329 ac_site_file1=$ac_default_prefix/share/config.site 3330 ac_site_file2=$ac_default_prefix/etc/config.site 3331 fi 3332 for ac_site_file in "$ac_site_file1" "$ac_site_file2" 3333 do 3334 test "x$ac_site_file" = xNONE && continue 3335 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 3336 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 3337 $as_echo "$as_me: loading site script $ac_site_file" >&6;} 3338 sed 's/^/| /' "$ac_site_file" >&5 3339 . "$ac_site_file" \ 3340 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3341 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3342 as_fn_error $? "failed to load site script $ac_site_file 3343 See \`config.log' for more details" "$LINENO" 5; } 3344 fi 3345 done 3346 3347 if test -r "$cache_file"; then 3348 # Some versions of bash will fail to source /dev/null (special files 3349 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 3350 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 3351 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 3352 $as_echo "$as_me: loading cache $cache_file" >&6;} 3353 case $cache_file in 3354 [\\/]* | ?:[\\/]* ) . "$cache_file";; 3355 *) . "./$cache_file";; 3356 esac 3357 fi 3358 else 3359 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 3360 $as_echo "$as_me: creating cache $cache_file" >&6;} 3361 >$cache_file 3362 fi 3363 3364 # Check that the precious variables saved in the cache have kept the same 3365 # value. 3366 ac_cache_corrupted=false 3367 for ac_var in $ac_precious_vars; do 3368 eval ac_old_set=\$ac_cv_env_${ac_var}_set 3369 eval ac_new_set=\$ac_env_${ac_var}_set 3370 eval ac_old_val=\$ac_cv_env_${ac_var}_value 3371 eval ac_new_val=\$ac_env_${ac_var}_value 3372 case $ac_old_set,$ac_new_set in 3373 set,) 3374 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 3375 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 3376 ac_cache_corrupted=: ;; 3377 ,set) 3378 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 3379 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 3380 ac_cache_corrupted=: ;; 3381 ,);; 3382 *) 3383 if test "x$ac_old_val" != "x$ac_new_val"; then 3384 # differences in whitespace do not lead to failure. 3385 ac_old_val_w=`echo x $ac_old_val` 3386 ac_new_val_w=`echo x $ac_new_val` 3387 if test "$ac_old_val_w" != "$ac_new_val_w"; then 3388 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 3389 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 3390 ac_cache_corrupted=: 3391 else 3392 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 3393 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 3394 eval $ac_var=\$ac_old_val 3395 fi 3396 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 3397 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 3398 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 3399 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 3400 fi;; 3401 esac 3402 # Pass precious variables to config.status. 3403 if test "$ac_new_set" = set; then 3404 case $ac_new_val in 3405 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 3406 *) ac_arg=$ac_var=$ac_new_val ;; 3407 esac 3408 case " $ac_configure_args " in 3409 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 3410 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 3411 esac 3412 fi 3413 done 3414 if $ac_cache_corrupted; then 3415 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3416 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3417 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 3418 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 3419 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 3420 fi 3421 ## -------------------- ## 3422 ## Main body of script. ## 3423 ## -------------------- ## 3424 3425 ac_ext=c 3426 ac_cpp='$CPP $CPPFLAGS' 3427 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3428 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3429 ac_compiler_gnu=$ac_cv_c_compiler_gnu 3430 3431 3432 3433 ac_aux_dir= 3434 for ac_dir in $TOPDIR/common/autoconf/build-aux "$srcdir"/$TOPDIR/common/autoconf/build-aux; do 3435 if test -f "$ac_dir/install-sh"; then 3436 ac_aux_dir=$ac_dir 3437 ac_install_sh="$ac_aux_dir/install-sh -c" 3438 break 3439 elif test -f "$ac_dir/install.sh"; then 3440 ac_aux_dir=$ac_dir 3441 ac_install_sh="$ac_aux_dir/install.sh -c" 3442 break 3443 elif test -f "$ac_dir/shtool"; then 3444 ac_aux_dir=$ac_dir 3445 ac_install_sh="$ac_aux_dir/shtool install -c" 3446 break 3447 fi 3448 done 3449 if test -z "$ac_aux_dir"; then 3450 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 3451 fi 3452 3453 # These three variables are undocumented and unsupported, 3454 # and are intended to be withdrawn in a future Autoconf release. 3455 # They can cause serious problems if a builder's source tree is in a directory 3456 # whose full name contains unusual characters. 3457 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 3458 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 3459 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 3460 3461 3462 # pkg.m4 - Macros to locate and utilise pkg-config. -*- Autoconf -*- 3463 3464 # 3465 # Copyright (c) 2012, 2013, Oracle and/or its affiliates. All rights reserved. 3466 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 3467 # 3468 # This code is free software; you can redistribute it and/or modify it 3469 # under the terms of the GNU General Public License version 2 only, as 3470 # published by the Free Software Foundation. Oracle designates this 3471 # particular file as subject to the "Classpath" exception as provided 3472 # by Oracle in the LICENSE file that accompanied this code. 3473 # 3474 # This code is distributed in the hope that it will be useful, but WITHOUT 3475 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 3476 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 3477 # version 2 for more details (a copy is included in the LICENSE file that 3478 # accompanied this code). 3479 # 3480 # You should have received a copy of the GNU General Public License version 3481 # 2 along with this work; if not, write to the Free Software Foundation, 3482 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 3483 # 3484 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 3485 # or visit www.oracle.com if you need additional information or have any 3486 # questions. 3487 # 3488 3489 # 3490 # Copyright © 2004 Scott James Remnant <scott@netsplit.com>. 3491 # 3492 # This program is free software; you can redistribute it and/or modify 3493 # it under the terms of the GNU General Public License as published by 3494 # the Free Software Foundation; either version 2 of the License, or 3495 # (at your option) any later version. 3496 # 3497 # This program is distributed in the hope that it will be useful, but 3498 # WITHOUT ANY WARRANTY; without even the implied warranty of 3499 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 3500 # General Public License for more details. 3501 # 3502 # You should have received a copy of the GNU General Public License 3503 # along with this program; if not, write to the Free Software 3504 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. 3505 # 3506 # As a special exception to the GNU General Public License, if you 3507 # distribute this file as part of a program that contains a 3508 # configuration script generated by Autoconf, you may include it under 3509 # the same distribution terms that you use for the rest of that program. 3510 3511 # PKG_PROG_PKG_CONFIG([MIN-VERSION]) 3512 # ---------------------------------- 3513 # PKG_PROG_PKG_CONFIG 3514 3515 # PKG_CHECK_EXISTS(MODULES, [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND]) 3516 # 3517 # Check to see whether a particular set of modules exists. Similar 3518 # to PKG_CHECK_MODULES(), but does not set variables or print errors. 3519 # 3520 # 3521 # Similar to PKG_CHECK_MODULES, make sure that the first instance of 3522 # this or PKG_CHECK_MODULES is called, or make sure to call 3523 # PKG_CHECK_EXISTS manually 3524 # -------------------------------------------------------------- 3525 3526 3527 3528 # _PKG_CONFIG([VARIABLE], [COMMAND], [MODULES]) 3529 # --------------------------------------------- 3530 # _PKG_CONFIG 3531 3532 # _PKG_SHORT_ERRORS_SUPPORTED 3533 # ----------------------------- 3534 # _PKG_SHORT_ERRORS_SUPPORTED 3535 3536 3537 # PKG_CHECK_MODULES(VARIABLE-PREFIX, MODULES, [ACTION-IF-FOUND], 3538 # [ACTION-IF-NOT-FOUND]) 3539 # 3540 # 3541 # Note that if there is a possibility the first call to 3542 # PKG_CHECK_MODULES might not happen, you should be sure to include an 3543 # explicit call to PKG_PROG_PKG_CONFIG in your configure.ac 3544 # 3545 # 3546 # -------------------------------------------------------------- 3547 # PKG_CHECK_MODULES 3548 3549 3550 # Include these first... 3551 # 3552 # Copyright (c) 2011, 2016, Oracle and/or its affiliates. All rights reserved. 3553 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 3554 # 3555 # This code is free software; you can redistribute it and/or modify it 3556 # under the terms of the GNU General Public License version 2 only, as 3557 # published by the Free Software Foundation. Oracle designates this 3558 # particular file as subject to the "Classpath" exception as provided 3559 # by Oracle in the LICENSE file that accompanied this code. 3560 # 3561 # This code is distributed in the hope that it will be useful, but WITHOUT 3562 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 3563 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 3564 # version 2 for more details (a copy is included in the LICENSE file that 3565 # accompanied this code). 3566 # 3567 # You should have received a copy of the GNU General Public License version 3568 # 2 along with this work; if not, write to the Free Software Foundation, 3569 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 3570 # 3571 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 3572 # or visit www.oracle.com if you need additional information or have any 3573 # questions. 3574 # 3575 3576 # Create a function/macro that takes a series of named arguments. The call is 3577 # similar to AC_DEFUN, but the setup of the function looks like this: 3578 # BASIC_DEFUN_NAMED([MYFUNC], [FOO *BAR], [$@], [ 3579 # ... do something 3580 # AC_MSG_NOTICE([Value of BAR is ARG_BAR]) 3581 # ]) 3582 # A star (*) in front of a named argument means that it is required and it's 3583 # presence will be verified. To pass e.g. the first value as a normal indexed 3584 # argument, use [m4_shift($@)] as the third argument instead of [$@]. These 3585 # arguments are referenced in the function by their name prefixed by ARG_, e.g. 3586 # "ARG_FOO". 3587 # 3588 # The generated function can be called like this: 3589 # MYFUNC(FOO: [foo-val], 3590 # BAR: [ 3591 # $ECHO hello world 3592 # ]) 3593 # Note that the argument value must start on the same line as the argument name. 3594 # 3595 # Argument 1: Name of the function to define 3596 # Argument 2: List of legal named arguments, with a * prefix for required arguments 3597 # Argument 3: Argument array to treat as named, typically $@ 3598 # Argument 4: The main function body 3599 3600 3601 # Test if $1 is a valid argument to $3 (often is $JAVA passed as $3) 3602 # If so, then append $1 to $2 \ 3603 # Also set JVM_ARG_OK to true/false depending on outcome. 3604 3605 3606 # Appends a string to a path variable, only adding the : when needed. 3607 3608 3609 # Prepends a string to a path variable, only adding the : when needed. 3610 3611 3612 # This will make sure the given variable points to a full and proper 3613 # path. This means: 3614 # 1) There will be no spaces in the path. On unix platforms, 3615 # spaces in the path will result in an error. On Windows, 3616 # the path will be rewritten using short-style to be space-free. 3617 # 2) The path will be absolute, and it will be in unix-style (on 3618 # cygwin). 3619 # $1: The name of the variable to fix 3620 3621 3622 # This will make sure the given variable points to a executable 3623 # with a full and proper path. This means: 3624 # 1) There will be no spaces in the path. On unix platforms, 3625 # spaces in the path will result in an error. On Windows, 3626 # the path will be rewritten using short-style to be space-free. 3627 # 2) The path will be absolute, and it will be in unix-style (on 3628 # cygwin). 3629 # Any arguments given to the executable is preserved. 3630 # If the input variable does not have a directory specification, then 3631 # it need to be in the PATH. 3632 # $1: The name of the variable to fix 3633 3634 3635 3636 3637 # Register a --with argument but mark it as deprecated 3638 # $1: The name of the with argument to deprecate, not including --with- 3639 3640 3641 # Register a --enable argument but mark it as deprecated 3642 # $1: The name of the with argument to deprecate, not including --enable- 3643 # $2: The name of the argument to deprecate, in shell variable style (i.e. with _ instead of -) 3644 # $3: Messages to user. 3645 3646 3647 3648 3649 # Test that variable $1 denoting a program is not empty. If empty, exit with an error. 3650 # $1: variable to check 3651 3652 3653 # Check that there are no unprocessed overridden variables left. 3654 # If so, they are an incorrect argument and we will exit with an error. 3655 3656 3657 # Setup a tool for the given variable. If correctly specified by the user, 3658 # use that value, otherwise search for the tool using the supplied code snippet. 3659 # $1: variable to set 3660 # $2: code snippet to call to look for the tool 3661 # $3: code snippet to call if variable was used to find tool 3662 3663 3664 # Call BASIC_SETUP_TOOL with AC_PATH_PROGS to locate the tool 3665 # $1: variable to set 3666 # $2: executable name (or list of names) to look for 3667 3668 3669 # Call BASIC_SETUP_TOOL with AC_CHECK_TOOLS to locate the tool 3670 # $1: variable to set 3671 # $2: executable name (or list of names) to look for 3672 3673 3674 # Like BASIC_PATH_PROGS but fails if no tool was found. 3675 # $1: variable to set 3676 # $2: executable name (or list of names) to look for 3677 3678 3679 # Like BASIC_SETUP_TOOL but fails if no tool was found. 3680 # $1: variable to set 3681 # $2: autoconf macro to call to look for the special tool 3682 3683 3684 # Setup the most fundamental tools that relies on not much else to set up, 3685 # but is used by much of the early bootstrap code. 3686 3687 3688 # Setup basic configuration paths, and platform-specific stuff related to PATHs. 3689 3690 3691 # Evaluates platform specific overrides for devkit variables. 3692 # $1: Name of variable 3693 3694 3695 3696 3697 3698 3699 #%%% Simple tools %%% 3700 3701 # Check if we have found a usable version of make 3702 # $1: the path to a potential make binary (or empty) 3703 # $2: the description on how we found this 3704 3705 3706 3707 3708 # Goes looking for a usable version of GNU make. 3709 3710 3711 3712 3713 3714 3715 3716 3717 # Check if build directory is on local disk. If not possible to determine, 3718 # we prefer to claim it's local. 3719 # Argument 1: directory to test 3720 # Argument 2: what to do if it is on local disk 3721 # Argument 3: what to do otherwise (remote disk or failure) 3722 3723 3724 # Check that source files have basic read permissions set. This might 3725 # not be the case in cygwin in certain conditions. 3726 3727 3728 3729 3730 # Check for support for specific options in bash 3731 3732 3733 ################################################################################ 3734 # 3735 # Default make target 3736 # 3737 3738 3739 # Code to run after AC_OUTPUT 3740 3741 3742 # 3743 # Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved. 3744 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 3745 # 3746 # This code is free software; you can redistribute it and/or modify it 3747 # under the terms of the GNU General Public License version 2 only, as 3748 # published by the Free Software Foundation. Oracle designates this 3749 # particular file as subject to the "Classpath" exception as provided 3750 # by Oracle in the LICENSE file that accompanied this code. 3751 # 3752 # This code is distributed in the hope that it will be useful, but WITHOUT 3753 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 3754 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 3755 # version 2 for more details (a copy is included in the LICENSE file that 3756 # accompanied this code). 3757 # 3758 # You should have received a copy of the GNU General Public License version 3759 # 2 along with this work; if not, write to the Free Software Foundation, 3760 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 3761 # 3762 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 3763 # or visit www.oracle.com if you need additional information or have any 3764 # questions. 3765 # 3766 3767 3768 3769 3770 3771 # Helper function which possibly converts a path using DOS-style short mode. 3772 # If so, the updated path is stored in $new_path. 3773 # $1: The path to check 3774 3775 3776 # Helper function which possibly converts a path using DOS-style short mode. 3777 # If so, the updated path is stored in $new_path. 3778 # $1: The path to check 3779 3780 3781 # FIXME: The BASIC_FIXUP_*_CYGWIN/MSYS is most likely too convoluted 3782 # and could probably be heavily simplified. However, all changes in this 3783 # area tend to need lot of testing in different scenarios, and in lack of 3784 # proper unit testing, cleaning this up has not been deemed worth the effort 3785 # at the moment. 3786 3787 3788 3789 3790 3791 3792 3793 3794 3795 # Setup basic configuration paths, and platform-specific stuff related to PATHs. 3796 3797 3798 3799 3800 # ... then the rest 3801 # 3802 # Copyright (c) 2011, 2015, Oracle and/or its affiliates. All rights reserved. 3803 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 3804 # 3805 # This code is free software; you can redistribute it and/or modify it 3806 # under the terms of the GNU General Public License version 2 only, as 3807 # published by the Free Software Foundation. Oracle designates this 3808 # particular file as subject to the "Classpath" exception as provided 3809 # by Oracle in the LICENSE file that accompanied this code. 3810 # 3811 # This code is distributed in the hope that it will be useful, but WITHOUT 3812 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 3813 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 3814 # version 2 for more details (a copy is included in the LICENSE file that 3815 # accompanied this code). 3816 # 3817 # You should have received a copy of the GNU General Public License version 3818 # 2 along with this work; if not, write to the Free Software Foundation, 3819 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 3820 # 3821 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 3822 # or visit www.oracle.com if you need additional information or have any 3823 # questions. 3824 # 3825 3826 ######################################################################## 3827 # This file handles detection of the Boot JDK. The Boot JDK detection 3828 # process has been developed as a response to solve a complex real-world 3829 # problem. Initially, it was simple, but it has grown as platform after 3830 # platform, idiosyncracy after idiosyncracy has been supported. 3831 # 3832 # The basic idea is this: 3833 # 1) You need an acceptable *) JDK to use as a Boot JDK 3834 # 2) There are several ways to locate a JDK, that are mostly platform 3835 # dependent **) 3836 # 3) You can have multiple JDKs installed 3837 # 4) If possible, configure should try to dig out an acceptable JDK 3838 # automatically, without having to resort to command-line options 3839 # 3840 # *) acceptable means e.g. JDK7 for building JDK8, a complete JDK (with 3841 # javac) and not a JRE, etc. 3842 # 3843 # **) On Windows we typically use a well-known path. 3844 # On MacOSX we typically use the tool java_home. 3845 # On Linux we typically find javac in the $PATH, and then follow a 3846 # chain of symlinks that often ends up in a real JDK. 3847 # 3848 # This leads to the code where we check in different ways to locate a 3849 # JDK, and if one is found, check if it is acceptable. If not, we print 3850 # our reasons for rejecting it (useful when debugging non-working 3851 # configure situations) and continue checking the next one. 3852 ######################################################################## 3853 3854 # Execute the check given as argument, and verify the result 3855 # If the Boot JDK was previously found, do nothing 3856 # $1 A command line (typically autoconf macro) to execute 3857 3858 3859 # Test: Is bootjdk explicitely set by command line arguments? 3860 3861 3862 # Test: Is $JAVA_HOME set? 3863 3864 3865 # Test: Is there a java or javac in the PATH, which is a symlink to the JDK? 3866 3867 3868 # Test: Is there a /usr/libexec/java_home? (Typically on MacOSX) 3869 # $1: Argument to the java_home binary (optional) 3870 3871 3872 # Test: On MacOS X, can we find a boot jdk using /usr/libexec/java_home? 3873 3874 3875 # Look for a jdk in the given path. If there are multiple, try to select the newest. 3876 # If found, set BOOT_JDK and BOOT_JDK_FOUND. 3877 # $1 = Path to directory containing jdk installations. 3878 # $2 = String to append to the found JDK directory to get the proper JDK home 3879 3880 3881 # Call BOOTJDK_FIND_BEST_JDK_IN_DIRECTORY, but use the given 3882 # environmental variable as base for where to look. 3883 # $1 Name of an environmal variable, assumed to point to the Program Files directory. 3884 3885 3886 # Test: Is there a JDK installed in default, well-known locations? 3887 3888 3889 # Check that a command-line tool in the Boot JDK is correct 3890 # $1 = name of variable to assign 3891 # $2 = name of binary 3892 3893 3894 ############################################################################### 3895 # 3896 # We need a Boot JDK to bootstrap the build. 3897 # 3898 3899 3900 3901 3902 3903 # BUILD_JDK: the location of the latest JDK that can run 3904 # on the host system and supports the target class file version 3905 # generated in this JDK build. This variable should only be 3906 # used after the launchers are built. 3907 # 3908 3909 # Execute the check given as argument, and verify the result. 3910 # If the JDK was previously found, do nothing. 3911 # $1 A command line (typically autoconf macro) to execute 3912 3913 3914 # By default the BUILD_JDK is the JDK_OUTPUTDIR. If the target architecture 3915 # is different than the host system doing the build (e.g. cross-compilation), 3916 # a special BUILD_JDK is built as part of the build process. An external 3917 # prebuilt BUILD_JDK can also be supplied. 3918 3919 3920 # 3921 # Copyright (c) 2011, 2016, Oracle and/or its affiliates. All rights reserved. 3922 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 3923 # 3924 # This code is free software; you can redistribute it and/or modify it 3925 # under the terms of the GNU General Public License version 2 only, as 3926 # published by the Free Software Foundation. Oracle designates this 3927 # particular file as subject to the "Classpath" exception as provided 3928 # by Oracle in the LICENSE file that accompanied this code. 3929 # 3930 # This code is distributed in the hope that it will be useful, but WITHOUT 3931 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 3932 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 3933 # version 2 for more details (a copy is included in the LICENSE file that 3934 # accompanied this code). 3935 # 3936 # You should have received a copy of the GNU General Public License version 3937 # 2 along with this work; if not, write to the Free Software Foundation, 3938 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 3939 # 3940 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 3941 # or visit www.oracle.com if you need additional information or have any 3942 # questions. 3943 # 3944 3945 3946 3947 3948 3949 3950 3951 3952 3953 3954 3955 3956 3957 3958 3959 3960 3961 ################################################################################ 3962 # 3963 # Runs icecc-create-env once and prints the error if it fails 3964 # 3965 # $1: arguments to icecc-create-env 3966 # $2: log file 3967 # 3968 3969 3970 ################################################################################ 3971 # 3972 # Optionally enable distributed compilation of native code using icecc/icecream 3973 # 3974 3975 3976 3977 3978 3979 3980 3981 # 3982 # Copyright (c) 2011, 2016, Oracle and/or its affiliates. All rights reserved. 3983 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 3984 # 3985 # This code is free software; you can redistribute it and/or modify it 3986 # under the terms of the GNU General Public License version 2 only, as 3987 # published by the Free Software Foundation. Oracle designates this 3988 # particular file as subject to the "Classpath" exception as provided 3989 # by Oracle in the LICENSE file that accompanied this code. 3990 # 3991 # This code is distributed in the hope that it will be useful, but WITHOUT 3992 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 3993 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 3994 # version 2 for more details (a copy is included in the LICENSE file that 3995 # accompanied this code). 3996 # 3997 # You should have received a copy of the GNU General Public License version 3998 # 2 along with this work; if not, write to the Free Software Foundation, 3999 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 4000 # 4001 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 4002 # or visit www.oracle.com if you need additional information or have any 4003 # questions. 4004 # 4005 4006 # Reset the global CFLAGS/LDFLAGS variables and initialize them with the 4007 # corresponding configure arguments instead 4008 4009 4010 # Setup the sysroot flags and add them to global CFLAGS and LDFLAGS so 4011 # that configure can use them while detecting compilers. 4012 # TOOLCHAIN_TYPE is available here. 4013 # Param 1 - Optional prefix to all variables. (e.g BUILD_) 4014 4015 4016 4017 4018 4019 4020 # Documentation on common flags used for solstudio in HIGHEST. 4021 # 4022 # WARNING: Use of OPTIMIZATION_LEVEL=HIGHEST in your Makefile needs to be 4023 # done with care, there are some assumptions below that need to 4024 # be understood about the use of pointers, and IEEE behavior. 4025 # 4026 # -fns: Use non-standard floating point mode (not IEEE 754) 4027 # -fsimple: Do some simplification of floating point arithmetic (not IEEE 754) 4028 # -fsingle: Use single precision floating point with 'float' 4029 # -xalias_level=basic: Assume memory references via basic pointer types do not alias 4030 # (Source with excessing pointer casting and data access with mixed 4031 # pointer types are not recommended) 4032 # -xbuiltin=%all: Use intrinsic or inline versions for math/std functions 4033 # (If you expect perfect errno behavior, do not use this) 4034 # -xdepend: Loop data dependency optimizations (need -xO3 or higher) 4035 # -xrestrict: Pointer parameters to functions do not overlap 4036 # (Similar to -xalias_level=basic usage, but less obvious sometimes. 4037 # If you pass in multiple pointers to the same data, do not use this) 4038 # -xlibmil: Inline some library routines 4039 # (If you expect perfect errno behavior, do not use this) 4040 # -xlibmopt: Use optimized math routines (CURRENTLY DISABLED) 4041 # (If you expect perfect errno behavior, do not use this) 4042 # Can cause undefined external on Solaris 8 X86 on __sincos, removing for now 4043 4044 # FIXME: this will never happen since sparc != sparcv9, ie 32 bit, which we don't build anymore. 4045 # Bug? 4046 #if test "x$OPENJDK_TARGET_CPU" = xsparc; then 4047 # CFLAGS_JDK="${CFLAGS_JDK} -xmemalign=4s" 4048 # CXXFLAGS_JDK="${CXXFLAGS_JDK} -xmemalign=4s" 4049 #fi 4050 4051 4052 4053 4054 4055 4056 ################################################################################ 4057 # $1 - Either BUILD or TARGET to pick the correct OS/CPU variables to check 4058 # conditionals against. 4059 # $2 - Optional prefix for each variable defined. 4060 4061 4062 # FLAGS_C_COMPILER_CHECK_ARGUMENTS(ARGUMENT: [ARGUMENT], IF_TRUE: [RUN-IF-TRUE], 4063 # IF_FALSE: [RUN-IF-FALSE]) 4064 # ------------------------------------------------------------ 4065 # Check that the C compiler supports an argument 4066 4067 4068 4069 4070 # FLAGS_CXX_COMPILER_CHECK_ARGUMENTS(ARGUMENT: [ARGUMENT], IF_TRUE: [RUN-IF-TRUE], 4071 # IF_FALSE: [RUN-IF-FALSE]) 4072 # ------------------------------------------------------------ 4073 # Check that the C++ compiler supports an argument 4074 4075 4076 4077 4078 # FLAGS_COMPILER_CHECK_ARGUMENTS(ARGUMENT: [ARGUMENT], IF_TRUE: [RUN-IF-TRUE], 4079 # IF_FALSE: [RUN-IF-FALSE]) 4080 # ------------------------------------------------------------ 4081 # Check that the C and C++ compilers support an argument 4082 4083 4084 4085 4086 # FLAGS_LINKER_CHECK_ARGUMENTS(ARGUMENT: [ARGUMENT], IF_TRUE: [RUN-IF-TRUE], 4087 # IF_FALSE: [RUN-IF-FALSE]) 4088 # ------------------------------------------------------------ 4089 # Check that the linker support an argument 4090 4091 4092 4093 4094 4095 4096 4097 4098 # 4099 # Copyright (c) 2011, 2016, Oracle and/or its affiliates. All rights reserved. 4100 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4101 # 4102 # This code is free software; you can redistribute it and/or modify it 4103 # under the terms of the GNU General Public License version 2 only, as 4104 # published by the Free Software Foundation. Oracle designates this 4105 # particular file as subject to the "Classpath" exception as provided 4106 # by Oracle in the LICENSE file that accompanied this code. 4107 # 4108 # This code is distributed in the hope that it will be useful, but WITHOUT 4109 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 4110 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 4111 # version 2 for more details (a copy is included in the LICENSE file that 4112 # accompanied this code). 4113 # 4114 # You should have received a copy of the GNU General Public License version 4115 # 2 along with this work; if not, write to the Free Software Foundation, 4116 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 4117 # 4118 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 4119 # or visit www.oracle.com if you need additional information or have any 4120 # questions. 4121 # 4122 4123 4124 4125 4126 4127 cygwin_help() { 4128 case $1 in 4129 unzip) 4130 PKGHANDLER_COMMAND="( cd <location of cygwin setup.exe> && cmd /c setup -q -P unzip )" 4131 HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'." 4132 ;; 4133 zip) 4134 PKGHANDLER_COMMAND="( cd <location of cygwin setup.exe> && cmd /c setup -q -P zip )" 4135 HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'." 4136 ;; 4137 make) 4138 PKGHANDLER_COMMAND="( cd <location of cygwin setup.exe> && cmd /c setup -q -P make )" 4139 HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'." 4140 ;; 4141 freetype) 4142 HELP_MSG=" 4143 The freetype library can now be build during the configure process. 4144 Download the freetype sources and unpack them into an arbitrary directory: 4145 4146 wget http://download.savannah.gnu.org/releases/freetype/freetype-2.5.3.tar.gz 4147 tar -xzf freetype-2.5.3.tar.gz 4148 4149 Then run configure with '--with-freetype-src=<freetype_src>'. This will 4150 automatically build the freetype library into '<freetype_src>/lib64' for 64-bit 4151 builds or into '<freetype_src>/lib32' for 32-bit builds. 4152 Afterwards you can always use '--with-freetype-include=<freetype_src>/include' 4153 and '--with-freetype-lib=<freetype_src>/lib32|64' for other builds. 4154 4155 Alternatively you can unpack the sources like this to use the default directory: 4156 4157 tar --one-top-level=$HOME/freetype --strip-components=1 -xzf freetype-2.5.3.tar.gz" 4158 ;; 4159 esac 4160 } 4161 4162 msys_help() { 4163 PKGHANDLER_COMMAND="" 4164 } 4165 4166 apt_help() { 4167 case $1 in 4168 reduced) 4169 PKGHANDLER_COMMAND="sudo apt-get install gcc-multilib g++-multilib" ;; 4170 devkit) 4171 PKGHANDLER_COMMAND="sudo apt-get install build-essential" ;; 4172 openjdk) 4173 PKGHANDLER_COMMAND="sudo apt-get install openjdk-8-jdk" ;; 4174 alsa) 4175 PKGHANDLER_COMMAND="sudo apt-get install libasound2-dev" ;; 4176 cups) 4177 PKGHANDLER_COMMAND="sudo apt-get install libcups2-dev" ;; 4178 freetype) 4179 PKGHANDLER_COMMAND="sudo apt-get install libfreetype6-dev" ;; 4180 ffi) 4181 PKGHANDLER_COMMAND="sudo apt-get install libffi-dev" ;; 4182 x11) 4183 PKGHANDLER_COMMAND="sudo apt-get install libX11-dev libxext-dev libxrender-dev libxtst-dev libxt-dev" ;; 4184 ccache) 4185 PKGHANDLER_COMMAND="sudo apt-get install ccache" ;; 4186 dtrace) 4187 PKGHANDLER_COMMAND="sudo apt-get install systemtap-sdt-dev" ;; 4188 esac 4189 } 4190 4191 yum_help() { 4192 case $1 in 4193 devkit) 4194 PKGHANDLER_COMMAND="sudo yum groupinstall \"Development Tools\"" ;; 4195 openjdk) 4196 PKGHANDLER_COMMAND="sudo yum install java-1.8.0-openjdk-devel" ;; 4197 alsa) 4198 PKGHANDLER_COMMAND="sudo yum install alsa-lib-devel" ;; 4199 cups) 4200 PKGHANDLER_COMMAND="sudo yum install cups-devel" ;; 4201 freetype) 4202 PKGHANDLER_COMMAND="sudo yum install freetype-devel" ;; 4203 x11) 4204 PKGHANDLER_COMMAND="sudo yum install libXtst-devel libXt-devel libXrender-devel libXi-devel" ;; 4205 ccache) 4206 PKGHANDLER_COMMAND="sudo yum install ccache" ;; 4207 esac 4208 } 4209 4210 port_help() { 4211 PKGHANDLER_COMMAND="" 4212 } 4213 4214 pkgutil_help() { 4215 PKGHANDLER_COMMAND="" 4216 } 4217 4218 pkgadd_help() { 4219 PKGHANDLER_COMMAND="" 4220 } 4221 4222 # This function will check if we're called from the "configure" wrapper while 4223 # printing --help. If so, we will print out additional information that can 4224 # only be extracted within the autoconf script, and then exit. This must be 4225 # called at the very beginning in configure.ac. 4226 4227 4228 4229 4230 4231 4232 # 4233 # Copyright (c) 2011, 2016, Oracle and/or its affiliates. All rights reserved. 4234 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4235 # 4236 # This code is free software; you can redistribute it and/or modify it 4237 # under the terms of the GNU General Public License version 2 only, as 4238 # published by the Free Software Foundation. Oracle designates this 4239 # particular file as subject to the "Classpath" exception as provided 4240 # by Oracle in the LICENSE file that accompanied this code. 4241 # 4242 # This code is distributed in the hope that it will be useful, but WITHOUT 4243 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 4244 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 4245 # version 2 for more details (a copy is included in the LICENSE file that 4246 # accompanied this code). 4247 # 4248 # You should have received a copy of the GNU General Public License version 4249 # 2 along with this work; if not, write to the Free Software Foundation, 4250 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 4251 # 4252 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 4253 # or visit www.oracle.com if you need additional information or have any 4254 # questions. 4255 # 4256 4257 # All valid JVM features, regardless of platform 4258 VALID_JVM_FEATURES="compiler1 compiler2 zero shark minimal dtrace jvmti jvmci \ 4259 fprof vm-structs jni-check services management all-gcs nmt cds static-build" 4260 4261 # All valid JVM variants 4262 VALID_JVM_VARIANTS="server client minimal core zero zeroshark custom" 4263 4264 ############################################################################### 4265 # Check if the specified JVM variant should be built. To be used in shell if 4266 # constructs, like this: 4267 # if HOTSPOT_CHECK_JVM_VARIANT(server); then 4268 # 4269 # Only valid to use after HOTSPOT_SETUP_JVM_VARIANTS has setup variants. 4270 4271 # Definition kept in one line to allow inlining in if statements. 4272 # Additional [] needed to keep m4 from mangling shell constructs. 4273 4274 4275 ############################################################################### 4276 # Check if the specified JVM features are explicitly enabled. To be used in 4277 # shell if constructs, like this: 4278 # if HOTSPOT_CHECK_JVM_FEATURE(jvmti); then 4279 # 4280 # Only valid to use after HOTSPOT_SETUP_JVM_FEATURES has setup features. 4281 4282 # Definition kept in one line to allow inlining in if statements. 4283 # Additional [] needed to keep m4 from mangling shell constructs. 4284 4285 4286 ############################################################################### 4287 # Check which variants of the JVM that we want to build. Available variants are: 4288 # server: normal interpreter, and a tiered C1/C2 compiler 4289 # client: normal interpreter, and C1 (no C2 compiler) 4290 # minimal: reduced form of client with optional features stripped out 4291 # core: normal interpreter only, no compiler 4292 # zero: C++ based interpreter only, no compiler 4293 # zeroshark: C++ based interpreter, and a llvm-based compiler 4294 # custom: baseline JVM with no default features 4295 # 4296 4297 4298 ############################################################################### 4299 # Check if dtrace should be enabled and has all prerequisites present. 4300 # 4301 4302 4303 ############################################################################### 4304 # Set up all JVM features for each JVM variant. 4305 # 4306 4307 4308 ############################################################################### 4309 # Validate JVM features once all setup is complete, including custom setup. 4310 # 4311 4312 4313 ################################################################################ 4314 # Check if gtest should be built 4315 # 4316 4317 4318 # 4319 # Copyright (c) 2011, 2016, Oracle and/or its affiliates. All rights reserved. 4320 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4321 # 4322 # This code is free software; you can redistribute it and/or modify it 4323 # under the terms of the GNU General Public License version 2 only, as 4324 # published by the Free Software Foundation. Oracle designates this 4325 # particular file as subject to the "Classpath" exception as provided 4326 # by Oracle in the LICENSE file that accompanied this code. 4327 # 4328 # This code is distributed in the hope that it will be useful, but WITHOUT 4329 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 4330 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 4331 # version 2 for more details (a copy is included in the LICENSE file that 4332 # accompanied this code). 4333 # 4334 # You should have received a copy of the GNU General Public License version 4335 # 2 along with this work; if not, write to the Free Software Foundation, 4336 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 4337 # 4338 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 4339 # or visit www.oracle.com if you need additional information or have any 4340 # questions. 4341 # 4342 4343 ############################################################################### 4344 # Check which variant of the JDK that we want to build. 4345 # Currently we have: 4346 # normal: standard edition 4347 # but the custom make system may add other variants 4348 # 4349 # Effectively the JDK variant gives a name to a specific set of 4350 # modules to compile into the JDK. 4351 4352 4353 ############################################################################### 4354 # Set the debug level 4355 # release: no debug information, all optimizations, no asserts. 4356 # optimized: no debug information, all optimizations, no asserts, HotSpot target is 'optimized'. 4357 # fastdebug: debug information (-g), all optimizations, all asserts 4358 # slowdebug: debug information (-g), no optimizations, all asserts 4359 4360 4361 ############################################################################### 4362 # 4363 # Should we build only OpenJDK even if closed sources are present? 4364 # 4365 4366 4367 4368 4369 ############################################################################### 4370 # 4371 # Enable or disable the elliptic curve crypto implementation 4372 # 4373 4374 4375 4376 4377 ################################################################################ 4378 # 4379 # Gcov coverage data for hotspot 4380 # 4381 4382 4383 ################################################################################ 4384 # 4385 # Static build support. When enabled will generate static 4386 # libraries instead of shared libraries for all JDK libs. 4387 # 4388 4389 4390 ################################################################################ 4391 # 4392 # jlink options. 4393 # We always keep packaged modules in JDK image. 4394 # 4395 4396 4397 ################################################################################ 4398 # 4399 # Check if building of the jtreg failure handler should be enabled. 4400 # 4401 4402 4403 ################################################################################ 4404 # 4405 # Enable or disable generation of the classlist at build time 4406 # 4407 4408 4409 # 4410 # Copyright (c) 2015, Oracle and/or its affiliates. All rights reserved. 4411 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4412 # 4413 # This code is free software; you can redistribute it and/or modify it 4414 # under the terms of the GNU General Public License version 2 only, as 4415 # published by the Free Software Foundation. Oracle designates this 4416 # particular file as subject to the "Classpath" exception as provided 4417 # by Oracle in the LICENSE file that accompanied this code. 4418 # 4419 # This code is distributed in the hope that it will be useful, but WITHOUT 4420 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 4421 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 4422 # version 2 for more details (a copy is included in the LICENSE file that 4423 # accompanied this code). 4424 # 4425 # You should have received a copy of the GNU General Public License version 4426 # 2 along with this work; if not, write to the Free Software Foundation, 4427 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 4428 # 4429 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 4430 # or visit www.oracle.com if you need additional information or have any 4431 # questions. 4432 # 4433 4434 ############################################################################### 4435 # 4436 # Setup version numbers 4437 # 4438 4439 # Verify that a given string represents a valid version number, and assign it 4440 # to a variable. 4441 4442 # Argument 1: the variable to assign to 4443 # Argument 2: the value given by the user 4444 4445 4446 4447 4448 # 4449 # Copyright (c) 2011, 2016, Oracle and/or its affiliates. All rights reserved. 4450 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4451 # 4452 # This code is free software; you can redistribute it and/or modify it 4453 # under the terms of the GNU General Public License version 2 only, as 4454 # published by the Free Software Foundation. Oracle designates this 4455 # particular file as subject to the "Classpath" exception as provided 4456 # by Oracle in the LICENSE file that accompanied this code. 4457 # 4458 # This code is distributed in the hope that it will be useful, but WITHOUT 4459 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 4460 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 4461 # version 2 for more details (a copy is included in the LICENSE file that 4462 # accompanied this code). 4463 # 4464 # You should have received a copy of the GNU General Public License version 4465 # 2 along with this work; if not, write to the Free Software Foundation, 4466 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 4467 # 4468 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 4469 # or visit www.oracle.com if you need additional information or have any 4470 # questions. 4471 # 4472 4473 # Major library component reside in separate files. 4474 # 4475 # Copyright (c) 2011, 2015, Oracle and/or its affiliates. All rights reserved. 4476 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4477 # 4478 # This code is free software; you can redistribute it and/or modify it 4479 # under the terms of the GNU General Public License version 2 only, as 4480 # published by the Free Software Foundation. Oracle designates this 4481 # particular file as subject to the "Classpath" exception as provided 4482 # by Oracle in the LICENSE file that accompanied this code. 4483 # 4484 # This code is distributed in the hope that it will be useful, but WITHOUT 4485 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 4486 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 4487 # version 2 for more details (a copy is included in the LICENSE file that 4488 # accompanied this code). 4489 # 4490 # You should have received a copy of the GNU General Public License version 4491 # 2 along with this work; if not, write to the Free Software Foundation, 4492 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 4493 # 4494 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 4495 # or visit www.oracle.com if you need additional information or have any 4496 # questions. 4497 # 4498 4499 ################################################################################ 4500 # Setup alsa (Advanced Linux Sound Architecture) 4501 ################################################################################ 4502 4503 4504 # 4505 # Copyright (c) 2011, 2015, Oracle and/or its affiliates. All rights reserved. 4506 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4507 # 4508 # This code is free software; you can redistribute it and/or modify it 4509 # under the terms of the GNU General Public License version 2 only, as 4510 # published by the Free Software Foundation. Oracle designates this 4511 # particular file as subject to the "Classpath" exception as provided 4512 # by Oracle in the LICENSE file that accompanied this code. 4513 # 4514 # This code is distributed in the hope that it will be useful, but WITHOUT 4515 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 4516 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 4517 # version 2 for more details (a copy is included in the LICENSE file that 4518 # accompanied this code). 4519 # 4520 # You should have received a copy of the GNU General Public License version 4521 # 2 along with this work; if not, write to the Free Software Foundation, 4522 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 4523 # 4524 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 4525 # or visit www.oracle.com if you need additional information or have any 4526 # questions. 4527 # 4528 4529 ################################################################################ 4530 # Setup bundled libraries. 4531 # 4532 # For libjpeg, giflib, libpng, lcms2 and zlib, the source is present in the 4533 # OpenJDK repository. Default is to use these libraries as bundled, but they 4534 # might be replaced by en external version by the user. 4535 ################################################################################ 4536 4537 4538 ################################################################################ 4539 # Setup libjpeg 4540 ################################################################################ 4541 4542 4543 ################################################################################ 4544 # Setup giflib 4545 ################################################################################ 4546 4547 4548 ################################################################################ 4549 # Setup libpng 4550 ################################################################################ 4551 4552 4553 ################################################################################ 4554 # Setup zlib 4555 ################################################################################ 4556 4557 4558 ################################################################################ 4559 # Setup lcms (Little CMS) 4560 ################################################################################ 4561 4562 4563 # 4564 # Copyright (c) 2011, 2016, Oracle and/or its affiliates. All rights reserved. 4565 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4566 # 4567 # This code is free software; you can redistribute it and/or modify it 4568 # under the terms of the GNU General Public License version 2 only, as 4569 # published by the Free Software Foundation. Oracle designates this 4570 # particular file as subject to the "Classpath" exception as provided 4571 # by Oracle in the LICENSE file that accompanied this code. 4572 # 4573 # This code is distributed in the hope that it will be useful, but WITHOUT 4574 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 4575 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 4576 # version 2 for more details (a copy is included in the LICENSE file that 4577 # accompanied this code). 4578 # 4579 # You should have received a copy of the GNU General Public License version 4580 # 2 along with this work; if not, write to the Free Software Foundation, 4581 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 4582 # 4583 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 4584 # or visit www.oracle.com if you need additional information or have any 4585 # questions. 4586 # 4587 4588 ################################################################################ 4589 # Setup cups (Common Unix Printing System) 4590 ################################################################################ 4591 4592 4593 # 4594 # Copyright (c) 2015, Oracle and/or its affiliates. All rights reserved. 4595 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4596 # 4597 # This code is free software; you can redistribute it and/or modify it 4598 # under the terms of the GNU General Public License version 2 only, as 4599 # published by the Free Software Foundation. Oracle designates this 4600 # particular file as subject to the "Classpath" exception as provided 4601 # by Oracle in the LICENSE file that accompanied this code. 4602 # 4603 # This code is distributed in the hope that it will be useful, but WITHOUT 4604 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 4605 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 4606 # version 2 for more details (a copy is included in the LICENSE file that 4607 # accompanied this code). 4608 # 4609 # You should have received a copy of the GNU General Public License version 4610 # 2 along with this work; if not, write to the Free Software Foundation, 4611 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 4612 # 4613 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 4614 # or visit www.oracle.com if you need additional information or have any 4615 # questions. 4616 # 4617 4618 ################################################################################ 4619 # Setup libffi (Foreign Function Interface) 4620 ################################################################################ 4621 4622 4623 # 4624 # Copyright (c) 2011, 2015, Oracle and/or its affiliates. All rights reserved. 4625 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4626 # 4627 # This code is free software; you can redistribute it and/or modify it 4628 # under the terms of the GNU General Public License version 2 only, as 4629 # published by the Free Software Foundation. Oracle designates this 4630 # particular file as subject to the "Classpath" exception as provided 4631 # by Oracle in the LICENSE file that accompanied this code. 4632 # 4633 # This code is distributed in the hope that it will be useful, but WITHOUT 4634 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 4635 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 4636 # version 2 for more details (a copy is included in the LICENSE file that 4637 # accompanied this code). 4638 # 4639 # You should have received a copy of the GNU General Public License version 4640 # 2 along with this work; if not, write to the Free Software Foundation, 4641 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 4642 # 4643 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 4644 # or visit www.oracle.com if you need additional information or have any 4645 # questions. 4646 # 4647 4648 ################################################################################ 4649 # Build the freetype lib from source 4650 ################################################################################ 4651 4652 4653 ################################################################################ 4654 # Check if a potential freeype library match is correct and usable 4655 ################################################################################ 4656 4657 4658 ################################################################################ 4659 # Setup freetype (The FreeType2 font rendering library) 4660 ################################################################################ 4661 4662 4663 # 4664 # Copyright (c) 2011, 2016, Oracle and/or its affiliates. All rights reserved. 4665 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4666 # 4667 # This code is free software; you can redistribute it and/or modify it 4668 # under the terms of the GNU General Public License version 2 only, as 4669 # published by the Free Software Foundation. Oracle designates this 4670 # particular file as subject to the "Classpath" exception as provided 4671 # by Oracle in the LICENSE file that accompanied this code. 4672 # 4673 # This code is distributed in the hope that it will be useful, but WITHOUT 4674 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 4675 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 4676 # version 2 for more details (a copy is included in the LICENSE file that 4677 # accompanied this code). 4678 # 4679 # You should have received a copy of the GNU General Public License version 4680 # 2 along with this work; if not, write to the Free Software Foundation, 4681 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 4682 # 4683 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 4684 # or visit www.oracle.com if you need additional information or have any 4685 # questions. 4686 # 4687 4688 ################################################################################ 4689 # Setup the standard C/C++ runtime libraries. 4690 # 4691 # Most importantly, determine if stdc++ should be linked statically or 4692 # dynamically. 4693 ################################################################################ 4694 4695 4696 # 4697 # Copyright (c) 2011, 2015, Oracle and/or its affiliates. All rights reserved. 4698 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4699 # 4700 # This code is free software; you can redistribute it and/or modify it 4701 # under the terms of the GNU General Public License version 2 only, as 4702 # published by the Free Software Foundation. Oracle designates this 4703 # particular file as subject to the "Classpath" exception as provided 4704 # by Oracle in the LICENSE file that accompanied this code. 4705 # 4706 # This code is distributed in the hope that it will be useful, but WITHOUT 4707 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 4708 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 4709 # version 2 for more details (a copy is included in the LICENSE file that 4710 # accompanied this code). 4711 # 4712 # You should have received a copy of the GNU General Public License version 4713 # 2 along with this work; if not, write to the Free Software Foundation, 4714 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 4715 # 4716 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 4717 # or visit www.oracle.com if you need additional information or have any 4718 # questions. 4719 # 4720 4721 ################################################################################ 4722 # Setup X11 Windows system 4723 ################################################################################ 4724 4725 4726 4727 ################################################################################ 4728 # Determine which libraries are needed for this configuration 4729 ################################################################################ 4730 4731 4732 ################################################################################ 4733 # Parse library options, and setup needed libraries 4734 ################################################################################ 4735 4736 4737 ################################################################################ 4738 # Setup llvm (Low-Level VM) 4739 ################################################################################ 4740 4741 4742 ################################################################################ 4743 # Setup various libraries, typically small system libraries 4744 ################################################################################ 4745 4746 4747 ################################################################################ 4748 # libstlport.so.1 is needed for running gtest on Solaris. Find it to 4749 # redistribute it in the test image. 4750 ################################################################################ 4751 4752 4753 4754 # 4755 # Copyright (c) 2011, 2016, Oracle and/or its affiliates. All rights reserved. 4756 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4757 # 4758 # This code is free software; you can redistribute it and/or modify it 4759 # under the terms of the GNU General Public License version 2 only, as 4760 # published by the Free Software Foundation. Oracle designates this 4761 # particular file as subject to the "Classpath" exception as provided 4762 # by Oracle in the LICENSE file that accompanied this code. 4763 # 4764 # This code is distributed in the hope that it will be useful, but WITHOUT 4765 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 4766 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 4767 # version 2 for more details (a copy is included in the LICENSE file that 4768 # accompanied this code). 4769 # 4770 # You should have received a copy of the GNU General Public License version 4771 # 2 along with this work; if not, write to the Free Software Foundation, 4772 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 4773 # 4774 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 4775 # or visit www.oracle.com if you need additional information or have any 4776 # questions. 4777 # 4778 4779 # Support macro for PLATFORM_EXTRACT_TARGET_AND_BUILD. 4780 # Converts autoconf style CPU name to OpenJDK style, into 4781 # VAR_CPU, VAR_CPU_ARCH, VAR_CPU_BITS and VAR_CPU_ENDIAN. 4782 4783 4784 # Support macro for PLATFORM_EXTRACT_TARGET_AND_BUILD. 4785 # Converts autoconf style OS name to OpenJDK style, into 4786 # VAR_OS, VAR_OS_TYPE and VAR_OS_ENV. 4787 4788 4789 # Expects $host_os $host_cpu $build_os and $build_cpu 4790 # and $with_target_bits to have been setup! 4791 # 4792 # Translate the standard triplet(quadruplet) definition 4793 # of the target/build system into OPENJDK_TARGET_OS, OPENJDK_TARGET_CPU, 4794 # OPENJDK_BUILD_OS, etc. 4795 4796 4797 # Check if a reduced build (32-bit on 64-bit platforms) is requested, and modify behaviour 4798 # accordingly. Must be done after setting up build and target system, but before 4799 # doing anything else with these values. 4800 4801 4802 # Setup the legacy variables, for controlling the old makefiles. 4803 # 4804 4805 4806 # $1 - Either TARGET or BUILD to setup the variables for. 4807 4808 4809 4810 4811 #%%% Build and target systems %%% 4812 4813 4814 4815 4816 # Support macro for PLATFORM_SETUP_OPENJDK_TARGET_BITS. 4817 # Add -mX to various FLAGS variables. 4818 4819 4820 4821 4822 4823 4824 # 4825 # Copyright (c) 2011, 2015, Oracle and/or its affiliates. All rights reserved. 4826 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4827 # 4828 # This code is free software; you can redistribute it and/or modify it 4829 # under the terms of the GNU General Public License version 2 only, as 4830 # published by the Free Software Foundation. Oracle designates this 4831 # particular file as subject to the "Classpath" exception as provided 4832 # by Oracle in the LICENSE file that accompanied this code. 4833 # 4834 # This code is distributed in the hope that it will be useful, but WITHOUT 4835 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 4836 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 4837 # version 2 for more details (a copy is included in the LICENSE file that 4838 # accompanied this code). 4839 # 4840 # You should have received a copy of the GNU General Public License version 4841 # 2 along with this work; if not, write to the Free Software Foundation, 4842 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 4843 # 4844 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 4845 # or visit www.oracle.com if you need additional information or have any 4846 # questions. 4847 # 4848 4849 4850 4851 4852 4853 4854 4855 ################################################################################ 4856 # Define a mechanism for importing extra prebuilt modules 4857 # 4858 4859 4860 4861 # 4862 # Copyright (c) 2011, 2016, Oracle and/or its affiliates. All rights reserved. 4863 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4864 # 4865 # This code is free software; you can redistribute it and/or modify it 4866 # under the terms of the GNU General Public License version 2 only, as 4867 # published by the Free Software Foundation. Oracle designates this 4868 # particular file as subject to the "Classpath" exception as provided 4869 # by Oracle in the LICENSE file that accompanied this code. 4870 # 4871 # This code is distributed in the hope that it will be useful, but WITHOUT 4872 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 4873 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 4874 # version 2 for more details (a copy is included in the LICENSE file that 4875 # accompanied this code). 4876 # 4877 # You should have received a copy of the GNU General Public License version 4878 # 2 along with this work; if not, write to the Free Software Foundation, 4879 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 4880 # 4881 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 4882 # or visit www.oracle.com if you need additional information or have any 4883 # questions. 4884 # 4885 4886 ######################################################################## 4887 # This file is responsible for detecting, verifying and setting up the 4888 # toolchain, i.e. the compiler, linker and related utilities. It will setup 4889 # proper paths to the binaries, but it will not setup any flags. 4890 # 4891 # The binaries used is determined by the toolchain type, which is the family of 4892 # compilers and related tools that are used. 4893 ######################################################################## 4894 4895 4896 # All valid toolchains, regardless of platform (used by help.m4) 4897 VALID_TOOLCHAINS_all="gcc clang solstudio xlc microsoft" 4898 4899 # These toolchains are valid on different platforms 4900 VALID_TOOLCHAINS_linux="gcc clang" 4901 VALID_TOOLCHAINS_solaris="solstudio" 4902 VALID_TOOLCHAINS_macosx="gcc clang" 4903 VALID_TOOLCHAINS_aix="xlc" 4904 VALID_TOOLCHAINS_windows="microsoft" 4905 4906 # Toolchain descriptions 4907 TOOLCHAIN_DESCRIPTION_clang="clang/LLVM" 4908 TOOLCHAIN_DESCRIPTION_gcc="GNU Compiler Collection" 4909 TOOLCHAIN_DESCRIPTION_microsoft="Microsoft Visual Studio" 4910 TOOLCHAIN_DESCRIPTION_solstudio="Oracle Solaris Studio" 4911 TOOLCHAIN_DESCRIPTION_xlc="IBM XL C/C++" 4912 4913 # Minimum supported versions, empty means unspecified 4914 TOOLCHAIN_MINIMUM_VERSION_clang="3.2" 4915 TOOLCHAIN_MINIMUM_VERSION_gcc="4.3" 4916 TOOLCHAIN_MINIMUM_VERSION_microsoft="" 4917 TOOLCHAIN_MINIMUM_VERSION_solstudio="5.12" 4918 TOOLCHAIN_MINIMUM_VERSION_xlc="" 4919 4920 # Prepare the system so that TOOLCHAIN_CHECK_COMPILER_VERSION can be called. 4921 # Must have CC_VERSION_NUMBER and CXX_VERSION_NUMBER. 4922 # $1 - optional variable prefix for compiler and version variables (BUILD_) 4923 # $2 - optional variable prefix for comparable variable (OPENJDK_BUILD_) 4924 4925 4926 # Check if the configured compiler (C and C++) is of a specific version or 4927 # newer. TOOLCHAIN_PREPARE_FOR_VERSION_COMPARISONS must have been called before. 4928 # 4929 # Arguments: 4930 # VERSION: The version string to check against the found version 4931 # IF_AT_LEAST: block to run if the compiler is at least this version (>=) 4932 # IF_OLDER_THAN: block to run if the compiler is older than this version (<) 4933 # PREFIX: Optional variable prefix for compiler to compare version for (OPENJDK_BUILD_) 4934 4935 4936 4937 4938 # Setup a number of variables describing how native output files are 4939 # named on this platform/toolchain. 4940 4941 4942 # Determine which toolchain type to use, and make sure it is valid for this 4943 # platform. Setup various information about the selected toolchain. 4944 4945 4946 # Before we start detecting the toolchain executables, we might need some 4947 # special setup, e.g. additional paths etc. 4948 4949 4950 # Restore path, etc 4951 4952 4953 # Check if a compiler is of the toolchain type we expect, and save the version 4954 # information from it. If the compiler does not match the expected type, 4955 # this function will abort using AC_MSG_ERROR. If it matches, the version will 4956 # be stored in CC_VERSION_NUMBER/CXX_VERSION_NUMBER (as a dotted number), and 4957 # the full version string in CC_VERSION_STRING/CXX_VERSION_STRING. 4958 # 4959 # $1 = compiler to test (CC or CXX) 4960 # $2 = human readable name of compiler (C or C++) 4961 4962 4963 # Try to locate the given C or C++ compiler in the path, or otherwise. 4964 # 4965 # $1 = compiler to test (CC or CXX) 4966 # $2 = human readable name of compiler (C or C++) 4967 # $3 = list of compiler names to search for 4968 4969 4970 # Detect the core components of the toolchain, i.e. the compilers (CC and CXX), 4971 # preprocessor (CPP and CXXCPP), the linker (LD), the assembler (AS) and the 4972 # archiver (AR). Verify that the compilers are correct according to the 4973 # toolchain type. 4974 4975 4976 # Setup additional tools that is considered a part of the toolchain, but not the 4977 # core part. Many of these are highly platform-specific and do not exist, 4978 # and/or are not needed on all platforms. 4979 4980 4981 # Setup the build tools (i.e, the compiler and linker used to build programs 4982 # that should be run on the build platform, not the target platform, as a build 4983 # helper). Since the non-cross-compile case uses the normal, target compilers 4984 # for this, we can only do this after these have been setup. 4985 4986 4987 # Setup legacy variables that are still needed as alternative ways to refer to 4988 # parts of the toolchain. 4989 4990 4991 # Do some additional checks on the detected tools. 4992 4993 4994 # Setup the JTReg Regression Test Harness. 4995 4996 4997 # 4998 # Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved. 4999 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 5000 # 5001 # This code is free software; you can redistribute it and/or modify it 5002 # under the terms of the GNU General Public License version 2 only, as 5003 # published by the Free Software Foundation. Oracle designates this 5004 # particular file as subject to the "Classpath" exception as provided 5005 # by Oracle in the LICENSE file that accompanied this code. 5006 # 5007 # This code is distributed in the hope that it will be useful, but WITHOUT 5008 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 5009 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 5010 # version 2 for more details (a copy is included in the LICENSE file that 5011 # accompanied this code). 5012 # 5013 # You should have received a copy of the GNU General Public License version 5014 # 2 along with this work; if not, write to the Free Software Foundation, 5015 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 5016 # 5017 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 5018 # or visit www.oracle.com if you need additional information or have any 5019 # questions. 5020 # 5021 5022 ################################################################################ 5023 # The order of these defines the priority by which we try to find them. 5024 VALID_VS_VERSIONS="2013 2012 2010" 5025 5026 VS_DESCRIPTION_2010="Microsoft Visual Studio 2010" 5027 VS_VERSION_INTERNAL_2010=100 5028 VS_MSVCR_2010=msvcr100.dll 5029 # We don't use msvcp on Visual Studio 2010 5030 #VS_MSVCP_2010=msvcp100.dll 5031 VS_ENVVAR_2010="VS100COMNTOOLS" 5032 VS_VS_INSTALLDIR_2010="Microsoft Visual Studio 10.0" 5033 VS_SDK_INSTALLDIR_2010="Microsoft SDKs/Windows/v7.1" 5034 VS_VS_PLATFORM_NAME_2010="v100" 5035 VS_SDK_PLATFORM_NAME_2010="Windows7.1SDK" 5036 5037 VS_DESCRIPTION_2012="Microsoft Visual Studio 2012" 5038 VS_VERSION_INTERNAL_2012=110 5039 VS_MSVCR_2012=msvcr110.dll 5040 VS_MSVCP_2012=msvcp110.dll 5041 VS_ENVVAR_2012="VS110COMNTOOLS" 5042 VS_VS_INSTALLDIR_2012="Microsoft Visual Studio 11.0" 5043 VS_SDK_INSTALLDIR_2012= 5044 VS_VS_PLATFORM_NAME_2012="v110" 5045 VS_SDK_PLATFORM_NAME_2012= 5046 5047 VS_DESCRIPTION_2013="Microsoft Visual Studio 2013" 5048 VS_VERSION_INTERNAL_2013=120 5049 VS_MSVCR_2013=msvcr120.dll 5050 VS_MSVCP_2013=msvcp120.dll 5051 VS_ENVVAR_2013="VS120COMNTOOLS" 5052 VS_VS_INSTALLDIR_2013="Microsoft Visual Studio 12.0" 5053 VS_SDK_INSTALLDIR_2013= 5054 VS_VS_PLATFORM_NAME_2013="v120" 5055 VS_SDK_PLATFORM_NAME_2013= 5056 5057 ################################################################################ 5058 5059 5060 5061 ################################################################################ 5062 5063 5064 5065 ################################################################################ 5066 # Finds the bat or cmd file in Visual Studio or the SDK that sets up a proper 5067 # build environment and assigns it to VS_ENV_CMD 5068 5069 5070 ################################################################################ 5071 5072 5073 5074 ################################################################################ 5075 # Check if the VS env variables were setup prior to running configure. 5076 # If not, then find vcvarsall.bat and run it automatically, and integrate 5077 # the set env variables into the spec file. 5078 5079 5080 5081 5082 5083 5084 5085 5086 5087 5088 5089 5090 5091 5092 # This line needs to be here, verbatim, after all includes and the dummy hook 5093 # definitions. It is replaced with custom functionality when building 5094 # custom sources. 5095 #CUSTOM_AUTOCONF_INCLUDE 5096 5097 # Do not change or remove the following line, it is needed for consistency checks: 5098 DATE_WHEN_GENERATED=1467223237 5099 5100 ############################################################################### 5101 # 5102 # Initialization / Boot-strapping 5103 # 5104 # The bootstrapping process needs to solve the "chicken or the egg" problem, 5105 # thus it jumps back and forth, each time gaining something needed later on. 5106 # 5107 ############################################################################### 5108 5109 # If we are requested to print additional help, do that and then exit. 5110 # This must be the very first call. 5111 5112 if test "x$CONFIGURE_PRINT_ADDITIONAL_HELP" != x; then 5113 5114 # Print available toolchains 5115 $PRINTF "The following toolchains are available as arguments to --with-toolchain-type.\n" 5116 $PRINTF "Which are valid to use depends on the build platform.\n" 5117 for toolchain in $VALID_TOOLCHAINS_all; do 5118 # Use indirect variable referencing 5119 toolchain_var_name=TOOLCHAIN_DESCRIPTION_$toolchain 5120 TOOLCHAIN_DESCRIPTION=${!toolchain_var_name} 5121 $PRINTF " %-10s %s\n" $toolchain "$TOOLCHAIN_DESCRIPTION" 5122 done 5123 $PRINTF "\n" 5124 5125 # Print available jvm features 5126 $PRINTF "The following JVM features are available as arguments to --with-jvm-features.\n" 5127 $PRINTF "Which are valid to use depends on the target platform.\n " 5128 $PRINTF "%s " $VALID_JVM_FEATURES 5129 $PRINTF "\n" 5130 5131 # And now exit directly 5132 exit 0 5133 fi 5134 5135 5136 # Basic initialization that must happen first of all in the normal process. 5137 5138 # Save the original command line. This is passed to us by the wrapper configure script. 5139 5140 # Save the path variable before it gets changed 5141 ORIGINAL_PATH="$PATH" 5142 5143 DATE_WHEN_CONFIGURED=`LANG=C date` 5144 5145 { $as_echo "$as_me:${as_lineno-$LINENO}: Configuration created at $DATE_WHEN_CONFIGURED." >&5 5146 $as_echo "$as_me: Configuration created at $DATE_WHEN_CONFIGURED." >&6;} 5147 { $as_echo "$as_me:${as_lineno-$LINENO}: configure script generated at timestamp $DATE_WHEN_GENERATED." >&5 5148 $as_echo "$as_me: configure script generated at timestamp $DATE_WHEN_GENERATED." >&6;} 5149 5150 5151 # Start with tools that do not need have cross compilation support 5152 # and can be expected to be found in the default PATH. These tools are 5153 # used by configure. 5154 5155 # First are all the simple required tools. 5156 5157 5158 5159 # Publish this variable in the help. 5160 5161 5162 if [ -z "${BASENAME+x}" ]; then 5163 # The variable is not set by user, try to locate tool using the code snippet 5164 for ac_prog in basename 5165 do 5166 # Extract the first word of "$ac_prog", so it can be a program name with args. 5167 set dummy $ac_prog; ac_word=$2 5168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5169 $as_echo_n "checking for $ac_word... " >&6; } 5170 if ${ac_cv_path_BASENAME+:} false; then : 5171 $as_echo_n "(cached) " >&6 5172 else 5173 case $BASENAME in 5174 [\\/]* | ?:[\\/]*) 5175 ac_cv_path_BASENAME="$BASENAME" # Let the user override the test with a path. 5176 ;; 5177 *) 5178 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5179 for as_dir in $PATH 5180 do 5181 IFS=$as_save_IFS 5182 test -z "$as_dir" && as_dir=. 5183 for ac_exec_ext in '' $ac_executable_extensions; do 5184 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5185 ac_cv_path_BASENAME="$as_dir/$ac_word$ac_exec_ext" 5186 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5187 break 2 5188 fi 5189 done 5190 done 5191 IFS=$as_save_IFS 5192 5193 ;; 5194 esac 5195 fi 5196 BASENAME=$ac_cv_path_BASENAME 5197 if test -n "$BASENAME"; then 5198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASENAME" >&5 5199 $as_echo "$BASENAME" >&6; } 5200 else 5201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5202 $as_echo "no" >&6; } 5203 fi 5204 5205 5206 test -n "$BASENAME" && break 5207 done 5208 5209 else 5210 # The variable is set, but is it from the command line or the environment? 5211 5212 # Try to remove the string !BASENAME! from our list. 5213 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!BASENAME!/} 5214 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 5215 # If it failed, the variable was not from the command line. Ignore it, 5216 # but warn the user (except for BASH, which is always set by the calling BASH). 5217 if test "xBASENAME" != xBASH; then 5218 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of BASENAME from the environment. Use command line variables instead." >&5 5219 $as_echo "$as_me: WARNING: Ignoring value of BASENAME from the environment. Use command line variables instead." >&2;} 5220 fi 5221 # Try to locate tool using the code snippet 5222 for ac_prog in basename 5223 do 5224 # Extract the first word of "$ac_prog", so it can be a program name with args. 5225 set dummy $ac_prog; ac_word=$2 5226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5227 $as_echo_n "checking for $ac_word... " >&6; } 5228 if ${ac_cv_path_BASENAME+:} false; then : 5229 $as_echo_n "(cached) " >&6 5230 else 5231 case $BASENAME in 5232 [\\/]* | ?:[\\/]*) 5233 ac_cv_path_BASENAME="$BASENAME" # Let the user override the test with a path. 5234 ;; 5235 *) 5236 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5237 for as_dir in $PATH 5238 do 5239 IFS=$as_save_IFS 5240 test -z "$as_dir" && as_dir=. 5241 for ac_exec_ext in '' $ac_executable_extensions; do 5242 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5243 ac_cv_path_BASENAME="$as_dir/$ac_word$ac_exec_ext" 5244 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5245 break 2 5246 fi 5247 done 5248 done 5249 IFS=$as_save_IFS 5250 5251 ;; 5252 esac 5253 fi 5254 BASENAME=$ac_cv_path_BASENAME 5255 if test -n "$BASENAME"; then 5256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASENAME" >&5 5257 $as_echo "$BASENAME" >&6; } 5258 else 5259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5260 $as_echo "no" >&6; } 5261 fi 5262 5263 5264 test -n "$BASENAME" && break 5265 done 5266 5267 else 5268 # If it succeeded, then it was overridden by the user. We will use it 5269 # for the tool. 5270 5271 # First remove it from the list of overridden variables, so we can test 5272 # for unknown variables in the end. 5273 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 5274 5275 # Check if we try to supply an empty value 5276 if test "x$BASENAME" = x; then 5277 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool BASENAME= (no value)" >&5 5278 $as_echo "$as_me: Setting user supplied tool BASENAME= (no value)" >&6;} 5279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BASENAME" >&5 5280 $as_echo_n "checking for BASENAME... " >&6; } 5281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 5282 $as_echo "disabled" >&6; } 5283 else 5284 # Check if the provided tool contains a complete path. 5285 tool_specified="$BASENAME" 5286 tool_basename="${tool_specified##*/}" 5287 if test "x$tool_basename" = "x$tool_specified"; then 5288 # A command without a complete path is provided, search $PATH. 5289 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool BASENAME=$tool_basename" >&5 5290 $as_echo "$as_me: Will search for user supplied tool BASENAME=$tool_basename" >&6;} 5291 # Extract the first word of "$tool_basename", so it can be a program name with args. 5292 set dummy $tool_basename; ac_word=$2 5293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5294 $as_echo_n "checking for $ac_word... " >&6; } 5295 if ${ac_cv_path_BASENAME+:} false; then : 5296 $as_echo_n "(cached) " >&6 5297 else 5298 case $BASENAME in 5299 [\\/]* | ?:[\\/]*) 5300 ac_cv_path_BASENAME="$BASENAME" # Let the user override the test with a path. 5301 ;; 5302 *) 5303 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5304 for as_dir in $PATH 5305 do 5306 IFS=$as_save_IFS 5307 test -z "$as_dir" && as_dir=. 5308 for ac_exec_ext in '' $ac_executable_extensions; do 5309 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5310 ac_cv_path_BASENAME="$as_dir/$ac_word$ac_exec_ext" 5311 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5312 break 2 5313 fi 5314 done 5315 done 5316 IFS=$as_save_IFS 5317 5318 ;; 5319 esac 5320 fi 5321 BASENAME=$ac_cv_path_BASENAME 5322 if test -n "$BASENAME"; then 5323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASENAME" >&5 5324 $as_echo "$BASENAME" >&6; } 5325 else 5326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5327 $as_echo "no" >&6; } 5328 fi 5329 5330 5331 if test "x$BASENAME" = x; then 5332 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 5333 fi 5334 else 5335 # Otherwise we believe it is a complete path. Use it as it is. 5336 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool BASENAME=$tool_specified" >&5 5337 $as_echo "$as_me: Will use user supplied tool BASENAME=$tool_specified" >&6;} 5338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BASENAME" >&5 5339 $as_echo_n "checking for BASENAME... " >&6; } 5340 if test ! -x "$tool_specified"; then 5341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 5342 $as_echo "not found" >&6; } 5343 as_fn_error $? "User supplied tool BASENAME=$tool_specified does not exist or is not executable" "$LINENO" 5 5344 fi 5345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 5346 $as_echo "$tool_specified" >&6; } 5347 fi 5348 fi 5349 fi 5350 5351 fi 5352 5353 5354 5355 if test "x$BASENAME" = x; then 5356 as_fn_error $? "Could not find required tool for BASENAME" "$LINENO" 5 5357 fi 5358 5359 5360 5361 5362 5363 # Publish this variable in the help. 5364 5365 5366 if [ -z "${BASH+x}" ]; then 5367 # The variable is not set by user, try to locate tool using the code snippet 5368 for ac_prog in bash 5369 do 5370 # Extract the first word of "$ac_prog", so it can be a program name with args. 5371 set dummy $ac_prog; ac_word=$2 5372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5373 $as_echo_n "checking for $ac_word... " >&6; } 5374 if ${ac_cv_path_BASH+:} false; then : 5375 $as_echo_n "(cached) " >&6 5376 else 5377 case $BASH in 5378 [\\/]* | ?:[\\/]*) 5379 ac_cv_path_BASH="$BASH" # Let the user override the test with a path. 5380 ;; 5381 *) 5382 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5383 for as_dir in $PATH 5384 do 5385 IFS=$as_save_IFS 5386 test -z "$as_dir" && as_dir=. 5387 for ac_exec_ext in '' $ac_executable_extensions; do 5388 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5389 ac_cv_path_BASH="$as_dir/$ac_word$ac_exec_ext" 5390 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5391 break 2 5392 fi 5393 done 5394 done 5395 IFS=$as_save_IFS 5396 5397 ;; 5398 esac 5399 fi 5400 BASH=$ac_cv_path_BASH 5401 if test -n "$BASH"; then 5402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASH" >&5 5403 $as_echo "$BASH" >&6; } 5404 else 5405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5406 $as_echo "no" >&6; } 5407 fi 5408 5409 5410 test -n "$BASH" && break 5411 done 5412 5413 else 5414 # The variable is set, but is it from the command line or the environment? 5415 5416 # Try to remove the string !BASH! from our list. 5417 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!BASH!/} 5418 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 5419 # If it failed, the variable was not from the command line. Ignore it, 5420 # but warn the user (except for BASH, which is always set by the calling BASH). 5421 if test "xBASH" != xBASH; then 5422 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of BASH from the environment. Use command line variables instead." >&5 5423 $as_echo "$as_me: WARNING: Ignoring value of BASH from the environment. Use command line variables instead." >&2;} 5424 fi 5425 # Try to locate tool using the code snippet 5426 for ac_prog in bash 5427 do 5428 # Extract the first word of "$ac_prog", so it can be a program name with args. 5429 set dummy $ac_prog; ac_word=$2 5430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5431 $as_echo_n "checking for $ac_word... " >&6; } 5432 if ${ac_cv_path_BASH+:} false; then : 5433 $as_echo_n "(cached) " >&6 5434 else 5435 case $BASH in 5436 [\\/]* | ?:[\\/]*) 5437 ac_cv_path_BASH="$BASH" # Let the user override the test with a path. 5438 ;; 5439 *) 5440 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5441 for as_dir in $PATH 5442 do 5443 IFS=$as_save_IFS 5444 test -z "$as_dir" && as_dir=. 5445 for ac_exec_ext in '' $ac_executable_extensions; do 5446 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5447 ac_cv_path_BASH="$as_dir/$ac_word$ac_exec_ext" 5448 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5449 break 2 5450 fi 5451 done 5452 done 5453 IFS=$as_save_IFS 5454 5455 ;; 5456 esac 5457 fi 5458 BASH=$ac_cv_path_BASH 5459 if test -n "$BASH"; then 5460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASH" >&5 5461 $as_echo "$BASH" >&6; } 5462 else 5463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5464 $as_echo "no" >&6; } 5465 fi 5466 5467 5468 test -n "$BASH" && break 5469 done 5470 5471 else 5472 # If it succeeded, then it was overridden by the user. We will use it 5473 # for the tool. 5474 5475 # First remove it from the list of overridden variables, so we can test 5476 # for unknown variables in the end. 5477 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 5478 5479 # Check if we try to supply an empty value 5480 if test "x$BASH" = x; then 5481 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool BASH= (no value)" >&5 5482 $as_echo "$as_me: Setting user supplied tool BASH= (no value)" >&6;} 5483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BASH" >&5 5484 $as_echo_n "checking for BASH... " >&6; } 5485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 5486 $as_echo "disabled" >&6; } 5487 else 5488 # Check if the provided tool contains a complete path. 5489 tool_specified="$BASH" 5490 tool_basename="${tool_specified##*/}" 5491 if test "x$tool_basename" = "x$tool_specified"; then 5492 # A command without a complete path is provided, search $PATH. 5493 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool BASH=$tool_basename" >&5 5494 $as_echo "$as_me: Will search for user supplied tool BASH=$tool_basename" >&6;} 5495 # Extract the first word of "$tool_basename", so it can be a program name with args. 5496 set dummy $tool_basename; ac_word=$2 5497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5498 $as_echo_n "checking for $ac_word... " >&6; } 5499 if ${ac_cv_path_BASH+:} false; then : 5500 $as_echo_n "(cached) " >&6 5501 else 5502 case $BASH in 5503 [\\/]* | ?:[\\/]*) 5504 ac_cv_path_BASH="$BASH" # Let the user override the test with a path. 5505 ;; 5506 *) 5507 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5508 for as_dir in $PATH 5509 do 5510 IFS=$as_save_IFS 5511 test -z "$as_dir" && as_dir=. 5512 for ac_exec_ext in '' $ac_executable_extensions; do 5513 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5514 ac_cv_path_BASH="$as_dir/$ac_word$ac_exec_ext" 5515 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5516 break 2 5517 fi 5518 done 5519 done 5520 IFS=$as_save_IFS 5521 5522 ;; 5523 esac 5524 fi 5525 BASH=$ac_cv_path_BASH 5526 if test -n "$BASH"; then 5527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASH" >&5 5528 $as_echo "$BASH" >&6; } 5529 else 5530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5531 $as_echo "no" >&6; } 5532 fi 5533 5534 5535 if test "x$BASH" = x; then 5536 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 5537 fi 5538 else 5539 # Otherwise we believe it is a complete path. Use it as it is. 5540 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool BASH=$tool_specified" >&5 5541 $as_echo "$as_me: Will use user supplied tool BASH=$tool_specified" >&6;} 5542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BASH" >&5 5543 $as_echo_n "checking for BASH... " >&6; } 5544 if test ! -x "$tool_specified"; then 5545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 5546 $as_echo "not found" >&6; } 5547 as_fn_error $? "User supplied tool BASH=$tool_specified does not exist or is not executable" "$LINENO" 5 5548 fi 5549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 5550 $as_echo "$tool_specified" >&6; } 5551 fi 5552 fi 5553 fi 5554 5555 fi 5556 5557 5558 5559 if test "x$BASH" = x; then 5560 as_fn_error $? "Could not find required tool for BASH" "$LINENO" 5 5561 fi 5562 5563 5564 5565 5566 5567 # Publish this variable in the help. 5568 5569 5570 if [ -z "${CAT+x}" ]; then 5571 # The variable is not set by user, try to locate tool using the code snippet 5572 for ac_prog in cat 5573 do 5574 # Extract the first word of "$ac_prog", so it can be a program name with args. 5575 set dummy $ac_prog; ac_word=$2 5576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5577 $as_echo_n "checking for $ac_word... " >&6; } 5578 if ${ac_cv_path_CAT+:} false; then : 5579 $as_echo_n "(cached) " >&6 5580 else 5581 case $CAT in 5582 [\\/]* | ?:[\\/]*) 5583 ac_cv_path_CAT="$CAT" # Let the user override the test with a path. 5584 ;; 5585 *) 5586 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5587 for as_dir in $PATH 5588 do 5589 IFS=$as_save_IFS 5590 test -z "$as_dir" && as_dir=. 5591 for ac_exec_ext in '' $ac_executable_extensions; do 5592 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5593 ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext" 5594 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5595 break 2 5596 fi 5597 done 5598 done 5599 IFS=$as_save_IFS 5600 5601 ;; 5602 esac 5603 fi 5604 CAT=$ac_cv_path_CAT 5605 if test -n "$CAT"; then 5606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CAT" >&5 5607 $as_echo "$CAT" >&6; } 5608 else 5609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5610 $as_echo "no" >&6; } 5611 fi 5612 5613 5614 test -n "$CAT" && break 5615 done 5616 5617 else 5618 # The variable is set, but is it from the command line or the environment? 5619 5620 # Try to remove the string !CAT! from our list. 5621 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CAT!/} 5622 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 5623 # If it failed, the variable was not from the command line. Ignore it, 5624 # but warn the user (except for BASH, which is always set by the calling BASH). 5625 if test "xCAT" != xBASH; then 5626 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CAT from the environment. Use command line variables instead." >&5 5627 $as_echo "$as_me: WARNING: Ignoring value of CAT from the environment. Use command line variables instead." >&2;} 5628 fi 5629 # Try to locate tool using the code snippet 5630 for ac_prog in cat 5631 do 5632 # Extract the first word of "$ac_prog", so it can be a program name with args. 5633 set dummy $ac_prog; ac_word=$2 5634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5635 $as_echo_n "checking for $ac_word... " >&6; } 5636 if ${ac_cv_path_CAT+:} false; then : 5637 $as_echo_n "(cached) " >&6 5638 else 5639 case $CAT in 5640 [\\/]* | ?:[\\/]*) 5641 ac_cv_path_CAT="$CAT" # Let the user override the test with a path. 5642 ;; 5643 *) 5644 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5645 for as_dir in $PATH 5646 do 5647 IFS=$as_save_IFS 5648 test -z "$as_dir" && as_dir=. 5649 for ac_exec_ext in '' $ac_executable_extensions; do 5650 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5651 ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext" 5652 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5653 break 2 5654 fi 5655 done 5656 done 5657 IFS=$as_save_IFS 5658 5659 ;; 5660 esac 5661 fi 5662 CAT=$ac_cv_path_CAT 5663 if test -n "$CAT"; then 5664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CAT" >&5 5665 $as_echo "$CAT" >&6; } 5666 else 5667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5668 $as_echo "no" >&6; } 5669 fi 5670 5671 5672 test -n "$CAT" && break 5673 done 5674 5675 else 5676 # If it succeeded, then it was overridden by the user. We will use it 5677 # for the tool. 5678 5679 # First remove it from the list of overridden variables, so we can test 5680 # for unknown variables in the end. 5681 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 5682 5683 # Check if we try to supply an empty value 5684 if test "x$CAT" = x; then 5685 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool CAT= (no value)" >&5 5686 $as_echo "$as_me: Setting user supplied tool CAT= (no value)" >&6;} 5687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CAT" >&5 5688 $as_echo_n "checking for CAT... " >&6; } 5689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 5690 $as_echo "disabled" >&6; } 5691 else 5692 # Check if the provided tool contains a complete path. 5693 tool_specified="$CAT" 5694 tool_basename="${tool_specified##*/}" 5695 if test "x$tool_basename" = "x$tool_specified"; then 5696 # A command without a complete path is provided, search $PATH. 5697 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CAT=$tool_basename" >&5 5698 $as_echo "$as_me: Will search for user supplied tool CAT=$tool_basename" >&6;} 5699 # Extract the first word of "$tool_basename", so it can be a program name with args. 5700 set dummy $tool_basename; ac_word=$2 5701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5702 $as_echo_n "checking for $ac_word... " >&6; } 5703 if ${ac_cv_path_CAT+:} false; then : 5704 $as_echo_n "(cached) " >&6 5705 else 5706 case $CAT in 5707 [\\/]* | ?:[\\/]*) 5708 ac_cv_path_CAT="$CAT" # Let the user override the test with a path. 5709 ;; 5710 *) 5711 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5712 for as_dir in $PATH 5713 do 5714 IFS=$as_save_IFS 5715 test -z "$as_dir" && as_dir=. 5716 for ac_exec_ext in '' $ac_executable_extensions; do 5717 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5718 ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext" 5719 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5720 break 2 5721 fi 5722 done 5723 done 5724 IFS=$as_save_IFS 5725 5726 ;; 5727 esac 5728 fi 5729 CAT=$ac_cv_path_CAT 5730 if test -n "$CAT"; then 5731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CAT" >&5 5732 $as_echo "$CAT" >&6; } 5733 else 5734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5735 $as_echo "no" >&6; } 5736 fi 5737 5738 5739 if test "x$CAT" = x; then 5740 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 5741 fi 5742 else 5743 # Otherwise we believe it is a complete path. Use it as it is. 5744 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CAT=$tool_specified" >&5 5745 $as_echo "$as_me: Will use user supplied tool CAT=$tool_specified" >&6;} 5746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CAT" >&5 5747 $as_echo_n "checking for CAT... " >&6; } 5748 if test ! -x "$tool_specified"; then 5749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 5750 $as_echo "not found" >&6; } 5751 as_fn_error $? "User supplied tool CAT=$tool_specified does not exist or is not executable" "$LINENO" 5 5752 fi 5753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 5754 $as_echo "$tool_specified" >&6; } 5755 fi 5756 fi 5757 fi 5758 5759 fi 5760 5761 5762 5763 if test "x$CAT" = x; then 5764 as_fn_error $? "Could not find required tool for CAT" "$LINENO" 5 5765 fi 5766 5767 5768 5769 5770 5771 # Publish this variable in the help. 5772 5773 5774 if [ -z "${CHMOD+x}" ]; then 5775 # The variable is not set by user, try to locate tool using the code snippet 5776 for ac_prog in chmod 5777 do 5778 # Extract the first word of "$ac_prog", so it can be a program name with args. 5779 set dummy $ac_prog; ac_word=$2 5780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5781 $as_echo_n "checking for $ac_word... " >&6; } 5782 if ${ac_cv_path_CHMOD+:} false; then : 5783 $as_echo_n "(cached) " >&6 5784 else 5785 case $CHMOD in 5786 [\\/]* | ?:[\\/]*) 5787 ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path. 5788 ;; 5789 *) 5790 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5791 for as_dir in $PATH 5792 do 5793 IFS=$as_save_IFS 5794 test -z "$as_dir" && as_dir=. 5795 for ac_exec_ext in '' $ac_executable_extensions; do 5796 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5797 ac_cv_path_CHMOD="$as_dir/$ac_word$ac_exec_ext" 5798 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5799 break 2 5800 fi 5801 done 5802 done 5803 IFS=$as_save_IFS 5804 5805 ;; 5806 esac 5807 fi 5808 CHMOD=$ac_cv_path_CHMOD 5809 if test -n "$CHMOD"; then 5810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHMOD" >&5 5811 $as_echo "$CHMOD" >&6; } 5812 else 5813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5814 $as_echo "no" >&6; } 5815 fi 5816 5817 5818 test -n "$CHMOD" && break 5819 done 5820 5821 else 5822 # The variable is set, but is it from the command line or the environment? 5823 5824 # Try to remove the string !CHMOD! from our list. 5825 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CHMOD!/} 5826 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 5827 # If it failed, the variable was not from the command line. Ignore it, 5828 # but warn the user (except for BASH, which is always set by the calling BASH). 5829 if test "xCHMOD" != xBASH; then 5830 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CHMOD from the environment. Use command line variables instead." >&5 5831 $as_echo "$as_me: WARNING: Ignoring value of CHMOD from the environment. Use command line variables instead." >&2;} 5832 fi 5833 # Try to locate tool using the code snippet 5834 for ac_prog in chmod 5835 do 5836 # Extract the first word of "$ac_prog", so it can be a program name with args. 5837 set dummy $ac_prog; ac_word=$2 5838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5839 $as_echo_n "checking for $ac_word... " >&6; } 5840 if ${ac_cv_path_CHMOD+:} false; then : 5841 $as_echo_n "(cached) " >&6 5842 else 5843 case $CHMOD in 5844 [\\/]* | ?:[\\/]*) 5845 ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path. 5846 ;; 5847 *) 5848 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5849 for as_dir in $PATH 5850 do 5851 IFS=$as_save_IFS 5852 test -z "$as_dir" && as_dir=. 5853 for ac_exec_ext in '' $ac_executable_extensions; do 5854 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5855 ac_cv_path_CHMOD="$as_dir/$ac_word$ac_exec_ext" 5856 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5857 break 2 5858 fi 5859 done 5860 done 5861 IFS=$as_save_IFS 5862 5863 ;; 5864 esac 5865 fi 5866 CHMOD=$ac_cv_path_CHMOD 5867 if test -n "$CHMOD"; then 5868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHMOD" >&5 5869 $as_echo "$CHMOD" >&6; } 5870 else 5871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5872 $as_echo "no" >&6; } 5873 fi 5874 5875 5876 test -n "$CHMOD" && break 5877 done 5878 5879 else 5880 # If it succeeded, then it was overridden by the user. We will use it 5881 # for the tool. 5882 5883 # First remove it from the list of overridden variables, so we can test 5884 # for unknown variables in the end. 5885 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 5886 5887 # Check if we try to supply an empty value 5888 if test "x$CHMOD" = x; then 5889 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool CHMOD= (no value)" >&5 5890 $as_echo "$as_me: Setting user supplied tool CHMOD= (no value)" >&6;} 5891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CHMOD" >&5 5892 $as_echo_n "checking for CHMOD... " >&6; } 5893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 5894 $as_echo "disabled" >&6; } 5895 else 5896 # Check if the provided tool contains a complete path. 5897 tool_specified="$CHMOD" 5898 tool_basename="${tool_specified##*/}" 5899 if test "x$tool_basename" = "x$tool_specified"; then 5900 # A command without a complete path is provided, search $PATH. 5901 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CHMOD=$tool_basename" >&5 5902 $as_echo "$as_me: Will search for user supplied tool CHMOD=$tool_basename" >&6;} 5903 # Extract the first word of "$tool_basename", so it can be a program name with args. 5904 set dummy $tool_basename; ac_word=$2 5905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5906 $as_echo_n "checking for $ac_word... " >&6; } 5907 if ${ac_cv_path_CHMOD+:} false; then : 5908 $as_echo_n "(cached) " >&6 5909 else 5910 case $CHMOD in 5911 [\\/]* | ?:[\\/]*) 5912 ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path. 5913 ;; 5914 *) 5915 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5916 for as_dir in $PATH 5917 do 5918 IFS=$as_save_IFS 5919 test -z "$as_dir" && as_dir=. 5920 for ac_exec_ext in '' $ac_executable_extensions; do 5921 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5922 ac_cv_path_CHMOD="$as_dir/$ac_word$ac_exec_ext" 5923 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5924 break 2 5925 fi 5926 done 5927 done 5928 IFS=$as_save_IFS 5929 5930 ;; 5931 esac 5932 fi 5933 CHMOD=$ac_cv_path_CHMOD 5934 if test -n "$CHMOD"; then 5935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHMOD" >&5 5936 $as_echo "$CHMOD" >&6; } 5937 else 5938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5939 $as_echo "no" >&6; } 5940 fi 5941 5942 5943 if test "x$CHMOD" = x; then 5944 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 5945 fi 5946 else 5947 # Otherwise we believe it is a complete path. Use it as it is. 5948 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CHMOD=$tool_specified" >&5 5949 $as_echo "$as_me: Will use user supplied tool CHMOD=$tool_specified" >&6;} 5950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CHMOD" >&5 5951 $as_echo_n "checking for CHMOD... " >&6; } 5952 if test ! -x "$tool_specified"; then 5953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 5954 $as_echo "not found" >&6; } 5955 as_fn_error $? "User supplied tool CHMOD=$tool_specified does not exist or is not executable" "$LINENO" 5 5956 fi 5957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 5958 $as_echo "$tool_specified" >&6; } 5959 fi 5960 fi 5961 fi 5962 5963 fi 5964 5965 5966 5967 if test "x$CHMOD" = x; then 5968 as_fn_error $? "Could not find required tool for CHMOD" "$LINENO" 5 5969 fi 5970 5971 5972 5973 5974 5975 # Publish this variable in the help. 5976 5977 5978 if [ -z "${CMP+x}" ]; then 5979 # The variable is not set by user, try to locate tool using the code snippet 5980 for ac_prog in cmp 5981 do 5982 # Extract the first word of "$ac_prog", so it can be a program name with args. 5983 set dummy $ac_prog; ac_word=$2 5984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5985 $as_echo_n "checking for $ac_word... " >&6; } 5986 if ${ac_cv_path_CMP+:} false; then : 5987 $as_echo_n "(cached) " >&6 5988 else 5989 case $CMP in 5990 [\\/]* | ?:[\\/]*) 5991 ac_cv_path_CMP="$CMP" # Let the user override the test with a path. 5992 ;; 5993 *) 5994 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5995 for as_dir in $PATH 5996 do 5997 IFS=$as_save_IFS 5998 test -z "$as_dir" && as_dir=. 5999 for ac_exec_ext in '' $ac_executable_extensions; do 6000 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6001 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext" 6002 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6003 break 2 6004 fi 6005 done 6006 done 6007 IFS=$as_save_IFS 6008 6009 ;; 6010 esac 6011 fi 6012 CMP=$ac_cv_path_CMP 6013 if test -n "$CMP"; then 6014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CMP" >&5 6015 $as_echo "$CMP" >&6; } 6016 else 6017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6018 $as_echo "no" >&6; } 6019 fi 6020 6021 6022 test -n "$CMP" && break 6023 done 6024 6025 else 6026 # The variable is set, but is it from the command line or the environment? 6027 6028 # Try to remove the string !CMP! from our list. 6029 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CMP!/} 6030 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 6031 # If it failed, the variable was not from the command line. Ignore it, 6032 # but warn the user (except for BASH, which is always set by the calling BASH). 6033 if test "xCMP" != xBASH; then 6034 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CMP from the environment. Use command line variables instead." >&5 6035 $as_echo "$as_me: WARNING: Ignoring value of CMP from the environment. Use command line variables instead." >&2;} 6036 fi 6037 # Try to locate tool using the code snippet 6038 for ac_prog in cmp 6039 do 6040 # Extract the first word of "$ac_prog", so it can be a program name with args. 6041 set dummy $ac_prog; ac_word=$2 6042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6043 $as_echo_n "checking for $ac_word... " >&6; } 6044 if ${ac_cv_path_CMP+:} false; then : 6045 $as_echo_n "(cached) " >&6 6046 else 6047 case $CMP in 6048 [\\/]* | ?:[\\/]*) 6049 ac_cv_path_CMP="$CMP" # Let the user override the test with a path. 6050 ;; 6051 *) 6052 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6053 for as_dir in $PATH 6054 do 6055 IFS=$as_save_IFS 6056 test -z "$as_dir" && as_dir=. 6057 for ac_exec_ext in '' $ac_executable_extensions; do 6058 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6059 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext" 6060 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6061 break 2 6062 fi 6063 done 6064 done 6065 IFS=$as_save_IFS 6066 6067 ;; 6068 esac 6069 fi 6070 CMP=$ac_cv_path_CMP 6071 if test -n "$CMP"; then 6072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CMP" >&5 6073 $as_echo "$CMP" >&6; } 6074 else 6075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6076 $as_echo "no" >&6; } 6077 fi 6078 6079 6080 test -n "$CMP" && break 6081 done 6082 6083 else 6084 # If it succeeded, then it was overridden by the user. We will use it 6085 # for the tool. 6086 6087 # First remove it from the list of overridden variables, so we can test 6088 # for unknown variables in the end. 6089 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 6090 6091 # Check if we try to supply an empty value 6092 if test "x$CMP" = x; then 6093 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool CMP= (no value)" >&5 6094 $as_echo "$as_me: Setting user supplied tool CMP= (no value)" >&6;} 6095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CMP" >&5 6096 $as_echo_n "checking for CMP... " >&6; } 6097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 6098 $as_echo "disabled" >&6; } 6099 else 6100 # Check if the provided tool contains a complete path. 6101 tool_specified="$CMP" 6102 tool_basename="${tool_specified##*/}" 6103 if test "x$tool_basename" = "x$tool_specified"; then 6104 # A command without a complete path is provided, search $PATH. 6105 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CMP=$tool_basename" >&5 6106 $as_echo "$as_me: Will search for user supplied tool CMP=$tool_basename" >&6;} 6107 # Extract the first word of "$tool_basename", so it can be a program name with args. 6108 set dummy $tool_basename; ac_word=$2 6109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6110 $as_echo_n "checking for $ac_word... " >&6; } 6111 if ${ac_cv_path_CMP+:} false; then : 6112 $as_echo_n "(cached) " >&6 6113 else 6114 case $CMP in 6115 [\\/]* | ?:[\\/]*) 6116 ac_cv_path_CMP="$CMP" # Let the user override the test with a path. 6117 ;; 6118 *) 6119 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6120 for as_dir in $PATH 6121 do 6122 IFS=$as_save_IFS 6123 test -z "$as_dir" && as_dir=. 6124 for ac_exec_ext in '' $ac_executable_extensions; do 6125 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6126 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext" 6127 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6128 break 2 6129 fi 6130 done 6131 done 6132 IFS=$as_save_IFS 6133 6134 ;; 6135 esac 6136 fi 6137 CMP=$ac_cv_path_CMP 6138 if test -n "$CMP"; then 6139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CMP" >&5 6140 $as_echo "$CMP" >&6; } 6141 else 6142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6143 $as_echo "no" >&6; } 6144 fi 6145 6146 6147 if test "x$CMP" = x; then 6148 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 6149 fi 6150 else 6151 # Otherwise we believe it is a complete path. Use it as it is. 6152 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CMP=$tool_specified" >&5 6153 $as_echo "$as_me: Will use user supplied tool CMP=$tool_specified" >&6;} 6154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CMP" >&5 6155 $as_echo_n "checking for CMP... " >&6; } 6156 if test ! -x "$tool_specified"; then 6157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 6158 $as_echo "not found" >&6; } 6159 as_fn_error $? "User supplied tool CMP=$tool_specified does not exist or is not executable" "$LINENO" 5 6160 fi 6161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 6162 $as_echo "$tool_specified" >&6; } 6163 fi 6164 fi 6165 fi 6166 6167 fi 6168 6169 6170 6171 if test "x$CMP" = x; then 6172 as_fn_error $? "Could not find required tool for CMP" "$LINENO" 5 6173 fi 6174 6175 6176 6177 6178 6179 # Publish this variable in the help. 6180 6181 6182 if [ -z "${COMM+x}" ]; then 6183 # The variable is not set by user, try to locate tool using the code snippet 6184 for ac_prog in comm 6185 do 6186 # Extract the first word of "$ac_prog", so it can be a program name with args. 6187 set dummy $ac_prog; ac_word=$2 6188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6189 $as_echo_n "checking for $ac_word... " >&6; } 6190 if ${ac_cv_path_COMM+:} false; then : 6191 $as_echo_n "(cached) " >&6 6192 else 6193 case $COMM in 6194 [\\/]* | ?:[\\/]*) 6195 ac_cv_path_COMM="$COMM" # Let the user override the test with a path. 6196 ;; 6197 *) 6198 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6199 for as_dir in $PATH 6200 do 6201 IFS=$as_save_IFS 6202 test -z "$as_dir" && as_dir=. 6203 for ac_exec_ext in '' $ac_executable_extensions; do 6204 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6205 ac_cv_path_COMM="$as_dir/$ac_word$ac_exec_ext" 6206 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6207 break 2 6208 fi 6209 done 6210 done 6211 IFS=$as_save_IFS 6212 6213 ;; 6214 esac 6215 fi 6216 COMM=$ac_cv_path_COMM 6217 if test -n "$COMM"; then 6218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $COMM" >&5 6219 $as_echo "$COMM" >&6; } 6220 else 6221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6222 $as_echo "no" >&6; } 6223 fi 6224 6225 6226 test -n "$COMM" && break 6227 done 6228 6229 else 6230 # The variable is set, but is it from the command line or the environment? 6231 6232 # Try to remove the string !COMM! from our list. 6233 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!COMM!/} 6234 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 6235 # If it failed, the variable was not from the command line. Ignore it, 6236 # but warn the user (except for BASH, which is always set by the calling BASH). 6237 if test "xCOMM" != xBASH; then 6238 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of COMM from the environment. Use command line variables instead." >&5 6239 $as_echo "$as_me: WARNING: Ignoring value of COMM from the environment. Use command line variables instead." >&2;} 6240 fi 6241 # Try to locate tool using the code snippet 6242 for ac_prog in comm 6243 do 6244 # Extract the first word of "$ac_prog", so it can be a program name with args. 6245 set dummy $ac_prog; ac_word=$2 6246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6247 $as_echo_n "checking for $ac_word... " >&6; } 6248 if ${ac_cv_path_COMM+:} false; then : 6249 $as_echo_n "(cached) " >&6 6250 else 6251 case $COMM in 6252 [\\/]* | ?:[\\/]*) 6253 ac_cv_path_COMM="$COMM" # Let the user override the test with a path. 6254 ;; 6255 *) 6256 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6257 for as_dir in $PATH 6258 do 6259 IFS=$as_save_IFS 6260 test -z "$as_dir" && as_dir=. 6261 for ac_exec_ext in '' $ac_executable_extensions; do 6262 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6263 ac_cv_path_COMM="$as_dir/$ac_word$ac_exec_ext" 6264 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6265 break 2 6266 fi 6267 done 6268 done 6269 IFS=$as_save_IFS 6270 6271 ;; 6272 esac 6273 fi 6274 COMM=$ac_cv_path_COMM 6275 if test -n "$COMM"; then 6276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $COMM" >&5 6277 $as_echo "$COMM" >&6; } 6278 else 6279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6280 $as_echo "no" >&6; } 6281 fi 6282 6283 6284 test -n "$COMM" && break 6285 done 6286 6287 else 6288 # If it succeeded, then it was overridden by the user. We will use it 6289 # for the tool. 6290 6291 # First remove it from the list of overridden variables, so we can test 6292 # for unknown variables in the end. 6293 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 6294 6295 # Check if we try to supply an empty value 6296 if test "x$COMM" = x; then 6297 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool COMM= (no value)" >&5 6298 $as_echo "$as_me: Setting user supplied tool COMM= (no value)" >&6;} 6299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for COMM" >&5 6300 $as_echo_n "checking for COMM... " >&6; } 6301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 6302 $as_echo "disabled" >&6; } 6303 else 6304 # Check if the provided tool contains a complete path. 6305 tool_specified="$COMM" 6306 tool_basename="${tool_specified##*/}" 6307 if test "x$tool_basename" = "x$tool_specified"; then 6308 # A command without a complete path is provided, search $PATH. 6309 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool COMM=$tool_basename" >&5 6310 $as_echo "$as_me: Will search for user supplied tool COMM=$tool_basename" >&6;} 6311 # Extract the first word of "$tool_basename", so it can be a program name with args. 6312 set dummy $tool_basename; ac_word=$2 6313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6314 $as_echo_n "checking for $ac_word... " >&6; } 6315 if ${ac_cv_path_COMM+:} false; then : 6316 $as_echo_n "(cached) " >&6 6317 else 6318 case $COMM in 6319 [\\/]* | ?:[\\/]*) 6320 ac_cv_path_COMM="$COMM" # Let the user override the test with a path. 6321 ;; 6322 *) 6323 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6324 for as_dir in $PATH 6325 do 6326 IFS=$as_save_IFS 6327 test -z "$as_dir" && as_dir=. 6328 for ac_exec_ext in '' $ac_executable_extensions; do 6329 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6330 ac_cv_path_COMM="$as_dir/$ac_word$ac_exec_ext" 6331 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6332 break 2 6333 fi 6334 done 6335 done 6336 IFS=$as_save_IFS 6337 6338 ;; 6339 esac 6340 fi 6341 COMM=$ac_cv_path_COMM 6342 if test -n "$COMM"; then 6343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $COMM" >&5 6344 $as_echo "$COMM" >&6; } 6345 else 6346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6347 $as_echo "no" >&6; } 6348 fi 6349 6350 6351 if test "x$COMM" = x; then 6352 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 6353 fi 6354 else 6355 # Otherwise we believe it is a complete path. Use it as it is. 6356 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool COMM=$tool_specified" >&5 6357 $as_echo "$as_me: Will use user supplied tool COMM=$tool_specified" >&6;} 6358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for COMM" >&5 6359 $as_echo_n "checking for COMM... " >&6; } 6360 if test ! -x "$tool_specified"; then 6361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 6362 $as_echo "not found" >&6; } 6363 as_fn_error $? "User supplied tool COMM=$tool_specified does not exist or is not executable" "$LINENO" 5 6364 fi 6365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 6366 $as_echo "$tool_specified" >&6; } 6367 fi 6368 fi 6369 fi 6370 6371 fi 6372 6373 6374 6375 if test "x$COMM" = x; then 6376 as_fn_error $? "Could not find required tool for COMM" "$LINENO" 5 6377 fi 6378 6379 6380 6381 6382 6383 # Publish this variable in the help. 6384 6385 6386 if [ -z "${CP+x}" ]; then 6387 # The variable is not set by user, try to locate tool using the code snippet 6388 for ac_prog in cp 6389 do 6390 # Extract the first word of "$ac_prog", so it can be a program name with args. 6391 set dummy $ac_prog; ac_word=$2 6392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6393 $as_echo_n "checking for $ac_word... " >&6; } 6394 if ${ac_cv_path_CP+:} false; then : 6395 $as_echo_n "(cached) " >&6 6396 else 6397 case $CP in 6398 [\\/]* | ?:[\\/]*) 6399 ac_cv_path_CP="$CP" # Let the user override the test with a path. 6400 ;; 6401 *) 6402 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6403 for as_dir in $PATH 6404 do 6405 IFS=$as_save_IFS 6406 test -z "$as_dir" && as_dir=. 6407 for ac_exec_ext in '' $ac_executable_extensions; do 6408 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6409 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext" 6410 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6411 break 2 6412 fi 6413 done 6414 done 6415 IFS=$as_save_IFS 6416 6417 ;; 6418 esac 6419 fi 6420 CP=$ac_cv_path_CP 6421 if test -n "$CP"; then 6422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5 6423 $as_echo "$CP" >&6; } 6424 else 6425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6426 $as_echo "no" >&6; } 6427 fi 6428 6429 6430 test -n "$CP" && break 6431 done 6432 6433 else 6434 # The variable is set, but is it from the command line or the environment? 6435 6436 # Try to remove the string !CP! from our list. 6437 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CP!/} 6438 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 6439 # If it failed, the variable was not from the command line. Ignore it, 6440 # but warn the user (except for BASH, which is always set by the calling BASH). 6441 if test "xCP" != xBASH; then 6442 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CP from the environment. Use command line variables instead." >&5 6443 $as_echo "$as_me: WARNING: Ignoring value of CP from the environment. Use command line variables instead." >&2;} 6444 fi 6445 # Try to locate tool using the code snippet 6446 for ac_prog in cp 6447 do 6448 # Extract the first word of "$ac_prog", so it can be a program name with args. 6449 set dummy $ac_prog; ac_word=$2 6450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6451 $as_echo_n "checking for $ac_word... " >&6; } 6452 if ${ac_cv_path_CP+:} false; then : 6453 $as_echo_n "(cached) " >&6 6454 else 6455 case $CP in 6456 [\\/]* | ?:[\\/]*) 6457 ac_cv_path_CP="$CP" # Let the user override the test with a path. 6458 ;; 6459 *) 6460 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6461 for as_dir in $PATH 6462 do 6463 IFS=$as_save_IFS 6464 test -z "$as_dir" && as_dir=. 6465 for ac_exec_ext in '' $ac_executable_extensions; do 6466 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6467 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext" 6468 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6469 break 2 6470 fi 6471 done 6472 done 6473 IFS=$as_save_IFS 6474 6475 ;; 6476 esac 6477 fi 6478 CP=$ac_cv_path_CP 6479 if test -n "$CP"; then 6480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5 6481 $as_echo "$CP" >&6; } 6482 else 6483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6484 $as_echo "no" >&6; } 6485 fi 6486 6487 6488 test -n "$CP" && break 6489 done 6490 6491 else 6492 # If it succeeded, then it was overridden by the user. We will use it 6493 # for the tool. 6494 6495 # First remove it from the list of overridden variables, so we can test 6496 # for unknown variables in the end. 6497 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 6498 6499 # Check if we try to supply an empty value 6500 if test "x$CP" = x; then 6501 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool CP= (no value)" >&5 6502 $as_echo "$as_me: Setting user supplied tool CP= (no value)" >&6;} 6503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CP" >&5 6504 $as_echo_n "checking for CP... " >&6; } 6505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 6506 $as_echo "disabled" >&6; } 6507 else 6508 # Check if the provided tool contains a complete path. 6509 tool_specified="$CP" 6510 tool_basename="${tool_specified##*/}" 6511 if test "x$tool_basename" = "x$tool_specified"; then 6512 # A command without a complete path is provided, search $PATH. 6513 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CP=$tool_basename" >&5 6514 $as_echo "$as_me: Will search for user supplied tool CP=$tool_basename" >&6;} 6515 # Extract the first word of "$tool_basename", so it can be a program name with args. 6516 set dummy $tool_basename; ac_word=$2 6517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6518 $as_echo_n "checking for $ac_word... " >&6; } 6519 if ${ac_cv_path_CP+:} false; then : 6520 $as_echo_n "(cached) " >&6 6521 else 6522 case $CP in 6523 [\\/]* | ?:[\\/]*) 6524 ac_cv_path_CP="$CP" # Let the user override the test with a path. 6525 ;; 6526 *) 6527 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6528 for as_dir in $PATH 6529 do 6530 IFS=$as_save_IFS 6531 test -z "$as_dir" && as_dir=. 6532 for ac_exec_ext in '' $ac_executable_extensions; do 6533 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6534 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext" 6535 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6536 break 2 6537 fi 6538 done 6539 done 6540 IFS=$as_save_IFS 6541 6542 ;; 6543 esac 6544 fi 6545 CP=$ac_cv_path_CP 6546 if test -n "$CP"; then 6547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5 6548 $as_echo "$CP" >&6; } 6549 else 6550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6551 $as_echo "no" >&6; } 6552 fi 6553 6554 6555 if test "x$CP" = x; then 6556 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 6557 fi 6558 else 6559 # Otherwise we believe it is a complete path. Use it as it is. 6560 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CP=$tool_specified" >&5 6561 $as_echo "$as_me: Will use user supplied tool CP=$tool_specified" >&6;} 6562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CP" >&5 6563 $as_echo_n "checking for CP... " >&6; } 6564 if test ! -x "$tool_specified"; then 6565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 6566 $as_echo "not found" >&6; } 6567 as_fn_error $? "User supplied tool CP=$tool_specified does not exist or is not executable" "$LINENO" 5 6568 fi 6569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 6570 $as_echo "$tool_specified" >&6; } 6571 fi 6572 fi 6573 fi 6574 6575 fi 6576 6577 6578 6579 if test "x$CP" = x; then 6580 as_fn_error $? "Could not find required tool for CP" "$LINENO" 5 6581 fi 6582 6583 6584 6585 6586 6587 # Publish this variable in the help. 6588 6589 6590 if [ -z "${CUT+x}" ]; then 6591 # The variable is not set by user, try to locate tool using the code snippet 6592 for ac_prog in cut 6593 do 6594 # Extract the first word of "$ac_prog", so it can be a program name with args. 6595 set dummy $ac_prog; ac_word=$2 6596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6597 $as_echo_n "checking for $ac_word... " >&6; } 6598 if ${ac_cv_path_CUT+:} false; then : 6599 $as_echo_n "(cached) " >&6 6600 else 6601 case $CUT in 6602 [\\/]* | ?:[\\/]*) 6603 ac_cv_path_CUT="$CUT" # Let the user override the test with a path. 6604 ;; 6605 *) 6606 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6607 for as_dir in $PATH 6608 do 6609 IFS=$as_save_IFS 6610 test -z "$as_dir" && as_dir=. 6611 for ac_exec_ext in '' $ac_executable_extensions; do 6612 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6613 ac_cv_path_CUT="$as_dir/$ac_word$ac_exec_ext" 6614 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6615 break 2 6616 fi 6617 done 6618 done 6619 IFS=$as_save_IFS 6620 6621 ;; 6622 esac 6623 fi 6624 CUT=$ac_cv_path_CUT 6625 if test -n "$CUT"; then 6626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CUT" >&5 6627 $as_echo "$CUT" >&6; } 6628 else 6629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6630 $as_echo "no" >&6; } 6631 fi 6632 6633 6634 test -n "$CUT" && break 6635 done 6636 6637 else 6638 # The variable is set, but is it from the command line or the environment? 6639 6640 # Try to remove the string !CUT! from our list. 6641 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CUT!/} 6642 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 6643 # If it failed, the variable was not from the command line. Ignore it, 6644 # but warn the user (except for BASH, which is always set by the calling BASH). 6645 if test "xCUT" != xBASH; then 6646 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CUT from the environment. Use command line variables instead." >&5 6647 $as_echo "$as_me: WARNING: Ignoring value of CUT from the environment. Use command line variables instead." >&2;} 6648 fi 6649 # Try to locate tool using the code snippet 6650 for ac_prog in cut 6651 do 6652 # Extract the first word of "$ac_prog", so it can be a program name with args. 6653 set dummy $ac_prog; ac_word=$2 6654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6655 $as_echo_n "checking for $ac_word... " >&6; } 6656 if ${ac_cv_path_CUT+:} false; then : 6657 $as_echo_n "(cached) " >&6 6658 else 6659 case $CUT in 6660 [\\/]* | ?:[\\/]*) 6661 ac_cv_path_CUT="$CUT" # Let the user override the test with a path. 6662 ;; 6663 *) 6664 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6665 for as_dir in $PATH 6666 do 6667 IFS=$as_save_IFS 6668 test -z "$as_dir" && as_dir=. 6669 for ac_exec_ext in '' $ac_executable_extensions; do 6670 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6671 ac_cv_path_CUT="$as_dir/$ac_word$ac_exec_ext" 6672 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6673 break 2 6674 fi 6675 done 6676 done 6677 IFS=$as_save_IFS 6678 6679 ;; 6680 esac 6681 fi 6682 CUT=$ac_cv_path_CUT 6683 if test -n "$CUT"; then 6684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CUT" >&5 6685 $as_echo "$CUT" >&6; } 6686 else 6687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6688 $as_echo "no" >&6; } 6689 fi 6690 6691 6692 test -n "$CUT" && break 6693 done 6694 6695 else 6696 # If it succeeded, then it was overridden by the user. We will use it 6697 # for the tool. 6698 6699 # First remove it from the list of overridden variables, so we can test 6700 # for unknown variables in the end. 6701 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 6702 6703 # Check if we try to supply an empty value 6704 if test "x$CUT" = x; then 6705 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool CUT= (no value)" >&5 6706 $as_echo "$as_me: Setting user supplied tool CUT= (no value)" >&6;} 6707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUT" >&5 6708 $as_echo_n "checking for CUT... " >&6; } 6709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 6710 $as_echo "disabled" >&6; } 6711 else 6712 # Check if the provided tool contains a complete path. 6713 tool_specified="$CUT" 6714 tool_basename="${tool_specified##*/}" 6715 if test "x$tool_basename" = "x$tool_specified"; then 6716 # A command without a complete path is provided, search $PATH. 6717 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CUT=$tool_basename" >&5 6718 $as_echo "$as_me: Will search for user supplied tool CUT=$tool_basename" >&6;} 6719 # Extract the first word of "$tool_basename", so it can be a program name with args. 6720 set dummy $tool_basename; ac_word=$2 6721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6722 $as_echo_n "checking for $ac_word... " >&6; } 6723 if ${ac_cv_path_CUT+:} false; then : 6724 $as_echo_n "(cached) " >&6 6725 else 6726 case $CUT in 6727 [\\/]* | ?:[\\/]*) 6728 ac_cv_path_CUT="$CUT" # Let the user override the test with a path. 6729 ;; 6730 *) 6731 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6732 for as_dir in $PATH 6733 do 6734 IFS=$as_save_IFS 6735 test -z "$as_dir" && as_dir=. 6736 for ac_exec_ext in '' $ac_executable_extensions; do 6737 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6738 ac_cv_path_CUT="$as_dir/$ac_word$ac_exec_ext" 6739 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6740 break 2 6741 fi 6742 done 6743 done 6744 IFS=$as_save_IFS 6745 6746 ;; 6747 esac 6748 fi 6749 CUT=$ac_cv_path_CUT 6750 if test -n "$CUT"; then 6751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CUT" >&5 6752 $as_echo "$CUT" >&6; } 6753 else 6754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6755 $as_echo "no" >&6; } 6756 fi 6757 6758 6759 if test "x$CUT" = x; then 6760 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 6761 fi 6762 else 6763 # Otherwise we believe it is a complete path. Use it as it is. 6764 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CUT=$tool_specified" >&5 6765 $as_echo "$as_me: Will use user supplied tool CUT=$tool_specified" >&6;} 6766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUT" >&5 6767 $as_echo_n "checking for CUT... " >&6; } 6768 if test ! -x "$tool_specified"; then 6769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 6770 $as_echo "not found" >&6; } 6771 as_fn_error $? "User supplied tool CUT=$tool_specified does not exist or is not executable" "$LINENO" 5 6772 fi 6773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 6774 $as_echo "$tool_specified" >&6; } 6775 fi 6776 fi 6777 fi 6778 6779 fi 6780 6781 6782 6783 if test "x$CUT" = x; then 6784 as_fn_error $? "Could not find required tool for CUT" "$LINENO" 5 6785 fi 6786 6787 6788 6789 6790 6791 # Publish this variable in the help. 6792 6793 6794 if [ -z "${DATE+x}" ]; then 6795 # The variable is not set by user, try to locate tool using the code snippet 6796 for ac_prog in date 6797 do 6798 # Extract the first word of "$ac_prog", so it can be a program name with args. 6799 set dummy $ac_prog; ac_word=$2 6800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6801 $as_echo_n "checking for $ac_word... " >&6; } 6802 if ${ac_cv_path_DATE+:} false; then : 6803 $as_echo_n "(cached) " >&6 6804 else 6805 case $DATE in 6806 [\\/]* | ?:[\\/]*) 6807 ac_cv_path_DATE="$DATE" # Let the user override the test with a path. 6808 ;; 6809 *) 6810 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6811 for as_dir in $PATH 6812 do 6813 IFS=$as_save_IFS 6814 test -z "$as_dir" && as_dir=. 6815 for ac_exec_ext in '' $ac_executable_extensions; do 6816 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6817 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext" 6818 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6819 break 2 6820 fi 6821 done 6822 done 6823 IFS=$as_save_IFS 6824 6825 ;; 6826 esac 6827 fi 6828 DATE=$ac_cv_path_DATE 6829 if test -n "$DATE"; then 6830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DATE" >&5 6831 $as_echo "$DATE" >&6; } 6832 else 6833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6834 $as_echo "no" >&6; } 6835 fi 6836 6837 6838 test -n "$DATE" && break 6839 done 6840 6841 else 6842 # The variable is set, but is it from the command line or the environment? 6843 6844 # Try to remove the string !DATE! from our list. 6845 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!DATE!/} 6846 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 6847 # If it failed, the variable was not from the command line. Ignore it, 6848 # but warn the user (except for BASH, which is always set by the calling BASH). 6849 if test "xDATE" != xBASH; then 6850 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of DATE from the environment. Use command line variables instead." >&5 6851 $as_echo "$as_me: WARNING: Ignoring value of DATE from the environment. Use command line variables instead." >&2;} 6852 fi 6853 # Try to locate tool using the code snippet 6854 for ac_prog in date 6855 do 6856 # Extract the first word of "$ac_prog", so it can be a program name with args. 6857 set dummy $ac_prog; ac_word=$2 6858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6859 $as_echo_n "checking for $ac_word... " >&6; } 6860 if ${ac_cv_path_DATE+:} false; then : 6861 $as_echo_n "(cached) " >&6 6862 else 6863 case $DATE in 6864 [\\/]* | ?:[\\/]*) 6865 ac_cv_path_DATE="$DATE" # Let the user override the test with a path. 6866 ;; 6867 *) 6868 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6869 for as_dir in $PATH 6870 do 6871 IFS=$as_save_IFS 6872 test -z "$as_dir" && as_dir=. 6873 for ac_exec_ext in '' $ac_executable_extensions; do 6874 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6875 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext" 6876 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6877 break 2 6878 fi 6879 done 6880 done 6881 IFS=$as_save_IFS 6882 6883 ;; 6884 esac 6885 fi 6886 DATE=$ac_cv_path_DATE 6887 if test -n "$DATE"; then 6888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DATE" >&5 6889 $as_echo "$DATE" >&6; } 6890 else 6891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6892 $as_echo "no" >&6; } 6893 fi 6894 6895 6896 test -n "$DATE" && break 6897 done 6898 6899 else 6900 # If it succeeded, then it was overridden by the user. We will use it 6901 # for the tool. 6902 6903 # First remove it from the list of overridden variables, so we can test 6904 # for unknown variables in the end. 6905 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 6906 6907 # Check if we try to supply an empty value 6908 if test "x$DATE" = x; then 6909 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool DATE= (no value)" >&5 6910 $as_echo "$as_me: Setting user supplied tool DATE= (no value)" >&6;} 6911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DATE" >&5 6912 $as_echo_n "checking for DATE... " >&6; } 6913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 6914 $as_echo "disabled" >&6; } 6915 else 6916 # Check if the provided tool contains a complete path. 6917 tool_specified="$DATE" 6918 tool_basename="${tool_specified##*/}" 6919 if test "x$tool_basename" = "x$tool_specified"; then 6920 # A command without a complete path is provided, search $PATH. 6921 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool DATE=$tool_basename" >&5 6922 $as_echo "$as_me: Will search for user supplied tool DATE=$tool_basename" >&6;} 6923 # Extract the first word of "$tool_basename", so it can be a program name with args. 6924 set dummy $tool_basename; ac_word=$2 6925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6926 $as_echo_n "checking for $ac_word... " >&6; } 6927 if ${ac_cv_path_DATE+:} false; then : 6928 $as_echo_n "(cached) " >&6 6929 else 6930 case $DATE in 6931 [\\/]* | ?:[\\/]*) 6932 ac_cv_path_DATE="$DATE" # Let the user override the test with a path. 6933 ;; 6934 *) 6935 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6936 for as_dir in $PATH 6937 do 6938 IFS=$as_save_IFS 6939 test -z "$as_dir" && as_dir=. 6940 for ac_exec_ext in '' $ac_executable_extensions; do 6941 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6942 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext" 6943 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6944 break 2 6945 fi 6946 done 6947 done 6948 IFS=$as_save_IFS 6949 6950 ;; 6951 esac 6952 fi 6953 DATE=$ac_cv_path_DATE 6954 if test -n "$DATE"; then 6955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DATE" >&5 6956 $as_echo "$DATE" >&6; } 6957 else 6958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6959 $as_echo "no" >&6; } 6960 fi 6961 6962 6963 if test "x$DATE" = x; then 6964 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 6965 fi 6966 else 6967 # Otherwise we believe it is a complete path. Use it as it is. 6968 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool DATE=$tool_specified" >&5 6969 $as_echo "$as_me: Will use user supplied tool DATE=$tool_specified" >&6;} 6970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DATE" >&5 6971 $as_echo_n "checking for DATE... " >&6; } 6972 if test ! -x "$tool_specified"; then 6973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 6974 $as_echo "not found" >&6; } 6975 as_fn_error $? "User supplied tool DATE=$tool_specified does not exist or is not executable" "$LINENO" 5 6976 fi 6977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 6978 $as_echo "$tool_specified" >&6; } 6979 fi 6980 fi 6981 fi 6982 6983 fi 6984 6985 6986 6987 if test "x$DATE" = x; then 6988 as_fn_error $? "Could not find required tool for DATE" "$LINENO" 5 6989 fi 6990 6991 6992 6993 6994 6995 # Publish this variable in the help. 6996 6997 6998 if [ -z "${DIFF+x}" ]; then 6999 # The variable is not set by user, try to locate tool using the code snippet 7000 for ac_prog in gdiff diff 7001 do 7002 # Extract the first word of "$ac_prog", so it can be a program name with args. 7003 set dummy $ac_prog; ac_word=$2 7004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7005 $as_echo_n "checking for $ac_word... " >&6; } 7006 if ${ac_cv_path_DIFF+:} false; then : 7007 $as_echo_n "(cached) " >&6 7008 else 7009 case $DIFF in 7010 [\\/]* | ?:[\\/]*) 7011 ac_cv_path_DIFF="$DIFF" # Let the user override the test with a path. 7012 ;; 7013 *) 7014 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7015 for as_dir in $PATH 7016 do 7017 IFS=$as_save_IFS 7018 test -z "$as_dir" && as_dir=. 7019 for ac_exec_ext in '' $ac_executable_extensions; do 7020 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7021 ac_cv_path_DIFF="$as_dir/$ac_word$ac_exec_ext" 7022 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7023 break 2 7024 fi 7025 done 7026 done 7027 IFS=$as_save_IFS 7028 7029 ;; 7030 esac 7031 fi 7032 DIFF=$ac_cv_path_DIFF 7033 if test -n "$DIFF"; then 7034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIFF" >&5 7035 $as_echo "$DIFF" >&6; } 7036 else 7037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7038 $as_echo "no" >&6; } 7039 fi 7040 7041 7042 test -n "$DIFF" && break 7043 done 7044 7045 else 7046 # The variable is set, but is it from the command line or the environment? 7047 7048 # Try to remove the string !DIFF! from our list. 7049 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!DIFF!/} 7050 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 7051 # If it failed, the variable was not from the command line. Ignore it, 7052 # but warn the user (except for BASH, which is always set by the calling BASH). 7053 if test "xDIFF" != xBASH; then 7054 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of DIFF from the environment. Use command line variables instead." >&5 7055 $as_echo "$as_me: WARNING: Ignoring value of DIFF from the environment. Use command line variables instead." >&2;} 7056 fi 7057 # Try to locate tool using the code snippet 7058 for ac_prog in gdiff diff 7059 do 7060 # Extract the first word of "$ac_prog", so it can be a program name with args. 7061 set dummy $ac_prog; ac_word=$2 7062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7063 $as_echo_n "checking for $ac_word... " >&6; } 7064 if ${ac_cv_path_DIFF+:} false; then : 7065 $as_echo_n "(cached) " >&6 7066 else 7067 case $DIFF in 7068 [\\/]* | ?:[\\/]*) 7069 ac_cv_path_DIFF="$DIFF" # Let the user override the test with a path. 7070 ;; 7071 *) 7072 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7073 for as_dir in $PATH 7074 do 7075 IFS=$as_save_IFS 7076 test -z "$as_dir" && as_dir=. 7077 for ac_exec_ext in '' $ac_executable_extensions; do 7078 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7079 ac_cv_path_DIFF="$as_dir/$ac_word$ac_exec_ext" 7080 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7081 break 2 7082 fi 7083 done 7084 done 7085 IFS=$as_save_IFS 7086 7087 ;; 7088 esac 7089 fi 7090 DIFF=$ac_cv_path_DIFF 7091 if test -n "$DIFF"; then 7092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIFF" >&5 7093 $as_echo "$DIFF" >&6; } 7094 else 7095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7096 $as_echo "no" >&6; } 7097 fi 7098 7099 7100 test -n "$DIFF" && break 7101 done 7102 7103 else 7104 # If it succeeded, then it was overridden by the user. We will use it 7105 # for the tool. 7106 7107 # First remove it from the list of overridden variables, so we can test 7108 # for unknown variables in the end. 7109 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 7110 7111 # Check if we try to supply an empty value 7112 if test "x$DIFF" = x; then 7113 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool DIFF= (no value)" >&5 7114 $as_echo "$as_me: Setting user supplied tool DIFF= (no value)" >&6;} 7115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DIFF" >&5 7116 $as_echo_n "checking for DIFF... " >&6; } 7117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 7118 $as_echo "disabled" >&6; } 7119 else 7120 # Check if the provided tool contains a complete path. 7121 tool_specified="$DIFF" 7122 tool_basename="${tool_specified##*/}" 7123 if test "x$tool_basename" = "x$tool_specified"; then 7124 # A command without a complete path is provided, search $PATH. 7125 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool DIFF=$tool_basename" >&5 7126 $as_echo "$as_me: Will search for user supplied tool DIFF=$tool_basename" >&6;} 7127 # Extract the first word of "$tool_basename", so it can be a program name with args. 7128 set dummy $tool_basename; ac_word=$2 7129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7130 $as_echo_n "checking for $ac_word... " >&6; } 7131 if ${ac_cv_path_DIFF+:} false; then : 7132 $as_echo_n "(cached) " >&6 7133 else 7134 case $DIFF in 7135 [\\/]* | ?:[\\/]*) 7136 ac_cv_path_DIFF="$DIFF" # Let the user override the test with a path. 7137 ;; 7138 *) 7139 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7140 for as_dir in $PATH 7141 do 7142 IFS=$as_save_IFS 7143 test -z "$as_dir" && as_dir=. 7144 for ac_exec_ext in '' $ac_executable_extensions; do 7145 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7146 ac_cv_path_DIFF="$as_dir/$ac_word$ac_exec_ext" 7147 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7148 break 2 7149 fi 7150 done 7151 done 7152 IFS=$as_save_IFS 7153 7154 ;; 7155 esac 7156 fi 7157 DIFF=$ac_cv_path_DIFF 7158 if test -n "$DIFF"; then 7159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIFF" >&5 7160 $as_echo "$DIFF" >&6; } 7161 else 7162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7163 $as_echo "no" >&6; } 7164 fi 7165 7166 7167 if test "x$DIFF" = x; then 7168 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 7169 fi 7170 else 7171 # Otherwise we believe it is a complete path. Use it as it is. 7172 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool DIFF=$tool_specified" >&5 7173 $as_echo "$as_me: Will use user supplied tool DIFF=$tool_specified" >&6;} 7174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DIFF" >&5 7175 $as_echo_n "checking for DIFF... " >&6; } 7176 if test ! -x "$tool_specified"; then 7177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 7178 $as_echo "not found" >&6; } 7179 as_fn_error $? "User supplied tool DIFF=$tool_specified does not exist or is not executable" "$LINENO" 5 7180 fi 7181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 7182 $as_echo "$tool_specified" >&6; } 7183 fi 7184 fi 7185 fi 7186 7187 fi 7188 7189 7190 7191 if test "x$DIFF" = x; then 7192 as_fn_error $? "Could not find required tool for DIFF" "$LINENO" 5 7193 fi 7194 7195 7196 7197 7198 7199 # Publish this variable in the help. 7200 7201 7202 if [ -z "${DIRNAME+x}" ]; then 7203 # The variable is not set by user, try to locate tool using the code snippet 7204 for ac_prog in dirname 7205 do 7206 # Extract the first word of "$ac_prog", so it can be a program name with args. 7207 set dummy $ac_prog; ac_word=$2 7208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7209 $as_echo_n "checking for $ac_word... " >&6; } 7210 if ${ac_cv_path_DIRNAME+:} false; then : 7211 $as_echo_n "(cached) " >&6 7212 else 7213 case $DIRNAME in 7214 [\\/]* | ?:[\\/]*) 7215 ac_cv_path_DIRNAME="$DIRNAME" # Let the user override the test with a path. 7216 ;; 7217 *) 7218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7219 for as_dir in $PATH 7220 do 7221 IFS=$as_save_IFS 7222 test -z "$as_dir" && as_dir=. 7223 for ac_exec_ext in '' $ac_executable_extensions; do 7224 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7225 ac_cv_path_DIRNAME="$as_dir/$ac_word$ac_exec_ext" 7226 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7227 break 2 7228 fi 7229 done 7230 done 7231 IFS=$as_save_IFS 7232 7233 ;; 7234 esac 7235 fi 7236 DIRNAME=$ac_cv_path_DIRNAME 7237 if test -n "$DIRNAME"; then 7238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIRNAME" >&5 7239 $as_echo "$DIRNAME" >&6; } 7240 else 7241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7242 $as_echo "no" >&6; } 7243 fi 7244 7245 7246 test -n "$DIRNAME" && break 7247 done 7248 7249 else 7250 # The variable is set, but is it from the command line or the environment? 7251 7252 # Try to remove the string !DIRNAME! from our list. 7253 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!DIRNAME!/} 7254 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 7255 # If it failed, the variable was not from the command line. Ignore it, 7256 # but warn the user (except for BASH, which is always set by the calling BASH). 7257 if test "xDIRNAME" != xBASH; then 7258 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of DIRNAME from the environment. Use command line variables instead." >&5 7259 $as_echo "$as_me: WARNING: Ignoring value of DIRNAME from the environment. Use command line variables instead." >&2;} 7260 fi 7261 # Try to locate tool using the code snippet 7262 for ac_prog in dirname 7263 do 7264 # Extract the first word of "$ac_prog", so it can be a program name with args. 7265 set dummy $ac_prog; ac_word=$2 7266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7267 $as_echo_n "checking for $ac_word... " >&6; } 7268 if ${ac_cv_path_DIRNAME+:} false; then : 7269 $as_echo_n "(cached) " >&6 7270 else 7271 case $DIRNAME in 7272 [\\/]* | ?:[\\/]*) 7273 ac_cv_path_DIRNAME="$DIRNAME" # Let the user override the test with a path. 7274 ;; 7275 *) 7276 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7277 for as_dir in $PATH 7278 do 7279 IFS=$as_save_IFS 7280 test -z "$as_dir" && as_dir=. 7281 for ac_exec_ext in '' $ac_executable_extensions; do 7282 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7283 ac_cv_path_DIRNAME="$as_dir/$ac_word$ac_exec_ext" 7284 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7285 break 2 7286 fi 7287 done 7288 done 7289 IFS=$as_save_IFS 7290 7291 ;; 7292 esac 7293 fi 7294 DIRNAME=$ac_cv_path_DIRNAME 7295 if test -n "$DIRNAME"; then 7296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIRNAME" >&5 7297 $as_echo "$DIRNAME" >&6; } 7298 else 7299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7300 $as_echo "no" >&6; } 7301 fi 7302 7303 7304 test -n "$DIRNAME" && break 7305 done 7306 7307 else 7308 # If it succeeded, then it was overridden by the user. We will use it 7309 # for the tool. 7310 7311 # First remove it from the list of overridden variables, so we can test 7312 # for unknown variables in the end. 7313 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 7314 7315 # Check if we try to supply an empty value 7316 if test "x$DIRNAME" = x; then 7317 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool DIRNAME= (no value)" >&5 7318 $as_echo "$as_me: Setting user supplied tool DIRNAME= (no value)" >&6;} 7319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DIRNAME" >&5 7320 $as_echo_n "checking for DIRNAME... " >&6; } 7321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 7322 $as_echo "disabled" >&6; } 7323 else 7324 # Check if the provided tool contains a complete path. 7325 tool_specified="$DIRNAME" 7326 tool_basename="${tool_specified##*/}" 7327 if test "x$tool_basename" = "x$tool_specified"; then 7328 # A command without a complete path is provided, search $PATH. 7329 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool DIRNAME=$tool_basename" >&5 7330 $as_echo "$as_me: Will search for user supplied tool DIRNAME=$tool_basename" >&6;} 7331 # Extract the first word of "$tool_basename", so it can be a program name with args. 7332 set dummy $tool_basename; ac_word=$2 7333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7334 $as_echo_n "checking for $ac_word... " >&6; } 7335 if ${ac_cv_path_DIRNAME+:} false; then : 7336 $as_echo_n "(cached) " >&6 7337 else 7338 case $DIRNAME in 7339 [\\/]* | ?:[\\/]*) 7340 ac_cv_path_DIRNAME="$DIRNAME" # Let the user override the test with a path. 7341 ;; 7342 *) 7343 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7344 for as_dir in $PATH 7345 do 7346 IFS=$as_save_IFS 7347 test -z "$as_dir" && as_dir=. 7348 for ac_exec_ext in '' $ac_executable_extensions; do 7349 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7350 ac_cv_path_DIRNAME="$as_dir/$ac_word$ac_exec_ext" 7351 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7352 break 2 7353 fi 7354 done 7355 done 7356 IFS=$as_save_IFS 7357 7358 ;; 7359 esac 7360 fi 7361 DIRNAME=$ac_cv_path_DIRNAME 7362 if test -n "$DIRNAME"; then 7363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIRNAME" >&5 7364 $as_echo "$DIRNAME" >&6; } 7365 else 7366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7367 $as_echo "no" >&6; } 7368 fi 7369 7370 7371 if test "x$DIRNAME" = x; then 7372 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 7373 fi 7374 else 7375 # Otherwise we believe it is a complete path. Use it as it is. 7376 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool DIRNAME=$tool_specified" >&5 7377 $as_echo "$as_me: Will use user supplied tool DIRNAME=$tool_specified" >&6;} 7378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DIRNAME" >&5 7379 $as_echo_n "checking for DIRNAME... " >&6; } 7380 if test ! -x "$tool_specified"; then 7381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 7382 $as_echo "not found" >&6; } 7383 as_fn_error $? "User supplied tool DIRNAME=$tool_specified does not exist or is not executable" "$LINENO" 5 7384 fi 7385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 7386 $as_echo "$tool_specified" >&6; } 7387 fi 7388 fi 7389 fi 7390 7391 fi 7392 7393 7394 7395 if test "x$DIRNAME" = x; then 7396 as_fn_error $? "Could not find required tool for DIRNAME" "$LINENO" 5 7397 fi 7398 7399 7400 7401 7402 7403 # Publish this variable in the help. 7404 7405 7406 if [ -z "${ECHO+x}" ]; then 7407 # The variable is not set by user, try to locate tool using the code snippet 7408 for ac_prog in echo 7409 do 7410 # Extract the first word of "$ac_prog", so it can be a program name with args. 7411 set dummy $ac_prog; ac_word=$2 7412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7413 $as_echo_n "checking for $ac_word... " >&6; } 7414 if ${ac_cv_path_ECHO+:} false; then : 7415 $as_echo_n "(cached) " >&6 7416 else 7417 case $ECHO in 7418 [\\/]* | ?:[\\/]*) 7419 ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path. 7420 ;; 7421 *) 7422 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7423 for as_dir in $PATH 7424 do 7425 IFS=$as_save_IFS 7426 test -z "$as_dir" && as_dir=. 7427 for ac_exec_ext in '' $ac_executable_extensions; do 7428 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7429 ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext" 7430 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7431 break 2 7432 fi 7433 done 7434 done 7435 IFS=$as_save_IFS 7436 7437 ;; 7438 esac 7439 fi 7440 ECHO=$ac_cv_path_ECHO 7441 if test -n "$ECHO"; then 7442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ECHO" >&5 7443 $as_echo "$ECHO" >&6; } 7444 else 7445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7446 $as_echo "no" >&6; } 7447 fi 7448 7449 7450 test -n "$ECHO" && break 7451 done 7452 7453 else 7454 # The variable is set, but is it from the command line or the environment? 7455 7456 # Try to remove the string !ECHO! from our list. 7457 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!ECHO!/} 7458 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 7459 # If it failed, the variable was not from the command line. Ignore it, 7460 # but warn the user (except for BASH, which is always set by the calling BASH). 7461 if test "xECHO" != xBASH; then 7462 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of ECHO from the environment. Use command line variables instead." >&5 7463 $as_echo "$as_me: WARNING: Ignoring value of ECHO from the environment. Use command line variables instead." >&2;} 7464 fi 7465 # Try to locate tool using the code snippet 7466 for ac_prog in echo 7467 do 7468 # Extract the first word of "$ac_prog", so it can be a program name with args. 7469 set dummy $ac_prog; ac_word=$2 7470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7471 $as_echo_n "checking for $ac_word... " >&6; } 7472 if ${ac_cv_path_ECHO+:} false; then : 7473 $as_echo_n "(cached) " >&6 7474 else 7475 case $ECHO in 7476 [\\/]* | ?:[\\/]*) 7477 ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path. 7478 ;; 7479 *) 7480 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7481 for as_dir in $PATH 7482 do 7483 IFS=$as_save_IFS 7484 test -z "$as_dir" && as_dir=. 7485 for ac_exec_ext in '' $ac_executable_extensions; do 7486 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7487 ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext" 7488 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7489 break 2 7490 fi 7491 done 7492 done 7493 IFS=$as_save_IFS 7494 7495 ;; 7496 esac 7497 fi 7498 ECHO=$ac_cv_path_ECHO 7499 if test -n "$ECHO"; then 7500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ECHO" >&5 7501 $as_echo "$ECHO" >&6; } 7502 else 7503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7504 $as_echo "no" >&6; } 7505 fi 7506 7507 7508 test -n "$ECHO" && break 7509 done 7510 7511 else 7512 # If it succeeded, then it was overridden by the user. We will use it 7513 # for the tool. 7514 7515 # First remove it from the list of overridden variables, so we can test 7516 # for unknown variables in the end. 7517 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 7518 7519 # Check if we try to supply an empty value 7520 if test "x$ECHO" = x; then 7521 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool ECHO= (no value)" >&5 7522 $as_echo "$as_me: Setting user supplied tool ECHO= (no value)" >&6;} 7523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ECHO" >&5 7524 $as_echo_n "checking for ECHO... " >&6; } 7525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 7526 $as_echo "disabled" >&6; } 7527 else 7528 # Check if the provided tool contains a complete path. 7529 tool_specified="$ECHO" 7530 tool_basename="${tool_specified##*/}" 7531 if test "x$tool_basename" = "x$tool_specified"; then 7532 # A command without a complete path is provided, search $PATH. 7533 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool ECHO=$tool_basename" >&5 7534 $as_echo "$as_me: Will search for user supplied tool ECHO=$tool_basename" >&6;} 7535 # Extract the first word of "$tool_basename", so it can be a program name with args. 7536 set dummy $tool_basename; ac_word=$2 7537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7538 $as_echo_n "checking for $ac_word... " >&6; } 7539 if ${ac_cv_path_ECHO+:} false; then : 7540 $as_echo_n "(cached) " >&6 7541 else 7542 case $ECHO in 7543 [\\/]* | ?:[\\/]*) 7544 ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path. 7545 ;; 7546 *) 7547 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7548 for as_dir in $PATH 7549 do 7550 IFS=$as_save_IFS 7551 test -z "$as_dir" && as_dir=. 7552 for ac_exec_ext in '' $ac_executable_extensions; do 7553 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7554 ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext" 7555 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7556 break 2 7557 fi 7558 done 7559 done 7560 IFS=$as_save_IFS 7561 7562 ;; 7563 esac 7564 fi 7565 ECHO=$ac_cv_path_ECHO 7566 if test -n "$ECHO"; then 7567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ECHO" >&5 7568 $as_echo "$ECHO" >&6; } 7569 else 7570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7571 $as_echo "no" >&6; } 7572 fi 7573 7574 7575 if test "x$ECHO" = x; then 7576 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 7577 fi 7578 else 7579 # Otherwise we believe it is a complete path. Use it as it is. 7580 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool ECHO=$tool_specified" >&5 7581 $as_echo "$as_me: Will use user supplied tool ECHO=$tool_specified" >&6;} 7582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ECHO" >&5 7583 $as_echo_n "checking for ECHO... " >&6; } 7584 if test ! -x "$tool_specified"; then 7585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 7586 $as_echo "not found" >&6; } 7587 as_fn_error $? "User supplied tool ECHO=$tool_specified does not exist or is not executable" "$LINENO" 5 7588 fi 7589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 7590 $as_echo "$tool_specified" >&6; } 7591 fi 7592 fi 7593 fi 7594 7595 fi 7596 7597 7598 7599 if test "x$ECHO" = x; then 7600 as_fn_error $? "Could not find required tool for ECHO" "$LINENO" 5 7601 fi 7602 7603 7604 7605 7606 7607 # Publish this variable in the help. 7608 7609 7610 if [ -z "${EXPR+x}" ]; then 7611 # The variable is not set by user, try to locate tool using the code snippet 7612 for ac_prog in expr 7613 do 7614 # Extract the first word of "$ac_prog", so it can be a program name with args. 7615 set dummy $ac_prog; ac_word=$2 7616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7617 $as_echo_n "checking for $ac_word... " >&6; } 7618 if ${ac_cv_path_EXPR+:} false; then : 7619 $as_echo_n "(cached) " >&6 7620 else 7621 case $EXPR in 7622 [\\/]* | ?:[\\/]*) 7623 ac_cv_path_EXPR="$EXPR" # Let the user override the test with a path. 7624 ;; 7625 *) 7626 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7627 for as_dir in $PATH 7628 do 7629 IFS=$as_save_IFS 7630 test -z "$as_dir" && as_dir=. 7631 for ac_exec_ext in '' $ac_executable_extensions; do 7632 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7633 ac_cv_path_EXPR="$as_dir/$ac_word$ac_exec_ext" 7634 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7635 break 2 7636 fi 7637 done 7638 done 7639 IFS=$as_save_IFS 7640 7641 ;; 7642 esac 7643 fi 7644 EXPR=$ac_cv_path_EXPR 7645 if test -n "$EXPR"; then 7646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPR" >&5 7647 $as_echo "$EXPR" >&6; } 7648 else 7649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7650 $as_echo "no" >&6; } 7651 fi 7652 7653 7654 test -n "$EXPR" && break 7655 done 7656 7657 else 7658 # The variable is set, but is it from the command line or the environment? 7659 7660 # Try to remove the string !EXPR! from our list. 7661 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!EXPR!/} 7662 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 7663 # If it failed, the variable was not from the command line. Ignore it, 7664 # but warn the user (except for BASH, which is always set by the calling BASH). 7665 if test "xEXPR" != xBASH; then 7666 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of EXPR from the environment. Use command line variables instead." >&5 7667 $as_echo "$as_me: WARNING: Ignoring value of EXPR from the environment. Use command line variables instead." >&2;} 7668 fi 7669 # Try to locate tool using the code snippet 7670 for ac_prog in expr 7671 do 7672 # Extract the first word of "$ac_prog", so it can be a program name with args. 7673 set dummy $ac_prog; ac_word=$2 7674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7675 $as_echo_n "checking for $ac_word... " >&6; } 7676 if ${ac_cv_path_EXPR+:} false; then : 7677 $as_echo_n "(cached) " >&6 7678 else 7679 case $EXPR in 7680 [\\/]* | ?:[\\/]*) 7681 ac_cv_path_EXPR="$EXPR" # Let the user override the test with a path. 7682 ;; 7683 *) 7684 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7685 for as_dir in $PATH 7686 do 7687 IFS=$as_save_IFS 7688 test -z "$as_dir" && as_dir=. 7689 for ac_exec_ext in '' $ac_executable_extensions; do 7690 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7691 ac_cv_path_EXPR="$as_dir/$ac_word$ac_exec_ext" 7692 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7693 break 2 7694 fi 7695 done 7696 done 7697 IFS=$as_save_IFS 7698 7699 ;; 7700 esac 7701 fi 7702 EXPR=$ac_cv_path_EXPR 7703 if test -n "$EXPR"; then 7704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPR" >&5 7705 $as_echo "$EXPR" >&6; } 7706 else 7707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7708 $as_echo "no" >&6; } 7709 fi 7710 7711 7712 test -n "$EXPR" && break 7713 done 7714 7715 else 7716 # If it succeeded, then it was overridden by the user. We will use it 7717 # for the tool. 7718 7719 # First remove it from the list of overridden variables, so we can test 7720 # for unknown variables in the end. 7721 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 7722 7723 # Check if we try to supply an empty value 7724 if test "x$EXPR" = x; then 7725 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool EXPR= (no value)" >&5 7726 $as_echo "$as_me: Setting user supplied tool EXPR= (no value)" >&6;} 7727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EXPR" >&5 7728 $as_echo_n "checking for EXPR... " >&6; } 7729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 7730 $as_echo "disabled" >&6; } 7731 else 7732 # Check if the provided tool contains a complete path. 7733 tool_specified="$EXPR" 7734 tool_basename="${tool_specified##*/}" 7735 if test "x$tool_basename" = "x$tool_specified"; then 7736 # A command without a complete path is provided, search $PATH. 7737 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool EXPR=$tool_basename" >&5 7738 $as_echo "$as_me: Will search for user supplied tool EXPR=$tool_basename" >&6;} 7739 # Extract the first word of "$tool_basename", so it can be a program name with args. 7740 set dummy $tool_basename; ac_word=$2 7741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7742 $as_echo_n "checking for $ac_word... " >&6; } 7743 if ${ac_cv_path_EXPR+:} false; then : 7744 $as_echo_n "(cached) " >&6 7745 else 7746 case $EXPR in 7747 [\\/]* | ?:[\\/]*) 7748 ac_cv_path_EXPR="$EXPR" # Let the user override the test with a path. 7749 ;; 7750 *) 7751 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7752 for as_dir in $PATH 7753 do 7754 IFS=$as_save_IFS 7755 test -z "$as_dir" && as_dir=. 7756 for ac_exec_ext in '' $ac_executable_extensions; do 7757 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7758 ac_cv_path_EXPR="$as_dir/$ac_word$ac_exec_ext" 7759 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7760 break 2 7761 fi 7762 done 7763 done 7764 IFS=$as_save_IFS 7765 7766 ;; 7767 esac 7768 fi 7769 EXPR=$ac_cv_path_EXPR 7770 if test -n "$EXPR"; then 7771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPR" >&5 7772 $as_echo "$EXPR" >&6; } 7773 else 7774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7775 $as_echo "no" >&6; } 7776 fi 7777 7778 7779 if test "x$EXPR" = x; then 7780 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 7781 fi 7782 else 7783 # Otherwise we believe it is a complete path. Use it as it is. 7784 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool EXPR=$tool_specified" >&5 7785 $as_echo "$as_me: Will use user supplied tool EXPR=$tool_specified" >&6;} 7786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EXPR" >&5 7787 $as_echo_n "checking for EXPR... " >&6; } 7788 if test ! -x "$tool_specified"; then 7789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 7790 $as_echo "not found" >&6; } 7791 as_fn_error $? "User supplied tool EXPR=$tool_specified does not exist or is not executable" "$LINENO" 5 7792 fi 7793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 7794 $as_echo "$tool_specified" >&6; } 7795 fi 7796 fi 7797 fi 7798 7799 fi 7800 7801 7802 7803 if test "x$EXPR" = x; then 7804 as_fn_error $? "Could not find required tool for EXPR" "$LINENO" 5 7805 fi 7806 7807 7808 7809 7810 7811 # Publish this variable in the help. 7812 7813 7814 if [ -z "${FILE+x}" ]; then 7815 # The variable is not set by user, try to locate tool using the code snippet 7816 for ac_prog in file 7817 do 7818 # Extract the first word of "$ac_prog", so it can be a program name with args. 7819 set dummy $ac_prog; ac_word=$2 7820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7821 $as_echo_n "checking for $ac_word... " >&6; } 7822 if ${ac_cv_path_FILE+:} false; then : 7823 $as_echo_n "(cached) " >&6 7824 else 7825 case $FILE in 7826 [\\/]* | ?:[\\/]*) 7827 ac_cv_path_FILE="$FILE" # Let the user override the test with a path. 7828 ;; 7829 *) 7830 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7831 for as_dir in $PATH 7832 do 7833 IFS=$as_save_IFS 7834 test -z "$as_dir" && as_dir=. 7835 for ac_exec_ext in '' $ac_executable_extensions; do 7836 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7837 ac_cv_path_FILE="$as_dir/$ac_word$ac_exec_ext" 7838 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7839 break 2 7840 fi 7841 done 7842 done 7843 IFS=$as_save_IFS 7844 7845 ;; 7846 esac 7847 fi 7848 FILE=$ac_cv_path_FILE 7849 if test -n "$FILE"; then 7850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FILE" >&5 7851 $as_echo "$FILE" >&6; } 7852 else 7853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7854 $as_echo "no" >&6; } 7855 fi 7856 7857 7858 test -n "$FILE" && break 7859 done 7860 7861 else 7862 # The variable is set, but is it from the command line or the environment? 7863 7864 # Try to remove the string !FILE! from our list. 7865 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!FILE!/} 7866 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 7867 # If it failed, the variable was not from the command line. Ignore it, 7868 # but warn the user (except for BASH, which is always set by the calling BASH). 7869 if test "xFILE" != xBASH; then 7870 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of FILE from the environment. Use command line variables instead." >&5 7871 $as_echo "$as_me: WARNING: Ignoring value of FILE from the environment. Use command line variables instead." >&2;} 7872 fi 7873 # Try to locate tool using the code snippet 7874 for ac_prog in file 7875 do 7876 # Extract the first word of "$ac_prog", so it can be a program name with args. 7877 set dummy $ac_prog; ac_word=$2 7878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7879 $as_echo_n "checking for $ac_word... " >&6; } 7880 if ${ac_cv_path_FILE+:} false; then : 7881 $as_echo_n "(cached) " >&6 7882 else 7883 case $FILE in 7884 [\\/]* | ?:[\\/]*) 7885 ac_cv_path_FILE="$FILE" # Let the user override the test with a path. 7886 ;; 7887 *) 7888 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7889 for as_dir in $PATH 7890 do 7891 IFS=$as_save_IFS 7892 test -z "$as_dir" && as_dir=. 7893 for ac_exec_ext in '' $ac_executable_extensions; do 7894 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7895 ac_cv_path_FILE="$as_dir/$ac_word$ac_exec_ext" 7896 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7897 break 2 7898 fi 7899 done 7900 done 7901 IFS=$as_save_IFS 7902 7903 ;; 7904 esac 7905 fi 7906 FILE=$ac_cv_path_FILE 7907 if test -n "$FILE"; then 7908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FILE" >&5 7909 $as_echo "$FILE" >&6; } 7910 else 7911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7912 $as_echo "no" >&6; } 7913 fi 7914 7915 7916 test -n "$FILE" && break 7917 done 7918 7919 else 7920 # If it succeeded, then it was overridden by the user. We will use it 7921 # for the tool. 7922 7923 # First remove it from the list of overridden variables, so we can test 7924 # for unknown variables in the end. 7925 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 7926 7927 # Check if we try to supply an empty value 7928 if test "x$FILE" = x; then 7929 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool FILE= (no value)" >&5 7930 $as_echo "$as_me: Setting user supplied tool FILE= (no value)" >&6;} 7931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FILE" >&5 7932 $as_echo_n "checking for FILE... " >&6; } 7933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 7934 $as_echo "disabled" >&6; } 7935 else 7936 # Check if the provided tool contains a complete path. 7937 tool_specified="$FILE" 7938 tool_basename="${tool_specified##*/}" 7939 if test "x$tool_basename" = "x$tool_specified"; then 7940 # A command without a complete path is provided, search $PATH. 7941 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool FILE=$tool_basename" >&5 7942 $as_echo "$as_me: Will search for user supplied tool FILE=$tool_basename" >&6;} 7943 # Extract the first word of "$tool_basename", so it can be a program name with args. 7944 set dummy $tool_basename; ac_word=$2 7945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7946 $as_echo_n "checking for $ac_word... " >&6; } 7947 if ${ac_cv_path_FILE+:} false; then : 7948 $as_echo_n "(cached) " >&6 7949 else 7950 case $FILE in 7951 [\\/]* | ?:[\\/]*) 7952 ac_cv_path_FILE="$FILE" # Let the user override the test with a path. 7953 ;; 7954 *) 7955 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7956 for as_dir in $PATH 7957 do 7958 IFS=$as_save_IFS 7959 test -z "$as_dir" && as_dir=. 7960 for ac_exec_ext in '' $ac_executable_extensions; do 7961 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7962 ac_cv_path_FILE="$as_dir/$ac_word$ac_exec_ext" 7963 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7964 break 2 7965 fi 7966 done 7967 done 7968 IFS=$as_save_IFS 7969 7970 ;; 7971 esac 7972 fi 7973 FILE=$ac_cv_path_FILE 7974 if test -n "$FILE"; then 7975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FILE" >&5 7976 $as_echo "$FILE" >&6; } 7977 else 7978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7979 $as_echo "no" >&6; } 7980 fi 7981 7982 7983 if test "x$FILE" = x; then 7984 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 7985 fi 7986 else 7987 # Otherwise we believe it is a complete path. Use it as it is. 7988 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool FILE=$tool_specified" >&5 7989 $as_echo "$as_me: Will use user supplied tool FILE=$tool_specified" >&6;} 7990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FILE" >&5 7991 $as_echo_n "checking for FILE... " >&6; } 7992 if test ! -x "$tool_specified"; then 7993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 7994 $as_echo "not found" >&6; } 7995 as_fn_error $? "User supplied tool FILE=$tool_specified does not exist or is not executable" "$LINENO" 5 7996 fi 7997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 7998 $as_echo "$tool_specified" >&6; } 7999 fi 8000 fi 8001 fi 8002 8003 fi 8004 8005 8006 8007 if test "x$FILE" = x; then 8008 as_fn_error $? "Could not find required tool for FILE" "$LINENO" 5 8009 fi 8010 8011 8012 8013 8014 8015 # Publish this variable in the help. 8016 8017 8018 if [ -z "${FIND+x}" ]; then 8019 # The variable is not set by user, try to locate tool using the code snippet 8020 for ac_prog in find 8021 do 8022 # Extract the first word of "$ac_prog", so it can be a program name with args. 8023 set dummy $ac_prog; ac_word=$2 8024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8025 $as_echo_n "checking for $ac_word... " >&6; } 8026 if ${ac_cv_path_FIND+:} false; then : 8027 $as_echo_n "(cached) " >&6 8028 else 8029 case $FIND in 8030 [\\/]* | ?:[\\/]*) 8031 ac_cv_path_FIND="$FIND" # Let the user override the test with a path. 8032 ;; 8033 *) 8034 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8035 for as_dir in $PATH 8036 do 8037 IFS=$as_save_IFS 8038 test -z "$as_dir" && as_dir=. 8039 for ac_exec_ext in '' $ac_executable_extensions; do 8040 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8041 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext" 8042 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8043 break 2 8044 fi 8045 done 8046 done 8047 IFS=$as_save_IFS 8048 8049 ;; 8050 esac 8051 fi 8052 FIND=$ac_cv_path_FIND 8053 if test -n "$FIND"; then 8054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FIND" >&5 8055 $as_echo "$FIND" >&6; } 8056 else 8057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8058 $as_echo "no" >&6; } 8059 fi 8060 8061 8062 test -n "$FIND" && break 8063 done 8064 8065 else 8066 # The variable is set, but is it from the command line or the environment? 8067 8068 # Try to remove the string !FIND! from our list. 8069 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!FIND!/} 8070 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 8071 # If it failed, the variable was not from the command line. Ignore it, 8072 # but warn the user (except for BASH, which is always set by the calling BASH). 8073 if test "xFIND" != xBASH; then 8074 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of FIND from the environment. Use command line variables instead." >&5 8075 $as_echo "$as_me: WARNING: Ignoring value of FIND from the environment. Use command line variables instead." >&2;} 8076 fi 8077 # Try to locate tool using the code snippet 8078 for ac_prog in find 8079 do 8080 # Extract the first word of "$ac_prog", so it can be a program name with args. 8081 set dummy $ac_prog; ac_word=$2 8082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8083 $as_echo_n "checking for $ac_word... " >&6; } 8084 if ${ac_cv_path_FIND+:} false; then : 8085 $as_echo_n "(cached) " >&6 8086 else 8087 case $FIND in 8088 [\\/]* | ?:[\\/]*) 8089 ac_cv_path_FIND="$FIND" # Let the user override the test with a path. 8090 ;; 8091 *) 8092 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8093 for as_dir in $PATH 8094 do 8095 IFS=$as_save_IFS 8096 test -z "$as_dir" && as_dir=. 8097 for ac_exec_ext in '' $ac_executable_extensions; do 8098 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8099 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext" 8100 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8101 break 2 8102 fi 8103 done 8104 done 8105 IFS=$as_save_IFS 8106 8107 ;; 8108 esac 8109 fi 8110 FIND=$ac_cv_path_FIND 8111 if test -n "$FIND"; then 8112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FIND" >&5 8113 $as_echo "$FIND" >&6; } 8114 else 8115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8116 $as_echo "no" >&6; } 8117 fi 8118 8119 8120 test -n "$FIND" && break 8121 done 8122 8123 else 8124 # If it succeeded, then it was overridden by the user. We will use it 8125 # for the tool. 8126 8127 # First remove it from the list of overridden variables, so we can test 8128 # for unknown variables in the end. 8129 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 8130 8131 # Check if we try to supply an empty value 8132 if test "x$FIND" = x; then 8133 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool FIND= (no value)" >&5 8134 $as_echo "$as_me: Setting user supplied tool FIND= (no value)" >&6;} 8135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FIND" >&5 8136 $as_echo_n "checking for FIND... " >&6; } 8137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 8138 $as_echo "disabled" >&6; } 8139 else 8140 # Check if the provided tool contains a complete path. 8141 tool_specified="$FIND" 8142 tool_basename="${tool_specified##*/}" 8143 if test "x$tool_basename" = "x$tool_specified"; then 8144 # A command without a complete path is provided, search $PATH. 8145 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool FIND=$tool_basename" >&5 8146 $as_echo "$as_me: Will search for user supplied tool FIND=$tool_basename" >&6;} 8147 # Extract the first word of "$tool_basename", so it can be a program name with args. 8148 set dummy $tool_basename; ac_word=$2 8149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8150 $as_echo_n "checking for $ac_word... " >&6; } 8151 if ${ac_cv_path_FIND+:} false; then : 8152 $as_echo_n "(cached) " >&6 8153 else 8154 case $FIND in 8155 [\\/]* | ?:[\\/]*) 8156 ac_cv_path_FIND="$FIND" # Let the user override the test with a path. 8157 ;; 8158 *) 8159 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8160 for as_dir in $PATH 8161 do 8162 IFS=$as_save_IFS 8163 test -z "$as_dir" && as_dir=. 8164 for ac_exec_ext in '' $ac_executable_extensions; do 8165 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8166 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext" 8167 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8168 break 2 8169 fi 8170 done 8171 done 8172 IFS=$as_save_IFS 8173 8174 ;; 8175 esac 8176 fi 8177 FIND=$ac_cv_path_FIND 8178 if test -n "$FIND"; then 8179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FIND" >&5 8180 $as_echo "$FIND" >&6; } 8181 else 8182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8183 $as_echo "no" >&6; } 8184 fi 8185 8186 8187 if test "x$FIND" = x; then 8188 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 8189 fi 8190 else 8191 # Otherwise we believe it is a complete path. Use it as it is. 8192 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool FIND=$tool_specified" >&5 8193 $as_echo "$as_me: Will use user supplied tool FIND=$tool_specified" >&6;} 8194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FIND" >&5 8195 $as_echo_n "checking for FIND... " >&6; } 8196 if test ! -x "$tool_specified"; then 8197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 8198 $as_echo "not found" >&6; } 8199 as_fn_error $? "User supplied tool FIND=$tool_specified does not exist or is not executable" "$LINENO" 5 8200 fi 8201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 8202 $as_echo "$tool_specified" >&6; } 8203 fi 8204 fi 8205 fi 8206 8207 fi 8208 8209 8210 8211 if test "x$FIND" = x; then 8212 as_fn_error $? "Could not find required tool for FIND" "$LINENO" 5 8213 fi 8214 8215 8216 8217 8218 8219 # Publish this variable in the help. 8220 8221 8222 if [ -z "${HEAD+x}" ]; then 8223 # The variable is not set by user, try to locate tool using the code snippet 8224 for ac_prog in head 8225 do 8226 # Extract the first word of "$ac_prog", so it can be a program name with args. 8227 set dummy $ac_prog; ac_word=$2 8228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8229 $as_echo_n "checking for $ac_word... " >&6; } 8230 if ${ac_cv_path_HEAD+:} false; then : 8231 $as_echo_n "(cached) " >&6 8232 else 8233 case $HEAD in 8234 [\\/]* | ?:[\\/]*) 8235 ac_cv_path_HEAD="$HEAD" # Let the user override the test with a path. 8236 ;; 8237 *) 8238 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8239 for as_dir in $PATH 8240 do 8241 IFS=$as_save_IFS 8242 test -z "$as_dir" && as_dir=. 8243 for ac_exec_ext in '' $ac_executable_extensions; do 8244 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8245 ac_cv_path_HEAD="$as_dir/$ac_word$ac_exec_ext" 8246 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8247 break 2 8248 fi 8249 done 8250 done 8251 IFS=$as_save_IFS 8252 8253 ;; 8254 esac 8255 fi 8256 HEAD=$ac_cv_path_HEAD 8257 if test -n "$HEAD"; then 8258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HEAD" >&5 8259 $as_echo "$HEAD" >&6; } 8260 else 8261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8262 $as_echo "no" >&6; } 8263 fi 8264 8265 8266 test -n "$HEAD" && break 8267 done 8268 8269 else 8270 # The variable is set, but is it from the command line or the environment? 8271 8272 # Try to remove the string !HEAD! from our list. 8273 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!HEAD!/} 8274 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 8275 # If it failed, the variable was not from the command line. Ignore it, 8276 # but warn the user (except for BASH, which is always set by the calling BASH). 8277 if test "xHEAD" != xBASH; then 8278 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of HEAD from the environment. Use command line variables instead." >&5 8279 $as_echo "$as_me: WARNING: Ignoring value of HEAD from the environment. Use command line variables instead." >&2;} 8280 fi 8281 # Try to locate tool using the code snippet 8282 for ac_prog in head 8283 do 8284 # Extract the first word of "$ac_prog", so it can be a program name with args. 8285 set dummy $ac_prog; ac_word=$2 8286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8287 $as_echo_n "checking for $ac_word... " >&6; } 8288 if ${ac_cv_path_HEAD+:} false; then : 8289 $as_echo_n "(cached) " >&6 8290 else 8291 case $HEAD in 8292 [\\/]* | ?:[\\/]*) 8293 ac_cv_path_HEAD="$HEAD" # Let the user override the test with a path. 8294 ;; 8295 *) 8296 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8297 for as_dir in $PATH 8298 do 8299 IFS=$as_save_IFS 8300 test -z "$as_dir" && as_dir=. 8301 for ac_exec_ext in '' $ac_executable_extensions; do 8302 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8303 ac_cv_path_HEAD="$as_dir/$ac_word$ac_exec_ext" 8304 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8305 break 2 8306 fi 8307 done 8308 done 8309 IFS=$as_save_IFS 8310 8311 ;; 8312 esac 8313 fi 8314 HEAD=$ac_cv_path_HEAD 8315 if test -n "$HEAD"; then 8316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HEAD" >&5 8317 $as_echo "$HEAD" >&6; } 8318 else 8319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8320 $as_echo "no" >&6; } 8321 fi 8322 8323 8324 test -n "$HEAD" && break 8325 done 8326 8327 else 8328 # If it succeeded, then it was overridden by the user. We will use it 8329 # for the tool. 8330 8331 # First remove it from the list of overridden variables, so we can test 8332 # for unknown variables in the end. 8333 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 8334 8335 # Check if we try to supply an empty value 8336 if test "x$HEAD" = x; then 8337 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool HEAD= (no value)" >&5 8338 $as_echo "$as_me: Setting user supplied tool HEAD= (no value)" >&6;} 8339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for HEAD" >&5 8340 $as_echo_n "checking for HEAD... " >&6; } 8341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 8342 $as_echo "disabled" >&6; } 8343 else 8344 # Check if the provided tool contains a complete path. 8345 tool_specified="$HEAD" 8346 tool_basename="${tool_specified##*/}" 8347 if test "x$tool_basename" = "x$tool_specified"; then 8348 # A command without a complete path is provided, search $PATH. 8349 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool HEAD=$tool_basename" >&5 8350 $as_echo "$as_me: Will search for user supplied tool HEAD=$tool_basename" >&6;} 8351 # Extract the first word of "$tool_basename", so it can be a program name with args. 8352 set dummy $tool_basename; ac_word=$2 8353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8354 $as_echo_n "checking for $ac_word... " >&6; } 8355 if ${ac_cv_path_HEAD+:} false; then : 8356 $as_echo_n "(cached) " >&6 8357 else 8358 case $HEAD in 8359 [\\/]* | ?:[\\/]*) 8360 ac_cv_path_HEAD="$HEAD" # Let the user override the test with a path. 8361 ;; 8362 *) 8363 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8364 for as_dir in $PATH 8365 do 8366 IFS=$as_save_IFS 8367 test -z "$as_dir" && as_dir=. 8368 for ac_exec_ext in '' $ac_executable_extensions; do 8369 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8370 ac_cv_path_HEAD="$as_dir/$ac_word$ac_exec_ext" 8371 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8372 break 2 8373 fi 8374 done 8375 done 8376 IFS=$as_save_IFS 8377 8378 ;; 8379 esac 8380 fi 8381 HEAD=$ac_cv_path_HEAD 8382 if test -n "$HEAD"; then 8383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HEAD" >&5 8384 $as_echo "$HEAD" >&6; } 8385 else 8386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8387 $as_echo "no" >&6; } 8388 fi 8389 8390 8391 if test "x$HEAD" = x; then 8392 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 8393 fi 8394 else 8395 # Otherwise we believe it is a complete path. Use it as it is. 8396 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool HEAD=$tool_specified" >&5 8397 $as_echo "$as_me: Will use user supplied tool HEAD=$tool_specified" >&6;} 8398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for HEAD" >&5 8399 $as_echo_n "checking for HEAD... " >&6; } 8400 if test ! -x "$tool_specified"; then 8401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 8402 $as_echo "not found" >&6; } 8403 as_fn_error $? "User supplied tool HEAD=$tool_specified does not exist or is not executable" "$LINENO" 5 8404 fi 8405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 8406 $as_echo "$tool_specified" >&6; } 8407 fi 8408 fi 8409 fi 8410 8411 fi 8412 8413 8414 8415 if test "x$HEAD" = x; then 8416 as_fn_error $? "Could not find required tool for HEAD" "$LINENO" 5 8417 fi 8418 8419 8420 8421 8422 8423 # Publish this variable in the help. 8424 8425 8426 if [ -z "${GUNZIP+x}" ]; then 8427 # The variable is not set by user, try to locate tool using the code snippet 8428 for ac_prog in gunzip 8429 do 8430 # Extract the first word of "$ac_prog", so it can be a program name with args. 8431 set dummy $ac_prog; ac_word=$2 8432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8433 $as_echo_n "checking for $ac_word... " >&6; } 8434 if ${ac_cv_path_GUNZIP+:} false; then : 8435 $as_echo_n "(cached) " >&6 8436 else 8437 case $GUNZIP in 8438 [\\/]* | ?:[\\/]*) 8439 ac_cv_path_GUNZIP="$GUNZIP" # Let the user override the test with a path. 8440 ;; 8441 *) 8442 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8443 for as_dir in $PATH 8444 do 8445 IFS=$as_save_IFS 8446 test -z "$as_dir" && as_dir=. 8447 for ac_exec_ext in '' $ac_executable_extensions; do 8448 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8449 ac_cv_path_GUNZIP="$as_dir/$ac_word$ac_exec_ext" 8450 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8451 break 2 8452 fi 8453 done 8454 done 8455 IFS=$as_save_IFS 8456 8457 ;; 8458 esac 8459 fi 8460 GUNZIP=$ac_cv_path_GUNZIP 8461 if test -n "$GUNZIP"; then 8462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GUNZIP" >&5 8463 $as_echo "$GUNZIP" >&6; } 8464 else 8465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8466 $as_echo "no" >&6; } 8467 fi 8468 8469 8470 test -n "$GUNZIP" && break 8471 done 8472 8473 else 8474 # The variable is set, but is it from the command line or the environment? 8475 8476 # Try to remove the string !GUNZIP! from our list. 8477 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!GUNZIP!/} 8478 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 8479 # If it failed, the variable was not from the command line. Ignore it, 8480 # but warn the user (except for BASH, which is always set by the calling BASH). 8481 if test "xGUNZIP" != xBASH; then 8482 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of GUNZIP from the environment. Use command line variables instead." >&5 8483 $as_echo "$as_me: WARNING: Ignoring value of GUNZIP from the environment. Use command line variables instead." >&2;} 8484 fi 8485 # Try to locate tool using the code snippet 8486 for ac_prog in gunzip 8487 do 8488 # Extract the first word of "$ac_prog", so it can be a program name with args. 8489 set dummy $ac_prog; ac_word=$2 8490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8491 $as_echo_n "checking for $ac_word... " >&6; } 8492 if ${ac_cv_path_GUNZIP+:} false; then : 8493 $as_echo_n "(cached) " >&6 8494 else 8495 case $GUNZIP in 8496 [\\/]* | ?:[\\/]*) 8497 ac_cv_path_GUNZIP="$GUNZIP" # Let the user override the test with a path. 8498 ;; 8499 *) 8500 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8501 for as_dir in $PATH 8502 do 8503 IFS=$as_save_IFS 8504 test -z "$as_dir" && as_dir=. 8505 for ac_exec_ext in '' $ac_executable_extensions; do 8506 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8507 ac_cv_path_GUNZIP="$as_dir/$ac_word$ac_exec_ext" 8508 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8509 break 2 8510 fi 8511 done 8512 done 8513 IFS=$as_save_IFS 8514 8515 ;; 8516 esac 8517 fi 8518 GUNZIP=$ac_cv_path_GUNZIP 8519 if test -n "$GUNZIP"; then 8520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GUNZIP" >&5 8521 $as_echo "$GUNZIP" >&6; } 8522 else 8523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8524 $as_echo "no" >&6; } 8525 fi 8526 8527 8528 test -n "$GUNZIP" && break 8529 done 8530 8531 else 8532 # If it succeeded, then it was overridden by the user. We will use it 8533 # for the tool. 8534 8535 # First remove it from the list of overridden variables, so we can test 8536 # for unknown variables in the end. 8537 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 8538 8539 # Check if we try to supply an empty value 8540 if test "x$GUNZIP" = x; then 8541 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool GUNZIP= (no value)" >&5 8542 $as_echo "$as_me: Setting user supplied tool GUNZIP= (no value)" >&6;} 8543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GUNZIP" >&5 8544 $as_echo_n "checking for GUNZIP... " >&6; } 8545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 8546 $as_echo "disabled" >&6; } 8547 else 8548 # Check if the provided tool contains a complete path. 8549 tool_specified="$GUNZIP" 8550 tool_basename="${tool_specified##*/}" 8551 if test "x$tool_basename" = "x$tool_specified"; then 8552 # A command without a complete path is provided, search $PATH. 8553 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool GUNZIP=$tool_basename" >&5 8554 $as_echo "$as_me: Will search for user supplied tool GUNZIP=$tool_basename" >&6;} 8555 # Extract the first word of "$tool_basename", so it can be a program name with args. 8556 set dummy $tool_basename; ac_word=$2 8557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8558 $as_echo_n "checking for $ac_word... " >&6; } 8559 if ${ac_cv_path_GUNZIP+:} false; then : 8560 $as_echo_n "(cached) " >&6 8561 else 8562 case $GUNZIP in 8563 [\\/]* | ?:[\\/]*) 8564 ac_cv_path_GUNZIP="$GUNZIP" # Let the user override the test with a path. 8565 ;; 8566 *) 8567 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8568 for as_dir in $PATH 8569 do 8570 IFS=$as_save_IFS 8571 test -z "$as_dir" && as_dir=. 8572 for ac_exec_ext in '' $ac_executable_extensions; do 8573 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8574 ac_cv_path_GUNZIP="$as_dir/$ac_word$ac_exec_ext" 8575 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8576 break 2 8577 fi 8578 done 8579 done 8580 IFS=$as_save_IFS 8581 8582 ;; 8583 esac 8584 fi 8585 GUNZIP=$ac_cv_path_GUNZIP 8586 if test -n "$GUNZIP"; then 8587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GUNZIP" >&5 8588 $as_echo "$GUNZIP" >&6; } 8589 else 8590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8591 $as_echo "no" >&6; } 8592 fi 8593 8594 8595 if test "x$GUNZIP" = x; then 8596 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 8597 fi 8598 else 8599 # Otherwise we believe it is a complete path. Use it as it is. 8600 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool GUNZIP=$tool_specified" >&5 8601 $as_echo "$as_me: Will use user supplied tool GUNZIP=$tool_specified" >&6;} 8602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GUNZIP" >&5 8603 $as_echo_n "checking for GUNZIP... " >&6; } 8604 if test ! -x "$tool_specified"; then 8605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 8606 $as_echo "not found" >&6; } 8607 as_fn_error $? "User supplied tool GUNZIP=$tool_specified does not exist or is not executable" "$LINENO" 5 8608 fi 8609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 8610 $as_echo "$tool_specified" >&6; } 8611 fi 8612 fi 8613 fi 8614 8615 fi 8616 8617 8618 8619 if test "x$GUNZIP" = x; then 8620 as_fn_error $? "Could not find required tool for GUNZIP" "$LINENO" 5 8621 fi 8622 8623 8624 8625 8626 8627 # Publish this variable in the help. 8628 8629 8630 if [ -z "${GZIP+x}" ]; then 8631 # The variable is not set by user, try to locate tool using the code snippet 8632 for ac_prog in pigz gzip 8633 do 8634 # Extract the first word of "$ac_prog", so it can be a program name with args. 8635 set dummy $ac_prog; ac_word=$2 8636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8637 $as_echo_n "checking for $ac_word... " >&6; } 8638 if ${ac_cv_path_GZIP+:} false; then : 8639 $as_echo_n "(cached) " >&6 8640 else 8641 case $GZIP in 8642 [\\/]* | ?:[\\/]*) 8643 ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path. 8644 ;; 8645 *) 8646 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8647 for as_dir in $PATH 8648 do 8649 IFS=$as_save_IFS 8650 test -z "$as_dir" && as_dir=. 8651 for ac_exec_ext in '' $ac_executable_extensions; do 8652 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8653 ac_cv_path_GZIP="$as_dir/$ac_word$ac_exec_ext" 8654 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8655 break 2 8656 fi 8657 done 8658 done 8659 IFS=$as_save_IFS 8660 8661 ;; 8662 esac 8663 fi 8664 GZIP=$ac_cv_path_GZIP 8665 if test -n "$GZIP"; then 8666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GZIP" >&5 8667 $as_echo "$GZIP" >&6; } 8668 else 8669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8670 $as_echo "no" >&6; } 8671 fi 8672 8673 8674 test -n "$GZIP" && break 8675 done 8676 8677 else 8678 # The variable is set, but is it from the command line or the environment? 8679 8680 # Try to remove the string !GZIP! from our list. 8681 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!GZIP!/} 8682 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 8683 # If it failed, the variable was not from the command line. Ignore it, 8684 # but warn the user (except for BASH, which is always set by the calling BASH). 8685 if test "xGZIP" != xBASH; then 8686 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of GZIP from the environment. Use command line variables instead." >&5 8687 $as_echo "$as_me: WARNING: Ignoring value of GZIP from the environment. Use command line variables instead." >&2;} 8688 fi 8689 # Try to locate tool using the code snippet 8690 for ac_prog in pigz gzip 8691 do 8692 # Extract the first word of "$ac_prog", so it can be a program name with args. 8693 set dummy $ac_prog; ac_word=$2 8694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8695 $as_echo_n "checking for $ac_word... " >&6; } 8696 if ${ac_cv_path_GZIP+:} false; then : 8697 $as_echo_n "(cached) " >&6 8698 else 8699 case $GZIP in 8700 [\\/]* | ?:[\\/]*) 8701 ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path. 8702 ;; 8703 *) 8704 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8705 for as_dir in $PATH 8706 do 8707 IFS=$as_save_IFS 8708 test -z "$as_dir" && as_dir=. 8709 for ac_exec_ext in '' $ac_executable_extensions; do 8710 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8711 ac_cv_path_GZIP="$as_dir/$ac_word$ac_exec_ext" 8712 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8713 break 2 8714 fi 8715 done 8716 done 8717 IFS=$as_save_IFS 8718 8719 ;; 8720 esac 8721 fi 8722 GZIP=$ac_cv_path_GZIP 8723 if test -n "$GZIP"; then 8724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GZIP" >&5 8725 $as_echo "$GZIP" >&6; } 8726 else 8727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8728 $as_echo "no" >&6; } 8729 fi 8730 8731 8732 test -n "$GZIP" && break 8733 done 8734 8735 else 8736 # If it succeeded, then it was overridden by the user. We will use it 8737 # for the tool. 8738 8739 # First remove it from the list of overridden variables, so we can test 8740 # for unknown variables in the end. 8741 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 8742 8743 # Check if we try to supply an empty value 8744 if test "x$GZIP" = x; then 8745 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool GZIP= (no value)" >&5 8746 $as_echo "$as_me: Setting user supplied tool GZIP= (no value)" >&6;} 8747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GZIP" >&5 8748 $as_echo_n "checking for GZIP... " >&6; } 8749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 8750 $as_echo "disabled" >&6; } 8751 else 8752 # Check if the provided tool contains a complete path. 8753 tool_specified="$GZIP" 8754 tool_basename="${tool_specified##*/}" 8755 if test "x$tool_basename" = "x$tool_specified"; then 8756 # A command without a complete path is provided, search $PATH. 8757 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool GZIP=$tool_basename" >&5 8758 $as_echo "$as_me: Will search for user supplied tool GZIP=$tool_basename" >&6;} 8759 # Extract the first word of "$tool_basename", so it can be a program name with args. 8760 set dummy $tool_basename; ac_word=$2 8761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8762 $as_echo_n "checking for $ac_word... " >&6; } 8763 if ${ac_cv_path_GZIP+:} false; then : 8764 $as_echo_n "(cached) " >&6 8765 else 8766 case $GZIP in 8767 [\\/]* | ?:[\\/]*) 8768 ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path. 8769 ;; 8770 *) 8771 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8772 for as_dir in $PATH 8773 do 8774 IFS=$as_save_IFS 8775 test -z "$as_dir" && as_dir=. 8776 for ac_exec_ext in '' $ac_executable_extensions; do 8777 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8778 ac_cv_path_GZIP="$as_dir/$ac_word$ac_exec_ext" 8779 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8780 break 2 8781 fi 8782 done 8783 done 8784 IFS=$as_save_IFS 8785 8786 ;; 8787 esac 8788 fi 8789 GZIP=$ac_cv_path_GZIP 8790 if test -n "$GZIP"; then 8791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GZIP" >&5 8792 $as_echo "$GZIP" >&6; } 8793 else 8794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8795 $as_echo "no" >&6; } 8796 fi 8797 8798 8799 if test "x$GZIP" = x; then 8800 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 8801 fi 8802 else 8803 # Otherwise we believe it is a complete path. Use it as it is. 8804 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool GZIP=$tool_specified" >&5 8805 $as_echo "$as_me: Will use user supplied tool GZIP=$tool_specified" >&6;} 8806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GZIP" >&5 8807 $as_echo_n "checking for GZIP... " >&6; } 8808 if test ! -x "$tool_specified"; then 8809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 8810 $as_echo "not found" >&6; } 8811 as_fn_error $? "User supplied tool GZIP=$tool_specified does not exist or is not executable" "$LINENO" 5 8812 fi 8813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 8814 $as_echo "$tool_specified" >&6; } 8815 fi 8816 fi 8817 fi 8818 8819 fi 8820 8821 8822 8823 if test "x$GZIP" = x; then 8824 as_fn_error $? "Could not find required tool for GZIP" "$LINENO" 5 8825 fi 8826 8827 8828 8829 8830 8831 # Publish this variable in the help. 8832 8833 8834 if [ -z "${LN+x}" ]; then 8835 # The variable is not set by user, try to locate tool using the code snippet 8836 for ac_prog in ln 8837 do 8838 # Extract the first word of "$ac_prog", so it can be a program name with args. 8839 set dummy $ac_prog; ac_word=$2 8840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8841 $as_echo_n "checking for $ac_word... " >&6; } 8842 if ${ac_cv_path_LN+:} false; then : 8843 $as_echo_n "(cached) " >&6 8844 else 8845 case $LN in 8846 [\\/]* | ?:[\\/]*) 8847 ac_cv_path_LN="$LN" # Let the user override the test with a path. 8848 ;; 8849 *) 8850 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8851 for as_dir in $PATH 8852 do 8853 IFS=$as_save_IFS 8854 test -z "$as_dir" && as_dir=. 8855 for ac_exec_ext in '' $ac_executable_extensions; do 8856 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8857 ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext" 8858 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8859 break 2 8860 fi 8861 done 8862 done 8863 IFS=$as_save_IFS 8864 8865 ;; 8866 esac 8867 fi 8868 LN=$ac_cv_path_LN 8869 if test -n "$LN"; then 8870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LN" >&5 8871 $as_echo "$LN" >&6; } 8872 else 8873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8874 $as_echo "no" >&6; } 8875 fi 8876 8877 8878 test -n "$LN" && break 8879 done 8880 8881 else 8882 # The variable is set, but is it from the command line or the environment? 8883 8884 # Try to remove the string !LN! from our list. 8885 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!LN!/} 8886 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 8887 # If it failed, the variable was not from the command line. Ignore it, 8888 # but warn the user (except for BASH, which is always set by the calling BASH). 8889 if test "xLN" != xBASH; then 8890 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of LN from the environment. Use command line variables instead." >&5 8891 $as_echo "$as_me: WARNING: Ignoring value of LN from the environment. Use command line variables instead." >&2;} 8892 fi 8893 # Try to locate tool using the code snippet 8894 for ac_prog in ln 8895 do 8896 # Extract the first word of "$ac_prog", so it can be a program name with args. 8897 set dummy $ac_prog; ac_word=$2 8898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8899 $as_echo_n "checking for $ac_word... " >&6; } 8900 if ${ac_cv_path_LN+:} false; then : 8901 $as_echo_n "(cached) " >&6 8902 else 8903 case $LN in 8904 [\\/]* | ?:[\\/]*) 8905 ac_cv_path_LN="$LN" # Let the user override the test with a path. 8906 ;; 8907 *) 8908 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8909 for as_dir in $PATH 8910 do 8911 IFS=$as_save_IFS 8912 test -z "$as_dir" && as_dir=. 8913 for ac_exec_ext in '' $ac_executable_extensions; do 8914 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8915 ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext" 8916 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8917 break 2 8918 fi 8919 done 8920 done 8921 IFS=$as_save_IFS 8922 8923 ;; 8924 esac 8925 fi 8926 LN=$ac_cv_path_LN 8927 if test -n "$LN"; then 8928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LN" >&5 8929 $as_echo "$LN" >&6; } 8930 else 8931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8932 $as_echo "no" >&6; } 8933 fi 8934 8935 8936 test -n "$LN" && break 8937 done 8938 8939 else 8940 # If it succeeded, then it was overridden by the user. We will use it 8941 # for the tool. 8942 8943 # First remove it from the list of overridden variables, so we can test 8944 # for unknown variables in the end. 8945 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 8946 8947 # Check if we try to supply an empty value 8948 if test "x$LN" = x; then 8949 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool LN= (no value)" >&5 8950 $as_echo "$as_me: Setting user supplied tool LN= (no value)" >&6;} 8951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LN" >&5 8952 $as_echo_n "checking for LN... " >&6; } 8953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 8954 $as_echo "disabled" >&6; } 8955 else 8956 # Check if the provided tool contains a complete path. 8957 tool_specified="$LN" 8958 tool_basename="${tool_specified##*/}" 8959 if test "x$tool_basename" = "x$tool_specified"; then 8960 # A command without a complete path is provided, search $PATH. 8961 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool LN=$tool_basename" >&5 8962 $as_echo "$as_me: Will search for user supplied tool LN=$tool_basename" >&6;} 8963 # Extract the first word of "$tool_basename", so it can be a program name with args. 8964 set dummy $tool_basename; ac_word=$2 8965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8966 $as_echo_n "checking for $ac_word... " >&6; } 8967 if ${ac_cv_path_LN+:} false; then : 8968 $as_echo_n "(cached) " >&6 8969 else 8970 case $LN in 8971 [\\/]* | ?:[\\/]*) 8972 ac_cv_path_LN="$LN" # Let the user override the test with a path. 8973 ;; 8974 *) 8975 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8976 for as_dir in $PATH 8977 do 8978 IFS=$as_save_IFS 8979 test -z "$as_dir" && as_dir=. 8980 for ac_exec_ext in '' $ac_executable_extensions; do 8981 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8982 ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext" 8983 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8984 break 2 8985 fi 8986 done 8987 done 8988 IFS=$as_save_IFS 8989 8990 ;; 8991 esac 8992 fi 8993 LN=$ac_cv_path_LN 8994 if test -n "$LN"; then 8995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LN" >&5 8996 $as_echo "$LN" >&6; } 8997 else 8998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8999 $as_echo "no" >&6; } 9000 fi 9001 9002 9003 if test "x$LN" = x; then 9004 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 9005 fi 9006 else 9007 # Otherwise we believe it is a complete path. Use it as it is. 9008 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool LN=$tool_specified" >&5 9009 $as_echo "$as_me: Will use user supplied tool LN=$tool_specified" >&6;} 9010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LN" >&5 9011 $as_echo_n "checking for LN... " >&6; } 9012 if test ! -x "$tool_specified"; then 9013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 9014 $as_echo "not found" >&6; } 9015 as_fn_error $? "User supplied tool LN=$tool_specified does not exist or is not executable" "$LINENO" 5 9016 fi 9017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 9018 $as_echo "$tool_specified" >&6; } 9019 fi 9020 fi 9021 fi 9022 9023 fi 9024 9025 9026 9027 if test "x$LN" = x; then 9028 as_fn_error $? "Could not find required tool for LN" "$LINENO" 5 9029 fi 9030 9031 9032 9033 9034 9035 # Publish this variable in the help. 9036 9037 9038 if [ -z "${LS+x}" ]; then 9039 # The variable is not set by user, try to locate tool using the code snippet 9040 for ac_prog in ls 9041 do 9042 # Extract the first word of "$ac_prog", so it can be a program name with args. 9043 set dummy $ac_prog; ac_word=$2 9044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9045 $as_echo_n "checking for $ac_word... " >&6; } 9046 if ${ac_cv_path_LS+:} false; then : 9047 $as_echo_n "(cached) " >&6 9048 else 9049 case $LS in 9050 [\\/]* | ?:[\\/]*) 9051 ac_cv_path_LS="$LS" # Let the user override the test with a path. 9052 ;; 9053 *) 9054 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9055 for as_dir in $PATH 9056 do 9057 IFS=$as_save_IFS 9058 test -z "$as_dir" && as_dir=. 9059 for ac_exec_ext in '' $ac_executable_extensions; do 9060 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9061 ac_cv_path_LS="$as_dir/$ac_word$ac_exec_ext" 9062 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9063 break 2 9064 fi 9065 done 9066 done 9067 IFS=$as_save_IFS 9068 9069 ;; 9070 esac 9071 fi 9072 LS=$ac_cv_path_LS 9073 if test -n "$LS"; then 9074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LS" >&5 9075 $as_echo "$LS" >&6; } 9076 else 9077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9078 $as_echo "no" >&6; } 9079 fi 9080 9081 9082 test -n "$LS" && break 9083 done 9084 9085 else 9086 # The variable is set, but is it from the command line or the environment? 9087 9088 # Try to remove the string !LS! from our list. 9089 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!LS!/} 9090 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 9091 # If it failed, the variable was not from the command line. Ignore it, 9092 # but warn the user (except for BASH, which is always set by the calling BASH). 9093 if test "xLS" != xBASH; then 9094 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of LS from the environment. Use command line variables instead." >&5 9095 $as_echo "$as_me: WARNING: Ignoring value of LS from the environment. Use command line variables instead." >&2;} 9096 fi 9097 # Try to locate tool using the code snippet 9098 for ac_prog in ls 9099 do 9100 # Extract the first word of "$ac_prog", so it can be a program name with args. 9101 set dummy $ac_prog; ac_word=$2 9102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9103 $as_echo_n "checking for $ac_word... " >&6; } 9104 if ${ac_cv_path_LS+:} false; then : 9105 $as_echo_n "(cached) " >&6 9106 else 9107 case $LS in 9108 [\\/]* | ?:[\\/]*) 9109 ac_cv_path_LS="$LS" # Let the user override the test with a path. 9110 ;; 9111 *) 9112 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9113 for as_dir in $PATH 9114 do 9115 IFS=$as_save_IFS 9116 test -z "$as_dir" && as_dir=. 9117 for ac_exec_ext in '' $ac_executable_extensions; do 9118 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9119 ac_cv_path_LS="$as_dir/$ac_word$ac_exec_ext" 9120 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9121 break 2 9122 fi 9123 done 9124 done 9125 IFS=$as_save_IFS 9126 9127 ;; 9128 esac 9129 fi 9130 LS=$ac_cv_path_LS 9131 if test -n "$LS"; then 9132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LS" >&5 9133 $as_echo "$LS" >&6; } 9134 else 9135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9136 $as_echo "no" >&6; } 9137 fi 9138 9139 9140 test -n "$LS" && break 9141 done 9142 9143 else 9144 # If it succeeded, then it was overridden by the user. We will use it 9145 # for the tool. 9146 9147 # First remove it from the list of overridden variables, so we can test 9148 # for unknown variables in the end. 9149 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 9150 9151 # Check if we try to supply an empty value 9152 if test "x$LS" = x; then 9153 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool LS= (no value)" >&5 9154 $as_echo "$as_me: Setting user supplied tool LS= (no value)" >&6;} 9155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LS" >&5 9156 $as_echo_n "checking for LS... " >&6; } 9157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 9158 $as_echo "disabled" >&6; } 9159 else 9160 # Check if the provided tool contains a complete path. 9161 tool_specified="$LS" 9162 tool_basename="${tool_specified##*/}" 9163 if test "x$tool_basename" = "x$tool_specified"; then 9164 # A command without a complete path is provided, search $PATH. 9165 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool LS=$tool_basename" >&5 9166 $as_echo "$as_me: Will search for user supplied tool LS=$tool_basename" >&6;} 9167 # Extract the first word of "$tool_basename", so it can be a program name with args. 9168 set dummy $tool_basename; ac_word=$2 9169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9170 $as_echo_n "checking for $ac_word... " >&6; } 9171 if ${ac_cv_path_LS+:} false; then : 9172 $as_echo_n "(cached) " >&6 9173 else 9174 case $LS in 9175 [\\/]* | ?:[\\/]*) 9176 ac_cv_path_LS="$LS" # Let the user override the test with a path. 9177 ;; 9178 *) 9179 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9180 for as_dir in $PATH 9181 do 9182 IFS=$as_save_IFS 9183 test -z "$as_dir" && as_dir=. 9184 for ac_exec_ext in '' $ac_executable_extensions; do 9185 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9186 ac_cv_path_LS="$as_dir/$ac_word$ac_exec_ext" 9187 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9188 break 2 9189 fi 9190 done 9191 done 9192 IFS=$as_save_IFS 9193 9194 ;; 9195 esac 9196 fi 9197 LS=$ac_cv_path_LS 9198 if test -n "$LS"; then 9199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LS" >&5 9200 $as_echo "$LS" >&6; } 9201 else 9202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9203 $as_echo "no" >&6; } 9204 fi 9205 9206 9207 if test "x$LS" = x; then 9208 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 9209 fi 9210 else 9211 # Otherwise we believe it is a complete path. Use it as it is. 9212 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool LS=$tool_specified" >&5 9213 $as_echo "$as_me: Will use user supplied tool LS=$tool_specified" >&6;} 9214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LS" >&5 9215 $as_echo_n "checking for LS... " >&6; } 9216 if test ! -x "$tool_specified"; then 9217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 9218 $as_echo "not found" >&6; } 9219 as_fn_error $? "User supplied tool LS=$tool_specified does not exist or is not executable" "$LINENO" 5 9220 fi 9221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 9222 $as_echo "$tool_specified" >&6; } 9223 fi 9224 fi 9225 fi 9226 9227 fi 9228 9229 9230 9231 if test "x$LS" = x; then 9232 as_fn_error $? "Could not find required tool for LS" "$LINENO" 5 9233 fi 9234 9235 9236 9237 9238 9239 # Publish this variable in the help. 9240 9241 9242 if [ -z "${MKDIR+x}" ]; then 9243 # The variable is not set by user, try to locate tool using the code snippet 9244 for ac_prog in mkdir 9245 do 9246 # Extract the first word of "$ac_prog", so it can be a program name with args. 9247 set dummy $ac_prog; ac_word=$2 9248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9249 $as_echo_n "checking for $ac_word... " >&6; } 9250 if ${ac_cv_path_MKDIR+:} false; then : 9251 $as_echo_n "(cached) " >&6 9252 else 9253 case $MKDIR in 9254 [\\/]* | ?:[\\/]*) 9255 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path. 9256 ;; 9257 *) 9258 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9259 for as_dir in $PATH 9260 do 9261 IFS=$as_save_IFS 9262 test -z "$as_dir" && as_dir=. 9263 for ac_exec_ext in '' $ac_executable_extensions; do 9264 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9265 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext" 9266 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9267 break 2 9268 fi 9269 done 9270 done 9271 IFS=$as_save_IFS 9272 9273 ;; 9274 esac 9275 fi 9276 MKDIR=$ac_cv_path_MKDIR 9277 if test -n "$MKDIR"; then 9278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR" >&5 9279 $as_echo "$MKDIR" >&6; } 9280 else 9281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9282 $as_echo "no" >&6; } 9283 fi 9284 9285 9286 test -n "$MKDIR" && break 9287 done 9288 9289 else 9290 # The variable is set, but is it from the command line or the environment? 9291 9292 # Try to remove the string !MKDIR! from our list. 9293 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!MKDIR!/} 9294 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 9295 # If it failed, the variable was not from the command line. Ignore it, 9296 # but warn the user (except for BASH, which is always set by the calling BASH). 9297 if test "xMKDIR" != xBASH; then 9298 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of MKDIR from the environment. Use command line variables instead." >&5 9299 $as_echo "$as_me: WARNING: Ignoring value of MKDIR from the environment. Use command line variables instead." >&2;} 9300 fi 9301 # Try to locate tool using the code snippet 9302 for ac_prog in mkdir 9303 do 9304 # Extract the first word of "$ac_prog", so it can be a program name with args. 9305 set dummy $ac_prog; ac_word=$2 9306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9307 $as_echo_n "checking for $ac_word... " >&6; } 9308 if ${ac_cv_path_MKDIR+:} false; then : 9309 $as_echo_n "(cached) " >&6 9310 else 9311 case $MKDIR in 9312 [\\/]* | ?:[\\/]*) 9313 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path. 9314 ;; 9315 *) 9316 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9317 for as_dir in $PATH 9318 do 9319 IFS=$as_save_IFS 9320 test -z "$as_dir" && as_dir=. 9321 for ac_exec_ext in '' $ac_executable_extensions; do 9322 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9323 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext" 9324 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9325 break 2 9326 fi 9327 done 9328 done 9329 IFS=$as_save_IFS 9330 9331 ;; 9332 esac 9333 fi 9334 MKDIR=$ac_cv_path_MKDIR 9335 if test -n "$MKDIR"; then 9336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR" >&5 9337 $as_echo "$MKDIR" >&6; } 9338 else 9339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9340 $as_echo "no" >&6; } 9341 fi 9342 9343 9344 test -n "$MKDIR" && break 9345 done 9346 9347 else 9348 # If it succeeded, then it was overridden by the user. We will use it 9349 # for the tool. 9350 9351 # First remove it from the list of overridden variables, so we can test 9352 # for unknown variables in the end. 9353 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 9354 9355 # Check if we try to supply an empty value 9356 if test "x$MKDIR" = x; then 9357 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool MKDIR= (no value)" >&5 9358 $as_echo "$as_me: Setting user supplied tool MKDIR= (no value)" >&6;} 9359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MKDIR" >&5 9360 $as_echo_n "checking for MKDIR... " >&6; } 9361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 9362 $as_echo "disabled" >&6; } 9363 else 9364 # Check if the provided tool contains a complete path. 9365 tool_specified="$MKDIR" 9366 tool_basename="${tool_specified##*/}" 9367 if test "x$tool_basename" = "x$tool_specified"; then 9368 # A command without a complete path is provided, search $PATH. 9369 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool MKDIR=$tool_basename" >&5 9370 $as_echo "$as_me: Will search for user supplied tool MKDIR=$tool_basename" >&6;} 9371 # Extract the first word of "$tool_basename", so it can be a program name with args. 9372 set dummy $tool_basename; ac_word=$2 9373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9374 $as_echo_n "checking for $ac_word... " >&6; } 9375 if ${ac_cv_path_MKDIR+:} false; then : 9376 $as_echo_n "(cached) " >&6 9377 else 9378 case $MKDIR in 9379 [\\/]* | ?:[\\/]*) 9380 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path. 9381 ;; 9382 *) 9383 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9384 for as_dir in $PATH 9385 do 9386 IFS=$as_save_IFS 9387 test -z "$as_dir" && as_dir=. 9388 for ac_exec_ext in '' $ac_executable_extensions; do 9389 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9390 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext" 9391 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9392 break 2 9393 fi 9394 done 9395 done 9396 IFS=$as_save_IFS 9397 9398 ;; 9399 esac 9400 fi 9401 MKDIR=$ac_cv_path_MKDIR 9402 if test -n "$MKDIR"; then 9403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR" >&5 9404 $as_echo "$MKDIR" >&6; } 9405 else 9406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9407 $as_echo "no" >&6; } 9408 fi 9409 9410 9411 if test "x$MKDIR" = x; then 9412 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 9413 fi 9414 else 9415 # Otherwise we believe it is a complete path. Use it as it is. 9416 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool MKDIR=$tool_specified" >&5 9417 $as_echo "$as_me: Will use user supplied tool MKDIR=$tool_specified" >&6;} 9418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MKDIR" >&5 9419 $as_echo_n "checking for MKDIR... " >&6; } 9420 if test ! -x "$tool_specified"; then 9421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 9422 $as_echo "not found" >&6; } 9423 as_fn_error $? "User supplied tool MKDIR=$tool_specified does not exist or is not executable" "$LINENO" 5 9424 fi 9425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 9426 $as_echo "$tool_specified" >&6; } 9427 fi 9428 fi 9429 fi 9430 9431 fi 9432 9433 9434 9435 if test "x$MKDIR" = x; then 9436 as_fn_error $? "Could not find required tool for MKDIR" "$LINENO" 5 9437 fi 9438 9439 9440 9441 9442 9443 # Publish this variable in the help. 9444 9445 9446 if [ -z "${MKTEMP+x}" ]; then 9447 # The variable is not set by user, try to locate tool using the code snippet 9448 for ac_prog in mktemp 9449 do 9450 # Extract the first word of "$ac_prog", so it can be a program name with args. 9451 set dummy $ac_prog; ac_word=$2 9452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9453 $as_echo_n "checking for $ac_word... " >&6; } 9454 if ${ac_cv_path_MKTEMP+:} false; then : 9455 $as_echo_n "(cached) " >&6 9456 else 9457 case $MKTEMP in 9458 [\\/]* | ?:[\\/]*) 9459 ac_cv_path_MKTEMP="$MKTEMP" # Let the user override the test with a path. 9460 ;; 9461 *) 9462 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9463 for as_dir in $PATH 9464 do 9465 IFS=$as_save_IFS 9466 test -z "$as_dir" && as_dir=. 9467 for ac_exec_ext in '' $ac_executable_extensions; do 9468 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9469 ac_cv_path_MKTEMP="$as_dir/$ac_word$ac_exec_ext" 9470 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9471 break 2 9472 fi 9473 done 9474 done 9475 IFS=$as_save_IFS 9476 9477 ;; 9478 esac 9479 fi 9480 MKTEMP=$ac_cv_path_MKTEMP 9481 if test -n "$MKTEMP"; then 9482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKTEMP" >&5 9483 $as_echo "$MKTEMP" >&6; } 9484 else 9485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9486 $as_echo "no" >&6; } 9487 fi 9488 9489 9490 test -n "$MKTEMP" && break 9491 done 9492 9493 else 9494 # The variable is set, but is it from the command line or the environment? 9495 9496 # Try to remove the string !MKTEMP! from our list. 9497 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!MKTEMP!/} 9498 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 9499 # If it failed, the variable was not from the command line. Ignore it, 9500 # but warn the user (except for BASH, which is always set by the calling BASH). 9501 if test "xMKTEMP" != xBASH; then 9502 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of MKTEMP from the environment. Use command line variables instead." >&5 9503 $as_echo "$as_me: WARNING: Ignoring value of MKTEMP from the environment. Use command line variables instead." >&2;} 9504 fi 9505 # Try to locate tool using the code snippet 9506 for ac_prog in mktemp 9507 do 9508 # Extract the first word of "$ac_prog", so it can be a program name with args. 9509 set dummy $ac_prog; ac_word=$2 9510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9511 $as_echo_n "checking for $ac_word... " >&6; } 9512 if ${ac_cv_path_MKTEMP+:} false; then : 9513 $as_echo_n "(cached) " >&6 9514 else 9515 case $MKTEMP in 9516 [\\/]* | ?:[\\/]*) 9517 ac_cv_path_MKTEMP="$MKTEMP" # Let the user override the test with a path. 9518 ;; 9519 *) 9520 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9521 for as_dir in $PATH 9522 do 9523 IFS=$as_save_IFS 9524 test -z "$as_dir" && as_dir=. 9525 for ac_exec_ext in '' $ac_executable_extensions; do 9526 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9527 ac_cv_path_MKTEMP="$as_dir/$ac_word$ac_exec_ext" 9528 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9529 break 2 9530 fi 9531 done 9532 done 9533 IFS=$as_save_IFS 9534 9535 ;; 9536 esac 9537 fi 9538 MKTEMP=$ac_cv_path_MKTEMP 9539 if test -n "$MKTEMP"; then 9540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKTEMP" >&5 9541 $as_echo "$MKTEMP" >&6; } 9542 else 9543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9544 $as_echo "no" >&6; } 9545 fi 9546 9547 9548 test -n "$MKTEMP" && break 9549 done 9550 9551 else 9552 # If it succeeded, then it was overridden by the user. We will use it 9553 # for the tool. 9554 9555 # First remove it from the list of overridden variables, so we can test 9556 # for unknown variables in the end. 9557 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 9558 9559 # Check if we try to supply an empty value 9560 if test "x$MKTEMP" = x; then 9561 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool MKTEMP= (no value)" >&5 9562 $as_echo "$as_me: Setting user supplied tool MKTEMP= (no value)" >&6;} 9563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MKTEMP" >&5 9564 $as_echo_n "checking for MKTEMP... " >&6; } 9565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 9566 $as_echo "disabled" >&6; } 9567 else 9568 # Check if the provided tool contains a complete path. 9569 tool_specified="$MKTEMP" 9570 tool_basename="${tool_specified##*/}" 9571 if test "x$tool_basename" = "x$tool_specified"; then 9572 # A command without a complete path is provided, search $PATH. 9573 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool MKTEMP=$tool_basename" >&5 9574 $as_echo "$as_me: Will search for user supplied tool MKTEMP=$tool_basename" >&6;} 9575 # Extract the first word of "$tool_basename", so it can be a program name with args. 9576 set dummy $tool_basename; ac_word=$2 9577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9578 $as_echo_n "checking for $ac_word... " >&6; } 9579 if ${ac_cv_path_MKTEMP+:} false; then : 9580 $as_echo_n "(cached) " >&6 9581 else 9582 case $MKTEMP in 9583 [\\/]* | ?:[\\/]*) 9584 ac_cv_path_MKTEMP="$MKTEMP" # Let the user override the test with a path. 9585 ;; 9586 *) 9587 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9588 for as_dir in $PATH 9589 do 9590 IFS=$as_save_IFS 9591 test -z "$as_dir" && as_dir=. 9592 for ac_exec_ext in '' $ac_executable_extensions; do 9593 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9594 ac_cv_path_MKTEMP="$as_dir/$ac_word$ac_exec_ext" 9595 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9596 break 2 9597 fi 9598 done 9599 done 9600 IFS=$as_save_IFS 9601 9602 ;; 9603 esac 9604 fi 9605 MKTEMP=$ac_cv_path_MKTEMP 9606 if test -n "$MKTEMP"; then 9607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKTEMP" >&5 9608 $as_echo "$MKTEMP" >&6; } 9609 else 9610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9611 $as_echo "no" >&6; } 9612 fi 9613 9614 9615 if test "x$MKTEMP" = x; then 9616 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 9617 fi 9618 else 9619 # Otherwise we believe it is a complete path. Use it as it is. 9620 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool MKTEMP=$tool_specified" >&5 9621 $as_echo "$as_me: Will use user supplied tool MKTEMP=$tool_specified" >&6;} 9622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MKTEMP" >&5 9623 $as_echo_n "checking for MKTEMP... " >&6; } 9624 if test ! -x "$tool_specified"; then 9625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 9626 $as_echo "not found" >&6; } 9627 as_fn_error $? "User supplied tool MKTEMP=$tool_specified does not exist or is not executable" "$LINENO" 5 9628 fi 9629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 9630 $as_echo "$tool_specified" >&6; } 9631 fi 9632 fi 9633 fi 9634 9635 fi 9636 9637 9638 9639 if test "x$MKTEMP" = x; then 9640 as_fn_error $? "Could not find required tool for MKTEMP" "$LINENO" 5 9641 fi 9642 9643 9644 9645 9646 9647 # Publish this variable in the help. 9648 9649 9650 if [ -z "${MV+x}" ]; then 9651 # The variable is not set by user, try to locate tool using the code snippet 9652 for ac_prog in mv 9653 do 9654 # Extract the first word of "$ac_prog", so it can be a program name with args. 9655 set dummy $ac_prog; ac_word=$2 9656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9657 $as_echo_n "checking for $ac_word... " >&6; } 9658 if ${ac_cv_path_MV+:} false; then : 9659 $as_echo_n "(cached) " >&6 9660 else 9661 case $MV in 9662 [\\/]* | ?:[\\/]*) 9663 ac_cv_path_MV="$MV" # Let the user override the test with a path. 9664 ;; 9665 *) 9666 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9667 for as_dir in $PATH 9668 do 9669 IFS=$as_save_IFS 9670 test -z "$as_dir" && as_dir=. 9671 for ac_exec_ext in '' $ac_executable_extensions; do 9672 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9673 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext" 9674 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9675 break 2 9676 fi 9677 done 9678 done 9679 IFS=$as_save_IFS 9680 9681 ;; 9682 esac 9683 fi 9684 MV=$ac_cv_path_MV 9685 if test -n "$MV"; then 9686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5 9687 $as_echo "$MV" >&6; } 9688 else 9689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9690 $as_echo "no" >&6; } 9691 fi 9692 9693 9694 test -n "$MV" && break 9695 done 9696 9697 else 9698 # The variable is set, but is it from the command line or the environment? 9699 9700 # Try to remove the string !MV! from our list. 9701 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!MV!/} 9702 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 9703 # If it failed, the variable was not from the command line. Ignore it, 9704 # but warn the user (except for BASH, which is always set by the calling BASH). 9705 if test "xMV" != xBASH; then 9706 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of MV from the environment. Use command line variables instead." >&5 9707 $as_echo "$as_me: WARNING: Ignoring value of MV from the environment. Use command line variables instead." >&2;} 9708 fi 9709 # Try to locate tool using the code snippet 9710 for ac_prog in mv 9711 do 9712 # Extract the first word of "$ac_prog", so it can be a program name with args. 9713 set dummy $ac_prog; ac_word=$2 9714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9715 $as_echo_n "checking for $ac_word... " >&6; } 9716 if ${ac_cv_path_MV+:} false; then : 9717 $as_echo_n "(cached) " >&6 9718 else 9719 case $MV in 9720 [\\/]* | ?:[\\/]*) 9721 ac_cv_path_MV="$MV" # Let the user override the test with a path. 9722 ;; 9723 *) 9724 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9725 for as_dir in $PATH 9726 do 9727 IFS=$as_save_IFS 9728 test -z "$as_dir" && as_dir=. 9729 for ac_exec_ext in '' $ac_executable_extensions; do 9730 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9731 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext" 9732 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9733 break 2 9734 fi 9735 done 9736 done 9737 IFS=$as_save_IFS 9738 9739 ;; 9740 esac 9741 fi 9742 MV=$ac_cv_path_MV 9743 if test -n "$MV"; then 9744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5 9745 $as_echo "$MV" >&6; } 9746 else 9747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9748 $as_echo "no" >&6; } 9749 fi 9750 9751 9752 test -n "$MV" && break 9753 done 9754 9755 else 9756 # If it succeeded, then it was overridden by the user. We will use it 9757 # for the tool. 9758 9759 # First remove it from the list of overridden variables, so we can test 9760 # for unknown variables in the end. 9761 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 9762 9763 # Check if we try to supply an empty value 9764 if test "x$MV" = x; then 9765 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool MV= (no value)" >&5 9766 $as_echo "$as_me: Setting user supplied tool MV= (no value)" >&6;} 9767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MV" >&5 9768 $as_echo_n "checking for MV... " >&6; } 9769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 9770 $as_echo "disabled" >&6; } 9771 else 9772 # Check if the provided tool contains a complete path. 9773 tool_specified="$MV" 9774 tool_basename="${tool_specified##*/}" 9775 if test "x$tool_basename" = "x$tool_specified"; then 9776 # A command without a complete path is provided, search $PATH. 9777 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool MV=$tool_basename" >&5 9778 $as_echo "$as_me: Will search for user supplied tool MV=$tool_basename" >&6;} 9779 # Extract the first word of "$tool_basename", so it can be a program name with args. 9780 set dummy $tool_basename; ac_word=$2 9781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9782 $as_echo_n "checking for $ac_word... " >&6; } 9783 if ${ac_cv_path_MV+:} false; then : 9784 $as_echo_n "(cached) " >&6 9785 else 9786 case $MV in 9787 [\\/]* | ?:[\\/]*) 9788 ac_cv_path_MV="$MV" # Let the user override the test with a path. 9789 ;; 9790 *) 9791 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9792 for as_dir in $PATH 9793 do 9794 IFS=$as_save_IFS 9795 test -z "$as_dir" && as_dir=. 9796 for ac_exec_ext in '' $ac_executable_extensions; do 9797 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9798 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext" 9799 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9800 break 2 9801 fi 9802 done 9803 done 9804 IFS=$as_save_IFS 9805 9806 ;; 9807 esac 9808 fi 9809 MV=$ac_cv_path_MV 9810 if test -n "$MV"; then 9811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5 9812 $as_echo "$MV" >&6; } 9813 else 9814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9815 $as_echo "no" >&6; } 9816 fi 9817 9818 9819 if test "x$MV" = x; then 9820 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 9821 fi 9822 else 9823 # Otherwise we believe it is a complete path. Use it as it is. 9824 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool MV=$tool_specified" >&5 9825 $as_echo "$as_me: Will use user supplied tool MV=$tool_specified" >&6;} 9826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MV" >&5 9827 $as_echo_n "checking for MV... " >&6; } 9828 if test ! -x "$tool_specified"; then 9829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 9830 $as_echo "not found" >&6; } 9831 as_fn_error $? "User supplied tool MV=$tool_specified does not exist or is not executable" "$LINENO" 5 9832 fi 9833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 9834 $as_echo "$tool_specified" >&6; } 9835 fi 9836 fi 9837 fi 9838 9839 fi 9840 9841 9842 9843 if test "x$MV" = x; then 9844 as_fn_error $? "Could not find required tool for MV" "$LINENO" 5 9845 fi 9846 9847 9848 9849 9850 9851 # Publish this variable in the help. 9852 9853 9854 if [ -z "${NAWK+x}" ]; then 9855 # The variable is not set by user, try to locate tool using the code snippet 9856 for ac_prog in nawk gawk awk 9857 do 9858 # Extract the first word of "$ac_prog", so it can be a program name with args. 9859 set dummy $ac_prog; ac_word=$2 9860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9861 $as_echo_n "checking for $ac_word... " >&6; } 9862 if ${ac_cv_path_NAWK+:} false; then : 9863 $as_echo_n "(cached) " >&6 9864 else 9865 case $NAWK in 9866 [\\/]* | ?:[\\/]*) 9867 ac_cv_path_NAWK="$NAWK" # Let the user override the test with a path. 9868 ;; 9869 *) 9870 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9871 for as_dir in $PATH 9872 do 9873 IFS=$as_save_IFS 9874 test -z "$as_dir" && as_dir=. 9875 for ac_exec_ext in '' $ac_executable_extensions; do 9876 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9877 ac_cv_path_NAWK="$as_dir/$ac_word$ac_exec_ext" 9878 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9879 break 2 9880 fi 9881 done 9882 done 9883 IFS=$as_save_IFS 9884 9885 ;; 9886 esac 9887 fi 9888 NAWK=$ac_cv_path_NAWK 9889 if test -n "$NAWK"; then 9890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NAWK" >&5 9891 $as_echo "$NAWK" >&6; } 9892 else 9893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9894 $as_echo "no" >&6; } 9895 fi 9896 9897 9898 test -n "$NAWK" && break 9899 done 9900 9901 else 9902 # The variable is set, but is it from the command line or the environment? 9903 9904 # Try to remove the string !NAWK! from our list. 9905 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!NAWK!/} 9906 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 9907 # If it failed, the variable was not from the command line. Ignore it, 9908 # but warn the user (except for BASH, which is always set by the calling BASH). 9909 if test "xNAWK" != xBASH; then 9910 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of NAWK from the environment. Use command line variables instead." >&5 9911 $as_echo "$as_me: WARNING: Ignoring value of NAWK from the environment. Use command line variables instead." >&2;} 9912 fi 9913 # Try to locate tool using the code snippet 9914 for ac_prog in nawk gawk awk 9915 do 9916 # Extract the first word of "$ac_prog", so it can be a program name with args. 9917 set dummy $ac_prog; ac_word=$2 9918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9919 $as_echo_n "checking for $ac_word... " >&6; } 9920 if ${ac_cv_path_NAWK+:} false; then : 9921 $as_echo_n "(cached) " >&6 9922 else 9923 case $NAWK in 9924 [\\/]* | ?:[\\/]*) 9925 ac_cv_path_NAWK="$NAWK" # Let the user override the test with a path. 9926 ;; 9927 *) 9928 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9929 for as_dir in $PATH 9930 do 9931 IFS=$as_save_IFS 9932 test -z "$as_dir" && as_dir=. 9933 for ac_exec_ext in '' $ac_executable_extensions; do 9934 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9935 ac_cv_path_NAWK="$as_dir/$ac_word$ac_exec_ext" 9936 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9937 break 2 9938 fi 9939 done 9940 done 9941 IFS=$as_save_IFS 9942 9943 ;; 9944 esac 9945 fi 9946 NAWK=$ac_cv_path_NAWK 9947 if test -n "$NAWK"; then 9948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NAWK" >&5 9949 $as_echo "$NAWK" >&6; } 9950 else 9951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9952 $as_echo "no" >&6; } 9953 fi 9954 9955 9956 test -n "$NAWK" && break 9957 done 9958 9959 else 9960 # If it succeeded, then it was overridden by the user. We will use it 9961 # for the tool. 9962 9963 # First remove it from the list of overridden variables, so we can test 9964 # for unknown variables in the end. 9965 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 9966 9967 # Check if we try to supply an empty value 9968 if test "x$NAWK" = x; then 9969 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool NAWK= (no value)" >&5 9970 $as_echo "$as_me: Setting user supplied tool NAWK= (no value)" >&6;} 9971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NAWK" >&5 9972 $as_echo_n "checking for NAWK... " >&6; } 9973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 9974 $as_echo "disabled" >&6; } 9975 else 9976 # Check if the provided tool contains a complete path. 9977 tool_specified="$NAWK" 9978 tool_basename="${tool_specified##*/}" 9979 if test "x$tool_basename" = "x$tool_specified"; then 9980 # A command without a complete path is provided, search $PATH. 9981 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool NAWK=$tool_basename" >&5 9982 $as_echo "$as_me: Will search for user supplied tool NAWK=$tool_basename" >&6;} 9983 # Extract the first word of "$tool_basename", so it can be a program name with args. 9984 set dummy $tool_basename; ac_word=$2 9985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9986 $as_echo_n "checking for $ac_word... " >&6; } 9987 if ${ac_cv_path_NAWK+:} false; then : 9988 $as_echo_n "(cached) " >&6 9989 else 9990 case $NAWK in 9991 [\\/]* | ?:[\\/]*) 9992 ac_cv_path_NAWK="$NAWK" # Let the user override the test with a path. 9993 ;; 9994 *) 9995 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9996 for as_dir in $PATH 9997 do 9998 IFS=$as_save_IFS 9999 test -z "$as_dir" && as_dir=. 10000 for ac_exec_ext in '' $ac_executable_extensions; do 10001 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10002 ac_cv_path_NAWK="$as_dir/$ac_word$ac_exec_ext" 10003 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10004 break 2 10005 fi 10006 done 10007 done 10008 IFS=$as_save_IFS 10009 10010 ;; 10011 esac 10012 fi 10013 NAWK=$ac_cv_path_NAWK 10014 if test -n "$NAWK"; then 10015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NAWK" >&5 10016 $as_echo "$NAWK" >&6; } 10017 else 10018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10019 $as_echo "no" >&6; } 10020 fi 10021 10022 10023 if test "x$NAWK" = x; then 10024 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 10025 fi 10026 else 10027 # Otherwise we believe it is a complete path. Use it as it is. 10028 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool NAWK=$tool_specified" >&5 10029 $as_echo "$as_me: Will use user supplied tool NAWK=$tool_specified" >&6;} 10030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NAWK" >&5 10031 $as_echo_n "checking for NAWK... " >&6; } 10032 if test ! -x "$tool_specified"; then 10033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 10034 $as_echo "not found" >&6; } 10035 as_fn_error $? "User supplied tool NAWK=$tool_specified does not exist or is not executable" "$LINENO" 5 10036 fi 10037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 10038 $as_echo "$tool_specified" >&6; } 10039 fi 10040 fi 10041 fi 10042 10043 fi 10044 10045 10046 10047 if test "x$NAWK" = x; then 10048 as_fn_error $? "Could not find required tool for NAWK" "$LINENO" 5 10049 fi 10050 10051 10052 10053 10054 10055 # Publish this variable in the help. 10056 10057 10058 if [ -z "${PRINTF+x}" ]; then 10059 # The variable is not set by user, try to locate tool using the code snippet 10060 for ac_prog in printf 10061 do 10062 # Extract the first word of "$ac_prog", so it can be a program name with args. 10063 set dummy $ac_prog; ac_word=$2 10064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10065 $as_echo_n "checking for $ac_word... " >&6; } 10066 if ${ac_cv_path_PRINTF+:} false; then : 10067 $as_echo_n "(cached) " >&6 10068 else 10069 case $PRINTF in 10070 [\\/]* | ?:[\\/]*) 10071 ac_cv_path_PRINTF="$PRINTF" # Let the user override the test with a path. 10072 ;; 10073 *) 10074 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10075 for as_dir in $PATH 10076 do 10077 IFS=$as_save_IFS 10078 test -z "$as_dir" && as_dir=. 10079 for ac_exec_ext in '' $ac_executable_extensions; do 10080 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10081 ac_cv_path_PRINTF="$as_dir/$ac_word$ac_exec_ext" 10082 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10083 break 2 10084 fi 10085 done 10086 done 10087 IFS=$as_save_IFS 10088 10089 ;; 10090 esac 10091 fi 10092 PRINTF=$ac_cv_path_PRINTF 10093 if test -n "$PRINTF"; then 10094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PRINTF" >&5 10095 $as_echo "$PRINTF" >&6; } 10096 else 10097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10098 $as_echo "no" >&6; } 10099 fi 10100 10101 10102 test -n "$PRINTF" && break 10103 done 10104 10105 else 10106 # The variable is set, but is it from the command line or the environment? 10107 10108 # Try to remove the string !PRINTF! from our list. 10109 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!PRINTF!/} 10110 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 10111 # If it failed, the variable was not from the command line. Ignore it, 10112 # but warn the user (except for BASH, which is always set by the calling BASH). 10113 if test "xPRINTF" != xBASH; then 10114 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of PRINTF from the environment. Use command line variables instead." >&5 10115 $as_echo "$as_me: WARNING: Ignoring value of PRINTF from the environment. Use command line variables instead." >&2;} 10116 fi 10117 # Try to locate tool using the code snippet 10118 for ac_prog in printf 10119 do 10120 # Extract the first word of "$ac_prog", so it can be a program name with args. 10121 set dummy $ac_prog; ac_word=$2 10122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10123 $as_echo_n "checking for $ac_word... " >&6; } 10124 if ${ac_cv_path_PRINTF+:} false; then : 10125 $as_echo_n "(cached) " >&6 10126 else 10127 case $PRINTF in 10128 [\\/]* | ?:[\\/]*) 10129 ac_cv_path_PRINTF="$PRINTF" # Let the user override the test with a path. 10130 ;; 10131 *) 10132 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10133 for as_dir in $PATH 10134 do 10135 IFS=$as_save_IFS 10136 test -z "$as_dir" && as_dir=. 10137 for ac_exec_ext in '' $ac_executable_extensions; do 10138 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10139 ac_cv_path_PRINTF="$as_dir/$ac_word$ac_exec_ext" 10140 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10141 break 2 10142 fi 10143 done 10144 done 10145 IFS=$as_save_IFS 10146 10147 ;; 10148 esac 10149 fi 10150 PRINTF=$ac_cv_path_PRINTF 10151 if test -n "$PRINTF"; then 10152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PRINTF" >&5 10153 $as_echo "$PRINTF" >&6; } 10154 else 10155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10156 $as_echo "no" >&6; } 10157 fi 10158 10159 10160 test -n "$PRINTF" && break 10161 done 10162 10163 else 10164 # If it succeeded, then it was overridden by the user. We will use it 10165 # for the tool. 10166 10167 # First remove it from the list of overridden variables, so we can test 10168 # for unknown variables in the end. 10169 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 10170 10171 # Check if we try to supply an empty value 10172 if test "x$PRINTF" = x; then 10173 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool PRINTF= (no value)" >&5 10174 $as_echo "$as_me: Setting user supplied tool PRINTF= (no value)" >&6;} 10175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PRINTF" >&5 10176 $as_echo_n "checking for PRINTF... " >&6; } 10177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 10178 $as_echo "disabled" >&6; } 10179 else 10180 # Check if the provided tool contains a complete path. 10181 tool_specified="$PRINTF" 10182 tool_basename="${tool_specified##*/}" 10183 if test "x$tool_basename" = "x$tool_specified"; then 10184 # A command without a complete path is provided, search $PATH. 10185 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool PRINTF=$tool_basename" >&5 10186 $as_echo "$as_me: Will search for user supplied tool PRINTF=$tool_basename" >&6;} 10187 # Extract the first word of "$tool_basename", so it can be a program name with args. 10188 set dummy $tool_basename; ac_word=$2 10189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10190 $as_echo_n "checking for $ac_word... " >&6; } 10191 if ${ac_cv_path_PRINTF+:} false; then : 10192 $as_echo_n "(cached) " >&6 10193 else 10194 case $PRINTF in 10195 [\\/]* | ?:[\\/]*) 10196 ac_cv_path_PRINTF="$PRINTF" # Let the user override the test with a path. 10197 ;; 10198 *) 10199 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10200 for as_dir in $PATH 10201 do 10202 IFS=$as_save_IFS 10203 test -z "$as_dir" && as_dir=. 10204 for ac_exec_ext in '' $ac_executable_extensions; do 10205 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10206 ac_cv_path_PRINTF="$as_dir/$ac_word$ac_exec_ext" 10207 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10208 break 2 10209 fi 10210 done 10211 done 10212 IFS=$as_save_IFS 10213 10214 ;; 10215 esac 10216 fi 10217 PRINTF=$ac_cv_path_PRINTF 10218 if test -n "$PRINTF"; then 10219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PRINTF" >&5 10220 $as_echo "$PRINTF" >&6; } 10221 else 10222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10223 $as_echo "no" >&6; } 10224 fi 10225 10226 10227 if test "x$PRINTF" = x; then 10228 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 10229 fi 10230 else 10231 # Otherwise we believe it is a complete path. Use it as it is. 10232 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool PRINTF=$tool_specified" >&5 10233 $as_echo "$as_me: Will use user supplied tool PRINTF=$tool_specified" >&6;} 10234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PRINTF" >&5 10235 $as_echo_n "checking for PRINTF... " >&6; } 10236 if test ! -x "$tool_specified"; then 10237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 10238 $as_echo "not found" >&6; } 10239 as_fn_error $? "User supplied tool PRINTF=$tool_specified does not exist or is not executable" "$LINENO" 5 10240 fi 10241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 10242 $as_echo "$tool_specified" >&6; } 10243 fi 10244 fi 10245 fi 10246 10247 fi 10248 10249 10250 10251 if test "x$PRINTF" = x; then 10252 as_fn_error $? "Could not find required tool for PRINTF" "$LINENO" 5 10253 fi 10254 10255 10256 10257 10258 10259 # Publish this variable in the help. 10260 10261 10262 if [ -z "${RM+x}" ]; then 10263 # The variable is not set by user, try to locate tool using the code snippet 10264 for ac_prog in rm 10265 do 10266 # Extract the first word of "$ac_prog", so it can be a program name with args. 10267 set dummy $ac_prog; ac_word=$2 10268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10269 $as_echo_n "checking for $ac_word... " >&6; } 10270 if ${ac_cv_path_RM+:} false; then : 10271 $as_echo_n "(cached) " >&6 10272 else 10273 case $RM in 10274 [\\/]* | ?:[\\/]*) 10275 ac_cv_path_RM="$RM" # Let the user override the test with a path. 10276 ;; 10277 *) 10278 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10279 for as_dir in $PATH 10280 do 10281 IFS=$as_save_IFS 10282 test -z "$as_dir" && as_dir=. 10283 for ac_exec_ext in '' $ac_executable_extensions; do 10284 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10285 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext" 10286 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10287 break 2 10288 fi 10289 done 10290 done 10291 IFS=$as_save_IFS 10292 10293 ;; 10294 esac 10295 fi 10296 RM=$ac_cv_path_RM 10297 if test -n "$RM"; then 10298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5 10299 $as_echo "$RM" >&6; } 10300 else 10301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10302 $as_echo "no" >&6; } 10303 fi 10304 10305 10306 test -n "$RM" && break 10307 done 10308 10309 else 10310 # The variable is set, but is it from the command line or the environment? 10311 10312 # Try to remove the string !RM! from our list. 10313 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!RM!/} 10314 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 10315 # If it failed, the variable was not from the command line. Ignore it, 10316 # but warn the user (except for BASH, which is always set by the calling BASH). 10317 if test "xRM" != xBASH; then 10318 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of RM from the environment. Use command line variables instead." >&5 10319 $as_echo "$as_me: WARNING: Ignoring value of RM from the environment. Use command line variables instead." >&2;} 10320 fi 10321 # Try to locate tool using the code snippet 10322 for ac_prog in rm 10323 do 10324 # Extract the first word of "$ac_prog", so it can be a program name with args. 10325 set dummy $ac_prog; ac_word=$2 10326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10327 $as_echo_n "checking for $ac_word... " >&6; } 10328 if ${ac_cv_path_RM+:} false; then : 10329 $as_echo_n "(cached) " >&6 10330 else 10331 case $RM in 10332 [\\/]* | ?:[\\/]*) 10333 ac_cv_path_RM="$RM" # Let the user override the test with a path. 10334 ;; 10335 *) 10336 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10337 for as_dir in $PATH 10338 do 10339 IFS=$as_save_IFS 10340 test -z "$as_dir" && as_dir=. 10341 for ac_exec_ext in '' $ac_executable_extensions; do 10342 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10343 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext" 10344 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10345 break 2 10346 fi 10347 done 10348 done 10349 IFS=$as_save_IFS 10350 10351 ;; 10352 esac 10353 fi 10354 RM=$ac_cv_path_RM 10355 if test -n "$RM"; then 10356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5 10357 $as_echo "$RM" >&6; } 10358 else 10359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10360 $as_echo "no" >&6; } 10361 fi 10362 10363 10364 test -n "$RM" && break 10365 done 10366 10367 else 10368 # If it succeeded, then it was overridden by the user. We will use it 10369 # for the tool. 10370 10371 # First remove it from the list of overridden variables, so we can test 10372 # for unknown variables in the end. 10373 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 10374 10375 # Check if we try to supply an empty value 10376 if test "x$RM" = x; then 10377 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool RM= (no value)" >&5 10378 $as_echo "$as_me: Setting user supplied tool RM= (no value)" >&6;} 10379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RM" >&5 10380 $as_echo_n "checking for RM... " >&6; } 10381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 10382 $as_echo "disabled" >&6; } 10383 else 10384 # Check if the provided tool contains a complete path. 10385 tool_specified="$RM" 10386 tool_basename="${tool_specified##*/}" 10387 if test "x$tool_basename" = "x$tool_specified"; then 10388 # A command without a complete path is provided, search $PATH. 10389 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool RM=$tool_basename" >&5 10390 $as_echo "$as_me: Will search for user supplied tool RM=$tool_basename" >&6;} 10391 # Extract the first word of "$tool_basename", so it can be a program name with args. 10392 set dummy $tool_basename; ac_word=$2 10393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10394 $as_echo_n "checking for $ac_word... " >&6; } 10395 if ${ac_cv_path_RM+:} false; then : 10396 $as_echo_n "(cached) " >&6 10397 else 10398 case $RM in 10399 [\\/]* | ?:[\\/]*) 10400 ac_cv_path_RM="$RM" # Let the user override the test with a path. 10401 ;; 10402 *) 10403 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10404 for as_dir in $PATH 10405 do 10406 IFS=$as_save_IFS 10407 test -z "$as_dir" && as_dir=. 10408 for ac_exec_ext in '' $ac_executable_extensions; do 10409 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10410 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext" 10411 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10412 break 2 10413 fi 10414 done 10415 done 10416 IFS=$as_save_IFS 10417 10418 ;; 10419 esac 10420 fi 10421 RM=$ac_cv_path_RM 10422 if test -n "$RM"; then 10423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5 10424 $as_echo "$RM" >&6; } 10425 else 10426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10427 $as_echo "no" >&6; } 10428 fi 10429 10430 10431 if test "x$RM" = x; then 10432 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 10433 fi 10434 else 10435 # Otherwise we believe it is a complete path. Use it as it is. 10436 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool RM=$tool_specified" >&5 10437 $as_echo "$as_me: Will use user supplied tool RM=$tool_specified" >&6;} 10438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RM" >&5 10439 $as_echo_n "checking for RM... " >&6; } 10440 if test ! -x "$tool_specified"; then 10441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 10442 $as_echo "not found" >&6; } 10443 as_fn_error $? "User supplied tool RM=$tool_specified does not exist or is not executable" "$LINENO" 5 10444 fi 10445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 10446 $as_echo "$tool_specified" >&6; } 10447 fi 10448 fi 10449 fi 10450 10451 fi 10452 10453 10454 10455 if test "x$RM" = x; then 10456 as_fn_error $? "Could not find required tool for RM" "$LINENO" 5 10457 fi 10458 10459 10460 10461 10462 10463 # Publish this variable in the help. 10464 10465 10466 if [ -z "${RMDIR+x}" ]; then 10467 # The variable is not set by user, try to locate tool using the code snippet 10468 for ac_prog in rmdir 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_RMDIR+:} false; then : 10475 $as_echo_n "(cached) " >&6 10476 else 10477 case $RMDIR in 10478 [\\/]* | ?:[\\/]*) 10479 ac_cv_path_RMDIR="$RMDIR" # 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_RMDIR="$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 RMDIR=$ac_cv_path_RMDIR 10501 if test -n "$RMDIR"; then 10502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RMDIR" >&5 10503 $as_echo "$RMDIR" >&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 "$RMDIR" && break 10511 done 10512 10513 else 10514 # The variable is set, but is it from the command line or the environment? 10515 10516 # Try to remove the string !RMDIR! from our list. 10517 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!RMDIR!/} 10518 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 10519 # If it failed, the variable was not from the command line. Ignore it, 10520 # but warn the user (except for BASH, which is always set by the calling BASH). 10521 if test "xRMDIR" != xBASH; then 10522 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of RMDIR from the environment. Use command line variables instead." >&5 10523 $as_echo "$as_me: WARNING: Ignoring value of RMDIR from the environment. Use command line variables instead." >&2;} 10524 fi 10525 # Try to locate tool using the code snippet 10526 for ac_prog in rmdir 10527 do 10528 # Extract the first word of "$ac_prog", so it can be a program name with args. 10529 set dummy $ac_prog; ac_word=$2 10530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10531 $as_echo_n "checking for $ac_word... " >&6; } 10532 if ${ac_cv_path_RMDIR+:} false; then : 10533 $as_echo_n "(cached) " >&6 10534 else 10535 case $RMDIR in 10536 [\\/]* | ?:[\\/]*) 10537 ac_cv_path_RMDIR="$RMDIR" # 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_RMDIR="$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 RMDIR=$ac_cv_path_RMDIR 10559 if test -n "$RMDIR"; then 10560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RMDIR" >&5 10561 $as_echo "$RMDIR" >&6; } 10562 else 10563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10564 $as_echo "no" >&6; } 10565 fi 10566 10567 10568 test -n "$RMDIR" && break 10569 done 10570 10571 else 10572 # If it succeeded, then it was overridden by the user. We will use it 10573 # for the tool. 10574 10575 # First remove it from the list of overridden variables, so we can test 10576 # for unknown variables in the end. 10577 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 10578 10579 # Check if we try to supply an empty value 10580 if test "x$RMDIR" = x; then 10581 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool RMDIR= (no value)" >&5 10582 $as_echo "$as_me: Setting user supplied tool RMDIR= (no value)" >&6;} 10583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RMDIR" >&5 10584 $as_echo_n "checking for RMDIR... " >&6; } 10585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 10586 $as_echo "disabled" >&6; } 10587 else 10588 # Check if the provided tool contains a complete path. 10589 tool_specified="$RMDIR" 10590 tool_basename="${tool_specified##*/}" 10591 if test "x$tool_basename" = "x$tool_specified"; then 10592 # A command without a complete path is provided, search $PATH. 10593 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool RMDIR=$tool_basename" >&5 10594 $as_echo "$as_me: Will search for user supplied tool RMDIR=$tool_basename" >&6;} 10595 # Extract the first word of "$tool_basename", so it can be a program name with args. 10596 set dummy $tool_basename; ac_word=$2 10597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10598 $as_echo_n "checking for $ac_word... " >&6; } 10599 if ${ac_cv_path_RMDIR+:} false; then : 10600 $as_echo_n "(cached) " >&6 10601 else 10602 case $RMDIR in 10603 [\\/]* | ?:[\\/]*) 10604 ac_cv_path_RMDIR="$RMDIR" # Let the user override the test with a path. 10605 ;; 10606 *) 10607 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10608 for as_dir in $PATH 10609 do 10610 IFS=$as_save_IFS 10611 test -z "$as_dir" && as_dir=. 10612 for ac_exec_ext in '' $ac_executable_extensions; do 10613 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10614 ac_cv_path_RMDIR="$as_dir/$ac_word$ac_exec_ext" 10615 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10616 break 2 10617 fi 10618 done 10619 done 10620 IFS=$as_save_IFS 10621 10622 ;; 10623 esac 10624 fi 10625 RMDIR=$ac_cv_path_RMDIR 10626 if test -n "$RMDIR"; then 10627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RMDIR" >&5 10628 $as_echo "$RMDIR" >&6; } 10629 else 10630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10631 $as_echo "no" >&6; } 10632 fi 10633 10634 10635 if test "x$RMDIR" = x; then 10636 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 10637 fi 10638 else 10639 # Otherwise we believe it is a complete path. Use it as it is. 10640 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool RMDIR=$tool_specified" >&5 10641 $as_echo "$as_me: Will use user supplied tool RMDIR=$tool_specified" >&6;} 10642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RMDIR" >&5 10643 $as_echo_n "checking for RMDIR... " >&6; } 10644 if test ! -x "$tool_specified"; then 10645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 10646 $as_echo "not found" >&6; } 10647 as_fn_error $? "User supplied tool RMDIR=$tool_specified does not exist or is not executable" "$LINENO" 5 10648 fi 10649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 10650 $as_echo "$tool_specified" >&6; } 10651 fi 10652 fi 10653 fi 10654 10655 fi 10656 10657 10658 10659 if test "x$RMDIR" = x; then 10660 as_fn_error $? "Could not find required tool for RMDIR" "$LINENO" 5 10661 fi 10662 10663 10664 10665 10666 10667 # Publish this variable in the help. 10668 10669 10670 if [ -z "${SH+x}" ]; then 10671 # The variable is not set by user, try to locate tool using the code snippet 10672 for ac_prog in sh 10673 do 10674 # Extract the first word of "$ac_prog", so it can be a program name with args. 10675 set dummy $ac_prog; ac_word=$2 10676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10677 $as_echo_n "checking for $ac_word... " >&6; } 10678 if ${ac_cv_path_SH+:} false; then : 10679 $as_echo_n "(cached) " >&6 10680 else 10681 case $SH in 10682 [\\/]* | ?:[\\/]*) 10683 ac_cv_path_SH="$SH" # Let the user override the test with a path. 10684 ;; 10685 *) 10686 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10687 for as_dir in $PATH 10688 do 10689 IFS=$as_save_IFS 10690 test -z "$as_dir" && as_dir=. 10691 for ac_exec_ext in '' $ac_executable_extensions; do 10692 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10693 ac_cv_path_SH="$as_dir/$ac_word$ac_exec_ext" 10694 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10695 break 2 10696 fi 10697 done 10698 done 10699 IFS=$as_save_IFS 10700 10701 ;; 10702 esac 10703 fi 10704 SH=$ac_cv_path_SH 10705 if test -n "$SH"; then 10706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SH" >&5 10707 $as_echo "$SH" >&6; } 10708 else 10709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10710 $as_echo "no" >&6; } 10711 fi 10712 10713 10714 test -n "$SH" && break 10715 done 10716 10717 else 10718 # The variable is set, but is it from the command line or the environment? 10719 10720 # Try to remove the string !SH! from our list. 10721 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!SH!/} 10722 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 10723 # If it failed, the variable was not from the command line. Ignore it, 10724 # but warn the user (except for BASH, which is always set by the calling BASH). 10725 if test "xSH" != xBASH; then 10726 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of SH from the environment. Use command line variables instead." >&5 10727 $as_echo "$as_me: WARNING: Ignoring value of SH from the environment. Use command line variables instead." >&2;} 10728 fi 10729 # Try to locate tool using the code snippet 10730 for ac_prog in sh 10731 do 10732 # Extract the first word of "$ac_prog", so it can be a program name with args. 10733 set dummy $ac_prog; ac_word=$2 10734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10735 $as_echo_n "checking for $ac_word... " >&6; } 10736 if ${ac_cv_path_SH+:} false; then : 10737 $as_echo_n "(cached) " >&6 10738 else 10739 case $SH in 10740 [\\/]* | ?:[\\/]*) 10741 ac_cv_path_SH="$SH" # Let the user override the test with a path. 10742 ;; 10743 *) 10744 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10745 for as_dir in $PATH 10746 do 10747 IFS=$as_save_IFS 10748 test -z "$as_dir" && as_dir=. 10749 for ac_exec_ext in '' $ac_executable_extensions; do 10750 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10751 ac_cv_path_SH="$as_dir/$ac_word$ac_exec_ext" 10752 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10753 break 2 10754 fi 10755 done 10756 done 10757 IFS=$as_save_IFS 10758 10759 ;; 10760 esac 10761 fi 10762 SH=$ac_cv_path_SH 10763 if test -n "$SH"; then 10764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SH" >&5 10765 $as_echo "$SH" >&6; } 10766 else 10767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10768 $as_echo "no" >&6; } 10769 fi 10770 10771 10772 test -n "$SH" && break 10773 done 10774 10775 else 10776 # If it succeeded, then it was overridden by the user. We will use it 10777 # for the tool. 10778 10779 # First remove it from the list of overridden variables, so we can test 10780 # for unknown variables in the end. 10781 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 10782 10783 # Check if we try to supply an empty value 10784 if test "x$SH" = x; then 10785 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool SH= (no value)" >&5 10786 $as_echo "$as_me: Setting user supplied tool SH= (no value)" >&6;} 10787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SH" >&5 10788 $as_echo_n "checking for SH... " >&6; } 10789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 10790 $as_echo "disabled" >&6; } 10791 else 10792 # Check if the provided tool contains a complete path. 10793 tool_specified="$SH" 10794 tool_basename="${tool_specified##*/}" 10795 if test "x$tool_basename" = "x$tool_specified"; then 10796 # A command without a complete path is provided, search $PATH. 10797 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool SH=$tool_basename" >&5 10798 $as_echo "$as_me: Will search for user supplied tool SH=$tool_basename" >&6;} 10799 # Extract the first word of "$tool_basename", so it can be a program name with args. 10800 set dummy $tool_basename; ac_word=$2 10801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10802 $as_echo_n "checking for $ac_word... " >&6; } 10803 if ${ac_cv_path_SH+:} false; then : 10804 $as_echo_n "(cached) " >&6 10805 else 10806 case $SH in 10807 [\\/]* | ?:[\\/]*) 10808 ac_cv_path_SH="$SH" # Let the user override the test with a path. 10809 ;; 10810 *) 10811 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10812 for as_dir in $PATH 10813 do 10814 IFS=$as_save_IFS 10815 test -z "$as_dir" && as_dir=. 10816 for ac_exec_ext in '' $ac_executable_extensions; do 10817 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10818 ac_cv_path_SH="$as_dir/$ac_word$ac_exec_ext" 10819 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10820 break 2 10821 fi 10822 done 10823 done 10824 IFS=$as_save_IFS 10825 10826 ;; 10827 esac 10828 fi 10829 SH=$ac_cv_path_SH 10830 if test -n "$SH"; then 10831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SH" >&5 10832 $as_echo "$SH" >&6; } 10833 else 10834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10835 $as_echo "no" >&6; } 10836 fi 10837 10838 10839 if test "x$SH" = x; then 10840 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 10841 fi 10842 else 10843 # Otherwise we believe it is a complete path. Use it as it is. 10844 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool SH=$tool_specified" >&5 10845 $as_echo "$as_me: Will use user supplied tool SH=$tool_specified" >&6;} 10846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SH" >&5 10847 $as_echo_n "checking for SH... " >&6; } 10848 if test ! -x "$tool_specified"; then 10849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 10850 $as_echo "not found" >&6; } 10851 as_fn_error $? "User supplied tool SH=$tool_specified does not exist or is not executable" "$LINENO" 5 10852 fi 10853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 10854 $as_echo "$tool_specified" >&6; } 10855 fi 10856 fi 10857 fi 10858 10859 fi 10860 10861 10862 10863 if test "x$SH" = x; then 10864 as_fn_error $? "Could not find required tool for SH" "$LINENO" 5 10865 fi 10866 10867 10868 10869 10870 10871 # Publish this variable in the help. 10872 10873 10874 if [ -z "${SORT+x}" ]; then 10875 # The variable is not set by user, try to locate tool using the code snippet 10876 for ac_prog in sort 10877 do 10878 # Extract the first word of "$ac_prog", so it can be a program name with args. 10879 set dummy $ac_prog; ac_word=$2 10880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10881 $as_echo_n "checking for $ac_word... " >&6; } 10882 if ${ac_cv_path_SORT+:} false; then : 10883 $as_echo_n "(cached) " >&6 10884 else 10885 case $SORT in 10886 [\\/]* | ?:[\\/]*) 10887 ac_cv_path_SORT="$SORT" # Let the user override the test with a path. 10888 ;; 10889 *) 10890 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10891 for as_dir in $PATH 10892 do 10893 IFS=$as_save_IFS 10894 test -z "$as_dir" && as_dir=. 10895 for ac_exec_ext in '' $ac_executable_extensions; do 10896 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10897 ac_cv_path_SORT="$as_dir/$ac_word$ac_exec_ext" 10898 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10899 break 2 10900 fi 10901 done 10902 done 10903 IFS=$as_save_IFS 10904 10905 ;; 10906 esac 10907 fi 10908 SORT=$ac_cv_path_SORT 10909 if test -n "$SORT"; then 10910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SORT" >&5 10911 $as_echo "$SORT" >&6; } 10912 else 10913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10914 $as_echo "no" >&6; } 10915 fi 10916 10917 10918 test -n "$SORT" && break 10919 done 10920 10921 else 10922 # The variable is set, but is it from the command line or the environment? 10923 10924 # Try to remove the string !SORT! from our list. 10925 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!SORT!/} 10926 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 10927 # If it failed, the variable was not from the command line. Ignore it, 10928 # but warn the user (except for BASH, which is always set by the calling BASH). 10929 if test "xSORT" != xBASH; then 10930 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of SORT from the environment. Use command line variables instead." >&5 10931 $as_echo "$as_me: WARNING: Ignoring value of SORT from the environment. Use command line variables instead." >&2;} 10932 fi 10933 # Try to locate tool using the code snippet 10934 for ac_prog in sort 10935 do 10936 # Extract the first word of "$ac_prog", so it can be a program name with args. 10937 set dummy $ac_prog; ac_word=$2 10938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10939 $as_echo_n "checking for $ac_word... " >&6; } 10940 if ${ac_cv_path_SORT+:} false; then : 10941 $as_echo_n "(cached) " >&6 10942 else 10943 case $SORT in 10944 [\\/]* | ?:[\\/]*) 10945 ac_cv_path_SORT="$SORT" # Let the user override the test with a path. 10946 ;; 10947 *) 10948 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10949 for as_dir in $PATH 10950 do 10951 IFS=$as_save_IFS 10952 test -z "$as_dir" && as_dir=. 10953 for ac_exec_ext in '' $ac_executable_extensions; do 10954 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10955 ac_cv_path_SORT="$as_dir/$ac_word$ac_exec_ext" 10956 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10957 break 2 10958 fi 10959 done 10960 done 10961 IFS=$as_save_IFS 10962 10963 ;; 10964 esac 10965 fi 10966 SORT=$ac_cv_path_SORT 10967 if test -n "$SORT"; then 10968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SORT" >&5 10969 $as_echo "$SORT" >&6; } 10970 else 10971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10972 $as_echo "no" >&6; } 10973 fi 10974 10975 10976 test -n "$SORT" && break 10977 done 10978 10979 else 10980 # If it succeeded, then it was overridden by the user. We will use it 10981 # for the tool. 10982 10983 # First remove it from the list of overridden variables, so we can test 10984 # for unknown variables in the end. 10985 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 10986 10987 # Check if we try to supply an empty value 10988 if test "x$SORT" = x; then 10989 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool SORT= (no value)" >&5 10990 $as_echo "$as_me: Setting user supplied tool SORT= (no value)" >&6;} 10991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SORT" >&5 10992 $as_echo_n "checking for SORT... " >&6; } 10993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 10994 $as_echo "disabled" >&6; } 10995 else 10996 # Check if the provided tool contains a complete path. 10997 tool_specified="$SORT" 10998 tool_basename="${tool_specified##*/}" 10999 if test "x$tool_basename" = "x$tool_specified"; then 11000 # A command without a complete path is provided, search $PATH. 11001 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool SORT=$tool_basename" >&5 11002 $as_echo "$as_me: Will search for user supplied tool SORT=$tool_basename" >&6;} 11003 # Extract the first word of "$tool_basename", so it can be a program name with args. 11004 set dummy $tool_basename; ac_word=$2 11005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11006 $as_echo_n "checking for $ac_word... " >&6; } 11007 if ${ac_cv_path_SORT+:} false; then : 11008 $as_echo_n "(cached) " >&6 11009 else 11010 case $SORT in 11011 [\\/]* | ?:[\\/]*) 11012 ac_cv_path_SORT="$SORT" # Let the user override the test with a path. 11013 ;; 11014 *) 11015 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11016 for as_dir in $PATH 11017 do 11018 IFS=$as_save_IFS 11019 test -z "$as_dir" && as_dir=. 11020 for ac_exec_ext in '' $ac_executable_extensions; do 11021 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11022 ac_cv_path_SORT="$as_dir/$ac_word$ac_exec_ext" 11023 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11024 break 2 11025 fi 11026 done 11027 done 11028 IFS=$as_save_IFS 11029 11030 ;; 11031 esac 11032 fi 11033 SORT=$ac_cv_path_SORT 11034 if test -n "$SORT"; then 11035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SORT" >&5 11036 $as_echo "$SORT" >&6; } 11037 else 11038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11039 $as_echo "no" >&6; } 11040 fi 11041 11042 11043 if test "x$SORT" = x; then 11044 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 11045 fi 11046 else 11047 # Otherwise we believe it is a complete path. Use it as it is. 11048 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool SORT=$tool_specified" >&5 11049 $as_echo "$as_me: Will use user supplied tool SORT=$tool_specified" >&6;} 11050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SORT" >&5 11051 $as_echo_n "checking for SORT... " >&6; } 11052 if test ! -x "$tool_specified"; then 11053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 11054 $as_echo "not found" >&6; } 11055 as_fn_error $? "User supplied tool SORT=$tool_specified does not exist or is not executable" "$LINENO" 5 11056 fi 11057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 11058 $as_echo "$tool_specified" >&6; } 11059 fi 11060 fi 11061 fi 11062 11063 fi 11064 11065 11066 11067 if test "x$SORT" = x; then 11068 as_fn_error $? "Could not find required tool for SORT" "$LINENO" 5 11069 fi 11070 11071 11072 11073 11074 11075 # Publish this variable in the help. 11076 11077 11078 if [ -z "${TAIL+x}" ]; then 11079 # The variable is not set by user, try to locate tool using the code snippet 11080 for ac_prog in tail 11081 do 11082 # Extract the first word of "$ac_prog", so it can be a program name with args. 11083 set dummy $ac_prog; ac_word=$2 11084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11085 $as_echo_n "checking for $ac_word... " >&6; } 11086 if ${ac_cv_path_TAIL+:} false; then : 11087 $as_echo_n "(cached) " >&6 11088 else 11089 case $TAIL in 11090 [\\/]* | ?:[\\/]*) 11091 ac_cv_path_TAIL="$TAIL" # Let the user override the test with a path. 11092 ;; 11093 *) 11094 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11095 for as_dir in $PATH 11096 do 11097 IFS=$as_save_IFS 11098 test -z "$as_dir" && as_dir=. 11099 for ac_exec_ext in '' $ac_executable_extensions; do 11100 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11101 ac_cv_path_TAIL="$as_dir/$ac_word$ac_exec_ext" 11102 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11103 break 2 11104 fi 11105 done 11106 done 11107 IFS=$as_save_IFS 11108 11109 ;; 11110 esac 11111 fi 11112 TAIL=$ac_cv_path_TAIL 11113 if test -n "$TAIL"; then 11114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAIL" >&5 11115 $as_echo "$TAIL" >&6; } 11116 else 11117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11118 $as_echo "no" >&6; } 11119 fi 11120 11121 11122 test -n "$TAIL" && break 11123 done 11124 11125 else 11126 # The variable is set, but is it from the command line or the environment? 11127 11128 # Try to remove the string !TAIL! from our list. 11129 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!TAIL!/} 11130 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 11131 # If it failed, the variable was not from the command line. Ignore it, 11132 # but warn the user (except for BASH, which is always set by the calling BASH). 11133 if test "xTAIL" != xBASH; then 11134 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of TAIL from the environment. Use command line variables instead." >&5 11135 $as_echo "$as_me: WARNING: Ignoring value of TAIL from the environment. Use command line variables instead." >&2;} 11136 fi 11137 # Try to locate tool using the code snippet 11138 for ac_prog in tail 11139 do 11140 # Extract the first word of "$ac_prog", so it can be a program name with args. 11141 set dummy $ac_prog; ac_word=$2 11142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11143 $as_echo_n "checking for $ac_word... " >&6; } 11144 if ${ac_cv_path_TAIL+:} false; then : 11145 $as_echo_n "(cached) " >&6 11146 else 11147 case $TAIL in 11148 [\\/]* | ?:[\\/]*) 11149 ac_cv_path_TAIL="$TAIL" # Let the user override the test with a path. 11150 ;; 11151 *) 11152 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11153 for as_dir in $PATH 11154 do 11155 IFS=$as_save_IFS 11156 test -z "$as_dir" && as_dir=. 11157 for ac_exec_ext in '' $ac_executable_extensions; do 11158 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11159 ac_cv_path_TAIL="$as_dir/$ac_word$ac_exec_ext" 11160 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11161 break 2 11162 fi 11163 done 11164 done 11165 IFS=$as_save_IFS 11166 11167 ;; 11168 esac 11169 fi 11170 TAIL=$ac_cv_path_TAIL 11171 if test -n "$TAIL"; then 11172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAIL" >&5 11173 $as_echo "$TAIL" >&6; } 11174 else 11175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11176 $as_echo "no" >&6; } 11177 fi 11178 11179 11180 test -n "$TAIL" && break 11181 done 11182 11183 else 11184 # If it succeeded, then it was overridden by the user. We will use it 11185 # for the tool. 11186 11187 # First remove it from the list of overridden variables, so we can test 11188 # for unknown variables in the end. 11189 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 11190 11191 # Check if we try to supply an empty value 11192 if test "x$TAIL" = x; then 11193 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool TAIL= (no value)" >&5 11194 $as_echo "$as_me: Setting user supplied tool TAIL= (no value)" >&6;} 11195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TAIL" >&5 11196 $as_echo_n "checking for TAIL... " >&6; } 11197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 11198 $as_echo "disabled" >&6; } 11199 else 11200 # Check if the provided tool contains a complete path. 11201 tool_specified="$TAIL" 11202 tool_basename="${tool_specified##*/}" 11203 if test "x$tool_basename" = "x$tool_specified"; then 11204 # A command without a complete path is provided, search $PATH. 11205 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool TAIL=$tool_basename" >&5 11206 $as_echo "$as_me: Will search for user supplied tool TAIL=$tool_basename" >&6;} 11207 # Extract the first word of "$tool_basename", so it can be a program name with args. 11208 set dummy $tool_basename; ac_word=$2 11209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11210 $as_echo_n "checking for $ac_word... " >&6; } 11211 if ${ac_cv_path_TAIL+:} false; then : 11212 $as_echo_n "(cached) " >&6 11213 else 11214 case $TAIL in 11215 [\\/]* | ?:[\\/]*) 11216 ac_cv_path_TAIL="$TAIL" # Let the user override the test with a path. 11217 ;; 11218 *) 11219 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11220 for as_dir in $PATH 11221 do 11222 IFS=$as_save_IFS 11223 test -z "$as_dir" && as_dir=. 11224 for ac_exec_ext in '' $ac_executable_extensions; do 11225 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11226 ac_cv_path_TAIL="$as_dir/$ac_word$ac_exec_ext" 11227 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11228 break 2 11229 fi 11230 done 11231 done 11232 IFS=$as_save_IFS 11233 11234 ;; 11235 esac 11236 fi 11237 TAIL=$ac_cv_path_TAIL 11238 if test -n "$TAIL"; then 11239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAIL" >&5 11240 $as_echo "$TAIL" >&6; } 11241 else 11242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11243 $as_echo "no" >&6; } 11244 fi 11245 11246 11247 if test "x$TAIL" = x; then 11248 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 11249 fi 11250 else 11251 # Otherwise we believe it is a complete path. Use it as it is. 11252 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool TAIL=$tool_specified" >&5 11253 $as_echo "$as_me: Will use user supplied tool TAIL=$tool_specified" >&6;} 11254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TAIL" >&5 11255 $as_echo_n "checking for TAIL... " >&6; } 11256 if test ! -x "$tool_specified"; then 11257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 11258 $as_echo "not found" >&6; } 11259 as_fn_error $? "User supplied tool TAIL=$tool_specified does not exist or is not executable" "$LINENO" 5 11260 fi 11261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 11262 $as_echo "$tool_specified" >&6; } 11263 fi 11264 fi 11265 fi 11266 11267 fi 11268 11269 11270 11271 if test "x$TAIL" = x; then 11272 as_fn_error $? "Could not find required tool for TAIL" "$LINENO" 5 11273 fi 11274 11275 11276 11277 11278 11279 # Publish this variable in the help. 11280 11281 11282 if [ -z "${TAR+x}" ]; then 11283 # The variable is not set by user, try to locate tool using the code snippet 11284 for ac_prog in gtar tar 11285 do 11286 # Extract the first word of "$ac_prog", so it can be a program name with args. 11287 set dummy $ac_prog; ac_word=$2 11288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11289 $as_echo_n "checking for $ac_word... " >&6; } 11290 if ${ac_cv_path_TAR+:} false; then : 11291 $as_echo_n "(cached) " >&6 11292 else 11293 case $TAR in 11294 [\\/]* | ?:[\\/]*) 11295 ac_cv_path_TAR="$TAR" # Let the user override the test with a path. 11296 ;; 11297 *) 11298 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11299 for as_dir in $PATH 11300 do 11301 IFS=$as_save_IFS 11302 test -z "$as_dir" && as_dir=. 11303 for ac_exec_ext in '' $ac_executable_extensions; do 11304 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11305 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext" 11306 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11307 break 2 11308 fi 11309 done 11310 done 11311 IFS=$as_save_IFS 11312 11313 ;; 11314 esac 11315 fi 11316 TAR=$ac_cv_path_TAR 11317 if test -n "$TAR"; then 11318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR" >&5 11319 $as_echo "$TAR" >&6; } 11320 else 11321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11322 $as_echo "no" >&6; } 11323 fi 11324 11325 11326 test -n "$TAR" && break 11327 done 11328 11329 else 11330 # The variable is set, but is it from the command line or the environment? 11331 11332 # Try to remove the string !TAR! from our list. 11333 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!TAR!/} 11334 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 11335 # If it failed, the variable was not from the command line. Ignore it, 11336 # but warn the user (except for BASH, which is always set by the calling BASH). 11337 if test "xTAR" != xBASH; then 11338 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of TAR from the environment. Use command line variables instead." >&5 11339 $as_echo "$as_me: WARNING: Ignoring value of TAR from the environment. Use command line variables instead." >&2;} 11340 fi 11341 # Try to locate tool using the code snippet 11342 for ac_prog in gtar tar 11343 do 11344 # Extract the first word of "$ac_prog", so it can be a program name with args. 11345 set dummy $ac_prog; ac_word=$2 11346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11347 $as_echo_n "checking for $ac_word... " >&6; } 11348 if ${ac_cv_path_TAR+:} false; then : 11349 $as_echo_n "(cached) " >&6 11350 else 11351 case $TAR in 11352 [\\/]* | ?:[\\/]*) 11353 ac_cv_path_TAR="$TAR" # Let the user override the test with a path. 11354 ;; 11355 *) 11356 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11357 for as_dir in $PATH 11358 do 11359 IFS=$as_save_IFS 11360 test -z "$as_dir" && as_dir=. 11361 for ac_exec_ext in '' $ac_executable_extensions; do 11362 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11363 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext" 11364 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11365 break 2 11366 fi 11367 done 11368 done 11369 IFS=$as_save_IFS 11370 11371 ;; 11372 esac 11373 fi 11374 TAR=$ac_cv_path_TAR 11375 if test -n "$TAR"; then 11376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR" >&5 11377 $as_echo "$TAR" >&6; } 11378 else 11379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11380 $as_echo "no" >&6; } 11381 fi 11382 11383 11384 test -n "$TAR" && break 11385 done 11386 11387 else 11388 # If it succeeded, then it was overridden by the user. We will use it 11389 # for the tool. 11390 11391 # First remove it from the list of overridden variables, so we can test 11392 # for unknown variables in the end. 11393 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 11394 11395 # Check if we try to supply an empty value 11396 if test "x$TAR" = x; then 11397 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool TAR= (no value)" >&5 11398 $as_echo "$as_me: Setting user supplied tool TAR= (no value)" >&6;} 11399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TAR" >&5 11400 $as_echo_n "checking for TAR... " >&6; } 11401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 11402 $as_echo "disabled" >&6; } 11403 else 11404 # Check if the provided tool contains a complete path. 11405 tool_specified="$TAR" 11406 tool_basename="${tool_specified##*/}" 11407 if test "x$tool_basename" = "x$tool_specified"; then 11408 # A command without a complete path is provided, search $PATH. 11409 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool TAR=$tool_basename" >&5 11410 $as_echo "$as_me: Will search for user supplied tool TAR=$tool_basename" >&6;} 11411 # Extract the first word of "$tool_basename", so it can be a program name with args. 11412 set dummy $tool_basename; ac_word=$2 11413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11414 $as_echo_n "checking for $ac_word... " >&6; } 11415 if ${ac_cv_path_TAR+:} false; then : 11416 $as_echo_n "(cached) " >&6 11417 else 11418 case $TAR in 11419 [\\/]* | ?:[\\/]*) 11420 ac_cv_path_TAR="$TAR" # Let the user override the test with a path. 11421 ;; 11422 *) 11423 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11424 for as_dir in $PATH 11425 do 11426 IFS=$as_save_IFS 11427 test -z "$as_dir" && as_dir=. 11428 for ac_exec_ext in '' $ac_executable_extensions; do 11429 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11430 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext" 11431 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11432 break 2 11433 fi 11434 done 11435 done 11436 IFS=$as_save_IFS 11437 11438 ;; 11439 esac 11440 fi 11441 TAR=$ac_cv_path_TAR 11442 if test -n "$TAR"; then 11443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR" >&5 11444 $as_echo "$TAR" >&6; } 11445 else 11446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11447 $as_echo "no" >&6; } 11448 fi 11449 11450 11451 if test "x$TAR" = x; then 11452 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 11453 fi 11454 else 11455 # Otherwise we believe it is a complete path. Use it as it is. 11456 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool TAR=$tool_specified" >&5 11457 $as_echo "$as_me: Will use user supplied tool TAR=$tool_specified" >&6;} 11458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TAR" >&5 11459 $as_echo_n "checking for TAR... " >&6; } 11460 if test ! -x "$tool_specified"; then 11461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 11462 $as_echo "not found" >&6; } 11463 as_fn_error $? "User supplied tool TAR=$tool_specified does not exist or is not executable" "$LINENO" 5 11464 fi 11465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 11466 $as_echo "$tool_specified" >&6; } 11467 fi 11468 fi 11469 fi 11470 11471 fi 11472 11473 11474 11475 if test "x$TAR" = x; then 11476 as_fn_error $? "Could not find required tool for TAR" "$LINENO" 5 11477 fi 11478 11479 11480 11481 11482 11483 # Publish this variable in the help. 11484 11485 11486 if [ -z "${TEE+x}" ]; then 11487 # The variable is not set by user, try to locate tool using the code snippet 11488 for ac_prog in tee 11489 do 11490 # Extract the first word of "$ac_prog", so it can be a program name with args. 11491 set dummy $ac_prog; ac_word=$2 11492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11493 $as_echo_n "checking for $ac_word... " >&6; } 11494 if ${ac_cv_path_TEE+:} false; then : 11495 $as_echo_n "(cached) " >&6 11496 else 11497 case $TEE in 11498 [\\/]* | ?:[\\/]*) 11499 ac_cv_path_TEE="$TEE" # Let the user override the test with a path. 11500 ;; 11501 *) 11502 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11503 for as_dir in $PATH 11504 do 11505 IFS=$as_save_IFS 11506 test -z "$as_dir" && as_dir=. 11507 for ac_exec_ext in '' $ac_executable_extensions; do 11508 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11509 ac_cv_path_TEE="$as_dir/$ac_word$ac_exec_ext" 11510 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11511 break 2 11512 fi 11513 done 11514 done 11515 IFS=$as_save_IFS 11516 11517 ;; 11518 esac 11519 fi 11520 TEE=$ac_cv_path_TEE 11521 if test -n "$TEE"; then 11522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TEE" >&5 11523 $as_echo "$TEE" >&6; } 11524 else 11525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11526 $as_echo "no" >&6; } 11527 fi 11528 11529 11530 test -n "$TEE" && break 11531 done 11532 11533 else 11534 # The variable is set, but is it from the command line or the environment? 11535 11536 # Try to remove the string !TEE! from our list. 11537 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!TEE!/} 11538 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 11539 # If it failed, the variable was not from the command line. Ignore it, 11540 # but warn the user (except for BASH, which is always set by the calling BASH). 11541 if test "xTEE" != xBASH; then 11542 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of TEE from the environment. Use command line variables instead." >&5 11543 $as_echo "$as_me: WARNING: Ignoring value of TEE from the environment. Use command line variables instead." >&2;} 11544 fi 11545 # Try to locate tool using the code snippet 11546 for ac_prog in tee 11547 do 11548 # Extract the first word of "$ac_prog", so it can be a program name with args. 11549 set dummy $ac_prog; ac_word=$2 11550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11551 $as_echo_n "checking for $ac_word... " >&6; } 11552 if ${ac_cv_path_TEE+:} false; then : 11553 $as_echo_n "(cached) " >&6 11554 else 11555 case $TEE in 11556 [\\/]* | ?:[\\/]*) 11557 ac_cv_path_TEE="$TEE" # Let the user override the test with a path. 11558 ;; 11559 *) 11560 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11561 for as_dir in $PATH 11562 do 11563 IFS=$as_save_IFS 11564 test -z "$as_dir" && as_dir=. 11565 for ac_exec_ext in '' $ac_executable_extensions; do 11566 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11567 ac_cv_path_TEE="$as_dir/$ac_word$ac_exec_ext" 11568 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11569 break 2 11570 fi 11571 done 11572 done 11573 IFS=$as_save_IFS 11574 11575 ;; 11576 esac 11577 fi 11578 TEE=$ac_cv_path_TEE 11579 if test -n "$TEE"; then 11580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TEE" >&5 11581 $as_echo "$TEE" >&6; } 11582 else 11583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11584 $as_echo "no" >&6; } 11585 fi 11586 11587 11588 test -n "$TEE" && break 11589 done 11590 11591 else 11592 # If it succeeded, then it was overridden by the user. We will use it 11593 # for the tool. 11594 11595 # First remove it from the list of overridden variables, so we can test 11596 # for unknown variables in the end. 11597 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 11598 11599 # Check if we try to supply an empty value 11600 if test "x$TEE" = x; then 11601 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool TEE= (no value)" >&5 11602 $as_echo "$as_me: Setting user supplied tool TEE= (no value)" >&6;} 11603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TEE" >&5 11604 $as_echo_n "checking for TEE... " >&6; } 11605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 11606 $as_echo "disabled" >&6; } 11607 else 11608 # Check if the provided tool contains a complete path. 11609 tool_specified="$TEE" 11610 tool_basename="${tool_specified##*/}" 11611 if test "x$tool_basename" = "x$tool_specified"; then 11612 # A command without a complete path is provided, search $PATH. 11613 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool TEE=$tool_basename" >&5 11614 $as_echo "$as_me: Will search for user supplied tool TEE=$tool_basename" >&6;} 11615 # Extract the first word of "$tool_basename", so it can be a program name with args. 11616 set dummy $tool_basename; ac_word=$2 11617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11618 $as_echo_n "checking for $ac_word... " >&6; } 11619 if ${ac_cv_path_TEE+:} false; then : 11620 $as_echo_n "(cached) " >&6 11621 else 11622 case $TEE in 11623 [\\/]* | ?:[\\/]*) 11624 ac_cv_path_TEE="$TEE" # Let the user override the test with a path. 11625 ;; 11626 *) 11627 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11628 for as_dir in $PATH 11629 do 11630 IFS=$as_save_IFS 11631 test -z "$as_dir" && as_dir=. 11632 for ac_exec_ext in '' $ac_executable_extensions; do 11633 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11634 ac_cv_path_TEE="$as_dir/$ac_word$ac_exec_ext" 11635 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11636 break 2 11637 fi 11638 done 11639 done 11640 IFS=$as_save_IFS 11641 11642 ;; 11643 esac 11644 fi 11645 TEE=$ac_cv_path_TEE 11646 if test -n "$TEE"; then 11647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TEE" >&5 11648 $as_echo "$TEE" >&6; } 11649 else 11650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11651 $as_echo "no" >&6; } 11652 fi 11653 11654 11655 if test "x$TEE" = x; then 11656 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 11657 fi 11658 else 11659 # Otherwise we believe it is a complete path. Use it as it is. 11660 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool TEE=$tool_specified" >&5 11661 $as_echo "$as_me: Will use user supplied tool TEE=$tool_specified" >&6;} 11662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TEE" >&5 11663 $as_echo_n "checking for TEE... " >&6; } 11664 if test ! -x "$tool_specified"; then 11665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 11666 $as_echo "not found" >&6; } 11667 as_fn_error $? "User supplied tool TEE=$tool_specified does not exist or is not executable" "$LINENO" 5 11668 fi 11669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 11670 $as_echo "$tool_specified" >&6; } 11671 fi 11672 fi 11673 fi 11674 11675 fi 11676 11677 11678 11679 if test "x$TEE" = x; then 11680 as_fn_error $? "Could not find required tool for TEE" "$LINENO" 5 11681 fi 11682 11683 11684 11685 11686 11687 # Publish this variable in the help. 11688 11689 11690 if [ -z "${TOUCH+x}" ]; then 11691 # The variable is not set by user, try to locate tool using the code snippet 11692 for ac_prog in touch 11693 do 11694 # Extract the first word of "$ac_prog", so it can be a program name with args. 11695 set dummy $ac_prog; ac_word=$2 11696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11697 $as_echo_n "checking for $ac_word... " >&6; } 11698 if ${ac_cv_path_TOUCH+:} false; then : 11699 $as_echo_n "(cached) " >&6 11700 else 11701 case $TOUCH in 11702 [\\/]* | ?:[\\/]*) 11703 ac_cv_path_TOUCH="$TOUCH" # Let the user override the test with a path. 11704 ;; 11705 *) 11706 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11707 for as_dir in $PATH 11708 do 11709 IFS=$as_save_IFS 11710 test -z "$as_dir" && as_dir=. 11711 for ac_exec_ext in '' $ac_executable_extensions; do 11712 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11713 ac_cv_path_TOUCH="$as_dir/$ac_word$ac_exec_ext" 11714 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11715 break 2 11716 fi 11717 done 11718 done 11719 IFS=$as_save_IFS 11720 11721 ;; 11722 esac 11723 fi 11724 TOUCH=$ac_cv_path_TOUCH 11725 if test -n "$TOUCH"; then 11726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOUCH" >&5 11727 $as_echo "$TOUCH" >&6; } 11728 else 11729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11730 $as_echo "no" >&6; } 11731 fi 11732 11733 11734 test -n "$TOUCH" && break 11735 done 11736 11737 else 11738 # The variable is set, but is it from the command line or the environment? 11739 11740 # Try to remove the string !TOUCH! from our list. 11741 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!TOUCH!/} 11742 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 11743 # If it failed, the variable was not from the command line. Ignore it, 11744 # but warn the user (except for BASH, which is always set by the calling BASH). 11745 if test "xTOUCH" != xBASH; then 11746 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of TOUCH from the environment. Use command line variables instead." >&5 11747 $as_echo "$as_me: WARNING: Ignoring value of TOUCH from the environment. Use command line variables instead." >&2;} 11748 fi 11749 # Try to locate tool using the code snippet 11750 for ac_prog in touch 11751 do 11752 # Extract the first word of "$ac_prog", so it can be a program name with args. 11753 set dummy $ac_prog; ac_word=$2 11754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11755 $as_echo_n "checking for $ac_word... " >&6; } 11756 if ${ac_cv_path_TOUCH+:} false; then : 11757 $as_echo_n "(cached) " >&6 11758 else 11759 case $TOUCH in 11760 [\\/]* | ?:[\\/]*) 11761 ac_cv_path_TOUCH="$TOUCH" # Let the user override the test with a path. 11762 ;; 11763 *) 11764 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11765 for as_dir in $PATH 11766 do 11767 IFS=$as_save_IFS 11768 test -z "$as_dir" && as_dir=. 11769 for ac_exec_ext in '' $ac_executable_extensions; do 11770 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11771 ac_cv_path_TOUCH="$as_dir/$ac_word$ac_exec_ext" 11772 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11773 break 2 11774 fi 11775 done 11776 done 11777 IFS=$as_save_IFS 11778 11779 ;; 11780 esac 11781 fi 11782 TOUCH=$ac_cv_path_TOUCH 11783 if test -n "$TOUCH"; then 11784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOUCH" >&5 11785 $as_echo "$TOUCH" >&6; } 11786 else 11787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11788 $as_echo "no" >&6; } 11789 fi 11790 11791 11792 test -n "$TOUCH" && break 11793 done 11794 11795 else 11796 # If it succeeded, then it was overridden by the user. We will use it 11797 # for the tool. 11798 11799 # First remove it from the list of overridden variables, so we can test 11800 # for unknown variables in the end. 11801 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 11802 11803 # Check if we try to supply an empty value 11804 if test "x$TOUCH" = x; then 11805 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool TOUCH= (no value)" >&5 11806 $as_echo "$as_me: Setting user supplied tool TOUCH= (no value)" >&6;} 11807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TOUCH" >&5 11808 $as_echo_n "checking for TOUCH... " >&6; } 11809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 11810 $as_echo "disabled" >&6; } 11811 else 11812 # Check if the provided tool contains a complete path. 11813 tool_specified="$TOUCH" 11814 tool_basename="${tool_specified##*/}" 11815 if test "x$tool_basename" = "x$tool_specified"; then 11816 # A command without a complete path is provided, search $PATH. 11817 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool TOUCH=$tool_basename" >&5 11818 $as_echo "$as_me: Will search for user supplied tool TOUCH=$tool_basename" >&6;} 11819 # Extract the first word of "$tool_basename", so it can be a program name with args. 11820 set dummy $tool_basename; ac_word=$2 11821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11822 $as_echo_n "checking for $ac_word... " >&6; } 11823 if ${ac_cv_path_TOUCH+:} false; then : 11824 $as_echo_n "(cached) " >&6 11825 else 11826 case $TOUCH in 11827 [\\/]* | ?:[\\/]*) 11828 ac_cv_path_TOUCH="$TOUCH" # Let the user override the test with a path. 11829 ;; 11830 *) 11831 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11832 for as_dir in $PATH 11833 do 11834 IFS=$as_save_IFS 11835 test -z "$as_dir" && as_dir=. 11836 for ac_exec_ext in '' $ac_executable_extensions; do 11837 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11838 ac_cv_path_TOUCH="$as_dir/$ac_word$ac_exec_ext" 11839 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11840 break 2 11841 fi 11842 done 11843 done 11844 IFS=$as_save_IFS 11845 11846 ;; 11847 esac 11848 fi 11849 TOUCH=$ac_cv_path_TOUCH 11850 if test -n "$TOUCH"; then 11851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOUCH" >&5 11852 $as_echo "$TOUCH" >&6; } 11853 else 11854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11855 $as_echo "no" >&6; } 11856 fi 11857 11858 11859 if test "x$TOUCH" = x; then 11860 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 11861 fi 11862 else 11863 # Otherwise we believe it is a complete path. Use it as it is. 11864 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool TOUCH=$tool_specified" >&5 11865 $as_echo "$as_me: Will use user supplied tool TOUCH=$tool_specified" >&6;} 11866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TOUCH" >&5 11867 $as_echo_n "checking for TOUCH... " >&6; } 11868 if test ! -x "$tool_specified"; then 11869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 11870 $as_echo "not found" >&6; } 11871 as_fn_error $? "User supplied tool TOUCH=$tool_specified does not exist or is not executable" "$LINENO" 5 11872 fi 11873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 11874 $as_echo "$tool_specified" >&6; } 11875 fi 11876 fi 11877 fi 11878 11879 fi 11880 11881 11882 11883 if test "x$TOUCH" = x; then 11884 as_fn_error $? "Could not find required tool for TOUCH" "$LINENO" 5 11885 fi 11886 11887 11888 11889 11890 11891 # Publish this variable in the help. 11892 11893 11894 if [ -z "${TR+x}" ]; then 11895 # The variable is not set by user, try to locate tool using the code snippet 11896 for ac_prog in tr 11897 do 11898 # Extract the first word of "$ac_prog", so it can be a program name with args. 11899 set dummy $ac_prog; ac_word=$2 11900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11901 $as_echo_n "checking for $ac_word... " >&6; } 11902 if ${ac_cv_path_TR+:} false; then : 11903 $as_echo_n "(cached) " >&6 11904 else 11905 case $TR in 11906 [\\/]* | ?:[\\/]*) 11907 ac_cv_path_TR="$TR" # Let the user override the test with a path. 11908 ;; 11909 *) 11910 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11911 for as_dir in $PATH 11912 do 11913 IFS=$as_save_IFS 11914 test -z "$as_dir" && as_dir=. 11915 for ac_exec_ext in '' $ac_executable_extensions; do 11916 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11917 ac_cv_path_TR="$as_dir/$ac_word$ac_exec_ext" 11918 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11919 break 2 11920 fi 11921 done 11922 done 11923 IFS=$as_save_IFS 11924 11925 ;; 11926 esac 11927 fi 11928 TR=$ac_cv_path_TR 11929 if test -n "$TR"; then 11930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TR" >&5 11931 $as_echo "$TR" >&6; } 11932 else 11933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11934 $as_echo "no" >&6; } 11935 fi 11936 11937 11938 test -n "$TR" && break 11939 done 11940 11941 else 11942 # The variable is set, but is it from the command line or the environment? 11943 11944 # Try to remove the string !TR! from our list. 11945 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!TR!/} 11946 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 11947 # If it failed, the variable was not from the command line. Ignore it, 11948 # but warn the user (except for BASH, which is always set by the calling BASH). 11949 if test "xTR" != xBASH; then 11950 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of TR from the environment. Use command line variables instead." >&5 11951 $as_echo "$as_me: WARNING: Ignoring value of TR from the environment. Use command line variables instead." >&2;} 11952 fi 11953 # Try to locate tool using the code snippet 11954 for ac_prog in tr 11955 do 11956 # Extract the first word of "$ac_prog", so it can be a program name with args. 11957 set dummy $ac_prog; ac_word=$2 11958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11959 $as_echo_n "checking for $ac_word... " >&6; } 11960 if ${ac_cv_path_TR+:} false; then : 11961 $as_echo_n "(cached) " >&6 11962 else 11963 case $TR in 11964 [\\/]* | ?:[\\/]*) 11965 ac_cv_path_TR="$TR" # Let the user override the test with a path. 11966 ;; 11967 *) 11968 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11969 for as_dir in $PATH 11970 do 11971 IFS=$as_save_IFS 11972 test -z "$as_dir" && as_dir=. 11973 for ac_exec_ext in '' $ac_executable_extensions; do 11974 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11975 ac_cv_path_TR="$as_dir/$ac_word$ac_exec_ext" 11976 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11977 break 2 11978 fi 11979 done 11980 done 11981 IFS=$as_save_IFS 11982 11983 ;; 11984 esac 11985 fi 11986 TR=$ac_cv_path_TR 11987 if test -n "$TR"; then 11988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TR" >&5 11989 $as_echo "$TR" >&6; } 11990 else 11991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11992 $as_echo "no" >&6; } 11993 fi 11994 11995 11996 test -n "$TR" && break 11997 done 11998 11999 else 12000 # If it succeeded, then it was overridden by the user. We will use it 12001 # for the tool. 12002 12003 # First remove it from the list of overridden variables, so we can test 12004 # for unknown variables in the end. 12005 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 12006 12007 # Check if we try to supply an empty value 12008 if test "x$TR" = x; then 12009 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool TR= (no value)" >&5 12010 $as_echo "$as_me: Setting user supplied tool TR= (no value)" >&6;} 12011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TR" >&5 12012 $as_echo_n "checking for TR... " >&6; } 12013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 12014 $as_echo "disabled" >&6; } 12015 else 12016 # Check if the provided tool contains a complete path. 12017 tool_specified="$TR" 12018 tool_basename="${tool_specified##*/}" 12019 if test "x$tool_basename" = "x$tool_specified"; then 12020 # A command without a complete path is provided, search $PATH. 12021 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool TR=$tool_basename" >&5 12022 $as_echo "$as_me: Will search for user supplied tool TR=$tool_basename" >&6;} 12023 # Extract the first word of "$tool_basename", so it can be a program name with args. 12024 set dummy $tool_basename; ac_word=$2 12025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12026 $as_echo_n "checking for $ac_word... " >&6; } 12027 if ${ac_cv_path_TR+:} false; then : 12028 $as_echo_n "(cached) " >&6 12029 else 12030 case $TR in 12031 [\\/]* | ?:[\\/]*) 12032 ac_cv_path_TR="$TR" # Let the user override the test with a path. 12033 ;; 12034 *) 12035 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12036 for as_dir in $PATH 12037 do 12038 IFS=$as_save_IFS 12039 test -z "$as_dir" && as_dir=. 12040 for ac_exec_ext in '' $ac_executable_extensions; do 12041 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12042 ac_cv_path_TR="$as_dir/$ac_word$ac_exec_ext" 12043 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12044 break 2 12045 fi 12046 done 12047 done 12048 IFS=$as_save_IFS 12049 12050 ;; 12051 esac 12052 fi 12053 TR=$ac_cv_path_TR 12054 if test -n "$TR"; then 12055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TR" >&5 12056 $as_echo "$TR" >&6; } 12057 else 12058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12059 $as_echo "no" >&6; } 12060 fi 12061 12062 12063 if test "x$TR" = x; then 12064 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 12065 fi 12066 else 12067 # Otherwise we believe it is a complete path. Use it as it is. 12068 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool TR=$tool_specified" >&5 12069 $as_echo "$as_me: Will use user supplied tool TR=$tool_specified" >&6;} 12070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TR" >&5 12071 $as_echo_n "checking for TR... " >&6; } 12072 if test ! -x "$tool_specified"; then 12073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 12074 $as_echo "not found" >&6; } 12075 as_fn_error $? "User supplied tool TR=$tool_specified does not exist or is not executable" "$LINENO" 5 12076 fi 12077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 12078 $as_echo "$tool_specified" >&6; } 12079 fi 12080 fi 12081 fi 12082 12083 fi 12084 12085 12086 12087 if test "x$TR" = x; then 12088 as_fn_error $? "Could not find required tool for TR" "$LINENO" 5 12089 fi 12090 12091 12092 12093 12094 12095 # Publish this variable in the help. 12096 12097 12098 if [ -z "${UNAME+x}" ]; then 12099 # The variable is not set by user, try to locate tool using the code snippet 12100 for ac_prog in uname 12101 do 12102 # Extract the first word of "$ac_prog", so it can be a program name with args. 12103 set dummy $ac_prog; ac_word=$2 12104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12105 $as_echo_n "checking for $ac_word... " >&6; } 12106 if ${ac_cv_path_UNAME+:} false; then : 12107 $as_echo_n "(cached) " >&6 12108 else 12109 case $UNAME in 12110 [\\/]* | ?:[\\/]*) 12111 ac_cv_path_UNAME="$UNAME" # Let the user override the test with a path. 12112 ;; 12113 *) 12114 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12115 for as_dir in $PATH 12116 do 12117 IFS=$as_save_IFS 12118 test -z "$as_dir" && as_dir=. 12119 for ac_exec_ext in '' $ac_executable_extensions; do 12120 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12121 ac_cv_path_UNAME="$as_dir/$ac_word$ac_exec_ext" 12122 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12123 break 2 12124 fi 12125 done 12126 done 12127 IFS=$as_save_IFS 12128 12129 ;; 12130 esac 12131 fi 12132 UNAME=$ac_cv_path_UNAME 12133 if test -n "$UNAME"; then 12134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNAME" >&5 12135 $as_echo "$UNAME" >&6; } 12136 else 12137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12138 $as_echo "no" >&6; } 12139 fi 12140 12141 12142 test -n "$UNAME" && break 12143 done 12144 12145 else 12146 # The variable is set, but is it from the command line or the environment? 12147 12148 # Try to remove the string !UNAME! from our list. 12149 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!UNAME!/} 12150 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 12151 # If it failed, the variable was not from the command line. Ignore it, 12152 # but warn the user (except for BASH, which is always set by the calling BASH). 12153 if test "xUNAME" != xBASH; then 12154 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of UNAME from the environment. Use command line variables instead." >&5 12155 $as_echo "$as_me: WARNING: Ignoring value of UNAME from the environment. Use command line variables instead." >&2;} 12156 fi 12157 # Try to locate tool using the code snippet 12158 for ac_prog in uname 12159 do 12160 # Extract the first word of "$ac_prog", so it can be a program name with args. 12161 set dummy $ac_prog; ac_word=$2 12162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12163 $as_echo_n "checking for $ac_word... " >&6; } 12164 if ${ac_cv_path_UNAME+:} false; then : 12165 $as_echo_n "(cached) " >&6 12166 else 12167 case $UNAME in 12168 [\\/]* | ?:[\\/]*) 12169 ac_cv_path_UNAME="$UNAME" # Let the user override the test with a path. 12170 ;; 12171 *) 12172 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12173 for as_dir in $PATH 12174 do 12175 IFS=$as_save_IFS 12176 test -z "$as_dir" && as_dir=. 12177 for ac_exec_ext in '' $ac_executable_extensions; do 12178 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12179 ac_cv_path_UNAME="$as_dir/$ac_word$ac_exec_ext" 12180 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12181 break 2 12182 fi 12183 done 12184 done 12185 IFS=$as_save_IFS 12186 12187 ;; 12188 esac 12189 fi 12190 UNAME=$ac_cv_path_UNAME 12191 if test -n "$UNAME"; then 12192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNAME" >&5 12193 $as_echo "$UNAME" >&6; } 12194 else 12195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12196 $as_echo "no" >&6; } 12197 fi 12198 12199 12200 test -n "$UNAME" && break 12201 done 12202 12203 else 12204 # If it succeeded, then it was overridden by the user. We will use it 12205 # for the tool. 12206 12207 # First remove it from the list of overridden variables, so we can test 12208 # for unknown variables in the end. 12209 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 12210 12211 # Check if we try to supply an empty value 12212 if test "x$UNAME" = x; then 12213 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool UNAME= (no value)" >&5 12214 $as_echo "$as_me: Setting user supplied tool UNAME= (no value)" >&6;} 12215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UNAME" >&5 12216 $as_echo_n "checking for UNAME... " >&6; } 12217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 12218 $as_echo "disabled" >&6; } 12219 else 12220 # Check if the provided tool contains a complete path. 12221 tool_specified="$UNAME" 12222 tool_basename="${tool_specified##*/}" 12223 if test "x$tool_basename" = "x$tool_specified"; then 12224 # A command without a complete path is provided, search $PATH. 12225 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool UNAME=$tool_basename" >&5 12226 $as_echo "$as_me: Will search for user supplied tool UNAME=$tool_basename" >&6;} 12227 # Extract the first word of "$tool_basename", so it can be a program name with args. 12228 set dummy $tool_basename; ac_word=$2 12229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12230 $as_echo_n "checking for $ac_word... " >&6; } 12231 if ${ac_cv_path_UNAME+:} false; then : 12232 $as_echo_n "(cached) " >&6 12233 else 12234 case $UNAME in 12235 [\\/]* | ?:[\\/]*) 12236 ac_cv_path_UNAME="$UNAME" # Let the user override the test with a path. 12237 ;; 12238 *) 12239 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12240 for as_dir in $PATH 12241 do 12242 IFS=$as_save_IFS 12243 test -z "$as_dir" && as_dir=. 12244 for ac_exec_ext in '' $ac_executable_extensions; do 12245 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12246 ac_cv_path_UNAME="$as_dir/$ac_word$ac_exec_ext" 12247 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12248 break 2 12249 fi 12250 done 12251 done 12252 IFS=$as_save_IFS 12253 12254 ;; 12255 esac 12256 fi 12257 UNAME=$ac_cv_path_UNAME 12258 if test -n "$UNAME"; then 12259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNAME" >&5 12260 $as_echo "$UNAME" >&6; } 12261 else 12262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12263 $as_echo "no" >&6; } 12264 fi 12265 12266 12267 if test "x$UNAME" = x; then 12268 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 12269 fi 12270 else 12271 # Otherwise we believe it is a complete path. Use it as it is. 12272 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool UNAME=$tool_specified" >&5 12273 $as_echo "$as_me: Will use user supplied tool UNAME=$tool_specified" >&6;} 12274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UNAME" >&5 12275 $as_echo_n "checking for UNAME... " >&6; } 12276 if test ! -x "$tool_specified"; then 12277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 12278 $as_echo "not found" >&6; } 12279 as_fn_error $? "User supplied tool UNAME=$tool_specified does not exist or is not executable" "$LINENO" 5 12280 fi 12281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 12282 $as_echo "$tool_specified" >&6; } 12283 fi 12284 fi 12285 fi 12286 12287 fi 12288 12289 12290 12291 if test "x$UNAME" = x; then 12292 as_fn_error $? "Could not find required tool for UNAME" "$LINENO" 5 12293 fi 12294 12295 12296 12297 12298 12299 # Publish this variable in the help. 12300 12301 12302 if [ -z "${UNIQ+x}" ]; then 12303 # The variable is not set by user, try to locate tool using the code snippet 12304 for ac_prog in uniq 12305 do 12306 # Extract the first word of "$ac_prog", so it can be a program name with args. 12307 set dummy $ac_prog; ac_word=$2 12308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12309 $as_echo_n "checking for $ac_word... " >&6; } 12310 if ${ac_cv_path_UNIQ+:} false; then : 12311 $as_echo_n "(cached) " >&6 12312 else 12313 case $UNIQ in 12314 [\\/]* | ?:[\\/]*) 12315 ac_cv_path_UNIQ="$UNIQ" # Let the user override the test with a path. 12316 ;; 12317 *) 12318 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12319 for as_dir in $PATH 12320 do 12321 IFS=$as_save_IFS 12322 test -z "$as_dir" && as_dir=. 12323 for ac_exec_ext in '' $ac_executable_extensions; do 12324 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12325 ac_cv_path_UNIQ="$as_dir/$ac_word$ac_exec_ext" 12326 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12327 break 2 12328 fi 12329 done 12330 done 12331 IFS=$as_save_IFS 12332 12333 ;; 12334 esac 12335 fi 12336 UNIQ=$ac_cv_path_UNIQ 12337 if test -n "$UNIQ"; then 12338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNIQ" >&5 12339 $as_echo "$UNIQ" >&6; } 12340 else 12341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12342 $as_echo "no" >&6; } 12343 fi 12344 12345 12346 test -n "$UNIQ" && break 12347 done 12348 12349 else 12350 # The variable is set, but is it from the command line or the environment? 12351 12352 # Try to remove the string !UNIQ! from our list. 12353 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!UNIQ!/} 12354 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 12355 # If it failed, the variable was not from the command line. Ignore it, 12356 # but warn the user (except for BASH, which is always set by the calling BASH). 12357 if test "xUNIQ" != xBASH; then 12358 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of UNIQ from the environment. Use command line variables instead." >&5 12359 $as_echo "$as_me: WARNING: Ignoring value of UNIQ from the environment. Use command line variables instead." >&2;} 12360 fi 12361 # Try to locate tool using the code snippet 12362 for ac_prog in uniq 12363 do 12364 # Extract the first word of "$ac_prog", so it can be a program name with args. 12365 set dummy $ac_prog; ac_word=$2 12366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12367 $as_echo_n "checking for $ac_word... " >&6; } 12368 if ${ac_cv_path_UNIQ+:} false; then : 12369 $as_echo_n "(cached) " >&6 12370 else 12371 case $UNIQ in 12372 [\\/]* | ?:[\\/]*) 12373 ac_cv_path_UNIQ="$UNIQ" # Let the user override the test with a path. 12374 ;; 12375 *) 12376 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12377 for as_dir in $PATH 12378 do 12379 IFS=$as_save_IFS 12380 test -z "$as_dir" && as_dir=. 12381 for ac_exec_ext in '' $ac_executable_extensions; do 12382 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12383 ac_cv_path_UNIQ="$as_dir/$ac_word$ac_exec_ext" 12384 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12385 break 2 12386 fi 12387 done 12388 done 12389 IFS=$as_save_IFS 12390 12391 ;; 12392 esac 12393 fi 12394 UNIQ=$ac_cv_path_UNIQ 12395 if test -n "$UNIQ"; then 12396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNIQ" >&5 12397 $as_echo "$UNIQ" >&6; } 12398 else 12399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12400 $as_echo "no" >&6; } 12401 fi 12402 12403 12404 test -n "$UNIQ" && break 12405 done 12406 12407 else 12408 # If it succeeded, then it was overridden by the user. We will use it 12409 # for the tool. 12410 12411 # First remove it from the list of overridden variables, so we can test 12412 # for unknown variables in the end. 12413 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 12414 12415 # Check if we try to supply an empty value 12416 if test "x$UNIQ" = x; then 12417 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool UNIQ= (no value)" >&5 12418 $as_echo "$as_me: Setting user supplied tool UNIQ= (no value)" >&6;} 12419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UNIQ" >&5 12420 $as_echo_n "checking for UNIQ... " >&6; } 12421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 12422 $as_echo "disabled" >&6; } 12423 else 12424 # Check if the provided tool contains a complete path. 12425 tool_specified="$UNIQ" 12426 tool_basename="${tool_specified##*/}" 12427 if test "x$tool_basename" = "x$tool_specified"; then 12428 # A command without a complete path is provided, search $PATH. 12429 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool UNIQ=$tool_basename" >&5 12430 $as_echo "$as_me: Will search for user supplied tool UNIQ=$tool_basename" >&6;} 12431 # Extract the first word of "$tool_basename", so it can be a program name with args. 12432 set dummy $tool_basename; ac_word=$2 12433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12434 $as_echo_n "checking for $ac_word... " >&6; } 12435 if ${ac_cv_path_UNIQ+:} false; then : 12436 $as_echo_n "(cached) " >&6 12437 else 12438 case $UNIQ in 12439 [\\/]* | ?:[\\/]*) 12440 ac_cv_path_UNIQ="$UNIQ" # Let the user override the test with a path. 12441 ;; 12442 *) 12443 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12444 for as_dir in $PATH 12445 do 12446 IFS=$as_save_IFS 12447 test -z "$as_dir" && as_dir=. 12448 for ac_exec_ext in '' $ac_executable_extensions; do 12449 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12450 ac_cv_path_UNIQ="$as_dir/$ac_word$ac_exec_ext" 12451 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12452 break 2 12453 fi 12454 done 12455 done 12456 IFS=$as_save_IFS 12457 12458 ;; 12459 esac 12460 fi 12461 UNIQ=$ac_cv_path_UNIQ 12462 if test -n "$UNIQ"; then 12463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNIQ" >&5 12464 $as_echo "$UNIQ" >&6; } 12465 else 12466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12467 $as_echo "no" >&6; } 12468 fi 12469 12470 12471 if test "x$UNIQ" = x; then 12472 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 12473 fi 12474 else 12475 # Otherwise we believe it is a complete path. Use it as it is. 12476 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool UNIQ=$tool_specified" >&5 12477 $as_echo "$as_me: Will use user supplied tool UNIQ=$tool_specified" >&6;} 12478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UNIQ" >&5 12479 $as_echo_n "checking for UNIQ... " >&6; } 12480 if test ! -x "$tool_specified"; then 12481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 12482 $as_echo "not found" >&6; } 12483 as_fn_error $? "User supplied tool UNIQ=$tool_specified does not exist or is not executable" "$LINENO" 5 12484 fi 12485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 12486 $as_echo "$tool_specified" >&6; } 12487 fi 12488 fi 12489 fi 12490 12491 fi 12492 12493 12494 12495 if test "x$UNIQ" = x; then 12496 as_fn_error $? "Could not find required tool for UNIQ" "$LINENO" 5 12497 fi 12498 12499 12500 12501 12502 12503 # Publish this variable in the help. 12504 12505 12506 if [ -z "${WC+x}" ]; then 12507 # The variable is not set by user, try to locate tool using the code snippet 12508 for ac_prog in wc 12509 do 12510 # Extract the first word of "$ac_prog", so it can be a program name with args. 12511 set dummy $ac_prog; ac_word=$2 12512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12513 $as_echo_n "checking for $ac_word... " >&6; } 12514 if ${ac_cv_path_WC+:} false; then : 12515 $as_echo_n "(cached) " >&6 12516 else 12517 case $WC in 12518 [\\/]* | ?:[\\/]*) 12519 ac_cv_path_WC="$WC" # Let the user override the test with a path. 12520 ;; 12521 *) 12522 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12523 for as_dir in $PATH 12524 do 12525 IFS=$as_save_IFS 12526 test -z "$as_dir" && as_dir=. 12527 for ac_exec_ext in '' $ac_executable_extensions; do 12528 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12529 ac_cv_path_WC="$as_dir/$ac_word$ac_exec_ext" 12530 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12531 break 2 12532 fi 12533 done 12534 done 12535 IFS=$as_save_IFS 12536 12537 ;; 12538 esac 12539 fi 12540 WC=$ac_cv_path_WC 12541 if test -n "$WC"; then 12542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WC" >&5 12543 $as_echo "$WC" >&6; } 12544 else 12545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12546 $as_echo "no" >&6; } 12547 fi 12548 12549 12550 test -n "$WC" && break 12551 done 12552 12553 else 12554 # The variable is set, but is it from the command line or the environment? 12555 12556 # Try to remove the string !WC! from our list. 12557 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!WC!/} 12558 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 12559 # If it failed, the variable was not from the command line. Ignore it, 12560 # but warn the user (except for BASH, which is always set by the calling BASH). 12561 if test "xWC" != xBASH; then 12562 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of WC from the environment. Use command line variables instead." >&5 12563 $as_echo "$as_me: WARNING: Ignoring value of WC from the environment. Use command line variables instead." >&2;} 12564 fi 12565 # Try to locate tool using the code snippet 12566 for ac_prog in wc 12567 do 12568 # Extract the first word of "$ac_prog", so it can be a program name with args. 12569 set dummy $ac_prog; ac_word=$2 12570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12571 $as_echo_n "checking for $ac_word... " >&6; } 12572 if ${ac_cv_path_WC+:} false; then : 12573 $as_echo_n "(cached) " >&6 12574 else 12575 case $WC in 12576 [\\/]* | ?:[\\/]*) 12577 ac_cv_path_WC="$WC" # Let the user override the test with a path. 12578 ;; 12579 *) 12580 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12581 for as_dir in $PATH 12582 do 12583 IFS=$as_save_IFS 12584 test -z "$as_dir" && as_dir=. 12585 for ac_exec_ext in '' $ac_executable_extensions; do 12586 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12587 ac_cv_path_WC="$as_dir/$ac_word$ac_exec_ext" 12588 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12589 break 2 12590 fi 12591 done 12592 done 12593 IFS=$as_save_IFS 12594 12595 ;; 12596 esac 12597 fi 12598 WC=$ac_cv_path_WC 12599 if test -n "$WC"; then 12600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WC" >&5 12601 $as_echo "$WC" >&6; } 12602 else 12603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12604 $as_echo "no" >&6; } 12605 fi 12606 12607 12608 test -n "$WC" && break 12609 done 12610 12611 else 12612 # If it succeeded, then it was overridden by the user. We will use it 12613 # for the tool. 12614 12615 # First remove it from the list of overridden variables, so we can test 12616 # for unknown variables in the end. 12617 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 12618 12619 # Check if we try to supply an empty value 12620 if test "x$WC" = x; then 12621 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool WC= (no value)" >&5 12622 $as_echo "$as_me: Setting user supplied tool WC= (no value)" >&6;} 12623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WC" >&5 12624 $as_echo_n "checking for WC... " >&6; } 12625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 12626 $as_echo "disabled" >&6; } 12627 else 12628 # Check if the provided tool contains a complete path. 12629 tool_specified="$WC" 12630 tool_basename="${tool_specified##*/}" 12631 if test "x$tool_basename" = "x$tool_specified"; then 12632 # A command without a complete path is provided, search $PATH. 12633 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool WC=$tool_basename" >&5 12634 $as_echo "$as_me: Will search for user supplied tool WC=$tool_basename" >&6;} 12635 # Extract the first word of "$tool_basename", so it can be a program name with args. 12636 set dummy $tool_basename; ac_word=$2 12637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12638 $as_echo_n "checking for $ac_word... " >&6; } 12639 if ${ac_cv_path_WC+:} false; then : 12640 $as_echo_n "(cached) " >&6 12641 else 12642 case $WC in 12643 [\\/]* | ?:[\\/]*) 12644 ac_cv_path_WC="$WC" # Let the user override the test with a path. 12645 ;; 12646 *) 12647 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12648 for as_dir in $PATH 12649 do 12650 IFS=$as_save_IFS 12651 test -z "$as_dir" && as_dir=. 12652 for ac_exec_ext in '' $ac_executable_extensions; do 12653 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12654 ac_cv_path_WC="$as_dir/$ac_word$ac_exec_ext" 12655 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12656 break 2 12657 fi 12658 done 12659 done 12660 IFS=$as_save_IFS 12661 12662 ;; 12663 esac 12664 fi 12665 WC=$ac_cv_path_WC 12666 if test -n "$WC"; then 12667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WC" >&5 12668 $as_echo "$WC" >&6; } 12669 else 12670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12671 $as_echo "no" >&6; } 12672 fi 12673 12674 12675 if test "x$WC" = x; then 12676 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 12677 fi 12678 else 12679 # Otherwise we believe it is a complete path. Use it as it is. 12680 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool WC=$tool_specified" >&5 12681 $as_echo "$as_me: Will use user supplied tool WC=$tool_specified" >&6;} 12682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WC" >&5 12683 $as_echo_n "checking for WC... " >&6; } 12684 if test ! -x "$tool_specified"; then 12685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 12686 $as_echo "not found" >&6; } 12687 as_fn_error $? "User supplied tool WC=$tool_specified does not exist or is not executable" "$LINENO" 5 12688 fi 12689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 12690 $as_echo "$tool_specified" >&6; } 12691 fi 12692 fi 12693 fi 12694 12695 fi 12696 12697 12698 12699 if test "x$WC" = x; then 12700 as_fn_error $? "Could not find required tool for WC" "$LINENO" 5 12701 fi 12702 12703 12704 12705 12706 12707 # Publish this variable in the help. 12708 12709 12710 if [ -z "${WHICH+x}" ]; then 12711 # The variable is not set by user, try to locate tool using the code snippet 12712 for ac_prog in which 12713 do 12714 # Extract the first word of "$ac_prog", so it can be a program name with args. 12715 set dummy $ac_prog; ac_word=$2 12716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12717 $as_echo_n "checking for $ac_word... " >&6; } 12718 if ${ac_cv_path_WHICH+:} false; then : 12719 $as_echo_n "(cached) " >&6 12720 else 12721 case $WHICH in 12722 [\\/]* | ?:[\\/]*) 12723 ac_cv_path_WHICH="$WHICH" # Let the user override the test with a path. 12724 ;; 12725 *) 12726 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12727 for as_dir in $PATH 12728 do 12729 IFS=$as_save_IFS 12730 test -z "$as_dir" && as_dir=. 12731 for ac_exec_ext in '' $ac_executable_extensions; do 12732 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12733 ac_cv_path_WHICH="$as_dir/$ac_word$ac_exec_ext" 12734 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12735 break 2 12736 fi 12737 done 12738 done 12739 IFS=$as_save_IFS 12740 12741 ;; 12742 esac 12743 fi 12744 WHICH=$ac_cv_path_WHICH 12745 if test -n "$WHICH"; then 12746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WHICH" >&5 12747 $as_echo "$WHICH" >&6; } 12748 else 12749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12750 $as_echo "no" >&6; } 12751 fi 12752 12753 12754 test -n "$WHICH" && break 12755 done 12756 12757 else 12758 # The variable is set, but is it from the command line or the environment? 12759 12760 # Try to remove the string !WHICH! from our list. 12761 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!WHICH!/} 12762 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 12763 # If it failed, the variable was not from the command line. Ignore it, 12764 # but warn the user (except for BASH, which is always set by the calling BASH). 12765 if test "xWHICH" != xBASH; then 12766 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of WHICH from the environment. Use command line variables instead." >&5 12767 $as_echo "$as_me: WARNING: Ignoring value of WHICH from the environment. Use command line variables instead." >&2;} 12768 fi 12769 # Try to locate tool using the code snippet 12770 for ac_prog in which 12771 do 12772 # Extract the first word of "$ac_prog", so it can be a program name with args. 12773 set dummy $ac_prog; ac_word=$2 12774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12775 $as_echo_n "checking for $ac_word... " >&6; } 12776 if ${ac_cv_path_WHICH+:} false; then : 12777 $as_echo_n "(cached) " >&6 12778 else 12779 case $WHICH in 12780 [\\/]* | ?:[\\/]*) 12781 ac_cv_path_WHICH="$WHICH" # Let the user override the test with a path. 12782 ;; 12783 *) 12784 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12785 for as_dir in $PATH 12786 do 12787 IFS=$as_save_IFS 12788 test -z "$as_dir" && as_dir=. 12789 for ac_exec_ext in '' $ac_executable_extensions; do 12790 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12791 ac_cv_path_WHICH="$as_dir/$ac_word$ac_exec_ext" 12792 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12793 break 2 12794 fi 12795 done 12796 done 12797 IFS=$as_save_IFS 12798 12799 ;; 12800 esac 12801 fi 12802 WHICH=$ac_cv_path_WHICH 12803 if test -n "$WHICH"; then 12804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WHICH" >&5 12805 $as_echo "$WHICH" >&6; } 12806 else 12807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12808 $as_echo "no" >&6; } 12809 fi 12810 12811 12812 test -n "$WHICH" && break 12813 done 12814 12815 else 12816 # If it succeeded, then it was overridden by the user. We will use it 12817 # for the tool. 12818 12819 # First remove it from the list of overridden variables, so we can test 12820 # for unknown variables in the end. 12821 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 12822 12823 # Check if we try to supply an empty value 12824 if test "x$WHICH" = x; then 12825 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool WHICH= (no value)" >&5 12826 $as_echo "$as_me: Setting user supplied tool WHICH= (no value)" >&6;} 12827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WHICH" >&5 12828 $as_echo_n "checking for WHICH... " >&6; } 12829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 12830 $as_echo "disabled" >&6; } 12831 else 12832 # Check if the provided tool contains a complete path. 12833 tool_specified="$WHICH" 12834 tool_basename="${tool_specified##*/}" 12835 if test "x$tool_basename" = "x$tool_specified"; then 12836 # A command without a complete path is provided, search $PATH. 12837 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool WHICH=$tool_basename" >&5 12838 $as_echo "$as_me: Will search for user supplied tool WHICH=$tool_basename" >&6;} 12839 # Extract the first word of "$tool_basename", so it can be a program name with args. 12840 set dummy $tool_basename; ac_word=$2 12841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12842 $as_echo_n "checking for $ac_word... " >&6; } 12843 if ${ac_cv_path_WHICH+:} false; then : 12844 $as_echo_n "(cached) " >&6 12845 else 12846 case $WHICH in 12847 [\\/]* | ?:[\\/]*) 12848 ac_cv_path_WHICH="$WHICH" # Let the user override the test with a path. 12849 ;; 12850 *) 12851 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12852 for as_dir in $PATH 12853 do 12854 IFS=$as_save_IFS 12855 test -z "$as_dir" && as_dir=. 12856 for ac_exec_ext in '' $ac_executable_extensions; do 12857 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12858 ac_cv_path_WHICH="$as_dir/$ac_word$ac_exec_ext" 12859 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12860 break 2 12861 fi 12862 done 12863 done 12864 IFS=$as_save_IFS 12865 12866 ;; 12867 esac 12868 fi 12869 WHICH=$ac_cv_path_WHICH 12870 if test -n "$WHICH"; then 12871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WHICH" >&5 12872 $as_echo "$WHICH" >&6; } 12873 else 12874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12875 $as_echo "no" >&6; } 12876 fi 12877 12878 12879 if test "x$WHICH" = x; then 12880 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 12881 fi 12882 else 12883 # Otherwise we believe it is a complete path. Use it as it is. 12884 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool WHICH=$tool_specified" >&5 12885 $as_echo "$as_me: Will use user supplied tool WHICH=$tool_specified" >&6;} 12886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WHICH" >&5 12887 $as_echo_n "checking for WHICH... " >&6; } 12888 if test ! -x "$tool_specified"; then 12889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 12890 $as_echo "not found" >&6; } 12891 as_fn_error $? "User supplied tool WHICH=$tool_specified does not exist or is not executable" "$LINENO" 5 12892 fi 12893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 12894 $as_echo "$tool_specified" >&6; } 12895 fi 12896 fi 12897 fi 12898 12899 fi 12900 12901 12902 12903 if test "x$WHICH" = x; then 12904 as_fn_error $? "Could not find required tool for WHICH" "$LINENO" 5 12905 fi 12906 12907 12908 12909 12910 12911 # Publish this variable in the help. 12912 12913 12914 if [ -z "${XARGS+x}" ]; then 12915 # The variable is not set by user, try to locate tool using the code snippet 12916 for ac_prog in xargs 12917 do 12918 # Extract the first word of "$ac_prog", so it can be a program name with args. 12919 set dummy $ac_prog; ac_word=$2 12920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12921 $as_echo_n "checking for $ac_word... " >&6; } 12922 if ${ac_cv_path_XARGS+:} false; then : 12923 $as_echo_n "(cached) " >&6 12924 else 12925 case $XARGS in 12926 [\\/]* | ?:[\\/]*) 12927 ac_cv_path_XARGS="$XARGS" # Let the user override the test with a path. 12928 ;; 12929 *) 12930 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12931 for as_dir in $PATH 12932 do 12933 IFS=$as_save_IFS 12934 test -z "$as_dir" && as_dir=. 12935 for ac_exec_ext in '' $ac_executable_extensions; do 12936 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12937 ac_cv_path_XARGS="$as_dir/$ac_word$ac_exec_ext" 12938 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12939 break 2 12940 fi 12941 done 12942 done 12943 IFS=$as_save_IFS 12944 12945 ;; 12946 esac 12947 fi 12948 XARGS=$ac_cv_path_XARGS 12949 if test -n "$XARGS"; then 12950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XARGS" >&5 12951 $as_echo "$XARGS" >&6; } 12952 else 12953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12954 $as_echo "no" >&6; } 12955 fi 12956 12957 12958 test -n "$XARGS" && break 12959 done 12960 12961 else 12962 # The variable is set, but is it from the command line or the environment? 12963 12964 # Try to remove the string !XARGS! from our list. 12965 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!XARGS!/} 12966 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 12967 # If it failed, the variable was not from the command line. Ignore it, 12968 # but warn the user (except for BASH, which is always set by the calling BASH). 12969 if test "xXARGS" != xBASH; then 12970 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of XARGS from the environment. Use command line variables instead." >&5 12971 $as_echo "$as_me: WARNING: Ignoring value of XARGS from the environment. Use command line variables instead." >&2;} 12972 fi 12973 # Try to locate tool using the code snippet 12974 for ac_prog in xargs 12975 do 12976 # Extract the first word of "$ac_prog", so it can be a program name with args. 12977 set dummy $ac_prog; ac_word=$2 12978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12979 $as_echo_n "checking for $ac_word... " >&6; } 12980 if ${ac_cv_path_XARGS+:} false; then : 12981 $as_echo_n "(cached) " >&6 12982 else 12983 case $XARGS in 12984 [\\/]* | ?:[\\/]*) 12985 ac_cv_path_XARGS="$XARGS" # Let the user override the test with a path. 12986 ;; 12987 *) 12988 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12989 for as_dir in $PATH 12990 do 12991 IFS=$as_save_IFS 12992 test -z "$as_dir" && as_dir=. 12993 for ac_exec_ext in '' $ac_executable_extensions; do 12994 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12995 ac_cv_path_XARGS="$as_dir/$ac_word$ac_exec_ext" 12996 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12997 break 2 12998 fi 12999 done 13000 done 13001 IFS=$as_save_IFS 13002 13003 ;; 13004 esac 13005 fi 13006 XARGS=$ac_cv_path_XARGS 13007 if test -n "$XARGS"; then 13008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XARGS" >&5 13009 $as_echo "$XARGS" >&6; } 13010 else 13011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13012 $as_echo "no" >&6; } 13013 fi 13014 13015 13016 test -n "$XARGS" && break 13017 done 13018 13019 else 13020 # If it succeeded, then it was overridden by the user. We will use it 13021 # for the tool. 13022 13023 # First remove it from the list of overridden variables, so we can test 13024 # for unknown variables in the end. 13025 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 13026 13027 # Check if we try to supply an empty value 13028 if test "x$XARGS" = x; then 13029 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool XARGS= (no value)" >&5 13030 $as_echo "$as_me: Setting user supplied tool XARGS= (no value)" >&6;} 13031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XARGS" >&5 13032 $as_echo_n "checking for XARGS... " >&6; } 13033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 13034 $as_echo "disabled" >&6; } 13035 else 13036 # Check if the provided tool contains a complete path. 13037 tool_specified="$XARGS" 13038 tool_basename="${tool_specified##*/}" 13039 if test "x$tool_basename" = "x$tool_specified"; then 13040 # A command without a complete path is provided, search $PATH. 13041 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool XARGS=$tool_basename" >&5 13042 $as_echo "$as_me: Will search for user supplied tool XARGS=$tool_basename" >&6;} 13043 # Extract the first word of "$tool_basename", so it can be a program name with args. 13044 set dummy $tool_basename; ac_word=$2 13045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13046 $as_echo_n "checking for $ac_word... " >&6; } 13047 if ${ac_cv_path_XARGS+:} false; then : 13048 $as_echo_n "(cached) " >&6 13049 else 13050 case $XARGS in 13051 [\\/]* | ?:[\\/]*) 13052 ac_cv_path_XARGS="$XARGS" # Let the user override the test with a path. 13053 ;; 13054 *) 13055 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13056 for as_dir in $PATH 13057 do 13058 IFS=$as_save_IFS 13059 test -z "$as_dir" && as_dir=. 13060 for ac_exec_ext in '' $ac_executable_extensions; do 13061 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13062 ac_cv_path_XARGS="$as_dir/$ac_word$ac_exec_ext" 13063 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13064 break 2 13065 fi 13066 done 13067 done 13068 IFS=$as_save_IFS 13069 13070 ;; 13071 esac 13072 fi 13073 XARGS=$ac_cv_path_XARGS 13074 if test -n "$XARGS"; then 13075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XARGS" >&5 13076 $as_echo "$XARGS" >&6; } 13077 else 13078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13079 $as_echo "no" >&6; } 13080 fi 13081 13082 13083 if test "x$XARGS" = x; then 13084 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 13085 fi 13086 else 13087 # Otherwise we believe it is a complete path. Use it as it is. 13088 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool XARGS=$tool_specified" >&5 13089 $as_echo "$as_me: Will use user supplied tool XARGS=$tool_specified" >&6;} 13090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XARGS" >&5 13091 $as_echo_n "checking for XARGS... " >&6; } 13092 if test ! -x "$tool_specified"; then 13093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 13094 $as_echo "not found" >&6; } 13095 as_fn_error $? "User supplied tool XARGS=$tool_specified does not exist or is not executable" "$LINENO" 5 13096 fi 13097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 13098 $as_echo "$tool_specified" >&6; } 13099 fi 13100 fi 13101 fi 13102 13103 fi 13104 13105 13106 13107 if test "x$XARGS" = x; then 13108 as_fn_error $? "Could not find required tool for XARGS" "$LINENO" 5 13109 fi 13110 13111 13112 13113 # Then required tools that require some special treatment. 13114 13115 13116 # Publish this variable in the help. 13117 13118 13119 if [ -z "${AWK+x}" ]; then 13120 # The variable is not set by user, try to locate tool using the code snippet 13121 for ac_prog in gawk mawk nawk awk 13122 do 13123 # Extract the first word of "$ac_prog", so it can be a program name with args. 13124 set dummy $ac_prog; ac_word=$2 13125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13126 $as_echo_n "checking for $ac_word... " >&6; } 13127 if ${ac_cv_prog_AWK+:} false; then : 13128 $as_echo_n "(cached) " >&6 13129 else 13130 if test -n "$AWK"; then 13131 ac_cv_prog_AWK="$AWK" # Let the user override the test. 13132 else 13133 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13134 for as_dir in $PATH 13135 do 13136 IFS=$as_save_IFS 13137 test -z "$as_dir" && as_dir=. 13138 for ac_exec_ext in '' $ac_executable_extensions; do 13139 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13140 ac_cv_prog_AWK="$ac_prog" 13141 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13142 break 2 13143 fi 13144 done 13145 done 13146 IFS=$as_save_IFS 13147 13148 fi 13149 fi 13150 AWK=$ac_cv_prog_AWK 13151 if test -n "$AWK"; then 13152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 13153 $as_echo "$AWK" >&6; } 13154 else 13155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13156 $as_echo "no" >&6; } 13157 fi 13158 13159 13160 test -n "$AWK" && break 13161 done 13162 13163 else 13164 # The variable is set, but is it from the command line or the environment? 13165 13166 # Try to remove the string !AWK! from our list. 13167 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!AWK!/} 13168 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 13169 # If it failed, the variable was not from the command line. Ignore it, 13170 # but warn the user (except for BASH, which is always set by the calling BASH). 13171 if test "xAWK" != xBASH; then 13172 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of AWK from the environment. Use command line variables instead." >&5 13173 $as_echo "$as_me: WARNING: Ignoring value of AWK from the environment. Use command line variables instead." >&2;} 13174 fi 13175 # Try to locate tool using the code snippet 13176 for ac_prog in gawk mawk nawk awk 13177 do 13178 # Extract the first word of "$ac_prog", so it can be a program name with args. 13179 set dummy $ac_prog; ac_word=$2 13180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13181 $as_echo_n "checking for $ac_word... " >&6; } 13182 if ${ac_cv_prog_AWK+:} false; then : 13183 $as_echo_n "(cached) " >&6 13184 else 13185 if test -n "$AWK"; then 13186 ac_cv_prog_AWK="$AWK" # Let the user override the test. 13187 else 13188 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13189 for as_dir in $PATH 13190 do 13191 IFS=$as_save_IFS 13192 test -z "$as_dir" && as_dir=. 13193 for ac_exec_ext in '' $ac_executable_extensions; do 13194 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13195 ac_cv_prog_AWK="$ac_prog" 13196 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13197 break 2 13198 fi 13199 done 13200 done 13201 IFS=$as_save_IFS 13202 13203 fi 13204 fi 13205 AWK=$ac_cv_prog_AWK 13206 if test -n "$AWK"; then 13207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 13208 $as_echo "$AWK" >&6; } 13209 else 13210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13211 $as_echo "no" >&6; } 13212 fi 13213 13214 13215 test -n "$AWK" && break 13216 done 13217 13218 else 13219 # If it succeeded, then it was overridden by the user. We will use it 13220 # for the tool. 13221 13222 # First remove it from the list of overridden variables, so we can test 13223 # for unknown variables in the end. 13224 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 13225 13226 # Check if we try to supply an empty value 13227 if test "x$AWK" = x; then 13228 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool AWK= (no value)" >&5 13229 $as_echo "$as_me: Setting user supplied tool AWK= (no value)" >&6;} 13230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AWK" >&5 13231 $as_echo_n "checking for AWK... " >&6; } 13232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 13233 $as_echo "disabled" >&6; } 13234 else 13235 # Check if the provided tool contains a complete path. 13236 tool_specified="$AWK" 13237 tool_basename="${tool_specified##*/}" 13238 if test "x$tool_basename" = "x$tool_specified"; then 13239 # A command without a complete path is provided, search $PATH. 13240 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool AWK=$tool_basename" >&5 13241 $as_echo "$as_me: Will search for user supplied tool AWK=$tool_basename" >&6;} 13242 # Extract the first word of "$tool_basename", so it can be a program name with args. 13243 set dummy $tool_basename; ac_word=$2 13244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13245 $as_echo_n "checking for $ac_word... " >&6; } 13246 if ${ac_cv_path_AWK+:} false; then : 13247 $as_echo_n "(cached) " >&6 13248 else 13249 case $AWK in 13250 [\\/]* | ?:[\\/]*) 13251 ac_cv_path_AWK="$AWK" # Let the user override the test with a path. 13252 ;; 13253 *) 13254 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13255 for as_dir in $PATH 13256 do 13257 IFS=$as_save_IFS 13258 test -z "$as_dir" && as_dir=. 13259 for ac_exec_ext in '' $ac_executable_extensions; do 13260 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13261 ac_cv_path_AWK="$as_dir/$ac_word$ac_exec_ext" 13262 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13263 break 2 13264 fi 13265 done 13266 done 13267 IFS=$as_save_IFS 13268 13269 ;; 13270 esac 13271 fi 13272 AWK=$ac_cv_path_AWK 13273 if test -n "$AWK"; then 13274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 13275 $as_echo "$AWK" >&6; } 13276 else 13277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13278 $as_echo "no" >&6; } 13279 fi 13280 13281 13282 if test "x$AWK" = x; then 13283 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 13284 fi 13285 else 13286 # Otherwise we believe it is a complete path. Use it as it is. 13287 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool AWK=$tool_specified" >&5 13288 $as_echo "$as_me: Will use user supplied tool AWK=$tool_specified" >&6;} 13289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AWK" >&5 13290 $as_echo_n "checking for AWK... " >&6; } 13291 if test ! -x "$tool_specified"; then 13292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 13293 $as_echo "not found" >&6; } 13294 as_fn_error $? "User supplied tool AWK=$tool_specified does not exist or is not executable" "$LINENO" 5 13295 fi 13296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 13297 $as_echo "$tool_specified" >&6; } 13298 fi 13299 fi 13300 fi 13301 13302 fi 13303 13304 13305 if test "x$AWK" = x; then 13306 as_fn_error $? "Could not find required tool for AWK" "$LINENO" 5 13307 fi 13308 13309 13310 13311 13312 # Publish this variable in the help. 13313 13314 13315 if [ -z "${GREP+x}" ]; then 13316 # The variable is not set by user, try to locate tool using the code snippet 13317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 13318 $as_echo_n "checking for grep that handles long lines and -e... " >&6; } 13319 if ${ac_cv_path_GREP+:} false; then : 13320 $as_echo_n "(cached) " >&6 13321 else 13322 if test -z "$GREP"; then 13323 ac_path_GREP_found=false 13324 # Loop through the user's path and test for each of PROGNAME-LIST 13325 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13326 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 13327 do 13328 IFS=$as_save_IFS 13329 test -z "$as_dir" && as_dir=. 13330 for ac_prog in grep ggrep; do 13331 for ac_exec_ext in '' $ac_executable_extensions; do 13332 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 13333 as_fn_executable_p "$ac_path_GREP" || continue 13334 # Check for GNU ac_path_GREP and select it if it is found. 13335 # Check for GNU $ac_path_GREP 13336 case `"$ac_path_GREP" --version 2>&1` in 13337 *GNU*) 13338 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 13339 *) 13340 ac_count=0 13341 $as_echo_n 0123456789 >"conftest.in" 13342 while : 13343 do 13344 cat "conftest.in" "conftest.in" >"conftest.tmp" 13345 mv "conftest.tmp" "conftest.in" 13346 cp "conftest.in" "conftest.nl" 13347 $as_echo 'GREP' >> "conftest.nl" 13348 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 13349 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 13350 as_fn_arith $ac_count + 1 && ac_count=$as_val 13351 if test $ac_count -gt ${ac_path_GREP_max-0}; then 13352 # Best one so far, save it but keep looking for a better one 13353 ac_cv_path_GREP="$ac_path_GREP" 13354 ac_path_GREP_max=$ac_count 13355 fi 13356 # 10*(2^10) chars as input seems more than enough 13357 test $ac_count -gt 10 && break 13358 done 13359 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 13360 esac 13361 13362 $ac_path_GREP_found && break 3 13363 done 13364 done 13365 done 13366 IFS=$as_save_IFS 13367 if test -z "$ac_cv_path_GREP"; then 13368 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 13369 fi 13370 else 13371 ac_cv_path_GREP=$GREP 13372 fi 13373 13374 fi 13375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 13376 $as_echo "$ac_cv_path_GREP" >&6; } 13377 GREP="$ac_cv_path_GREP" 13378 13379 13380 else 13381 # The variable is set, but is it from the command line or the environment? 13382 13383 # Try to remove the string !GREP! from our list. 13384 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!GREP!/} 13385 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 13386 # If it failed, the variable was not from the command line. Ignore it, 13387 # but warn the user (except for BASH, which is always set by the calling BASH). 13388 if test "xGREP" != xBASH; then 13389 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of GREP from the environment. Use command line variables instead." >&5 13390 $as_echo "$as_me: WARNING: Ignoring value of GREP from the environment. Use command line variables instead." >&2;} 13391 fi 13392 # Try to locate tool using the code snippet 13393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 13394 $as_echo_n "checking for grep that handles long lines and -e... " >&6; } 13395 if ${ac_cv_path_GREP+:} false; then : 13396 $as_echo_n "(cached) " >&6 13397 else 13398 if test -z "$GREP"; then 13399 ac_path_GREP_found=false 13400 # Loop through the user's path and test for each of PROGNAME-LIST 13401 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13402 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 13403 do 13404 IFS=$as_save_IFS 13405 test -z "$as_dir" && as_dir=. 13406 for ac_prog in grep ggrep; do 13407 for ac_exec_ext in '' $ac_executable_extensions; do 13408 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 13409 as_fn_executable_p "$ac_path_GREP" || continue 13410 # Check for GNU ac_path_GREP and select it if it is found. 13411 # Check for GNU $ac_path_GREP 13412 case `"$ac_path_GREP" --version 2>&1` in 13413 *GNU*) 13414 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 13415 *) 13416 ac_count=0 13417 $as_echo_n 0123456789 >"conftest.in" 13418 while : 13419 do 13420 cat "conftest.in" "conftest.in" >"conftest.tmp" 13421 mv "conftest.tmp" "conftest.in" 13422 cp "conftest.in" "conftest.nl" 13423 $as_echo 'GREP' >> "conftest.nl" 13424 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 13425 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 13426 as_fn_arith $ac_count + 1 && ac_count=$as_val 13427 if test $ac_count -gt ${ac_path_GREP_max-0}; then 13428 # Best one so far, save it but keep looking for a better one 13429 ac_cv_path_GREP="$ac_path_GREP" 13430 ac_path_GREP_max=$ac_count 13431 fi 13432 # 10*(2^10) chars as input seems more than enough 13433 test $ac_count -gt 10 && break 13434 done 13435 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 13436 esac 13437 13438 $ac_path_GREP_found && break 3 13439 done 13440 done 13441 done 13442 IFS=$as_save_IFS 13443 if test -z "$ac_cv_path_GREP"; then 13444 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 13445 fi 13446 else 13447 ac_cv_path_GREP=$GREP 13448 fi 13449 13450 fi 13451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 13452 $as_echo "$ac_cv_path_GREP" >&6; } 13453 GREP="$ac_cv_path_GREP" 13454 13455 13456 else 13457 # If it succeeded, then it was overridden by the user. We will use it 13458 # for the tool. 13459 13460 # First remove it from the list of overridden variables, so we can test 13461 # for unknown variables in the end. 13462 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 13463 13464 # Check if we try to supply an empty value 13465 if test "x$GREP" = x; then 13466 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool GREP= (no value)" >&5 13467 $as_echo "$as_me: Setting user supplied tool GREP= (no value)" >&6;} 13468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GREP" >&5 13469 $as_echo_n "checking for GREP... " >&6; } 13470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 13471 $as_echo "disabled" >&6; } 13472 else 13473 # Check if the provided tool contains a complete path. 13474 tool_specified="$GREP" 13475 tool_basename="${tool_specified##*/}" 13476 if test "x$tool_basename" = "x$tool_specified"; then 13477 # A command without a complete path is provided, search $PATH. 13478 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool GREP=$tool_basename" >&5 13479 $as_echo "$as_me: Will search for user supplied tool GREP=$tool_basename" >&6;} 13480 # Extract the first word of "$tool_basename", so it can be a program name with args. 13481 set dummy $tool_basename; ac_word=$2 13482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13483 $as_echo_n "checking for $ac_word... " >&6; } 13484 if ${ac_cv_path_GREP+:} false; then : 13485 $as_echo_n "(cached) " >&6 13486 else 13487 case $GREP in 13488 [\\/]* | ?:[\\/]*) 13489 ac_cv_path_GREP="$GREP" # Let the user override the test with a path. 13490 ;; 13491 *) 13492 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13493 for as_dir in $PATH 13494 do 13495 IFS=$as_save_IFS 13496 test -z "$as_dir" && as_dir=. 13497 for ac_exec_ext in '' $ac_executable_extensions; do 13498 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13499 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext" 13500 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13501 break 2 13502 fi 13503 done 13504 done 13505 IFS=$as_save_IFS 13506 13507 ;; 13508 esac 13509 fi 13510 GREP=$ac_cv_path_GREP 13511 if test -n "$GREP"; then 13512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GREP" >&5 13513 $as_echo "$GREP" >&6; } 13514 else 13515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13516 $as_echo "no" >&6; } 13517 fi 13518 13519 13520 if test "x$GREP" = x; then 13521 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 13522 fi 13523 else 13524 # Otherwise we believe it is a complete path. Use it as it is. 13525 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool GREP=$tool_specified" >&5 13526 $as_echo "$as_me: Will use user supplied tool GREP=$tool_specified" >&6;} 13527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GREP" >&5 13528 $as_echo_n "checking for GREP... " >&6; } 13529 if test ! -x "$tool_specified"; then 13530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 13531 $as_echo "not found" >&6; } 13532 as_fn_error $? "User supplied tool GREP=$tool_specified does not exist or is not executable" "$LINENO" 5 13533 fi 13534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 13535 $as_echo "$tool_specified" >&6; } 13536 fi 13537 fi 13538 fi 13539 13540 fi 13541 13542 13543 if test "x$GREP" = x; then 13544 as_fn_error $? "Could not find required tool for GREP" "$LINENO" 5 13545 fi 13546 13547 13548 13549 13550 # Publish this variable in the help. 13551 13552 13553 if [ -z "${EGREP+x}" ]; then 13554 # The variable is not set by user, try to locate tool using the code snippet 13555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 13556 $as_echo_n "checking for egrep... " >&6; } 13557 if ${ac_cv_path_EGREP+:} false; then : 13558 $as_echo_n "(cached) " >&6 13559 else 13560 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 13561 then ac_cv_path_EGREP="$GREP -E" 13562 else 13563 if test -z "$EGREP"; then 13564 ac_path_EGREP_found=false 13565 # Loop through the user's path and test for each of PROGNAME-LIST 13566 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13567 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 13568 do 13569 IFS=$as_save_IFS 13570 test -z "$as_dir" && as_dir=. 13571 for ac_prog in egrep; do 13572 for ac_exec_ext in '' $ac_executable_extensions; do 13573 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 13574 as_fn_executable_p "$ac_path_EGREP" || continue 13575 # Check for GNU ac_path_EGREP and select it if it is found. 13576 # Check for GNU $ac_path_EGREP 13577 case `"$ac_path_EGREP" --version 2>&1` in 13578 *GNU*) 13579 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 13580 *) 13581 ac_count=0 13582 $as_echo_n 0123456789 >"conftest.in" 13583 while : 13584 do 13585 cat "conftest.in" "conftest.in" >"conftest.tmp" 13586 mv "conftest.tmp" "conftest.in" 13587 cp "conftest.in" "conftest.nl" 13588 $as_echo 'EGREP' >> "conftest.nl" 13589 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 13590 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 13591 as_fn_arith $ac_count + 1 && ac_count=$as_val 13592 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 13593 # Best one so far, save it but keep looking for a better one 13594 ac_cv_path_EGREP="$ac_path_EGREP" 13595 ac_path_EGREP_max=$ac_count 13596 fi 13597 # 10*(2^10) chars as input seems more than enough 13598 test $ac_count -gt 10 && break 13599 done 13600 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 13601 esac 13602 13603 $ac_path_EGREP_found && break 3 13604 done 13605 done 13606 done 13607 IFS=$as_save_IFS 13608 if test -z "$ac_cv_path_EGREP"; then 13609 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 13610 fi 13611 else 13612 ac_cv_path_EGREP=$EGREP 13613 fi 13614 13615 fi 13616 fi 13617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 13618 $as_echo "$ac_cv_path_EGREP" >&6; } 13619 EGREP="$ac_cv_path_EGREP" 13620 13621 13622 else 13623 # The variable is set, but is it from the command line or the environment? 13624 13625 # Try to remove the string !EGREP! from our list. 13626 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!EGREP!/} 13627 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 13628 # If it failed, the variable was not from the command line. Ignore it, 13629 # but warn the user (except for BASH, which is always set by the calling BASH). 13630 if test "xEGREP" != xBASH; then 13631 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of EGREP from the environment. Use command line variables instead." >&5 13632 $as_echo "$as_me: WARNING: Ignoring value of EGREP from the environment. Use command line variables instead." >&2;} 13633 fi 13634 # Try to locate tool using the code snippet 13635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 13636 $as_echo_n "checking for egrep... " >&6; } 13637 if ${ac_cv_path_EGREP+:} false; then : 13638 $as_echo_n "(cached) " >&6 13639 else 13640 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 13641 then ac_cv_path_EGREP="$GREP -E" 13642 else 13643 if test -z "$EGREP"; then 13644 ac_path_EGREP_found=false 13645 # Loop through the user's path and test for each of PROGNAME-LIST 13646 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13647 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 13648 do 13649 IFS=$as_save_IFS 13650 test -z "$as_dir" && as_dir=. 13651 for ac_prog in egrep; do 13652 for ac_exec_ext in '' $ac_executable_extensions; do 13653 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 13654 as_fn_executable_p "$ac_path_EGREP" || continue 13655 # Check for GNU ac_path_EGREP and select it if it is found. 13656 # Check for GNU $ac_path_EGREP 13657 case `"$ac_path_EGREP" --version 2>&1` in 13658 *GNU*) 13659 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 13660 *) 13661 ac_count=0 13662 $as_echo_n 0123456789 >"conftest.in" 13663 while : 13664 do 13665 cat "conftest.in" "conftest.in" >"conftest.tmp" 13666 mv "conftest.tmp" "conftest.in" 13667 cp "conftest.in" "conftest.nl" 13668 $as_echo 'EGREP' >> "conftest.nl" 13669 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 13670 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 13671 as_fn_arith $ac_count + 1 && ac_count=$as_val 13672 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 13673 # Best one so far, save it but keep looking for a better one 13674 ac_cv_path_EGREP="$ac_path_EGREP" 13675 ac_path_EGREP_max=$ac_count 13676 fi 13677 # 10*(2^10) chars as input seems more than enough 13678 test $ac_count -gt 10 && break 13679 done 13680 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 13681 esac 13682 13683 $ac_path_EGREP_found && break 3 13684 done 13685 done 13686 done 13687 IFS=$as_save_IFS 13688 if test -z "$ac_cv_path_EGREP"; then 13689 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 13690 fi 13691 else 13692 ac_cv_path_EGREP=$EGREP 13693 fi 13694 13695 fi 13696 fi 13697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 13698 $as_echo "$ac_cv_path_EGREP" >&6; } 13699 EGREP="$ac_cv_path_EGREP" 13700 13701 13702 else 13703 # If it succeeded, then it was overridden by the user. We will use it 13704 # for the tool. 13705 13706 # First remove it from the list of overridden variables, so we can test 13707 # for unknown variables in the end. 13708 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 13709 13710 # Check if we try to supply an empty value 13711 if test "x$EGREP" = x; then 13712 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool EGREP= (no value)" >&5 13713 $as_echo "$as_me: Setting user supplied tool EGREP= (no value)" >&6;} 13714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGREP" >&5 13715 $as_echo_n "checking for EGREP... " >&6; } 13716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 13717 $as_echo "disabled" >&6; } 13718 else 13719 # Check if the provided tool contains a complete path. 13720 tool_specified="$EGREP" 13721 tool_basename="${tool_specified##*/}" 13722 if test "x$tool_basename" = "x$tool_specified"; then 13723 # A command without a complete path is provided, search $PATH. 13724 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool EGREP=$tool_basename" >&5 13725 $as_echo "$as_me: Will search for user supplied tool EGREP=$tool_basename" >&6;} 13726 # Extract the first word of "$tool_basename", so it can be a program name with args. 13727 set dummy $tool_basename; ac_word=$2 13728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13729 $as_echo_n "checking for $ac_word... " >&6; } 13730 if ${ac_cv_path_EGREP+:} false; then : 13731 $as_echo_n "(cached) " >&6 13732 else 13733 case $EGREP in 13734 [\\/]* | ?:[\\/]*) 13735 ac_cv_path_EGREP="$EGREP" # Let the user override the test with a path. 13736 ;; 13737 *) 13738 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13739 for as_dir in $PATH 13740 do 13741 IFS=$as_save_IFS 13742 test -z "$as_dir" && as_dir=. 13743 for ac_exec_ext in '' $ac_executable_extensions; do 13744 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13745 ac_cv_path_EGREP="$as_dir/$ac_word$ac_exec_ext" 13746 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13747 break 2 13748 fi 13749 done 13750 done 13751 IFS=$as_save_IFS 13752 13753 ;; 13754 esac 13755 fi 13756 EGREP=$ac_cv_path_EGREP 13757 if test -n "$EGREP"; then 13758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EGREP" >&5 13759 $as_echo "$EGREP" >&6; } 13760 else 13761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13762 $as_echo "no" >&6; } 13763 fi 13764 13765 13766 if test "x$EGREP" = x; then 13767 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 13768 fi 13769 else 13770 # Otherwise we believe it is a complete path. Use it as it is. 13771 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool EGREP=$tool_specified" >&5 13772 $as_echo "$as_me: Will use user supplied tool EGREP=$tool_specified" >&6;} 13773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGREP" >&5 13774 $as_echo_n "checking for EGREP... " >&6; } 13775 if test ! -x "$tool_specified"; then 13776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 13777 $as_echo "not found" >&6; } 13778 as_fn_error $? "User supplied tool EGREP=$tool_specified does not exist or is not executable" "$LINENO" 5 13779 fi 13780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 13781 $as_echo "$tool_specified" >&6; } 13782 fi 13783 fi 13784 fi 13785 13786 fi 13787 13788 13789 if test "x$EGREP" = x; then 13790 as_fn_error $? "Could not find required tool for EGREP" "$LINENO" 5 13791 fi 13792 13793 13794 13795 13796 # Publish this variable in the help. 13797 13798 13799 if [ -z "${FGREP+x}" ]; then 13800 # The variable is not set by user, try to locate tool using the code snippet 13801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 13802 $as_echo_n "checking for fgrep... " >&6; } 13803 if ${ac_cv_path_FGREP+:} false; then : 13804 $as_echo_n "(cached) " >&6 13805 else 13806 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 13807 then ac_cv_path_FGREP="$GREP -F" 13808 else 13809 if test -z "$FGREP"; then 13810 ac_path_FGREP_found=false 13811 # Loop through the user's path and test for each of PROGNAME-LIST 13812 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13813 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 13814 do 13815 IFS=$as_save_IFS 13816 test -z "$as_dir" && as_dir=. 13817 for ac_prog in fgrep; do 13818 for ac_exec_ext in '' $ac_executable_extensions; do 13819 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" 13820 as_fn_executable_p "$ac_path_FGREP" || continue 13821 # Check for GNU ac_path_FGREP and select it if it is found. 13822 # Check for GNU $ac_path_FGREP 13823 case `"$ac_path_FGREP" --version 2>&1` in 13824 *GNU*) 13825 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 13826 *) 13827 ac_count=0 13828 $as_echo_n 0123456789 >"conftest.in" 13829 while : 13830 do 13831 cat "conftest.in" "conftest.in" >"conftest.tmp" 13832 mv "conftest.tmp" "conftest.in" 13833 cp "conftest.in" "conftest.nl" 13834 $as_echo 'FGREP' >> "conftest.nl" 13835 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 13836 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 13837 as_fn_arith $ac_count + 1 && ac_count=$as_val 13838 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 13839 # Best one so far, save it but keep looking for a better one 13840 ac_cv_path_FGREP="$ac_path_FGREP" 13841 ac_path_FGREP_max=$ac_count 13842 fi 13843 # 10*(2^10) chars as input seems more than enough 13844 test $ac_count -gt 10 && break 13845 done 13846 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 13847 esac 13848 13849 $ac_path_FGREP_found && break 3 13850 done 13851 done 13852 done 13853 IFS=$as_save_IFS 13854 if test -z "$ac_cv_path_FGREP"; then 13855 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 13856 fi 13857 else 13858 ac_cv_path_FGREP=$FGREP 13859 fi 13860 13861 fi 13862 fi 13863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 13864 $as_echo "$ac_cv_path_FGREP" >&6; } 13865 FGREP="$ac_cv_path_FGREP" 13866 13867 13868 else 13869 # The variable is set, but is it from the command line or the environment? 13870 13871 # Try to remove the string !FGREP! from our list. 13872 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!FGREP!/} 13873 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 13874 # If it failed, the variable was not from the command line. Ignore it, 13875 # but warn the user (except for BASH, which is always set by the calling BASH). 13876 if test "xFGREP" != xBASH; then 13877 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of FGREP from the environment. Use command line variables instead." >&5 13878 $as_echo "$as_me: WARNING: Ignoring value of FGREP from the environment. Use command line variables instead." >&2;} 13879 fi 13880 # Try to locate tool using the code snippet 13881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 13882 $as_echo_n "checking for fgrep... " >&6; } 13883 if ${ac_cv_path_FGREP+:} false; then : 13884 $as_echo_n "(cached) " >&6 13885 else 13886 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 13887 then ac_cv_path_FGREP="$GREP -F" 13888 else 13889 if test -z "$FGREP"; then 13890 ac_path_FGREP_found=false 13891 # Loop through the user's path and test for each of PROGNAME-LIST 13892 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13893 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 13894 do 13895 IFS=$as_save_IFS 13896 test -z "$as_dir" && as_dir=. 13897 for ac_prog in fgrep; do 13898 for ac_exec_ext in '' $ac_executable_extensions; do 13899 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" 13900 as_fn_executable_p "$ac_path_FGREP" || continue 13901 # Check for GNU ac_path_FGREP and select it if it is found. 13902 # Check for GNU $ac_path_FGREP 13903 case `"$ac_path_FGREP" --version 2>&1` in 13904 *GNU*) 13905 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 13906 *) 13907 ac_count=0 13908 $as_echo_n 0123456789 >"conftest.in" 13909 while : 13910 do 13911 cat "conftest.in" "conftest.in" >"conftest.tmp" 13912 mv "conftest.tmp" "conftest.in" 13913 cp "conftest.in" "conftest.nl" 13914 $as_echo 'FGREP' >> "conftest.nl" 13915 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 13916 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 13917 as_fn_arith $ac_count + 1 && ac_count=$as_val 13918 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 13919 # Best one so far, save it but keep looking for a better one 13920 ac_cv_path_FGREP="$ac_path_FGREP" 13921 ac_path_FGREP_max=$ac_count 13922 fi 13923 # 10*(2^10) chars as input seems more than enough 13924 test $ac_count -gt 10 && break 13925 done 13926 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 13927 esac 13928 13929 $ac_path_FGREP_found && break 3 13930 done 13931 done 13932 done 13933 IFS=$as_save_IFS 13934 if test -z "$ac_cv_path_FGREP"; then 13935 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 13936 fi 13937 else 13938 ac_cv_path_FGREP=$FGREP 13939 fi 13940 13941 fi 13942 fi 13943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 13944 $as_echo "$ac_cv_path_FGREP" >&6; } 13945 FGREP="$ac_cv_path_FGREP" 13946 13947 13948 else 13949 # If it succeeded, then it was overridden by the user. We will use it 13950 # for the tool. 13951 13952 # First remove it from the list of overridden variables, so we can test 13953 # for unknown variables in the end. 13954 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 13955 13956 # Check if we try to supply an empty value 13957 if test "x$FGREP" = x; then 13958 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool FGREP= (no value)" >&5 13959 $as_echo "$as_me: Setting user supplied tool FGREP= (no value)" >&6;} 13960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FGREP" >&5 13961 $as_echo_n "checking for FGREP... " >&6; } 13962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 13963 $as_echo "disabled" >&6; } 13964 else 13965 # Check if the provided tool contains a complete path. 13966 tool_specified="$FGREP" 13967 tool_basename="${tool_specified##*/}" 13968 if test "x$tool_basename" = "x$tool_specified"; then 13969 # A command without a complete path is provided, search $PATH. 13970 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool FGREP=$tool_basename" >&5 13971 $as_echo "$as_me: Will search for user supplied tool FGREP=$tool_basename" >&6;} 13972 # Extract the first word of "$tool_basename", so it can be a program name with args. 13973 set dummy $tool_basename; ac_word=$2 13974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13975 $as_echo_n "checking for $ac_word... " >&6; } 13976 if ${ac_cv_path_FGREP+:} false; then : 13977 $as_echo_n "(cached) " >&6 13978 else 13979 case $FGREP in 13980 [\\/]* | ?:[\\/]*) 13981 ac_cv_path_FGREP="$FGREP" # Let the user override the test with a path. 13982 ;; 13983 *) 13984 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13985 for as_dir in $PATH 13986 do 13987 IFS=$as_save_IFS 13988 test -z "$as_dir" && as_dir=. 13989 for ac_exec_ext in '' $ac_executable_extensions; do 13990 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13991 ac_cv_path_FGREP="$as_dir/$ac_word$ac_exec_ext" 13992 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13993 break 2 13994 fi 13995 done 13996 done 13997 IFS=$as_save_IFS 13998 13999 ;; 14000 esac 14001 fi 14002 FGREP=$ac_cv_path_FGREP 14003 if test -n "$FGREP"; then 14004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FGREP" >&5 14005 $as_echo "$FGREP" >&6; } 14006 else 14007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14008 $as_echo "no" >&6; } 14009 fi 14010 14011 14012 if test "x$FGREP" = x; then 14013 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 14014 fi 14015 else 14016 # Otherwise we believe it is a complete path. Use it as it is. 14017 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool FGREP=$tool_specified" >&5 14018 $as_echo "$as_me: Will use user supplied tool FGREP=$tool_specified" >&6;} 14019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FGREP" >&5 14020 $as_echo_n "checking for FGREP... " >&6; } 14021 if test ! -x "$tool_specified"; then 14022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 14023 $as_echo "not found" >&6; } 14024 as_fn_error $? "User supplied tool FGREP=$tool_specified does not exist or is not executable" "$LINENO" 5 14025 fi 14026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 14027 $as_echo "$tool_specified" >&6; } 14028 fi 14029 fi 14030 fi 14031 14032 fi 14033 14034 14035 if test "x$FGREP" = x; then 14036 as_fn_error $? "Could not find required tool for FGREP" "$LINENO" 5 14037 fi 14038 14039 14040 14041 14042 # Publish this variable in the help. 14043 14044 14045 if [ -z "${SED+x}" ]; then 14046 # The variable is not set by user, try to locate tool using the code snippet 14047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 14048 $as_echo_n "checking for a sed that does not truncate output... " >&6; } 14049 if ${ac_cv_path_SED+:} false; then : 14050 $as_echo_n "(cached) " >&6 14051 else 14052 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 14053 for ac_i in 1 2 3 4 5 6 7; do 14054 ac_script="$ac_script$as_nl$ac_script" 14055 done 14056 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 14057 { ac_script=; unset ac_script;} 14058 if test -z "$SED"; then 14059 ac_path_SED_found=false 14060 # Loop through the user's path and test for each of PROGNAME-LIST 14061 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14062 for as_dir in $PATH 14063 do 14064 IFS=$as_save_IFS 14065 test -z "$as_dir" && as_dir=. 14066 for ac_prog in sed gsed; do 14067 for ac_exec_ext in '' $ac_executable_extensions; do 14068 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 14069 as_fn_executable_p "$ac_path_SED" || continue 14070 # Check for GNU ac_path_SED and select it if it is found. 14071 # Check for GNU $ac_path_SED 14072 case `"$ac_path_SED" --version 2>&1` in 14073 *GNU*) 14074 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 14075 *) 14076 ac_count=0 14077 $as_echo_n 0123456789 >"conftest.in" 14078 while : 14079 do 14080 cat "conftest.in" "conftest.in" >"conftest.tmp" 14081 mv "conftest.tmp" "conftest.in" 14082 cp "conftest.in" "conftest.nl" 14083 $as_echo '' >> "conftest.nl" 14084 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 14085 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 14086 as_fn_arith $ac_count + 1 && ac_count=$as_val 14087 if test $ac_count -gt ${ac_path_SED_max-0}; then 14088 # Best one so far, save it but keep looking for a better one 14089 ac_cv_path_SED="$ac_path_SED" 14090 ac_path_SED_max=$ac_count 14091 fi 14092 # 10*(2^10) chars as input seems more than enough 14093 test $ac_count -gt 10 && break 14094 done 14095 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 14096 esac 14097 14098 $ac_path_SED_found && break 3 14099 done 14100 done 14101 done 14102 IFS=$as_save_IFS 14103 if test -z "$ac_cv_path_SED"; then 14104 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 14105 fi 14106 else 14107 ac_cv_path_SED=$SED 14108 fi 14109 14110 fi 14111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 14112 $as_echo "$ac_cv_path_SED" >&6; } 14113 SED="$ac_cv_path_SED" 14114 rm -f conftest.sed 14115 14116 else 14117 # The variable is set, but is it from the command line or the environment? 14118 14119 # Try to remove the string !SED! from our list. 14120 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!SED!/} 14121 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 14122 # If it failed, the variable was not from the command line. Ignore it, 14123 # but warn the user (except for BASH, which is always set by the calling BASH). 14124 if test "xSED" != xBASH; then 14125 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of SED from the environment. Use command line variables instead." >&5 14126 $as_echo "$as_me: WARNING: Ignoring value of SED from the environment. Use command line variables instead." >&2;} 14127 fi 14128 # Try to locate tool using the code snippet 14129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 14130 $as_echo_n "checking for a sed that does not truncate output... " >&6; } 14131 if ${ac_cv_path_SED+:} false; then : 14132 $as_echo_n "(cached) " >&6 14133 else 14134 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 14135 for ac_i in 1 2 3 4 5 6 7; do 14136 ac_script="$ac_script$as_nl$ac_script" 14137 done 14138 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 14139 { ac_script=; unset ac_script;} 14140 if test -z "$SED"; then 14141 ac_path_SED_found=false 14142 # Loop through the user's path and test for each of PROGNAME-LIST 14143 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14144 for as_dir in $PATH 14145 do 14146 IFS=$as_save_IFS 14147 test -z "$as_dir" && as_dir=. 14148 for ac_prog in sed gsed; do 14149 for ac_exec_ext in '' $ac_executable_extensions; do 14150 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 14151 as_fn_executable_p "$ac_path_SED" || continue 14152 # Check for GNU ac_path_SED and select it if it is found. 14153 # Check for GNU $ac_path_SED 14154 case `"$ac_path_SED" --version 2>&1` in 14155 *GNU*) 14156 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 14157 *) 14158 ac_count=0 14159 $as_echo_n 0123456789 >"conftest.in" 14160 while : 14161 do 14162 cat "conftest.in" "conftest.in" >"conftest.tmp" 14163 mv "conftest.tmp" "conftest.in" 14164 cp "conftest.in" "conftest.nl" 14165 $as_echo '' >> "conftest.nl" 14166 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 14167 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 14168 as_fn_arith $ac_count + 1 && ac_count=$as_val 14169 if test $ac_count -gt ${ac_path_SED_max-0}; then 14170 # Best one so far, save it but keep looking for a better one 14171 ac_cv_path_SED="$ac_path_SED" 14172 ac_path_SED_max=$ac_count 14173 fi 14174 # 10*(2^10) chars as input seems more than enough 14175 test $ac_count -gt 10 && break 14176 done 14177 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 14178 esac 14179 14180 $ac_path_SED_found && break 3 14181 done 14182 done 14183 done 14184 IFS=$as_save_IFS 14185 if test -z "$ac_cv_path_SED"; then 14186 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 14187 fi 14188 else 14189 ac_cv_path_SED=$SED 14190 fi 14191 14192 fi 14193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 14194 $as_echo "$ac_cv_path_SED" >&6; } 14195 SED="$ac_cv_path_SED" 14196 rm -f conftest.sed 14197 14198 else 14199 # If it succeeded, then it was overridden by the user. We will use it 14200 # for the tool. 14201 14202 # First remove it from the list of overridden variables, so we can test 14203 # for unknown variables in the end. 14204 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 14205 14206 # Check if we try to supply an empty value 14207 if test "x$SED" = x; then 14208 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool SED= (no value)" >&5 14209 $as_echo "$as_me: Setting user supplied tool SED= (no value)" >&6;} 14210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SED" >&5 14211 $as_echo_n "checking for SED... " >&6; } 14212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 14213 $as_echo "disabled" >&6; } 14214 else 14215 # Check if the provided tool contains a complete path. 14216 tool_specified="$SED" 14217 tool_basename="${tool_specified##*/}" 14218 if test "x$tool_basename" = "x$tool_specified"; then 14219 # A command without a complete path is provided, search $PATH. 14220 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool SED=$tool_basename" >&5 14221 $as_echo "$as_me: Will search for user supplied tool SED=$tool_basename" >&6;} 14222 # Extract the first word of "$tool_basename", so it can be a program name with args. 14223 set dummy $tool_basename; ac_word=$2 14224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14225 $as_echo_n "checking for $ac_word... " >&6; } 14226 if ${ac_cv_path_SED+:} false; then : 14227 $as_echo_n "(cached) " >&6 14228 else 14229 case $SED in 14230 [\\/]* | ?:[\\/]*) 14231 ac_cv_path_SED="$SED" # Let the user override the test with a path. 14232 ;; 14233 *) 14234 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14235 for as_dir in $PATH 14236 do 14237 IFS=$as_save_IFS 14238 test -z "$as_dir" && as_dir=. 14239 for ac_exec_ext in '' $ac_executable_extensions; do 14240 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 14241 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext" 14242 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 14243 break 2 14244 fi 14245 done 14246 done 14247 IFS=$as_save_IFS 14248 14249 ;; 14250 esac 14251 fi 14252 SED=$ac_cv_path_SED 14253 if test -n "$SED"; then 14254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5 14255 $as_echo "$SED" >&6; } 14256 else 14257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14258 $as_echo "no" >&6; } 14259 fi 14260 14261 14262 if test "x$SED" = x; then 14263 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 14264 fi 14265 else 14266 # Otherwise we believe it is a complete path. Use it as it is. 14267 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool SED=$tool_specified" >&5 14268 $as_echo "$as_me: Will use user supplied tool SED=$tool_specified" >&6;} 14269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SED" >&5 14270 $as_echo_n "checking for SED... " >&6; } 14271 if test ! -x "$tool_specified"; then 14272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 14273 $as_echo "not found" >&6; } 14274 as_fn_error $? "User supplied tool SED=$tool_specified does not exist or is not executable" "$LINENO" 5 14275 fi 14276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 14277 $as_echo "$tool_specified" >&6; } 14278 fi 14279 fi 14280 fi 14281 14282 fi 14283 14284 14285 if test "x$SED" = x; then 14286 as_fn_error $? "Could not find required tool for SED" "$LINENO" 5 14287 fi 14288 14289 14290 14291 # Always force rm. 14292 RM="$RM -f" 14293 14294 # pwd behaves differently on various platforms and some don't support the -L flag. 14295 # Always use the bash builtin pwd to get uniform behavior. 14296 THEPWDCMD=pwd 14297 14298 # These are not required on all platforms 14299 14300 14301 # Publish this variable in the help. 14302 14303 14304 if [ -z "${CYGPATH+x}" ]; then 14305 # The variable is not set by user, try to locate tool using the code snippet 14306 for ac_prog in cygpath 14307 do 14308 # Extract the first word of "$ac_prog", so it can be a program name with args. 14309 set dummy $ac_prog; ac_word=$2 14310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14311 $as_echo_n "checking for $ac_word... " >&6; } 14312 if ${ac_cv_path_CYGPATH+:} false; then : 14313 $as_echo_n "(cached) " >&6 14314 else 14315 case $CYGPATH in 14316 [\\/]* | ?:[\\/]*) 14317 ac_cv_path_CYGPATH="$CYGPATH" # Let the user override the test with a path. 14318 ;; 14319 *) 14320 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14321 for as_dir in $PATH 14322 do 14323 IFS=$as_save_IFS 14324 test -z "$as_dir" && as_dir=. 14325 for ac_exec_ext in '' $ac_executable_extensions; do 14326 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 14327 ac_cv_path_CYGPATH="$as_dir/$ac_word$ac_exec_ext" 14328 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 14329 break 2 14330 fi 14331 done 14332 done 14333 IFS=$as_save_IFS 14334 14335 ;; 14336 esac 14337 fi 14338 CYGPATH=$ac_cv_path_CYGPATH 14339 if test -n "$CYGPATH"; then 14340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CYGPATH" >&5 14341 $as_echo "$CYGPATH" >&6; } 14342 else 14343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14344 $as_echo "no" >&6; } 14345 fi 14346 14347 14348 test -n "$CYGPATH" && break 14349 done 14350 14351 else 14352 # The variable is set, but is it from the command line or the environment? 14353 14354 # Try to remove the string !CYGPATH! from our list. 14355 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CYGPATH!/} 14356 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 14357 # If it failed, the variable was not from the command line. Ignore it, 14358 # but warn the user (except for BASH, which is always set by the calling BASH). 14359 if test "xCYGPATH" != xBASH; then 14360 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CYGPATH from the environment. Use command line variables instead." >&5 14361 $as_echo "$as_me: WARNING: Ignoring value of CYGPATH from the environment. Use command line variables instead." >&2;} 14362 fi 14363 # Try to locate tool using the code snippet 14364 for ac_prog in cygpath 14365 do 14366 # Extract the first word of "$ac_prog", so it can be a program name with args. 14367 set dummy $ac_prog; ac_word=$2 14368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14369 $as_echo_n "checking for $ac_word... " >&6; } 14370 if ${ac_cv_path_CYGPATH+:} false; then : 14371 $as_echo_n "(cached) " >&6 14372 else 14373 case $CYGPATH in 14374 [\\/]* | ?:[\\/]*) 14375 ac_cv_path_CYGPATH="$CYGPATH" # Let the user override the test with a path. 14376 ;; 14377 *) 14378 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14379 for as_dir in $PATH 14380 do 14381 IFS=$as_save_IFS 14382 test -z "$as_dir" && as_dir=. 14383 for ac_exec_ext in '' $ac_executable_extensions; do 14384 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 14385 ac_cv_path_CYGPATH="$as_dir/$ac_word$ac_exec_ext" 14386 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 14387 break 2 14388 fi 14389 done 14390 done 14391 IFS=$as_save_IFS 14392 14393 ;; 14394 esac 14395 fi 14396 CYGPATH=$ac_cv_path_CYGPATH 14397 if test -n "$CYGPATH"; then 14398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CYGPATH" >&5 14399 $as_echo "$CYGPATH" >&6; } 14400 else 14401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14402 $as_echo "no" >&6; } 14403 fi 14404 14405 14406 test -n "$CYGPATH" && break 14407 done 14408 14409 else 14410 # If it succeeded, then it was overridden by the user. We will use it 14411 # for the tool. 14412 14413 # First remove it from the list of overridden variables, so we can test 14414 # for unknown variables in the end. 14415 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 14416 14417 # Check if we try to supply an empty value 14418 if test "x$CYGPATH" = x; then 14419 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool CYGPATH= (no value)" >&5 14420 $as_echo "$as_me: Setting user supplied tool CYGPATH= (no value)" >&6;} 14421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CYGPATH" >&5 14422 $as_echo_n "checking for CYGPATH... " >&6; } 14423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 14424 $as_echo "disabled" >&6; } 14425 else 14426 # Check if the provided tool contains a complete path. 14427 tool_specified="$CYGPATH" 14428 tool_basename="${tool_specified##*/}" 14429 if test "x$tool_basename" = "x$tool_specified"; then 14430 # A command without a complete path is provided, search $PATH. 14431 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CYGPATH=$tool_basename" >&5 14432 $as_echo "$as_me: Will search for user supplied tool CYGPATH=$tool_basename" >&6;} 14433 # Extract the first word of "$tool_basename", so it can be a program name with args. 14434 set dummy $tool_basename; ac_word=$2 14435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14436 $as_echo_n "checking for $ac_word... " >&6; } 14437 if ${ac_cv_path_CYGPATH+:} false; then : 14438 $as_echo_n "(cached) " >&6 14439 else 14440 case $CYGPATH in 14441 [\\/]* | ?:[\\/]*) 14442 ac_cv_path_CYGPATH="$CYGPATH" # Let the user override the test with a path. 14443 ;; 14444 *) 14445 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14446 for as_dir in $PATH 14447 do 14448 IFS=$as_save_IFS 14449 test -z "$as_dir" && as_dir=. 14450 for ac_exec_ext in '' $ac_executable_extensions; do 14451 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 14452 ac_cv_path_CYGPATH="$as_dir/$ac_word$ac_exec_ext" 14453 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 14454 break 2 14455 fi 14456 done 14457 done 14458 IFS=$as_save_IFS 14459 14460 ;; 14461 esac 14462 fi 14463 CYGPATH=$ac_cv_path_CYGPATH 14464 if test -n "$CYGPATH"; then 14465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CYGPATH" >&5 14466 $as_echo "$CYGPATH" >&6; } 14467 else 14468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14469 $as_echo "no" >&6; } 14470 fi 14471 14472 14473 if test "x$CYGPATH" = x; then 14474 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 14475 fi 14476 else 14477 # Otherwise we believe it is a complete path. Use it as it is. 14478 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CYGPATH=$tool_specified" >&5 14479 $as_echo "$as_me: Will use user supplied tool CYGPATH=$tool_specified" >&6;} 14480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CYGPATH" >&5 14481 $as_echo_n "checking for CYGPATH... " >&6; } 14482 if test ! -x "$tool_specified"; then 14483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 14484 $as_echo "not found" >&6; } 14485 as_fn_error $? "User supplied tool CYGPATH=$tool_specified does not exist or is not executable" "$LINENO" 5 14486 fi 14487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 14488 $as_echo "$tool_specified" >&6; } 14489 fi 14490 fi 14491 fi 14492 14493 fi 14494 14495 14496 14497 14498 # Publish this variable in the help. 14499 14500 14501 if [ -z "${READLINK+x}" ]; then 14502 # The variable is not set by user, try to locate tool using the code snippet 14503 for ac_prog in greadlink readlink 14504 do 14505 # Extract the first word of "$ac_prog", so it can be a program name with args. 14506 set dummy $ac_prog; ac_word=$2 14507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14508 $as_echo_n "checking for $ac_word... " >&6; } 14509 if ${ac_cv_path_READLINK+:} false; then : 14510 $as_echo_n "(cached) " >&6 14511 else 14512 case $READLINK in 14513 [\\/]* | ?:[\\/]*) 14514 ac_cv_path_READLINK="$READLINK" # Let the user override the test with a path. 14515 ;; 14516 *) 14517 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14518 for as_dir in $PATH 14519 do 14520 IFS=$as_save_IFS 14521 test -z "$as_dir" && as_dir=. 14522 for ac_exec_ext in '' $ac_executable_extensions; do 14523 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 14524 ac_cv_path_READLINK="$as_dir/$ac_word$ac_exec_ext" 14525 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 14526 break 2 14527 fi 14528 done 14529 done 14530 IFS=$as_save_IFS 14531 14532 ;; 14533 esac 14534 fi 14535 READLINK=$ac_cv_path_READLINK 14536 if test -n "$READLINK"; then 14537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READLINK" >&5 14538 $as_echo "$READLINK" >&6; } 14539 else 14540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14541 $as_echo "no" >&6; } 14542 fi 14543 14544 14545 test -n "$READLINK" && break 14546 done 14547 14548 else 14549 # The variable is set, but is it from the command line or the environment? 14550 14551 # Try to remove the string !READLINK! from our list. 14552 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!READLINK!/} 14553 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 14554 # If it failed, the variable was not from the command line. Ignore it, 14555 # but warn the user (except for BASH, which is always set by the calling BASH). 14556 if test "xREADLINK" != xBASH; then 14557 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of READLINK from the environment. Use command line variables instead." >&5 14558 $as_echo "$as_me: WARNING: Ignoring value of READLINK from the environment. Use command line variables instead." >&2;} 14559 fi 14560 # Try to locate tool using the code snippet 14561 for ac_prog in greadlink readlink 14562 do 14563 # Extract the first word of "$ac_prog", so it can be a program name with args. 14564 set dummy $ac_prog; ac_word=$2 14565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14566 $as_echo_n "checking for $ac_word... " >&6; } 14567 if ${ac_cv_path_READLINK+:} false; then : 14568 $as_echo_n "(cached) " >&6 14569 else 14570 case $READLINK in 14571 [\\/]* | ?:[\\/]*) 14572 ac_cv_path_READLINK="$READLINK" # Let the user override the test with a path. 14573 ;; 14574 *) 14575 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14576 for as_dir in $PATH 14577 do 14578 IFS=$as_save_IFS 14579 test -z "$as_dir" && as_dir=. 14580 for ac_exec_ext in '' $ac_executable_extensions; do 14581 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 14582 ac_cv_path_READLINK="$as_dir/$ac_word$ac_exec_ext" 14583 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 14584 break 2 14585 fi 14586 done 14587 done 14588 IFS=$as_save_IFS 14589 14590 ;; 14591 esac 14592 fi 14593 READLINK=$ac_cv_path_READLINK 14594 if test -n "$READLINK"; then 14595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READLINK" >&5 14596 $as_echo "$READLINK" >&6; } 14597 else 14598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14599 $as_echo "no" >&6; } 14600 fi 14601 14602 14603 test -n "$READLINK" && break 14604 done 14605 14606 else 14607 # If it succeeded, then it was overridden by the user. We will use it 14608 # for the tool. 14609 14610 # First remove it from the list of overridden variables, so we can test 14611 # for unknown variables in the end. 14612 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 14613 14614 # Check if we try to supply an empty value 14615 if test "x$READLINK" = x; then 14616 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool READLINK= (no value)" >&5 14617 $as_echo "$as_me: Setting user supplied tool READLINK= (no value)" >&6;} 14618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for READLINK" >&5 14619 $as_echo_n "checking for READLINK... " >&6; } 14620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 14621 $as_echo "disabled" >&6; } 14622 else 14623 # Check if the provided tool contains a complete path. 14624 tool_specified="$READLINK" 14625 tool_basename="${tool_specified##*/}" 14626 if test "x$tool_basename" = "x$tool_specified"; then 14627 # A command without a complete path is provided, search $PATH. 14628 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool READLINK=$tool_basename" >&5 14629 $as_echo "$as_me: Will search for user supplied tool READLINK=$tool_basename" >&6;} 14630 # Extract the first word of "$tool_basename", so it can be a program name with args. 14631 set dummy $tool_basename; ac_word=$2 14632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14633 $as_echo_n "checking for $ac_word... " >&6; } 14634 if ${ac_cv_path_READLINK+:} false; then : 14635 $as_echo_n "(cached) " >&6 14636 else 14637 case $READLINK in 14638 [\\/]* | ?:[\\/]*) 14639 ac_cv_path_READLINK="$READLINK" # Let the user override the test with a path. 14640 ;; 14641 *) 14642 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14643 for as_dir in $PATH 14644 do 14645 IFS=$as_save_IFS 14646 test -z "$as_dir" && as_dir=. 14647 for ac_exec_ext in '' $ac_executable_extensions; do 14648 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 14649 ac_cv_path_READLINK="$as_dir/$ac_word$ac_exec_ext" 14650 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 14651 break 2 14652 fi 14653 done 14654 done 14655 IFS=$as_save_IFS 14656 14657 ;; 14658 esac 14659 fi 14660 READLINK=$ac_cv_path_READLINK 14661 if test -n "$READLINK"; then 14662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READLINK" >&5 14663 $as_echo "$READLINK" >&6; } 14664 else 14665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14666 $as_echo "no" >&6; } 14667 fi 14668 14669 14670 if test "x$READLINK" = x; then 14671 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 14672 fi 14673 else 14674 # Otherwise we believe it is a complete path. Use it as it is. 14675 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool READLINK=$tool_specified" >&5 14676 $as_echo "$as_me: Will use user supplied tool READLINK=$tool_specified" >&6;} 14677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for READLINK" >&5 14678 $as_echo_n "checking for READLINK... " >&6; } 14679 if test ! -x "$tool_specified"; then 14680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 14681 $as_echo "not found" >&6; } 14682 as_fn_error $? "User supplied tool READLINK=$tool_specified does not exist or is not executable" "$LINENO" 5 14683 fi 14684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 14685 $as_echo "$tool_specified" >&6; } 14686 fi 14687 fi 14688 fi 14689 14690 fi 14691 14692 14693 14694 14695 # Publish this variable in the help. 14696 14697 14698 if [ -z "${DF+x}" ]; then 14699 # The variable is not set by user, try to locate tool using the code snippet 14700 for ac_prog in df 14701 do 14702 # Extract the first word of "$ac_prog", so it can be a program name with args. 14703 set dummy $ac_prog; ac_word=$2 14704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14705 $as_echo_n "checking for $ac_word... " >&6; } 14706 if ${ac_cv_path_DF+:} false; then : 14707 $as_echo_n "(cached) " >&6 14708 else 14709 case $DF in 14710 [\\/]* | ?:[\\/]*) 14711 ac_cv_path_DF="$DF" # Let the user override the test with a path. 14712 ;; 14713 *) 14714 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14715 for as_dir in $PATH 14716 do 14717 IFS=$as_save_IFS 14718 test -z "$as_dir" && as_dir=. 14719 for ac_exec_ext in '' $ac_executable_extensions; do 14720 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 14721 ac_cv_path_DF="$as_dir/$ac_word$ac_exec_ext" 14722 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 14723 break 2 14724 fi 14725 done 14726 done 14727 IFS=$as_save_IFS 14728 14729 ;; 14730 esac 14731 fi 14732 DF=$ac_cv_path_DF 14733 if test -n "$DF"; then 14734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DF" >&5 14735 $as_echo "$DF" >&6; } 14736 else 14737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14738 $as_echo "no" >&6; } 14739 fi 14740 14741 14742 test -n "$DF" && break 14743 done 14744 14745 else 14746 # The variable is set, but is it from the command line or the environment? 14747 14748 # Try to remove the string !DF! from our list. 14749 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!DF!/} 14750 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 14751 # If it failed, the variable was not from the command line. Ignore it, 14752 # but warn the user (except for BASH, which is always set by the calling BASH). 14753 if test "xDF" != xBASH; then 14754 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of DF from the environment. Use command line variables instead." >&5 14755 $as_echo "$as_me: WARNING: Ignoring value of DF from the environment. Use command line variables instead." >&2;} 14756 fi 14757 # Try to locate tool using the code snippet 14758 for ac_prog in df 14759 do 14760 # Extract the first word of "$ac_prog", so it can be a program name with args. 14761 set dummy $ac_prog; ac_word=$2 14762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14763 $as_echo_n "checking for $ac_word... " >&6; } 14764 if ${ac_cv_path_DF+:} false; then : 14765 $as_echo_n "(cached) " >&6 14766 else 14767 case $DF in 14768 [\\/]* | ?:[\\/]*) 14769 ac_cv_path_DF="$DF" # Let the user override the test with a path. 14770 ;; 14771 *) 14772 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14773 for as_dir in $PATH 14774 do 14775 IFS=$as_save_IFS 14776 test -z "$as_dir" && as_dir=. 14777 for ac_exec_ext in '' $ac_executable_extensions; do 14778 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 14779 ac_cv_path_DF="$as_dir/$ac_word$ac_exec_ext" 14780 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 14781 break 2 14782 fi 14783 done 14784 done 14785 IFS=$as_save_IFS 14786 14787 ;; 14788 esac 14789 fi 14790 DF=$ac_cv_path_DF 14791 if test -n "$DF"; then 14792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DF" >&5 14793 $as_echo "$DF" >&6; } 14794 else 14795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14796 $as_echo "no" >&6; } 14797 fi 14798 14799 14800 test -n "$DF" && break 14801 done 14802 14803 else 14804 # If it succeeded, then it was overridden by the user. We will use it 14805 # for the tool. 14806 14807 # First remove it from the list of overridden variables, so we can test 14808 # for unknown variables in the end. 14809 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 14810 14811 # Check if we try to supply an empty value 14812 if test "x$DF" = x; then 14813 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool DF= (no value)" >&5 14814 $as_echo "$as_me: Setting user supplied tool DF= (no value)" >&6;} 14815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DF" >&5 14816 $as_echo_n "checking for DF... " >&6; } 14817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 14818 $as_echo "disabled" >&6; } 14819 else 14820 # Check if the provided tool contains a complete path. 14821 tool_specified="$DF" 14822 tool_basename="${tool_specified##*/}" 14823 if test "x$tool_basename" = "x$tool_specified"; then 14824 # A command without a complete path is provided, search $PATH. 14825 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool DF=$tool_basename" >&5 14826 $as_echo "$as_me: Will search for user supplied tool DF=$tool_basename" >&6;} 14827 # Extract the first word of "$tool_basename", so it can be a program name with args. 14828 set dummy $tool_basename; ac_word=$2 14829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14830 $as_echo_n "checking for $ac_word... " >&6; } 14831 if ${ac_cv_path_DF+:} false; then : 14832 $as_echo_n "(cached) " >&6 14833 else 14834 case $DF in 14835 [\\/]* | ?:[\\/]*) 14836 ac_cv_path_DF="$DF" # Let the user override the test with a path. 14837 ;; 14838 *) 14839 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14840 for as_dir in $PATH 14841 do 14842 IFS=$as_save_IFS 14843 test -z "$as_dir" && as_dir=. 14844 for ac_exec_ext in '' $ac_executable_extensions; do 14845 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 14846 ac_cv_path_DF="$as_dir/$ac_word$ac_exec_ext" 14847 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 14848 break 2 14849 fi 14850 done 14851 done 14852 IFS=$as_save_IFS 14853 14854 ;; 14855 esac 14856 fi 14857 DF=$ac_cv_path_DF 14858 if test -n "$DF"; then 14859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DF" >&5 14860 $as_echo "$DF" >&6; } 14861 else 14862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14863 $as_echo "no" >&6; } 14864 fi 14865 14866 14867 if test "x$DF" = x; then 14868 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 14869 fi 14870 else 14871 # Otherwise we believe it is a complete path. Use it as it is. 14872 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool DF=$tool_specified" >&5 14873 $as_echo "$as_me: Will use user supplied tool DF=$tool_specified" >&6;} 14874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DF" >&5 14875 $as_echo_n "checking for DF... " >&6; } 14876 if test ! -x "$tool_specified"; then 14877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 14878 $as_echo "not found" >&6; } 14879 as_fn_error $? "User supplied tool DF=$tool_specified does not exist or is not executable" "$LINENO" 5 14880 fi 14881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 14882 $as_echo "$tool_specified" >&6; } 14883 fi 14884 fi 14885 fi 14886 14887 fi 14888 14889 14890 14891 14892 # Publish this variable in the help. 14893 14894 14895 if [ -z "${CPIO+x}" ]; then 14896 # The variable is not set by user, try to locate tool using the code snippet 14897 for ac_prog in cpio bsdcpio 14898 do 14899 # Extract the first word of "$ac_prog", so it can be a program name with args. 14900 set dummy $ac_prog; ac_word=$2 14901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14902 $as_echo_n "checking for $ac_word... " >&6; } 14903 if ${ac_cv_path_CPIO+:} false; then : 14904 $as_echo_n "(cached) " >&6 14905 else 14906 case $CPIO in 14907 [\\/]* | ?:[\\/]*) 14908 ac_cv_path_CPIO="$CPIO" # Let the user override the test with a path. 14909 ;; 14910 *) 14911 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14912 for as_dir in $PATH 14913 do 14914 IFS=$as_save_IFS 14915 test -z "$as_dir" && as_dir=. 14916 for ac_exec_ext in '' $ac_executable_extensions; do 14917 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 14918 ac_cv_path_CPIO="$as_dir/$ac_word$ac_exec_ext" 14919 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 14920 break 2 14921 fi 14922 done 14923 done 14924 IFS=$as_save_IFS 14925 14926 ;; 14927 esac 14928 fi 14929 CPIO=$ac_cv_path_CPIO 14930 if test -n "$CPIO"; then 14931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPIO" >&5 14932 $as_echo "$CPIO" >&6; } 14933 else 14934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14935 $as_echo "no" >&6; } 14936 fi 14937 14938 14939 test -n "$CPIO" && break 14940 done 14941 14942 else 14943 # The variable is set, but is it from the command line or the environment? 14944 14945 # Try to remove the string !CPIO! from our list. 14946 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CPIO!/} 14947 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 14948 # If it failed, the variable was not from the command line. Ignore it, 14949 # but warn the user (except for BASH, which is always set by the calling BASH). 14950 if test "xCPIO" != xBASH; then 14951 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CPIO from the environment. Use command line variables instead." >&5 14952 $as_echo "$as_me: WARNING: Ignoring value of CPIO from the environment. Use command line variables instead." >&2;} 14953 fi 14954 # Try to locate tool using the code snippet 14955 for ac_prog in cpio bsdcpio 14956 do 14957 # Extract the first word of "$ac_prog", so it can be a program name with args. 14958 set dummy $ac_prog; ac_word=$2 14959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14960 $as_echo_n "checking for $ac_word... " >&6; } 14961 if ${ac_cv_path_CPIO+:} false; then : 14962 $as_echo_n "(cached) " >&6 14963 else 14964 case $CPIO in 14965 [\\/]* | ?:[\\/]*) 14966 ac_cv_path_CPIO="$CPIO" # Let the user override the test with a path. 14967 ;; 14968 *) 14969 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14970 for as_dir in $PATH 14971 do 14972 IFS=$as_save_IFS 14973 test -z "$as_dir" && as_dir=. 14974 for ac_exec_ext in '' $ac_executable_extensions; do 14975 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 14976 ac_cv_path_CPIO="$as_dir/$ac_word$ac_exec_ext" 14977 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 14978 break 2 14979 fi 14980 done 14981 done 14982 IFS=$as_save_IFS 14983 14984 ;; 14985 esac 14986 fi 14987 CPIO=$ac_cv_path_CPIO 14988 if test -n "$CPIO"; then 14989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPIO" >&5 14990 $as_echo "$CPIO" >&6; } 14991 else 14992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14993 $as_echo "no" >&6; } 14994 fi 14995 14996 14997 test -n "$CPIO" && break 14998 done 14999 15000 else 15001 # If it succeeded, then it was overridden by the user. We will use it 15002 # for the tool. 15003 15004 # First remove it from the list of overridden variables, so we can test 15005 # for unknown variables in the end. 15006 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 15007 15008 # Check if we try to supply an empty value 15009 if test "x$CPIO" = x; then 15010 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool CPIO= (no value)" >&5 15011 $as_echo "$as_me: Setting user supplied tool CPIO= (no value)" >&6;} 15012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CPIO" >&5 15013 $as_echo_n "checking for CPIO... " >&6; } 15014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 15015 $as_echo "disabled" >&6; } 15016 else 15017 # Check if the provided tool contains a complete path. 15018 tool_specified="$CPIO" 15019 tool_basename="${tool_specified##*/}" 15020 if test "x$tool_basename" = "x$tool_specified"; then 15021 # A command without a complete path is provided, search $PATH. 15022 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CPIO=$tool_basename" >&5 15023 $as_echo "$as_me: Will search for user supplied tool CPIO=$tool_basename" >&6;} 15024 # Extract the first word of "$tool_basename", so it can be a program name with args. 15025 set dummy $tool_basename; ac_word=$2 15026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 15027 $as_echo_n "checking for $ac_word... " >&6; } 15028 if ${ac_cv_path_CPIO+:} false; then : 15029 $as_echo_n "(cached) " >&6 15030 else 15031 case $CPIO in 15032 [\\/]* | ?:[\\/]*) 15033 ac_cv_path_CPIO="$CPIO" # Let the user override the test with a path. 15034 ;; 15035 *) 15036 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 15037 for as_dir in $PATH 15038 do 15039 IFS=$as_save_IFS 15040 test -z "$as_dir" && as_dir=. 15041 for ac_exec_ext in '' $ac_executable_extensions; do 15042 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 15043 ac_cv_path_CPIO="$as_dir/$ac_word$ac_exec_ext" 15044 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 15045 break 2 15046 fi 15047 done 15048 done 15049 IFS=$as_save_IFS 15050 15051 ;; 15052 esac 15053 fi 15054 CPIO=$ac_cv_path_CPIO 15055 if test -n "$CPIO"; then 15056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPIO" >&5 15057 $as_echo "$CPIO" >&6; } 15058 else 15059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15060 $as_echo "no" >&6; } 15061 fi 15062 15063 15064 if test "x$CPIO" = x; then 15065 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 15066 fi 15067 else 15068 # Otherwise we believe it is a complete path. Use it as it is. 15069 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CPIO=$tool_specified" >&5 15070 $as_echo "$as_me: Will use user supplied tool CPIO=$tool_specified" >&6;} 15071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CPIO" >&5 15072 $as_echo_n "checking for CPIO... " >&6; } 15073 if test ! -x "$tool_specified"; then 15074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 15075 $as_echo "not found" >&6; } 15076 as_fn_error $? "User supplied tool CPIO=$tool_specified does not exist or is not executable" "$LINENO" 5 15077 fi 15078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 15079 $as_echo "$tool_specified" >&6; } 15080 fi 15081 fi 15082 fi 15083 15084 fi 15085 15086 15087 15088 15089 # Publish this variable in the help. 15090 15091 15092 if [ -z "${NICE+x}" ]; then 15093 # The variable is not set by user, try to locate tool using the code snippet 15094 for ac_prog in nice 15095 do 15096 # Extract the first word of "$ac_prog", so it can be a program name with args. 15097 set dummy $ac_prog; ac_word=$2 15098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 15099 $as_echo_n "checking for $ac_word... " >&6; } 15100 if ${ac_cv_path_NICE+:} false; then : 15101 $as_echo_n "(cached) " >&6 15102 else 15103 case $NICE in 15104 [\\/]* | ?:[\\/]*) 15105 ac_cv_path_NICE="$NICE" # Let the user override the test with a path. 15106 ;; 15107 *) 15108 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 15109 for as_dir in $PATH 15110 do 15111 IFS=$as_save_IFS 15112 test -z "$as_dir" && as_dir=. 15113 for ac_exec_ext in '' $ac_executable_extensions; do 15114 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 15115 ac_cv_path_NICE="$as_dir/$ac_word$ac_exec_ext" 15116 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 15117 break 2 15118 fi 15119 done 15120 done 15121 IFS=$as_save_IFS 15122 15123 ;; 15124 esac 15125 fi 15126 NICE=$ac_cv_path_NICE 15127 if test -n "$NICE"; then 15128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NICE" >&5 15129 $as_echo "$NICE" >&6; } 15130 else 15131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15132 $as_echo "no" >&6; } 15133 fi 15134 15135 15136 test -n "$NICE" && break 15137 done 15138 15139 else 15140 # The variable is set, but is it from the command line or the environment? 15141 15142 # Try to remove the string !NICE! from our list. 15143 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!NICE!/} 15144 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 15145 # If it failed, the variable was not from the command line. Ignore it, 15146 # but warn the user (except for BASH, which is always set by the calling BASH). 15147 if test "xNICE" != xBASH; then 15148 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of NICE from the environment. Use command line variables instead." >&5 15149 $as_echo "$as_me: WARNING: Ignoring value of NICE from the environment. Use command line variables instead." >&2;} 15150 fi 15151 # Try to locate tool using the code snippet 15152 for ac_prog in nice 15153 do 15154 # Extract the first word of "$ac_prog", so it can be a program name with args. 15155 set dummy $ac_prog; ac_word=$2 15156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 15157 $as_echo_n "checking for $ac_word... " >&6; } 15158 if ${ac_cv_path_NICE+:} false; then : 15159 $as_echo_n "(cached) " >&6 15160 else 15161 case $NICE in 15162 [\\/]* | ?:[\\/]*) 15163 ac_cv_path_NICE="$NICE" # Let the user override the test with a path. 15164 ;; 15165 *) 15166 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 15167 for as_dir in $PATH 15168 do 15169 IFS=$as_save_IFS 15170 test -z "$as_dir" && as_dir=. 15171 for ac_exec_ext in '' $ac_executable_extensions; do 15172 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 15173 ac_cv_path_NICE="$as_dir/$ac_word$ac_exec_ext" 15174 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 15175 break 2 15176 fi 15177 done 15178 done 15179 IFS=$as_save_IFS 15180 15181 ;; 15182 esac 15183 fi 15184 NICE=$ac_cv_path_NICE 15185 if test -n "$NICE"; then 15186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NICE" >&5 15187 $as_echo "$NICE" >&6; } 15188 else 15189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15190 $as_echo "no" >&6; } 15191 fi 15192 15193 15194 test -n "$NICE" && break 15195 done 15196 15197 else 15198 # If it succeeded, then it was overridden by the user. We will use it 15199 # for the tool. 15200 15201 # First remove it from the list of overridden variables, so we can test 15202 # for unknown variables in the end. 15203 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 15204 15205 # Check if we try to supply an empty value 15206 if test "x$NICE" = x; then 15207 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool NICE= (no value)" >&5 15208 $as_echo "$as_me: Setting user supplied tool NICE= (no value)" >&6;} 15209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NICE" >&5 15210 $as_echo_n "checking for NICE... " >&6; } 15211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 15212 $as_echo "disabled" >&6; } 15213 else 15214 # Check if the provided tool contains a complete path. 15215 tool_specified="$NICE" 15216 tool_basename="${tool_specified##*/}" 15217 if test "x$tool_basename" = "x$tool_specified"; then 15218 # A command without a complete path is provided, search $PATH. 15219 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool NICE=$tool_basename" >&5 15220 $as_echo "$as_me: Will search for user supplied tool NICE=$tool_basename" >&6;} 15221 # Extract the first word of "$tool_basename", so it can be a program name with args. 15222 set dummy $tool_basename; ac_word=$2 15223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 15224 $as_echo_n "checking for $ac_word... " >&6; } 15225 if ${ac_cv_path_NICE+:} false; then : 15226 $as_echo_n "(cached) " >&6 15227 else 15228 case $NICE in 15229 [\\/]* | ?:[\\/]*) 15230 ac_cv_path_NICE="$NICE" # Let the user override the test with a path. 15231 ;; 15232 *) 15233 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 15234 for as_dir in $PATH 15235 do 15236 IFS=$as_save_IFS 15237 test -z "$as_dir" && as_dir=. 15238 for ac_exec_ext in '' $ac_executable_extensions; do 15239 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 15240 ac_cv_path_NICE="$as_dir/$ac_word$ac_exec_ext" 15241 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 15242 break 2 15243 fi 15244 done 15245 done 15246 IFS=$as_save_IFS 15247 15248 ;; 15249 esac 15250 fi 15251 NICE=$ac_cv_path_NICE 15252 if test -n "$NICE"; then 15253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NICE" >&5 15254 $as_echo "$NICE" >&6; } 15255 else 15256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15257 $as_echo "no" >&6; } 15258 fi 15259 15260 15261 if test "x$NICE" = x; then 15262 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 15263 fi 15264 else 15265 # Otherwise we believe it is a complete path. Use it as it is. 15266 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool NICE=$tool_specified" >&5 15267 $as_echo "$as_me: Will use user supplied tool NICE=$tool_specified" >&6;} 15268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NICE" >&5 15269 $as_echo_n "checking for NICE... " >&6; } 15270 if test ! -x "$tool_specified"; then 15271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 15272 $as_echo "not found" >&6; } 15273 as_fn_error $? "User supplied tool NICE=$tool_specified does not exist or is not executable" "$LINENO" 5 15274 fi 15275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 15276 $as_echo "$tool_specified" >&6; } 15277 fi 15278 fi 15279 fi 15280 15281 fi 15282 15283 15284 15285 15286 # Now we can determine OpenJDK build and target platforms. This is required to 15287 # have early on. 15288 # Make sure we can run config.sub. 15289 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 15290 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 15291 15292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 15293 $as_echo_n "checking build system type... " >&6; } 15294 if ${ac_cv_build+:} false; then : 15295 $as_echo_n "(cached) " >&6 15296 else 15297 ac_build_alias=$build_alias 15298 test "x$ac_build_alias" = x && 15299 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 15300 test "x$ac_build_alias" = x && 15301 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 15302 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 15303 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 15304 15305 fi 15306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 15307 $as_echo "$ac_cv_build" >&6; } 15308 case $ac_cv_build in 15309 *-*-*) ;; 15310 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 15311 esac 15312 build=$ac_cv_build 15313 ac_save_IFS=$IFS; IFS='-' 15314 set x $ac_cv_build 15315 shift 15316 build_cpu=$1 15317 build_vendor=$2 15318 shift; shift 15319 # Remember, the first character of IFS is used to create $*, 15320 # except with old shells: 15321 build_os=$* 15322 IFS=$ac_save_IFS 15323 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 15324 15325 15326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 15327 $as_echo_n "checking host system type... " >&6; } 15328 if ${ac_cv_host+:} false; then : 15329 $as_echo_n "(cached) " >&6 15330 else 15331 if test "x$host_alias" = x; then 15332 ac_cv_host=$ac_cv_build 15333 else 15334 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 15335 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 15336 fi 15337 15338 fi 15339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 15340 $as_echo "$ac_cv_host" >&6; } 15341 case $ac_cv_host in 15342 *-*-*) ;; 15343 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 15344 esac 15345 host=$ac_cv_host 15346 ac_save_IFS=$IFS; IFS='-' 15347 set x $ac_cv_host 15348 shift 15349 host_cpu=$1 15350 host_vendor=$2 15351 shift; shift 15352 # Remember, the first character of IFS is used to create $*, 15353 # except with old shells: 15354 host_os=$* 15355 IFS=$ac_save_IFS 15356 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 15357 15358 15359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5 15360 $as_echo_n "checking target system type... " >&6; } 15361 if ${ac_cv_target+:} false; then : 15362 $as_echo_n "(cached) " >&6 15363 else 15364 if test "x$target_alias" = x; then 15365 ac_cv_target=$ac_cv_host 15366 else 15367 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` || 15368 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5 15369 fi 15370 15371 fi 15372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5 15373 $as_echo "$ac_cv_target" >&6; } 15374 case $ac_cv_target in 15375 *-*-*) ;; 15376 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;; 15377 esac 15378 target=$ac_cv_target 15379 ac_save_IFS=$IFS; IFS='-' 15380 set x $ac_cv_target 15381 shift 15382 target_cpu=$1 15383 target_vendor=$2 15384 shift; shift 15385 # Remember, the first character of IFS is used to create $*, 15386 # except with old shells: 15387 target_os=$* 15388 IFS=$ac_save_IFS 15389 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac 15390 15391 15392 # The aliases save the names the user supplied, while $host etc. 15393 # will get canonicalized. 15394 test -n "$target_alias" && 15395 test "$program_prefix$program_suffix$program_transform_name" = \ 15396 NONENONEs,x,x, && 15397 program_prefix=${target_alias}- 15398 15399 # Figure out the build and target systems. # Note that in autoconf terminology, "build" is obvious, but "target" 15400 # is confusing; it assumes you are cross-compiling a cross-compiler (!) and "target" is thus the target of the 15401 # product you're building. The target of this build is called "host". Since this is confusing to most people, we 15402 # have not adopted that system, but use "target" as the platform we are building for. In some places though we need 15403 # to use the configure naming style. 15404 15405 15406 15407 15408 15409 # Copy the autoconf trip/quadruplet verbatim to OPENJDK_TARGET_AUTOCONF_NAME 15410 # (from the autoconf "host") and OPENJDK_BUILD_AUTOCONF_NAME 15411 # Note that we might later on rewrite e.g. OPENJDK_TARGET_CPU due to reduced build, 15412 # but this will not change the value of OPENJDK_TARGET_AUTOCONF_NAME. 15413 OPENJDK_TARGET_AUTOCONF_NAME="$host" 15414 OPENJDK_BUILD_AUTOCONF_NAME="$build" 15415 15416 15417 15418 # Convert the autoconf OS/CPU value to our own data, into the VAR_OS/CPU variables. 15419 15420 case "$build_os" in 15421 *linux*) 15422 VAR_OS=linux 15423 VAR_OS_TYPE=unix 15424 ;; 15425 *solaris*) 15426 VAR_OS=solaris 15427 VAR_OS_TYPE=unix 15428 ;; 15429 *darwin*) 15430 VAR_OS=macosx 15431 VAR_OS_TYPE=unix 15432 ;; 15433 *bsd*) 15434 VAR_OS=bsd 15435 VAR_OS_TYPE=unix 15436 ;; 15437 *cygwin*) 15438 VAR_OS=windows 15439 VAR_OS_ENV=windows.cygwin 15440 ;; 15441 *mingw*) 15442 VAR_OS=windows 15443 VAR_OS_ENV=windows.msys 15444 ;; 15445 *aix*) 15446 VAR_OS=aix 15447 VAR_OS_TYPE=unix 15448 ;; 15449 *) 15450 as_fn_error $? "unsupported operating system $build_os" "$LINENO" 5 15451 ;; 15452 esac 15453 15454 15455 # First argument is the cpu name from the trip/quad 15456 case "$build_cpu" in 15457 x86_64) 15458 VAR_CPU=x86_64 15459 VAR_CPU_ARCH=x86 15460 VAR_CPU_BITS=64 15461 VAR_CPU_ENDIAN=little 15462 ;; 15463 i?86) 15464 VAR_CPU=x86 15465 VAR_CPU_ARCH=x86 15466 VAR_CPU_BITS=32 15467 VAR_CPU_ENDIAN=little 15468 ;; 15469 arm*) 15470 VAR_CPU=arm 15471 VAR_CPU_ARCH=arm 15472 VAR_CPU_BITS=32 15473 VAR_CPU_ENDIAN=little 15474 ;; 15475 aarch64) 15476 VAR_CPU=aarch64 15477 VAR_CPU_ARCH=aarch64 15478 VAR_CPU_BITS=64 15479 VAR_CPU_ENDIAN=little 15480 ;; 15481 powerpc) 15482 VAR_CPU=ppc 15483 VAR_CPU_ARCH=ppc 15484 VAR_CPU_BITS=32 15485 VAR_CPU_ENDIAN=big 15486 ;; 15487 powerpc64) 15488 VAR_CPU=ppc64 15489 VAR_CPU_ARCH=ppc 15490 VAR_CPU_BITS=64 15491 VAR_CPU_ENDIAN=big 15492 ;; 15493 powerpc64le) 15494 VAR_CPU=ppc64le 15495 VAR_CPU_ARCH=ppc 15496 VAR_CPU_BITS=64 15497 VAR_CPU_ENDIAN=little 15498 ;; 15499 s390) 15500 VAR_CPU=s390 15501 VAR_CPU_ARCH=s390 15502 VAR_CPU_BITS=32 15503 VAR_CPU_ENDIAN=big 15504 ;; 15505 s390x) 15506 VAR_CPU=s390x 15507 VAR_CPU_ARCH=s390 15508 VAR_CPU_BITS=64 15509 VAR_CPU_ENDIAN=big 15510 ;; 15511 sparc) 15512 VAR_CPU=sparc 15513 VAR_CPU_ARCH=sparc 15514 VAR_CPU_BITS=32 15515 VAR_CPU_ENDIAN=big 15516 ;; 15517 sparcv9|sparc64) 15518 VAR_CPU=sparcv9 15519 VAR_CPU_ARCH=sparc 15520 VAR_CPU_BITS=64 15521 VAR_CPU_ENDIAN=big 15522 ;; 15523 *) 15524 as_fn_error $? "unsupported cpu $build_cpu" "$LINENO" 5 15525 ;; 15526 esac 15527 15528 # ..and setup our own variables. (Do this explicitely to facilitate searching) 15529 OPENJDK_BUILD_OS="$VAR_OS" 15530 if test "x$VAR_OS_TYPE" != x; then 15531 OPENJDK_BUILD_OS_TYPE="$VAR_OS_TYPE" 15532 else 15533 OPENJDK_BUILD_OS_TYPE="$VAR_OS" 15534 fi 15535 if test "x$VAR_OS_ENV" != x; then 15536 OPENJDK_BUILD_OS_ENV="$VAR_OS_ENV" 15537 else 15538 OPENJDK_BUILD_OS_ENV="$VAR_OS" 15539 fi 15540 OPENJDK_BUILD_CPU="$VAR_CPU" 15541 OPENJDK_BUILD_CPU_ARCH="$VAR_CPU_ARCH" 15542 OPENJDK_BUILD_CPU_BITS="$VAR_CPU_BITS" 15543 OPENJDK_BUILD_CPU_ENDIAN="$VAR_CPU_ENDIAN" 15544 15545 15546 15547 15548 15549 15550 15551 15552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking openjdk-build os-cpu" >&5 15553 $as_echo_n "checking openjdk-build os-cpu... " >&6; } 15554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OPENJDK_BUILD_OS-$OPENJDK_BUILD_CPU" >&5 15555 $as_echo "$OPENJDK_BUILD_OS-$OPENJDK_BUILD_CPU" >&6; } 15556 15557 # Convert the autoconf OS/CPU value to our own data, into the VAR_OS/CPU variables. 15558 15559 case "$host_os" in 15560 *linux*) 15561 VAR_OS=linux 15562 VAR_OS_TYPE=unix 15563 ;; 15564 *solaris*) 15565 VAR_OS=solaris 15566 VAR_OS_TYPE=unix 15567 ;; 15568 *darwin*) 15569 VAR_OS=macosx 15570 VAR_OS_TYPE=unix 15571 ;; 15572 *bsd*) 15573 VAR_OS=bsd 15574 VAR_OS_TYPE=unix 15575 ;; 15576 *cygwin*) 15577 VAR_OS=windows 15578 VAR_OS_ENV=windows.cygwin 15579 ;; 15580 *mingw*) 15581 VAR_OS=windows 15582 VAR_OS_ENV=windows.msys 15583 ;; 15584 *aix*) 15585 VAR_OS=aix 15586 VAR_OS_TYPE=unix 15587 ;; 15588 *) 15589 as_fn_error $? "unsupported operating system $host_os" "$LINENO" 5 15590 ;; 15591 esac 15592 15593 15594 # First argument is the cpu name from the trip/quad 15595 case "$host_cpu" in 15596 x86_64) 15597 VAR_CPU=x86_64 15598 VAR_CPU_ARCH=x86 15599 VAR_CPU_BITS=64 15600 VAR_CPU_ENDIAN=little 15601 ;; 15602 i?86) 15603 VAR_CPU=x86 15604 VAR_CPU_ARCH=x86 15605 VAR_CPU_BITS=32 15606 VAR_CPU_ENDIAN=little 15607 ;; 15608 arm*) 15609 VAR_CPU=arm 15610 VAR_CPU_ARCH=arm 15611 VAR_CPU_BITS=32 15612 VAR_CPU_ENDIAN=little 15613 ;; 15614 aarch64) 15615 VAR_CPU=aarch64 15616 VAR_CPU_ARCH=aarch64 15617 VAR_CPU_BITS=64 15618 VAR_CPU_ENDIAN=little 15619 ;; 15620 powerpc) 15621 VAR_CPU=ppc 15622 VAR_CPU_ARCH=ppc 15623 VAR_CPU_BITS=32 15624 VAR_CPU_ENDIAN=big 15625 ;; 15626 powerpc64) 15627 VAR_CPU=ppc64 15628 VAR_CPU_ARCH=ppc 15629 VAR_CPU_BITS=64 15630 VAR_CPU_ENDIAN=big 15631 ;; 15632 powerpc64le) 15633 VAR_CPU=ppc64le 15634 VAR_CPU_ARCH=ppc 15635 VAR_CPU_BITS=64 15636 VAR_CPU_ENDIAN=little 15637 ;; 15638 s390) 15639 VAR_CPU=s390 15640 VAR_CPU_ARCH=s390 15641 VAR_CPU_BITS=32 15642 VAR_CPU_ENDIAN=big 15643 ;; 15644 s390x) 15645 VAR_CPU=s390x 15646 VAR_CPU_ARCH=s390 15647 VAR_CPU_BITS=64 15648 VAR_CPU_ENDIAN=big 15649 ;; 15650 sparc) 15651 VAR_CPU=sparc 15652 VAR_CPU_ARCH=sparc 15653 VAR_CPU_BITS=32 15654 VAR_CPU_ENDIAN=big 15655 ;; 15656 sparcv9|sparc64) 15657 VAR_CPU=sparcv9 15658 VAR_CPU_ARCH=sparc 15659 VAR_CPU_BITS=64 15660 VAR_CPU_ENDIAN=big 15661 ;; 15662 *) 15663 as_fn_error $? "unsupported cpu $host_cpu" "$LINENO" 5 15664 ;; 15665 esac 15666 15667 # ... and setup our own variables. (Do this explicitely to facilitate searching) 15668 OPENJDK_TARGET_OS="$VAR_OS" 15669 if test "x$VAR_OS_TYPE" != x; then 15670 OPENJDK_TARGET_OS_TYPE="$VAR_OS_TYPE" 15671 else 15672 OPENJDK_TARGET_OS_TYPE="$VAR_OS" 15673 fi 15674 if test "x$VAR_OS_ENV" != x; then 15675 OPENJDK_TARGET_OS_ENV="$VAR_OS_ENV" 15676 else 15677 OPENJDK_TARGET_OS_ENV="$VAR_OS" 15678 fi 15679 OPENJDK_TARGET_CPU="$VAR_CPU" 15680 OPENJDK_TARGET_CPU_ARCH="$VAR_CPU_ARCH" 15681 OPENJDK_TARGET_CPU_BITS="$VAR_CPU_BITS" 15682 OPENJDK_TARGET_CPU_ENDIAN="$VAR_CPU_ENDIAN" 15683 15684 15685 15686 15687 15688 15689 15690 15691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking openjdk-target os-cpu" >&5 15692 $as_echo_n "checking openjdk-target os-cpu... " >&6; } 15693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OPENJDK_TARGET_OS-$OPENJDK_TARGET_CPU" >&5 15694 $as_echo "$OPENJDK_TARGET_OS-$OPENJDK_TARGET_CPU" >&6; } 15695 15696 15697 15698 # Check whether --with-target-bits was given. 15699 if test "${with_target_bits+set}" = set; then : 15700 withval=$with_target_bits; 15701 fi 15702 15703 15704 # We have three types of compiles: 15705 # native == normal compilation, target system == build system 15706 # cross == traditional cross compilation, target system != build system; special toolchain needed 15707 # reduced == using native compilers, but with special flags (e.g. -m32) to produce 32-bit builds on 64-bit machines 15708 # 15709 if test "x$OPENJDK_BUILD_AUTOCONF_NAME" != "x$OPENJDK_TARGET_AUTOCONF_NAME"; then 15710 # We're doing a proper cross-compilation 15711 COMPILE_TYPE="cross" 15712 else 15713 COMPILE_TYPE="native" 15714 fi 15715 15716 if test "x$with_target_bits" != x; then 15717 if test "x$COMPILE_TYPE" = "xcross"; then 15718 as_fn_error $? "It is not possible to combine --with-target-bits=X and proper cross-compilation. Choose either." "$LINENO" 5 15719 fi 15720 15721 if test "x$with_target_bits" = x32 && test "x$OPENJDK_TARGET_CPU_BITS" = x64; then 15722 # A reduced build is requested 15723 COMPILE_TYPE="reduced" 15724 OPENJDK_TARGET_CPU_BITS=32 15725 if test "x$OPENJDK_TARGET_CPU_ARCH" = "xx86"; then 15726 OPENJDK_TARGET_CPU=x86 15727 elif test "x$OPENJDK_TARGET_CPU_ARCH" = "xsparc"; then 15728 OPENJDK_TARGET_CPU=sparc 15729 else 15730 as_fn_error $? "Reduced build (--with-target-bits=32) is only supported on x86_64 and sparcv9" "$LINENO" 5 15731 fi 15732 elif test "x$with_target_bits" = x64 && test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 15733 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 15734 elif test "x$with_target_bits" = "x$OPENJDK_TARGET_CPU_BITS"; then 15735 { $as_echo "$as_me:${as_lineno-$LINENO}: --with-target-bits are set to build platform address size; argument has no meaning" >&5 15736 $as_echo "$as_me: --with-target-bits are set to build platform address size; argument has no meaning" >&6;} 15737 else 15738 as_fn_error $? "--with-target-bits can only be 32 or 64, you specified $with_target_bits!" "$LINENO" 5 15739 fi 15740 fi 15741 15742 15743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking compilation type" >&5 15744 $as_echo_n "checking compilation type... " >&6; } 15745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $COMPILE_TYPE" >&5 15746 $as_echo "$COMPILE_TYPE" >&6; } 15747 15748 15749 if test "x$OPENJDK_TARGET_OS" = "xsolaris"; then 15750 REQUIRED_OS_NAME=SunOS 15751 REQUIRED_OS_VERSION=5.10 15752 fi 15753 if test "x$OPENJDK_TARGET_OS" = "xlinux"; then 15754 REQUIRED_OS_NAME=Linux 15755 REQUIRED_OS_VERSION=2.6 15756 fi 15757 if test "x$OPENJDK_TARGET_OS" = "xwindows"; then 15758 REQUIRED_OS_NAME=Windows 15759 if test "x$OPENJDK_TARGET_CPU_BITS" = "x64"; then 15760 REQUIRED_OS_VERSION=5.2 15761 else 15762 REQUIRED_OS_VERSION=5.1 15763 fi 15764 fi 15765 if test "x$OPENJDK_TARGET_OS" = "xmacosx"; then 15766 REQUIRED_OS_NAME=Darwin 15767 REQUIRED_OS_VERSION=11.2 15768 fi 15769 if test "x$OPENJDK_TARGET_OS" = "xaix"; then 15770 REQUIRED_OS_NAME=AIX 15771 REQUIRED_OS_VERSION=7.1 15772 fi 15773 15774 15775 15776 15777 15778 15779 # Also store the legacy naming of the cpu. 15780 # Ie i586 and amd64 instead of x86 and x86_64 15781 OPENJDK_TARGET_CPU_LEGACY="$OPENJDK_TARGET_CPU" 15782 if test "x$OPENJDK_TARGET_CPU" = xx86; then 15783 OPENJDK_TARGET_CPU_LEGACY="i586" 15784 elif test "x$OPENJDK_TARGET_OS" != xmacosx && test "x$OPENJDK_TARGET_CPU" = xx86_64; then 15785 # On all platforms except MacOSX replace x86_64 with amd64. 15786 OPENJDK_TARGET_CPU_LEGACY="amd64" 15787 fi 15788 15789 15790 # And the second legacy naming of the cpu. 15791 # Ie i386 and amd64 instead of x86 and x86_64. 15792 OPENJDK_TARGET_CPU_LEGACY_LIB="$OPENJDK_TARGET_CPU" 15793 if test "x$OPENJDK_TARGET_CPU" = xx86; then 15794 OPENJDK_TARGET_CPU_LEGACY_LIB="i386" 15795 elif test "x$OPENJDK_TARGET_CPU" = xx86_64; then 15796 OPENJDK_TARGET_CPU_LEGACY_LIB="amd64" 15797 fi 15798 15799 15800 # This is the name of the cpu (but using i386 and amd64 instead of 15801 # x86 and x86_64, respectively), preceeded by a /, to be used when 15802 # locating libraries. On macosx, it's empty, though. 15803 OPENJDK_TARGET_CPU_LIBDIR="/$OPENJDK_TARGET_CPU_LEGACY_LIB" 15804 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 15805 OPENJDK_TARGET_CPU_LIBDIR="" 15806 fi 15807 15808 15809 # OPENJDK_TARGET_CPU_ISADIR is normally empty. On 64-bit Solaris systems, it is set to 15810 # /amd64 or /sparcv9. This string is appended to some library paths, like this: 15811 # /usr/lib${OPENJDK_TARGET_CPU_ISADIR}/libexample.so 15812 OPENJDK_TARGET_CPU_ISADIR="" 15813 if test "x$OPENJDK_TARGET_OS" = xsolaris; then 15814 if test "x$OPENJDK_TARGET_CPU" = xx86_64; then 15815 OPENJDK_TARGET_CPU_ISADIR="/amd64" 15816 elif test "x$OPENJDK_TARGET_CPU" = xsparcv9; then 15817 OPENJDK_TARGET_CPU_ISADIR="/sparcv9" 15818 fi 15819 fi 15820 15821 15822 # Setup OPENJDK_TARGET_CPU_OSARCH, which is used to set the os.arch Java system property 15823 OPENJDK_TARGET_CPU_OSARCH="$OPENJDK_TARGET_CPU" 15824 if test "x$OPENJDK_TARGET_OS" = xlinux && test "x$OPENJDK_TARGET_CPU" = xx86; then 15825 # On linux only, we replace x86 with i386. 15826 OPENJDK_TARGET_CPU_OSARCH="i386" 15827 elif test "x$OPENJDK_TARGET_OS" != xmacosx && test "x$OPENJDK_TARGET_CPU" = xx86_64; then 15828 # On all platforms except macosx, we replace x86_64 with amd64. 15829 OPENJDK_TARGET_CPU_OSARCH="amd64" 15830 fi 15831 15832 15833 OPENJDK_TARGET_CPU_JLI="$OPENJDK_TARGET_CPU" 15834 if test "x$OPENJDK_TARGET_CPU" = xx86; then 15835 OPENJDK_TARGET_CPU_JLI="i386" 15836 elif test "x$OPENJDK_TARGET_OS" != xmacosx && test "x$OPENJDK_TARGET_CPU" = xx86_64; then 15837 # On all platforms except macosx, we replace x86_64 with amd64. 15838 OPENJDK_TARGET_CPU_JLI="amd64" 15839 fi 15840 # Now setup the -D flags for building libjli. 15841 OPENJDK_TARGET_CPU_JLI_CFLAGS="-DLIBARCHNAME='\"$OPENJDK_TARGET_CPU_JLI\"'" 15842 if test "x$OPENJDK_TARGET_OS" = xsolaris; then 15843 if test "x$OPENJDK_TARGET_CPU_ARCH" = xsparc; then 15844 OPENJDK_TARGET_CPU_JLI_CFLAGS="$OPENJDK_TARGET_CPU_JLI_CFLAGS -DLIBARCH32NAME='\"sparc\"' -DLIBARCH64NAME='\"sparcv9\"'" 15845 elif test "x$OPENJDK_TARGET_CPU_ARCH" = xx86; then 15846 OPENJDK_TARGET_CPU_JLI_CFLAGS="$OPENJDK_TARGET_CPU_JLI_CFLAGS -DLIBARCH32NAME='\"i386\"' -DLIBARCH64NAME='\"amd64\"'" 15847 fi 15848 fi 15849 15850 15851 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 15852 OPENJDK_TARGET_OS_EXPORT_DIR=macosx 15853 else 15854 OPENJDK_TARGET_OS_EXPORT_DIR=${OPENJDK_TARGET_OS_TYPE} 15855 fi 15856 15857 15858 # The new version string in JDK 9 also defined new naming of OS and ARCH for bundles 15859 # Macosx is osx and x86_64 is x64 15860 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 15861 OPENJDK_TARGET_OS_BUNDLE="osx" 15862 else 15863 OPENJDK_TARGET_OS_BUNDLE="$OPENJDK_TARGET_OS" 15864 fi 15865 if test "x$OPENJDK_TARGET_CPU" = xx86_64; then 15866 OPENJDK_TARGET_CPU_BUNDLE="x64" 15867 else 15868 OPENJDK_TARGET_CPU_BUNDLE="$OPENJDK_TARGET_CPU" 15869 fi 15870 OPENJDK_TARGET_BUNDLE_PLATFORM="${OPENJDK_TARGET_OS_BUNDLE}-${OPENJDK_TARGET_CPU_BUNDLE}" 15871 15872 15873 15874 15875 if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then 15876 A_LP64="LP64:=" 15877 # -D_LP64=1 is only set on linux and mac. Setting on windows causes diff in 15878 # unpack200.exe 15879 if test "x$OPENJDK_TARGET_OS" = xlinux || test "x$OPENJDK_TARGET_OS" = xmacosx; then 15880 OPENJDK_TARGET_ADD_LP64="-D_LP64=1" 15881 fi 15882 fi 15883 LP64=$A_LP64 15884 15885 15886 if test "x$COMPILE_TYPE" = "xcross"; then 15887 # FIXME: ... or should this include reduced builds..? 15888 DEFINE_CROSS_COMPILE_ARCH="CROSS_COMPILE_ARCH:=$OPENJDK_TARGET_CPU_LEGACY" 15889 else 15890 DEFINE_CROSS_COMPILE_ARCH="" 15891 fi 15892 15893 15894 # Convert openjdk platform names to hotspot names 15895 15896 HOTSPOT_TARGET_OS=${OPENJDK_TARGET_OS} 15897 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 15898 HOTSPOT_TARGET_OS=bsd 15899 fi 15900 15901 15902 HOTSPOT_TARGET_OS_TYPE=${OPENJDK_TARGET_OS_TYPE} 15903 if test "x$OPENJDK_TARGET_OS_TYPE" = xunix; then 15904 HOTSPOT_TARGET_OS_TYPE=posix 15905 fi 15906 15907 15908 HOTSPOT_TARGET_CPU=${OPENJDK_TARGET_CPU} 15909 if test "x$OPENJDK_TARGET_CPU" = xx86; then 15910 HOTSPOT_TARGET_CPU=x86_32 15911 elif test "x$OPENJDK_TARGET_CPU" = xsparcv9; then 15912 HOTSPOT_TARGET_CPU=sparc 15913 elif test "x$OPENJDK_TARGET_CPU" = xppc64; then 15914 HOTSPOT_TARGET_CPU=ppc_64 15915 elif test "x$OPENJDK_TARGET_CPU" = xppc64le; then 15916 HOTSPOT_TARGET_CPU=ppc_64 15917 fi 15918 15919 15920 # This is identical with OPENJDK_*, but define anyway for consistency. 15921 HOTSPOT_TARGET_CPU_ARCH=${OPENJDK_TARGET_CPU_ARCH} 15922 15923 15924 # Setup HOTSPOT_TARGET_CPU_DEFINE 15925 if test "x$OPENJDK_TARGET_CPU" = xx86; then 15926 HOTSPOT_TARGET_CPU_DEFINE=IA32 15927 elif test "x$OPENJDK_TARGET_CPU" = xx86_64; then 15928 HOTSPOT_TARGET_CPU_DEFINE=AMD64 15929 elif test "x$OPENJDK_TARGET_CPU" = xsparcv9; then 15930 HOTSPOT_TARGET_CPU_DEFINE=SPARC 15931 elif test "x$OPENJDK_TARGET_CPU" = xaarch64; then 15932 HOTSPOT_TARGET_CPU_DEFINE=AARCH64 15933 elif test "x$OPENJDK_TARGET_CPU" = xppc64; then 15934 HOTSPOT_TARGET_CPU_DEFINE=PPC64 15935 elif test "x$OPENJDK_TARGET_CPU" = xppc64le; then 15936 HOTSPOT_TARGET_CPU_DEFINE=PPC64 15937 15938 # The cpu defines below are for zero, we don't support them directly. 15939 elif test "x$OPENJDK_TARGET_CPU" = xsparc; then 15940 HOTSPOT_TARGET_CPU_DEFINE=SPARC 15941 elif test "x$OPENJDK_TARGET_CPU" = xppc; then 15942 HOTSPOT_TARGET_CPU_DEFINE=PPC32 15943 elif test "x$OPENJDK_TARGET_CPU" = xs390; then 15944 HOTSPOT_TARGET_CPU_DEFINE=S390 15945 elif test "x$OPENJDK_TARGET_CPU" = xs390x; then 15946 HOTSPOT_TARGET_CPU_DEFINE=S390 15947 fi 15948 15949 15950 15951 15952 # Also store the legacy naming of the cpu. 15953 # Ie i586 and amd64 instead of x86 and x86_64 15954 OPENJDK_BUILD_CPU_LEGACY="$OPENJDK_BUILD_CPU" 15955 if test "x$OPENJDK_BUILD_CPU" = xx86; then 15956 OPENJDK_BUILD_CPU_LEGACY="i586" 15957 elif test "x$OPENJDK_BUILD_OS" != xmacosx && test "x$OPENJDK_BUILD_CPU" = xx86_64; then 15958 # On all platforms except MacOSX replace x86_64 with amd64. 15959 OPENJDK_BUILD_CPU_LEGACY="amd64" 15960 fi 15961 15962 15963 # And the second legacy naming of the cpu. 15964 # Ie i386 and amd64 instead of x86 and x86_64. 15965 OPENJDK_BUILD_CPU_LEGACY_LIB="$OPENJDK_BUILD_CPU" 15966 if test "x$OPENJDK_BUILD_CPU" = xx86; then 15967 OPENJDK_BUILD_CPU_LEGACY_LIB="i386" 15968 elif test "x$OPENJDK_BUILD_CPU" = xx86_64; then 15969 OPENJDK_BUILD_CPU_LEGACY_LIB="amd64" 15970 fi 15971 15972 15973 # This is the name of the cpu (but using i386 and amd64 instead of 15974 # x86 and x86_64, respectively), preceeded by a /, to be used when 15975 # locating libraries. On macosx, it's empty, though. 15976 OPENJDK_BUILD_CPU_LIBDIR="/$OPENJDK_BUILD_CPU_LEGACY_LIB" 15977 if test "x$OPENJDK_BUILD_OS" = xmacosx; then 15978 OPENJDK_BUILD_CPU_LIBDIR="" 15979 fi 15980 15981 15982 # OPENJDK_BUILD_CPU_ISADIR is normally empty. On 64-bit Solaris systems, it is set to 15983 # /amd64 or /sparcv9. This string is appended to some library paths, like this: 15984 # /usr/lib${OPENJDK_BUILD_CPU_ISADIR}/libexample.so 15985 OPENJDK_BUILD_CPU_ISADIR="" 15986 if test "x$OPENJDK_BUILD_OS" = xsolaris; then 15987 if test "x$OPENJDK_BUILD_CPU" = xx86_64; then 15988 OPENJDK_BUILD_CPU_ISADIR="/amd64" 15989 elif test "x$OPENJDK_BUILD_CPU" = xsparcv9; then 15990 OPENJDK_BUILD_CPU_ISADIR="/sparcv9" 15991 fi 15992 fi 15993 15994 15995 # Setup OPENJDK_BUILD_CPU_OSARCH, which is used to set the os.arch Java system property 15996 OPENJDK_BUILD_CPU_OSARCH="$OPENJDK_BUILD_CPU" 15997 if test "x$OPENJDK_BUILD_OS" = xlinux && test "x$OPENJDK_BUILD_CPU" = xx86; then 15998 # On linux only, we replace x86 with i386. 15999 OPENJDK_BUILD_CPU_OSARCH="i386" 16000 elif test "x$OPENJDK_BUILD_OS" != xmacosx && test "x$OPENJDK_BUILD_CPU" = xx86_64; then 16001 # On all platforms except macosx, we replace x86_64 with amd64. 16002 OPENJDK_BUILD_CPU_OSARCH="amd64" 16003 fi 16004 16005 16006 OPENJDK_BUILD_CPU_JLI="$OPENJDK_BUILD_CPU" 16007 if test "x$OPENJDK_BUILD_CPU" = xx86; then 16008 OPENJDK_BUILD_CPU_JLI="i386" 16009 elif test "x$OPENJDK_BUILD_OS" != xmacosx && test "x$OPENJDK_BUILD_CPU" = xx86_64; then 16010 # On all platforms except macosx, we replace x86_64 with amd64. 16011 OPENJDK_BUILD_CPU_JLI="amd64" 16012 fi 16013 # Now setup the -D flags for building libjli. 16014 OPENJDK_BUILD_CPU_JLI_CFLAGS="-DLIBARCHNAME='\"$OPENJDK_BUILD_CPU_JLI\"'" 16015 if test "x$OPENJDK_BUILD_OS" = xsolaris; then 16016 if test "x$OPENJDK_BUILD_CPU_ARCH" = xsparc; then 16017 OPENJDK_BUILD_CPU_JLI_CFLAGS="$OPENJDK_BUILD_CPU_JLI_CFLAGS -DLIBARCH32NAME='\"sparc\"' -DLIBARCH64NAME='\"sparcv9\"'" 16018 elif test "x$OPENJDK_BUILD_CPU_ARCH" = xx86; then 16019 OPENJDK_BUILD_CPU_JLI_CFLAGS="$OPENJDK_BUILD_CPU_JLI_CFLAGS -DLIBARCH32NAME='\"i386\"' -DLIBARCH64NAME='\"amd64\"'" 16020 fi 16021 fi 16022 16023 16024 if test "x$OPENJDK_BUILD_OS" = xmacosx; then 16025 OPENJDK_BUILD_OS_EXPORT_DIR=macosx 16026 else 16027 OPENJDK_BUILD_OS_EXPORT_DIR=${OPENJDK_BUILD_OS_TYPE} 16028 fi 16029 16030 16031 # The new version string in JDK 9 also defined new naming of OS and ARCH for bundles 16032 # Macosx is osx and x86_64 is x64 16033 if test "x$OPENJDK_BUILD_OS" = xmacosx; then 16034 OPENJDK_BUILD_OS_BUNDLE="osx" 16035 else 16036 OPENJDK_BUILD_OS_BUNDLE="$OPENJDK_TARGET_OS" 16037 fi 16038 if test "x$OPENJDK_BUILD_CPU" = xx86_64; then 16039 OPENJDK_BUILD_CPU_BUNDLE="x64" 16040 else 16041 OPENJDK_BUILD_CPU_BUNDLE="$OPENJDK_BUILD_CPU" 16042 fi 16043 OPENJDK_BUILD_BUNDLE_PLATFORM="${OPENJDK_BUILD_OS_BUNDLE}-${OPENJDK_BUILD_CPU_BUNDLE}" 16044 16045 16046 16047 16048 if test "x$OPENJDK_BUILD_CPU_BITS" = x64; then 16049 A_LP64="LP64:=" 16050 # -D_LP64=1 is only set on linux and mac. Setting on windows causes diff in 16051 # unpack200.exe 16052 if test "x$OPENJDK_BUILD_OS" = xlinux || test "x$OPENJDK_BUILD_OS" = xmacosx; then 16053 OPENJDK_BUILD_ADD_LP64="-D_LP64=1" 16054 fi 16055 fi 16056 LP64=$A_LP64 16057 16058 16059 if test "x$COMPILE_TYPE" = "xcross"; then 16060 # FIXME: ... or should this include reduced builds..? 16061 DEFINE_CROSS_COMPILE_ARCH="CROSS_COMPILE_ARCH:=$OPENJDK_BUILD_CPU_LEGACY" 16062 else 16063 DEFINE_CROSS_COMPILE_ARCH="" 16064 fi 16065 16066 16067 # Convert openjdk platform names to hotspot names 16068 16069 HOTSPOT_BUILD_OS=${OPENJDK_BUILD_OS} 16070 if test "x$OPENJDK_BUILD_OS" = xmacosx; then 16071 HOTSPOT_BUILD_OS=bsd 16072 fi 16073 16074 16075 HOTSPOT_BUILD_OS_TYPE=${OPENJDK_BUILD_OS_TYPE} 16076 if test "x$OPENJDK_BUILD_OS_TYPE" = xunix; then 16077 HOTSPOT_BUILD_OS_TYPE=posix 16078 fi 16079 16080 16081 HOTSPOT_BUILD_CPU=${OPENJDK_BUILD_CPU} 16082 if test "x$OPENJDK_BUILD_CPU" = xx86; then 16083 HOTSPOT_BUILD_CPU=x86_32 16084 elif test "x$OPENJDK_BUILD_CPU" = xsparcv9; then 16085 HOTSPOT_BUILD_CPU=sparc 16086 elif test "x$OPENJDK_BUILD_CPU" = xppc64; then 16087 HOTSPOT_BUILD_CPU=ppc_64 16088 elif test "x$OPENJDK_BUILD_CPU" = xppc64le; then 16089 HOTSPOT_BUILD_CPU=ppc_64 16090 fi 16091 16092 16093 # This is identical with OPENJDK_*, but define anyway for consistency. 16094 HOTSPOT_BUILD_CPU_ARCH=${OPENJDK_BUILD_CPU_ARCH} 16095 16096 16097 # Setup HOTSPOT_BUILD_CPU_DEFINE 16098 if test "x$OPENJDK_BUILD_CPU" = xx86; then 16099 HOTSPOT_BUILD_CPU_DEFINE=IA32 16100 elif test "x$OPENJDK_BUILD_CPU" = xx86_64; then 16101 HOTSPOT_BUILD_CPU_DEFINE=AMD64 16102 elif test "x$OPENJDK_BUILD_CPU" = xsparcv9; then 16103 HOTSPOT_BUILD_CPU_DEFINE=SPARC 16104 elif test "x$OPENJDK_BUILD_CPU" = xaarch64; then 16105 HOTSPOT_BUILD_CPU_DEFINE=AARCH64 16106 elif test "x$OPENJDK_BUILD_CPU" = xppc64; then 16107 HOTSPOT_BUILD_CPU_DEFINE=PPC64 16108 elif test "x$OPENJDK_BUILD_CPU" = xppc64le; then 16109 HOTSPOT_BUILD_CPU_DEFINE=PPC64 16110 16111 # The cpu defines below are for zero, we don't support them directly. 16112 elif test "x$OPENJDK_BUILD_CPU" = xsparc; then 16113 HOTSPOT_BUILD_CPU_DEFINE=SPARC 16114 elif test "x$OPENJDK_BUILD_CPU" = xppc; then 16115 HOTSPOT_BUILD_CPU_DEFINE=PPC32 16116 elif test "x$OPENJDK_BUILD_CPU" = xs390; then 16117 HOTSPOT_BUILD_CPU_DEFINE=S390 16118 elif test "x$OPENJDK_BUILD_CPU" = xs390x; then 16119 HOTSPOT_BUILD_CPU_DEFINE=S390 16120 fi 16121 16122 16123 16124 16125 # ZERO_ARCHDEF is used to enable architecture-specific code. 16126 # This is used in legacy hotspot build. 16127 ZERO_ARCHDEF="$HOTSPOT_TARGET_CPU_DEFINE" 16128 16129 16130 16131 16132 16133 # Continue setting up basic stuff. Most remaining code require fundamental tools. 16134 16135 # Save the current directory this script was started from 16136 CURDIR="$PWD" 16137 16138 # We might need to rewrite ORIGINAL_PATH, if it includes "#", to quote them 16139 # for make. We couldn't do this when we retrieved ORIGINAL_PATH, since SED 16140 # was not available at that time. 16141 REWRITTEN_PATH=`$ECHO "$ORIGINAL_PATH" | $SED -e 's/#/\\\\#/g'` 16142 if test "x$REWRITTEN_PATH" != "x$ORIGINAL_PATH"; then 16143 ORIGINAL_PATH="$REWRITTEN_PATH" 16144 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting ORIGINAL_PATH to $REWRITTEN_PATH" >&5 16145 $as_echo "$as_me: Rewriting ORIGINAL_PATH to $REWRITTEN_PATH" >&6;} 16146 fi 16147 16148 if test "x$OPENJDK_TARGET_OS" = "xwindows"; then 16149 PATH_SEP=";" 16150 16151 SRC_ROOT_LENGTH=`$THEPWDCMD -L|$WC -m` 16152 if test $SRC_ROOT_LENGTH -gt 100; then 16153 as_fn_error $? "Your base path is too long. It is $SRC_ROOT_LENGTH characters long, but only 100 is supported" "$LINENO" 5 16154 fi 16155 16156 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 16157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking cygwin release" >&5 16158 $as_echo_n "checking cygwin release... " >&6; } 16159 CYGWIN_VERSION=`$UNAME -r` 16160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CYGWIN_VERSION" >&5 16161 $as_echo "$CYGWIN_VERSION" >&6; } 16162 WINDOWS_ENV_VENDOR='cygwin' 16163 WINDOWS_ENV_VERSION="$CYGWIN_VERSION" 16164 16165 CYGWIN_VERSION_OLD=`$ECHO $CYGWIN_VERSION | $GREP -e '^1\.0-6'` 16166 if test "x$CYGWIN_VERSION_OLD" != x; then 16167 { $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 16168 $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;} 16169 as_fn_error $? "Cannot continue" "$LINENO" 5 16170 fi 16171 if test "x$CYGPATH" = x; then 16172 as_fn_error $? "Something is wrong with your cygwin installation since I cannot find cygpath.exe in your path" "$LINENO" 5 16173 fi 16174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking cygwin root directory as unix-style path" >&5 16175 $as_echo_n "checking cygwin root directory as unix-style path... " >&6; } 16176 # The cmd output ends with Windows line endings (CR/LF), the grep command will strip that away 16177 cygwin_winpath_root=`cd / ; cmd /c cd | $GREP ".*"` 16178 # Force cygpath to report the proper root by including a trailing space, and then stripping it off again. 16179 CYGWIN_ROOT_PATH=`$CYGPATH -u "$cygwin_winpath_root " | $CUT -f 1 -d " "` 16180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CYGWIN_ROOT_PATH" >&5 16181 $as_echo "$CYGWIN_ROOT_PATH" >&6; } 16182 WINDOWS_ENV_ROOT_PATH="$CYGWIN_ROOT_PATH" 16183 test_cygdrive_prefix=`$ECHO $CYGWIN_ROOT_PATH | $GREP ^/cygdrive/` 16184 if test "x$test_cygdrive_prefix" = x; then 16185 as_fn_error $? "Your cygdrive prefix is not /cygdrive. This is currently not supported. Change with mount -c." "$LINENO" 5 16186 fi 16187 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 16188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking msys release" >&5 16189 $as_echo_n "checking msys release... " >&6; } 16190 MSYS_VERSION=`$UNAME -r` 16191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSYS_VERSION" >&5 16192 $as_echo "$MSYS_VERSION" >&6; } 16193 16194 WINDOWS_ENV_VENDOR='msys' 16195 WINDOWS_ENV_VERSION="$MSYS_VERSION" 16196 16197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking msys root directory as unix-style path" >&5 16198 $as_echo_n "checking msys root directory as unix-style path... " >&6; } 16199 # The cmd output ends with Windows line endings (CR/LF), the grep command will strip that away 16200 MSYS_ROOT_PATH=`cd / ; cmd /c cd | $GREP ".*"` 16201 16202 windows_path="$MSYS_ROOT_PATH" 16203 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 16204 unix_path=`$CYGPATH -u "$windows_path"` 16205 MSYS_ROOT_PATH="$unix_path" 16206 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 16207 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 16208 MSYS_ROOT_PATH="$unix_path" 16209 fi 16210 16211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSYS_ROOT_PATH" >&5 16212 $as_echo "$MSYS_ROOT_PATH" >&6; } 16213 WINDOWS_ENV_ROOT_PATH="$MSYS_ROOT_PATH" 16214 else 16215 as_fn_error $? "Unknown Windows environment. Neither cygwin nor msys was detected." "$LINENO" 5 16216 fi 16217 16218 # Test if windows or unix (cygwin/msys) find is first in path. 16219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what kind of 'find' is first on the PATH" >&5 16220 $as_echo_n "checking what kind of 'find' is first on the PATH... " >&6; } 16221 FIND_BINARY_OUTPUT=`find --version 2>&1` 16222 if test "x`echo $FIND_BINARY_OUTPUT | $GREP GNU`" != x; then 16223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unix style" >&5 16224 $as_echo "unix style" >&6; } 16225 elif test "x`echo $FIND_BINARY_OUTPUT | $GREP FIND`" != x; then 16226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Windows" >&5 16227 $as_echo "Windows" >&6; } 16228 { $as_echo "$as_me:${as_lineno-$LINENO}: Your path contains Windows tools (C:\Windows\system32) before your unix (cygwin or msys) tools." >&5 16229 $as_echo "$as_me: Your path contains Windows tools (C:\Windows\system32) before your unix (cygwin or msys) tools." >&6;} 16230 { $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 16231 $as_echo "$as_me: This will not work. Please correct and make sure /usr/bin (or similar) is first in path." >&6;} 16232 as_fn_error $? "Cannot continue" "$LINENO" 5 16233 else 16234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unknown" >&5 16235 $as_echo "unknown" >&6; } 16236 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: It seems that your find utility is non-standard." >&5 16237 $as_echo "$as_me: WARNING: It seems that your find utility is non-standard." >&2;} 16238 fi 16239 16240 else 16241 PATH_SEP=":" 16242 fi 16243 16244 16245 # We get the top-level directory from the supporting wrappers. 16246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for top-level directory" >&5 16247 $as_echo_n "checking for top-level directory... " >&6; } 16248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOPDIR" >&5 16249 $as_echo "$TOPDIR" >&6; } 16250 16251 16252 # Save the original version of TOPDIR for string comparisons 16253 ORIGINAL_TOPDIR="$TOPDIR" 16254 16255 16256 # We can only call BASIC_FIXUP_PATH after BASIC_CHECK_PATHS_WINDOWS. 16257 16258 # Only process if variable expands to non-empty 16259 16260 if test "x$CURDIR" != x; then 16261 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 16262 16263 # Input might be given as Windows format, start by converting to 16264 # unix format. 16265 path="$CURDIR" 16266 new_path=`$CYGPATH -u "$path"` 16267 16268 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 16269 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 16270 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 16271 # "foo.exe" is OK but "foo" is an error. 16272 # 16273 # This test is therefore slightly more accurate than "test -f" to check for file precense. 16274 # It is also a way to make sure we got the proper file name for the real test later on. 16275 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 16276 if test "x$test_shortpath" = x; then 16277 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CURDIR, which resolves as \"$path\", is invalid." >&5 16278 $as_echo "$as_me: The path of CURDIR, which resolves as \"$path\", is invalid." >&6;} 16279 as_fn_error $? "Cannot locate the the path of CURDIR" "$LINENO" 5 16280 fi 16281 16282 # Call helper function which possibly converts this using DOS-style short mode. 16283 # If so, the updated path is stored in $new_path. 16284 16285 input_path="$new_path" 16286 # Check if we need to convert this using DOS-style short mode. If the path 16287 # contains just simple characters, use it. Otherwise (spaces, weird characters), 16288 # take no chances and rewrite it. 16289 # Note: m4 eats our [], so we need to use [ and ] instead. 16290 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 16291 if test "x$has_forbidden_chars" != x; then 16292 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 16293 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 16294 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 16295 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 16296 # Going to short mode and back again did indeed matter. Since short mode is 16297 # case insensitive, let's make it lowercase to improve readability. 16298 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 16299 # Now convert it back to Unix-style (cygpath) 16300 input_path=`$CYGPATH -u "$shortmode_path"` 16301 new_path="$input_path" 16302 fi 16303 fi 16304 16305 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 16306 if test "x$test_cygdrive_prefix" = x; then 16307 # As a simple fix, exclude /usr/bin since it's not a real path. 16308 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 16309 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 16310 # a path prefixed by /cygdrive for fixpath to work. 16311 new_path="$CYGWIN_ROOT_PATH$input_path" 16312 fi 16313 fi 16314 16315 16316 if test "x$path" != "x$new_path"; then 16317 CURDIR="$new_path" 16318 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting CURDIR to \"$new_path\"" >&5 16319 $as_echo "$as_me: Rewriting CURDIR to \"$new_path\"" >&6;} 16320 fi 16321 16322 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 16323 16324 path="$CURDIR" 16325 has_colon=`$ECHO $path | $GREP ^.:` 16326 new_path="$path" 16327 if test "x$has_colon" = x; then 16328 # Not in mixed or Windows style, start by that. 16329 new_path=`cmd //c echo $path` 16330 fi 16331 16332 16333 input_path="$new_path" 16334 # Check if we need to convert this using DOS-style short mode. If the path 16335 # contains just simple characters, use it. Otherwise (spaces, weird characters), 16336 # take no chances and rewrite it. 16337 # Note: m4 eats our [], so we need to use [ and ] instead. 16338 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 16339 if test "x$has_forbidden_chars" != x; then 16340 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 16341 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 16342 fi 16343 16344 16345 windows_path="$new_path" 16346 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 16347 unix_path=`$CYGPATH -u "$windows_path"` 16348 new_path="$unix_path" 16349 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 16350 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 16351 new_path="$unix_path" 16352 fi 16353 16354 if test "x$path" != "x$new_path"; then 16355 CURDIR="$new_path" 16356 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting CURDIR to \"$new_path\"" >&5 16357 $as_echo "$as_me: Rewriting CURDIR to \"$new_path\"" >&6;} 16358 fi 16359 16360 # Save the first 10 bytes of this path to the storage, so fixpath can work. 16361 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 16362 16363 else 16364 # We're on a unix platform. Hooray! :) 16365 path="$CURDIR" 16366 has_space=`$ECHO "$path" | $GREP " "` 16367 if test "x$has_space" != x; then 16368 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CURDIR, which resolves as \"$path\", is invalid." >&5 16369 $as_echo "$as_me: The path of CURDIR, which resolves as \"$path\", is invalid." >&6;} 16370 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 16371 fi 16372 16373 # Use eval to expand a potential ~ 16374 eval path="$path" 16375 if test ! -f "$path" && test ! -d "$path"; then 16376 as_fn_error $? "The path of CURDIR, which resolves as \"$path\", is not found." "$LINENO" 5 16377 fi 16378 16379 if test -d "$path"; then 16380 CURDIR="`cd "$path"; $THEPWDCMD -L`" 16381 else 16382 dir="`$DIRNAME "$path"`" 16383 base="`$BASENAME "$path"`" 16384 CURDIR="`cd "$dir"; $THEPWDCMD -L`/$base" 16385 fi 16386 fi 16387 fi 16388 16389 16390 # Only process if variable expands to non-empty 16391 16392 if test "x$TOPDIR" != x; then 16393 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 16394 16395 # Input might be given as Windows format, start by converting to 16396 # unix format. 16397 path="$TOPDIR" 16398 new_path=`$CYGPATH -u "$path"` 16399 16400 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 16401 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 16402 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 16403 # "foo.exe" is OK but "foo" is an error. 16404 # 16405 # This test is therefore slightly more accurate than "test -f" to check for file precense. 16406 # It is also a way to make sure we got the proper file name for the real test later on. 16407 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 16408 if test "x$test_shortpath" = x; then 16409 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of TOPDIR, which resolves as \"$path\", is invalid." >&5 16410 $as_echo "$as_me: The path of TOPDIR, which resolves as \"$path\", is invalid." >&6;} 16411 as_fn_error $? "Cannot locate the the path of TOPDIR" "$LINENO" 5 16412 fi 16413 16414 # Call helper function which possibly converts this using DOS-style short mode. 16415 # If so, the updated path is stored in $new_path. 16416 16417 input_path="$new_path" 16418 # Check if we need to convert this using DOS-style short mode. If the path 16419 # contains just simple characters, use it. Otherwise (spaces, weird characters), 16420 # take no chances and rewrite it. 16421 # Note: m4 eats our [], so we need to use [ and ] instead. 16422 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 16423 if test "x$has_forbidden_chars" != x; then 16424 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 16425 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 16426 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 16427 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 16428 # Going to short mode and back again did indeed matter. Since short mode is 16429 # case insensitive, let's make it lowercase to improve readability. 16430 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 16431 # Now convert it back to Unix-style (cygpath) 16432 input_path=`$CYGPATH -u "$shortmode_path"` 16433 new_path="$input_path" 16434 fi 16435 fi 16436 16437 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 16438 if test "x$test_cygdrive_prefix" = x; then 16439 # As a simple fix, exclude /usr/bin since it's not a real path. 16440 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 16441 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 16442 # a path prefixed by /cygdrive for fixpath to work. 16443 new_path="$CYGWIN_ROOT_PATH$input_path" 16444 fi 16445 fi 16446 16447 16448 if test "x$path" != "x$new_path"; then 16449 TOPDIR="$new_path" 16450 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting TOPDIR to \"$new_path\"" >&5 16451 $as_echo "$as_me: Rewriting TOPDIR to \"$new_path\"" >&6;} 16452 fi 16453 16454 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 16455 16456 path="$TOPDIR" 16457 has_colon=`$ECHO $path | $GREP ^.:` 16458 new_path="$path" 16459 if test "x$has_colon" = x; then 16460 # Not in mixed or Windows style, start by that. 16461 new_path=`cmd //c echo $path` 16462 fi 16463 16464 16465 input_path="$new_path" 16466 # Check if we need to convert this using DOS-style short mode. If the path 16467 # contains just simple characters, use it. Otherwise (spaces, weird characters), 16468 # take no chances and rewrite it. 16469 # Note: m4 eats our [], so we need to use [ and ] instead. 16470 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 16471 if test "x$has_forbidden_chars" != x; then 16472 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 16473 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 16474 fi 16475 16476 16477 windows_path="$new_path" 16478 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 16479 unix_path=`$CYGPATH -u "$windows_path"` 16480 new_path="$unix_path" 16481 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 16482 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 16483 new_path="$unix_path" 16484 fi 16485 16486 if test "x$path" != "x$new_path"; then 16487 TOPDIR="$new_path" 16488 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting TOPDIR to \"$new_path\"" >&5 16489 $as_echo "$as_me: Rewriting TOPDIR to \"$new_path\"" >&6;} 16490 fi 16491 16492 # Save the first 10 bytes of this path to the storage, so fixpath can work. 16493 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 16494 16495 else 16496 # We're on a unix platform. Hooray! :) 16497 path="$TOPDIR" 16498 has_space=`$ECHO "$path" | $GREP " "` 16499 if test "x$has_space" != x; then 16500 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of TOPDIR, which resolves as \"$path\", is invalid." >&5 16501 $as_echo "$as_me: The path of TOPDIR, which resolves as \"$path\", is invalid." >&6;} 16502 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 16503 fi 16504 16505 # Use eval to expand a potential ~ 16506 eval path="$path" 16507 if test ! -f "$path" && test ! -d "$path"; then 16508 as_fn_error $? "The path of TOPDIR, which resolves as \"$path\", is not found." "$LINENO" 5 16509 fi 16510 16511 if test -d "$path"; then 16512 TOPDIR="`cd "$path"; $THEPWDCMD -L`" 16513 else 16514 dir="`$DIRNAME "$path"`" 16515 base="`$BASENAME "$path"`" 16516 TOPDIR="`cd "$dir"; $THEPWDCMD -L`/$base" 16517 fi 16518 fi 16519 fi 16520 16521 # SRC_ROOT is a traditional alias for TOPDIR. 16522 SRC_ROOT=$TOPDIR 16523 16524 # Calculate a canonical version of TOPDIR for string comparisons 16525 CANONICAL_TOPDIR=$TOPDIR 16526 16527 if test "x$OPENJDK_BUILD_OS" != xwindows; then 16528 # Follow a chain of symbolic links. Use readlink 16529 # where it exists, else fall back to horribly 16530 # complicated shell code. 16531 if test "x$READLINK_TESTED" != yes; then 16532 # On MacOSX there is a readlink tool with a different 16533 # purpose than the GNU readlink tool. Check the found readlink. 16534 ISGNU=`$READLINK --version 2>&1 | $GREP GNU` 16535 if test "x$ISGNU" = x; then 16536 # A readlink that we do not know how to use. 16537 # Are there other non-GNU readlinks out there? 16538 READLINK_TESTED=yes 16539 READLINK= 16540 fi 16541 fi 16542 16543 if test "x$READLINK" != x; then 16544 CANONICAL_TOPDIR=`$READLINK -f $CANONICAL_TOPDIR` 16545 else 16546 # Save the current directory for restoring afterwards 16547 STARTDIR=$PWD 16548 COUNTER=0 16549 sym_link_dir=`$DIRNAME $CANONICAL_TOPDIR` 16550 sym_link_file=`$BASENAME $CANONICAL_TOPDIR` 16551 cd $sym_link_dir 16552 # Use -P flag to resolve symlinks in directories. 16553 cd `$THEPWDCMD -P` 16554 sym_link_dir=`$THEPWDCMD -P` 16555 # Resolve file symlinks 16556 while test $COUNTER -lt 20; do 16557 ISLINK=`$LS -l $sym_link_dir/$sym_link_file | $GREP '\->' | $SED -e 's/.*-> \(.*\)/\1/'` 16558 if test "x$ISLINK" == x; then 16559 # This is not a symbolic link! We are done! 16560 break 16561 fi 16562 # Again resolve directory symlinks since the target of the just found 16563 # link could be in a different directory 16564 cd `$DIRNAME $ISLINK` 16565 sym_link_dir=`$THEPWDCMD -P` 16566 sym_link_file=`$BASENAME $ISLINK` 16567 let COUNTER=COUNTER+1 16568 done 16569 cd $STARTDIR 16570 CANONICAL_TOPDIR=$sym_link_dir/$sym_link_file 16571 fi 16572 fi 16573 16574 16575 16576 # Locate the directory of this script. 16577 AUTOCONF_DIR=$TOPDIR/common/autoconf 16578 16579 # Setup username (for use in adhoc version strings etc) 16580 # Outer [ ] to quote m4. 16581 USERNAME=`$ECHO "$USER" | $TR -d -c '[a-z][A-Z][0-9]'` 16582 16583 16584 16585 # Check if it's a pure open build or if custom sources are to be used. 16586 16587 # Check whether --enable-openjdk-only was given. 16588 if test "${enable_openjdk_only+set}" = set; then : 16589 enableval=$enable_openjdk_only; 16590 else 16591 enable_openjdk_only="no" 16592 fi 16593 16594 16595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for presence of closed sources" >&5 16596 $as_echo_n "checking for presence of closed sources... " >&6; } 16597 if test -d "$SRC_ROOT/jdk/src/closed"; then 16598 CLOSED_SOURCE_PRESENT=yes 16599 else 16600 CLOSED_SOURCE_PRESENT=no 16601 fi 16602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CLOSED_SOURCE_PRESENT" >&5 16603 $as_echo "$CLOSED_SOURCE_PRESENT" >&6; } 16604 16605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if closed source is suppressed (openjdk-only)" >&5 16606 $as_echo_n "checking if closed source is suppressed (openjdk-only)... " >&6; } 16607 SUPPRESS_CLOSED_SOURCE="$enable_openjdk_only" 16608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SUPPRESS_CLOSED_SOURCE" >&5 16609 $as_echo "$SUPPRESS_CLOSED_SOURCE" >&6; } 16610 16611 if test "x$CLOSED_SOURCE_PRESENT" = xno; then 16612 OPENJDK=true 16613 if test "x$SUPPRESS_CLOSED_SOURCE" = "xyes"; then 16614 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: No closed source present, --enable-openjdk-only makes no sense" >&5 16615 $as_echo "$as_me: WARNING: No closed source present, --enable-openjdk-only makes no sense" >&2;} 16616 fi 16617 else 16618 if test "x$SUPPRESS_CLOSED_SOURCE" = "xyes"; then 16619 OPENJDK=true 16620 else 16621 OPENJDK=false 16622 fi 16623 fi 16624 16625 if test "x$OPENJDK" = "xtrue"; then 16626 SET_OPENJDK="OPENJDK=true" 16627 fi 16628 16629 16630 16631 # custom-make-dir is deprecated. Please use your custom-hook.m4 to override 16632 # the IncludeCustomExtension macro. 16633 16634 16635 # Check whether --with-custom-make-dir was given. 16636 if test "${with_custom_make_dir+set}" = set; then : 16637 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 16638 $as_echo "$as_me: WARNING: Option --with-custom-make-dir is deprecated and will be ignored." >&2;} 16639 fi 16640 16641 16642 16643 16644 # These are needed to be able to create a configuration name (and thus the output directory) 16645 16646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of the JDK to build" >&5 16647 $as_echo_n "checking which variant of the JDK to build... " >&6; } 16648 16649 # Check whether --with-jdk-variant was given. 16650 if test "${with_jdk_variant+set}" = set; then : 16651 withval=$with_jdk_variant; 16652 fi 16653 16654 16655 if test "x$with_jdk_variant" = xnormal || test "x$with_jdk_variant" = x; then 16656 JDK_VARIANT="normal" 16657 else 16658 as_fn_error $? "The available JDK variants are: normal" "$LINENO" 5 16659 fi 16660 16661 16662 16663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JDK_VARIANT" >&5 16664 $as_echo "$JDK_VARIANT" >&6; } 16665 16666 16667 DEBUG_LEVEL="release" 16668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which debug level to use" >&5 16669 $as_echo_n "checking which debug level to use... " >&6; } 16670 # Check whether --enable-debug was given. 16671 if test "${enable_debug+set}" = set; then : 16672 enableval=$enable_debug; 16673 ENABLE_DEBUG="${enableval}" 16674 DEBUG_LEVEL="fastdebug" 16675 16676 else 16677 ENABLE_DEBUG="no" 16678 fi 16679 16680 16681 16682 # Check whether --with-debug-level was given. 16683 if test "${with_debug_level+set}" = set; then : 16684 withval=$with_debug_level; 16685 DEBUG_LEVEL="${withval}" 16686 if test "x$ENABLE_DEBUG" = xyes; then 16687 as_fn_error $? "You cannot use both --enable-debug and --with-debug-level at the same time." "$LINENO" 5 16688 fi 16689 16690 fi 16691 16692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEBUG_LEVEL" >&5 16693 $as_echo "$DEBUG_LEVEL" >&6; } 16694 16695 if test "x$DEBUG_LEVEL" != xrelease && \ 16696 test "x$DEBUG_LEVEL" != xoptimized && \ 16697 test "x$DEBUG_LEVEL" != xfastdebug && \ 16698 test "x$DEBUG_LEVEL" != xslowdebug; then 16699 as_fn_error $? "Allowed debug levels are: release, fastdebug, slowdebug and optimized" "$LINENO" 5 16700 fi 16701 16702 # Translate DEBUG_LEVEL to debug level used by Hotspot 16703 HOTSPOT_DEBUG_LEVEL="$DEBUG_LEVEL" 16704 if test "x$DEBUG_LEVEL" = xrelease; then 16705 HOTSPOT_DEBUG_LEVEL="product" 16706 elif test "x$DEBUG_LEVEL" = xslowdebug; then 16707 HOTSPOT_DEBUG_LEVEL="debug" 16708 fi 16709 16710 if test "x$DEBUG_LEVEL" = xoptimized; then 16711 # The debug level 'optimized' is a little special because it is currently only 16712 # applicable to the HotSpot build where it means to build a completely 16713 # optimized version of the VM without any debugging code (like for the 16714 # 'release' debug level which is called 'product' in the HotSpot build) but 16715 # with the exception that it can contain additional code which is otherwise 16716 # protected by '#ifndef PRODUCT' macros. These 'optimized' builds are used to 16717 # test new and/or experimental features which are not intended for customer 16718 # shipment. Because these new features need to be tested and benchmarked in 16719 # real world scenarios, we want to build the containing JDK at the 'release' 16720 # debug level. 16721 DEBUG_LEVEL="release" 16722 fi 16723 16724 16725 16726 16727 16728 16729 # Check whether --with-jvm-variants was given. 16730 if test "${with_jvm_variants+set}" = set; then : 16731 withval=$with_jvm_variants; 16732 fi 16733 16734 16735 if test "x$with_jvm_variants" = x; then 16736 with_jvm_variants="server" 16737 fi 16738 JVM_VARIANTS_OPT="$with_jvm_variants" 16739 16740 # Has the user listed more than one variant? 16741 # Additional [] needed to keep m4 from mangling shell constructs. 16742 if [[ "$JVM_VARIANTS_OPT" =~ "," ]] ; then 16743 BUILDING_MULTIPLE_JVM_VARIANTS=true 16744 else 16745 BUILDING_MULTIPLE_JVM_VARIANTS=false 16746 fi 16747 # Replace the commas with AND for use in the build directory name. 16748 JVM_VARIANTS_WITH_AND=`$ECHO "$JVM_VARIANTS_OPT" | $SED -e 's/,/AND/g'` 16749 16750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variants of the JVM to build" >&5 16751 $as_echo_n "checking which variants of the JVM to build... " >&6; } 16752 # JVM_VARIANTS is a space-separated list. 16753 # Also use minimal, not minimal1 (which is kept for backwards compatibility). 16754 JVM_VARIANTS=`$ECHO $JVM_VARIANTS_OPT | $SED -e 's/,/ /g' -e 's/minimal1/minimal/'` 16755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JVM_VARIANTS" >&5 16756 $as_echo "$JVM_VARIANTS" >&6; } 16757 16758 # Check that the selected variants are valid 16759 16760 # grep filter function inspired by a comment to http://stackoverflow.com/a/1617326 16761 # Notice that the original variant failes on SLES 10 and 11 16762 NEEDLE=${VALID_JVM_VARIANTS// /$'\n'} 16763 STACK=${JVM_VARIANTS// /$'\n'} 16764 INVALID_VARIANTS=`$GREP -Fvx "${NEEDLE}" <<< "${STACK}"` 16765 if test "x$INVALID_VARIANTS" != x; then 16766 { $as_echo "$as_me:${as_lineno-$LINENO}: Unknown variant(s) specified: $INVALID_VARIANTS" >&5 16767 $as_echo "$as_me: Unknown variant(s) specified: $INVALID_VARIANTS" >&6;} 16768 as_fn_error $? "The available JVM variants are: $VALID_JVM_VARIANTS" "$LINENO" 5 16769 fi 16770 16771 # All "special" variants share the same output directory ("server") 16772 VALID_MULTIPLE_JVM_VARIANTS="server client minimal" 16773 NEEDLE=${VALID_MULTIPLE_JVM_VARIANTS// /$'\n'} 16774 STACK=${JVM_VARIANTS// /$'\n'} 16775 INVALID_MULTIPLE_VARIANTS=`$GREP -Fvx "${NEEDLE}" <<< "${STACK}"` 16776 if test "x$INVALID_MULTIPLE_VARIANTS" != x && test "x$BUILDING_MULTIPLE_JVM_VARIANTS" = xtrue; then 16777 as_fn_error $? "You cannot build multiple variants with anything else than $VALID_MULTIPLE_JVM_VARIANTS." "$LINENO" 5 16778 fi 16779 16780 16781 16782 16783 if [[ " $JVM_VARIANTS " =~ " zero " ]] || [[ " $JVM_VARIANTS " =~ " zeroshark " ]] ; then 16784 # zero behaves as a platform and rewrites these values. This is really weird. :( 16785 # We are guaranteed that we do not build any other variants when building zero. 16786 HOTSPOT_TARGET_CPU=zero 16787 HOTSPOT_TARGET_CPU_ARCH=zero 16788 fi 16789 16790 16791 # With basic setup done, call the custom early hook. 16792 16793 16794 # Check if we have devkits, extra paths or sysroot set. 16795 16796 16797 # Check whether --with-devkit was given. 16798 if test "${with_devkit+set}" = set; then : 16799 withval=$with_devkit; 16800 16801 # Only process if variable expands to non-empty 16802 16803 if test "x$with_devkit" != x; then 16804 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 16805 16806 # Input might be given as Windows format, start by converting to 16807 # unix format. 16808 path="$with_devkit" 16809 new_path=`$CYGPATH -u "$path"` 16810 16811 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 16812 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 16813 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 16814 # "foo.exe" is OK but "foo" is an error. 16815 # 16816 # This test is therefore slightly more accurate than "test -f" to check for file precense. 16817 # It is also a way to make sure we got the proper file name for the real test later on. 16818 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 16819 if test "x$test_shortpath" = x; then 16820 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of with_devkit, which resolves as \"$path\", is invalid." >&5 16821 $as_echo "$as_me: The path of with_devkit, which resolves as \"$path\", is invalid." >&6;} 16822 as_fn_error $? "Cannot locate the the path of with_devkit" "$LINENO" 5 16823 fi 16824 16825 # Call helper function which possibly converts this using DOS-style short mode. 16826 # If so, the updated path is stored in $new_path. 16827 16828 input_path="$new_path" 16829 # Check if we need to convert this using DOS-style short mode. If the path 16830 # contains just simple characters, use it. Otherwise (spaces, weird characters), 16831 # take no chances and rewrite it. 16832 # Note: m4 eats our [], so we need to use [ and ] instead. 16833 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 16834 if test "x$has_forbidden_chars" != x; then 16835 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 16836 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 16837 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 16838 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 16839 # Going to short mode and back again did indeed matter. Since short mode is 16840 # case insensitive, let's make it lowercase to improve readability. 16841 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 16842 # Now convert it back to Unix-style (cygpath) 16843 input_path=`$CYGPATH -u "$shortmode_path"` 16844 new_path="$input_path" 16845 fi 16846 fi 16847 16848 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 16849 if test "x$test_cygdrive_prefix" = x; then 16850 # As a simple fix, exclude /usr/bin since it's not a real path. 16851 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 16852 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 16853 # a path prefixed by /cygdrive for fixpath to work. 16854 new_path="$CYGWIN_ROOT_PATH$input_path" 16855 fi 16856 fi 16857 16858 16859 if test "x$path" != "x$new_path"; then 16860 with_devkit="$new_path" 16861 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting with_devkit to \"$new_path\"" >&5 16862 $as_echo "$as_me: Rewriting with_devkit to \"$new_path\"" >&6;} 16863 fi 16864 16865 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 16866 16867 path="$with_devkit" 16868 has_colon=`$ECHO $path | $GREP ^.:` 16869 new_path="$path" 16870 if test "x$has_colon" = x; then 16871 # Not in mixed or Windows style, start by that. 16872 new_path=`cmd //c echo $path` 16873 fi 16874 16875 16876 input_path="$new_path" 16877 # Check if we need to convert this using DOS-style short mode. If the path 16878 # contains just simple characters, use it. Otherwise (spaces, weird characters), 16879 # take no chances and rewrite it. 16880 # Note: m4 eats our [], so we need to use [ and ] instead. 16881 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 16882 if test "x$has_forbidden_chars" != x; then 16883 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 16884 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 16885 fi 16886 16887 16888 windows_path="$new_path" 16889 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 16890 unix_path=`$CYGPATH -u "$windows_path"` 16891 new_path="$unix_path" 16892 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 16893 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 16894 new_path="$unix_path" 16895 fi 16896 16897 if test "x$path" != "x$new_path"; then 16898 with_devkit="$new_path" 16899 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting with_devkit to \"$new_path\"" >&5 16900 $as_echo "$as_me: Rewriting with_devkit to \"$new_path\"" >&6;} 16901 fi 16902 16903 # Save the first 10 bytes of this path to the storage, so fixpath can work. 16904 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 16905 16906 else 16907 # We're on a unix platform. Hooray! :) 16908 path="$with_devkit" 16909 has_space=`$ECHO "$path" | $GREP " "` 16910 if test "x$has_space" != x; then 16911 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of with_devkit, which resolves as \"$path\", is invalid." >&5 16912 $as_echo "$as_me: The path of with_devkit, which resolves as \"$path\", is invalid." >&6;} 16913 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 16914 fi 16915 16916 # Use eval to expand a potential ~ 16917 eval path="$path" 16918 if test ! -f "$path" && test ! -d "$path"; then 16919 as_fn_error $? "The path of with_devkit, which resolves as \"$path\", is not found." "$LINENO" 5 16920 fi 16921 16922 if test -d "$path"; then 16923 with_devkit="`cd "$path"; $THEPWDCMD -L`" 16924 else 16925 dir="`$DIRNAME "$path"`" 16926 base="`$BASENAME "$path"`" 16927 with_devkit="`cd "$dir"; $THEPWDCMD -L`/$base" 16928 fi 16929 fi 16930 fi 16931 16932 DEVKIT_ROOT="$with_devkit" 16933 # Check for a meta data info file in the root of the devkit 16934 if test -f "$DEVKIT_ROOT/devkit.info"; then 16935 . $DEVKIT_ROOT/devkit.info 16936 # This potentially sets the following: 16937 # A descriptive name of the devkit 16938 16939 if test "x$DEVKIT_NAME" = x; then 16940 eval DEVKIT_NAME="\${DEVKIT_NAME_${OPENJDK_TARGET_CPU}}" 16941 fi 16942 16943 # Corresponds to --with-extra-path 16944 16945 if test "x$DEVKIT_EXTRA_PATH" = x; then 16946 eval DEVKIT_EXTRA_PATH="\${DEVKIT_EXTRA_PATH_${OPENJDK_TARGET_CPU}}" 16947 fi 16948 16949 # Corresponds to --with-toolchain-path 16950 16951 if test "x$DEVKIT_TOOLCHAIN_PATH" = x; then 16952 eval DEVKIT_TOOLCHAIN_PATH="\${DEVKIT_TOOLCHAIN_PATH_${OPENJDK_TARGET_CPU}}" 16953 fi 16954 16955 # Corresponds to --with-sysroot 16956 16957 if test "x$DEVKIT_SYSROOT" = x; then 16958 eval DEVKIT_SYSROOT="\${DEVKIT_SYSROOT_${OPENJDK_TARGET_CPU}}" 16959 fi 16960 16961 16962 # Identifies the Visual Studio version in the devkit 16963 16964 if test "x$DEVKIT_VS_VERSION" = x; then 16965 eval DEVKIT_VS_VERSION="\${DEVKIT_VS_VERSION_${OPENJDK_TARGET_CPU}}" 16966 fi 16967 16968 # The Visual Studio include environment variable 16969 16970 if test "x$DEVKIT_VS_INCLUDE" = x; then 16971 eval DEVKIT_VS_INCLUDE="\${DEVKIT_VS_INCLUDE_${OPENJDK_TARGET_CPU}}" 16972 fi 16973 16974 # The Visual Studio lib environment variable 16975 16976 if test "x$DEVKIT_VS_LIB" = x; then 16977 eval DEVKIT_VS_LIB="\${DEVKIT_VS_LIB_${OPENJDK_TARGET_CPU}}" 16978 fi 16979 16980 # Corresponds to --with-msvcr-dll 16981 16982 if test "x$DEVKIT_MSVCR_DLL" = x; then 16983 eval DEVKIT_MSVCR_DLL="\${DEVKIT_MSVCR_DLL_${OPENJDK_TARGET_CPU}}" 16984 fi 16985 16986 # Corresponds to --with-msvcp-dll 16987 16988 if test "x$DEVKIT_MSVCP_DLL" = x; then 16989 eval DEVKIT_MSVCP_DLL="\${DEVKIT_MSVCP_DLL_${OPENJDK_TARGET_CPU}}" 16990 fi 16991 16992 fi 16993 16994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for devkit" >&5 16995 $as_echo_n "checking for devkit... " >&6; } 16996 if test "x$DEVKIT_NAME" != x; then 16997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEVKIT_NAME in $DEVKIT_ROOT" >&5 16998 $as_echo "$DEVKIT_NAME in $DEVKIT_ROOT" >&6; } 16999 else 17000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEVKIT_ROOT" >&5 17001 $as_echo "$DEVKIT_ROOT" >&6; } 17002 fi 17003 17004 17005 if test "x$DEVKIT_EXTRA_PATH" != x; then 17006 if test "x$EXTRA_PATH" = x; then 17007 EXTRA_PATH="$DEVKIT_EXTRA_PATH" 17008 else 17009 EXTRA_PATH="$DEVKIT_EXTRA_PATH:$EXTRA_PATH" 17010 fi 17011 fi 17012 17013 17014 # Fallback default of just /bin if DEVKIT_PATH is not defined 17015 if test "x$DEVKIT_TOOLCHAIN_PATH" = x; then 17016 DEVKIT_TOOLCHAIN_PATH="$DEVKIT_ROOT/bin" 17017 fi 17018 17019 if test "x$DEVKIT_TOOLCHAIN_PATH" != x; then 17020 if test "x$TOOLCHAIN_PATH" = x; then 17021 TOOLCHAIN_PATH="$DEVKIT_TOOLCHAIN_PATH" 17022 else 17023 TOOLCHAIN_PATH="$DEVKIT_TOOLCHAIN_PATH:$TOOLCHAIN_PATH" 17024 fi 17025 fi 17026 17027 17028 # If DEVKIT_SYSROOT is set, use that, otherwise try a couple of known 17029 # places for backwards compatiblity. 17030 if test "x$DEVKIT_SYSROOT" != x; then 17031 SYSROOT="$DEVKIT_SYSROOT" 17032 elif test -d "$DEVKIT_ROOT/$host_alias/libc"; then 17033 SYSROOT="$DEVKIT_ROOT/$host_alias/libc" 17034 elif test -d "$DEVKIT_ROOT/$host/sys-root"; then 17035 SYSROOT="$DEVKIT_ROOT/$host/sys-root" 17036 fi 17037 17038 17039 fi 17040 17041 17042 # You can force the sysroot if the sysroot encoded into the compiler tools 17043 # is not correct. 17044 17045 # Check whether --with-sys-root was given. 17046 if test "${with_sys_root+set}" = set; then : 17047 withval=$with_sys_root; SYSROOT=$with_sys_root 17048 17049 fi 17050 17051 17052 17053 # Check whether --with-sysroot was given. 17054 if test "${with_sysroot+set}" = set; then : 17055 withval=$with_sysroot; SYSROOT=$with_sysroot 17056 17057 fi 17058 17059 17060 17061 # Check whether --with-tools-dir was given. 17062 if test "${with_tools_dir+set}" = set; then : 17063 withval=$with_tools_dir; 17064 if test "x$with_tools_dir" != x; then 17065 if test "x$TOOLCHAIN_PATH" = x; then 17066 TOOLCHAIN_PATH="$with_tools_dir" 17067 else 17068 TOOLCHAIN_PATH="$with_tools_dir:$TOOLCHAIN_PATH" 17069 fi 17070 fi 17071 17072 17073 fi 17074 17075 17076 17077 # Check whether --with-toolchain-path was given. 17078 if test "${with_toolchain_path+set}" = set; then : 17079 withval=$with_toolchain_path; 17080 if test "x$with_toolchain_path" != x; then 17081 if test "x$TOOLCHAIN_PATH" = x; then 17082 TOOLCHAIN_PATH="$with_toolchain_path" 17083 else 17084 TOOLCHAIN_PATH="$with_toolchain_path:$TOOLCHAIN_PATH" 17085 fi 17086 fi 17087 17088 17089 fi 17090 17091 17092 17093 # Check whether --with-extra-path was given. 17094 if test "${with_extra_path+set}" = set; then : 17095 withval=$with_extra_path; 17096 if test "x$with_extra_path" != x; then 17097 if test "x$EXTRA_PATH" = x; then 17098 EXTRA_PATH="$with_extra_path" 17099 else 17100 EXTRA_PATH="$with_extra_path:$EXTRA_PATH" 17101 fi 17102 fi 17103 17104 17105 fi 17106 17107 17108 if test "x$OPENJDK_BUILD_OS" = "xmacosx"; then 17109 # If a devkit has been supplied, find xcodebuild in the toolchain_path. 17110 # If not, detect if Xcode is installed by running xcodebuild -version 17111 # if no Xcode installed, xcodebuild exits with 1 17112 # if Xcode is installed, even if xcode-select is misconfigured, then it exits with 0 17113 if test "x$DEVKIT_ROOT" != x || /usr/bin/xcodebuild -version >/dev/null 2>&1; then 17114 # We need to use xcodebuild in the toolchain dir provided by the user, this will 17115 # fall back on the stub binary in /usr/bin/xcodebuild 17116 # Extract the first word of "xcodebuild", so it can be a program name with args. 17117 set dummy xcodebuild; ac_word=$2 17118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17119 $as_echo_n "checking for $ac_word... " >&6; } 17120 if ${ac_cv_path_XCODEBUILD+:} false; then : 17121 $as_echo_n "(cached) " >&6 17122 else 17123 case $XCODEBUILD in 17124 [\\/]* | ?:[\\/]*) 17125 ac_cv_path_XCODEBUILD="$XCODEBUILD" # Let the user override the test with a path. 17126 ;; 17127 *) 17128 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17129 for as_dir in $TOOLCHAIN_PATH 17130 do 17131 IFS=$as_save_IFS 17132 test -z "$as_dir" && as_dir=. 17133 for ac_exec_ext in '' $ac_executable_extensions; do 17134 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 17135 ac_cv_path_XCODEBUILD="$as_dir/$ac_word$ac_exec_ext" 17136 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 17137 break 2 17138 fi 17139 done 17140 done 17141 IFS=$as_save_IFS 17142 17143 test -z "$ac_cv_path_XCODEBUILD" && ac_cv_path_XCODEBUILD="/usr/bin/xcodebuild" 17144 ;; 17145 esac 17146 fi 17147 XCODEBUILD=$ac_cv_path_XCODEBUILD 17148 if test -n "$XCODEBUILD"; then 17149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XCODEBUILD" >&5 17150 $as_echo "$XCODEBUILD" >&6; } 17151 else 17152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17153 $as_echo "no" >&6; } 17154 fi 17155 17156 17157 else 17158 # this should result in SYSROOT being empty, unless --with-sysroot is provided 17159 # when only the command line tools are installed there are no SDKs, so headers 17160 # are copied into the system frameworks 17161 XCODEBUILD= 17162 17163 fi 17164 17165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sdk name" >&5 17166 $as_echo_n "checking for sdk name... " >&6; } 17167 17168 # Check whether --with-sdk-name was given. 17169 if test "${with_sdk_name+set}" = set; then : 17170 withval=$with_sdk_name; SDKNAME=$with_sdk_name 17171 17172 fi 17173 17174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SDKNAME" >&5 17175 $as_echo "$SDKNAME" >&6; } 17176 17177 # if toolchain path is specified then don't rely on system headers, they may not compile 17178 HAVE_SYSTEM_FRAMEWORK_HEADERS=0 17179 test -z "$TOOLCHAIN_PATH" && \ 17180 HAVE_SYSTEM_FRAMEWORK_HEADERS=`test ! -f /System/Library/Frameworks/Foundation.framework/Headers/Foundation.h; echo $?` 17181 17182 if test -z "$SYSROOT"; then 17183 if test -n "$XCODEBUILD"; then 17184 # if we don't have system headers, use default SDK name (last resort) 17185 if test -z "$SDKNAME" -a $HAVE_SYSTEM_FRAMEWORK_HEADERS -eq 0; then 17186 SDKNAME=${SDKNAME:-macosx} 17187 fi 17188 17189 if test -n "$SDKNAME"; then 17190 # Call xcodebuild to determine SYSROOT 17191 SYSROOT=`"$XCODEBUILD" -sdk $SDKNAME -version | $GREP '^Path: ' | $SED 's/Path: //'` 17192 fi 17193 else 17194 if test $HAVE_SYSTEM_FRAMEWORK_HEADERS -eq 0; then 17195 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 17196 fi 17197 fi 17198 else 17199 # warn user if --with-sdk-name was also set 17200 if test -n "$with_sdk_name"; then 17201 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Both SYSROOT and --with-sdk-name are set, only SYSROOT will be used" >&5 17202 $as_echo "$as_me: WARNING: Both SYSROOT and --with-sdk-name are set, only SYSROOT will be used" >&2;} 17203 fi 17204 fi 17205 17206 if test $HAVE_SYSTEM_FRAMEWORK_HEADERS -eq 0 -a -z "$SYSROOT"; then 17207 # If no system framework headers, then SYSROOT must be set, or we won't build 17208 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 17209 fi 17210 17211 # Perform a basic sanity test 17212 if test ! -f "$SYSROOT/System/Library/Frameworks/Foundation.framework/Headers/Foundation.h"; then 17213 if test -z "$SYSROOT"; then 17214 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 17215 else 17216 as_fn_error $? "Invalid SDK or SYSROOT path, dependent framework headers not found" "$LINENO" 5 17217 fi 17218 fi 17219 17220 # set SDKROOT too, Xcode tools will pick it up 17221 SDKROOT=$SYSROOT 17222 17223 fi 17224 17225 # Prepend the extra path to the global path 17226 17227 if test "x$EXTRA_PATH" != x; then 17228 if test "x$PATH" = x; then 17229 PATH="$EXTRA_PATH" 17230 else 17231 PATH="$EXTRA_PATH:$PATH" 17232 fi 17233 fi 17234 17235 17236 if test "x$OPENJDK_BUILD_OS" = "xsolaris"; then 17237 # Add extra search paths on solaris for utilities like ar, as, dtrace etc... 17238 PATH="$PATH:/usr/ccs/bin:/usr/sfw/bin:/opt/csw/bin:/usr/sbin" 17239 fi 17240 17241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 17242 $as_echo_n "checking for sysroot... " >&6; } 17243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SYSROOT" >&5 17244 $as_echo "$SYSROOT" >&6; } 17245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for toolchain path" >&5 17246 $as_echo_n "checking for toolchain path... " >&6; } 17247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOOLCHAIN_PATH" >&5 17248 $as_echo "$TOOLCHAIN_PATH" >&6; } 17249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for extra path" >&5 17250 $as_echo_n "checking for extra path... " >&6; } 17251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXTRA_PATH" >&5 17252 $as_echo "$EXTRA_PATH" >&6; } 17253 17254 17255 # To properly create a configuration name, we need to have the OpenJDK target 17256 # and options (variants and debug level) parsed. 17257 17258 17259 17260 # Check whether --with-conf-name was given. 17261 if test "${with_conf_name+set}" = set; then : 17262 withval=$with_conf_name; CONF_NAME=${with_conf_name} 17263 fi 17264 17265 17266 # Test from where we are running configure, in or outside of src root. 17267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to store configuration" >&5 17268 $as_echo_n "checking where to store configuration... " >&6; } 17269 if test "x$CURDIR" = "x$SRC_ROOT" || test "x$CURDIR" = "x$SRC_ROOT/common" \ 17270 || test "x$CURDIR" = "x$SRC_ROOT/common/autoconf" \ 17271 || test "x$CURDIR" = "x$SRC_ROOT/make" ; then 17272 # We are running configure from the src root. 17273 # Create a default ./build/target-variant-debuglevel output root. 17274 if test "x${CONF_NAME}" = x; then 17275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: in default location" >&5 17276 $as_echo "in default location" >&6; } 17277 CONF_NAME="${OPENJDK_TARGET_OS}-${OPENJDK_TARGET_CPU}-${JDK_VARIANT}-${JVM_VARIANTS_WITH_AND}-${DEBUG_LEVEL}" 17278 else 17279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: in build directory with custom name" >&5 17280 $as_echo "in build directory with custom name" >&6; } 17281 fi 17282 OUTPUT_ROOT="$SRC_ROOT/build/${CONF_NAME}" 17283 $MKDIR -p "$OUTPUT_ROOT" 17284 if test ! -d "$OUTPUT_ROOT"; then 17285 as_fn_error $? "Could not create build directory $OUTPUT_ROOT" "$LINENO" 5 17286 fi 17287 else 17288 # We are running configure from outside of the src dir. 17289 # Then use the current directory as output dir! 17290 # If configuration is situated in normal build directory, just use the build 17291 # directory name as configuration name, otherwise use the complete path. 17292 if test "x${CONF_NAME}" = x; then 17293 CONF_NAME=`$ECHO $CURDIR | $SED -e "s!^${SRC_ROOT}/build/!!"` 17294 fi 17295 OUTPUT_ROOT="$CURDIR" 17296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: in current directory" >&5 17297 $as_echo "in current directory" >&6; } 17298 17299 # WARNING: This might be a bad thing to do. You need to be sure you want to 17300 # have a configuration in this directory. Do some sanity checks! 17301 17302 if test ! -e "$OUTPUT_ROOT/spec.gmk"; then 17303 # If we have a spec.gmk, we have run here before and we are OK. Otherwise, check for 17304 # other files 17305 files_present=`$LS $OUTPUT_ROOT` 17306 # Configure has already touched config.log and confdefs.h in the current dir when this check 17307 # is performed. 17308 filtered_files=`$ECHO "$files_present" \ 17309 | $SED -e 's/config.log//g' \ 17310 -e 's/configure.log//g' \ 17311 -e 's/confdefs.h//g' \ 17312 -e 's/ //g' \ 17313 | $TR -d '\n'` 17314 if test "x$filtered_files" != x; then 17315 { $as_echo "$as_me:${as_lineno-$LINENO}: Current directory is $CURDIR." >&5 17316 $as_echo "$as_me: Current directory is $CURDIR." >&6;} 17317 { $as_echo "$as_me:${as_lineno-$LINENO}: Since this is not the source root, configure will output the configuration here" >&5 17318 $as_echo "$as_me: Since this is not the source root, configure will output the configuration here" >&6;} 17319 { $as_echo "$as_me:${as_lineno-$LINENO}: (as opposed to creating a configuration in <src_root>/build/<conf-name>)." >&5 17320 $as_echo "$as_me: (as opposed to creating a configuration in <src_root>/build/<conf-name>)." >&6;} 17321 { $as_echo "$as_me:${as_lineno-$LINENO}: However, this directory is not empty. This is not allowed, since it could" >&5 17322 $as_echo "$as_me: However, this directory is not empty. This is not allowed, since it could" >&6;} 17323 { $as_echo "$as_me:${as_lineno-$LINENO}: seriously mess up just about everything." >&5 17324 $as_echo "$as_me: seriously mess up just about everything." >&6;} 17325 { $as_echo "$as_me:${as_lineno-$LINENO}: Try 'cd $SRC_ROOT' and restart configure" >&5 17326 $as_echo "$as_me: Try 'cd $SRC_ROOT' and restart configure" >&6;} 17327 { $as_echo "$as_me:${as_lineno-$LINENO}: (or create a new empty directory and cd to it)." >&5 17328 $as_echo "$as_me: (or create a new empty directory and cd to it)." >&6;} 17329 as_fn_error $? "Will not continue creating configuration in $CURDIR" "$LINENO" 5 17330 fi 17331 fi 17332 fi 17333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what configuration name to use" >&5 17334 $as_echo_n "checking what configuration name to use... " >&6; } 17335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CONF_NAME" >&5 17336 $as_echo "$CONF_NAME" >&6; } 17337 17338 17339 # Only process if variable expands to non-empty 17340 17341 if test "x$OUTPUT_ROOT" != x; then 17342 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 17343 17344 # Input might be given as Windows format, start by converting to 17345 # unix format. 17346 path="$OUTPUT_ROOT" 17347 new_path=`$CYGPATH -u "$path"` 17348 17349 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 17350 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 17351 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 17352 # "foo.exe" is OK but "foo" is an error. 17353 # 17354 # This test is therefore slightly more accurate than "test -f" to check for file precense. 17355 # It is also a way to make sure we got the proper file name for the real test later on. 17356 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 17357 if test "x$test_shortpath" = x; then 17358 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OUTPUT_ROOT, which resolves as \"$path\", is invalid." >&5 17359 $as_echo "$as_me: The path of OUTPUT_ROOT, which resolves as \"$path\", is invalid." >&6;} 17360 as_fn_error $? "Cannot locate the the path of OUTPUT_ROOT" "$LINENO" 5 17361 fi 17362 17363 # Call helper function which possibly converts this using DOS-style short mode. 17364 # If so, the updated path is stored in $new_path. 17365 17366 input_path="$new_path" 17367 # Check if we need to convert this using DOS-style short mode. If the path 17368 # contains just simple characters, use it. Otherwise (spaces, weird characters), 17369 # take no chances and rewrite it. 17370 # Note: m4 eats our [], so we need to use [ and ] instead. 17371 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 17372 if test "x$has_forbidden_chars" != x; then 17373 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 17374 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 17375 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 17376 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 17377 # Going to short mode and back again did indeed matter. Since short mode is 17378 # case insensitive, let's make it lowercase to improve readability. 17379 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 17380 # Now convert it back to Unix-style (cygpath) 17381 input_path=`$CYGPATH -u "$shortmode_path"` 17382 new_path="$input_path" 17383 fi 17384 fi 17385 17386 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 17387 if test "x$test_cygdrive_prefix" = x; then 17388 # As a simple fix, exclude /usr/bin since it's not a real path. 17389 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 17390 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 17391 # a path prefixed by /cygdrive for fixpath to work. 17392 new_path="$CYGWIN_ROOT_PATH$input_path" 17393 fi 17394 fi 17395 17396 17397 if test "x$path" != "x$new_path"; then 17398 OUTPUT_ROOT="$new_path" 17399 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting OUTPUT_ROOT to \"$new_path\"" >&5 17400 $as_echo "$as_me: Rewriting OUTPUT_ROOT to \"$new_path\"" >&6;} 17401 fi 17402 17403 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 17404 17405 path="$OUTPUT_ROOT" 17406 has_colon=`$ECHO $path | $GREP ^.:` 17407 new_path="$path" 17408 if test "x$has_colon" = x; then 17409 # Not in mixed or Windows style, start by that. 17410 new_path=`cmd //c echo $path` 17411 fi 17412 17413 17414 input_path="$new_path" 17415 # Check if we need to convert this using DOS-style short mode. If the path 17416 # contains just simple characters, use it. Otherwise (spaces, weird characters), 17417 # take no chances and rewrite it. 17418 # Note: m4 eats our [], so we need to use [ and ] instead. 17419 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 17420 if test "x$has_forbidden_chars" != x; then 17421 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 17422 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 17423 fi 17424 17425 17426 windows_path="$new_path" 17427 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 17428 unix_path=`$CYGPATH -u "$windows_path"` 17429 new_path="$unix_path" 17430 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 17431 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 17432 new_path="$unix_path" 17433 fi 17434 17435 if test "x$path" != "x$new_path"; then 17436 OUTPUT_ROOT="$new_path" 17437 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting OUTPUT_ROOT to \"$new_path\"" >&5 17438 $as_echo "$as_me: Rewriting OUTPUT_ROOT to \"$new_path\"" >&6;} 17439 fi 17440 17441 # Save the first 10 bytes of this path to the storage, so fixpath can work. 17442 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 17443 17444 else 17445 # We're on a unix platform. Hooray! :) 17446 path="$OUTPUT_ROOT" 17447 has_space=`$ECHO "$path" | $GREP " "` 17448 if test "x$has_space" != x; then 17449 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OUTPUT_ROOT, which resolves as \"$path\", is invalid." >&5 17450 $as_echo "$as_me: The path of OUTPUT_ROOT, which resolves as \"$path\", is invalid." >&6;} 17451 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 17452 fi 17453 17454 # Use eval to expand a potential ~ 17455 eval path="$path" 17456 if test ! -f "$path" && test ! -d "$path"; then 17457 as_fn_error $? "The path of OUTPUT_ROOT, which resolves as \"$path\", is not found." "$LINENO" 5 17458 fi 17459 17460 if test -d "$path"; then 17461 OUTPUT_ROOT="`cd "$path"; $THEPWDCMD -L`" 17462 else 17463 dir="`$DIRNAME "$path"`" 17464 base="`$BASENAME "$path"`" 17465 OUTPUT_ROOT="`cd "$dir"; $THEPWDCMD -L`/$base" 17466 fi 17467 fi 17468 fi 17469 17470 17471 CONFIGURESUPPORT_OUTPUTDIR="$OUTPUT_ROOT/configure-support" 17472 $MKDIR -p "$CONFIGURESUPPORT_OUTPUTDIR" 17473 17474 SPEC=$OUTPUT_ROOT/spec.gmk 17475 17476 CONF_NAME=$CONF_NAME 17477 17478 OUTPUT_ROOT=$OUTPUT_ROOT 17479 17480 17481 17482 # The spec.gmk file contains all variables for the make system. 17483 ac_config_files="$ac_config_files $OUTPUT_ROOT/spec.gmk:$AUTOCONF_DIR/spec.gmk.in" 17484 17485 # The bootcycle-spec.gmk file contains support for boot cycle builds. 17486 ac_config_files="$ac_config_files $OUTPUT_ROOT/bootcycle-spec.gmk:$AUTOCONF_DIR/bootcycle-spec.gmk.in" 17487 17488 # The buildjdk-spec.gmk file contains support for building a buildjdk when cross compiling. 17489 ac_config_files="$ac_config_files $OUTPUT_ROOT/buildjdk-spec.gmk:$AUTOCONF_DIR/buildjdk-spec.gmk.in" 17490 17491 # The compare.sh is used to compare the build output to other builds. 17492 ac_config_files="$ac_config_files $OUTPUT_ROOT/compare.sh:$AUTOCONF_DIR/compare.sh.in" 17493 17494 # The generated Makefile knows where the spec.gmk is and where the source is. 17495 # You can run make from the OUTPUT_ROOT, or from the top-level Makefile 17496 # which will look for generated configurations 17497 ac_config_files="$ac_config_files $OUTPUT_ROOT/Makefile:$AUTOCONF_DIR/Makefile.in" 17498 17499 17500 17501 # Must be done before we can call HELP_MSG_MISSING_DEPENDENCY. 17502 17503 for ac_prog in apt-get yum port pkgutil pkgadd 17504 do 17505 # Extract the first word of "$ac_prog", so it can be a program name with args. 17506 set dummy $ac_prog; ac_word=$2 17507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17508 $as_echo_n "checking for $ac_word... " >&6; } 17509 if ${ac_cv_prog_PKGHANDLER+:} false; then : 17510 $as_echo_n "(cached) " >&6 17511 else 17512 if test -n "$PKGHANDLER"; then 17513 ac_cv_prog_PKGHANDLER="$PKGHANDLER" # Let the user override the test. 17514 else 17515 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17516 for as_dir in $PATH 17517 do 17518 IFS=$as_save_IFS 17519 test -z "$as_dir" && as_dir=. 17520 for ac_exec_ext in '' $ac_executable_extensions; do 17521 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 17522 ac_cv_prog_PKGHANDLER="$ac_prog" 17523 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 17524 break 2 17525 fi 17526 done 17527 done 17528 IFS=$as_save_IFS 17529 17530 fi 17531 fi 17532 PKGHANDLER=$ac_cv_prog_PKGHANDLER 17533 if test -n "$PKGHANDLER"; then 17534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGHANDLER" >&5 17535 $as_echo "$PKGHANDLER" >&6; } 17536 else 17537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17538 $as_echo "no" >&6; } 17539 fi 17540 17541 17542 test -n "$PKGHANDLER" && break 17543 done 17544 17545 17546 17547 # Setup tools that requires more complex handling, or that is not needed by the configure script. 17548 17549 17550 17551 # Publish this variable in the help. 17552 17553 17554 if [ -z "${MAKE+x}" ]; then 17555 # The variable is not set by user, try to locate tool using the code snippet 17556 17557 # Try our hardest to locate a correct version of GNU make 17558 for ac_prog in gmake 17559 do 17560 # Extract the first word of "$ac_prog", so it can be a program name with args. 17561 set dummy $ac_prog; ac_word=$2 17562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17563 $as_echo_n "checking for $ac_word... " >&6; } 17564 if ${ac_cv_path_CHECK_GMAKE+:} false; then : 17565 $as_echo_n "(cached) " >&6 17566 else 17567 case $CHECK_GMAKE in 17568 [\\/]* | ?:[\\/]*) 17569 ac_cv_path_CHECK_GMAKE="$CHECK_GMAKE" # Let the user override the test with a path. 17570 ;; 17571 *) 17572 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17573 for as_dir in $PATH 17574 do 17575 IFS=$as_save_IFS 17576 test -z "$as_dir" && as_dir=. 17577 for ac_exec_ext in '' $ac_executable_extensions; do 17578 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 17579 ac_cv_path_CHECK_GMAKE="$as_dir/$ac_word$ac_exec_ext" 17580 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 17581 break 2 17582 fi 17583 done 17584 done 17585 IFS=$as_save_IFS 17586 17587 ;; 17588 esac 17589 fi 17590 CHECK_GMAKE=$ac_cv_path_CHECK_GMAKE 17591 if test -n "$CHECK_GMAKE"; then 17592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHECK_GMAKE" >&5 17593 $as_echo "$CHECK_GMAKE" >&6; } 17594 else 17595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17596 $as_echo "no" >&6; } 17597 fi 17598 17599 17600 test -n "$CHECK_GMAKE" && break 17601 done 17602 17603 17604 MAKE_CANDIDATE=""$CHECK_GMAKE"" 17605 DESCRIPTION="gmake in PATH" 17606 17607 # On Cygwin, we require a newer version of make than on other platforms 17608 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 17609 MAKE_VERSION_EXPR="-e 4\." 17610 MAKE_REQUIRED_VERSION="4.0" 17611 else 17612 MAKE_VERSION_EXPR="-e 3\.8[12] -e 4\." 17613 MAKE_REQUIRED_VERSION="3.81" 17614 fi 17615 17616 if test "x$MAKE_CANDIDATE" != x; then 17617 { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5 17618 $as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;} 17619 MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1` 17620 IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'` 17621 if test "x$IS_GNU_MAKE" = x; then 17622 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5 17623 $as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;} 17624 else 17625 IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP $MAKE_VERSION_EXPR` 17626 if test "x$IS_MODERN_MAKE" = x; then 17627 { $as_echo "$as_me:${as_lineno-$LINENO}: Found GNU make at $MAKE_CANDIDATE, however this is not version $MAKE_REQUIRED_VERSION or later. (it is: $MAKE_VERSION_STRING). Ignoring." >&5 17628 $as_echo "$as_me: Found GNU make at $MAKE_CANDIDATE, however this is not version $MAKE_REQUIRED_VERSION or later. (it is: $MAKE_VERSION_STRING). Ignoring." >&6;} 17629 else 17630 if test "x$OPENJDK_BUILD_OS" = "xwindows"; then 17631 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 17632 MAKE_EXPECTED_ENV='cygwin' 17633 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 17634 MAKE_EXPECTED_ENV='msys' 17635 else 17636 as_fn_error $? "Unknown Windows environment" "$LINENO" 5 17637 fi 17638 MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'` 17639 IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV` 17640 else 17641 # Not relevant for non-Windows 17642 IS_MAKE_CORRECT_ENV=true 17643 fi 17644 if test "x$IS_MAKE_CORRECT_ENV" = x; then 17645 { $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 17646 $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;} 17647 else 17648 FOUND_MAKE=$MAKE_CANDIDATE 17649 17650 # Only process if variable expands to non-empty 17651 17652 if test "x$FOUND_MAKE" != x; then 17653 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 17654 17655 # First separate the path from the arguments. This will split at the first 17656 # space. 17657 complete="$FOUND_MAKE" 17658 path="${complete%% *}" 17659 tmp="$complete EOL" 17660 arguments="${tmp#* }" 17661 17662 # Input might be given as Windows format, start by converting to 17663 # unix format. 17664 new_path=`$CYGPATH -u "$path"` 17665 17666 # Now try to locate executable using which 17667 new_path=`$WHICH "$new_path" 2> /dev/null` 17668 # bat and cmd files are not always considered executable in cygwin causing which 17669 # to not find them 17670 if test "x$new_path" = x \ 17671 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 17672 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 17673 new_path=`$CYGPATH -u "$path"` 17674 fi 17675 if test "x$new_path" = x; then 17676 # Oops. Which didn't find the executable. 17677 # The splitting of arguments from the executable at a space might have been incorrect, 17678 # since paths with space are more likely in Windows. Give it another try with the whole 17679 # argument. 17680 path="$complete" 17681 arguments="EOL" 17682 new_path=`$CYGPATH -u "$path"` 17683 new_path=`$WHICH "$new_path" 2> /dev/null` 17684 # bat and cmd files are not always considered executable in cygwin causing which 17685 # to not find them 17686 if test "x$new_path" = x \ 17687 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 17688 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 17689 new_path=`$CYGPATH -u "$path"` 17690 fi 17691 if test "x$new_path" = x; then 17692 # It's still not found. Now this is an unrecoverable error. 17693 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 17694 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 17695 has_space=`$ECHO "$complete" | $GREP " "` 17696 if test "x$has_space" != x; then 17697 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 17698 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 17699 fi 17700 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 17701 fi 17702 fi 17703 17704 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 17705 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 17706 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 17707 # "foo.exe" is OK but "foo" is an error. 17708 # 17709 # This test is therefore slightly more accurate than "test -f" to check for file presence. 17710 # It is also a way to make sure we got the proper file name for the real test later on. 17711 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 17712 if test "x$test_shortpath" = x; then 17713 # Short path failed, file does not exist as specified. 17714 # Try adding .exe or .cmd 17715 if test -f "${new_path}.exe"; then 17716 input_to_shortpath="${new_path}.exe" 17717 elif test -f "${new_path}.cmd"; then 17718 input_to_shortpath="${new_path}.cmd" 17719 else 17720 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5 17721 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;} 17722 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 17723 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 17724 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 17725 fi 17726 else 17727 input_to_shortpath="$new_path" 17728 fi 17729 17730 # Call helper function which possibly converts this using DOS-style short mode. 17731 # If so, the updated path is stored in $new_path. 17732 new_path="$input_to_shortpath" 17733 17734 input_path="$input_to_shortpath" 17735 # Check if we need to convert this using DOS-style short mode. If the path 17736 # contains just simple characters, use it. Otherwise (spaces, weird characters), 17737 # take no chances and rewrite it. 17738 # Note: m4 eats our [], so we need to use [ and ] instead. 17739 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 17740 if test "x$has_forbidden_chars" != x; then 17741 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 17742 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 17743 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 17744 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 17745 # Going to short mode and back again did indeed matter. Since short mode is 17746 # case insensitive, let's make it lowercase to improve readability. 17747 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 17748 # Now convert it back to Unix-style (cygpath) 17749 input_path=`$CYGPATH -u "$shortmode_path"` 17750 new_path="$input_path" 17751 fi 17752 fi 17753 17754 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 17755 if test "x$test_cygdrive_prefix" = x; then 17756 # As a simple fix, exclude /usr/bin since it's not a real path. 17757 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 17758 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 17759 # a path prefixed by /cygdrive for fixpath to work. 17760 new_path="$CYGWIN_ROOT_PATH$input_path" 17761 fi 17762 fi 17763 17764 # remove trailing .exe if any 17765 new_path="${new_path/%.exe/}" 17766 17767 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 17768 17769 # First separate the path from the arguments. This will split at the first 17770 # space. 17771 complete="$FOUND_MAKE" 17772 path="${complete%% *}" 17773 tmp="$complete EOL" 17774 arguments="${tmp#* }" 17775 17776 # Input might be given as Windows format, start by converting to 17777 # unix format. 17778 new_path="$path" 17779 17780 windows_path="$new_path" 17781 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 17782 unix_path=`$CYGPATH -u "$windows_path"` 17783 new_path="$unix_path" 17784 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 17785 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 17786 new_path="$unix_path" 17787 fi 17788 17789 17790 # Now try to locate executable using which 17791 new_path=`$WHICH "$new_path" 2> /dev/null` 17792 17793 if test "x$new_path" = x; then 17794 # Oops. Which didn't find the executable. 17795 # The splitting of arguments from the executable at a space might have been incorrect, 17796 # since paths with space are more likely in Windows. Give it another try with the whole 17797 # argument. 17798 path="$complete" 17799 arguments="EOL" 17800 new_path="$path" 17801 17802 windows_path="$new_path" 17803 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 17804 unix_path=`$CYGPATH -u "$windows_path"` 17805 new_path="$unix_path" 17806 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 17807 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 17808 new_path="$unix_path" 17809 fi 17810 17811 17812 new_path=`$WHICH "$new_path" 2> /dev/null` 17813 # bat and cmd files are not always considered executable in MSYS causing which 17814 # to not find them 17815 if test "x$new_path" = x \ 17816 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 17817 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 17818 new_path="$path" 17819 17820 windows_path="$new_path" 17821 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 17822 unix_path=`$CYGPATH -u "$windows_path"` 17823 new_path="$unix_path" 17824 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 17825 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 17826 new_path="$unix_path" 17827 fi 17828 17829 fi 17830 17831 if test "x$new_path" = x; then 17832 # It's still not found. Now this is an unrecoverable error. 17833 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 17834 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 17835 has_space=`$ECHO "$complete" | $GREP " "` 17836 if test "x$has_space" != x; then 17837 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 17838 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 17839 fi 17840 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 17841 fi 17842 fi 17843 17844 # Now new_path has a complete unix path to the binary 17845 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 17846 # Keep paths in /bin as-is, but remove trailing .exe if any 17847 new_path="${new_path/%.exe/}" 17848 # Do not save /bin paths to all_fixpath_prefixes! 17849 else 17850 # Not in mixed or Windows style, start by that. 17851 new_path=`cmd //c echo $new_path` 17852 17853 input_path="$new_path" 17854 # Check if we need to convert this using DOS-style short mode. If the path 17855 # contains just simple characters, use it. Otherwise (spaces, weird characters), 17856 # take no chances and rewrite it. 17857 # Note: m4 eats our [], so we need to use [ and ] instead. 17858 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 17859 if test "x$has_forbidden_chars" != x; then 17860 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 17861 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 17862 fi 17863 17864 # Output is in $new_path 17865 17866 windows_path="$new_path" 17867 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 17868 unix_path=`$CYGPATH -u "$windows_path"` 17869 new_path="$unix_path" 17870 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 17871 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 17872 new_path="$unix_path" 17873 fi 17874 17875 # remove trailing .exe if any 17876 new_path="${new_path/%.exe/}" 17877 17878 # Save the first 10 bytes of this path to the storage, so fixpath can work. 17879 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 17880 fi 17881 17882 else 17883 # We're on a unix platform. Hooray! :) 17884 # First separate the path from the arguments. This will split at the first 17885 # space. 17886 complete="$FOUND_MAKE" 17887 path="${complete%% *}" 17888 tmp="$complete EOL" 17889 arguments="${tmp#* }" 17890 17891 # Cannot rely on the command "which" here since it doesn't always work. 17892 is_absolute_path=`$ECHO "$path" | $GREP ^/` 17893 if test -z "$is_absolute_path"; then 17894 # Path to executable is not absolute. Find it. 17895 IFS_save="$IFS" 17896 IFS=: 17897 for p in $PATH; do 17898 if test -f "$p/$path" && test -x "$p/$path"; then 17899 new_path="$p/$path" 17900 break 17901 fi 17902 done 17903 IFS="$IFS_save" 17904 else 17905 # This is an absolute path, we can use it without further modifications. 17906 new_path="$path" 17907 fi 17908 17909 if test "x$new_path" = x; then 17910 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 17911 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 17912 has_space=`$ECHO "$complete" | $GREP " "` 17913 if test "x$has_space" != x; then 17914 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 17915 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 17916 fi 17917 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 17918 fi 17919 fi 17920 17921 # Now join together the path and the arguments once again 17922 if test "x$arguments" != xEOL; then 17923 new_complete="$new_path ${arguments% *}" 17924 else 17925 new_complete="$new_path" 17926 fi 17927 17928 if test "x$complete" != "x$new_complete"; then 17929 FOUND_MAKE="$new_complete" 17930 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5 17931 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;} 17932 fi 17933 fi 17934 17935 fi 17936 fi 17937 fi 17938 fi 17939 17940 17941 if test "x$FOUND_MAKE" = x; then 17942 for ac_prog in make 17943 do 17944 # Extract the first word of "$ac_prog", so it can be a program name with args. 17945 set dummy $ac_prog; ac_word=$2 17946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17947 $as_echo_n "checking for $ac_word... " >&6; } 17948 if ${ac_cv_path_CHECK_MAKE+:} false; then : 17949 $as_echo_n "(cached) " >&6 17950 else 17951 case $CHECK_MAKE in 17952 [\\/]* | ?:[\\/]*) 17953 ac_cv_path_CHECK_MAKE="$CHECK_MAKE" # Let the user override the test with a path. 17954 ;; 17955 *) 17956 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17957 for as_dir in $PATH 17958 do 17959 IFS=$as_save_IFS 17960 test -z "$as_dir" && as_dir=. 17961 for ac_exec_ext in '' $ac_executable_extensions; do 17962 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 17963 ac_cv_path_CHECK_MAKE="$as_dir/$ac_word$ac_exec_ext" 17964 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 17965 break 2 17966 fi 17967 done 17968 done 17969 IFS=$as_save_IFS 17970 17971 ;; 17972 esac 17973 fi 17974 CHECK_MAKE=$ac_cv_path_CHECK_MAKE 17975 if test -n "$CHECK_MAKE"; then 17976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHECK_MAKE" >&5 17977 $as_echo "$CHECK_MAKE" >&6; } 17978 else 17979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17980 $as_echo "no" >&6; } 17981 fi 17982 17983 17984 test -n "$CHECK_MAKE" && break 17985 done 17986 17987 17988 MAKE_CANDIDATE=""$CHECK_MAKE"" 17989 DESCRIPTION="make in PATH" 17990 17991 # On Cygwin, we require a newer version of make than on other platforms 17992 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 17993 MAKE_VERSION_EXPR="-e 4\." 17994 MAKE_REQUIRED_VERSION="4.0" 17995 else 17996 MAKE_VERSION_EXPR="-e 3\.8[12] -e 4\." 17997 MAKE_REQUIRED_VERSION="3.81" 17998 fi 17999 18000 if test "x$MAKE_CANDIDATE" != x; then 18001 { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5 18002 $as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;} 18003 MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1` 18004 IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'` 18005 if test "x$IS_GNU_MAKE" = x; then 18006 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5 18007 $as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;} 18008 else 18009 IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP $MAKE_VERSION_EXPR` 18010 if test "x$IS_MODERN_MAKE" = x; then 18011 { $as_echo "$as_me:${as_lineno-$LINENO}: Found GNU make at $MAKE_CANDIDATE, however this is not version $MAKE_REQUIRED_VERSION or later. (it is: $MAKE_VERSION_STRING). Ignoring." >&5 18012 $as_echo "$as_me: Found GNU make at $MAKE_CANDIDATE, however this is not version $MAKE_REQUIRED_VERSION or later. (it is: $MAKE_VERSION_STRING). Ignoring." >&6;} 18013 else 18014 if test "x$OPENJDK_BUILD_OS" = "xwindows"; then 18015 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 18016 MAKE_EXPECTED_ENV='cygwin' 18017 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 18018 MAKE_EXPECTED_ENV='msys' 18019 else 18020 as_fn_error $? "Unknown Windows environment" "$LINENO" 5 18021 fi 18022 MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'` 18023 IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV` 18024 else 18025 # Not relevant for non-Windows 18026 IS_MAKE_CORRECT_ENV=true 18027 fi 18028 if test "x$IS_MAKE_CORRECT_ENV" = x; then 18029 { $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 18030 $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;} 18031 else 18032 FOUND_MAKE=$MAKE_CANDIDATE 18033 18034 # Only process if variable expands to non-empty 18035 18036 if test "x$FOUND_MAKE" != x; then 18037 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 18038 18039 # First separate the path from the arguments. This will split at the first 18040 # space. 18041 complete="$FOUND_MAKE" 18042 path="${complete%% *}" 18043 tmp="$complete EOL" 18044 arguments="${tmp#* }" 18045 18046 # Input might be given as Windows format, start by converting to 18047 # unix format. 18048 new_path=`$CYGPATH -u "$path"` 18049 18050 # Now try to locate executable using which 18051 new_path=`$WHICH "$new_path" 2> /dev/null` 18052 # bat and cmd files are not always considered executable in cygwin causing which 18053 # to not find them 18054 if test "x$new_path" = x \ 18055 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 18056 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 18057 new_path=`$CYGPATH -u "$path"` 18058 fi 18059 if test "x$new_path" = x; then 18060 # Oops. Which didn't find the executable. 18061 # The splitting of arguments from the executable at a space might have been incorrect, 18062 # since paths with space are more likely in Windows. Give it another try with the whole 18063 # argument. 18064 path="$complete" 18065 arguments="EOL" 18066 new_path=`$CYGPATH -u "$path"` 18067 new_path=`$WHICH "$new_path" 2> /dev/null` 18068 # bat and cmd files are not always considered executable in cygwin causing which 18069 # to not find them 18070 if test "x$new_path" = x \ 18071 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 18072 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 18073 new_path=`$CYGPATH -u "$path"` 18074 fi 18075 if test "x$new_path" = x; then 18076 # It's still not found. Now this is an unrecoverable error. 18077 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 18078 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 18079 has_space=`$ECHO "$complete" | $GREP " "` 18080 if test "x$has_space" != x; then 18081 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 18082 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 18083 fi 18084 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 18085 fi 18086 fi 18087 18088 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 18089 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 18090 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 18091 # "foo.exe" is OK but "foo" is an error. 18092 # 18093 # This test is therefore slightly more accurate than "test -f" to check for file presence. 18094 # It is also a way to make sure we got the proper file name for the real test later on. 18095 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 18096 if test "x$test_shortpath" = x; then 18097 # Short path failed, file does not exist as specified. 18098 # Try adding .exe or .cmd 18099 if test -f "${new_path}.exe"; then 18100 input_to_shortpath="${new_path}.exe" 18101 elif test -f "${new_path}.cmd"; then 18102 input_to_shortpath="${new_path}.cmd" 18103 else 18104 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5 18105 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;} 18106 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 18107 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 18108 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 18109 fi 18110 else 18111 input_to_shortpath="$new_path" 18112 fi 18113 18114 # Call helper function which possibly converts this using DOS-style short mode. 18115 # If so, the updated path is stored in $new_path. 18116 new_path="$input_to_shortpath" 18117 18118 input_path="$input_to_shortpath" 18119 # Check if we need to convert this using DOS-style short mode. If the path 18120 # contains just simple characters, use it. Otherwise (spaces, weird characters), 18121 # take no chances and rewrite it. 18122 # Note: m4 eats our [], so we need to use [ and ] instead. 18123 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 18124 if test "x$has_forbidden_chars" != x; then 18125 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 18126 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 18127 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 18128 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 18129 # Going to short mode and back again did indeed matter. Since short mode is 18130 # case insensitive, let's make it lowercase to improve readability. 18131 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 18132 # Now convert it back to Unix-style (cygpath) 18133 input_path=`$CYGPATH -u "$shortmode_path"` 18134 new_path="$input_path" 18135 fi 18136 fi 18137 18138 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 18139 if test "x$test_cygdrive_prefix" = x; then 18140 # As a simple fix, exclude /usr/bin since it's not a real path. 18141 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 18142 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 18143 # a path prefixed by /cygdrive for fixpath to work. 18144 new_path="$CYGWIN_ROOT_PATH$input_path" 18145 fi 18146 fi 18147 18148 # remove trailing .exe if any 18149 new_path="${new_path/%.exe/}" 18150 18151 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 18152 18153 # First separate the path from the arguments. This will split at the first 18154 # space. 18155 complete="$FOUND_MAKE" 18156 path="${complete%% *}" 18157 tmp="$complete EOL" 18158 arguments="${tmp#* }" 18159 18160 # Input might be given as Windows format, start by converting to 18161 # unix format. 18162 new_path="$path" 18163 18164 windows_path="$new_path" 18165 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 18166 unix_path=`$CYGPATH -u "$windows_path"` 18167 new_path="$unix_path" 18168 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 18169 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 18170 new_path="$unix_path" 18171 fi 18172 18173 18174 # Now try to locate executable using which 18175 new_path=`$WHICH "$new_path" 2> /dev/null` 18176 18177 if test "x$new_path" = x; then 18178 # Oops. Which didn't find the executable. 18179 # The splitting of arguments from the executable at a space might have been incorrect, 18180 # since paths with space are more likely in Windows. Give it another try with the whole 18181 # argument. 18182 path="$complete" 18183 arguments="EOL" 18184 new_path="$path" 18185 18186 windows_path="$new_path" 18187 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 18188 unix_path=`$CYGPATH -u "$windows_path"` 18189 new_path="$unix_path" 18190 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 18191 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 18192 new_path="$unix_path" 18193 fi 18194 18195 18196 new_path=`$WHICH "$new_path" 2> /dev/null` 18197 # bat and cmd files are not always considered executable in MSYS causing which 18198 # to not find them 18199 if test "x$new_path" = x \ 18200 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 18201 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 18202 new_path="$path" 18203 18204 windows_path="$new_path" 18205 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 18206 unix_path=`$CYGPATH -u "$windows_path"` 18207 new_path="$unix_path" 18208 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 18209 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 18210 new_path="$unix_path" 18211 fi 18212 18213 fi 18214 18215 if test "x$new_path" = x; then 18216 # It's still not found. Now this is an unrecoverable error. 18217 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 18218 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 18219 has_space=`$ECHO "$complete" | $GREP " "` 18220 if test "x$has_space" != x; then 18221 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 18222 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 18223 fi 18224 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 18225 fi 18226 fi 18227 18228 # Now new_path has a complete unix path to the binary 18229 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 18230 # Keep paths in /bin as-is, but remove trailing .exe if any 18231 new_path="${new_path/%.exe/}" 18232 # Do not save /bin paths to all_fixpath_prefixes! 18233 else 18234 # Not in mixed or Windows style, start by that. 18235 new_path=`cmd //c echo $new_path` 18236 18237 input_path="$new_path" 18238 # Check if we need to convert this using DOS-style short mode. If the path 18239 # contains just simple characters, use it. Otherwise (spaces, weird characters), 18240 # take no chances and rewrite it. 18241 # Note: m4 eats our [], so we need to use [ and ] instead. 18242 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 18243 if test "x$has_forbidden_chars" != x; then 18244 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 18245 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 18246 fi 18247 18248 # Output is in $new_path 18249 18250 windows_path="$new_path" 18251 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 18252 unix_path=`$CYGPATH -u "$windows_path"` 18253 new_path="$unix_path" 18254 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 18255 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 18256 new_path="$unix_path" 18257 fi 18258 18259 # remove trailing .exe if any 18260 new_path="${new_path/%.exe/}" 18261 18262 # Save the first 10 bytes of this path to the storage, so fixpath can work. 18263 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 18264 fi 18265 18266 else 18267 # We're on a unix platform. Hooray! :) 18268 # First separate the path from the arguments. This will split at the first 18269 # space. 18270 complete="$FOUND_MAKE" 18271 path="${complete%% *}" 18272 tmp="$complete EOL" 18273 arguments="${tmp#* }" 18274 18275 # Cannot rely on the command "which" here since it doesn't always work. 18276 is_absolute_path=`$ECHO "$path" | $GREP ^/` 18277 if test -z "$is_absolute_path"; then 18278 # Path to executable is not absolute. Find it. 18279 IFS_save="$IFS" 18280 IFS=: 18281 for p in $PATH; do 18282 if test -f "$p/$path" && test -x "$p/$path"; then 18283 new_path="$p/$path" 18284 break 18285 fi 18286 done 18287 IFS="$IFS_save" 18288 else 18289 # This is an absolute path, we can use it without further modifications. 18290 new_path="$path" 18291 fi 18292 18293 if test "x$new_path" = x; then 18294 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 18295 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 18296 has_space=`$ECHO "$complete" | $GREP " "` 18297 if test "x$has_space" != x; then 18298 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 18299 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 18300 fi 18301 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 18302 fi 18303 fi 18304 18305 # Now join together the path and the arguments once again 18306 if test "x$arguments" != xEOL; then 18307 new_complete="$new_path ${arguments% *}" 18308 else 18309 new_complete="$new_path" 18310 fi 18311 18312 if test "x$complete" != "x$new_complete"; then 18313 FOUND_MAKE="$new_complete" 18314 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5 18315 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;} 18316 fi 18317 fi 18318 18319 fi 18320 fi 18321 fi 18322 fi 18323 18324 fi 18325 18326 if test "x$FOUND_MAKE" = x; then 18327 if test "x$TOOLCHAIN_PATH" != x; then 18328 # We have a toolchain path, check that as well before giving up. 18329 OLD_PATH=$PATH 18330 PATH=$TOOLCHAIN_PATH:$PATH 18331 for ac_prog in gmake 18332 do 18333 # Extract the first word of "$ac_prog", so it can be a program name with args. 18334 set dummy $ac_prog; ac_word=$2 18335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18336 $as_echo_n "checking for $ac_word... " >&6; } 18337 if ${ac_cv_path_CHECK_TOOLSDIR_GMAKE+:} false; then : 18338 $as_echo_n "(cached) " >&6 18339 else 18340 case $CHECK_TOOLSDIR_GMAKE in 18341 [\\/]* | ?:[\\/]*) 18342 ac_cv_path_CHECK_TOOLSDIR_GMAKE="$CHECK_TOOLSDIR_GMAKE" # Let the user override the test with a path. 18343 ;; 18344 *) 18345 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18346 for as_dir in $PATH 18347 do 18348 IFS=$as_save_IFS 18349 test -z "$as_dir" && as_dir=. 18350 for ac_exec_ext in '' $ac_executable_extensions; do 18351 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18352 ac_cv_path_CHECK_TOOLSDIR_GMAKE="$as_dir/$ac_word$ac_exec_ext" 18353 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18354 break 2 18355 fi 18356 done 18357 done 18358 IFS=$as_save_IFS 18359 18360 ;; 18361 esac 18362 fi 18363 CHECK_TOOLSDIR_GMAKE=$ac_cv_path_CHECK_TOOLSDIR_GMAKE 18364 if test -n "$CHECK_TOOLSDIR_GMAKE"; then 18365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHECK_TOOLSDIR_GMAKE" >&5 18366 $as_echo "$CHECK_TOOLSDIR_GMAKE" >&6; } 18367 else 18368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18369 $as_echo "no" >&6; } 18370 fi 18371 18372 18373 test -n "$CHECK_TOOLSDIR_GMAKE" && break 18374 done 18375 18376 18377 MAKE_CANDIDATE=""$CHECK_TOOLSDIR_GMAKE"" 18378 DESCRIPTION="gmake in tools-dir" 18379 18380 # On Cygwin, we require a newer version of make than on other platforms 18381 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 18382 MAKE_VERSION_EXPR="-e 4\." 18383 MAKE_REQUIRED_VERSION="4.0" 18384 else 18385 MAKE_VERSION_EXPR="-e 3\.8[12] -e 4\." 18386 MAKE_REQUIRED_VERSION="3.81" 18387 fi 18388 18389 if test "x$MAKE_CANDIDATE" != x; then 18390 { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5 18391 $as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;} 18392 MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1` 18393 IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'` 18394 if test "x$IS_GNU_MAKE" = x; then 18395 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5 18396 $as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;} 18397 else 18398 IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP $MAKE_VERSION_EXPR` 18399 if test "x$IS_MODERN_MAKE" = x; then 18400 { $as_echo "$as_me:${as_lineno-$LINENO}: Found GNU make at $MAKE_CANDIDATE, however this is not version $MAKE_REQUIRED_VERSION or later. (it is: $MAKE_VERSION_STRING). Ignoring." >&5 18401 $as_echo "$as_me: Found GNU make at $MAKE_CANDIDATE, however this is not version $MAKE_REQUIRED_VERSION or later. (it is: $MAKE_VERSION_STRING). Ignoring." >&6;} 18402 else 18403 if test "x$OPENJDK_BUILD_OS" = "xwindows"; then 18404 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 18405 MAKE_EXPECTED_ENV='cygwin' 18406 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 18407 MAKE_EXPECTED_ENV='msys' 18408 else 18409 as_fn_error $? "Unknown Windows environment" "$LINENO" 5 18410 fi 18411 MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'` 18412 IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV` 18413 else 18414 # Not relevant for non-Windows 18415 IS_MAKE_CORRECT_ENV=true 18416 fi 18417 if test "x$IS_MAKE_CORRECT_ENV" = x; then 18418 { $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 18419 $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;} 18420 else 18421 FOUND_MAKE=$MAKE_CANDIDATE 18422 18423 # Only process if variable expands to non-empty 18424 18425 if test "x$FOUND_MAKE" != x; then 18426 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 18427 18428 # First separate the path from the arguments. This will split at the first 18429 # space. 18430 complete="$FOUND_MAKE" 18431 path="${complete%% *}" 18432 tmp="$complete EOL" 18433 arguments="${tmp#* }" 18434 18435 # Input might be given as Windows format, start by converting to 18436 # unix format. 18437 new_path=`$CYGPATH -u "$path"` 18438 18439 # Now try to locate executable using which 18440 new_path=`$WHICH "$new_path" 2> /dev/null` 18441 # bat and cmd files are not always considered executable in cygwin causing which 18442 # to not find them 18443 if test "x$new_path" = x \ 18444 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 18445 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 18446 new_path=`$CYGPATH -u "$path"` 18447 fi 18448 if test "x$new_path" = x; then 18449 # Oops. Which didn't find the executable. 18450 # The splitting of arguments from the executable at a space might have been incorrect, 18451 # since paths with space are more likely in Windows. Give it another try with the whole 18452 # argument. 18453 path="$complete" 18454 arguments="EOL" 18455 new_path=`$CYGPATH -u "$path"` 18456 new_path=`$WHICH "$new_path" 2> /dev/null` 18457 # bat and cmd files are not always considered executable in cygwin causing which 18458 # to not find them 18459 if test "x$new_path" = x \ 18460 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 18461 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 18462 new_path=`$CYGPATH -u "$path"` 18463 fi 18464 if test "x$new_path" = x; then 18465 # It's still not found. Now this is an unrecoverable error. 18466 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 18467 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 18468 has_space=`$ECHO "$complete" | $GREP " "` 18469 if test "x$has_space" != x; then 18470 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 18471 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 18472 fi 18473 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 18474 fi 18475 fi 18476 18477 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 18478 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 18479 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 18480 # "foo.exe" is OK but "foo" is an error. 18481 # 18482 # This test is therefore slightly more accurate than "test -f" to check for file presence. 18483 # It is also a way to make sure we got the proper file name for the real test later on. 18484 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 18485 if test "x$test_shortpath" = x; then 18486 # Short path failed, file does not exist as specified. 18487 # Try adding .exe or .cmd 18488 if test -f "${new_path}.exe"; then 18489 input_to_shortpath="${new_path}.exe" 18490 elif test -f "${new_path}.cmd"; then 18491 input_to_shortpath="${new_path}.cmd" 18492 else 18493 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5 18494 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;} 18495 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 18496 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 18497 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 18498 fi 18499 else 18500 input_to_shortpath="$new_path" 18501 fi 18502 18503 # Call helper function which possibly converts this using DOS-style short mode. 18504 # If so, the updated path is stored in $new_path. 18505 new_path="$input_to_shortpath" 18506 18507 input_path="$input_to_shortpath" 18508 # Check if we need to convert this using DOS-style short mode. If the path 18509 # contains just simple characters, use it. Otherwise (spaces, weird characters), 18510 # take no chances and rewrite it. 18511 # Note: m4 eats our [], so we need to use [ and ] instead. 18512 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 18513 if test "x$has_forbidden_chars" != x; then 18514 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 18515 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 18516 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 18517 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 18518 # Going to short mode and back again did indeed matter. Since short mode is 18519 # case insensitive, let's make it lowercase to improve readability. 18520 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 18521 # Now convert it back to Unix-style (cygpath) 18522 input_path=`$CYGPATH -u "$shortmode_path"` 18523 new_path="$input_path" 18524 fi 18525 fi 18526 18527 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 18528 if test "x$test_cygdrive_prefix" = x; then 18529 # As a simple fix, exclude /usr/bin since it's not a real path. 18530 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 18531 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 18532 # a path prefixed by /cygdrive for fixpath to work. 18533 new_path="$CYGWIN_ROOT_PATH$input_path" 18534 fi 18535 fi 18536 18537 # remove trailing .exe if any 18538 new_path="${new_path/%.exe/}" 18539 18540 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 18541 18542 # First separate the path from the arguments. This will split at the first 18543 # space. 18544 complete="$FOUND_MAKE" 18545 path="${complete%% *}" 18546 tmp="$complete EOL" 18547 arguments="${tmp#* }" 18548 18549 # Input might be given as Windows format, start by converting to 18550 # unix format. 18551 new_path="$path" 18552 18553 windows_path="$new_path" 18554 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 18555 unix_path=`$CYGPATH -u "$windows_path"` 18556 new_path="$unix_path" 18557 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 18558 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 18559 new_path="$unix_path" 18560 fi 18561 18562 18563 # Now try to locate executable using which 18564 new_path=`$WHICH "$new_path" 2> /dev/null` 18565 18566 if test "x$new_path" = x; then 18567 # Oops. Which didn't find the executable. 18568 # The splitting of arguments from the executable at a space might have been incorrect, 18569 # since paths with space are more likely in Windows. Give it another try with the whole 18570 # argument. 18571 path="$complete" 18572 arguments="EOL" 18573 new_path="$path" 18574 18575 windows_path="$new_path" 18576 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 18577 unix_path=`$CYGPATH -u "$windows_path"` 18578 new_path="$unix_path" 18579 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 18580 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 18581 new_path="$unix_path" 18582 fi 18583 18584 18585 new_path=`$WHICH "$new_path" 2> /dev/null` 18586 # bat and cmd files are not always considered executable in MSYS causing which 18587 # to not find them 18588 if test "x$new_path" = x \ 18589 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 18590 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 18591 new_path="$path" 18592 18593 windows_path="$new_path" 18594 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 18595 unix_path=`$CYGPATH -u "$windows_path"` 18596 new_path="$unix_path" 18597 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 18598 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 18599 new_path="$unix_path" 18600 fi 18601 18602 fi 18603 18604 if test "x$new_path" = x; then 18605 # It's still not found. Now this is an unrecoverable error. 18606 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 18607 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 18608 has_space=`$ECHO "$complete" | $GREP " "` 18609 if test "x$has_space" != x; then 18610 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 18611 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 18612 fi 18613 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 18614 fi 18615 fi 18616 18617 # Now new_path has a complete unix path to the binary 18618 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 18619 # Keep paths in /bin as-is, but remove trailing .exe if any 18620 new_path="${new_path/%.exe/}" 18621 # Do not save /bin paths to all_fixpath_prefixes! 18622 else 18623 # Not in mixed or Windows style, start by that. 18624 new_path=`cmd //c echo $new_path` 18625 18626 input_path="$new_path" 18627 # Check if we need to convert this using DOS-style short mode. If the path 18628 # contains just simple characters, use it. Otherwise (spaces, weird characters), 18629 # take no chances and rewrite it. 18630 # Note: m4 eats our [], so we need to use [ and ] instead. 18631 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 18632 if test "x$has_forbidden_chars" != x; then 18633 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 18634 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 18635 fi 18636 18637 # Output is in $new_path 18638 18639 windows_path="$new_path" 18640 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 18641 unix_path=`$CYGPATH -u "$windows_path"` 18642 new_path="$unix_path" 18643 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 18644 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 18645 new_path="$unix_path" 18646 fi 18647 18648 # remove trailing .exe if any 18649 new_path="${new_path/%.exe/}" 18650 18651 # Save the first 10 bytes of this path to the storage, so fixpath can work. 18652 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 18653 fi 18654 18655 else 18656 # We're on a unix platform. Hooray! :) 18657 # First separate the path from the arguments. This will split at the first 18658 # space. 18659 complete="$FOUND_MAKE" 18660 path="${complete%% *}" 18661 tmp="$complete EOL" 18662 arguments="${tmp#* }" 18663 18664 # Cannot rely on the command "which" here since it doesn't always work. 18665 is_absolute_path=`$ECHO "$path" | $GREP ^/` 18666 if test -z "$is_absolute_path"; then 18667 # Path to executable is not absolute. Find it. 18668 IFS_save="$IFS" 18669 IFS=: 18670 for p in $PATH; do 18671 if test -f "$p/$path" && test -x "$p/$path"; then 18672 new_path="$p/$path" 18673 break 18674 fi 18675 done 18676 IFS="$IFS_save" 18677 else 18678 # This is an absolute path, we can use it without further modifications. 18679 new_path="$path" 18680 fi 18681 18682 if test "x$new_path" = x; then 18683 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 18684 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 18685 has_space=`$ECHO "$complete" | $GREP " "` 18686 if test "x$has_space" != x; then 18687 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 18688 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 18689 fi 18690 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 18691 fi 18692 fi 18693 18694 # Now join together the path and the arguments once again 18695 if test "x$arguments" != xEOL; then 18696 new_complete="$new_path ${arguments% *}" 18697 else 18698 new_complete="$new_path" 18699 fi 18700 18701 if test "x$complete" != "x$new_complete"; then 18702 FOUND_MAKE="$new_complete" 18703 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5 18704 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;} 18705 fi 18706 fi 18707 18708 fi 18709 fi 18710 fi 18711 fi 18712 18713 if test "x$FOUND_MAKE" = x; then 18714 for ac_prog in make 18715 do 18716 # Extract the first word of "$ac_prog", so it can be a program name with args. 18717 set dummy $ac_prog; ac_word=$2 18718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18719 $as_echo_n "checking for $ac_word... " >&6; } 18720 if ${ac_cv_path_CHECK_TOOLSDIR_MAKE+:} false; then : 18721 $as_echo_n "(cached) " >&6 18722 else 18723 case $CHECK_TOOLSDIR_MAKE in 18724 [\\/]* | ?:[\\/]*) 18725 ac_cv_path_CHECK_TOOLSDIR_MAKE="$CHECK_TOOLSDIR_MAKE" # Let the user override the test with a path. 18726 ;; 18727 *) 18728 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18729 for as_dir in $PATH 18730 do 18731 IFS=$as_save_IFS 18732 test -z "$as_dir" && as_dir=. 18733 for ac_exec_ext in '' $ac_executable_extensions; do 18734 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18735 ac_cv_path_CHECK_TOOLSDIR_MAKE="$as_dir/$ac_word$ac_exec_ext" 18736 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18737 break 2 18738 fi 18739 done 18740 done 18741 IFS=$as_save_IFS 18742 18743 ;; 18744 esac 18745 fi 18746 CHECK_TOOLSDIR_MAKE=$ac_cv_path_CHECK_TOOLSDIR_MAKE 18747 if test -n "$CHECK_TOOLSDIR_MAKE"; then 18748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHECK_TOOLSDIR_MAKE" >&5 18749 $as_echo "$CHECK_TOOLSDIR_MAKE" >&6; } 18750 else 18751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18752 $as_echo "no" >&6; } 18753 fi 18754 18755 18756 test -n "$CHECK_TOOLSDIR_MAKE" && break 18757 done 18758 18759 18760 MAKE_CANDIDATE=""$CHECK_TOOLSDIR_MAKE"" 18761 DESCRIPTION="make in tools-dir" 18762 18763 # On Cygwin, we require a newer version of make than on other platforms 18764 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 18765 MAKE_VERSION_EXPR="-e 4\." 18766 MAKE_REQUIRED_VERSION="4.0" 18767 else 18768 MAKE_VERSION_EXPR="-e 3\.8[12] -e 4\." 18769 MAKE_REQUIRED_VERSION="3.81" 18770 fi 18771 18772 if test "x$MAKE_CANDIDATE" != x; then 18773 { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5 18774 $as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;} 18775 MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1` 18776 IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'` 18777 if test "x$IS_GNU_MAKE" = x; then 18778 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5 18779 $as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;} 18780 else 18781 IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP $MAKE_VERSION_EXPR` 18782 if test "x$IS_MODERN_MAKE" = x; then 18783 { $as_echo "$as_me:${as_lineno-$LINENO}: Found GNU make at $MAKE_CANDIDATE, however this is not version $MAKE_REQUIRED_VERSION or later. (it is: $MAKE_VERSION_STRING). Ignoring." >&5 18784 $as_echo "$as_me: Found GNU make at $MAKE_CANDIDATE, however this is not version $MAKE_REQUIRED_VERSION or later. (it is: $MAKE_VERSION_STRING). Ignoring." >&6;} 18785 else 18786 if test "x$OPENJDK_BUILD_OS" = "xwindows"; then 18787 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 18788 MAKE_EXPECTED_ENV='cygwin' 18789 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 18790 MAKE_EXPECTED_ENV='msys' 18791 else 18792 as_fn_error $? "Unknown Windows environment" "$LINENO" 5 18793 fi 18794 MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'` 18795 IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV` 18796 else 18797 # Not relevant for non-Windows 18798 IS_MAKE_CORRECT_ENV=true 18799 fi 18800 if test "x$IS_MAKE_CORRECT_ENV" = x; then 18801 { $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 18802 $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;} 18803 else 18804 FOUND_MAKE=$MAKE_CANDIDATE 18805 18806 # Only process if variable expands to non-empty 18807 18808 if test "x$FOUND_MAKE" != x; then 18809 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 18810 18811 # First separate the path from the arguments. This will split at the first 18812 # space. 18813 complete="$FOUND_MAKE" 18814 path="${complete%% *}" 18815 tmp="$complete EOL" 18816 arguments="${tmp#* }" 18817 18818 # Input might be given as Windows format, start by converting to 18819 # unix format. 18820 new_path=`$CYGPATH -u "$path"` 18821 18822 # Now try to locate executable using which 18823 new_path=`$WHICH "$new_path" 2> /dev/null` 18824 # bat and cmd files are not always considered executable in cygwin causing which 18825 # to not find them 18826 if test "x$new_path" = x \ 18827 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 18828 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 18829 new_path=`$CYGPATH -u "$path"` 18830 fi 18831 if test "x$new_path" = x; then 18832 # Oops. Which didn't find the executable. 18833 # The splitting of arguments from the executable at a space might have been incorrect, 18834 # since paths with space are more likely in Windows. Give it another try with the whole 18835 # argument. 18836 path="$complete" 18837 arguments="EOL" 18838 new_path=`$CYGPATH -u "$path"` 18839 new_path=`$WHICH "$new_path" 2> /dev/null` 18840 # bat and cmd files are not always considered executable in cygwin causing which 18841 # to not find them 18842 if test "x$new_path" = x \ 18843 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 18844 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 18845 new_path=`$CYGPATH -u "$path"` 18846 fi 18847 if test "x$new_path" = x; then 18848 # It's still not found. Now this is an unrecoverable error. 18849 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 18850 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 18851 has_space=`$ECHO "$complete" | $GREP " "` 18852 if test "x$has_space" != x; then 18853 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 18854 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 18855 fi 18856 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 18857 fi 18858 fi 18859 18860 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 18861 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 18862 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 18863 # "foo.exe" is OK but "foo" is an error. 18864 # 18865 # This test is therefore slightly more accurate than "test -f" to check for file presence. 18866 # It is also a way to make sure we got the proper file name for the real test later on. 18867 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 18868 if test "x$test_shortpath" = x; then 18869 # Short path failed, file does not exist as specified. 18870 # Try adding .exe or .cmd 18871 if test -f "${new_path}.exe"; then 18872 input_to_shortpath="${new_path}.exe" 18873 elif test -f "${new_path}.cmd"; then 18874 input_to_shortpath="${new_path}.cmd" 18875 else 18876 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5 18877 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;} 18878 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 18879 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 18880 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 18881 fi 18882 else 18883 input_to_shortpath="$new_path" 18884 fi 18885 18886 # Call helper function which possibly converts this using DOS-style short mode. 18887 # If so, the updated path is stored in $new_path. 18888 new_path="$input_to_shortpath" 18889 18890 input_path="$input_to_shortpath" 18891 # Check if we need to convert this using DOS-style short mode. If the path 18892 # contains just simple characters, use it. Otherwise (spaces, weird characters), 18893 # take no chances and rewrite it. 18894 # Note: m4 eats our [], so we need to use [ and ] instead. 18895 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 18896 if test "x$has_forbidden_chars" != x; then 18897 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 18898 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 18899 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 18900 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 18901 # Going to short mode and back again did indeed matter. Since short mode is 18902 # case insensitive, let's make it lowercase to improve readability. 18903 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 18904 # Now convert it back to Unix-style (cygpath) 18905 input_path=`$CYGPATH -u "$shortmode_path"` 18906 new_path="$input_path" 18907 fi 18908 fi 18909 18910 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 18911 if test "x$test_cygdrive_prefix" = x; then 18912 # As a simple fix, exclude /usr/bin since it's not a real path. 18913 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 18914 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 18915 # a path prefixed by /cygdrive for fixpath to work. 18916 new_path="$CYGWIN_ROOT_PATH$input_path" 18917 fi 18918 fi 18919 18920 # remove trailing .exe if any 18921 new_path="${new_path/%.exe/}" 18922 18923 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 18924 18925 # First separate the path from the arguments. This will split at the first 18926 # space. 18927 complete="$FOUND_MAKE" 18928 path="${complete%% *}" 18929 tmp="$complete EOL" 18930 arguments="${tmp#* }" 18931 18932 # Input might be given as Windows format, start by converting to 18933 # unix format. 18934 new_path="$path" 18935 18936 windows_path="$new_path" 18937 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 18938 unix_path=`$CYGPATH -u "$windows_path"` 18939 new_path="$unix_path" 18940 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 18941 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 18942 new_path="$unix_path" 18943 fi 18944 18945 18946 # Now try to locate executable using which 18947 new_path=`$WHICH "$new_path" 2> /dev/null` 18948 18949 if test "x$new_path" = x; then 18950 # Oops. Which didn't find the executable. 18951 # The splitting of arguments from the executable at a space might have been incorrect, 18952 # since paths with space are more likely in Windows. Give it another try with the whole 18953 # argument. 18954 path="$complete" 18955 arguments="EOL" 18956 new_path="$path" 18957 18958 windows_path="$new_path" 18959 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 18960 unix_path=`$CYGPATH -u "$windows_path"` 18961 new_path="$unix_path" 18962 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 18963 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 18964 new_path="$unix_path" 18965 fi 18966 18967 18968 new_path=`$WHICH "$new_path" 2> /dev/null` 18969 # bat and cmd files are not always considered executable in MSYS causing which 18970 # to not find them 18971 if test "x$new_path" = x \ 18972 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 18973 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 18974 new_path="$path" 18975 18976 windows_path="$new_path" 18977 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 18978 unix_path=`$CYGPATH -u "$windows_path"` 18979 new_path="$unix_path" 18980 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 18981 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 18982 new_path="$unix_path" 18983 fi 18984 18985 fi 18986 18987 if test "x$new_path" = x; then 18988 # It's still not found. Now this is an unrecoverable error. 18989 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 18990 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 18991 has_space=`$ECHO "$complete" | $GREP " "` 18992 if test "x$has_space" != x; then 18993 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 18994 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 18995 fi 18996 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 18997 fi 18998 fi 18999 19000 # Now new_path has a complete unix path to the binary 19001 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 19002 # Keep paths in /bin as-is, but remove trailing .exe if any 19003 new_path="${new_path/%.exe/}" 19004 # Do not save /bin paths to all_fixpath_prefixes! 19005 else 19006 # Not in mixed or Windows style, start by that. 19007 new_path=`cmd //c echo $new_path` 19008 19009 input_path="$new_path" 19010 # Check if we need to convert this using DOS-style short mode. If the path 19011 # contains just simple characters, use it. Otherwise (spaces, weird characters), 19012 # take no chances and rewrite it. 19013 # Note: m4 eats our [], so we need to use [ and ] instead. 19014 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 19015 if test "x$has_forbidden_chars" != x; then 19016 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 19017 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 19018 fi 19019 19020 # Output is in $new_path 19021 19022 windows_path="$new_path" 19023 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 19024 unix_path=`$CYGPATH -u "$windows_path"` 19025 new_path="$unix_path" 19026 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 19027 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 19028 new_path="$unix_path" 19029 fi 19030 19031 # remove trailing .exe if any 19032 new_path="${new_path/%.exe/}" 19033 19034 # Save the first 10 bytes of this path to the storage, so fixpath can work. 19035 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 19036 fi 19037 19038 else 19039 # We're on a unix platform. Hooray! :) 19040 # First separate the path from the arguments. This will split at the first 19041 # space. 19042 complete="$FOUND_MAKE" 19043 path="${complete%% *}" 19044 tmp="$complete EOL" 19045 arguments="${tmp#* }" 19046 19047 # Cannot rely on the command "which" here since it doesn't always work. 19048 is_absolute_path=`$ECHO "$path" | $GREP ^/` 19049 if test -z "$is_absolute_path"; then 19050 # Path to executable is not absolute. Find it. 19051 IFS_save="$IFS" 19052 IFS=: 19053 for p in $PATH; do 19054 if test -f "$p/$path" && test -x "$p/$path"; then 19055 new_path="$p/$path" 19056 break 19057 fi 19058 done 19059 IFS="$IFS_save" 19060 else 19061 # This is an absolute path, we can use it without further modifications. 19062 new_path="$path" 19063 fi 19064 19065 if test "x$new_path" = x; then 19066 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 19067 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 19068 has_space=`$ECHO "$complete" | $GREP " "` 19069 if test "x$has_space" != x; then 19070 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 19071 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 19072 fi 19073 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 19074 fi 19075 fi 19076 19077 # Now join together the path and the arguments once again 19078 if test "x$arguments" != xEOL; then 19079 new_complete="$new_path ${arguments% *}" 19080 else 19081 new_complete="$new_path" 19082 fi 19083 19084 if test "x$complete" != "x$new_complete"; then 19085 FOUND_MAKE="$new_complete" 19086 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5 19087 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;} 19088 fi 19089 fi 19090 19091 fi 19092 fi 19093 fi 19094 fi 19095 19096 fi 19097 PATH=$OLD_PATH 19098 fi 19099 fi 19100 19101 if test "x$FOUND_MAKE" = x; then 19102 as_fn_error $? "Cannot find GNU make $MAKE_REQUIRED_VERSION or newer! Please put it in the path, or add e.g. MAKE=/opt/gmake3.81/make as argument to configure." "$LINENO" 5 19103 fi 19104 19105 else 19106 # The variable is set, but is it from the command line or the environment? 19107 19108 # Try to remove the string !MAKE! from our list. 19109 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!MAKE!/} 19110 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 19111 # If it failed, the variable was not from the command line. Ignore it, 19112 # but warn the user (except for BASH, which is always set by the calling BASH). 19113 if test "xMAKE" != xBASH; then 19114 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of MAKE from the environment. Use command line variables instead." >&5 19115 $as_echo "$as_me: WARNING: Ignoring value of MAKE from the environment. Use command line variables instead." >&2;} 19116 fi 19117 # Try to locate tool using the code snippet 19118 19119 # Try our hardest to locate a correct version of GNU make 19120 for ac_prog in gmake 19121 do 19122 # Extract the first word of "$ac_prog", so it can be a program name with args. 19123 set dummy $ac_prog; ac_word=$2 19124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 19125 $as_echo_n "checking for $ac_word... " >&6; } 19126 if ${ac_cv_path_CHECK_GMAKE+:} false; then : 19127 $as_echo_n "(cached) " >&6 19128 else 19129 case $CHECK_GMAKE in 19130 [\\/]* | ?:[\\/]*) 19131 ac_cv_path_CHECK_GMAKE="$CHECK_GMAKE" # Let the user override the test with a path. 19132 ;; 19133 *) 19134 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19135 for as_dir in $PATH 19136 do 19137 IFS=$as_save_IFS 19138 test -z "$as_dir" && as_dir=. 19139 for ac_exec_ext in '' $ac_executable_extensions; do 19140 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 19141 ac_cv_path_CHECK_GMAKE="$as_dir/$ac_word$ac_exec_ext" 19142 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 19143 break 2 19144 fi 19145 done 19146 done 19147 IFS=$as_save_IFS 19148 19149 ;; 19150 esac 19151 fi 19152 CHECK_GMAKE=$ac_cv_path_CHECK_GMAKE 19153 if test -n "$CHECK_GMAKE"; then 19154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHECK_GMAKE" >&5 19155 $as_echo "$CHECK_GMAKE" >&6; } 19156 else 19157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19158 $as_echo "no" >&6; } 19159 fi 19160 19161 19162 test -n "$CHECK_GMAKE" && break 19163 done 19164 19165 19166 MAKE_CANDIDATE=""$CHECK_GMAKE"" 19167 DESCRIPTION="gmake in PATH" 19168 19169 # On Cygwin, we require a newer version of make than on other platforms 19170 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 19171 MAKE_VERSION_EXPR="-e 4\." 19172 MAKE_REQUIRED_VERSION="4.0" 19173 else 19174 MAKE_VERSION_EXPR="-e 3\.8[12] -e 4\." 19175 MAKE_REQUIRED_VERSION="3.81" 19176 fi 19177 19178 if test "x$MAKE_CANDIDATE" != x; then 19179 { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5 19180 $as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;} 19181 MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1` 19182 IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'` 19183 if test "x$IS_GNU_MAKE" = x; then 19184 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5 19185 $as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;} 19186 else 19187 IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP $MAKE_VERSION_EXPR` 19188 if test "x$IS_MODERN_MAKE" = x; then 19189 { $as_echo "$as_me:${as_lineno-$LINENO}: Found GNU make at $MAKE_CANDIDATE, however this is not version $MAKE_REQUIRED_VERSION or later. (it is: $MAKE_VERSION_STRING). Ignoring." >&5 19190 $as_echo "$as_me: Found GNU make at $MAKE_CANDIDATE, however this is not version $MAKE_REQUIRED_VERSION or later. (it is: $MAKE_VERSION_STRING). Ignoring." >&6;} 19191 else 19192 if test "x$OPENJDK_BUILD_OS" = "xwindows"; then 19193 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 19194 MAKE_EXPECTED_ENV='cygwin' 19195 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 19196 MAKE_EXPECTED_ENV='msys' 19197 else 19198 as_fn_error $? "Unknown Windows environment" "$LINENO" 5 19199 fi 19200 MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'` 19201 IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV` 19202 else 19203 # Not relevant for non-Windows 19204 IS_MAKE_CORRECT_ENV=true 19205 fi 19206 if test "x$IS_MAKE_CORRECT_ENV" = x; then 19207 { $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 19208 $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;} 19209 else 19210 FOUND_MAKE=$MAKE_CANDIDATE 19211 19212 # Only process if variable expands to non-empty 19213 19214 if test "x$FOUND_MAKE" != x; then 19215 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 19216 19217 # First separate the path from the arguments. This will split at the first 19218 # space. 19219 complete="$FOUND_MAKE" 19220 path="${complete%% *}" 19221 tmp="$complete EOL" 19222 arguments="${tmp#* }" 19223 19224 # Input might be given as Windows format, start by converting to 19225 # unix format. 19226 new_path=`$CYGPATH -u "$path"` 19227 19228 # Now try to locate executable using which 19229 new_path=`$WHICH "$new_path" 2> /dev/null` 19230 # bat and cmd files are not always considered executable in cygwin causing which 19231 # to not find them 19232 if test "x$new_path" = x \ 19233 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 19234 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 19235 new_path=`$CYGPATH -u "$path"` 19236 fi 19237 if test "x$new_path" = x; then 19238 # Oops. Which didn't find the executable. 19239 # The splitting of arguments from the executable at a space might have been incorrect, 19240 # since paths with space are more likely in Windows. Give it another try with the whole 19241 # argument. 19242 path="$complete" 19243 arguments="EOL" 19244 new_path=`$CYGPATH -u "$path"` 19245 new_path=`$WHICH "$new_path" 2> /dev/null` 19246 # bat and cmd files are not always considered executable in cygwin causing which 19247 # to not find them 19248 if test "x$new_path" = x \ 19249 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 19250 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 19251 new_path=`$CYGPATH -u "$path"` 19252 fi 19253 if test "x$new_path" = x; then 19254 # It's still not found. Now this is an unrecoverable error. 19255 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 19256 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 19257 has_space=`$ECHO "$complete" | $GREP " "` 19258 if test "x$has_space" != x; then 19259 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 19260 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 19261 fi 19262 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 19263 fi 19264 fi 19265 19266 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 19267 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 19268 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 19269 # "foo.exe" is OK but "foo" is an error. 19270 # 19271 # This test is therefore slightly more accurate than "test -f" to check for file presence. 19272 # It is also a way to make sure we got the proper file name for the real test later on. 19273 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 19274 if test "x$test_shortpath" = x; then 19275 # Short path failed, file does not exist as specified. 19276 # Try adding .exe or .cmd 19277 if test -f "${new_path}.exe"; then 19278 input_to_shortpath="${new_path}.exe" 19279 elif test -f "${new_path}.cmd"; then 19280 input_to_shortpath="${new_path}.cmd" 19281 else 19282 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5 19283 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;} 19284 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 19285 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 19286 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 19287 fi 19288 else 19289 input_to_shortpath="$new_path" 19290 fi 19291 19292 # Call helper function which possibly converts this using DOS-style short mode. 19293 # If so, the updated path is stored in $new_path. 19294 new_path="$input_to_shortpath" 19295 19296 input_path="$input_to_shortpath" 19297 # Check if we need to convert this using DOS-style short mode. If the path 19298 # contains just simple characters, use it. Otherwise (spaces, weird characters), 19299 # take no chances and rewrite it. 19300 # Note: m4 eats our [], so we need to use [ and ] instead. 19301 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 19302 if test "x$has_forbidden_chars" != x; then 19303 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 19304 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 19305 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 19306 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 19307 # Going to short mode and back again did indeed matter. Since short mode is 19308 # case insensitive, let's make it lowercase to improve readability. 19309 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 19310 # Now convert it back to Unix-style (cygpath) 19311 input_path=`$CYGPATH -u "$shortmode_path"` 19312 new_path="$input_path" 19313 fi 19314 fi 19315 19316 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 19317 if test "x$test_cygdrive_prefix" = x; then 19318 # As a simple fix, exclude /usr/bin since it's not a real path. 19319 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 19320 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 19321 # a path prefixed by /cygdrive for fixpath to work. 19322 new_path="$CYGWIN_ROOT_PATH$input_path" 19323 fi 19324 fi 19325 19326 # remove trailing .exe if any 19327 new_path="${new_path/%.exe/}" 19328 19329 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 19330 19331 # First separate the path from the arguments. This will split at the first 19332 # space. 19333 complete="$FOUND_MAKE" 19334 path="${complete%% *}" 19335 tmp="$complete EOL" 19336 arguments="${tmp#* }" 19337 19338 # Input might be given as Windows format, start by converting to 19339 # unix format. 19340 new_path="$path" 19341 19342 windows_path="$new_path" 19343 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 19344 unix_path=`$CYGPATH -u "$windows_path"` 19345 new_path="$unix_path" 19346 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 19347 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 19348 new_path="$unix_path" 19349 fi 19350 19351 19352 # Now try to locate executable using which 19353 new_path=`$WHICH "$new_path" 2> /dev/null` 19354 19355 if test "x$new_path" = x; then 19356 # Oops. Which didn't find the executable. 19357 # The splitting of arguments from the executable at a space might have been incorrect, 19358 # since paths with space are more likely in Windows. Give it another try with the whole 19359 # argument. 19360 path="$complete" 19361 arguments="EOL" 19362 new_path="$path" 19363 19364 windows_path="$new_path" 19365 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 19366 unix_path=`$CYGPATH -u "$windows_path"` 19367 new_path="$unix_path" 19368 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 19369 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 19370 new_path="$unix_path" 19371 fi 19372 19373 19374 new_path=`$WHICH "$new_path" 2> /dev/null` 19375 # bat and cmd files are not always considered executable in MSYS causing which 19376 # to not find them 19377 if test "x$new_path" = x \ 19378 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 19379 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 19380 new_path="$path" 19381 19382 windows_path="$new_path" 19383 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 19384 unix_path=`$CYGPATH -u "$windows_path"` 19385 new_path="$unix_path" 19386 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 19387 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 19388 new_path="$unix_path" 19389 fi 19390 19391 fi 19392 19393 if test "x$new_path" = x; then 19394 # It's still not found. Now this is an unrecoverable error. 19395 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 19396 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 19397 has_space=`$ECHO "$complete" | $GREP " "` 19398 if test "x$has_space" != x; then 19399 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 19400 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 19401 fi 19402 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 19403 fi 19404 fi 19405 19406 # Now new_path has a complete unix path to the binary 19407 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 19408 # Keep paths in /bin as-is, but remove trailing .exe if any 19409 new_path="${new_path/%.exe/}" 19410 # Do not save /bin paths to all_fixpath_prefixes! 19411 else 19412 # Not in mixed or Windows style, start by that. 19413 new_path=`cmd //c echo $new_path` 19414 19415 input_path="$new_path" 19416 # Check if we need to convert this using DOS-style short mode. If the path 19417 # contains just simple characters, use it. Otherwise (spaces, weird characters), 19418 # take no chances and rewrite it. 19419 # Note: m4 eats our [], so we need to use [ and ] instead. 19420 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 19421 if test "x$has_forbidden_chars" != x; then 19422 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 19423 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 19424 fi 19425 19426 # Output is in $new_path 19427 19428 windows_path="$new_path" 19429 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 19430 unix_path=`$CYGPATH -u "$windows_path"` 19431 new_path="$unix_path" 19432 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 19433 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 19434 new_path="$unix_path" 19435 fi 19436 19437 # remove trailing .exe if any 19438 new_path="${new_path/%.exe/}" 19439 19440 # Save the first 10 bytes of this path to the storage, so fixpath can work. 19441 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 19442 fi 19443 19444 else 19445 # We're on a unix platform. Hooray! :) 19446 # First separate the path from the arguments. This will split at the first 19447 # space. 19448 complete="$FOUND_MAKE" 19449 path="${complete%% *}" 19450 tmp="$complete EOL" 19451 arguments="${tmp#* }" 19452 19453 # Cannot rely on the command "which" here since it doesn't always work. 19454 is_absolute_path=`$ECHO "$path" | $GREP ^/` 19455 if test -z "$is_absolute_path"; then 19456 # Path to executable is not absolute. Find it. 19457 IFS_save="$IFS" 19458 IFS=: 19459 for p in $PATH; do 19460 if test -f "$p/$path" && test -x "$p/$path"; then 19461 new_path="$p/$path" 19462 break 19463 fi 19464 done 19465 IFS="$IFS_save" 19466 else 19467 # This is an absolute path, we can use it without further modifications. 19468 new_path="$path" 19469 fi 19470 19471 if test "x$new_path" = x; then 19472 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 19473 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 19474 has_space=`$ECHO "$complete" | $GREP " "` 19475 if test "x$has_space" != x; then 19476 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 19477 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 19478 fi 19479 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 19480 fi 19481 fi 19482 19483 # Now join together the path and the arguments once again 19484 if test "x$arguments" != xEOL; then 19485 new_complete="$new_path ${arguments% *}" 19486 else 19487 new_complete="$new_path" 19488 fi 19489 19490 if test "x$complete" != "x$new_complete"; then 19491 FOUND_MAKE="$new_complete" 19492 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5 19493 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;} 19494 fi 19495 fi 19496 19497 fi 19498 fi 19499 fi 19500 fi 19501 19502 19503 if test "x$FOUND_MAKE" = x; then 19504 for ac_prog in make 19505 do 19506 # Extract the first word of "$ac_prog", so it can be a program name with args. 19507 set dummy $ac_prog; ac_word=$2 19508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 19509 $as_echo_n "checking for $ac_word... " >&6; } 19510 if ${ac_cv_path_CHECK_MAKE+:} false; then : 19511 $as_echo_n "(cached) " >&6 19512 else 19513 case $CHECK_MAKE in 19514 [\\/]* | ?:[\\/]*) 19515 ac_cv_path_CHECK_MAKE="$CHECK_MAKE" # Let the user override the test with a path. 19516 ;; 19517 *) 19518 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19519 for as_dir in $PATH 19520 do 19521 IFS=$as_save_IFS 19522 test -z "$as_dir" && as_dir=. 19523 for ac_exec_ext in '' $ac_executable_extensions; do 19524 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 19525 ac_cv_path_CHECK_MAKE="$as_dir/$ac_word$ac_exec_ext" 19526 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 19527 break 2 19528 fi 19529 done 19530 done 19531 IFS=$as_save_IFS 19532 19533 ;; 19534 esac 19535 fi 19536 CHECK_MAKE=$ac_cv_path_CHECK_MAKE 19537 if test -n "$CHECK_MAKE"; then 19538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHECK_MAKE" >&5 19539 $as_echo "$CHECK_MAKE" >&6; } 19540 else 19541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19542 $as_echo "no" >&6; } 19543 fi 19544 19545 19546 test -n "$CHECK_MAKE" && break 19547 done 19548 19549 19550 MAKE_CANDIDATE=""$CHECK_MAKE"" 19551 DESCRIPTION="make in PATH" 19552 19553 # On Cygwin, we require a newer version of make than on other platforms 19554 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 19555 MAKE_VERSION_EXPR="-e 4\." 19556 MAKE_REQUIRED_VERSION="4.0" 19557 else 19558 MAKE_VERSION_EXPR="-e 3\.8[12] -e 4\." 19559 MAKE_REQUIRED_VERSION="3.81" 19560 fi 19561 19562 if test "x$MAKE_CANDIDATE" != x; then 19563 { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5 19564 $as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;} 19565 MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1` 19566 IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'` 19567 if test "x$IS_GNU_MAKE" = x; then 19568 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5 19569 $as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;} 19570 else 19571 IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP $MAKE_VERSION_EXPR` 19572 if test "x$IS_MODERN_MAKE" = x; then 19573 { $as_echo "$as_me:${as_lineno-$LINENO}: Found GNU make at $MAKE_CANDIDATE, however this is not version $MAKE_REQUIRED_VERSION or later. (it is: $MAKE_VERSION_STRING). Ignoring." >&5 19574 $as_echo "$as_me: Found GNU make at $MAKE_CANDIDATE, however this is not version $MAKE_REQUIRED_VERSION or later. (it is: $MAKE_VERSION_STRING). Ignoring." >&6;} 19575 else 19576 if test "x$OPENJDK_BUILD_OS" = "xwindows"; then 19577 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 19578 MAKE_EXPECTED_ENV='cygwin' 19579 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 19580 MAKE_EXPECTED_ENV='msys' 19581 else 19582 as_fn_error $? "Unknown Windows environment" "$LINENO" 5 19583 fi 19584 MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'` 19585 IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV` 19586 else 19587 # Not relevant for non-Windows 19588 IS_MAKE_CORRECT_ENV=true 19589 fi 19590 if test "x$IS_MAKE_CORRECT_ENV" = x; then 19591 { $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 19592 $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;} 19593 else 19594 FOUND_MAKE=$MAKE_CANDIDATE 19595 19596 # Only process if variable expands to non-empty 19597 19598 if test "x$FOUND_MAKE" != x; then 19599 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 19600 19601 # First separate the path from the arguments. This will split at the first 19602 # space. 19603 complete="$FOUND_MAKE" 19604 path="${complete%% *}" 19605 tmp="$complete EOL" 19606 arguments="${tmp#* }" 19607 19608 # Input might be given as Windows format, start by converting to 19609 # unix format. 19610 new_path=`$CYGPATH -u "$path"` 19611 19612 # Now try to locate executable using which 19613 new_path=`$WHICH "$new_path" 2> /dev/null` 19614 # bat and cmd files are not always considered executable in cygwin causing which 19615 # to not find them 19616 if test "x$new_path" = x \ 19617 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 19618 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 19619 new_path=`$CYGPATH -u "$path"` 19620 fi 19621 if test "x$new_path" = x; then 19622 # Oops. Which didn't find the executable. 19623 # The splitting of arguments from the executable at a space might have been incorrect, 19624 # since paths with space are more likely in Windows. Give it another try with the whole 19625 # argument. 19626 path="$complete" 19627 arguments="EOL" 19628 new_path=`$CYGPATH -u "$path"` 19629 new_path=`$WHICH "$new_path" 2> /dev/null` 19630 # bat and cmd files are not always considered executable in cygwin causing which 19631 # to not find them 19632 if test "x$new_path" = x \ 19633 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 19634 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 19635 new_path=`$CYGPATH -u "$path"` 19636 fi 19637 if test "x$new_path" = x; then 19638 # It's still not found. Now this is an unrecoverable error. 19639 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 19640 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 19641 has_space=`$ECHO "$complete" | $GREP " "` 19642 if test "x$has_space" != x; then 19643 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 19644 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 19645 fi 19646 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 19647 fi 19648 fi 19649 19650 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 19651 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 19652 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 19653 # "foo.exe" is OK but "foo" is an error. 19654 # 19655 # This test is therefore slightly more accurate than "test -f" to check for file presence. 19656 # It is also a way to make sure we got the proper file name for the real test later on. 19657 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 19658 if test "x$test_shortpath" = x; then 19659 # Short path failed, file does not exist as specified. 19660 # Try adding .exe or .cmd 19661 if test -f "${new_path}.exe"; then 19662 input_to_shortpath="${new_path}.exe" 19663 elif test -f "${new_path}.cmd"; then 19664 input_to_shortpath="${new_path}.cmd" 19665 else 19666 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5 19667 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;} 19668 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 19669 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 19670 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 19671 fi 19672 else 19673 input_to_shortpath="$new_path" 19674 fi 19675 19676 # Call helper function which possibly converts this using DOS-style short mode. 19677 # If so, the updated path is stored in $new_path. 19678 new_path="$input_to_shortpath" 19679 19680 input_path="$input_to_shortpath" 19681 # Check if we need to convert this using DOS-style short mode. If the path 19682 # contains just simple characters, use it. Otherwise (spaces, weird characters), 19683 # take no chances and rewrite it. 19684 # Note: m4 eats our [], so we need to use [ and ] instead. 19685 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 19686 if test "x$has_forbidden_chars" != x; then 19687 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 19688 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 19689 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 19690 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 19691 # Going to short mode and back again did indeed matter. Since short mode is 19692 # case insensitive, let's make it lowercase to improve readability. 19693 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 19694 # Now convert it back to Unix-style (cygpath) 19695 input_path=`$CYGPATH -u "$shortmode_path"` 19696 new_path="$input_path" 19697 fi 19698 fi 19699 19700 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 19701 if test "x$test_cygdrive_prefix" = x; then 19702 # As a simple fix, exclude /usr/bin since it's not a real path. 19703 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 19704 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 19705 # a path prefixed by /cygdrive for fixpath to work. 19706 new_path="$CYGWIN_ROOT_PATH$input_path" 19707 fi 19708 fi 19709 19710 # remove trailing .exe if any 19711 new_path="${new_path/%.exe/}" 19712 19713 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 19714 19715 # First separate the path from the arguments. This will split at the first 19716 # space. 19717 complete="$FOUND_MAKE" 19718 path="${complete%% *}" 19719 tmp="$complete EOL" 19720 arguments="${tmp#* }" 19721 19722 # Input might be given as Windows format, start by converting to 19723 # unix format. 19724 new_path="$path" 19725 19726 windows_path="$new_path" 19727 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 19728 unix_path=`$CYGPATH -u "$windows_path"` 19729 new_path="$unix_path" 19730 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 19731 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 19732 new_path="$unix_path" 19733 fi 19734 19735 19736 # Now try to locate executable using which 19737 new_path=`$WHICH "$new_path" 2> /dev/null` 19738 19739 if test "x$new_path" = x; then 19740 # Oops. Which didn't find the executable. 19741 # The splitting of arguments from the executable at a space might have been incorrect, 19742 # since paths with space are more likely in Windows. Give it another try with the whole 19743 # argument. 19744 path="$complete" 19745 arguments="EOL" 19746 new_path="$path" 19747 19748 windows_path="$new_path" 19749 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 19750 unix_path=`$CYGPATH -u "$windows_path"` 19751 new_path="$unix_path" 19752 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 19753 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 19754 new_path="$unix_path" 19755 fi 19756 19757 19758 new_path=`$WHICH "$new_path" 2> /dev/null` 19759 # bat and cmd files are not always considered executable in MSYS causing which 19760 # to not find them 19761 if test "x$new_path" = x \ 19762 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 19763 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 19764 new_path="$path" 19765 19766 windows_path="$new_path" 19767 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 19768 unix_path=`$CYGPATH -u "$windows_path"` 19769 new_path="$unix_path" 19770 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 19771 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 19772 new_path="$unix_path" 19773 fi 19774 19775 fi 19776 19777 if test "x$new_path" = x; then 19778 # It's still not found. Now this is an unrecoverable error. 19779 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 19780 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 19781 has_space=`$ECHO "$complete" | $GREP " "` 19782 if test "x$has_space" != x; then 19783 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 19784 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 19785 fi 19786 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 19787 fi 19788 fi 19789 19790 # Now new_path has a complete unix path to the binary 19791 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 19792 # Keep paths in /bin as-is, but remove trailing .exe if any 19793 new_path="${new_path/%.exe/}" 19794 # Do not save /bin paths to all_fixpath_prefixes! 19795 else 19796 # Not in mixed or Windows style, start by that. 19797 new_path=`cmd //c echo $new_path` 19798 19799 input_path="$new_path" 19800 # Check if we need to convert this using DOS-style short mode. If the path 19801 # contains just simple characters, use it. Otherwise (spaces, weird characters), 19802 # take no chances and rewrite it. 19803 # Note: m4 eats our [], so we need to use [ and ] instead. 19804 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 19805 if test "x$has_forbidden_chars" != x; then 19806 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 19807 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 19808 fi 19809 19810 # Output is in $new_path 19811 19812 windows_path="$new_path" 19813 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 19814 unix_path=`$CYGPATH -u "$windows_path"` 19815 new_path="$unix_path" 19816 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 19817 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 19818 new_path="$unix_path" 19819 fi 19820 19821 # remove trailing .exe if any 19822 new_path="${new_path/%.exe/}" 19823 19824 # Save the first 10 bytes of this path to the storage, so fixpath can work. 19825 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 19826 fi 19827 19828 else 19829 # We're on a unix platform. Hooray! :) 19830 # First separate the path from the arguments. This will split at the first 19831 # space. 19832 complete="$FOUND_MAKE" 19833 path="${complete%% *}" 19834 tmp="$complete EOL" 19835 arguments="${tmp#* }" 19836 19837 # Cannot rely on the command "which" here since it doesn't always work. 19838 is_absolute_path=`$ECHO "$path" | $GREP ^/` 19839 if test -z "$is_absolute_path"; then 19840 # Path to executable is not absolute. Find it. 19841 IFS_save="$IFS" 19842 IFS=: 19843 for p in $PATH; do 19844 if test -f "$p/$path" && test -x "$p/$path"; then 19845 new_path="$p/$path" 19846 break 19847 fi 19848 done 19849 IFS="$IFS_save" 19850 else 19851 # This is an absolute path, we can use it without further modifications. 19852 new_path="$path" 19853 fi 19854 19855 if test "x$new_path" = x; then 19856 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 19857 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 19858 has_space=`$ECHO "$complete" | $GREP " "` 19859 if test "x$has_space" != x; then 19860 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 19861 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 19862 fi 19863 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 19864 fi 19865 fi 19866 19867 # Now join together the path and the arguments once again 19868 if test "x$arguments" != xEOL; then 19869 new_complete="$new_path ${arguments% *}" 19870 else 19871 new_complete="$new_path" 19872 fi 19873 19874 if test "x$complete" != "x$new_complete"; then 19875 FOUND_MAKE="$new_complete" 19876 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5 19877 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;} 19878 fi 19879 fi 19880 19881 fi 19882 fi 19883 fi 19884 fi 19885 19886 fi 19887 19888 if test "x$FOUND_MAKE" = x; then 19889 if test "x$TOOLCHAIN_PATH" != x; then 19890 # We have a toolchain path, check that as well before giving up. 19891 OLD_PATH=$PATH 19892 PATH=$TOOLCHAIN_PATH:$PATH 19893 for ac_prog in gmake 19894 do 19895 # Extract the first word of "$ac_prog", so it can be a program name with args. 19896 set dummy $ac_prog; ac_word=$2 19897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 19898 $as_echo_n "checking for $ac_word... " >&6; } 19899 if ${ac_cv_path_CHECK_TOOLSDIR_GMAKE+:} false; then : 19900 $as_echo_n "(cached) " >&6 19901 else 19902 case $CHECK_TOOLSDIR_GMAKE in 19903 [\\/]* | ?:[\\/]*) 19904 ac_cv_path_CHECK_TOOLSDIR_GMAKE="$CHECK_TOOLSDIR_GMAKE" # Let the user override the test with a path. 19905 ;; 19906 *) 19907 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19908 for as_dir in $PATH 19909 do 19910 IFS=$as_save_IFS 19911 test -z "$as_dir" && as_dir=. 19912 for ac_exec_ext in '' $ac_executable_extensions; do 19913 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 19914 ac_cv_path_CHECK_TOOLSDIR_GMAKE="$as_dir/$ac_word$ac_exec_ext" 19915 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 19916 break 2 19917 fi 19918 done 19919 done 19920 IFS=$as_save_IFS 19921 19922 ;; 19923 esac 19924 fi 19925 CHECK_TOOLSDIR_GMAKE=$ac_cv_path_CHECK_TOOLSDIR_GMAKE 19926 if test -n "$CHECK_TOOLSDIR_GMAKE"; then 19927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHECK_TOOLSDIR_GMAKE" >&5 19928 $as_echo "$CHECK_TOOLSDIR_GMAKE" >&6; } 19929 else 19930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19931 $as_echo "no" >&6; } 19932 fi 19933 19934 19935 test -n "$CHECK_TOOLSDIR_GMAKE" && break 19936 done 19937 19938 19939 MAKE_CANDIDATE=""$CHECK_TOOLSDIR_GMAKE"" 19940 DESCRIPTION="gmake in tools-dir" 19941 19942 # On Cygwin, we require a newer version of make than on other platforms 19943 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 19944 MAKE_VERSION_EXPR="-e 4\." 19945 MAKE_REQUIRED_VERSION="4.0" 19946 else 19947 MAKE_VERSION_EXPR="-e 3\.8[12] -e 4\." 19948 MAKE_REQUIRED_VERSION="3.81" 19949 fi 19950 19951 if test "x$MAKE_CANDIDATE" != x; then 19952 { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5 19953 $as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;} 19954 MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1` 19955 IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'` 19956 if test "x$IS_GNU_MAKE" = x; then 19957 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5 19958 $as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;} 19959 else 19960 IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP $MAKE_VERSION_EXPR` 19961 if test "x$IS_MODERN_MAKE" = x; then 19962 { $as_echo "$as_me:${as_lineno-$LINENO}: Found GNU make at $MAKE_CANDIDATE, however this is not version $MAKE_REQUIRED_VERSION or later. (it is: $MAKE_VERSION_STRING). Ignoring." >&5 19963 $as_echo "$as_me: Found GNU make at $MAKE_CANDIDATE, however this is not version $MAKE_REQUIRED_VERSION or later. (it is: $MAKE_VERSION_STRING). Ignoring." >&6;} 19964 else 19965 if test "x$OPENJDK_BUILD_OS" = "xwindows"; then 19966 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 19967 MAKE_EXPECTED_ENV='cygwin' 19968 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 19969 MAKE_EXPECTED_ENV='msys' 19970 else 19971 as_fn_error $? "Unknown Windows environment" "$LINENO" 5 19972 fi 19973 MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'` 19974 IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV` 19975 else 19976 # Not relevant for non-Windows 19977 IS_MAKE_CORRECT_ENV=true 19978 fi 19979 if test "x$IS_MAKE_CORRECT_ENV" = x; then 19980 { $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 19981 $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;} 19982 else 19983 FOUND_MAKE=$MAKE_CANDIDATE 19984 19985 # Only process if variable expands to non-empty 19986 19987 if test "x$FOUND_MAKE" != x; then 19988 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 19989 19990 # First separate the path from the arguments. This will split at the first 19991 # space. 19992 complete="$FOUND_MAKE" 19993 path="${complete%% *}" 19994 tmp="$complete EOL" 19995 arguments="${tmp#* }" 19996 19997 # Input might be given as Windows format, start by converting to 19998 # unix format. 19999 new_path=`$CYGPATH -u "$path"` 20000 20001 # Now try to locate executable using which 20002 new_path=`$WHICH "$new_path" 2> /dev/null` 20003 # bat and cmd files are not always considered executable in cygwin causing which 20004 # to not find them 20005 if test "x$new_path" = x \ 20006 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 20007 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 20008 new_path=`$CYGPATH -u "$path"` 20009 fi 20010 if test "x$new_path" = x; then 20011 # Oops. Which didn't find the executable. 20012 # The splitting of arguments from the executable at a space might have been incorrect, 20013 # since paths with space are more likely in Windows. Give it another try with the whole 20014 # argument. 20015 path="$complete" 20016 arguments="EOL" 20017 new_path=`$CYGPATH -u "$path"` 20018 new_path=`$WHICH "$new_path" 2> /dev/null` 20019 # bat and cmd files are not always considered executable in cygwin causing which 20020 # to not find them 20021 if test "x$new_path" = x \ 20022 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 20023 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 20024 new_path=`$CYGPATH -u "$path"` 20025 fi 20026 if test "x$new_path" = x; then 20027 # It's still not found. Now this is an unrecoverable error. 20028 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 20029 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 20030 has_space=`$ECHO "$complete" | $GREP " "` 20031 if test "x$has_space" != x; then 20032 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 20033 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 20034 fi 20035 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 20036 fi 20037 fi 20038 20039 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 20040 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 20041 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 20042 # "foo.exe" is OK but "foo" is an error. 20043 # 20044 # This test is therefore slightly more accurate than "test -f" to check for file presence. 20045 # It is also a way to make sure we got the proper file name for the real test later on. 20046 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 20047 if test "x$test_shortpath" = x; then 20048 # Short path failed, file does not exist as specified. 20049 # Try adding .exe or .cmd 20050 if test -f "${new_path}.exe"; then 20051 input_to_shortpath="${new_path}.exe" 20052 elif test -f "${new_path}.cmd"; then 20053 input_to_shortpath="${new_path}.cmd" 20054 else 20055 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5 20056 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;} 20057 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 20058 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 20059 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 20060 fi 20061 else 20062 input_to_shortpath="$new_path" 20063 fi 20064 20065 # Call helper function which possibly converts this using DOS-style short mode. 20066 # If so, the updated path is stored in $new_path. 20067 new_path="$input_to_shortpath" 20068 20069 input_path="$input_to_shortpath" 20070 # Check if we need to convert this using DOS-style short mode. If the path 20071 # contains just simple characters, use it. Otherwise (spaces, weird characters), 20072 # take no chances and rewrite it. 20073 # Note: m4 eats our [], so we need to use [ and ] instead. 20074 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 20075 if test "x$has_forbidden_chars" != x; then 20076 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 20077 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 20078 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 20079 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 20080 # Going to short mode and back again did indeed matter. Since short mode is 20081 # case insensitive, let's make it lowercase to improve readability. 20082 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 20083 # Now convert it back to Unix-style (cygpath) 20084 input_path=`$CYGPATH -u "$shortmode_path"` 20085 new_path="$input_path" 20086 fi 20087 fi 20088 20089 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 20090 if test "x$test_cygdrive_prefix" = x; then 20091 # As a simple fix, exclude /usr/bin since it's not a real path. 20092 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 20093 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 20094 # a path prefixed by /cygdrive for fixpath to work. 20095 new_path="$CYGWIN_ROOT_PATH$input_path" 20096 fi 20097 fi 20098 20099 # remove trailing .exe if any 20100 new_path="${new_path/%.exe/}" 20101 20102 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 20103 20104 # First separate the path from the arguments. This will split at the first 20105 # space. 20106 complete="$FOUND_MAKE" 20107 path="${complete%% *}" 20108 tmp="$complete EOL" 20109 arguments="${tmp#* }" 20110 20111 # Input might be given as Windows format, start by converting to 20112 # unix format. 20113 new_path="$path" 20114 20115 windows_path="$new_path" 20116 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 20117 unix_path=`$CYGPATH -u "$windows_path"` 20118 new_path="$unix_path" 20119 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 20120 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 20121 new_path="$unix_path" 20122 fi 20123 20124 20125 # Now try to locate executable using which 20126 new_path=`$WHICH "$new_path" 2> /dev/null` 20127 20128 if test "x$new_path" = x; then 20129 # Oops. Which didn't find the executable. 20130 # The splitting of arguments from the executable at a space might have been incorrect, 20131 # since paths with space are more likely in Windows. Give it another try with the whole 20132 # argument. 20133 path="$complete" 20134 arguments="EOL" 20135 new_path="$path" 20136 20137 windows_path="$new_path" 20138 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 20139 unix_path=`$CYGPATH -u "$windows_path"` 20140 new_path="$unix_path" 20141 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 20142 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 20143 new_path="$unix_path" 20144 fi 20145 20146 20147 new_path=`$WHICH "$new_path" 2> /dev/null` 20148 # bat and cmd files are not always considered executable in MSYS causing which 20149 # to not find them 20150 if test "x$new_path" = x \ 20151 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 20152 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 20153 new_path="$path" 20154 20155 windows_path="$new_path" 20156 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 20157 unix_path=`$CYGPATH -u "$windows_path"` 20158 new_path="$unix_path" 20159 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 20160 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 20161 new_path="$unix_path" 20162 fi 20163 20164 fi 20165 20166 if test "x$new_path" = x; then 20167 # It's still not found. Now this is an unrecoverable error. 20168 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 20169 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 20170 has_space=`$ECHO "$complete" | $GREP " "` 20171 if test "x$has_space" != x; then 20172 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 20173 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 20174 fi 20175 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 20176 fi 20177 fi 20178 20179 # Now new_path has a complete unix path to the binary 20180 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 20181 # Keep paths in /bin as-is, but remove trailing .exe if any 20182 new_path="${new_path/%.exe/}" 20183 # Do not save /bin paths to all_fixpath_prefixes! 20184 else 20185 # Not in mixed or Windows style, start by that. 20186 new_path=`cmd //c echo $new_path` 20187 20188 input_path="$new_path" 20189 # Check if we need to convert this using DOS-style short mode. If the path 20190 # contains just simple characters, use it. Otherwise (spaces, weird characters), 20191 # take no chances and rewrite it. 20192 # Note: m4 eats our [], so we need to use [ and ] instead. 20193 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 20194 if test "x$has_forbidden_chars" != x; then 20195 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 20196 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 20197 fi 20198 20199 # Output is in $new_path 20200 20201 windows_path="$new_path" 20202 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 20203 unix_path=`$CYGPATH -u "$windows_path"` 20204 new_path="$unix_path" 20205 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 20206 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 20207 new_path="$unix_path" 20208 fi 20209 20210 # remove trailing .exe if any 20211 new_path="${new_path/%.exe/}" 20212 20213 # Save the first 10 bytes of this path to the storage, so fixpath can work. 20214 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 20215 fi 20216 20217 else 20218 # We're on a unix platform. Hooray! :) 20219 # First separate the path from the arguments. This will split at the first 20220 # space. 20221 complete="$FOUND_MAKE" 20222 path="${complete%% *}" 20223 tmp="$complete EOL" 20224 arguments="${tmp#* }" 20225 20226 # Cannot rely on the command "which" here since it doesn't always work. 20227 is_absolute_path=`$ECHO "$path" | $GREP ^/` 20228 if test -z "$is_absolute_path"; then 20229 # Path to executable is not absolute. Find it. 20230 IFS_save="$IFS" 20231 IFS=: 20232 for p in $PATH; do 20233 if test -f "$p/$path" && test -x "$p/$path"; then 20234 new_path="$p/$path" 20235 break 20236 fi 20237 done 20238 IFS="$IFS_save" 20239 else 20240 # This is an absolute path, we can use it without further modifications. 20241 new_path="$path" 20242 fi 20243 20244 if test "x$new_path" = x; then 20245 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 20246 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 20247 has_space=`$ECHO "$complete" | $GREP " "` 20248 if test "x$has_space" != x; then 20249 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 20250 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 20251 fi 20252 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 20253 fi 20254 fi 20255 20256 # Now join together the path and the arguments once again 20257 if test "x$arguments" != xEOL; then 20258 new_complete="$new_path ${arguments% *}" 20259 else 20260 new_complete="$new_path" 20261 fi 20262 20263 if test "x$complete" != "x$new_complete"; then 20264 FOUND_MAKE="$new_complete" 20265 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5 20266 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;} 20267 fi 20268 fi 20269 20270 fi 20271 fi 20272 fi 20273 fi 20274 20275 if test "x$FOUND_MAKE" = x; then 20276 for ac_prog in make 20277 do 20278 # Extract the first word of "$ac_prog", so it can be a program name with args. 20279 set dummy $ac_prog; ac_word=$2 20280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 20281 $as_echo_n "checking for $ac_word... " >&6; } 20282 if ${ac_cv_path_CHECK_TOOLSDIR_MAKE+:} false; then : 20283 $as_echo_n "(cached) " >&6 20284 else 20285 case $CHECK_TOOLSDIR_MAKE in 20286 [\\/]* | ?:[\\/]*) 20287 ac_cv_path_CHECK_TOOLSDIR_MAKE="$CHECK_TOOLSDIR_MAKE" # Let the user override the test with a path. 20288 ;; 20289 *) 20290 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 20291 for as_dir in $PATH 20292 do 20293 IFS=$as_save_IFS 20294 test -z "$as_dir" && as_dir=. 20295 for ac_exec_ext in '' $ac_executable_extensions; do 20296 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 20297 ac_cv_path_CHECK_TOOLSDIR_MAKE="$as_dir/$ac_word$ac_exec_ext" 20298 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 20299 break 2 20300 fi 20301 done 20302 done 20303 IFS=$as_save_IFS 20304 20305 ;; 20306 esac 20307 fi 20308 CHECK_TOOLSDIR_MAKE=$ac_cv_path_CHECK_TOOLSDIR_MAKE 20309 if test -n "$CHECK_TOOLSDIR_MAKE"; then 20310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHECK_TOOLSDIR_MAKE" >&5 20311 $as_echo "$CHECK_TOOLSDIR_MAKE" >&6; } 20312 else 20313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 20314 $as_echo "no" >&6; } 20315 fi 20316 20317 20318 test -n "$CHECK_TOOLSDIR_MAKE" && break 20319 done 20320 20321 20322 MAKE_CANDIDATE=""$CHECK_TOOLSDIR_MAKE"" 20323 DESCRIPTION="make in tools-dir" 20324 20325 # On Cygwin, we require a newer version of make than on other platforms 20326 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 20327 MAKE_VERSION_EXPR="-e 4\." 20328 MAKE_REQUIRED_VERSION="4.0" 20329 else 20330 MAKE_VERSION_EXPR="-e 3\.8[12] -e 4\." 20331 MAKE_REQUIRED_VERSION="3.81" 20332 fi 20333 20334 if test "x$MAKE_CANDIDATE" != x; then 20335 { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5 20336 $as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;} 20337 MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1` 20338 IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'` 20339 if test "x$IS_GNU_MAKE" = x; then 20340 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5 20341 $as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;} 20342 else 20343 IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP $MAKE_VERSION_EXPR` 20344 if test "x$IS_MODERN_MAKE" = x; then 20345 { $as_echo "$as_me:${as_lineno-$LINENO}: Found GNU make at $MAKE_CANDIDATE, however this is not version $MAKE_REQUIRED_VERSION or later. (it is: $MAKE_VERSION_STRING). Ignoring." >&5 20346 $as_echo "$as_me: Found GNU make at $MAKE_CANDIDATE, however this is not version $MAKE_REQUIRED_VERSION or later. (it is: $MAKE_VERSION_STRING). Ignoring." >&6;} 20347 else 20348 if test "x$OPENJDK_BUILD_OS" = "xwindows"; then 20349 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 20350 MAKE_EXPECTED_ENV='cygwin' 20351 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 20352 MAKE_EXPECTED_ENV='msys' 20353 else 20354 as_fn_error $? "Unknown Windows environment" "$LINENO" 5 20355 fi 20356 MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'` 20357 IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV` 20358 else 20359 # Not relevant for non-Windows 20360 IS_MAKE_CORRECT_ENV=true 20361 fi 20362 if test "x$IS_MAKE_CORRECT_ENV" = x; then 20363 { $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 20364 $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;} 20365 else 20366 FOUND_MAKE=$MAKE_CANDIDATE 20367 20368 # Only process if variable expands to non-empty 20369 20370 if test "x$FOUND_MAKE" != x; then 20371 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 20372 20373 # First separate the path from the arguments. This will split at the first 20374 # space. 20375 complete="$FOUND_MAKE" 20376 path="${complete%% *}" 20377 tmp="$complete EOL" 20378 arguments="${tmp#* }" 20379 20380 # Input might be given as Windows format, start by converting to 20381 # unix format. 20382 new_path=`$CYGPATH -u "$path"` 20383 20384 # Now try to locate executable using which 20385 new_path=`$WHICH "$new_path" 2> /dev/null` 20386 # bat and cmd files are not always considered executable in cygwin causing which 20387 # to not find them 20388 if test "x$new_path" = x \ 20389 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 20390 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 20391 new_path=`$CYGPATH -u "$path"` 20392 fi 20393 if test "x$new_path" = x; then 20394 # Oops. Which didn't find the executable. 20395 # The splitting of arguments from the executable at a space might have been incorrect, 20396 # since paths with space are more likely in Windows. Give it another try with the whole 20397 # argument. 20398 path="$complete" 20399 arguments="EOL" 20400 new_path=`$CYGPATH -u "$path"` 20401 new_path=`$WHICH "$new_path" 2> /dev/null` 20402 # bat and cmd files are not always considered executable in cygwin causing which 20403 # to not find them 20404 if test "x$new_path" = x \ 20405 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 20406 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 20407 new_path=`$CYGPATH -u "$path"` 20408 fi 20409 if test "x$new_path" = x; then 20410 # It's still not found. Now this is an unrecoverable error. 20411 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 20412 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 20413 has_space=`$ECHO "$complete" | $GREP " "` 20414 if test "x$has_space" != x; then 20415 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 20416 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 20417 fi 20418 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 20419 fi 20420 fi 20421 20422 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 20423 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 20424 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 20425 # "foo.exe" is OK but "foo" is an error. 20426 # 20427 # This test is therefore slightly more accurate than "test -f" to check for file presence. 20428 # It is also a way to make sure we got the proper file name for the real test later on. 20429 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 20430 if test "x$test_shortpath" = x; then 20431 # Short path failed, file does not exist as specified. 20432 # Try adding .exe or .cmd 20433 if test -f "${new_path}.exe"; then 20434 input_to_shortpath="${new_path}.exe" 20435 elif test -f "${new_path}.cmd"; then 20436 input_to_shortpath="${new_path}.cmd" 20437 else 20438 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5 20439 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;} 20440 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 20441 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 20442 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 20443 fi 20444 else 20445 input_to_shortpath="$new_path" 20446 fi 20447 20448 # Call helper function which possibly converts this using DOS-style short mode. 20449 # If so, the updated path is stored in $new_path. 20450 new_path="$input_to_shortpath" 20451 20452 input_path="$input_to_shortpath" 20453 # Check if we need to convert this using DOS-style short mode. If the path 20454 # contains just simple characters, use it. Otherwise (spaces, weird characters), 20455 # take no chances and rewrite it. 20456 # Note: m4 eats our [], so we need to use [ and ] instead. 20457 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 20458 if test "x$has_forbidden_chars" != x; then 20459 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 20460 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 20461 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 20462 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 20463 # Going to short mode and back again did indeed matter. Since short mode is 20464 # case insensitive, let's make it lowercase to improve readability. 20465 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 20466 # Now convert it back to Unix-style (cygpath) 20467 input_path=`$CYGPATH -u "$shortmode_path"` 20468 new_path="$input_path" 20469 fi 20470 fi 20471 20472 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 20473 if test "x$test_cygdrive_prefix" = x; then 20474 # As a simple fix, exclude /usr/bin since it's not a real path. 20475 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 20476 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 20477 # a path prefixed by /cygdrive for fixpath to work. 20478 new_path="$CYGWIN_ROOT_PATH$input_path" 20479 fi 20480 fi 20481 20482 # remove trailing .exe if any 20483 new_path="${new_path/%.exe/}" 20484 20485 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 20486 20487 # First separate the path from the arguments. This will split at the first 20488 # space. 20489 complete="$FOUND_MAKE" 20490 path="${complete%% *}" 20491 tmp="$complete EOL" 20492 arguments="${tmp#* }" 20493 20494 # Input might be given as Windows format, start by converting to 20495 # unix format. 20496 new_path="$path" 20497 20498 windows_path="$new_path" 20499 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 20500 unix_path=`$CYGPATH -u "$windows_path"` 20501 new_path="$unix_path" 20502 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 20503 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 20504 new_path="$unix_path" 20505 fi 20506 20507 20508 # Now try to locate executable using which 20509 new_path=`$WHICH "$new_path" 2> /dev/null` 20510 20511 if test "x$new_path" = x; then 20512 # Oops. Which didn't find the executable. 20513 # The splitting of arguments from the executable at a space might have been incorrect, 20514 # since paths with space are more likely in Windows. Give it another try with the whole 20515 # argument. 20516 path="$complete" 20517 arguments="EOL" 20518 new_path="$path" 20519 20520 windows_path="$new_path" 20521 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 20522 unix_path=`$CYGPATH -u "$windows_path"` 20523 new_path="$unix_path" 20524 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 20525 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 20526 new_path="$unix_path" 20527 fi 20528 20529 20530 new_path=`$WHICH "$new_path" 2> /dev/null` 20531 # bat and cmd files are not always considered executable in MSYS causing which 20532 # to not find them 20533 if test "x$new_path" = x \ 20534 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 20535 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 20536 new_path="$path" 20537 20538 windows_path="$new_path" 20539 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 20540 unix_path=`$CYGPATH -u "$windows_path"` 20541 new_path="$unix_path" 20542 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 20543 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 20544 new_path="$unix_path" 20545 fi 20546 20547 fi 20548 20549 if test "x$new_path" = x; then 20550 # It's still not found. Now this is an unrecoverable error. 20551 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 20552 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 20553 has_space=`$ECHO "$complete" | $GREP " "` 20554 if test "x$has_space" != x; then 20555 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 20556 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 20557 fi 20558 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 20559 fi 20560 fi 20561 20562 # Now new_path has a complete unix path to the binary 20563 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 20564 # Keep paths in /bin as-is, but remove trailing .exe if any 20565 new_path="${new_path/%.exe/}" 20566 # Do not save /bin paths to all_fixpath_prefixes! 20567 else 20568 # Not in mixed or Windows style, start by that. 20569 new_path=`cmd //c echo $new_path` 20570 20571 input_path="$new_path" 20572 # Check if we need to convert this using DOS-style short mode. If the path 20573 # contains just simple characters, use it. Otherwise (spaces, weird characters), 20574 # take no chances and rewrite it. 20575 # Note: m4 eats our [], so we need to use [ and ] instead. 20576 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 20577 if test "x$has_forbidden_chars" != x; then 20578 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 20579 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 20580 fi 20581 20582 # Output is in $new_path 20583 20584 windows_path="$new_path" 20585 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 20586 unix_path=`$CYGPATH -u "$windows_path"` 20587 new_path="$unix_path" 20588 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 20589 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 20590 new_path="$unix_path" 20591 fi 20592 20593 # remove trailing .exe if any 20594 new_path="${new_path/%.exe/}" 20595 20596 # Save the first 10 bytes of this path to the storage, so fixpath can work. 20597 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 20598 fi 20599 20600 else 20601 # We're on a unix platform. Hooray! :) 20602 # First separate the path from the arguments. This will split at the first 20603 # space. 20604 complete="$FOUND_MAKE" 20605 path="${complete%% *}" 20606 tmp="$complete EOL" 20607 arguments="${tmp#* }" 20608 20609 # Cannot rely on the command "which" here since it doesn't always work. 20610 is_absolute_path=`$ECHO "$path" | $GREP ^/` 20611 if test -z "$is_absolute_path"; then 20612 # Path to executable is not absolute. Find it. 20613 IFS_save="$IFS" 20614 IFS=: 20615 for p in $PATH; do 20616 if test -f "$p/$path" && test -x "$p/$path"; then 20617 new_path="$p/$path" 20618 break 20619 fi 20620 done 20621 IFS="$IFS_save" 20622 else 20623 # This is an absolute path, we can use it without further modifications. 20624 new_path="$path" 20625 fi 20626 20627 if test "x$new_path" = x; then 20628 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 20629 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 20630 has_space=`$ECHO "$complete" | $GREP " "` 20631 if test "x$has_space" != x; then 20632 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 20633 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 20634 fi 20635 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 20636 fi 20637 fi 20638 20639 # Now join together the path and the arguments once again 20640 if test "x$arguments" != xEOL; then 20641 new_complete="$new_path ${arguments% *}" 20642 else 20643 new_complete="$new_path" 20644 fi 20645 20646 if test "x$complete" != "x$new_complete"; then 20647 FOUND_MAKE="$new_complete" 20648 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5 20649 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;} 20650 fi 20651 fi 20652 20653 fi 20654 fi 20655 fi 20656 fi 20657 20658 fi 20659 PATH=$OLD_PATH 20660 fi 20661 fi 20662 20663 if test "x$FOUND_MAKE" = x; then 20664 as_fn_error $? "Cannot find GNU make $MAKE_REQUIRED_VERSION or newer! Please put it in the path, or add e.g. MAKE=/opt/gmake3.81/make as argument to configure." "$LINENO" 5 20665 fi 20666 20667 else 20668 # If it succeeded, then it was overridden by the user. We will use it 20669 # for the tool. 20670 20671 # First remove it from the list of overridden variables, so we can test 20672 # for unknown variables in the end. 20673 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 20674 20675 # Check if we try to supply an empty value 20676 if test "x$MAKE" = x; then 20677 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool MAKE= (no value)" >&5 20678 $as_echo "$as_me: Setting user supplied tool MAKE= (no value)" >&6;} 20679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAKE" >&5 20680 $as_echo_n "checking for MAKE... " >&6; } 20681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 20682 $as_echo "disabled" >&6; } 20683 else 20684 # Check if the provided tool contains a complete path. 20685 tool_specified="$MAKE" 20686 tool_basename="${tool_specified##*/}" 20687 if test "x$tool_basename" = "x$tool_specified"; then 20688 # A command without a complete path is provided, search $PATH. 20689 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool MAKE=$tool_basename" >&5 20690 $as_echo "$as_me: Will search for user supplied tool MAKE=$tool_basename" >&6;} 20691 # Extract the first word of "$tool_basename", so it can be a program name with args. 20692 set dummy $tool_basename; ac_word=$2 20693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 20694 $as_echo_n "checking for $ac_word... " >&6; } 20695 if ${ac_cv_path_MAKE+:} false; then : 20696 $as_echo_n "(cached) " >&6 20697 else 20698 case $MAKE in 20699 [\\/]* | ?:[\\/]*) 20700 ac_cv_path_MAKE="$MAKE" # Let the user override the test with a path. 20701 ;; 20702 *) 20703 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 20704 for as_dir in $PATH 20705 do 20706 IFS=$as_save_IFS 20707 test -z "$as_dir" && as_dir=. 20708 for ac_exec_ext in '' $ac_executable_extensions; do 20709 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 20710 ac_cv_path_MAKE="$as_dir/$ac_word$ac_exec_ext" 20711 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 20712 break 2 20713 fi 20714 done 20715 done 20716 IFS=$as_save_IFS 20717 20718 ;; 20719 esac 20720 fi 20721 MAKE=$ac_cv_path_MAKE 20722 if test -n "$MAKE"; then 20723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKE" >&5 20724 $as_echo "$MAKE" >&6; } 20725 else 20726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 20727 $as_echo "no" >&6; } 20728 fi 20729 20730 20731 if test "x$MAKE" = x; then 20732 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 20733 fi 20734 else 20735 # Otherwise we believe it is a complete path. Use it as it is. 20736 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool MAKE=$tool_specified" >&5 20737 $as_echo "$as_me: Will use user supplied tool MAKE=$tool_specified" >&6;} 20738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAKE" >&5 20739 $as_echo_n "checking for MAKE... " >&6; } 20740 if test ! -x "$tool_specified"; then 20741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 20742 $as_echo "not found" >&6; } 20743 as_fn_error $? "User supplied tool MAKE=$tool_specified does not exist or is not executable" "$LINENO" 5 20744 fi 20745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 20746 $as_echo "$tool_specified" >&6; } 20747 fi 20748 fi 20749 fi 20750 20751 # If MAKE was set by user, verify the version 20752 20753 MAKE_CANDIDATE=""$MAKE"" 20754 DESCRIPTION="user supplied MAKE=$MAKE" 20755 20756 # On Cygwin, we require a newer version of make than on other platforms 20757 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 20758 MAKE_VERSION_EXPR="-e 4\." 20759 MAKE_REQUIRED_VERSION="4.0" 20760 else 20761 MAKE_VERSION_EXPR="-e 3\.8[12] -e 4\." 20762 MAKE_REQUIRED_VERSION="3.81" 20763 fi 20764 20765 if test "x$MAKE_CANDIDATE" != x; then 20766 { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5 20767 $as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;} 20768 MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1` 20769 IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'` 20770 if test "x$IS_GNU_MAKE" = x; then 20771 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5 20772 $as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;} 20773 else 20774 IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP $MAKE_VERSION_EXPR` 20775 if test "x$IS_MODERN_MAKE" = x; then 20776 { $as_echo "$as_me:${as_lineno-$LINENO}: Found GNU make at $MAKE_CANDIDATE, however this is not version $MAKE_REQUIRED_VERSION or later. (it is: $MAKE_VERSION_STRING). Ignoring." >&5 20777 $as_echo "$as_me: Found GNU make at $MAKE_CANDIDATE, however this is not version $MAKE_REQUIRED_VERSION or later. (it is: $MAKE_VERSION_STRING). Ignoring." >&6;} 20778 else 20779 if test "x$OPENJDK_BUILD_OS" = "xwindows"; then 20780 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 20781 MAKE_EXPECTED_ENV='cygwin' 20782 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 20783 MAKE_EXPECTED_ENV='msys' 20784 else 20785 as_fn_error $? "Unknown Windows environment" "$LINENO" 5 20786 fi 20787 MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'` 20788 IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV` 20789 else 20790 # Not relevant for non-Windows 20791 IS_MAKE_CORRECT_ENV=true 20792 fi 20793 if test "x$IS_MAKE_CORRECT_ENV" = x; then 20794 { $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 20795 $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;} 20796 else 20797 FOUND_MAKE=$MAKE_CANDIDATE 20798 20799 # Only process if variable expands to non-empty 20800 20801 if test "x$FOUND_MAKE" != x; then 20802 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 20803 20804 # First separate the path from the arguments. This will split at the first 20805 # space. 20806 complete="$FOUND_MAKE" 20807 path="${complete%% *}" 20808 tmp="$complete EOL" 20809 arguments="${tmp#* }" 20810 20811 # Input might be given as Windows format, start by converting to 20812 # unix format. 20813 new_path=`$CYGPATH -u "$path"` 20814 20815 # Now try to locate executable using which 20816 new_path=`$WHICH "$new_path" 2> /dev/null` 20817 # bat and cmd files are not always considered executable in cygwin causing which 20818 # to not find them 20819 if test "x$new_path" = x \ 20820 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 20821 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 20822 new_path=`$CYGPATH -u "$path"` 20823 fi 20824 if test "x$new_path" = x; then 20825 # Oops. Which didn't find the executable. 20826 # The splitting of arguments from the executable at a space might have been incorrect, 20827 # since paths with space are more likely in Windows. Give it another try with the whole 20828 # argument. 20829 path="$complete" 20830 arguments="EOL" 20831 new_path=`$CYGPATH -u "$path"` 20832 new_path=`$WHICH "$new_path" 2> /dev/null` 20833 # bat and cmd files are not always considered executable in cygwin causing which 20834 # to not find them 20835 if test "x$new_path" = x \ 20836 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 20837 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 20838 new_path=`$CYGPATH -u "$path"` 20839 fi 20840 if test "x$new_path" = x; then 20841 # It's still not found. Now this is an unrecoverable error. 20842 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 20843 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 20844 has_space=`$ECHO "$complete" | $GREP " "` 20845 if test "x$has_space" != x; then 20846 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 20847 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 20848 fi 20849 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 20850 fi 20851 fi 20852 20853 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 20854 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 20855 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 20856 # "foo.exe" is OK but "foo" is an error. 20857 # 20858 # This test is therefore slightly more accurate than "test -f" to check for file presence. 20859 # It is also a way to make sure we got the proper file name for the real test later on. 20860 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 20861 if test "x$test_shortpath" = x; then 20862 # Short path failed, file does not exist as specified. 20863 # Try adding .exe or .cmd 20864 if test -f "${new_path}.exe"; then 20865 input_to_shortpath="${new_path}.exe" 20866 elif test -f "${new_path}.cmd"; then 20867 input_to_shortpath="${new_path}.cmd" 20868 else 20869 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5 20870 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;} 20871 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 20872 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 20873 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 20874 fi 20875 else 20876 input_to_shortpath="$new_path" 20877 fi 20878 20879 # Call helper function which possibly converts this using DOS-style short mode. 20880 # If so, the updated path is stored in $new_path. 20881 new_path="$input_to_shortpath" 20882 20883 input_path="$input_to_shortpath" 20884 # Check if we need to convert this using DOS-style short mode. If the path 20885 # contains just simple characters, use it. Otherwise (spaces, weird characters), 20886 # take no chances and rewrite it. 20887 # Note: m4 eats our [], so we need to use [ and ] instead. 20888 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 20889 if test "x$has_forbidden_chars" != x; then 20890 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 20891 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 20892 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 20893 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 20894 # Going to short mode and back again did indeed matter. Since short mode is 20895 # case insensitive, let's make it lowercase to improve readability. 20896 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 20897 # Now convert it back to Unix-style (cygpath) 20898 input_path=`$CYGPATH -u "$shortmode_path"` 20899 new_path="$input_path" 20900 fi 20901 fi 20902 20903 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 20904 if test "x$test_cygdrive_prefix" = x; then 20905 # As a simple fix, exclude /usr/bin since it's not a real path. 20906 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 20907 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 20908 # a path prefixed by /cygdrive for fixpath to work. 20909 new_path="$CYGWIN_ROOT_PATH$input_path" 20910 fi 20911 fi 20912 20913 # remove trailing .exe if any 20914 new_path="${new_path/%.exe/}" 20915 20916 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 20917 20918 # First separate the path from the arguments. This will split at the first 20919 # space. 20920 complete="$FOUND_MAKE" 20921 path="${complete%% *}" 20922 tmp="$complete EOL" 20923 arguments="${tmp#* }" 20924 20925 # Input might be given as Windows format, start by converting to 20926 # unix format. 20927 new_path="$path" 20928 20929 windows_path="$new_path" 20930 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 20931 unix_path=`$CYGPATH -u "$windows_path"` 20932 new_path="$unix_path" 20933 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 20934 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 20935 new_path="$unix_path" 20936 fi 20937 20938 20939 # Now try to locate executable using which 20940 new_path=`$WHICH "$new_path" 2> /dev/null` 20941 20942 if test "x$new_path" = x; then 20943 # Oops. Which didn't find the executable. 20944 # The splitting of arguments from the executable at a space might have been incorrect, 20945 # since paths with space are more likely in Windows. Give it another try with the whole 20946 # argument. 20947 path="$complete" 20948 arguments="EOL" 20949 new_path="$path" 20950 20951 windows_path="$new_path" 20952 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 20953 unix_path=`$CYGPATH -u "$windows_path"` 20954 new_path="$unix_path" 20955 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 20956 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 20957 new_path="$unix_path" 20958 fi 20959 20960 20961 new_path=`$WHICH "$new_path" 2> /dev/null` 20962 # bat and cmd files are not always considered executable in MSYS causing which 20963 # to not find them 20964 if test "x$new_path" = x \ 20965 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 20966 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 20967 new_path="$path" 20968 20969 windows_path="$new_path" 20970 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 20971 unix_path=`$CYGPATH -u "$windows_path"` 20972 new_path="$unix_path" 20973 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 20974 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 20975 new_path="$unix_path" 20976 fi 20977 20978 fi 20979 20980 if test "x$new_path" = x; then 20981 # It's still not found. Now this is an unrecoverable error. 20982 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 20983 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 20984 has_space=`$ECHO "$complete" | $GREP " "` 20985 if test "x$has_space" != x; then 20986 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 20987 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 20988 fi 20989 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 20990 fi 20991 fi 20992 20993 # Now new_path has a complete unix path to the binary 20994 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 20995 # Keep paths in /bin as-is, but remove trailing .exe if any 20996 new_path="${new_path/%.exe/}" 20997 # Do not save /bin paths to all_fixpath_prefixes! 20998 else 20999 # Not in mixed or Windows style, start by that. 21000 new_path=`cmd //c echo $new_path` 21001 21002 input_path="$new_path" 21003 # Check if we need to convert this using DOS-style short mode. If the path 21004 # contains just simple characters, use it. Otherwise (spaces, weird characters), 21005 # take no chances and rewrite it. 21006 # Note: m4 eats our [], so we need to use [ and ] instead. 21007 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 21008 if test "x$has_forbidden_chars" != x; then 21009 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 21010 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 21011 fi 21012 21013 # Output is in $new_path 21014 21015 windows_path="$new_path" 21016 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 21017 unix_path=`$CYGPATH -u "$windows_path"` 21018 new_path="$unix_path" 21019 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 21020 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 21021 new_path="$unix_path" 21022 fi 21023 21024 # remove trailing .exe if any 21025 new_path="${new_path/%.exe/}" 21026 21027 # Save the first 10 bytes of this path to the storage, so fixpath can work. 21028 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 21029 fi 21030 21031 else 21032 # We're on a unix platform. Hooray! :) 21033 # First separate the path from the arguments. This will split at the first 21034 # space. 21035 complete="$FOUND_MAKE" 21036 path="${complete%% *}" 21037 tmp="$complete EOL" 21038 arguments="${tmp#* }" 21039 21040 # Cannot rely on the command "which" here since it doesn't always work. 21041 is_absolute_path=`$ECHO "$path" | $GREP ^/` 21042 if test -z "$is_absolute_path"; then 21043 # Path to executable is not absolute. Find it. 21044 IFS_save="$IFS" 21045 IFS=: 21046 for p in $PATH; do 21047 if test -f "$p/$path" && test -x "$p/$path"; then 21048 new_path="$p/$path" 21049 break 21050 fi 21051 done 21052 IFS="$IFS_save" 21053 else 21054 # This is an absolute path, we can use it without further modifications. 21055 new_path="$path" 21056 fi 21057 21058 if test "x$new_path" = x; then 21059 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 21060 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 21061 has_space=`$ECHO "$complete" | $GREP " "` 21062 if test "x$has_space" != x; then 21063 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 21064 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 21065 fi 21066 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 21067 fi 21068 fi 21069 21070 # Now join together the path and the arguments once again 21071 if test "x$arguments" != xEOL; then 21072 new_complete="$new_path ${arguments% *}" 21073 else 21074 new_complete="$new_path" 21075 fi 21076 21077 if test "x$complete" != "x$new_complete"; then 21078 FOUND_MAKE="$new_complete" 21079 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5 21080 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;} 21081 fi 21082 fi 21083 21084 fi 21085 fi 21086 fi 21087 fi 21088 21089 if test "x$FOUND_MAKE" = x; then 21090 as_fn_error $? "The specified make (by MAKE=$MAKE) is not GNU make $MAKE_REQUIRED_VERSION or newer." "$LINENO" 5 21091 fi 21092 21093 fi 21094 21095 21096 MAKE=$FOUND_MAKE 21097 21098 { $as_echo "$as_me:${as_lineno-$LINENO}: Using GNU make at $FOUND_MAKE (version: $MAKE_VERSION_STRING)" >&5 21099 $as_echo "$as_me: Using GNU make at $FOUND_MAKE (version: $MAKE_VERSION_STRING)" >&6;} 21100 21101 21102 # Check if make supports the output sync option and if so, setup using it. 21103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if make --output-sync is supported" >&5 21104 $as_echo_n "checking if make --output-sync is supported... " >&6; } 21105 if $MAKE --version -O > /dev/null 2>&1; then 21106 OUTPUT_SYNC_SUPPORTED=true 21107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 21108 $as_echo "yes" >&6; } 21109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for output-sync value" >&5 21110 $as_echo_n "checking for output-sync value... " >&6; } 21111 21112 # Check whether --with-output-sync was given. 21113 if test "${with_output_sync+set}" = set; then : 21114 withval=$with_output_sync; OUTPUT_SYNC=$with_output_sync 21115 fi 21116 21117 if test "x$OUTPUT_SYNC" = "x"; then 21118 OUTPUT_SYNC=none 21119 fi 21120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OUTPUT_SYNC" >&5 21121 $as_echo "$OUTPUT_SYNC" >&6; } 21122 if ! $MAKE --version -O$OUTPUT_SYNC > /dev/null 2>&1; then 21123 as_fn_error $? "Make did not the support the value $OUTPUT_SYNC as output sync type." "$LINENO" 5 21124 fi 21125 else 21126 OUTPUT_SYNC_SUPPORTED=false 21127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 21128 $as_echo "no" >&6; } 21129 fi 21130 21131 21132 21133 21134 21135 21136 # Test if find supports -delete 21137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if find supports -delete" >&5 21138 $as_echo_n "checking if find supports -delete... " >&6; } 21139 FIND_DELETE="-delete" 21140 21141 DELETEDIR=`$MKTEMP -d tmp.XXXXXXXXXX` || (echo Could not create temporary directory!; exit $?) 21142 21143 echo Hejsan > $DELETEDIR/TestIfFindSupportsDelete 21144 21145 TEST_DELETE=`$FIND "$DELETEDIR" -name TestIfFindSupportsDelete $FIND_DELETE 2>&1` 21146 if test -f $DELETEDIR/TestIfFindSupportsDelete; then 21147 # No, it does not. 21148 $RM $DELETEDIR/TestIfFindSupportsDelete 21149 if test "x$OPENJDK_TARGET_OS" = "xaix"; then 21150 # AIX 'find' is buggy if called with '-exec {} \+' and an empty file list 21151 FIND_DELETE="-print | $XARGS $RM" 21152 else 21153 FIND_DELETE="-exec $RM \{\} \+" 21154 fi 21155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 21156 $as_echo "no" >&6; } 21157 else 21158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 21159 $as_echo "yes" >&6; } 21160 fi 21161 $RMDIR $DELETEDIR 21162 21163 21164 21165 # Test which kind of tar was found 21166 if test "x$($TAR --version | $GREP "GNU tar")" != "x"; then 21167 TAR_TYPE="gnu" 21168 elif test "x$($TAR -v | $GREP "bsdtar")" != "x"; then 21169 TAR_TYPE="bsd" 21170 elif test "x$OPENJDK_BUILD_OS" = "xsolaris"; then 21171 TAR_TYPE="solaris" 21172 fi 21173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what type of tar was found" >&5 21174 $as_echo_n "checking what type of tar was found... " >&6; } 21175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR_TYPE" >&5 21176 $as_echo "$TAR_TYPE" >&6; } 21177 21178 TAR_CREATE_FILE_PARAM="" 21179 21180 if test "x$TAR_TYPE" = "xgnu"; then 21181 TAR_INCLUDE_PARAM="T" 21182 TAR_SUPPORTS_TRANSFORM="true" 21183 if test "x$OPENJDK_TARGET_OS" = "xsolaris"; then 21184 # When using gnu tar for Solaris targets, need to use compatibility mode 21185 TAR_CREATE_EXTRA_PARAM="--format=ustar" 21186 fi 21187 else 21188 TAR_INCLUDE_PARAM="I" 21189 TAR_SUPPORTS_TRANSFORM="false" 21190 fi 21191 21192 21193 21194 21195 21196 21197 # These tools might not be installed by default, 21198 # need hint on how to install them. 21199 21200 21201 21202 # Publish this variable in the help. 21203 21204 21205 if [ -z "${UNZIP+x}" ]; then 21206 # The variable is not set by user, try to locate tool using the code snippet 21207 for ac_prog in unzip 21208 do 21209 # Extract the first word of "$ac_prog", so it can be a program name with args. 21210 set dummy $ac_prog; ac_word=$2 21211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 21212 $as_echo_n "checking for $ac_word... " >&6; } 21213 if ${ac_cv_path_UNZIP+:} false; then : 21214 $as_echo_n "(cached) " >&6 21215 else 21216 case $UNZIP in 21217 [\\/]* | ?:[\\/]*) 21218 ac_cv_path_UNZIP="$UNZIP" # Let the user override the test with a path. 21219 ;; 21220 *) 21221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 21222 for as_dir in $PATH 21223 do 21224 IFS=$as_save_IFS 21225 test -z "$as_dir" && as_dir=. 21226 for ac_exec_ext in '' $ac_executable_extensions; do 21227 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 21228 ac_cv_path_UNZIP="$as_dir/$ac_word$ac_exec_ext" 21229 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 21230 break 2 21231 fi 21232 done 21233 done 21234 IFS=$as_save_IFS 21235 21236 ;; 21237 esac 21238 fi 21239 UNZIP=$ac_cv_path_UNZIP 21240 if test -n "$UNZIP"; then 21241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNZIP" >&5 21242 $as_echo "$UNZIP" >&6; } 21243 else 21244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 21245 $as_echo "no" >&6; } 21246 fi 21247 21248 21249 test -n "$UNZIP" && break 21250 done 21251 21252 else 21253 # The variable is set, but is it from the command line or the environment? 21254 21255 # Try to remove the string !UNZIP! from our list. 21256 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!UNZIP!/} 21257 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 21258 # If it failed, the variable was not from the command line. Ignore it, 21259 # but warn the user (except for BASH, which is always set by the calling BASH). 21260 if test "xUNZIP" != xBASH; then 21261 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of UNZIP from the environment. Use command line variables instead." >&5 21262 $as_echo "$as_me: WARNING: Ignoring value of UNZIP from the environment. Use command line variables instead." >&2;} 21263 fi 21264 # Try to locate tool using the code snippet 21265 for ac_prog in unzip 21266 do 21267 # Extract the first word of "$ac_prog", so it can be a program name with args. 21268 set dummy $ac_prog; ac_word=$2 21269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 21270 $as_echo_n "checking for $ac_word... " >&6; } 21271 if ${ac_cv_path_UNZIP+:} false; then : 21272 $as_echo_n "(cached) " >&6 21273 else 21274 case $UNZIP in 21275 [\\/]* | ?:[\\/]*) 21276 ac_cv_path_UNZIP="$UNZIP" # Let the user override the test with a path. 21277 ;; 21278 *) 21279 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 21280 for as_dir in $PATH 21281 do 21282 IFS=$as_save_IFS 21283 test -z "$as_dir" && as_dir=. 21284 for ac_exec_ext in '' $ac_executable_extensions; do 21285 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 21286 ac_cv_path_UNZIP="$as_dir/$ac_word$ac_exec_ext" 21287 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 21288 break 2 21289 fi 21290 done 21291 done 21292 IFS=$as_save_IFS 21293 21294 ;; 21295 esac 21296 fi 21297 UNZIP=$ac_cv_path_UNZIP 21298 if test -n "$UNZIP"; then 21299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNZIP" >&5 21300 $as_echo "$UNZIP" >&6; } 21301 else 21302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 21303 $as_echo "no" >&6; } 21304 fi 21305 21306 21307 test -n "$UNZIP" && break 21308 done 21309 21310 else 21311 # If it succeeded, then it was overridden by the user. We will use it 21312 # for the tool. 21313 21314 # First remove it from the list of overridden variables, so we can test 21315 # for unknown variables in the end. 21316 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 21317 21318 # Check if we try to supply an empty value 21319 if test "x$UNZIP" = x; then 21320 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool UNZIP= (no value)" >&5 21321 $as_echo "$as_me: Setting user supplied tool UNZIP= (no value)" >&6;} 21322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UNZIP" >&5 21323 $as_echo_n "checking for UNZIP... " >&6; } 21324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 21325 $as_echo "disabled" >&6; } 21326 else 21327 # Check if the provided tool contains a complete path. 21328 tool_specified="$UNZIP" 21329 tool_basename="${tool_specified##*/}" 21330 if test "x$tool_basename" = "x$tool_specified"; then 21331 # A command without a complete path is provided, search $PATH. 21332 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool UNZIP=$tool_basename" >&5 21333 $as_echo "$as_me: Will search for user supplied tool UNZIP=$tool_basename" >&6;} 21334 # Extract the first word of "$tool_basename", so it can be a program name with args. 21335 set dummy $tool_basename; ac_word=$2 21336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 21337 $as_echo_n "checking for $ac_word... " >&6; } 21338 if ${ac_cv_path_UNZIP+:} false; then : 21339 $as_echo_n "(cached) " >&6 21340 else 21341 case $UNZIP in 21342 [\\/]* | ?:[\\/]*) 21343 ac_cv_path_UNZIP="$UNZIP" # Let the user override the test with a path. 21344 ;; 21345 *) 21346 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 21347 for as_dir in $PATH 21348 do 21349 IFS=$as_save_IFS 21350 test -z "$as_dir" && as_dir=. 21351 for ac_exec_ext in '' $ac_executable_extensions; do 21352 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 21353 ac_cv_path_UNZIP="$as_dir/$ac_word$ac_exec_ext" 21354 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 21355 break 2 21356 fi 21357 done 21358 done 21359 IFS=$as_save_IFS 21360 21361 ;; 21362 esac 21363 fi 21364 UNZIP=$ac_cv_path_UNZIP 21365 if test -n "$UNZIP"; then 21366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNZIP" >&5 21367 $as_echo "$UNZIP" >&6; } 21368 else 21369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 21370 $as_echo "no" >&6; } 21371 fi 21372 21373 21374 if test "x$UNZIP" = x; then 21375 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 21376 fi 21377 else 21378 # Otherwise we believe it is a complete path. Use it as it is. 21379 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool UNZIP=$tool_specified" >&5 21380 $as_echo "$as_me: Will use user supplied tool UNZIP=$tool_specified" >&6;} 21381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UNZIP" >&5 21382 $as_echo_n "checking for UNZIP... " >&6; } 21383 if test ! -x "$tool_specified"; then 21384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 21385 $as_echo "not found" >&6; } 21386 as_fn_error $? "User supplied tool UNZIP=$tool_specified does not exist or is not executable" "$LINENO" 5 21387 fi 21388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 21389 $as_echo "$tool_specified" >&6; } 21390 fi 21391 fi 21392 fi 21393 21394 fi 21395 21396 21397 21398 if test "x$UNZIP" = x; then 21399 as_fn_error $? "Could not find required tool for UNZIP" "$LINENO" 5 21400 fi 21401 21402 21403 21404 21405 21406 # Publish this variable in the help. 21407 21408 21409 if [ -z "${ZIP+x}" ]; then 21410 # The variable is not set by user, try to locate tool using the code snippet 21411 for ac_prog in zip 21412 do 21413 # Extract the first word of "$ac_prog", so it can be a program name with args. 21414 set dummy $ac_prog; ac_word=$2 21415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 21416 $as_echo_n "checking for $ac_word... " >&6; } 21417 if ${ac_cv_path_ZIP+:} false; then : 21418 $as_echo_n "(cached) " >&6 21419 else 21420 case $ZIP in 21421 [\\/]* | ?:[\\/]*) 21422 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path. 21423 ;; 21424 *) 21425 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 21426 for as_dir in $PATH 21427 do 21428 IFS=$as_save_IFS 21429 test -z "$as_dir" && as_dir=. 21430 for ac_exec_ext in '' $ac_executable_extensions; do 21431 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 21432 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext" 21433 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 21434 break 2 21435 fi 21436 done 21437 done 21438 IFS=$as_save_IFS 21439 21440 ;; 21441 esac 21442 fi 21443 ZIP=$ac_cv_path_ZIP 21444 if test -n "$ZIP"; then 21445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZIP" >&5 21446 $as_echo "$ZIP" >&6; } 21447 else 21448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 21449 $as_echo "no" >&6; } 21450 fi 21451 21452 21453 test -n "$ZIP" && break 21454 done 21455 21456 else 21457 # The variable is set, but is it from the command line or the environment? 21458 21459 # Try to remove the string !ZIP! from our list. 21460 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!ZIP!/} 21461 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 21462 # If it failed, the variable was not from the command line. Ignore it, 21463 # but warn the user (except for BASH, which is always set by the calling BASH). 21464 if test "xZIP" != xBASH; then 21465 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of ZIP from the environment. Use command line variables instead." >&5 21466 $as_echo "$as_me: WARNING: Ignoring value of ZIP from the environment. Use command line variables instead." >&2;} 21467 fi 21468 # Try to locate tool using the code snippet 21469 for ac_prog in zip 21470 do 21471 # Extract the first word of "$ac_prog", so it can be a program name with args. 21472 set dummy $ac_prog; ac_word=$2 21473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 21474 $as_echo_n "checking for $ac_word... " >&6; } 21475 if ${ac_cv_path_ZIP+:} false; then : 21476 $as_echo_n "(cached) " >&6 21477 else 21478 case $ZIP in 21479 [\\/]* | ?:[\\/]*) 21480 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path. 21481 ;; 21482 *) 21483 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 21484 for as_dir in $PATH 21485 do 21486 IFS=$as_save_IFS 21487 test -z "$as_dir" && as_dir=. 21488 for ac_exec_ext in '' $ac_executable_extensions; do 21489 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 21490 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext" 21491 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 21492 break 2 21493 fi 21494 done 21495 done 21496 IFS=$as_save_IFS 21497 21498 ;; 21499 esac 21500 fi 21501 ZIP=$ac_cv_path_ZIP 21502 if test -n "$ZIP"; then 21503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZIP" >&5 21504 $as_echo "$ZIP" >&6; } 21505 else 21506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 21507 $as_echo "no" >&6; } 21508 fi 21509 21510 21511 test -n "$ZIP" && break 21512 done 21513 21514 else 21515 # If it succeeded, then it was overridden by the user. We will use it 21516 # for the tool. 21517 21518 # First remove it from the list of overridden variables, so we can test 21519 # for unknown variables in the end. 21520 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 21521 21522 # Check if we try to supply an empty value 21523 if test "x$ZIP" = x; then 21524 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool ZIP= (no value)" >&5 21525 $as_echo "$as_me: Setting user supplied tool ZIP= (no value)" >&6;} 21526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ZIP" >&5 21527 $as_echo_n "checking for ZIP... " >&6; } 21528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 21529 $as_echo "disabled" >&6; } 21530 else 21531 # Check if the provided tool contains a complete path. 21532 tool_specified="$ZIP" 21533 tool_basename="${tool_specified##*/}" 21534 if test "x$tool_basename" = "x$tool_specified"; then 21535 # A command without a complete path is provided, search $PATH. 21536 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool ZIP=$tool_basename" >&5 21537 $as_echo "$as_me: Will search for user supplied tool ZIP=$tool_basename" >&6;} 21538 # Extract the first word of "$tool_basename", so it can be a program name with args. 21539 set dummy $tool_basename; ac_word=$2 21540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 21541 $as_echo_n "checking for $ac_word... " >&6; } 21542 if ${ac_cv_path_ZIP+:} false; then : 21543 $as_echo_n "(cached) " >&6 21544 else 21545 case $ZIP in 21546 [\\/]* | ?:[\\/]*) 21547 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path. 21548 ;; 21549 *) 21550 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 21551 for as_dir in $PATH 21552 do 21553 IFS=$as_save_IFS 21554 test -z "$as_dir" && as_dir=. 21555 for ac_exec_ext in '' $ac_executable_extensions; do 21556 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 21557 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext" 21558 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 21559 break 2 21560 fi 21561 done 21562 done 21563 IFS=$as_save_IFS 21564 21565 ;; 21566 esac 21567 fi 21568 ZIP=$ac_cv_path_ZIP 21569 if test -n "$ZIP"; then 21570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZIP" >&5 21571 $as_echo "$ZIP" >&6; } 21572 else 21573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 21574 $as_echo "no" >&6; } 21575 fi 21576 21577 21578 if test "x$ZIP" = x; then 21579 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 21580 fi 21581 else 21582 # Otherwise we believe it is a complete path. Use it as it is. 21583 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool ZIP=$tool_specified" >&5 21584 $as_echo "$as_me: Will use user supplied tool ZIP=$tool_specified" >&6;} 21585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ZIP" >&5 21586 $as_echo_n "checking for ZIP... " >&6; } 21587 if test ! -x "$tool_specified"; then 21588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 21589 $as_echo "not found" >&6; } 21590 as_fn_error $? "User supplied tool ZIP=$tool_specified does not exist or is not executable" "$LINENO" 5 21591 fi 21592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 21593 $as_echo "$tool_specified" >&6; } 21594 fi 21595 fi 21596 fi 21597 21598 fi 21599 21600 21601 21602 if test "x$ZIP" = x; then 21603 as_fn_error $? "Could not find required tool for ZIP" "$LINENO" 5 21604 fi 21605 21606 21607 21608 # Non-required basic tools 21609 21610 21611 21612 # Publish this variable in the help. 21613 21614 21615 if [ -z "${LDD+x}" ]; then 21616 # The variable is not set by user, try to locate tool using the code snippet 21617 for ac_prog in ldd 21618 do 21619 # Extract the first word of "$ac_prog", so it can be a program name with args. 21620 set dummy $ac_prog; ac_word=$2 21621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 21622 $as_echo_n "checking for $ac_word... " >&6; } 21623 if ${ac_cv_path_LDD+:} false; then : 21624 $as_echo_n "(cached) " >&6 21625 else 21626 case $LDD in 21627 [\\/]* | ?:[\\/]*) 21628 ac_cv_path_LDD="$LDD" # Let the user override the test with a path. 21629 ;; 21630 *) 21631 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 21632 for as_dir in $PATH 21633 do 21634 IFS=$as_save_IFS 21635 test -z "$as_dir" && as_dir=. 21636 for ac_exec_ext in '' $ac_executable_extensions; do 21637 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 21638 ac_cv_path_LDD="$as_dir/$ac_word$ac_exec_ext" 21639 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 21640 break 2 21641 fi 21642 done 21643 done 21644 IFS=$as_save_IFS 21645 21646 ;; 21647 esac 21648 fi 21649 LDD=$ac_cv_path_LDD 21650 if test -n "$LDD"; then 21651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDD" >&5 21652 $as_echo "$LDD" >&6; } 21653 else 21654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 21655 $as_echo "no" >&6; } 21656 fi 21657 21658 21659 test -n "$LDD" && break 21660 done 21661 21662 else 21663 # The variable is set, but is it from the command line or the environment? 21664 21665 # Try to remove the string !LDD! from our list. 21666 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!LDD!/} 21667 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 21668 # If it failed, the variable was not from the command line. Ignore it, 21669 # but warn the user (except for BASH, which is always set by the calling BASH). 21670 if test "xLDD" != xBASH; then 21671 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of LDD from the environment. Use command line variables instead." >&5 21672 $as_echo "$as_me: WARNING: Ignoring value of LDD from the environment. Use command line variables instead." >&2;} 21673 fi 21674 # Try to locate tool using the code snippet 21675 for ac_prog in ldd 21676 do 21677 # Extract the first word of "$ac_prog", so it can be a program name with args. 21678 set dummy $ac_prog; ac_word=$2 21679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 21680 $as_echo_n "checking for $ac_word... " >&6; } 21681 if ${ac_cv_path_LDD+:} false; then : 21682 $as_echo_n "(cached) " >&6 21683 else 21684 case $LDD in 21685 [\\/]* | ?:[\\/]*) 21686 ac_cv_path_LDD="$LDD" # Let the user override the test with a path. 21687 ;; 21688 *) 21689 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 21690 for as_dir in $PATH 21691 do 21692 IFS=$as_save_IFS 21693 test -z "$as_dir" && as_dir=. 21694 for ac_exec_ext in '' $ac_executable_extensions; do 21695 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 21696 ac_cv_path_LDD="$as_dir/$ac_word$ac_exec_ext" 21697 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 21698 break 2 21699 fi 21700 done 21701 done 21702 IFS=$as_save_IFS 21703 21704 ;; 21705 esac 21706 fi 21707 LDD=$ac_cv_path_LDD 21708 if test -n "$LDD"; then 21709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDD" >&5 21710 $as_echo "$LDD" >&6; } 21711 else 21712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 21713 $as_echo "no" >&6; } 21714 fi 21715 21716 21717 test -n "$LDD" && break 21718 done 21719 21720 else 21721 # If it succeeded, then it was overridden by the user. We will use it 21722 # for the tool. 21723 21724 # First remove it from the list of overridden variables, so we can test 21725 # for unknown variables in the end. 21726 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 21727 21728 # Check if we try to supply an empty value 21729 if test "x$LDD" = x; then 21730 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool LDD= (no value)" >&5 21731 $as_echo "$as_me: Setting user supplied tool LDD= (no value)" >&6;} 21732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LDD" >&5 21733 $as_echo_n "checking for LDD... " >&6; } 21734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 21735 $as_echo "disabled" >&6; } 21736 else 21737 # Check if the provided tool contains a complete path. 21738 tool_specified="$LDD" 21739 tool_basename="${tool_specified##*/}" 21740 if test "x$tool_basename" = "x$tool_specified"; then 21741 # A command without a complete path is provided, search $PATH. 21742 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool LDD=$tool_basename" >&5 21743 $as_echo "$as_me: Will search for user supplied tool LDD=$tool_basename" >&6;} 21744 # Extract the first word of "$tool_basename", so it can be a program name with args. 21745 set dummy $tool_basename; ac_word=$2 21746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 21747 $as_echo_n "checking for $ac_word... " >&6; } 21748 if ${ac_cv_path_LDD+:} false; then : 21749 $as_echo_n "(cached) " >&6 21750 else 21751 case $LDD in 21752 [\\/]* | ?:[\\/]*) 21753 ac_cv_path_LDD="$LDD" # Let the user override the test with a path. 21754 ;; 21755 *) 21756 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 21757 for as_dir in $PATH 21758 do 21759 IFS=$as_save_IFS 21760 test -z "$as_dir" && as_dir=. 21761 for ac_exec_ext in '' $ac_executable_extensions; do 21762 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 21763 ac_cv_path_LDD="$as_dir/$ac_word$ac_exec_ext" 21764 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 21765 break 2 21766 fi 21767 done 21768 done 21769 IFS=$as_save_IFS 21770 21771 ;; 21772 esac 21773 fi 21774 LDD=$ac_cv_path_LDD 21775 if test -n "$LDD"; then 21776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDD" >&5 21777 $as_echo "$LDD" >&6; } 21778 else 21779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 21780 $as_echo "no" >&6; } 21781 fi 21782 21783 21784 if test "x$LDD" = x; then 21785 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 21786 fi 21787 else 21788 # Otherwise we believe it is a complete path. Use it as it is. 21789 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool LDD=$tool_specified" >&5 21790 $as_echo "$as_me: Will use user supplied tool LDD=$tool_specified" >&6;} 21791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LDD" >&5 21792 $as_echo_n "checking for LDD... " >&6; } 21793 if test ! -x "$tool_specified"; then 21794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 21795 $as_echo "not found" >&6; } 21796 as_fn_error $? "User supplied tool LDD=$tool_specified does not exist or is not executable" "$LINENO" 5 21797 fi 21798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 21799 $as_echo "$tool_specified" >&6; } 21800 fi 21801 fi 21802 fi 21803 21804 fi 21805 21806 21807 if test "x$LDD" = "x"; then 21808 # List shared lib dependencies is used for 21809 # debug output and checking for forbidden dependencies. 21810 # We can build without it. 21811 LDD="true" 21812 fi 21813 21814 21815 # Publish this variable in the help. 21816 21817 21818 if [ -z "${OTOOL+x}" ]; then 21819 # The variable is not set by user, try to locate tool using the code snippet 21820 for ac_prog in otool 21821 do 21822 # Extract the first word of "$ac_prog", so it can be a program name with args. 21823 set dummy $ac_prog; ac_word=$2 21824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 21825 $as_echo_n "checking for $ac_word... " >&6; } 21826 if ${ac_cv_path_OTOOL+:} false; then : 21827 $as_echo_n "(cached) " >&6 21828 else 21829 case $OTOOL in 21830 [\\/]* | ?:[\\/]*) 21831 ac_cv_path_OTOOL="$OTOOL" # Let the user override the test with a path. 21832 ;; 21833 *) 21834 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 21835 for as_dir in $PATH 21836 do 21837 IFS=$as_save_IFS 21838 test -z "$as_dir" && as_dir=. 21839 for ac_exec_ext in '' $ac_executable_extensions; do 21840 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 21841 ac_cv_path_OTOOL="$as_dir/$ac_word$ac_exec_ext" 21842 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 21843 break 2 21844 fi 21845 done 21846 done 21847 IFS=$as_save_IFS 21848 21849 ;; 21850 esac 21851 fi 21852 OTOOL=$ac_cv_path_OTOOL 21853 if test -n "$OTOOL"; then 21854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 21855 $as_echo "$OTOOL" >&6; } 21856 else 21857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 21858 $as_echo "no" >&6; } 21859 fi 21860 21861 21862 test -n "$OTOOL" && break 21863 done 21864 21865 else 21866 # The variable is set, but is it from the command line or the environment? 21867 21868 # Try to remove the string !OTOOL! from our list. 21869 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!OTOOL!/} 21870 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 21871 # If it failed, the variable was not from the command line. Ignore it, 21872 # but warn the user (except for BASH, which is always set by the calling BASH). 21873 if test "xOTOOL" != xBASH; then 21874 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of OTOOL from the environment. Use command line variables instead." >&5 21875 $as_echo "$as_me: WARNING: Ignoring value of OTOOL from the environment. Use command line variables instead." >&2;} 21876 fi 21877 # Try to locate tool using the code snippet 21878 for ac_prog in otool 21879 do 21880 # Extract the first word of "$ac_prog", so it can be a program name with args. 21881 set dummy $ac_prog; ac_word=$2 21882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 21883 $as_echo_n "checking for $ac_word... " >&6; } 21884 if ${ac_cv_path_OTOOL+:} false; then : 21885 $as_echo_n "(cached) " >&6 21886 else 21887 case $OTOOL in 21888 [\\/]* | ?:[\\/]*) 21889 ac_cv_path_OTOOL="$OTOOL" # Let the user override the test with a path. 21890 ;; 21891 *) 21892 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 21893 for as_dir in $PATH 21894 do 21895 IFS=$as_save_IFS 21896 test -z "$as_dir" && as_dir=. 21897 for ac_exec_ext in '' $ac_executable_extensions; do 21898 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 21899 ac_cv_path_OTOOL="$as_dir/$ac_word$ac_exec_ext" 21900 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 21901 break 2 21902 fi 21903 done 21904 done 21905 IFS=$as_save_IFS 21906 21907 ;; 21908 esac 21909 fi 21910 OTOOL=$ac_cv_path_OTOOL 21911 if test -n "$OTOOL"; then 21912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 21913 $as_echo "$OTOOL" >&6; } 21914 else 21915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 21916 $as_echo "no" >&6; } 21917 fi 21918 21919 21920 test -n "$OTOOL" && break 21921 done 21922 21923 else 21924 # If it succeeded, then it was overridden by the user. We will use it 21925 # for the tool. 21926 21927 # First remove it from the list of overridden variables, so we can test 21928 # for unknown variables in the end. 21929 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 21930 21931 # Check if we try to supply an empty value 21932 if test "x$OTOOL" = x; then 21933 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool OTOOL= (no value)" >&5 21934 $as_echo "$as_me: Setting user supplied tool OTOOL= (no value)" >&6;} 21935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OTOOL" >&5 21936 $as_echo_n "checking for OTOOL... " >&6; } 21937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 21938 $as_echo "disabled" >&6; } 21939 else 21940 # Check if the provided tool contains a complete path. 21941 tool_specified="$OTOOL" 21942 tool_basename="${tool_specified##*/}" 21943 if test "x$tool_basename" = "x$tool_specified"; then 21944 # A command without a complete path is provided, search $PATH. 21945 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool OTOOL=$tool_basename" >&5 21946 $as_echo "$as_me: Will search for user supplied tool OTOOL=$tool_basename" >&6;} 21947 # Extract the first word of "$tool_basename", so it can be a program name with args. 21948 set dummy $tool_basename; ac_word=$2 21949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 21950 $as_echo_n "checking for $ac_word... " >&6; } 21951 if ${ac_cv_path_OTOOL+:} false; then : 21952 $as_echo_n "(cached) " >&6 21953 else 21954 case $OTOOL in 21955 [\\/]* | ?:[\\/]*) 21956 ac_cv_path_OTOOL="$OTOOL" # Let the user override the test with a path. 21957 ;; 21958 *) 21959 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 21960 for as_dir in $PATH 21961 do 21962 IFS=$as_save_IFS 21963 test -z "$as_dir" && as_dir=. 21964 for ac_exec_ext in '' $ac_executable_extensions; do 21965 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 21966 ac_cv_path_OTOOL="$as_dir/$ac_word$ac_exec_ext" 21967 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 21968 break 2 21969 fi 21970 done 21971 done 21972 IFS=$as_save_IFS 21973 21974 ;; 21975 esac 21976 fi 21977 OTOOL=$ac_cv_path_OTOOL 21978 if test -n "$OTOOL"; then 21979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 21980 $as_echo "$OTOOL" >&6; } 21981 else 21982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 21983 $as_echo "no" >&6; } 21984 fi 21985 21986 21987 if test "x$OTOOL" = x; then 21988 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 21989 fi 21990 else 21991 # Otherwise we believe it is a complete path. Use it as it is. 21992 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool OTOOL=$tool_specified" >&5 21993 $as_echo "$as_me: Will use user supplied tool OTOOL=$tool_specified" >&6;} 21994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OTOOL" >&5 21995 $as_echo_n "checking for OTOOL... " >&6; } 21996 if test ! -x "$tool_specified"; then 21997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 21998 $as_echo "not found" >&6; } 21999 as_fn_error $? "User supplied tool OTOOL=$tool_specified does not exist or is not executable" "$LINENO" 5 22000 fi 22001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 22002 $as_echo "$tool_specified" >&6; } 22003 fi 22004 fi 22005 fi 22006 22007 fi 22008 22009 22010 if test "x$OTOOL" = "x"; then 22011 OTOOL="true" 22012 fi 22013 22014 22015 # Publish this variable in the help. 22016 22017 22018 if [ -z "${READELF+x}" ]; then 22019 # The variable is not set by user, try to locate tool using the code snippet 22020 for ac_prog in greadelf readelf 22021 do 22022 # Extract the first word of "$ac_prog", so it can be a program name with args. 22023 set dummy $ac_prog; ac_word=$2 22024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 22025 $as_echo_n "checking for $ac_word... " >&6; } 22026 if ${ac_cv_path_READELF+:} false; then : 22027 $as_echo_n "(cached) " >&6 22028 else 22029 case $READELF in 22030 [\\/]* | ?:[\\/]*) 22031 ac_cv_path_READELF="$READELF" # Let the user override the test with a path. 22032 ;; 22033 *) 22034 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 22035 for as_dir in $PATH 22036 do 22037 IFS=$as_save_IFS 22038 test -z "$as_dir" && as_dir=. 22039 for ac_exec_ext in '' $ac_executable_extensions; do 22040 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 22041 ac_cv_path_READELF="$as_dir/$ac_word$ac_exec_ext" 22042 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 22043 break 2 22044 fi 22045 done 22046 done 22047 IFS=$as_save_IFS 22048 22049 ;; 22050 esac 22051 fi 22052 READELF=$ac_cv_path_READELF 22053 if test -n "$READELF"; then 22054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5 22055 $as_echo "$READELF" >&6; } 22056 else 22057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 22058 $as_echo "no" >&6; } 22059 fi 22060 22061 22062 test -n "$READELF" && break 22063 done 22064 22065 else 22066 # The variable is set, but is it from the command line or the environment? 22067 22068 # Try to remove the string !READELF! from our list. 22069 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!READELF!/} 22070 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 22071 # If it failed, the variable was not from the command line. Ignore it, 22072 # but warn the user (except for BASH, which is always set by the calling BASH). 22073 if test "xREADELF" != xBASH; then 22074 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of READELF from the environment. Use command line variables instead." >&5 22075 $as_echo "$as_me: WARNING: Ignoring value of READELF from the environment. Use command line variables instead." >&2;} 22076 fi 22077 # Try to locate tool using the code snippet 22078 for ac_prog in greadelf readelf 22079 do 22080 # Extract the first word of "$ac_prog", so it can be a program name with args. 22081 set dummy $ac_prog; ac_word=$2 22082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 22083 $as_echo_n "checking for $ac_word... " >&6; } 22084 if ${ac_cv_path_READELF+:} false; then : 22085 $as_echo_n "(cached) " >&6 22086 else 22087 case $READELF in 22088 [\\/]* | ?:[\\/]*) 22089 ac_cv_path_READELF="$READELF" # Let the user override the test with a path. 22090 ;; 22091 *) 22092 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 22093 for as_dir in $PATH 22094 do 22095 IFS=$as_save_IFS 22096 test -z "$as_dir" && as_dir=. 22097 for ac_exec_ext in '' $ac_executable_extensions; do 22098 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 22099 ac_cv_path_READELF="$as_dir/$ac_word$ac_exec_ext" 22100 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 22101 break 2 22102 fi 22103 done 22104 done 22105 IFS=$as_save_IFS 22106 22107 ;; 22108 esac 22109 fi 22110 READELF=$ac_cv_path_READELF 22111 if test -n "$READELF"; then 22112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5 22113 $as_echo "$READELF" >&6; } 22114 else 22115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 22116 $as_echo "no" >&6; } 22117 fi 22118 22119 22120 test -n "$READELF" && break 22121 done 22122 22123 else 22124 # If it succeeded, then it was overridden by the user. We will use it 22125 # for the tool. 22126 22127 # First remove it from the list of overridden variables, so we can test 22128 # for unknown variables in the end. 22129 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 22130 22131 # Check if we try to supply an empty value 22132 if test "x$READELF" = x; then 22133 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool READELF= (no value)" >&5 22134 $as_echo "$as_me: Setting user supplied tool READELF= (no value)" >&6;} 22135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for READELF" >&5 22136 $as_echo_n "checking for READELF... " >&6; } 22137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 22138 $as_echo "disabled" >&6; } 22139 else 22140 # Check if the provided tool contains a complete path. 22141 tool_specified="$READELF" 22142 tool_basename="${tool_specified##*/}" 22143 if test "x$tool_basename" = "x$tool_specified"; then 22144 # A command without a complete path is provided, search $PATH. 22145 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool READELF=$tool_basename" >&5 22146 $as_echo "$as_me: Will search for user supplied tool READELF=$tool_basename" >&6;} 22147 # Extract the first word of "$tool_basename", so it can be a program name with args. 22148 set dummy $tool_basename; ac_word=$2 22149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 22150 $as_echo_n "checking for $ac_word... " >&6; } 22151 if ${ac_cv_path_READELF+:} false; then : 22152 $as_echo_n "(cached) " >&6 22153 else 22154 case $READELF in 22155 [\\/]* | ?:[\\/]*) 22156 ac_cv_path_READELF="$READELF" # Let the user override the test with a path. 22157 ;; 22158 *) 22159 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 22160 for as_dir in $PATH 22161 do 22162 IFS=$as_save_IFS 22163 test -z "$as_dir" && as_dir=. 22164 for ac_exec_ext in '' $ac_executable_extensions; do 22165 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 22166 ac_cv_path_READELF="$as_dir/$ac_word$ac_exec_ext" 22167 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 22168 break 2 22169 fi 22170 done 22171 done 22172 IFS=$as_save_IFS 22173 22174 ;; 22175 esac 22176 fi 22177 READELF=$ac_cv_path_READELF 22178 if test -n "$READELF"; then 22179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5 22180 $as_echo "$READELF" >&6; } 22181 else 22182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 22183 $as_echo "no" >&6; } 22184 fi 22185 22186 22187 if test "x$READELF" = x; then 22188 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 22189 fi 22190 else 22191 # Otherwise we believe it is a complete path. Use it as it is. 22192 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool READELF=$tool_specified" >&5 22193 $as_echo "$as_me: Will use user supplied tool READELF=$tool_specified" >&6;} 22194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for READELF" >&5 22195 $as_echo_n "checking for READELF... " >&6; } 22196 if test ! -x "$tool_specified"; then 22197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 22198 $as_echo "not found" >&6; } 22199 as_fn_error $? "User supplied tool READELF=$tool_specified does not exist or is not executable" "$LINENO" 5 22200 fi 22201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 22202 $as_echo "$tool_specified" >&6; } 22203 fi 22204 fi 22205 fi 22206 22207 fi 22208 22209 22210 22211 22212 # Publish this variable in the help. 22213 22214 22215 if [ -z "${HG+x}" ]; then 22216 # The variable is not set by user, try to locate tool using the code snippet 22217 for ac_prog in hg 22218 do 22219 # Extract the first word of "$ac_prog", so it can be a program name with args. 22220 set dummy $ac_prog; ac_word=$2 22221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 22222 $as_echo_n "checking for $ac_word... " >&6; } 22223 if ${ac_cv_path_HG+:} false; then : 22224 $as_echo_n "(cached) " >&6 22225 else 22226 case $HG in 22227 [\\/]* | ?:[\\/]*) 22228 ac_cv_path_HG="$HG" # Let the user override the test with a path. 22229 ;; 22230 *) 22231 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 22232 for as_dir in $PATH 22233 do 22234 IFS=$as_save_IFS 22235 test -z "$as_dir" && as_dir=. 22236 for ac_exec_ext in '' $ac_executable_extensions; do 22237 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 22238 ac_cv_path_HG="$as_dir/$ac_word$ac_exec_ext" 22239 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 22240 break 2 22241 fi 22242 done 22243 done 22244 IFS=$as_save_IFS 22245 22246 ;; 22247 esac 22248 fi 22249 HG=$ac_cv_path_HG 22250 if test -n "$HG"; then 22251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HG" >&5 22252 $as_echo "$HG" >&6; } 22253 else 22254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 22255 $as_echo "no" >&6; } 22256 fi 22257 22258 22259 test -n "$HG" && break 22260 done 22261 22262 else 22263 # The variable is set, but is it from the command line or the environment? 22264 22265 # Try to remove the string !HG! from our list. 22266 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!HG!/} 22267 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 22268 # If it failed, the variable was not from the command line. Ignore it, 22269 # but warn the user (except for BASH, which is always set by the calling BASH). 22270 if test "xHG" != xBASH; then 22271 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of HG from the environment. Use command line variables instead." >&5 22272 $as_echo "$as_me: WARNING: Ignoring value of HG from the environment. Use command line variables instead." >&2;} 22273 fi 22274 # Try to locate tool using the code snippet 22275 for ac_prog in hg 22276 do 22277 # Extract the first word of "$ac_prog", so it can be a program name with args. 22278 set dummy $ac_prog; ac_word=$2 22279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 22280 $as_echo_n "checking for $ac_word... " >&6; } 22281 if ${ac_cv_path_HG+:} false; then : 22282 $as_echo_n "(cached) " >&6 22283 else 22284 case $HG in 22285 [\\/]* | ?:[\\/]*) 22286 ac_cv_path_HG="$HG" # Let the user override the test with a path. 22287 ;; 22288 *) 22289 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 22290 for as_dir in $PATH 22291 do 22292 IFS=$as_save_IFS 22293 test -z "$as_dir" && as_dir=. 22294 for ac_exec_ext in '' $ac_executable_extensions; do 22295 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 22296 ac_cv_path_HG="$as_dir/$ac_word$ac_exec_ext" 22297 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 22298 break 2 22299 fi 22300 done 22301 done 22302 IFS=$as_save_IFS 22303 22304 ;; 22305 esac 22306 fi 22307 HG=$ac_cv_path_HG 22308 if test -n "$HG"; then 22309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HG" >&5 22310 $as_echo "$HG" >&6; } 22311 else 22312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 22313 $as_echo "no" >&6; } 22314 fi 22315 22316 22317 test -n "$HG" && break 22318 done 22319 22320 else 22321 # If it succeeded, then it was overridden by the user. We will use it 22322 # for the tool. 22323 22324 # First remove it from the list of overridden variables, so we can test 22325 # for unknown variables in the end. 22326 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 22327 22328 # Check if we try to supply an empty value 22329 if test "x$HG" = x; then 22330 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool HG= (no value)" >&5 22331 $as_echo "$as_me: Setting user supplied tool HG= (no value)" >&6;} 22332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for HG" >&5 22333 $as_echo_n "checking for HG... " >&6; } 22334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 22335 $as_echo "disabled" >&6; } 22336 else 22337 # Check if the provided tool contains a complete path. 22338 tool_specified="$HG" 22339 tool_basename="${tool_specified##*/}" 22340 if test "x$tool_basename" = "x$tool_specified"; then 22341 # A command without a complete path is provided, search $PATH. 22342 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool HG=$tool_basename" >&5 22343 $as_echo "$as_me: Will search for user supplied tool HG=$tool_basename" >&6;} 22344 # Extract the first word of "$tool_basename", so it can be a program name with args. 22345 set dummy $tool_basename; ac_word=$2 22346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 22347 $as_echo_n "checking for $ac_word... " >&6; } 22348 if ${ac_cv_path_HG+:} false; then : 22349 $as_echo_n "(cached) " >&6 22350 else 22351 case $HG in 22352 [\\/]* | ?:[\\/]*) 22353 ac_cv_path_HG="$HG" # Let the user override the test with a path. 22354 ;; 22355 *) 22356 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 22357 for as_dir in $PATH 22358 do 22359 IFS=$as_save_IFS 22360 test -z "$as_dir" && as_dir=. 22361 for ac_exec_ext in '' $ac_executable_extensions; do 22362 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 22363 ac_cv_path_HG="$as_dir/$ac_word$ac_exec_ext" 22364 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 22365 break 2 22366 fi 22367 done 22368 done 22369 IFS=$as_save_IFS 22370 22371 ;; 22372 esac 22373 fi 22374 HG=$ac_cv_path_HG 22375 if test -n "$HG"; then 22376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HG" >&5 22377 $as_echo "$HG" >&6; } 22378 else 22379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 22380 $as_echo "no" >&6; } 22381 fi 22382 22383 22384 if test "x$HG" = x; then 22385 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 22386 fi 22387 else 22388 # Otherwise we believe it is a complete path. Use it as it is. 22389 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool HG=$tool_specified" >&5 22390 $as_echo "$as_me: Will use user supplied tool HG=$tool_specified" >&6;} 22391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for HG" >&5 22392 $as_echo_n "checking for HG... " >&6; } 22393 if test ! -x "$tool_specified"; then 22394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 22395 $as_echo "not found" >&6; } 22396 as_fn_error $? "User supplied tool HG=$tool_specified does not exist or is not executable" "$LINENO" 5 22397 fi 22398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 22399 $as_echo "$tool_specified" >&6; } 22400 fi 22401 fi 22402 fi 22403 22404 fi 22405 22406 22407 22408 22409 # Publish this variable in the help. 22410 22411 22412 if [ -z "${STAT+x}" ]; then 22413 # The variable is not set by user, try to locate tool using the code snippet 22414 for ac_prog in stat 22415 do 22416 # Extract the first word of "$ac_prog", so it can be a program name with args. 22417 set dummy $ac_prog; ac_word=$2 22418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 22419 $as_echo_n "checking for $ac_word... " >&6; } 22420 if ${ac_cv_path_STAT+:} false; then : 22421 $as_echo_n "(cached) " >&6 22422 else 22423 case $STAT in 22424 [\\/]* | ?:[\\/]*) 22425 ac_cv_path_STAT="$STAT" # Let the user override the test with a path. 22426 ;; 22427 *) 22428 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 22429 for as_dir in $PATH 22430 do 22431 IFS=$as_save_IFS 22432 test -z "$as_dir" && as_dir=. 22433 for ac_exec_ext in '' $ac_executable_extensions; do 22434 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 22435 ac_cv_path_STAT="$as_dir/$ac_word$ac_exec_ext" 22436 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 22437 break 2 22438 fi 22439 done 22440 done 22441 IFS=$as_save_IFS 22442 22443 ;; 22444 esac 22445 fi 22446 STAT=$ac_cv_path_STAT 22447 if test -n "$STAT"; then 22448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STAT" >&5 22449 $as_echo "$STAT" >&6; } 22450 else 22451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 22452 $as_echo "no" >&6; } 22453 fi 22454 22455 22456 test -n "$STAT" && break 22457 done 22458 22459 else 22460 # The variable is set, but is it from the command line or the environment? 22461 22462 # Try to remove the string !STAT! from our list. 22463 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!STAT!/} 22464 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 22465 # If it failed, the variable was not from the command line. Ignore it, 22466 # but warn the user (except for BASH, which is always set by the calling BASH). 22467 if test "xSTAT" != xBASH; then 22468 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of STAT from the environment. Use command line variables instead." >&5 22469 $as_echo "$as_me: WARNING: Ignoring value of STAT from the environment. Use command line variables instead." >&2;} 22470 fi 22471 # Try to locate tool using the code snippet 22472 for ac_prog in stat 22473 do 22474 # Extract the first word of "$ac_prog", so it can be a program name with args. 22475 set dummy $ac_prog; ac_word=$2 22476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 22477 $as_echo_n "checking for $ac_word... " >&6; } 22478 if ${ac_cv_path_STAT+:} false; then : 22479 $as_echo_n "(cached) " >&6 22480 else 22481 case $STAT in 22482 [\\/]* | ?:[\\/]*) 22483 ac_cv_path_STAT="$STAT" # Let the user override the test with a path. 22484 ;; 22485 *) 22486 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 22487 for as_dir in $PATH 22488 do 22489 IFS=$as_save_IFS 22490 test -z "$as_dir" && as_dir=. 22491 for ac_exec_ext in '' $ac_executable_extensions; do 22492 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 22493 ac_cv_path_STAT="$as_dir/$ac_word$ac_exec_ext" 22494 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 22495 break 2 22496 fi 22497 done 22498 done 22499 IFS=$as_save_IFS 22500 22501 ;; 22502 esac 22503 fi 22504 STAT=$ac_cv_path_STAT 22505 if test -n "$STAT"; then 22506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STAT" >&5 22507 $as_echo "$STAT" >&6; } 22508 else 22509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 22510 $as_echo "no" >&6; } 22511 fi 22512 22513 22514 test -n "$STAT" && break 22515 done 22516 22517 else 22518 # If it succeeded, then it was overridden by the user. We will use it 22519 # for the tool. 22520 22521 # First remove it from the list of overridden variables, so we can test 22522 # for unknown variables in the end. 22523 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 22524 22525 # Check if we try to supply an empty value 22526 if test "x$STAT" = x; then 22527 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool STAT= (no value)" >&5 22528 $as_echo "$as_me: Setting user supplied tool STAT= (no value)" >&6;} 22529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for STAT" >&5 22530 $as_echo_n "checking for STAT... " >&6; } 22531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 22532 $as_echo "disabled" >&6; } 22533 else 22534 # Check if the provided tool contains a complete path. 22535 tool_specified="$STAT" 22536 tool_basename="${tool_specified##*/}" 22537 if test "x$tool_basename" = "x$tool_specified"; then 22538 # A command without a complete path is provided, search $PATH. 22539 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool STAT=$tool_basename" >&5 22540 $as_echo "$as_me: Will search for user supplied tool STAT=$tool_basename" >&6;} 22541 # Extract the first word of "$tool_basename", so it can be a program name with args. 22542 set dummy $tool_basename; ac_word=$2 22543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 22544 $as_echo_n "checking for $ac_word... " >&6; } 22545 if ${ac_cv_path_STAT+:} false; then : 22546 $as_echo_n "(cached) " >&6 22547 else 22548 case $STAT in 22549 [\\/]* | ?:[\\/]*) 22550 ac_cv_path_STAT="$STAT" # Let the user override the test with a path. 22551 ;; 22552 *) 22553 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 22554 for as_dir in $PATH 22555 do 22556 IFS=$as_save_IFS 22557 test -z "$as_dir" && as_dir=. 22558 for ac_exec_ext in '' $ac_executable_extensions; do 22559 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 22560 ac_cv_path_STAT="$as_dir/$ac_word$ac_exec_ext" 22561 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 22562 break 2 22563 fi 22564 done 22565 done 22566 IFS=$as_save_IFS 22567 22568 ;; 22569 esac 22570 fi 22571 STAT=$ac_cv_path_STAT 22572 if test -n "$STAT"; then 22573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STAT" >&5 22574 $as_echo "$STAT" >&6; } 22575 else 22576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 22577 $as_echo "no" >&6; } 22578 fi 22579 22580 22581 if test "x$STAT" = x; then 22582 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 22583 fi 22584 else 22585 # Otherwise we believe it is a complete path. Use it as it is. 22586 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool STAT=$tool_specified" >&5 22587 $as_echo "$as_me: Will use user supplied tool STAT=$tool_specified" >&6;} 22588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for STAT" >&5 22589 $as_echo_n "checking for STAT... " >&6; } 22590 if test ! -x "$tool_specified"; then 22591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 22592 $as_echo "not found" >&6; } 22593 as_fn_error $? "User supplied tool STAT=$tool_specified does not exist or is not executable" "$LINENO" 5 22594 fi 22595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 22596 $as_echo "$tool_specified" >&6; } 22597 fi 22598 fi 22599 fi 22600 22601 fi 22602 22603 22604 22605 22606 # Publish this variable in the help. 22607 22608 22609 if [ -z "${TIME+x}" ]; then 22610 # The variable is not set by user, try to locate tool using the code snippet 22611 for ac_prog in time 22612 do 22613 # Extract the first word of "$ac_prog", so it can be a program name with args. 22614 set dummy $ac_prog; ac_word=$2 22615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 22616 $as_echo_n "checking for $ac_word... " >&6; } 22617 if ${ac_cv_path_TIME+:} false; then : 22618 $as_echo_n "(cached) " >&6 22619 else 22620 case $TIME in 22621 [\\/]* | ?:[\\/]*) 22622 ac_cv_path_TIME="$TIME" # Let the user override the test with a path. 22623 ;; 22624 *) 22625 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 22626 for as_dir in $PATH 22627 do 22628 IFS=$as_save_IFS 22629 test -z "$as_dir" && as_dir=. 22630 for ac_exec_ext in '' $ac_executable_extensions; do 22631 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 22632 ac_cv_path_TIME="$as_dir/$ac_word$ac_exec_ext" 22633 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 22634 break 2 22635 fi 22636 done 22637 done 22638 IFS=$as_save_IFS 22639 22640 ;; 22641 esac 22642 fi 22643 TIME=$ac_cv_path_TIME 22644 if test -n "$TIME"; then 22645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TIME" >&5 22646 $as_echo "$TIME" >&6; } 22647 else 22648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 22649 $as_echo "no" >&6; } 22650 fi 22651 22652 22653 test -n "$TIME" && break 22654 done 22655 22656 else 22657 # The variable is set, but is it from the command line or the environment? 22658 22659 # Try to remove the string !TIME! from our list. 22660 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!TIME!/} 22661 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 22662 # If it failed, the variable was not from the command line. Ignore it, 22663 # but warn the user (except for BASH, which is always set by the calling BASH). 22664 if test "xTIME" != xBASH; then 22665 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of TIME from the environment. Use command line variables instead." >&5 22666 $as_echo "$as_me: WARNING: Ignoring value of TIME from the environment. Use command line variables instead." >&2;} 22667 fi 22668 # Try to locate tool using the code snippet 22669 for ac_prog in time 22670 do 22671 # Extract the first word of "$ac_prog", so it can be a program name with args. 22672 set dummy $ac_prog; ac_word=$2 22673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 22674 $as_echo_n "checking for $ac_word... " >&6; } 22675 if ${ac_cv_path_TIME+:} false; then : 22676 $as_echo_n "(cached) " >&6 22677 else 22678 case $TIME in 22679 [\\/]* | ?:[\\/]*) 22680 ac_cv_path_TIME="$TIME" # Let the user override the test with a path. 22681 ;; 22682 *) 22683 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 22684 for as_dir in $PATH 22685 do 22686 IFS=$as_save_IFS 22687 test -z "$as_dir" && as_dir=. 22688 for ac_exec_ext in '' $ac_executable_extensions; do 22689 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 22690 ac_cv_path_TIME="$as_dir/$ac_word$ac_exec_ext" 22691 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 22692 break 2 22693 fi 22694 done 22695 done 22696 IFS=$as_save_IFS 22697 22698 ;; 22699 esac 22700 fi 22701 TIME=$ac_cv_path_TIME 22702 if test -n "$TIME"; then 22703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TIME" >&5 22704 $as_echo "$TIME" >&6; } 22705 else 22706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 22707 $as_echo "no" >&6; } 22708 fi 22709 22710 22711 test -n "$TIME" && break 22712 done 22713 22714 else 22715 # If it succeeded, then it was overridden by the user. We will use it 22716 # for the tool. 22717 22718 # First remove it from the list of overridden variables, so we can test 22719 # for unknown variables in the end. 22720 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 22721 22722 # Check if we try to supply an empty value 22723 if test "x$TIME" = x; then 22724 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool TIME= (no value)" >&5 22725 $as_echo "$as_me: Setting user supplied tool TIME= (no value)" >&6;} 22726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIME" >&5 22727 $as_echo_n "checking for TIME... " >&6; } 22728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 22729 $as_echo "disabled" >&6; } 22730 else 22731 # Check if the provided tool contains a complete path. 22732 tool_specified="$TIME" 22733 tool_basename="${tool_specified##*/}" 22734 if test "x$tool_basename" = "x$tool_specified"; then 22735 # A command without a complete path is provided, search $PATH. 22736 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool TIME=$tool_basename" >&5 22737 $as_echo "$as_me: Will search for user supplied tool TIME=$tool_basename" >&6;} 22738 # Extract the first word of "$tool_basename", so it can be a program name with args. 22739 set dummy $tool_basename; ac_word=$2 22740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 22741 $as_echo_n "checking for $ac_word... " >&6; } 22742 if ${ac_cv_path_TIME+:} false; then : 22743 $as_echo_n "(cached) " >&6 22744 else 22745 case $TIME in 22746 [\\/]* | ?:[\\/]*) 22747 ac_cv_path_TIME="$TIME" # Let the user override the test with a path. 22748 ;; 22749 *) 22750 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 22751 for as_dir in $PATH 22752 do 22753 IFS=$as_save_IFS 22754 test -z "$as_dir" && as_dir=. 22755 for ac_exec_ext in '' $ac_executable_extensions; do 22756 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 22757 ac_cv_path_TIME="$as_dir/$ac_word$ac_exec_ext" 22758 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 22759 break 2 22760 fi 22761 done 22762 done 22763 IFS=$as_save_IFS 22764 22765 ;; 22766 esac 22767 fi 22768 TIME=$ac_cv_path_TIME 22769 if test -n "$TIME"; then 22770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TIME" >&5 22771 $as_echo "$TIME" >&6; } 22772 else 22773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 22774 $as_echo "no" >&6; } 22775 fi 22776 22777 22778 if test "x$TIME" = x; then 22779 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 22780 fi 22781 else 22782 # Otherwise we believe it is a complete path. Use it as it is. 22783 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool TIME=$tool_specified" >&5 22784 $as_echo "$as_me: Will use user supplied tool TIME=$tool_specified" >&6;} 22785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIME" >&5 22786 $as_echo_n "checking for TIME... " >&6; } 22787 if test ! -x "$tool_specified"; then 22788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 22789 $as_echo "not found" >&6; } 22790 as_fn_error $? "User supplied tool TIME=$tool_specified does not exist or is not executable" "$LINENO" 5 22791 fi 22792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 22793 $as_echo "$tool_specified" >&6; } 22794 fi 22795 fi 22796 fi 22797 22798 fi 22799 22800 22801 22802 22803 # Publish this variable in the help. 22804 22805 22806 if [ -z "${DTRACE+x}" ]; then 22807 # The variable is not set by user, try to locate tool using the code snippet 22808 for ac_prog in dtrace 22809 do 22810 # Extract the first word of "$ac_prog", so it can be a program name with args. 22811 set dummy $ac_prog; ac_word=$2 22812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 22813 $as_echo_n "checking for $ac_word... " >&6; } 22814 if ${ac_cv_path_DTRACE+:} false; then : 22815 $as_echo_n "(cached) " >&6 22816 else 22817 case $DTRACE in 22818 [\\/]* | ?:[\\/]*) 22819 ac_cv_path_DTRACE="$DTRACE" # Let the user override the test with a path. 22820 ;; 22821 *) 22822 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 22823 for as_dir in $PATH 22824 do 22825 IFS=$as_save_IFS 22826 test -z "$as_dir" && as_dir=. 22827 for ac_exec_ext in '' $ac_executable_extensions; do 22828 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 22829 ac_cv_path_DTRACE="$as_dir/$ac_word$ac_exec_ext" 22830 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 22831 break 2 22832 fi 22833 done 22834 done 22835 IFS=$as_save_IFS 22836 22837 ;; 22838 esac 22839 fi 22840 DTRACE=$ac_cv_path_DTRACE 22841 if test -n "$DTRACE"; then 22842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DTRACE" >&5 22843 $as_echo "$DTRACE" >&6; } 22844 else 22845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 22846 $as_echo "no" >&6; } 22847 fi 22848 22849 22850 test -n "$DTRACE" && break 22851 done 22852 22853 else 22854 # The variable is set, but is it from the command line or the environment? 22855 22856 # Try to remove the string !DTRACE! from our list. 22857 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!DTRACE!/} 22858 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 22859 # If it failed, the variable was not from the command line. Ignore it, 22860 # but warn the user (except for BASH, which is always set by the calling BASH). 22861 if test "xDTRACE" != xBASH; then 22862 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of DTRACE from the environment. Use command line variables instead." >&5 22863 $as_echo "$as_me: WARNING: Ignoring value of DTRACE from the environment. Use command line variables instead." >&2;} 22864 fi 22865 # Try to locate tool using the code snippet 22866 for ac_prog in dtrace 22867 do 22868 # Extract the first word of "$ac_prog", so it can be a program name with args. 22869 set dummy $ac_prog; ac_word=$2 22870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 22871 $as_echo_n "checking for $ac_word... " >&6; } 22872 if ${ac_cv_path_DTRACE+:} false; then : 22873 $as_echo_n "(cached) " >&6 22874 else 22875 case $DTRACE in 22876 [\\/]* | ?:[\\/]*) 22877 ac_cv_path_DTRACE="$DTRACE" # Let the user override the test with a path. 22878 ;; 22879 *) 22880 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 22881 for as_dir in $PATH 22882 do 22883 IFS=$as_save_IFS 22884 test -z "$as_dir" && as_dir=. 22885 for ac_exec_ext in '' $ac_executable_extensions; do 22886 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 22887 ac_cv_path_DTRACE="$as_dir/$ac_word$ac_exec_ext" 22888 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 22889 break 2 22890 fi 22891 done 22892 done 22893 IFS=$as_save_IFS 22894 22895 ;; 22896 esac 22897 fi 22898 DTRACE=$ac_cv_path_DTRACE 22899 if test -n "$DTRACE"; then 22900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DTRACE" >&5 22901 $as_echo "$DTRACE" >&6; } 22902 else 22903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 22904 $as_echo "no" >&6; } 22905 fi 22906 22907 22908 test -n "$DTRACE" && break 22909 done 22910 22911 else 22912 # If it succeeded, then it was overridden by the user. We will use it 22913 # for the tool. 22914 22915 # First remove it from the list of overridden variables, so we can test 22916 # for unknown variables in the end. 22917 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 22918 22919 # Check if we try to supply an empty value 22920 if test "x$DTRACE" = x; then 22921 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool DTRACE= (no value)" >&5 22922 $as_echo "$as_me: Setting user supplied tool DTRACE= (no value)" >&6;} 22923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DTRACE" >&5 22924 $as_echo_n "checking for DTRACE... " >&6; } 22925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 22926 $as_echo "disabled" >&6; } 22927 else 22928 # Check if the provided tool contains a complete path. 22929 tool_specified="$DTRACE" 22930 tool_basename="${tool_specified##*/}" 22931 if test "x$tool_basename" = "x$tool_specified"; then 22932 # A command without a complete path is provided, search $PATH. 22933 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool DTRACE=$tool_basename" >&5 22934 $as_echo "$as_me: Will search for user supplied tool DTRACE=$tool_basename" >&6;} 22935 # Extract the first word of "$tool_basename", so it can be a program name with args. 22936 set dummy $tool_basename; ac_word=$2 22937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 22938 $as_echo_n "checking for $ac_word... " >&6; } 22939 if ${ac_cv_path_DTRACE+:} false; then : 22940 $as_echo_n "(cached) " >&6 22941 else 22942 case $DTRACE in 22943 [\\/]* | ?:[\\/]*) 22944 ac_cv_path_DTRACE="$DTRACE" # Let the user override the test with a path. 22945 ;; 22946 *) 22947 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 22948 for as_dir in $PATH 22949 do 22950 IFS=$as_save_IFS 22951 test -z "$as_dir" && as_dir=. 22952 for ac_exec_ext in '' $ac_executable_extensions; do 22953 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 22954 ac_cv_path_DTRACE="$as_dir/$ac_word$ac_exec_ext" 22955 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 22956 break 2 22957 fi 22958 done 22959 done 22960 IFS=$as_save_IFS 22961 22962 ;; 22963 esac 22964 fi 22965 DTRACE=$ac_cv_path_DTRACE 22966 if test -n "$DTRACE"; then 22967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DTRACE" >&5 22968 $as_echo "$DTRACE" >&6; } 22969 else 22970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 22971 $as_echo "no" >&6; } 22972 fi 22973 22974 22975 if test "x$DTRACE" = x; then 22976 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 22977 fi 22978 else 22979 # Otherwise we believe it is a complete path. Use it as it is. 22980 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool DTRACE=$tool_specified" >&5 22981 $as_echo "$as_me: Will use user supplied tool DTRACE=$tool_specified" >&6;} 22982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DTRACE" >&5 22983 $as_echo_n "checking for DTRACE... " >&6; } 22984 if test ! -x "$tool_specified"; then 22985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 22986 $as_echo "not found" >&6; } 22987 as_fn_error $? "User supplied tool DTRACE=$tool_specified does not exist or is not executable" "$LINENO" 5 22988 fi 22989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 22990 $as_echo "$tool_specified" >&6; } 22991 fi 22992 fi 22993 fi 22994 22995 fi 22996 22997 22998 22999 23000 # Publish this variable in the help. 23001 23002 23003 if [ -z "${PATCH+x}" ]; then 23004 # The variable is not set by user, try to locate tool using the code snippet 23005 for ac_prog in gpatch patch 23006 do 23007 # Extract the first word of "$ac_prog", so it can be a program name with args. 23008 set dummy $ac_prog; ac_word=$2 23009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 23010 $as_echo_n "checking for $ac_word... " >&6; } 23011 if ${ac_cv_path_PATCH+:} false; then : 23012 $as_echo_n "(cached) " >&6 23013 else 23014 case $PATCH in 23015 [\\/]* | ?:[\\/]*) 23016 ac_cv_path_PATCH="$PATCH" # Let the user override the test with a path. 23017 ;; 23018 *) 23019 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 23020 for as_dir in $PATH 23021 do 23022 IFS=$as_save_IFS 23023 test -z "$as_dir" && as_dir=. 23024 for ac_exec_ext in '' $ac_executable_extensions; do 23025 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 23026 ac_cv_path_PATCH="$as_dir/$ac_word$ac_exec_ext" 23027 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 23028 break 2 23029 fi 23030 done 23031 done 23032 IFS=$as_save_IFS 23033 23034 ;; 23035 esac 23036 fi 23037 PATCH=$ac_cv_path_PATCH 23038 if test -n "$PATCH"; then 23039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATCH" >&5 23040 $as_echo "$PATCH" >&6; } 23041 else 23042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 23043 $as_echo "no" >&6; } 23044 fi 23045 23046 23047 test -n "$PATCH" && break 23048 done 23049 23050 else 23051 # The variable is set, but is it from the command line or the environment? 23052 23053 # Try to remove the string !PATCH! from our list. 23054 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!PATCH!/} 23055 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 23056 # If it failed, the variable was not from the command line. Ignore it, 23057 # but warn the user (except for BASH, which is always set by the calling BASH). 23058 if test "xPATCH" != xBASH; then 23059 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of PATCH from the environment. Use command line variables instead." >&5 23060 $as_echo "$as_me: WARNING: Ignoring value of PATCH from the environment. Use command line variables instead." >&2;} 23061 fi 23062 # Try to locate tool using the code snippet 23063 for ac_prog in gpatch patch 23064 do 23065 # Extract the first word of "$ac_prog", so it can be a program name with args. 23066 set dummy $ac_prog; ac_word=$2 23067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 23068 $as_echo_n "checking for $ac_word... " >&6; } 23069 if ${ac_cv_path_PATCH+:} false; then : 23070 $as_echo_n "(cached) " >&6 23071 else 23072 case $PATCH in 23073 [\\/]* | ?:[\\/]*) 23074 ac_cv_path_PATCH="$PATCH" # Let the user override the test with a path. 23075 ;; 23076 *) 23077 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 23078 for as_dir in $PATH 23079 do 23080 IFS=$as_save_IFS 23081 test -z "$as_dir" && as_dir=. 23082 for ac_exec_ext in '' $ac_executable_extensions; do 23083 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 23084 ac_cv_path_PATCH="$as_dir/$ac_word$ac_exec_ext" 23085 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 23086 break 2 23087 fi 23088 done 23089 done 23090 IFS=$as_save_IFS 23091 23092 ;; 23093 esac 23094 fi 23095 PATCH=$ac_cv_path_PATCH 23096 if test -n "$PATCH"; then 23097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATCH" >&5 23098 $as_echo "$PATCH" >&6; } 23099 else 23100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 23101 $as_echo "no" >&6; } 23102 fi 23103 23104 23105 test -n "$PATCH" && break 23106 done 23107 23108 else 23109 # If it succeeded, then it was overridden by the user. We will use it 23110 # for the tool. 23111 23112 # First remove it from the list of overridden variables, so we can test 23113 # for unknown variables in the end. 23114 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 23115 23116 # Check if we try to supply an empty value 23117 if test "x$PATCH" = x; then 23118 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool PATCH= (no value)" >&5 23119 $as_echo "$as_me: Setting user supplied tool PATCH= (no value)" >&6;} 23120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PATCH" >&5 23121 $as_echo_n "checking for PATCH... " >&6; } 23122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 23123 $as_echo "disabled" >&6; } 23124 else 23125 # Check if the provided tool contains a complete path. 23126 tool_specified="$PATCH" 23127 tool_basename="${tool_specified##*/}" 23128 if test "x$tool_basename" = "x$tool_specified"; then 23129 # A command without a complete path is provided, search $PATH. 23130 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool PATCH=$tool_basename" >&5 23131 $as_echo "$as_me: Will search for user supplied tool PATCH=$tool_basename" >&6;} 23132 # Extract the first word of "$tool_basename", so it can be a program name with args. 23133 set dummy $tool_basename; ac_word=$2 23134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 23135 $as_echo_n "checking for $ac_word... " >&6; } 23136 if ${ac_cv_path_PATCH+:} false; then : 23137 $as_echo_n "(cached) " >&6 23138 else 23139 case $PATCH in 23140 [\\/]* | ?:[\\/]*) 23141 ac_cv_path_PATCH="$PATCH" # Let the user override the test with a path. 23142 ;; 23143 *) 23144 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 23145 for as_dir in $PATH 23146 do 23147 IFS=$as_save_IFS 23148 test -z "$as_dir" && as_dir=. 23149 for ac_exec_ext in '' $ac_executable_extensions; do 23150 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 23151 ac_cv_path_PATCH="$as_dir/$ac_word$ac_exec_ext" 23152 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 23153 break 2 23154 fi 23155 done 23156 done 23157 IFS=$as_save_IFS 23158 23159 ;; 23160 esac 23161 fi 23162 PATCH=$ac_cv_path_PATCH 23163 if test -n "$PATCH"; then 23164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATCH" >&5 23165 $as_echo "$PATCH" >&6; } 23166 else 23167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 23168 $as_echo "no" >&6; } 23169 fi 23170 23171 23172 if test "x$PATCH" = x; then 23173 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 23174 fi 23175 else 23176 # Otherwise we believe it is a complete path. Use it as it is. 23177 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool PATCH=$tool_specified" >&5 23178 $as_echo "$as_me: Will use user supplied tool PATCH=$tool_specified" >&6;} 23179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PATCH" >&5 23180 $as_echo_n "checking for PATCH... " >&6; } 23181 if test ! -x "$tool_specified"; then 23182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 23183 $as_echo "not found" >&6; } 23184 as_fn_error $? "User supplied tool PATCH=$tool_specified does not exist or is not executable" "$LINENO" 5 23185 fi 23186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 23187 $as_echo "$tool_specified" >&6; } 23188 fi 23189 fi 23190 fi 23191 23192 fi 23193 23194 23195 # Check if it's GNU time 23196 IS_GNU_TIME=`$TIME --version 2>&1 | $GREP 'GNU time'` 23197 if test "x$IS_GNU_TIME" != x; then 23198 IS_GNU_TIME=yes 23199 else 23200 IS_GNU_TIME=no 23201 fi 23202 23203 23204 if test "x$OPENJDK_TARGET_OS" = "xmacosx"; then 23205 23206 23207 23208 # Publish this variable in the help. 23209 23210 23211 if [ -z "${DSYMUTIL+x}" ]; then 23212 # The variable is not set by user, try to locate tool using the code snippet 23213 for ac_prog in dsymutil 23214 do 23215 # Extract the first word of "$ac_prog", so it can be a program name with args. 23216 set dummy $ac_prog; ac_word=$2 23217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 23218 $as_echo_n "checking for $ac_word... " >&6; } 23219 if ${ac_cv_path_DSYMUTIL+:} false; then : 23220 $as_echo_n "(cached) " >&6 23221 else 23222 case $DSYMUTIL in 23223 [\\/]* | ?:[\\/]*) 23224 ac_cv_path_DSYMUTIL="$DSYMUTIL" # Let the user override the test with a path. 23225 ;; 23226 *) 23227 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 23228 for as_dir in $PATH 23229 do 23230 IFS=$as_save_IFS 23231 test -z "$as_dir" && as_dir=. 23232 for ac_exec_ext in '' $ac_executable_extensions; do 23233 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 23234 ac_cv_path_DSYMUTIL="$as_dir/$ac_word$ac_exec_ext" 23235 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 23236 break 2 23237 fi 23238 done 23239 done 23240 IFS=$as_save_IFS 23241 23242 ;; 23243 esac 23244 fi 23245 DSYMUTIL=$ac_cv_path_DSYMUTIL 23246 if test -n "$DSYMUTIL"; then 23247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 23248 $as_echo "$DSYMUTIL" >&6; } 23249 else 23250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 23251 $as_echo "no" >&6; } 23252 fi 23253 23254 23255 test -n "$DSYMUTIL" && break 23256 done 23257 23258 else 23259 # The variable is set, but is it from the command line or the environment? 23260 23261 # Try to remove the string !DSYMUTIL! from our list. 23262 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!DSYMUTIL!/} 23263 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 23264 # If it failed, the variable was not from the command line. Ignore it, 23265 # but warn the user (except for BASH, which is always set by the calling BASH). 23266 if test "xDSYMUTIL" != xBASH; then 23267 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of DSYMUTIL from the environment. Use command line variables instead." >&5 23268 $as_echo "$as_me: WARNING: Ignoring value of DSYMUTIL from the environment. Use command line variables instead." >&2;} 23269 fi 23270 # Try to locate tool using the code snippet 23271 for ac_prog in dsymutil 23272 do 23273 # Extract the first word of "$ac_prog", so it can be a program name with args. 23274 set dummy $ac_prog; ac_word=$2 23275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 23276 $as_echo_n "checking for $ac_word... " >&6; } 23277 if ${ac_cv_path_DSYMUTIL+:} false; then : 23278 $as_echo_n "(cached) " >&6 23279 else 23280 case $DSYMUTIL in 23281 [\\/]* | ?:[\\/]*) 23282 ac_cv_path_DSYMUTIL="$DSYMUTIL" # Let the user override the test with a path. 23283 ;; 23284 *) 23285 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 23286 for as_dir in $PATH 23287 do 23288 IFS=$as_save_IFS 23289 test -z "$as_dir" && as_dir=. 23290 for ac_exec_ext in '' $ac_executable_extensions; do 23291 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 23292 ac_cv_path_DSYMUTIL="$as_dir/$ac_word$ac_exec_ext" 23293 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 23294 break 2 23295 fi 23296 done 23297 done 23298 IFS=$as_save_IFS 23299 23300 ;; 23301 esac 23302 fi 23303 DSYMUTIL=$ac_cv_path_DSYMUTIL 23304 if test -n "$DSYMUTIL"; then 23305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 23306 $as_echo "$DSYMUTIL" >&6; } 23307 else 23308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 23309 $as_echo "no" >&6; } 23310 fi 23311 23312 23313 test -n "$DSYMUTIL" && break 23314 done 23315 23316 else 23317 # If it succeeded, then it was overridden by the user. We will use it 23318 # for the tool. 23319 23320 # First remove it from the list of overridden variables, so we can test 23321 # for unknown variables in the end. 23322 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 23323 23324 # Check if we try to supply an empty value 23325 if test "x$DSYMUTIL" = x; then 23326 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool DSYMUTIL= (no value)" >&5 23327 $as_echo "$as_me: Setting user supplied tool DSYMUTIL= (no value)" >&6;} 23328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DSYMUTIL" >&5 23329 $as_echo_n "checking for DSYMUTIL... " >&6; } 23330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 23331 $as_echo "disabled" >&6; } 23332 else 23333 # Check if the provided tool contains a complete path. 23334 tool_specified="$DSYMUTIL" 23335 tool_basename="${tool_specified##*/}" 23336 if test "x$tool_basename" = "x$tool_specified"; then 23337 # A command without a complete path is provided, search $PATH. 23338 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool DSYMUTIL=$tool_basename" >&5 23339 $as_echo "$as_me: Will search for user supplied tool DSYMUTIL=$tool_basename" >&6;} 23340 # Extract the first word of "$tool_basename", so it can be a program name with args. 23341 set dummy $tool_basename; ac_word=$2 23342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 23343 $as_echo_n "checking for $ac_word... " >&6; } 23344 if ${ac_cv_path_DSYMUTIL+:} false; then : 23345 $as_echo_n "(cached) " >&6 23346 else 23347 case $DSYMUTIL in 23348 [\\/]* | ?:[\\/]*) 23349 ac_cv_path_DSYMUTIL="$DSYMUTIL" # Let the user override the test with a path. 23350 ;; 23351 *) 23352 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 23353 for as_dir in $PATH 23354 do 23355 IFS=$as_save_IFS 23356 test -z "$as_dir" && as_dir=. 23357 for ac_exec_ext in '' $ac_executable_extensions; do 23358 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 23359 ac_cv_path_DSYMUTIL="$as_dir/$ac_word$ac_exec_ext" 23360 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 23361 break 2 23362 fi 23363 done 23364 done 23365 IFS=$as_save_IFS 23366 23367 ;; 23368 esac 23369 fi 23370 DSYMUTIL=$ac_cv_path_DSYMUTIL 23371 if test -n "$DSYMUTIL"; then 23372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 23373 $as_echo "$DSYMUTIL" >&6; } 23374 else 23375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 23376 $as_echo "no" >&6; } 23377 fi 23378 23379 23380 if test "x$DSYMUTIL" = x; then 23381 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 23382 fi 23383 else 23384 # Otherwise we believe it is a complete path. Use it as it is. 23385 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool DSYMUTIL=$tool_specified" >&5 23386 $as_echo "$as_me: Will use user supplied tool DSYMUTIL=$tool_specified" >&6;} 23387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DSYMUTIL" >&5 23388 $as_echo_n "checking for DSYMUTIL... " >&6; } 23389 if test ! -x "$tool_specified"; then 23390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 23391 $as_echo "not found" >&6; } 23392 as_fn_error $? "User supplied tool DSYMUTIL=$tool_specified does not exist or is not executable" "$LINENO" 5 23393 fi 23394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 23395 $as_echo "$tool_specified" >&6; } 23396 fi 23397 fi 23398 fi 23399 23400 fi 23401 23402 23403 23404 if test "x$DSYMUTIL" = x; then 23405 as_fn_error $? "Could not find required tool for DSYMUTIL" "$LINENO" 5 23406 fi 23407 23408 23409 23410 23411 23412 # Publish this variable in the help. 23413 23414 23415 if [ -z "${XATTR+x}" ]; then 23416 # The variable is not set by user, try to locate tool using the code snippet 23417 for ac_prog in xattr 23418 do 23419 # Extract the first word of "$ac_prog", so it can be a program name with args. 23420 set dummy $ac_prog; ac_word=$2 23421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 23422 $as_echo_n "checking for $ac_word... " >&6; } 23423 if ${ac_cv_path_XATTR+:} false; then : 23424 $as_echo_n "(cached) " >&6 23425 else 23426 case $XATTR in 23427 [\\/]* | ?:[\\/]*) 23428 ac_cv_path_XATTR="$XATTR" # Let the user override the test with a path. 23429 ;; 23430 *) 23431 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 23432 for as_dir in $PATH 23433 do 23434 IFS=$as_save_IFS 23435 test -z "$as_dir" && as_dir=. 23436 for ac_exec_ext in '' $ac_executable_extensions; do 23437 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 23438 ac_cv_path_XATTR="$as_dir/$ac_word$ac_exec_ext" 23439 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 23440 break 2 23441 fi 23442 done 23443 done 23444 IFS=$as_save_IFS 23445 23446 ;; 23447 esac 23448 fi 23449 XATTR=$ac_cv_path_XATTR 23450 if test -n "$XATTR"; then 23451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XATTR" >&5 23452 $as_echo "$XATTR" >&6; } 23453 else 23454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 23455 $as_echo "no" >&6; } 23456 fi 23457 23458 23459 test -n "$XATTR" && break 23460 done 23461 23462 else 23463 # The variable is set, but is it from the command line or the environment? 23464 23465 # Try to remove the string !XATTR! from our list. 23466 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!XATTR!/} 23467 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 23468 # If it failed, the variable was not from the command line. Ignore it, 23469 # but warn the user (except for BASH, which is always set by the calling BASH). 23470 if test "xXATTR" != xBASH; then 23471 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of XATTR from the environment. Use command line variables instead." >&5 23472 $as_echo "$as_me: WARNING: Ignoring value of XATTR from the environment. Use command line variables instead." >&2;} 23473 fi 23474 # Try to locate tool using the code snippet 23475 for ac_prog in xattr 23476 do 23477 # Extract the first word of "$ac_prog", so it can be a program name with args. 23478 set dummy $ac_prog; ac_word=$2 23479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 23480 $as_echo_n "checking for $ac_word... " >&6; } 23481 if ${ac_cv_path_XATTR+:} false; then : 23482 $as_echo_n "(cached) " >&6 23483 else 23484 case $XATTR in 23485 [\\/]* | ?:[\\/]*) 23486 ac_cv_path_XATTR="$XATTR" # Let the user override the test with a path. 23487 ;; 23488 *) 23489 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 23490 for as_dir in $PATH 23491 do 23492 IFS=$as_save_IFS 23493 test -z "$as_dir" && as_dir=. 23494 for ac_exec_ext in '' $ac_executable_extensions; do 23495 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 23496 ac_cv_path_XATTR="$as_dir/$ac_word$ac_exec_ext" 23497 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 23498 break 2 23499 fi 23500 done 23501 done 23502 IFS=$as_save_IFS 23503 23504 ;; 23505 esac 23506 fi 23507 XATTR=$ac_cv_path_XATTR 23508 if test -n "$XATTR"; then 23509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XATTR" >&5 23510 $as_echo "$XATTR" >&6; } 23511 else 23512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 23513 $as_echo "no" >&6; } 23514 fi 23515 23516 23517 test -n "$XATTR" && break 23518 done 23519 23520 else 23521 # If it succeeded, then it was overridden by the user. We will use it 23522 # for the tool. 23523 23524 # First remove it from the list of overridden variables, so we can test 23525 # for unknown variables in the end. 23526 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 23527 23528 # Check if we try to supply an empty value 23529 if test "x$XATTR" = x; then 23530 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool XATTR= (no value)" >&5 23531 $as_echo "$as_me: Setting user supplied tool XATTR= (no value)" >&6;} 23532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XATTR" >&5 23533 $as_echo_n "checking for XATTR... " >&6; } 23534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 23535 $as_echo "disabled" >&6; } 23536 else 23537 # Check if the provided tool contains a complete path. 23538 tool_specified="$XATTR" 23539 tool_basename="${tool_specified##*/}" 23540 if test "x$tool_basename" = "x$tool_specified"; then 23541 # A command without a complete path is provided, search $PATH. 23542 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool XATTR=$tool_basename" >&5 23543 $as_echo "$as_me: Will search for user supplied tool XATTR=$tool_basename" >&6;} 23544 # Extract the first word of "$tool_basename", so it can be a program name with args. 23545 set dummy $tool_basename; ac_word=$2 23546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 23547 $as_echo_n "checking for $ac_word... " >&6; } 23548 if ${ac_cv_path_XATTR+:} false; then : 23549 $as_echo_n "(cached) " >&6 23550 else 23551 case $XATTR in 23552 [\\/]* | ?:[\\/]*) 23553 ac_cv_path_XATTR="$XATTR" # Let the user override the test with a path. 23554 ;; 23555 *) 23556 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 23557 for as_dir in $PATH 23558 do 23559 IFS=$as_save_IFS 23560 test -z "$as_dir" && as_dir=. 23561 for ac_exec_ext in '' $ac_executable_extensions; do 23562 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 23563 ac_cv_path_XATTR="$as_dir/$ac_word$ac_exec_ext" 23564 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 23565 break 2 23566 fi 23567 done 23568 done 23569 IFS=$as_save_IFS 23570 23571 ;; 23572 esac 23573 fi 23574 XATTR=$ac_cv_path_XATTR 23575 if test -n "$XATTR"; then 23576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XATTR" >&5 23577 $as_echo "$XATTR" >&6; } 23578 else 23579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 23580 $as_echo "no" >&6; } 23581 fi 23582 23583 23584 if test "x$XATTR" = x; then 23585 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 23586 fi 23587 else 23588 # Otherwise we believe it is a complete path. Use it as it is. 23589 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool XATTR=$tool_specified" >&5 23590 $as_echo "$as_me: Will use user supplied tool XATTR=$tool_specified" >&6;} 23591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XATTR" >&5 23592 $as_echo_n "checking for XATTR... " >&6; } 23593 if test ! -x "$tool_specified"; then 23594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 23595 $as_echo "not found" >&6; } 23596 as_fn_error $? "User supplied tool XATTR=$tool_specified does not exist or is not executable" "$LINENO" 5 23597 fi 23598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 23599 $as_echo "$tool_specified" >&6; } 23600 fi 23601 fi 23602 fi 23603 23604 fi 23605 23606 23607 23608 if test "x$XATTR" = x; then 23609 as_fn_error $? "Could not find required tool for XATTR" "$LINENO" 5 23610 fi 23611 23612 23613 23614 23615 # Publish this variable in the help. 23616 23617 23618 if [ -z "${CODESIGN+x}" ]; then 23619 # The variable is not set by user, try to locate tool using the code snippet 23620 for ac_prog in codesign 23621 do 23622 # Extract the first word of "$ac_prog", so it can be a program name with args. 23623 set dummy $ac_prog; ac_word=$2 23624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 23625 $as_echo_n "checking for $ac_word... " >&6; } 23626 if ${ac_cv_path_CODESIGN+:} false; then : 23627 $as_echo_n "(cached) " >&6 23628 else 23629 case $CODESIGN in 23630 [\\/]* | ?:[\\/]*) 23631 ac_cv_path_CODESIGN="$CODESIGN" # Let the user override the test with a path. 23632 ;; 23633 *) 23634 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 23635 for as_dir in $PATH 23636 do 23637 IFS=$as_save_IFS 23638 test -z "$as_dir" && as_dir=. 23639 for ac_exec_ext in '' $ac_executable_extensions; do 23640 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 23641 ac_cv_path_CODESIGN="$as_dir/$ac_word$ac_exec_ext" 23642 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 23643 break 2 23644 fi 23645 done 23646 done 23647 IFS=$as_save_IFS 23648 23649 ;; 23650 esac 23651 fi 23652 CODESIGN=$ac_cv_path_CODESIGN 23653 if test -n "$CODESIGN"; then 23654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CODESIGN" >&5 23655 $as_echo "$CODESIGN" >&6; } 23656 else 23657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 23658 $as_echo "no" >&6; } 23659 fi 23660 23661 23662 test -n "$CODESIGN" && break 23663 done 23664 23665 else 23666 # The variable is set, but is it from the command line or the environment? 23667 23668 # Try to remove the string !CODESIGN! from our list. 23669 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CODESIGN!/} 23670 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 23671 # If it failed, the variable was not from the command line. Ignore it, 23672 # but warn the user (except for BASH, which is always set by the calling BASH). 23673 if test "xCODESIGN" != xBASH; then 23674 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CODESIGN from the environment. Use command line variables instead." >&5 23675 $as_echo "$as_me: WARNING: Ignoring value of CODESIGN from the environment. Use command line variables instead." >&2;} 23676 fi 23677 # Try to locate tool using the code snippet 23678 for ac_prog in codesign 23679 do 23680 # Extract the first word of "$ac_prog", so it can be a program name with args. 23681 set dummy $ac_prog; ac_word=$2 23682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 23683 $as_echo_n "checking for $ac_word... " >&6; } 23684 if ${ac_cv_path_CODESIGN+:} false; then : 23685 $as_echo_n "(cached) " >&6 23686 else 23687 case $CODESIGN in 23688 [\\/]* | ?:[\\/]*) 23689 ac_cv_path_CODESIGN="$CODESIGN" # Let the user override the test with a path. 23690 ;; 23691 *) 23692 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 23693 for as_dir in $PATH 23694 do 23695 IFS=$as_save_IFS 23696 test -z "$as_dir" && as_dir=. 23697 for ac_exec_ext in '' $ac_executable_extensions; do 23698 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 23699 ac_cv_path_CODESIGN="$as_dir/$ac_word$ac_exec_ext" 23700 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 23701 break 2 23702 fi 23703 done 23704 done 23705 IFS=$as_save_IFS 23706 23707 ;; 23708 esac 23709 fi 23710 CODESIGN=$ac_cv_path_CODESIGN 23711 if test -n "$CODESIGN"; then 23712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CODESIGN" >&5 23713 $as_echo "$CODESIGN" >&6; } 23714 else 23715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 23716 $as_echo "no" >&6; } 23717 fi 23718 23719 23720 test -n "$CODESIGN" && break 23721 done 23722 23723 else 23724 # If it succeeded, then it was overridden by the user. We will use it 23725 # for the tool. 23726 23727 # First remove it from the list of overridden variables, so we can test 23728 # for unknown variables in the end. 23729 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 23730 23731 # Check if we try to supply an empty value 23732 if test "x$CODESIGN" = x; then 23733 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool CODESIGN= (no value)" >&5 23734 $as_echo "$as_me: Setting user supplied tool CODESIGN= (no value)" >&6;} 23735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CODESIGN" >&5 23736 $as_echo_n "checking for CODESIGN... " >&6; } 23737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 23738 $as_echo "disabled" >&6; } 23739 else 23740 # Check if the provided tool contains a complete path. 23741 tool_specified="$CODESIGN" 23742 tool_basename="${tool_specified##*/}" 23743 if test "x$tool_basename" = "x$tool_specified"; then 23744 # A command without a complete path is provided, search $PATH. 23745 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CODESIGN=$tool_basename" >&5 23746 $as_echo "$as_me: Will search for user supplied tool CODESIGN=$tool_basename" >&6;} 23747 # Extract the first word of "$tool_basename", so it can be a program name with args. 23748 set dummy $tool_basename; ac_word=$2 23749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 23750 $as_echo_n "checking for $ac_word... " >&6; } 23751 if ${ac_cv_path_CODESIGN+:} false; then : 23752 $as_echo_n "(cached) " >&6 23753 else 23754 case $CODESIGN in 23755 [\\/]* | ?:[\\/]*) 23756 ac_cv_path_CODESIGN="$CODESIGN" # Let the user override the test with a path. 23757 ;; 23758 *) 23759 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 23760 for as_dir in $PATH 23761 do 23762 IFS=$as_save_IFS 23763 test -z "$as_dir" && as_dir=. 23764 for ac_exec_ext in '' $ac_executable_extensions; do 23765 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 23766 ac_cv_path_CODESIGN="$as_dir/$ac_word$ac_exec_ext" 23767 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 23768 break 2 23769 fi 23770 done 23771 done 23772 IFS=$as_save_IFS 23773 23774 ;; 23775 esac 23776 fi 23777 CODESIGN=$ac_cv_path_CODESIGN 23778 if test -n "$CODESIGN"; then 23779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CODESIGN" >&5 23780 $as_echo "$CODESIGN" >&6; } 23781 else 23782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 23783 $as_echo "no" >&6; } 23784 fi 23785 23786 23787 if test "x$CODESIGN" = x; then 23788 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 23789 fi 23790 else 23791 # Otherwise we believe it is a complete path. Use it as it is. 23792 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CODESIGN=$tool_specified" >&5 23793 $as_echo "$as_me: Will use user supplied tool CODESIGN=$tool_specified" >&6;} 23794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CODESIGN" >&5 23795 $as_echo_n "checking for CODESIGN... " >&6; } 23796 if test ! -x "$tool_specified"; then 23797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 23798 $as_echo "not found" >&6; } 23799 as_fn_error $? "User supplied tool CODESIGN=$tool_specified does not exist or is not executable" "$LINENO" 5 23800 fi 23801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 23802 $as_echo "$tool_specified" >&6; } 23803 fi 23804 fi 23805 fi 23806 23807 fi 23808 23809 23810 if test "x$CODESIGN" != "x"; then 23811 # Verify that the openjdk_codesign certificate is present 23812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if openjdk_codesign certificate is present" >&5 23813 $as_echo_n "checking if openjdk_codesign certificate is present... " >&6; } 23814 $RM codesign-testfile 23815 $TOUCH codesign-testfile 23816 $CODESIGN -s openjdk_codesign codesign-testfile 2>&5 >&5 || CODESIGN= 23817 $RM codesign-testfile 23818 if test "x$CODESIGN" = x; then 23819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 23820 $as_echo "no" >&6; } 23821 else 23822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 23823 $as_echo "yes" >&6; } 23824 fi 23825 fi 23826 23827 23828 23829 # Publish this variable in the help. 23830 23831 23832 if [ -z "${SETFILE+x}" ]; then 23833 # The variable is not set by user, try to locate tool using the code snippet 23834 for ac_prog in SetFile 23835 do 23836 # Extract the first word of "$ac_prog", so it can be a program name with args. 23837 set dummy $ac_prog; ac_word=$2 23838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 23839 $as_echo_n "checking for $ac_word... " >&6; } 23840 if ${ac_cv_path_SETFILE+:} false; then : 23841 $as_echo_n "(cached) " >&6 23842 else 23843 case $SETFILE in 23844 [\\/]* | ?:[\\/]*) 23845 ac_cv_path_SETFILE="$SETFILE" # Let the user override the test with a path. 23846 ;; 23847 *) 23848 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 23849 for as_dir in $PATH 23850 do 23851 IFS=$as_save_IFS 23852 test -z "$as_dir" && as_dir=. 23853 for ac_exec_ext in '' $ac_executable_extensions; do 23854 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 23855 ac_cv_path_SETFILE="$as_dir/$ac_word$ac_exec_ext" 23856 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 23857 break 2 23858 fi 23859 done 23860 done 23861 IFS=$as_save_IFS 23862 23863 ;; 23864 esac 23865 fi 23866 SETFILE=$ac_cv_path_SETFILE 23867 if test -n "$SETFILE"; then 23868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SETFILE" >&5 23869 $as_echo "$SETFILE" >&6; } 23870 else 23871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 23872 $as_echo "no" >&6; } 23873 fi 23874 23875 23876 test -n "$SETFILE" && break 23877 done 23878 23879 else 23880 # The variable is set, but is it from the command line or the environment? 23881 23882 # Try to remove the string !SETFILE! from our list. 23883 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!SETFILE!/} 23884 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 23885 # If it failed, the variable was not from the command line. Ignore it, 23886 # but warn the user (except for BASH, which is always set by the calling BASH). 23887 if test "xSETFILE" != xBASH; then 23888 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of SETFILE from the environment. Use command line variables instead." >&5 23889 $as_echo "$as_me: WARNING: Ignoring value of SETFILE from the environment. Use command line variables instead." >&2;} 23890 fi 23891 # Try to locate tool using the code snippet 23892 for ac_prog in SetFile 23893 do 23894 # Extract the first word of "$ac_prog", so it can be a program name with args. 23895 set dummy $ac_prog; ac_word=$2 23896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 23897 $as_echo_n "checking for $ac_word... " >&6; } 23898 if ${ac_cv_path_SETFILE+:} false; then : 23899 $as_echo_n "(cached) " >&6 23900 else 23901 case $SETFILE in 23902 [\\/]* | ?:[\\/]*) 23903 ac_cv_path_SETFILE="$SETFILE" # Let the user override the test with a path. 23904 ;; 23905 *) 23906 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 23907 for as_dir in $PATH 23908 do 23909 IFS=$as_save_IFS 23910 test -z "$as_dir" && as_dir=. 23911 for ac_exec_ext in '' $ac_executable_extensions; do 23912 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 23913 ac_cv_path_SETFILE="$as_dir/$ac_word$ac_exec_ext" 23914 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 23915 break 2 23916 fi 23917 done 23918 done 23919 IFS=$as_save_IFS 23920 23921 ;; 23922 esac 23923 fi 23924 SETFILE=$ac_cv_path_SETFILE 23925 if test -n "$SETFILE"; then 23926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SETFILE" >&5 23927 $as_echo "$SETFILE" >&6; } 23928 else 23929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 23930 $as_echo "no" >&6; } 23931 fi 23932 23933 23934 test -n "$SETFILE" && break 23935 done 23936 23937 else 23938 # If it succeeded, then it was overridden by the user. We will use it 23939 # for the tool. 23940 23941 # First remove it from the list of overridden variables, so we can test 23942 # for unknown variables in the end. 23943 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 23944 23945 # Check if we try to supply an empty value 23946 if test "x$SETFILE" = x; then 23947 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool SETFILE= (no value)" >&5 23948 $as_echo "$as_me: Setting user supplied tool SETFILE= (no value)" >&6;} 23949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SETFILE" >&5 23950 $as_echo_n "checking for SETFILE... " >&6; } 23951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 23952 $as_echo "disabled" >&6; } 23953 else 23954 # Check if the provided tool contains a complete path. 23955 tool_specified="$SETFILE" 23956 tool_basename="${tool_specified##*/}" 23957 if test "x$tool_basename" = "x$tool_specified"; then 23958 # A command without a complete path is provided, search $PATH. 23959 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool SETFILE=$tool_basename" >&5 23960 $as_echo "$as_me: Will search for user supplied tool SETFILE=$tool_basename" >&6;} 23961 # Extract the first word of "$tool_basename", so it can be a program name with args. 23962 set dummy $tool_basename; ac_word=$2 23963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 23964 $as_echo_n "checking for $ac_word... " >&6; } 23965 if ${ac_cv_path_SETFILE+:} false; then : 23966 $as_echo_n "(cached) " >&6 23967 else 23968 case $SETFILE in 23969 [\\/]* | ?:[\\/]*) 23970 ac_cv_path_SETFILE="$SETFILE" # Let the user override the test with a path. 23971 ;; 23972 *) 23973 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 23974 for as_dir in $PATH 23975 do 23976 IFS=$as_save_IFS 23977 test -z "$as_dir" && as_dir=. 23978 for ac_exec_ext in '' $ac_executable_extensions; do 23979 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 23980 ac_cv_path_SETFILE="$as_dir/$ac_word$ac_exec_ext" 23981 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 23982 break 2 23983 fi 23984 done 23985 done 23986 IFS=$as_save_IFS 23987 23988 ;; 23989 esac 23990 fi 23991 SETFILE=$ac_cv_path_SETFILE 23992 if test -n "$SETFILE"; then 23993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SETFILE" >&5 23994 $as_echo "$SETFILE" >&6; } 23995 else 23996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 23997 $as_echo "no" >&6; } 23998 fi 23999 24000 24001 if test "x$SETFILE" = x; then 24002 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 24003 fi 24004 else 24005 # Otherwise we believe it is a complete path. Use it as it is. 24006 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool SETFILE=$tool_specified" >&5 24007 $as_echo "$as_me: Will use user supplied tool SETFILE=$tool_specified" >&6;} 24008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SETFILE" >&5 24009 $as_echo_n "checking for SETFILE... " >&6; } 24010 if test ! -x "$tool_specified"; then 24011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 24012 $as_echo "not found" >&6; } 24013 as_fn_error $? "User supplied tool SETFILE=$tool_specified does not exist or is not executable" "$LINENO" 5 24014 fi 24015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 24016 $as_echo "$tool_specified" >&6; } 24017 fi 24018 fi 24019 fi 24020 24021 fi 24022 24023 24024 24025 if test "x$SETFILE" = x; then 24026 as_fn_error $? "Could not find required tool for SETFILE" "$LINENO" 5 24027 fi 24028 24029 24030 fi 24031 24032 24033 # Test if bash supports pipefail. 24034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if bash supports pipefail" >&5 24035 $as_echo_n "checking if bash supports pipefail... " >&6; } 24036 if ${BASH} -c 'set -o pipefail'; then 24037 BASH_ARGS="$BASH_ARGS -o pipefail" 24038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 24039 $as_echo "yes" >&6; } 24040 else 24041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 24042 $as_echo "no" >&6; } 24043 fi 24044 24045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if bash supports errexit (-e)" >&5 24046 $as_echo_n "checking if bash supports errexit (-e)... " >&6; } 24047 if ${BASH} -e -c 'true'; then 24048 BASH_ARGS="$BASH_ARGS -e" 24049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 24050 $as_echo "yes" >&6; } 24051 else 24052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 24053 $as_echo "no" >&6; } 24054 fi 24055 24056 24057 24058 24059 # Check if pkg-config is available. 24060 24061 24062 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 24063 if test -n "$ac_tool_prefix"; then 24064 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 24065 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 24066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 24067 $as_echo_n "checking for $ac_word... " >&6; } 24068 if ${ac_cv_path_PKG_CONFIG+:} false; then : 24069 $as_echo_n "(cached) " >&6 24070 else 24071 case $PKG_CONFIG in 24072 [\\/]* | ?:[\\/]*) 24073 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 24074 ;; 24075 *) 24076 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 24077 for as_dir in $PATH 24078 do 24079 IFS=$as_save_IFS 24080 test -z "$as_dir" && as_dir=. 24081 for ac_exec_ext in '' $ac_executable_extensions; do 24082 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 24083 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 24084 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 24085 break 2 24086 fi 24087 done 24088 done 24089 IFS=$as_save_IFS 24090 24091 ;; 24092 esac 24093 fi 24094 PKG_CONFIG=$ac_cv_path_PKG_CONFIG 24095 if test -n "$PKG_CONFIG"; then 24096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 24097 $as_echo "$PKG_CONFIG" >&6; } 24098 else 24099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 24100 $as_echo "no" >&6; } 24101 fi 24102 24103 24104 fi 24105 if test -z "$ac_cv_path_PKG_CONFIG"; then 24106 ac_pt_PKG_CONFIG=$PKG_CONFIG 24107 # Extract the first word of "pkg-config", so it can be a program name with args. 24108 set dummy pkg-config; ac_word=$2 24109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 24110 $as_echo_n "checking for $ac_word... " >&6; } 24111 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : 24112 $as_echo_n "(cached) " >&6 24113 else 24114 case $ac_pt_PKG_CONFIG in 24115 [\\/]* | ?:[\\/]*) 24116 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 24117 ;; 24118 *) 24119 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 24120 for as_dir in $PATH 24121 do 24122 IFS=$as_save_IFS 24123 test -z "$as_dir" && as_dir=. 24124 for ac_exec_ext in '' $ac_executable_extensions; do 24125 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 24126 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 24127 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 24128 break 2 24129 fi 24130 done 24131 done 24132 IFS=$as_save_IFS 24133 24134 ;; 24135 esac 24136 fi 24137 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 24138 if test -n "$ac_pt_PKG_CONFIG"; then 24139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 24140 $as_echo "$ac_pt_PKG_CONFIG" >&6; } 24141 else 24142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 24143 $as_echo "no" >&6; } 24144 fi 24145 24146 if test "x$ac_pt_PKG_CONFIG" = x; then 24147 PKG_CONFIG="" 24148 else 24149 case $cross_compiling:$ac_tool_warned in 24150 yes:) 24151 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 24152 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 24153 ac_tool_warned=yes ;; 24154 esac 24155 PKG_CONFIG=$ac_pt_PKG_CONFIG 24156 fi 24157 else 24158 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 24159 fi 24160 24161 fi 24162 if test -n "$PKG_CONFIG"; then 24163 _pkg_min_version=0.9.0 24164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 24165 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } 24166 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 24167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 24168 $as_echo "yes" >&6; } 24169 else 24170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 24171 $as_echo "no" >&6; } 24172 PKG_CONFIG="" 24173 fi 24174 24175 fi 24176 24177 # After basic tools have been setup, we can check build os specific details. 24178 24179 ############################################################################### 24180 24181 # Note that this is the build platform OS version! 24182 24183 OS_VERSION="`uname -r | ${SED} 's!\.! !g' | ${SED} 's!-! !g'`" 24184 OS_VERSION_MAJOR="`${ECHO} ${OS_VERSION} | ${CUT} -f 1 -d ' '`" 24185 OS_VERSION_MINOR="`${ECHO} ${OS_VERSION} | ${CUT} -f 2 -d ' '`" 24186 OS_VERSION_MICRO="`${ECHO} ${OS_VERSION} | ${CUT} -f 3 -d ' '`" 24187 24188 24189 24190 24191 24192 # Misc basic settings 24193 24194 24195 # Check whether --with-default-make-target was given. 24196 if test "${with_default_make_target+set}" = set; then : 24197 withval=$with_default_make_target; 24198 fi 24199 24200 if test "x$with_default_make_target" = "x" \ 24201 || test "x$with_default_make_target" = "xyes"; then 24202 DEFAULT_MAKE_TARGET="exploded-image" 24203 elif test "x$with_default_make_target" = "xno"; then 24204 as_fn_error $? "--without-default-make-target is not a valid option" "$LINENO" 5 24205 else 24206 DEFAULT_MAKE_TARGET="$with_default_make_target" 24207 fi 24208 24209 24210 24211 24212 ############################################################################### 24213 # 24214 # Determine OpenJDK variants, options and version numbers. 24215 # 24216 ############################################################################### 24217 24218 # We need build & target for this. 24219 24220 # Should we build a JDK/JVM with headful support (ie a graphical ui)? 24221 # We always build headless support. 24222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking headful support" >&5 24223 $as_echo_n "checking headful support... " >&6; } 24224 # Check whether --enable-headful was given. 24225 if test "${enable_headful+set}" = set; then : 24226 enableval=$enable_headful; SUPPORT_HEADFUL=${enable_headful} 24227 else 24228 SUPPORT_HEADFUL=yes 24229 fi 24230 24231 24232 SUPPORT_HEADLESS=yes 24233 BUILD_HEADLESS="BUILD_HEADLESS:=true" 24234 24235 if test "x$SUPPORT_HEADFUL" = xyes; then 24236 # We are building both headful and headless. 24237 headful_msg="include support for both headful and headless" 24238 fi 24239 24240 if test "x$SUPPORT_HEADFUL" = xno; then 24241 # Thus we are building headless only. 24242 BUILD_HEADLESS="BUILD_HEADLESS:=true" 24243 headful_msg="headless only" 24244 fi 24245 24246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $headful_msg" >&5 24247 $as_echo "$headful_msg" >&6; } 24248 24249 24250 24251 24252 24253 # Choose cacerts source file 24254 24255 # Check whether --with-cacerts-file was given. 24256 if test "${with_cacerts_file+set}" = set; then : 24257 withval=$with_cacerts_file; 24258 fi 24259 24260 if test "x$with_cacerts_file" != x; then 24261 CACERTS_FILE=$with_cacerts_file 24262 fi 24263 24264 24265 # Enable or disable unlimited crypto 24266 # Check whether --enable-unlimited-crypto was given. 24267 if test "${enable_unlimited_crypto+set}" = set; then : 24268 enableval=$enable_unlimited_crypto; 24269 else 24270 enable_unlimited_crypto=no 24271 fi 24272 24273 if test "x$enable_unlimited_crypto" = "xyes"; then 24274 UNLIMITED_CRYPTO=true 24275 else 24276 UNLIMITED_CRYPTO=false 24277 fi 24278 24279 24280 # Should we build the serviceability agent (SA)? 24281 INCLUDE_SA=true 24282 if [[ " $JVM_VARIANTS " =~ " zero " ]] || [[ " $JVM_VARIANTS " =~ " zeroshark " ]] ; then 24283 INCLUDE_SA=false 24284 fi 24285 if test "x$OPENJDK_TARGET_OS" = xaix ; then 24286 INCLUDE_SA=false 24287 fi 24288 24289 24290 # Compress jars 24291 COMPRESS_JARS=false 24292 24293 24294 24295 # Setup default copyright year. Mostly overridden when building close to a new year. 24296 24297 # Check whether --with-copyright-year was given. 24298 if test "${with_copyright_year+set}" = set; then : 24299 withval=$with_copyright_year; 24300 fi 24301 24302 if test "x$with_copyright_year" = xyes; then 24303 as_fn_error $? "Copyright year must have a value" "$LINENO" 5 24304 elif test "x$with_copyright_year" != x; then 24305 COPYRIGHT_YEAR="$with_copyright_year" 24306 else 24307 COPYRIGHT_YEAR=`$DATE +'%Y'` 24308 fi 24309 24310 24311 24312 # Check whether --enable-keep-packaged-modules was given. 24313 if test "${enable_keep_packaged_modules+set}" = set; then : 24314 enableval=$enable_keep_packaged_modules; 24315 fi 24316 24317 24318 if test "x$enable_keep_packaged_modules" = "xyes"; then 24319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if packaged modules are kept" >&5 24320 $as_echo_n "checking if packaged modules are kept... " >&6; } 24321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 24322 $as_echo "yes" >&6; } 24323 JLINK_KEEP_PACKAGED_MODULES=true 24324 elif test "x$enable_keep_packaged_modules" = "xno"; then 24325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if packaged modules are kept" >&5 24326 $as_echo_n "checking if packaged modules are kept... " >&6; } 24327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 24328 $as_echo "no" >&6; } 24329 JLINK_KEEP_PACKAGED_MODULES=false 24330 elif test "x$enable_keep_packaged_modules" = "x"; then 24331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (default)" >&5 24332 $as_echo "yes (default)" >&6; } 24333 JLINK_KEEP_PACKAGED_MODULES=true 24334 else 24335 as_fn_error $? "--enable-keep-packaged-modules accepts no argument" "$LINENO" 5 24336 fi 24337 24338 24339 24340 24341 # Warn user that old version arguments are deprecated. 24342 24343 24344 # Check whether --with-milestone was given. 24345 if test "${with_milestone+set}" = set; then : 24346 withval=$with_milestone; { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Option --with-milestone is deprecated and will be ignored." >&5 24347 $as_echo "$as_me: WARNING: Option --with-milestone is deprecated and will be ignored." >&2;} 24348 fi 24349 24350 24351 24352 24353 # Check whether --with-update-version was given. 24354 if test "${with_update_version+set}" = set; then : 24355 withval=$with_update_version; { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Option --with-update-version is deprecated and will be ignored." >&5 24356 $as_echo "$as_me: WARNING: Option --with-update-version is deprecated and will be ignored." >&2;} 24357 fi 24358 24359 24360 24361 24362 # Check whether --with-user-release-suffix was given. 24363 if test "${with_user_release_suffix+set}" = set; then : 24364 withval=$with_user_release_suffix; { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Option --with-user-release-suffix is deprecated and will be ignored." >&5 24365 $as_echo "$as_me: WARNING: Option --with-user-release-suffix is deprecated and will be ignored." >&2;} 24366 fi 24367 24368 24369 24370 24371 # Check whether --with-build-number was given. 24372 if test "${with_build_number+set}" = set; then : 24373 withval=$with_build_number; { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Option --with-build-number is deprecated and will be ignored." >&5 24374 $as_echo "$as_me: WARNING: Option --with-build-number is deprecated and will be ignored." >&2;} 24375 fi 24376 24377 24378 24379 # Source the version numbers file 24380 . $AUTOCONF_DIR/version-numbers 24381 24382 # Some non-version number information is set in that file 24383 24384 24385 24386 24387 24388 24389 24390 24391 24392 # Override version from arguments 24393 24394 # If --with-version-string is set, process it first. It is possible to 24395 # override parts with more specific flags, since these are processed later. 24396 24397 # Check whether --with-version-string was given. 24398 if test "${with_version_string+set}" = set; then : 24399 withval=$with_version_string; 24400 fi 24401 24402 if test "x$with_version_string" = xyes; then 24403 as_fn_error $? "--with-version-string must have a value" "$LINENO" 5 24404 elif test "x$with_version_string" != x; then 24405 # Additional [] needed to keep m4 from mangling shell constructs. 24406 if [[ $with_version_string =~ ^([0-9]+)(\.([0-9]+))?(\.([0-9]+))?(\.([0-9]+))?(-([a-zA-Z]+))?((\+)([0-9]+)?(-([-a-zA-Z0-9.]+))?)?$ ]] ; then 24407 VERSION_MAJOR=${BASH_REMATCH[1]} 24408 VERSION_MINOR=${BASH_REMATCH[3]} 24409 VERSION_SECURITY=${BASH_REMATCH[5]} 24410 VERSION_PATCH=${BASH_REMATCH[7]} 24411 VERSION_PRE=${BASH_REMATCH[9]} 24412 version_plus_separator=${BASH_REMATCH[11]} 24413 VERSION_BUILD=${BASH_REMATCH[12]} 24414 VERSION_OPT=${BASH_REMATCH[14]} 24415 # Unspecified numerical fields are interpreted as 0. 24416 if test "x$VERSION_MINOR" = x; then 24417 VERSION_MINOR=0 24418 fi 24419 if test "x$VERSION_SECURITY" = x; then 24420 VERSION_SECURITY=0 24421 fi 24422 if test "x$VERSION_PATCH" = x; then 24423 VERSION_PATCH=0 24424 fi 24425 if test "x$version_plus_separator" != x \ 24426 && test "x$VERSION_BUILD$VERSION_OPT" = x; then 24427 as_fn_error $? "Version string contains + but both 'BUILD' and 'OPT' are missing" "$LINENO" 5 24428 fi 24429 # Stop the version part process from setting default values. 24430 # We still allow them to explicitely override though. 24431 NO_DEFAULT_VERSION_PARTS=true 24432 else 24433 as_fn_error $? "--with-version-string fails to parse as a valid version string: $with_version_string" "$LINENO" 5 24434 fi 24435 fi 24436 24437 24438 # Check whether --with-version-pre was given. 24439 if test "${with_version_pre+set}" = set; then : 24440 withval=$with_version_pre; with_version_pre_present=true 24441 else 24442 with_version_pre_present=false 24443 fi 24444 24445 24446 if test "x$with_version_pre_present" = xtrue; then 24447 if test "x$with_version_pre" = xyes; then 24448 as_fn_error $? "--with-version-pre must have a value" "$LINENO" 5 24449 elif test "x$with_version_pre" = xno; then 24450 # Interpret --without-* as empty string instead of the literal "no" 24451 VERSION_PRE= 24452 else 24453 # Only [a-zA-Z] is allowed in the VERSION_PRE. Outer [ ] to quote m4. 24454 VERSION_PRE=`$ECHO "$with_version_pre" | $TR -c -d '[a-z][A-Z]'` 24455 if test "x$VERSION_PRE" != "x$with_version_pre"; then 24456 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --with-version-pre value has been sanitized from '$with_version_pre' to '$VERSION_PRE'" >&5 24457 $as_echo "$as_me: WARNING: --with-version-pre value has been sanitized from '$with_version_pre' to '$VERSION_PRE'" >&2;} 24458 fi 24459 fi 24460 else 24461 if test "x$NO_DEFAULT_VERSION_PARTS" != xtrue; then 24462 # Default is to use "internal" as pre 24463 VERSION_PRE="internal" 24464 fi 24465 fi 24466 24467 24468 # Check whether --with-version-opt was given. 24469 if test "${with_version_opt+set}" = set; then : 24470 withval=$with_version_opt; with_version_opt_present=true 24471 else 24472 with_version_opt_present=false 24473 fi 24474 24475 24476 if test "x$with_version_opt_present" = xtrue; then 24477 if test "x$with_version_opt" = xyes; then 24478 as_fn_error $? "--with-version-opt must have a value" "$LINENO" 5 24479 elif test "x$with_version_opt" = xno; then 24480 # Interpret --without-* as empty string instead of the literal "no" 24481 VERSION_OPT= 24482 else 24483 # Only [-.a-zA-Z0-9] is allowed in the VERSION_OPT. Outer [ ] to quote m4. 24484 VERSION_OPT=`$ECHO "$with_version_opt" | $TR -c -d '[a-z][A-Z][0-9].-'` 24485 if test "x$VERSION_OPT" != "x$with_version_opt"; then 24486 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --with-version-opt value has been sanitized from '$with_version_opt' to '$VERSION_OPT'" >&5 24487 $as_echo "$as_me: WARNING: --with-version-opt value has been sanitized from '$with_version_opt' to '$VERSION_OPT'" >&2;} 24488 fi 24489 fi 24490 else 24491 if test "x$NO_DEFAULT_VERSION_PARTS" != xtrue; then 24492 # Default is to calculate a string like this <timestamp>.<username>.<base dir name> 24493 timestamp=`$DATE '+%Y-%m-%d-%H%M%S'` 24494 # Outer [ ] to quote m4. 24495 basedirname=`$BASENAME "$TOPDIR" | $TR -d -c '[a-z][A-Z][0-9].-'` 24496 VERSION_OPT="$timestamp.$USERNAME.$basedirname" 24497 fi 24498 fi 24499 24500 24501 # Check whether --with-version-build was given. 24502 if test "${with_version_build+set}" = set; then : 24503 withval=$with_version_build; with_version_build_present=true 24504 else 24505 with_version_build_present=false 24506 fi 24507 24508 24509 if test "x$with_version_build_present" = xtrue; then 24510 if test "x$with_version_build" = xyes; then 24511 as_fn_error $? "--with-version-build must have a value" "$LINENO" 5 24512 elif test "x$with_version_build" = xno; then 24513 # Interpret --without-* as empty string instead of the literal "no" 24514 VERSION_BUILD= 24515 elif test "x$with_version_build" = x; then 24516 VERSION_BUILD= 24517 else 24518 24519 # Additional [] needed to keep m4 from mangling shell constructs. 24520 if ! [[ "$with_version_build" =~ ^0*([1-9][0-9]*)|(0)$ ]] ; then 24521 as_fn_error $? "\"$with_version_build\" is not a valid numerical value for VERSION_BUILD" "$LINENO" 5 24522 fi 24523 # Extract the version number without leading zeros. 24524 cleaned_value=${BASH_REMATCH[1]} 24525 if test "x$cleaned_value" = x; then 24526 # Special case for zero 24527 cleaned_value=${BASH_REMATCH[2]} 24528 fi 24529 24530 if test $cleaned_value -gt 255; then 24531 as_fn_error $? "VERSION_BUILD is given as $with_version_build. This is greater than 255 which is not allowed." "$LINENO" 5 24532 fi 24533 if test "x$cleaned_value" != "x$with_version_build"; then 24534 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Value for VERSION_BUILD has been sanitized from '$with_version_build' to '$cleaned_value'" >&5 24535 $as_echo "$as_me: WARNING: Value for VERSION_BUILD has been sanitized from '$with_version_build' to '$cleaned_value'" >&2;} 24536 fi 24537 VERSION_BUILD=$cleaned_value 24538 24539 fi 24540 else 24541 if test "x$NO_DEFAULT_VERSION_PARTS" != xtrue; then 24542 # Default is to not have a build number. 24543 VERSION_BUILD="" 24544 # FIXME: Until all code can cope with an empty VERSION_BUILD, set it to 0. 24545 VERSION_BUILD=0 24546 fi 24547 fi 24548 24549 24550 # Check whether --with-version-major was given. 24551 if test "${with_version_major+set}" = set; then : 24552 withval=$with_version_major; with_version_major_present=true 24553 else 24554 with_version_major_present=false 24555 fi 24556 24557 24558 if test "x$with_version_major_present" = xtrue; then 24559 if test "x$with_version_major" = xyes; then 24560 as_fn_error $? "--with-version-major must have a value" "$LINENO" 5 24561 else 24562 24563 # Additional [] needed to keep m4 from mangling shell constructs. 24564 if ! [[ "$with_version_major" =~ ^0*([1-9][0-9]*)|(0)$ ]] ; then 24565 as_fn_error $? "\"$with_version_major\" is not a valid numerical value for VERSION_MAJOR" "$LINENO" 5 24566 fi 24567 # Extract the version number without leading zeros. 24568 cleaned_value=${BASH_REMATCH[1]} 24569 if test "x$cleaned_value" = x; then 24570 # Special case for zero 24571 cleaned_value=${BASH_REMATCH[2]} 24572 fi 24573 24574 if test $cleaned_value -gt 255; then 24575 as_fn_error $? "VERSION_MAJOR is given as $with_version_major. This is greater than 255 which is not allowed." "$LINENO" 5 24576 fi 24577 if test "x$cleaned_value" != "x$with_version_major"; then 24578 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Value for VERSION_MAJOR has been sanitized from '$with_version_major' to '$cleaned_value'" >&5 24579 $as_echo "$as_me: WARNING: Value for VERSION_MAJOR has been sanitized from '$with_version_major' to '$cleaned_value'" >&2;} 24580 fi 24581 VERSION_MAJOR=$cleaned_value 24582 24583 fi 24584 else 24585 if test "x$NO_DEFAULT_VERSION_PARTS" != xtrue; then 24586 # Default is to get value from version-numbers 24587 VERSION_MAJOR="$DEFAULT_VERSION_MAJOR" 24588 fi 24589 fi 24590 24591 24592 # Check whether --with-version-minor was given. 24593 if test "${with_version_minor+set}" = set; then : 24594 withval=$with_version_minor; with_version_minor_present=true 24595 else 24596 with_version_minor_present=false 24597 fi 24598 24599 24600 if test "x$with_version_minor_present" = xtrue; then 24601 if test "x$with_version_minor" = xyes; then 24602 as_fn_error $? "--with-version-minor must have a value" "$LINENO" 5 24603 elif test "x$with_version_minor" = xno; then 24604 # Interpret --without-* as empty string (i.e. 0) instead of the literal "no" 24605 VERSION_MINOR=0 24606 elif test "x$with_version_minor" = x; then 24607 VERSION_MINOR=0 24608 else 24609 24610 # Additional [] needed to keep m4 from mangling shell constructs. 24611 if ! [[ "$with_version_minor" =~ ^0*([1-9][0-9]*)|(0)$ ]] ; then 24612 as_fn_error $? "\"$with_version_minor\" is not a valid numerical value for VERSION_MINOR" "$LINENO" 5 24613 fi 24614 # Extract the version number without leading zeros. 24615 cleaned_value=${BASH_REMATCH[1]} 24616 if test "x$cleaned_value" = x; then 24617 # Special case for zero 24618 cleaned_value=${BASH_REMATCH[2]} 24619 fi 24620 24621 if test $cleaned_value -gt 255; then 24622 as_fn_error $? "VERSION_MINOR is given as $with_version_minor. This is greater than 255 which is not allowed." "$LINENO" 5 24623 fi 24624 if test "x$cleaned_value" != "x$with_version_minor"; then 24625 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Value for VERSION_MINOR has been sanitized from '$with_version_minor' to '$cleaned_value'" >&5 24626 $as_echo "$as_me: WARNING: Value for VERSION_MINOR has been sanitized from '$with_version_minor' to '$cleaned_value'" >&2;} 24627 fi 24628 VERSION_MINOR=$cleaned_value 24629 24630 fi 24631 else 24632 if test "x$NO_DEFAULT_VERSION_PARTS" != xtrue; then 24633 # Default is 0, if unspecified 24634 VERSION_MINOR=0 24635 fi 24636 fi 24637 24638 24639 # Check whether --with-version-security was given. 24640 if test "${with_version_security+set}" = set; then : 24641 withval=$with_version_security; with_version_security_present=true 24642 else 24643 with_version_security_present=false 24644 fi 24645 24646 24647 if test "x$with_version_security_present" = xtrue; then 24648 if test "x$with_version_security" = xyes; then 24649 as_fn_error $? "--with-version-security must have a value" "$LINENO" 5 24650 elif test "x$with_version_security" = xno; then 24651 # Interpret --without-* as empty string (i.e. 0) instead of the literal "no" 24652 VERSION_SECURITY=0 24653 elif test "x$with_version_security" = x; then 24654 VERSION_SECURITY=0 24655 else 24656 24657 # Additional [] needed to keep m4 from mangling shell constructs. 24658 if ! [[ "$with_version_security" =~ ^0*([1-9][0-9]*)|(0)$ ]] ; then 24659 as_fn_error $? "\"$with_version_security\" is not a valid numerical value for VERSION_SECURITY" "$LINENO" 5 24660 fi 24661 # Extract the version number without leading zeros. 24662 cleaned_value=${BASH_REMATCH[1]} 24663 if test "x$cleaned_value" = x; then 24664 # Special case for zero 24665 cleaned_value=${BASH_REMATCH[2]} 24666 fi 24667 24668 if test $cleaned_value -gt 255; then 24669 as_fn_error $? "VERSION_SECURITY is given as $with_version_security. This is greater than 255 which is not allowed." "$LINENO" 5 24670 fi 24671 if test "x$cleaned_value" != "x$with_version_security"; then 24672 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Value for VERSION_SECURITY has been sanitized from '$with_version_security' to '$cleaned_value'" >&5 24673 $as_echo "$as_me: WARNING: Value for VERSION_SECURITY has been sanitized from '$with_version_security' to '$cleaned_value'" >&2;} 24674 fi 24675 VERSION_SECURITY=$cleaned_value 24676 24677 fi 24678 else 24679 if test "x$NO_DEFAULT_VERSION_PARTS" != xtrue; then 24680 # Default is 0, if unspecified 24681 VERSION_SECURITY=0 24682 fi 24683 fi 24684 24685 24686 # Check whether --with-version-patch was given. 24687 if test "${with_version_patch+set}" = set; then : 24688 withval=$with_version_patch; with_version_patch_present=true 24689 else 24690 with_version_patch_present=false 24691 fi 24692 24693 24694 if test "x$with_version_patch_present" = xtrue; then 24695 if test "x$with_version_patch" = xyes; then 24696 as_fn_error $? "--with-version-patch must have a value" "$LINENO" 5 24697 elif test "x$with_version_patch" = xno; then 24698 # Interpret --without-* as empty string (i.e. 0) instead of the literal "no" 24699 VERSION_PATCH=0 24700 elif test "x$with_version_patch" = x; then 24701 VERSION_PATCH=0 24702 else 24703 24704 # Additional [] needed to keep m4 from mangling shell constructs. 24705 if ! [[ "$with_version_patch" =~ ^0*([1-9][0-9]*)|(0)$ ]] ; then 24706 as_fn_error $? "\"$with_version_patch\" is not a valid numerical value for VERSION_PATCH" "$LINENO" 5 24707 fi 24708 # Extract the version number without leading zeros. 24709 cleaned_value=${BASH_REMATCH[1]} 24710 if test "x$cleaned_value" = x; then 24711 # Special case for zero 24712 cleaned_value=${BASH_REMATCH[2]} 24713 fi 24714 24715 if test $cleaned_value -gt 255; then 24716 as_fn_error $? "VERSION_PATCH is given as $with_version_patch. This is greater than 255 which is not allowed." "$LINENO" 5 24717 fi 24718 if test "x$cleaned_value" != "x$with_version_patch"; then 24719 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Value for VERSION_PATCH has been sanitized from '$with_version_patch' to '$cleaned_value'" >&5 24720 $as_echo "$as_me: WARNING: Value for VERSION_PATCH has been sanitized from '$with_version_patch' to '$cleaned_value'" >&2;} 24721 fi 24722 VERSION_PATCH=$cleaned_value 24723 24724 fi 24725 else 24726 if test "x$NO_DEFAULT_VERSION_PARTS" != xtrue; then 24727 # Default is 0, if unspecified 24728 VERSION_PATCH=0 24729 fi 24730 fi 24731 24732 # Calculate derived version properties 24733 24734 # Set VERSION_IS_GA based on if VERSION_PRE has a value 24735 if test "x$VERSION_PRE" = x; then 24736 VERSION_IS_GA=true 24737 else 24738 VERSION_IS_GA=false 24739 fi 24740 24741 # VERSION_NUMBER but always with exactly 4 positions, with 0 for empty positions. 24742 VERSION_NUMBER_FOUR_POSITIONS=$VERSION_MAJOR.$VERSION_MINOR.$VERSION_SECURITY.$VERSION_PATCH 24743 24744 stripped_version_number=$VERSION_NUMBER_FOUR_POSITIONS 24745 # Strip trailing zeroes from stripped_version_number 24746 for i in 1 2 3 ; do stripped_version_number=${stripped_version_number%.0} ; done 24747 VERSION_NUMBER=$stripped_version_number 24748 24749 # The complete version string, with additional build information 24750 if test "x$VERSION_BUILD$VERSION_OPT" = x; then 24751 VERSION_STRING=$VERSION_NUMBER${VERSION_PRE:+-$VERSION_PRE} 24752 else 24753 # If either build or opt is set, we need a + separator 24754 VERSION_STRING=$VERSION_NUMBER${VERSION_PRE:+-$VERSION_PRE}+$VERSION_BUILD${VERSION_OPT:+-$VERSION_OPT} 24755 fi 24756 24757 # The short version string, just VERSION_NUMBER and PRE, if present. 24758 VERSION_SHORT=$VERSION_NUMBER${VERSION_PRE:+-$VERSION_PRE} 24759 24760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for version string" >&5 24761 $as_echo_n "checking for version string... " >&6; } 24762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $VERSION_STRING" >&5 24763 $as_echo "$VERSION_STRING" >&6; } 24764 24765 24766 24767 24768 24769 24770 24771 24772 24773 24774 24775 24776 24777 24778 24779 ############################################################################### 24780 # 24781 # Setup BootJDK, used to bootstrap the build. 24782 # 24783 ############################################################################### 24784 24785 24786 BOOT_JDK_FOUND=no 24787 24788 # Check whether --with-boot-jdk was given. 24789 if test "${with_boot_jdk+set}" = set; then : 24790 withval=$with_boot_jdk; 24791 fi 24792 24793 24794 # We look for the Boot JDK through various means, going from more certain to 24795 # more of a guess-work. After each test, BOOT_JDK_FOUND is set to "yes" if 24796 # we detected something (if so, the path to the jdk is in BOOT_JDK). But we 24797 # must check if this is indeed valid; otherwise we'll continue looking. 24798 24799 # Test: Is bootjdk explicitely set by command line arguments? 24800 24801 if test "x$BOOT_JDK_FOUND" = xno; then 24802 # Now execute the test 24803 24804 if test "x$with_boot_jdk" != x; then 24805 BOOT_JDK=$with_boot_jdk 24806 BOOT_JDK_FOUND=maybe 24807 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using configure arguments" >&5 24808 $as_echo "$as_me: Found potential Boot JDK using configure arguments" >&6;} 24809 fi 24810 24811 24812 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 24813 if test "x$BOOT_JDK_FOUND" = xmaybe; then 24814 # Do we have a bin/java? 24815 if test ! -x "$BOOT_JDK/bin/java"; then 24816 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 24817 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 24818 BOOT_JDK_FOUND=no 24819 else 24820 # Do we have a bin/javac? 24821 if test ! -x "$BOOT_JDK/bin/javac"; then 24822 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 24823 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 24824 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 24825 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 24826 BOOT_JDK_FOUND=no 24827 else 24828 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 24829 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $HEAD -n 1` 24830 24831 # Extra M4 quote needed to protect [] in grep expression. 24832 FOUND_CORRECT_VERSION=`$ECHO $BOOT_JDK_VERSION | $EGREP '\"9([\.+-].*)?\"|(1\.[89]\.)'` 24833 if test "x$FOUND_CORRECT_VERSION" = x; then 24834 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 24835 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 24836 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5 24837 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;} 24838 BOOT_JDK_FOUND=no 24839 else 24840 # We're done! :-) 24841 BOOT_JDK_FOUND=yes 24842 24843 # Only process if variable expands to non-empty 24844 24845 if test "x$BOOT_JDK" != x; then 24846 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 24847 24848 # Input might be given as Windows format, start by converting to 24849 # unix format. 24850 path="$BOOT_JDK" 24851 new_path=`$CYGPATH -u "$path"` 24852 24853 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 24854 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 24855 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 24856 # "foo.exe" is OK but "foo" is an error. 24857 # 24858 # This test is therefore slightly more accurate than "test -f" to check for file precense. 24859 # It is also a way to make sure we got the proper file name for the real test later on. 24860 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 24861 if test "x$test_shortpath" = x; then 24862 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 24863 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 24864 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 24865 fi 24866 24867 # Call helper function which possibly converts this using DOS-style short mode. 24868 # If so, the updated path is stored in $new_path. 24869 24870 input_path="$new_path" 24871 # Check if we need to convert this using DOS-style short mode. If the path 24872 # contains just simple characters, use it. Otherwise (spaces, weird characters), 24873 # take no chances and rewrite it. 24874 # Note: m4 eats our [], so we need to use [ and ] instead. 24875 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 24876 if test "x$has_forbidden_chars" != x; then 24877 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 24878 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 24879 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 24880 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 24881 # Going to short mode and back again did indeed matter. Since short mode is 24882 # case insensitive, let's make it lowercase to improve readability. 24883 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 24884 # Now convert it back to Unix-style (cygpath) 24885 input_path=`$CYGPATH -u "$shortmode_path"` 24886 new_path="$input_path" 24887 fi 24888 fi 24889 24890 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 24891 if test "x$test_cygdrive_prefix" = x; then 24892 # As a simple fix, exclude /usr/bin since it's not a real path. 24893 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 24894 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 24895 # a path prefixed by /cygdrive for fixpath to work. 24896 new_path="$CYGWIN_ROOT_PATH$input_path" 24897 fi 24898 fi 24899 24900 24901 if test "x$path" != "x$new_path"; then 24902 BOOT_JDK="$new_path" 24903 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 24904 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 24905 fi 24906 24907 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 24908 24909 path="$BOOT_JDK" 24910 has_colon=`$ECHO $path | $GREP ^.:` 24911 new_path="$path" 24912 if test "x$has_colon" = x; then 24913 # Not in mixed or Windows style, start by that. 24914 new_path=`cmd //c echo $path` 24915 fi 24916 24917 24918 input_path="$new_path" 24919 # Check if we need to convert this using DOS-style short mode. If the path 24920 # contains just simple characters, use it. Otherwise (spaces, weird characters), 24921 # take no chances and rewrite it. 24922 # Note: m4 eats our [], so we need to use [ and ] instead. 24923 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 24924 if test "x$has_forbidden_chars" != x; then 24925 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 24926 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 24927 fi 24928 24929 24930 windows_path="$new_path" 24931 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 24932 unix_path=`$CYGPATH -u "$windows_path"` 24933 new_path="$unix_path" 24934 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 24935 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 24936 new_path="$unix_path" 24937 fi 24938 24939 if test "x$path" != "x$new_path"; then 24940 BOOT_JDK="$new_path" 24941 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 24942 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 24943 fi 24944 24945 # Save the first 10 bytes of this path to the storage, so fixpath can work. 24946 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 24947 24948 else 24949 # We're on a unix platform. Hooray! :) 24950 path="$BOOT_JDK" 24951 has_space=`$ECHO "$path" | $GREP " "` 24952 if test "x$has_space" != x; then 24953 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 24954 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 24955 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 24956 fi 24957 24958 # Use eval to expand a potential ~ 24959 eval path="$path" 24960 if test ! -f "$path" && test ! -d "$path"; then 24961 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 24962 fi 24963 24964 if test -d "$path"; then 24965 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 24966 else 24967 dir="`$DIRNAME "$path"`" 24968 base="`$BASENAME "$path"`" 24969 BOOT_JDK="`cd "$dir"; $THEPWDCMD -L`/$base" 24970 fi 24971 fi 24972 fi 24973 24974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 24975 $as_echo_n "checking for Boot JDK... " >&6; } 24976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 24977 $as_echo "$BOOT_JDK" >&6; } 24978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 24979 $as_echo_n "checking Boot JDK version... " >&6; } 24980 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 24981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 24982 $as_echo "$BOOT_JDK_VERSION" >&6; } 24983 fi # end check jdk version 24984 fi # end check javac 24985 fi # end check java 24986 fi # end check boot jdk found 24987 fi 24988 24989 if test "x$with_boot_jdk" != x && test "x$BOOT_JDK_FOUND" = xno; then 24990 # Having specified an argument which is incorrect will produce an instant failure; 24991 # we should not go on looking 24992 as_fn_error $? "The path given by --with-boot-jdk does not contain a valid Boot JDK" "$LINENO" 5 24993 fi 24994 24995 # Test: On MacOS X, can we find a boot jdk using /usr/libexec/java_home? 24996 24997 if test "x$BOOT_JDK_FOUND" = xno; then 24998 # Now execute the test 24999 25000 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 25001 # First check at user selected default 25002 25003 if test "x$BOOT_JDK_FOUND" = xno; then 25004 # Now execute the test 25005 25006 if test -x /usr/libexec/java_home; then 25007 BOOT_JDK=`/usr/libexec/java_home ` 25008 BOOT_JDK_FOUND=maybe 25009 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using /usr/libexec/java_home " >&5 25010 $as_echo "$as_me: Found potential Boot JDK using /usr/libexec/java_home " >&6;} 25011 fi 25012 25013 25014 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 25015 if test "x$BOOT_JDK_FOUND" = xmaybe; then 25016 # Do we have a bin/java? 25017 if test ! -x "$BOOT_JDK/bin/java"; then 25018 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 25019 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 25020 BOOT_JDK_FOUND=no 25021 else 25022 # Do we have a bin/javac? 25023 if test ! -x "$BOOT_JDK/bin/javac"; then 25024 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 25025 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 25026 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 25027 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 25028 BOOT_JDK_FOUND=no 25029 else 25030 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 25031 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $HEAD -n 1` 25032 25033 # Extra M4 quote needed to protect [] in grep expression. 25034 FOUND_CORRECT_VERSION=`$ECHO $BOOT_JDK_VERSION | $EGREP '\"9([\.+-].*)?\"|(1\.[89]\.)'` 25035 if test "x$FOUND_CORRECT_VERSION" = x; then 25036 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 25037 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 25038 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5 25039 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;} 25040 BOOT_JDK_FOUND=no 25041 else 25042 # We're done! :-) 25043 BOOT_JDK_FOUND=yes 25044 25045 # Only process if variable expands to non-empty 25046 25047 if test "x$BOOT_JDK" != x; then 25048 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 25049 25050 # Input might be given as Windows format, start by converting to 25051 # unix format. 25052 path="$BOOT_JDK" 25053 new_path=`$CYGPATH -u "$path"` 25054 25055 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 25056 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 25057 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 25058 # "foo.exe" is OK but "foo" is an error. 25059 # 25060 # This test is therefore slightly more accurate than "test -f" to check for file precense. 25061 # It is also a way to make sure we got the proper file name for the real test later on. 25062 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 25063 if test "x$test_shortpath" = x; then 25064 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 25065 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 25066 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 25067 fi 25068 25069 # Call helper function which possibly converts this using DOS-style short mode. 25070 # If so, the updated path is stored in $new_path. 25071 25072 input_path="$new_path" 25073 # Check if we need to convert this using DOS-style short mode. If the path 25074 # contains just simple characters, use it. Otherwise (spaces, weird characters), 25075 # take no chances and rewrite it. 25076 # Note: m4 eats our [], so we need to use [ and ] instead. 25077 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 25078 if test "x$has_forbidden_chars" != x; then 25079 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 25080 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 25081 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 25082 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 25083 # Going to short mode and back again did indeed matter. Since short mode is 25084 # case insensitive, let's make it lowercase to improve readability. 25085 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 25086 # Now convert it back to Unix-style (cygpath) 25087 input_path=`$CYGPATH -u "$shortmode_path"` 25088 new_path="$input_path" 25089 fi 25090 fi 25091 25092 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 25093 if test "x$test_cygdrive_prefix" = x; then 25094 # As a simple fix, exclude /usr/bin since it's not a real path. 25095 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 25096 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 25097 # a path prefixed by /cygdrive for fixpath to work. 25098 new_path="$CYGWIN_ROOT_PATH$input_path" 25099 fi 25100 fi 25101 25102 25103 if test "x$path" != "x$new_path"; then 25104 BOOT_JDK="$new_path" 25105 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 25106 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 25107 fi 25108 25109 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 25110 25111 path="$BOOT_JDK" 25112 has_colon=`$ECHO $path | $GREP ^.:` 25113 new_path="$path" 25114 if test "x$has_colon" = x; then 25115 # Not in mixed or Windows style, start by that. 25116 new_path=`cmd //c echo $path` 25117 fi 25118 25119 25120 input_path="$new_path" 25121 # Check if we need to convert this using DOS-style short mode. If the path 25122 # contains just simple characters, use it. Otherwise (spaces, weird characters), 25123 # take no chances and rewrite it. 25124 # Note: m4 eats our [], so we need to use [ and ] instead. 25125 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 25126 if test "x$has_forbidden_chars" != x; then 25127 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 25128 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 25129 fi 25130 25131 25132 windows_path="$new_path" 25133 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 25134 unix_path=`$CYGPATH -u "$windows_path"` 25135 new_path="$unix_path" 25136 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 25137 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 25138 new_path="$unix_path" 25139 fi 25140 25141 if test "x$path" != "x$new_path"; then 25142 BOOT_JDK="$new_path" 25143 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 25144 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 25145 fi 25146 25147 # Save the first 10 bytes of this path to the storage, so fixpath can work. 25148 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 25149 25150 else 25151 # We're on a unix platform. Hooray! :) 25152 path="$BOOT_JDK" 25153 has_space=`$ECHO "$path" | $GREP " "` 25154 if test "x$has_space" != x; then 25155 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 25156 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 25157 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 25158 fi 25159 25160 # Use eval to expand a potential ~ 25161 eval path="$path" 25162 if test ! -f "$path" && test ! -d "$path"; then 25163 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 25164 fi 25165 25166 if test -d "$path"; then 25167 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 25168 else 25169 dir="`$DIRNAME "$path"`" 25170 base="`$BASENAME "$path"`" 25171 BOOT_JDK="`cd "$dir"; $THEPWDCMD -L`/$base" 25172 fi 25173 fi 25174 fi 25175 25176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 25177 $as_echo_n "checking for Boot JDK... " >&6; } 25178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 25179 $as_echo "$BOOT_JDK" >&6; } 25180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 25181 $as_echo_n "checking Boot JDK version... " >&6; } 25182 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 25183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 25184 $as_echo "$BOOT_JDK_VERSION" >&6; } 25185 fi # end check jdk version 25186 fi # end check javac 25187 fi # end check java 25188 fi # end check boot jdk found 25189 fi 25190 25191 # If that did not work out (e.g. too old), try explicit versions instead 25192 25193 if test "x$BOOT_JDK_FOUND" = xno; then 25194 # Now execute the test 25195 25196 if test -x /usr/libexec/java_home; then 25197 BOOT_JDK=`/usr/libexec/java_home -v 1.9` 25198 BOOT_JDK_FOUND=maybe 25199 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using /usr/libexec/java_home -v 1.9" >&5 25200 $as_echo "$as_me: Found potential Boot JDK using /usr/libexec/java_home -v 1.9" >&6;} 25201 fi 25202 25203 25204 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 25205 if test "x$BOOT_JDK_FOUND" = xmaybe; then 25206 # Do we have a bin/java? 25207 if test ! -x "$BOOT_JDK/bin/java"; then 25208 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 25209 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 25210 BOOT_JDK_FOUND=no 25211 else 25212 # Do we have a bin/javac? 25213 if test ! -x "$BOOT_JDK/bin/javac"; then 25214 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 25215 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 25216 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 25217 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 25218 BOOT_JDK_FOUND=no 25219 else 25220 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 25221 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $HEAD -n 1` 25222 25223 # Extra M4 quote needed to protect [] in grep expression. 25224 FOUND_CORRECT_VERSION=`$ECHO $BOOT_JDK_VERSION | $EGREP '\"9([\.+-].*)?\"|(1\.[89]\.)'` 25225 if test "x$FOUND_CORRECT_VERSION" = x; then 25226 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 25227 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 25228 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5 25229 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;} 25230 BOOT_JDK_FOUND=no 25231 else 25232 # We're done! :-) 25233 BOOT_JDK_FOUND=yes 25234 25235 # Only process if variable expands to non-empty 25236 25237 if test "x$BOOT_JDK" != x; then 25238 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 25239 25240 # Input might be given as Windows format, start by converting to 25241 # unix format. 25242 path="$BOOT_JDK" 25243 new_path=`$CYGPATH -u "$path"` 25244 25245 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 25246 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 25247 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 25248 # "foo.exe" is OK but "foo" is an error. 25249 # 25250 # This test is therefore slightly more accurate than "test -f" to check for file precense. 25251 # It is also a way to make sure we got the proper file name for the real test later on. 25252 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 25253 if test "x$test_shortpath" = x; then 25254 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 25255 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 25256 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 25257 fi 25258 25259 # Call helper function which possibly converts this using DOS-style short mode. 25260 # If so, the updated path is stored in $new_path. 25261 25262 input_path="$new_path" 25263 # Check if we need to convert this using DOS-style short mode. If the path 25264 # contains just simple characters, use it. Otherwise (spaces, weird characters), 25265 # take no chances and rewrite it. 25266 # Note: m4 eats our [], so we need to use [ and ] instead. 25267 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 25268 if test "x$has_forbidden_chars" != x; then 25269 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 25270 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 25271 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 25272 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 25273 # Going to short mode and back again did indeed matter. Since short mode is 25274 # case insensitive, let's make it lowercase to improve readability. 25275 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 25276 # Now convert it back to Unix-style (cygpath) 25277 input_path=`$CYGPATH -u "$shortmode_path"` 25278 new_path="$input_path" 25279 fi 25280 fi 25281 25282 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 25283 if test "x$test_cygdrive_prefix" = x; then 25284 # As a simple fix, exclude /usr/bin since it's not a real path. 25285 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 25286 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 25287 # a path prefixed by /cygdrive for fixpath to work. 25288 new_path="$CYGWIN_ROOT_PATH$input_path" 25289 fi 25290 fi 25291 25292 25293 if test "x$path" != "x$new_path"; then 25294 BOOT_JDK="$new_path" 25295 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 25296 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 25297 fi 25298 25299 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 25300 25301 path="$BOOT_JDK" 25302 has_colon=`$ECHO $path | $GREP ^.:` 25303 new_path="$path" 25304 if test "x$has_colon" = x; then 25305 # Not in mixed or Windows style, start by that. 25306 new_path=`cmd //c echo $path` 25307 fi 25308 25309 25310 input_path="$new_path" 25311 # Check if we need to convert this using DOS-style short mode. If the path 25312 # contains just simple characters, use it. Otherwise (spaces, weird characters), 25313 # take no chances and rewrite it. 25314 # Note: m4 eats our [], so we need to use [ and ] instead. 25315 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 25316 if test "x$has_forbidden_chars" != x; then 25317 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 25318 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 25319 fi 25320 25321 25322 windows_path="$new_path" 25323 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 25324 unix_path=`$CYGPATH -u "$windows_path"` 25325 new_path="$unix_path" 25326 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 25327 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 25328 new_path="$unix_path" 25329 fi 25330 25331 if test "x$path" != "x$new_path"; then 25332 BOOT_JDK="$new_path" 25333 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 25334 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 25335 fi 25336 25337 # Save the first 10 bytes of this path to the storage, so fixpath can work. 25338 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 25339 25340 else 25341 # We're on a unix platform. Hooray! :) 25342 path="$BOOT_JDK" 25343 has_space=`$ECHO "$path" | $GREP " "` 25344 if test "x$has_space" != x; then 25345 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 25346 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 25347 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 25348 fi 25349 25350 # Use eval to expand a potential ~ 25351 eval path="$path" 25352 if test ! -f "$path" && test ! -d "$path"; then 25353 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 25354 fi 25355 25356 if test -d "$path"; then 25357 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 25358 else 25359 dir="`$DIRNAME "$path"`" 25360 base="`$BASENAME "$path"`" 25361 BOOT_JDK="`cd "$dir"; $THEPWDCMD -L`/$base" 25362 fi 25363 fi 25364 fi 25365 25366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 25367 $as_echo_n "checking for Boot JDK... " >&6; } 25368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 25369 $as_echo "$BOOT_JDK" >&6; } 25370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 25371 $as_echo_n "checking Boot JDK version... " >&6; } 25372 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 25373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 25374 $as_echo "$BOOT_JDK_VERSION" >&6; } 25375 fi # end check jdk version 25376 fi # end check javac 25377 fi # end check java 25378 fi # end check boot jdk found 25379 fi 25380 25381 25382 if test "x$BOOT_JDK_FOUND" = xno; then 25383 # Now execute the test 25384 25385 if test -x /usr/libexec/java_home; then 25386 BOOT_JDK=`/usr/libexec/java_home -v 1.8` 25387 BOOT_JDK_FOUND=maybe 25388 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using /usr/libexec/java_home -v 1.8" >&5 25389 $as_echo "$as_me: Found potential Boot JDK using /usr/libexec/java_home -v 1.8" >&6;} 25390 fi 25391 25392 25393 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 25394 if test "x$BOOT_JDK_FOUND" = xmaybe; then 25395 # Do we have a bin/java? 25396 if test ! -x "$BOOT_JDK/bin/java"; then 25397 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 25398 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 25399 BOOT_JDK_FOUND=no 25400 else 25401 # Do we have a bin/javac? 25402 if test ! -x "$BOOT_JDK/bin/javac"; then 25403 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 25404 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 25405 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 25406 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 25407 BOOT_JDK_FOUND=no 25408 else 25409 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 25410 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $HEAD -n 1` 25411 25412 # Extra M4 quote needed to protect [] in grep expression. 25413 FOUND_CORRECT_VERSION=`$ECHO $BOOT_JDK_VERSION | $EGREP '\"9([\.+-].*)?\"|(1\.[89]\.)'` 25414 if test "x$FOUND_CORRECT_VERSION" = x; then 25415 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 25416 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 25417 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5 25418 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;} 25419 BOOT_JDK_FOUND=no 25420 else 25421 # We're done! :-) 25422 BOOT_JDK_FOUND=yes 25423 25424 # Only process if variable expands to non-empty 25425 25426 if test "x$BOOT_JDK" != x; then 25427 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 25428 25429 # Input might be given as Windows format, start by converting to 25430 # unix format. 25431 path="$BOOT_JDK" 25432 new_path=`$CYGPATH -u "$path"` 25433 25434 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 25435 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 25436 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 25437 # "foo.exe" is OK but "foo" is an error. 25438 # 25439 # This test is therefore slightly more accurate than "test -f" to check for file precense. 25440 # It is also a way to make sure we got the proper file name for the real test later on. 25441 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 25442 if test "x$test_shortpath" = x; then 25443 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 25444 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 25445 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 25446 fi 25447 25448 # Call helper function which possibly converts this using DOS-style short mode. 25449 # If so, the updated path is stored in $new_path. 25450 25451 input_path="$new_path" 25452 # Check if we need to convert this using DOS-style short mode. If the path 25453 # contains just simple characters, use it. Otherwise (spaces, weird characters), 25454 # take no chances and rewrite it. 25455 # Note: m4 eats our [], so we need to use [ and ] instead. 25456 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 25457 if test "x$has_forbidden_chars" != x; then 25458 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 25459 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 25460 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 25461 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 25462 # Going to short mode and back again did indeed matter. Since short mode is 25463 # case insensitive, let's make it lowercase to improve readability. 25464 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 25465 # Now convert it back to Unix-style (cygpath) 25466 input_path=`$CYGPATH -u "$shortmode_path"` 25467 new_path="$input_path" 25468 fi 25469 fi 25470 25471 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 25472 if test "x$test_cygdrive_prefix" = x; then 25473 # As a simple fix, exclude /usr/bin since it's not a real path. 25474 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 25475 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 25476 # a path prefixed by /cygdrive for fixpath to work. 25477 new_path="$CYGWIN_ROOT_PATH$input_path" 25478 fi 25479 fi 25480 25481 25482 if test "x$path" != "x$new_path"; then 25483 BOOT_JDK="$new_path" 25484 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 25485 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 25486 fi 25487 25488 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 25489 25490 path="$BOOT_JDK" 25491 has_colon=`$ECHO $path | $GREP ^.:` 25492 new_path="$path" 25493 if test "x$has_colon" = x; then 25494 # Not in mixed or Windows style, start by that. 25495 new_path=`cmd //c echo $path` 25496 fi 25497 25498 25499 input_path="$new_path" 25500 # Check if we need to convert this using DOS-style short mode. If the path 25501 # contains just simple characters, use it. Otherwise (spaces, weird characters), 25502 # take no chances and rewrite it. 25503 # Note: m4 eats our [], so we need to use [ and ] instead. 25504 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 25505 if test "x$has_forbidden_chars" != x; then 25506 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 25507 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 25508 fi 25509 25510 25511 windows_path="$new_path" 25512 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 25513 unix_path=`$CYGPATH -u "$windows_path"` 25514 new_path="$unix_path" 25515 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 25516 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 25517 new_path="$unix_path" 25518 fi 25519 25520 if test "x$path" != "x$new_path"; then 25521 BOOT_JDK="$new_path" 25522 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 25523 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 25524 fi 25525 25526 # Save the first 10 bytes of this path to the storage, so fixpath can work. 25527 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 25528 25529 else 25530 # We're on a unix platform. Hooray! :) 25531 path="$BOOT_JDK" 25532 has_space=`$ECHO "$path" | $GREP " "` 25533 if test "x$has_space" != x; then 25534 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 25535 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 25536 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 25537 fi 25538 25539 # Use eval to expand a potential ~ 25540 eval path="$path" 25541 if test ! -f "$path" && test ! -d "$path"; then 25542 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 25543 fi 25544 25545 if test -d "$path"; then 25546 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 25547 else 25548 dir="`$DIRNAME "$path"`" 25549 base="`$BASENAME "$path"`" 25550 BOOT_JDK="`cd "$dir"; $THEPWDCMD -L`/$base" 25551 fi 25552 fi 25553 fi 25554 25555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 25556 $as_echo_n "checking for Boot JDK... " >&6; } 25557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 25558 $as_echo "$BOOT_JDK" >&6; } 25559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 25560 $as_echo_n "checking Boot JDK version... " >&6; } 25561 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 25562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 25563 $as_echo "$BOOT_JDK_VERSION" >&6; } 25564 fi # end check jdk version 25565 fi # end check javac 25566 fi # end check java 25567 fi # end check boot jdk found 25568 fi 25569 25570 25571 if test "x$BOOT_JDK_FOUND" = xno; then 25572 # Now execute the test 25573 25574 if test -x /usr/libexec/java_home; then 25575 BOOT_JDK=`/usr/libexec/java_home -v 1.7` 25576 BOOT_JDK_FOUND=maybe 25577 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using /usr/libexec/java_home -v 1.7" >&5 25578 $as_echo "$as_me: Found potential Boot JDK using /usr/libexec/java_home -v 1.7" >&6;} 25579 fi 25580 25581 25582 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 25583 if test "x$BOOT_JDK_FOUND" = xmaybe; then 25584 # Do we have a bin/java? 25585 if test ! -x "$BOOT_JDK/bin/java"; then 25586 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 25587 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 25588 BOOT_JDK_FOUND=no 25589 else 25590 # Do we have a bin/javac? 25591 if test ! -x "$BOOT_JDK/bin/javac"; then 25592 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 25593 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 25594 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 25595 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 25596 BOOT_JDK_FOUND=no 25597 else 25598 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 25599 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $HEAD -n 1` 25600 25601 # Extra M4 quote needed to protect [] in grep expression. 25602 FOUND_CORRECT_VERSION=`$ECHO $BOOT_JDK_VERSION | $EGREP '\"9([\.+-].*)?\"|(1\.[89]\.)'` 25603 if test "x$FOUND_CORRECT_VERSION" = x; then 25604 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 25605 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 25606 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5 25607 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;} 25608 BOOT_JDK_FOUND=no 25609 else 25610 # We're done! :-) 25611 BOOT_JDK_FOUND=yes 25612 25613 # Only process if variable expands to non-empty 25614 25615 if test "x$BOOT_JDK" != x; then 25616 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 25617 25618 # Input might be given as Windows format, start by converting to 25619 # unix format. 25620 path="$BOOT_JDK" 25621 new_path=`$CYGPATH -u "$path"` 25622 25623 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 25624 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 25625 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 25626 # "foo.exe" is OK but "foo" is an error. 25627 # 25628 # This test is therefore slightly more accurate than "test -f" to check for file precense. 25629 # It is also a way to make sure we got the proper file name for the real test later on. 25630 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 25631 if test "x$test_shortpath" = x; then 25632 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 25633 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 25634 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 25635 fi 25636 25637 # Call helper function which possibly converts this using DOS-style short mode. 25638 # If so, the updated path is stored in $new_path. 25639 25640 input_path="$new_path" 25641 # Check if we need to convert this using DOS-style short mode. If the path 25642 # contains just simple characters, use it. Otherwise (spaces, weird characters), 25643 # take no chances and rewrite it. 25644 # Note: m4 eats our [], so we need to use [ and ] instead. 25645 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 25646 if test "x$has_forbidden_chars" != x; then 25647 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 25648 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 25649 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 25650 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 25651 # Going to short mode and back again did indeed matter. Since short mode is 25652 # case insensitive, let's make it lowercase to improve readability. 25653 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 25654 # Now convert it back to Unix-style (cygpath) 25655 input_path=`$CYGPATH -u "$shortmode_path"` 25656 new_path="$input_path" 25657 fi 25658 fi 25659 25660 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 25661 if test "x$test_cygdrive_prefix" = x; then 25662 # As a simple fix, exclude /usr/bin since it's not a real path. 25663 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 25664 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 25665 # a path prefixed by /cygdrive for fixpath to work. 25666 new_path="$CYGWIN_ROOT_PATH$input_path" 25667 fi 25668 fi 25669 25670 25671 if test "x$path" != "x$new_path"; then 25672 BOOT_JDK="$new_path" 25673 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 25674 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 25675 fi 25676 25677 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 25678 25679 path="$BOOT_JDK" 25680 has_colon=`$ECHO $path | $GREP ^.:` 25681 new_path="$path" 25682 if test "x$has_colon" = x; then 25683 # Not in mixed or Windows style, start by that. 25684 new_path=`cmd //c echo $path` 25685 fi 25686 25687 25688 input_path="$new_path" 25689 # Check if we need to convert this using DOS-style short mode. If the path 25690 # contains just simple characters, use it. Otherwise (spaces, weird characters), 25691 # take no chances and rewrite it. 25692 # Note: m4 eats our [], so we need to use [ and ] instead. 25693 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 25694 if test "x$has_forbidden_chars" != x; then 25695 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 25696 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 25697 fi 25698 25699 25700 windows_path="$new_path" 25701 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 25702 unix_path=`$CYGPATH -u "$windows_path"` 25703 new_path="$unix_path" 25704 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 25705 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 25706 new_path="$unix_path" 25707 fi 25708 25709 if test "x$path" != "x$new_path"; then 25710 BOOT_JDK="$new_path" 25711 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 25712 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 25713 fi 25714 25715 # Save the first 10 bytes of this path to the storage, so fixpath can work. 25716 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 25717 25718 else 25719 # We're on a unix platform. Hooray! :) 25720 path="$BOOT_JDK" 25721 has_space=`$ECHO "$path" | $GREP " "` 25722 if test "x$has_space" != x; then 25723 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 25724 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 25725 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 25726 fi 25727 25728 # Use eval to expand a potential ~ 25729 eval path="$path" 25730 if test ! -f "$path" && test ! -d "$path"; then 25731 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 25732 fi 25733 25734 if test -d "$path"; then 25735 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 25736 else 25737 dir="`$DIRNAME "$path"`" 25738 base="`$BASENAME "$path"`" 25739 BOOT_JDK="`cd "$dir"; $THEPWDCMD -L`/$base" 25740 fi 25741 fi 25742 fi 25743 25744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 25745 $as_echo_n "checking for Boot JDK... " >&6; } 25746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 25747 $as_echo "$BOOT_JDK" >&6; } 25748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 25749 $as_echo_n "checking Boot JDK version... " >&6; } 25750 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 25751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 25752 $as_echo "$BOOT_JDK_VERSION" >&6; } 25753 fi # end check jdk version 25754 fi # end check javac 25755 fi # end check java 25756 fi # end check boot jdk found 25757 fi 25758 25759 fi 25760 25761 25762 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 25763 if test "x$BOOT_JDK_FOUND" = xmaybe; then 25764 # Do we have a bin/java? 25765 if test ! -x "$BOOT_JDK/bin/java"; then 25766 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 25767 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 25768 BOOT_JDK_FOUND=no 25769 else 25770 # Do we have a bin/javac? 25771 if test ! -x "$BOOT_JDK/bin/javac"; then 25772 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 25773 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 25774 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 25775 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 25776 BOOT_JDK_FOUND=no 25777 else 25778 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 25779 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $HEAD -n 1` 25780 25781 # Extra M4 quote needed to protect [] in grep expression. 25782 FOUND_CORRECT_VERSION=`$ECHO $BOOT_JDK_VERSION | $EGREP '\"9([\.+-].*)?\"|(1\.[89]\.)'` 25783 if test "x$FOUND_CORRECT_VERSION" = x; then 25784 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 25785 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 25786 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5 25787 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;} 25788 BOOT_JDK_FOUND=no 25789 else 25790 # We're done! :-) 25791 BOOT_JDK_FOUND=yes 25792 25793 # Only process if variable expands to non-empty 25794 25795 if test "x$BOOT_JDK" != x; then 25796 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 25797 25798 # Input might be given as Windows format, start by converting to 25799 # unix format. 25800 path="$BOOT_JDK" 25801 new_path=`$CYGPATH -u "$path"` 25802 25803 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 25804 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 25805 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 25806 # "foo.exe" is OK but "foo" is an error. 25807 # 25808 # This test is therefore slightly more accurate than "test -f" to check for file precense. 25809 # It is also a way to make sure we got the proper file name for the real test later on. 25810 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 25811 if test "x$test_shortpath" = x; then 25812 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 25813 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 25814 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 25815 fi 25816 25817 # Call helper function which possibly converts this using DOS-style short mode. 25818 # If so, the updated path is stored in $new_path. 25819 25820 input_path="$new_path" 25821 # Check if we need to convert this using DOS-style short mode. If the path 25822 # contains just simple characters, use it. Otherwise (spaces, weird characters), 25823 # take no chances and rewrite it. 25824 # Note: m4 eats our [], so we need to use [ and ] instead. 25825 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 25826 if test "x$has_forbidden_chars" != x; then 25827 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 25828 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 25829 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 25830 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 25831 # Going to short mode and back again did indeed matter. Since short mode is 25832 # case insensitive, let's make it lowercase to improve readability. 25833 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 25834 # Now convert it back to Unix-style (cygpath) 25835 input_path=`$CYGPATH -u "$shortmode_path"` 25836 new_path="$input_path" 25837 fi 25838 fi 25839 25840 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 25841 if test "x$test_cygdrive_prefix" = x; then 25842 # As a simple fix, exclude /usr/bin since it's not a real path. 25843 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 25844 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 25845 # a path prefixed by /cygdrive for fixpath to work. 25846 new_path="$CYGWIN_ROOT_PATH$input_path" 25847 fi 25848 fi 25849 25850 25851 if test "x$path" != "x$new_path"; then 25852 BOOT_JDK="$new_path" 25853 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 25854 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 25855 fi 25856 25857 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 25858 25859 path="$BOOT_JDK" 25860 has_colon=`$ECHO $path | $GREP ^.:` 25861 new_path="$path" 25862 if test "x$has_colon" = x; then 25863 # Not in mixed or Windows style, start by that. 25864 new_path=`cmd //c echo $path` 25865 fi 25866 25867 25868 input_path="$new_path" 25869 # Check if we need to convert this using DOS-style short mode. If the path 25870 # contains just simple characters, use it. Otherwise (spaces, weird characters), 25871 # take no chances and rewrite it. 25872 # Note: m4 eats our [], so we need to use [ and ] instead. 25873 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 25874 if test "x$has_forbidden_chars" != x; then 25875 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 25876 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 25877 fi 25878 25879 25880 windows_path="$new_path" 25881 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 25882 unix_path=`$CYGPATH -u "$windows_path"` 25883 new_path="$unix_path" 25884 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 25885 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 25886 new_path="$unix_path" 25887 fi 25888 25889 if test "x$path" != "x$new_path"; then 25890 BOOT_JDK="$new_path" 25891 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 25892 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 25893 fi 25894 25895 # Save the first 10 bytes of this path to the storage, so fixpath can work. 25896 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 25897 25898 else 25899 # We're on a unix platform. Hooray! :) 25900 path="$BOOT_JDK" 25901 has_space=`$ECHO "$path" | $GREP " "` 25902 if test "x$has_space" != x; then 25903 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 25904 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 25905 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 25906 fi 25907 25908 # Use eval to expand a potential ~ 25909 eval path="$path" 25910 if test ! -f "$path" && test ! -d "$path"; then 25911 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 25912 fi 25913 25914 if test -d "$path"; then 25915 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 25916 else 25917 dir="`$DIRNAME "$path"`" 25918 base="`$BASENAME "$path"`" 25919 BOOT_JDK="`cd "$dir"; $THEPWDCMD -L`/$base" 25920 fi 25921 fi 25922 fi 25923 25924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 25925 $as_echo_n "checking for Boot JDK... " >&6; } 25926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 25927 $as_echo "$BOOT_JDK" >&6; } 25928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 25929 $as_echo_n "checking Boot JDK version... " >&6; } 25930 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 25931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 25932 $as_echo "$BOOT_JDK_VERSION" >&6; } 25933 fi # end check jdk version 25934 fi # end check javac 25935 fi # end check java 25936 fi # end check boot jdk found 25937 fi 25938 25939 25940 # Test: Is $JAVA_HOME set? 25941 25942 if test "x$BOOT_JDK_FOUND" = xno; then 25943 # Now execute the test 25944 25945 if test "x$JAVA_HOME" != x; then 25946 JAVA_HOME_PROCESSED="$JAVA_HOME" 25947 25948 # Only process if variable expands to non-empty 25949 25950 if test "x$JAVA_HOME_PROCESSED" != x; then 25951 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 25952 25953 # Input might be given as Windows format, start by converting to 25954 # unix format. 25955 path="$JAVA_HOME_PROCESSED" 25956 new_path=`$CYGPATH -u "$path"` 25957 25958 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 25959 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 25960 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 25961 # "foo.exe" is OK but "foo" is an error. 25962 # 25963 # This test is therefore slightly more accurate than "test -f" to check for file precense. 25964 # It is also a way to make sure we got the proper file name for the real test later on. 25965 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 25966 if test "x$test_shortpath" = x; then 25967 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of JAVA_HOME_PROCESSED, which resolves as \"$path\", is invalid." >&5 25968 $as_echo "$as_me: The path of JAVA_HOME_PROCESSED, which resolves as \"$path\", is invalid." >&6;} 25969 as_fn_error $? "Cannot locate the the path of JAVA_HOME_PROCESSED" "$LINENO" 5 25970 fi 25971 25972 # Call helper function which possibly converts this using DOS-style short mode. 25973 # If so, the updated path is stored in $new_path. 25974 25975 input_path="$new_path" 25976 # Check if we need to convert this using DOS-style short mode. If the path 25977 # contains just simple characters, use it. Otherwise (spaces, weird characters), 25978 # take no chances and rewrite it. 25979 # Note: m4 eats our [], so we need to use [ and ] instead. 25980 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 25981 if test "x$has_forbidden_chars" != x; then 25982 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 25983 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 25984 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 25985 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 25986 # Going to short mode and back again did indeed matter. Since short mode is 25987 # case insensitive, let's make it lowercase to improve readability. 25988 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 25989 # Now convert it back to Unix-style (cygpath) 25990 input_path=`$CYGPATH -u "$shortmode_path"` 25991 new_path="$input_path" 25992 fi 25993 fi 25994 25995 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 25996 if test "x$test_cygdrive_prefix" = x; then 25997 # As a simple fix, exclude /usr/bin since it's not a real path. 25998 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 25999 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 26000 # a path prefixed by /cygdrive for fixpath to work. 26001 new_path="$CYGWIN_ROOT_PATH$input_path" 26002 fi 26003 fi 26004 26005 26006 if test "x$path" != "x$new_path"; then 26007 JAVA_HOME_PROCESSED="$new_path" 26008 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting JAVA_HOME_PROCESSED to \"$new_path\"" >&5 26009 $as_echo "$as_me: Rewriting JAVA_HOME_PROCESSED to \"$new_path\"" >&6;} 26010 fi 26011 26012 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 26013 26014 path="$JAVA_HOME_PROCESSED" 26015 has_colon=`$ECHO $path | $GREP ^.:` 26016 new_path="$path" 26017 if test "x$has_colon" = x; then 26018 # Not in mixed or Windows style, start by that. 26019 new_path=`cmd //c echo $path` 26020 fi 26021 26022 26023 input_path="$new_path" 26024 # Check if we need to convert this using DOS-style short mode. If the path 26025 # contains just simple characters, use it. Otherwise (spaces, weird characters), 26026 # take no chances and rewrite it. 26027 # Note: m4 eats our [], so we need to use [ and ] instead. 26028 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 26029 if test "x$has_forbidden_chars" != x; then 26030 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 26031 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 26032 fi 26033 26034 26035 windows_path="$new_path" 26036 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 26037 unix_path=`$CYGPATH -u "$windows_path"` 26038 new_path="$unix_path" 26039 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 26040 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 26041 new_path="$unix_path" 26042 fi 26043 26044 if test "x$path" != "x$new_path"; then 26045 JAVA_HOME_PROCESSED="$new_path" 26046 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting JAVA_HOME_PROCESSED to \"$new_path\"" >&5 26047 $as_echo "$as_me: Rewriting JAVA_HOME_PROCESSED to \"$new_path\"" >&6;} 26048 fi 26049 26050 # Save the first 10 bytes of this path to the storage, so fixpath can work. 26051 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 26052 26053 else 26054 # We're on a unix platform. Hooray! :) 26055 path="$JAVA_HOME_PROCESSED" 26056 has_space=`$ECHO "$path" | $GREP " "` 26057 if test "x$has_space" != x; then 26058 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of JAVA_HOME_PROCESSED, which resolves as \"$path\", is invalid." >&5 26059 $as_echo "$as_me: The path of JAVA_HOME_PROCESSED, which resolves as \"$path\", is invalid." >&6;} 26060 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 26061 fi 26062 26063 # Use eval to expand a potential ~ 26064 eval path="$path" 26065 if test ! -f "$path" && test ! -d "$path"; then 26066 as_fn_error $? "The path of JAVA_HOME_PROCESSED, which resolves as \"$path\", is not found." "$LINENO" 5 26067 fi 26068 26069 if test -d "$path"; then 26070 JAVA_HOME_PROCESSED="`cd "$path"; $THEPWDCMD -L`" 26071 else 26072 dir="`$DIRNAME "$path"`" 26073 base="`$BASENAME "$path"`" 26074 JAVA_HOME_PROCESSED="`cd "$dir"; $THEPWDCMD -L`/$base" 26075 fi 26076 fi 26077 fi 26078 26079 if test ! -d "$JAVA_HOME_PROCESSED"; then 26080 { $as_echo "$as_me:${as_lineno-$LINENO}: Your JAVA_HOME points to a non-existing directory!" >&5 26081 $as_echo "$as_me: Your JAVA_HOME points to a non-existing directory!" >&6;} 26082 else 26083 # Aha, the user has set a JAVA_HOME 26084 # let us use that as the Boot JDK. 26085 BOOT_JDK="$JAVA_HOME_PROCESSED" 26086 BOOT_JDK_FOUND=maybe 26087 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using JAVA_HOME" >&5 26088 $as_echo "$as_me: Found potential Boot JDK using JAVA_HOME" >&6;} 26089 fi 26090 fi 26091 26092 26093 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 26094 if test "x$BOOT_JDK_FOUND" = xmaybe; then 26095 # Do we have a bin/java? 26096 if test ! -x "$BOOT_JDK/bin/java"; then 26097 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 26098 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 26099 BOOT_JDK_FOUND=no 26100 else 26101 # Do we have a bin/javac? 26102 if test ! -x "$BOOT_JDK/bin/javac"; then 26103 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 26104 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 26105 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 26106 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 26107 BOOT_JDK_FOUND=no 26108 else 26109 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 26110 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $HEAD -n 1` 26111 26112 # Extra M4 quote needed to protect [] in grep expression. 26113 FOUND_CORRECT_VERSION=`$ECHO $BOOT_JDK_VERSION | $EGREP '\"9([\.+-].*)?\"|(1\.[89]\.)'` 26114 if test "x$FOUND_CORRECT_VERSION" = x; then 26115 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 26116 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 26117 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5 26118 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;} 26119 BOOT_JDK_FOUND=no 26120 else 26121 # We're done! :-) 26122 BOOT_JDK_FOUND=yes 26123 26124 # Only process if variable expands to non-empty 26125 26126 if test "x$BOOT_JDK" != x; then 26127 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 26128 26129 # Input might be given as Windows format, start by converting to 26130 # unix format. 26131 path="$BOOT_JDK" 26132 new_path=`$CYGPATH -u "$path"` 26133 26134 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 26135 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 26136 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 26137 # "foo.exe" is OK but "foo" is an error. 26138 # 26139 # This test is therefore slightly more accurate than "test -f" to check for file precense. 26140 # It is also a way to make sure we got the proper file name for the real test later on. 26141 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 26142 if test "x$test_shortpath" = x; then 26143 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 26144 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 26145 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 26146 fi 26147 26148 # Call helper function which possibly converts this using DOS-style short mode. 26149 # If so, the updated path is stored in $new_path. 26150 26151 input_path="$new_path" 26152 # Check if we need to convert this using DOS-style short mode. If the path 26153 # contains just simple characters, use it. Otherwise (spaces, weird characters), 26154 # take no chances and rewrite it. 26155 # Note: m4 eats our [], so we need to use [ and ] instead. 26156 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 26157 if test "x$has_forbidden_chars" != x; then 26158 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 26159 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 26160 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 26161 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 26162 # Going to short mode and back again did indeed matter. Since short mode is 26163 # case insensitive, let's make it lowercase to improve readability. 26164 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 26165 # Now convert it back to Unix-style (cygpath) 26166 input_path=`$CYGPATH -u "$shortmode_path"` 26167 new_path="$input_path" 26168 fi 26169 fi 26170 26171 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 26172 if test "x$test_cygdrive_prefix" = x; then 26173 # As a simple fix, exclude /usr/bin since it's not a real path. 26174 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 26175 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 26176 # a path prefixed by /cygdrive for fixpath to work. 26177 new_path="$CYGWIN_ROOT_PATH$input_path" 26178 fi 26179 fi 26180 26181 26182 if test "x$path" != "x$new_path"; then 26183 BOOT_JDK="$new_path" 26184 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 26185 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 26186 fi 26187 26188 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 26189 26190 path="$BOOT_JDK" 26191 has_colon=`$ECHO $path | $GREP ^.:` 26192 new_path="$path" 26193 if test "x$has_colon" = x; then 26194 # Not in mixed or Windows style, start by that. 26195 new_path=`cmd //c echo $path` 26196 fi 26197 26198 26199 input_path="$new_path" 26200 # Check if we need to convert this using DOS-style short mode. If the path 26201 # contains just simple characters, use it. Otherwise (spaces, weird characters), 26202 # take no chances and rewrite it. 26203 # Note: m4 eats our [], so we need to use [ and ] instead. 26204 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 26205 if test "x$has_forbidden_chars" != x; then 26206 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 26207 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 26208 fi 26209 26210 26211 windows_path="$new_path" 26212 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 26213 unix_path=`$CYGPATH -u "$windows_path"` 26214 new_path="$unix_path" 26215 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 26216 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 26217 new_path="$unix_path" 26218 fi 26219 26220 if test "x$path" != "x$new_path"; then 26221 BOOT_JDK="$new_path" 26222 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 26223 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 26224 fi 26225 26226 # Save the first 10 bytes of this path to the storage, so fixpath can work. 26227 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 26228 26229 else 26230 # We're on a unix platform. Hooray! :) 26231 path="$BOOT_JDK" 26232 has_space=`$ECHO "$path" | $GREP " "` 26233 if test "x$has_space" != x; then 26234 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 26235 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 26236 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 26237 fi 26238 26239 # Use eval to expand a potential ~ 26240 eval path="$path" 26241 if test ! -f "$path" && test ! -d "$path"; then 26242 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 26243 fi 26244 26245 if test -d "$path"; then 26246 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 26247 else 26248 dir="`$DIRNAME "$path"`" 26249 base="`$BASENAME "$path"`" 26250 BOOT_JDK="`cd "$dir"; $THEPWDCMD -L`/$base" 26251 fi 26252 fi 26253 fi 26254 26255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 26256 $as_echo_n "checking for Boot JDK... " >&6; } 26257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 26258 $as_echo "$BOOT_JDK" >&6; } 26259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 26260 $as_echo_n "checking Boot JDK version... " >&6; } 26261 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 26262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 26263 $as_echo "$BOOT_JDK_VERSION" >&6; } 26264 fi # end check jdk version 26265 fi # end check javac 26266 fi # end check java 26267 fi # end check boot jdk found 26268 fi 26269 26270 26271 # Test: Is there a java or javac in the PATH, which is a symlink to the JDK? 26272 26273 if test "x$BOOT_JDK_FOUND" = xno; then 26274 # Now execute the test 26275 26276 # Extract the first word of "javac", so it can be a program name with args. 26277 set dummy javac; ac_word=$2 26278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 26279 $as_echo_n "checking for $ac_word... " >&6; } 26280 if ${ac_cv_path_JAVAC_CHECK+:} false; then : 26281 $as_echo_n "(cached) " >&6 26282 else 26283 case $JAVAC_CHECK in 26284 [\\/]* | ?:[\\/]*) 26285 ac_cv_path_JAVAC_CHECK="$JAVAC_CHECK" # Let the user override the test with a path. 26286 ;; 26287 *) 26288 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 26289 for as_dir in $PATH 26290 do 26291 IFS=$as_save_IFS 26292 test -z "$as_dir" && as_dir=. 26293 for ac_exec_ext in '' $ac_executable_extensions; do 26294 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 26295 ac_cv_path_JAVAC_CHECK="$as_dir/$ac_word$ac_exec_ext" 26296 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 26297 break 2 26298 fi 26299 done 26300 done 26301 IFS=$as_save_IFS 26302 26303 ;; 26304 esac 26305 fi 26306 JAVAC_CHECK=$ac_cv_path_JAVAC_CHECK 26307 if test -n "$JAVAC_CHECK"; then 26308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVAC_CHECK" >&5 26309 $as_echo "$JAVAC_CHECK" >&6; } 26310 else 26311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 26312 $as_echo "no" >&6; } 26313 fi 26314 26315 26316 # Extract the first word of "java", so it can be a program name with args. 26317 set dummy java; ac_word=$2 26318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 26319 $as_echo_n "checking for $ac_word... " >&6; } 26320 if ${ac_cv_path_JAVA_CHECK+:} false; then : 26321 $as_echo_n "(cached) " >&6 26322 else 26323 case $JAVA_CHECK in 26324 [\\/]* | ?:[\\/]*) 26325 ac_cv_path_JAVA_CHECK="$JAVA_CHECK" # Let the user override the test with a path. 26326 ;; 26327 *) 26328 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 26329 for as_dir in $PATH 26330 do 26331 IFS=$as_save_IFS 26332 test -z "$as_dir" && as_dir=. 26333 for ac_exec_ext in '' $ac_executable_extensions; do 26334 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 26335 ac_cv_path_JAVA_CHECK="$as_dir/$ac_word$ac_exec_ext" 26336 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 26337 break 2 26338 fi 26339 done 26340 done 26341 IFS=$as_save_IFS 26342 26343 ;; 26344 esac 26345 fi 26346 JAVA_CHECK=$ac_cv_path_JAVA_CHECK 26347 if test -n "$JAVA_CHECK"; then 26348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVA_CHECK" >&5 26349 $as_echo "$JAVA_CHECK" >&6; } 26350 else 26351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 26352 $as_echo "no" >&6; } 26353 fi 26354 26355 26356 BINARY="$JAVAC_CHECK" 26357 if test "x$JAVAC_CHECK" = x; then 26358 BINARY="$JAVA_CHECK" 26359 fi 26360 if test "x$BINARY" != x; then 26361 # So there is a java(c) binary, it might be part of a JDK. 26362 # Lets find the JDK/JRE directory by following symbolic links. 26363 # Linux/GNU systems often have links from /usr/bin/java to 26364 # /etc/alternatives/java to the real JDK binary. 26365 26366 if test "x$OPENJDK_BUILD_OS" != xwindows; then 26367 # Follow a chain of symbolic links. Use readlink 26368 # where it exists, else fall back to horribly 26369 # complicated shell code. 26370 if test "x$READLINK_TESTED" != yes; then 26371 # On MacOSX there is a readlink tool with a different 26372 # purpose than the GNU readlink tool. Check the found readlink. 26373 ISGNU=`$READLINK --version 2>&1 | $GREP GNU` 26374 if test "x$ISGNU" = x; then 26375 # A readlink that we do not know how to use. 26376 # Are there other non-GNU readlinks out there? 26377 READLINK_TESTED=yes 26378 READLINK= 26379 fi 26380 fi 26381 26382 if test "x$READLINK" != x; then 26383 BINARY=`$READLINK -f $BINARY` 26384 else 26385 # Save the current directory for restoring afterwards 26386 STARTDIR=$PWD 26387 COUNTER=0 26388 sym_link_dir=`$DIRNAME $BINARY` 26389 sym_link_file=`$BASENAME $BINARY` 26390 cd $sym_link_dir 26391 # Use -P flag to resolve symlinks in directories. 26392 cd `$THEPWDCMD -P` 26393 sym_link_dir=`$THEPWDCMD -P` 26394 # Resolve file symlinks 26395 while test $COUNTER -lt 20; do 26396 ISLINK=`$LS -l $sym_link_dir/$sym_link_file | $GREP '\->' | $SED -e 's/.*-> \(.*\)/\1/'` 26397 if test "x$ISLINK" == x; then 26398 # This is not a symbolic link! We are done! 26399 break 26400 fi 26401 # Again resolve directory symlinks since the target of the just found 26402 # link could be in a different directory 26403 cd `$DIRNAME $ISLINK` 26404 sym_link_dir=`$THEPWDCMD -P` 26405 sym_link_file=`$BASENAME $ISLINK` 26406 let COUNTER=COUNTER+1 26407 done 26408 cd $STARTDIR 26409 BINARY=$sym_link_dir/$sym_link_file 26410 fi 26411 fi 26412 26413 BOOT_JDK=`dirname "$BINARY"` 26414 BOOT_JDK=`cd "$BOOT_JDK/.."; pwd` 26415 if test -x "$BOOT_JDK/bin/javac" && test -x "$BOOT_JDK/bin/java"; then 26416 # Looks like we found ourselves an JDK 26417 BOOT_JDK_FOUND=maybe 26418 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using java(c) in PATH" >&5 26419 $as_echo "$as_me: Found potential Boot JDK using java(c) in PATH" >&6;} 26420 fi 26421 fi 26422 26423 26424 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 26425 if test "x$BOOT_JDK_FOUND" = xmaybe; then 26426 # Do we have a bin/java? 26427 if test ! -x "$BOOT_JDK/bin/java"; then 26428 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 26429 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 26430 BOOT_JDK_FOUND=no 26431 else 26432 # Do we have a bin/javac? 26433 if test ! -x "$BOOT_JDK/bin/javac"; then 26434 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 26435 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 26436 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 26437 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 26438 BOOT_JDK_FOUND=no 26439 else 26440 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 26441 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $HEAD -n 1` 26442 26443 # Extra M4 quote needed to protect [] in grep expression. 26444 FOUND_CORRECT_VERSION=`$ECHO $BOOT_JDK_VERSION | $EGREP '\"9([\.+-].*)?\"|(1\.[89]\.)'` 26445 if test "x$FOUND_CORRECT_VERSION" = x; then 26446 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 26447 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 26448 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5 26449 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;} 26450 BOOT_JDK_FOUND=no 26451 else 26452 # We're done! :-) 26453 BOOT_JDK_FOUND=yes 26454 26455 # Only process if variable expands to non-empty 26456 26457 if test "x$BOOT_JDK" != x; then 26458 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 26459 26460 # Input might be given as Windows format, start by converting to 26461 # unix format. 26462 path="$BOOT_JDK" 26463 new_path=`$CYGPATH -u "$path"` 26464 26465 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 26466 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 26467 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 26468 # "foo.exe" is OK but "foo" is an error. 26469 # 26470 # This test is therefore slightly more accurate than "test -f" to check for file precense. 26471 # It is also a way to make sure we got the proper file name for the real test later on. 26472 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 26473 if test "x$test_shortpath" = x; then 26474 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 26475 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 26476 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 26477 fi 26478 26479 # Call helper function which possibly converts this using DOS-style short mode. 26480 # If so, the updated path is stored in $new_path. 26481 26482 input_path="$new_path" 26483 # Check if we need to convert this using DOS-style short mode. If the path 26484 # contains just simple characters, use it. Otherwise (spaces, weird characters), 26485 # take no chances and rewrite it. 26486 # Note: m4 eats our [], so we need to use [ and ] instead. 26487 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 26488 if test "x$has_forbidden_chars" != x; then 26489 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 26490 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 26491 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 26492 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 26493 # Going to short mode and back again did indeed matter. Since short mode is 26494 # case insensitive, let's make it lowercase to improve readability. 26495 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 26496 # Now convert it back to Unix-style (cygpath) 26497 input_path=`$CYGPATH -u "$shortmode_path"` 26498 new_path="$input_path" 26499 fi 26500 fi 26501 26502 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 26503 if test "x$test_cygdrive_prefix" = x; then 26504 # As a simple fix, exclude /usr/bin since it's not a real path. 26505 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 26506 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 26507 # a path prefixed by /cygdrive for fixpath to work. 26508 new_path="$CYGWIN_ROOT_PATH$input_path" 26509 fi 26510 fi 26511 26512 26513 if test "x$path" != "x$new_path"; then 26514 BOOT_JDK="$new_path" 26515 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 26516 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 26517 fi 26518 26519 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 26520 26521 path="$BOOT_JDK" 26522 has_colon=`$ECHO $path | $GREP ^.:` 26523 new_path="$path" 26524 if test "x$has_colon" = x; then 26525 # Not in mixed or Windows style, start by that. 26526 new_path=`cmd //c echo $path` 26527 fi 26528 26529 26530 input_path="$new_path" 26531 # Check if we need to convert this using DOS-style short mode. If the path 26532 # contains just simple characters, use it. Otherwise (spaces, weird characters), 26533 # take no chances and rewrite it. 26534 # Note: m4 eats our [], so we need to use [ and ] instead. 26535 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 26536 if test "x$has_forbidden_chars" != x; then 26537 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 26538 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 26539 fi 26540 26541 26542 windows_path="$new_path" 26543 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 26544 unix_path=`$CYGPATH -u "$windows_path"` 26545 new_path="$unix_path" 26546 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 26547 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 26548 new_path="$unix_path" 26549 fi 26550 26551 if test "x$path" != "x$new_path"; then 26552 BOOT_JDK="$new_path" 26553 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 26554 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 26555 fi 26556 26557 # Save the first 10 bytes of this path to the storage, so fixpath can work. 26558 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 26559 26560 else 26561 # We're on a unix platform. Hooray! :) 26562 path="$BOOT_JDK" 26563 has_space=`$ECHO "$path" | $GREP " "` 26564 if test "x$has_space" != x; then 26565 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 26566 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 26567 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 26568 fi 26569 26570 # Use eval to expand a potential ~ 26571 eval path="$path" 26572 if test ! -f "$path" && test ! -d "$path"; then 26573 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 26574 fi 26575 26576 if test -d "$path"; then 26577 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 26578 else 26579 dir="`$DIRNAME "$path"`" 26580 base="`$BASENAME "$path"`" 26581 BOOT_JDK="`cd "$dir"; $THEPWDCMD -L`/$base" 26582 fi 26583 fi 26584 fi 26585 26586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 26587 $as_echo_n "checking for Boot JDK... " >&6; } 26588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 26589 $as_echo "$BOOT_JDK" >&6; } 26590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 26591 $as_echo_n "checking Boot JDK version... " >&6; } 26592 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 26593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 26594 $as_echo "$BOOT_JDK_VERSION" >&6; } 26595 fi # end check jdk version 26596 fi # end check javac 26597 fi # end check java 26598 fi # end check boot jdk found 26599 fi 26600 26601 26602 # Test: Is there a JDK installed in default, well-known locations? 26603 26604 if test "x$BOOT_JDK_FOUND" = xno; then 26605 # Now execute the test 26606 26607 if test "x$OPENJDK_TARGET_OS" = xwindows; then 26608 26609 if test "x$BOOT_JDK_FOUND" = xno; then 26610 # Now execute the test 26611 26612 if test "x$ProgramW6432" != x; then 26613 VIRTUAL_DIR="$ProgramW6432/Java" 26614 26615 windows_path="$VIRTUAL_DIR" 26616 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 26617 unix_path=`$CYGPATH -u "$windows_path"` 26618 VIRTUAL_DIR="$unix_path" 26619 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 26620 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 26621 VIRTUAL_DIR="$unix_path" 26622 fi 26623 26624 26625 BOOT_JDK_PREFIX="$VIRTUAL_DIR" 26626 BOOT_JDK_SUFFIX="" 26627 ALL_JDKS_FOUND=`$LS "$BOOT_JDK_PREFIX" 2> /dev/null | $SORT -r` 26628 if test "x$ALL_JDKS_FOUND" != x; then 26629 for JDK_TO_TRY in $ALL_JDKS_FOUND ; do 26630 26631 if test "x$BOOT_JDK_FOUND" = xno; then 26632 # Now execute the test 26633 26634 BOOT_JDK="${BOOT_JDK_PREFIX}/${JDK_TO_TRY}${BOOT_JDK_SUFFIX}" 26635 if test -d "$BOOT_JDK"; then 26636 BOOT_JDK_FOUND=maybe 26637 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&5 26638 $as_echo "$as_me: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&6;} 26639 fi 26640 26641 26642 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 26643 if test "x$BOOT_JDK_FOUND" = xmaybe; then 26644 # Do we have a bin/java? 26645 if test ! -x "$BOOT_JDK/bin/java"; then 26646 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 26647 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 26648 BOOT_JDK_FOUND=no 26649 else 26650 # Do we have a bin/javac? 26651 if test ! -x "$BOOT_JDK/bin/javac"; then 26652 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 26653 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 26654 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 26655 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 26656 BOOT_JDK_FOUND=no 26657 else 26658 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 26659 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $HEAD -n 1` 26660 26661 # Extra M4 quote needed to protect [] in grep expression. 26662 FOUND_CORRECT_VERSION=`$ECHO $BOOT_JDK_VERSION | $EGREP '\"9([\.+-].*)?\"|(1\.[89]\.)'` 26663 if test "x$FOUND_CORRECT_VERSION" = x; then 26664 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 26665 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 26666 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5 26667 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;} 26668 BOOT_JDK_FOUND=no 26669 else 26670 # We're done! :-) 26671 BOOT_JDK_FOUND=yes 26672 26673 # Only process if variable expands to non-empty 26674 26675 if test "x$BOOT_JDK" != x; then 26676 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 26677 26678 # Input might be given as Windows format, start by converting to 26679 # unix format. 26680 path="$BOOT_JDK" 26681 new_path=`$CYGPATH -u "$path"` 26682 26683 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 26684 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 26685 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 26686 # "foo.exe" is OK but "foo" is an error. 26687 # 26688 # This test is therefore slightly more accurate than "test -f" to check for file precense. 26689 # It is also a way to make sure we got the proper file name for the real test later on. 26690 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 26691 if test "x$test_shortpath" = x; then 26692 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 26693 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 26694 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 26695 fi 26696 26697 # Call helper function which possibly converts this using DOS-style short mode. 26698 # If so, the updated path is stored in $new_path. 26699 26700 input_path="$new_path" 26701 # Check if we need to convert this using DOS-style short mode. If the path 26702 # contains just simple characters, use it. Otherwise (spaces, weird characters), 26703 # take no chances and rewrite it. 26704 # Note: m4 eats our [], so we need to use [ and ] instead. 26705 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 26706 if test "x$has_forbidden_chars" != x; then 26707 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 26708 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 26709 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 26710 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 26711 # Going to short mode and back again did indeed matter. Since short mode is 26712 # case insensitive, let's make it lowercase to improve readability. 26713 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 26714 # Now convert it back to Unix-style (cygpath) 26715 input_path=`$CYGPATH -u "$shortmode_path"` 26716 new_path="$input_path" 26717 fi 26718 fi 26719 26720 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 26721 if test "x$test_cygdrive_prefix" = x; then 26722 # As a simple fix, exclude /usr/bin since it's not a real path. 26723 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 26724 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 26725 # a path prefixed by /cygdrive for fixpath to work. 26726 new_path="$CYGWIN_ROOT_PATH$input_path" 26727 fi 26728 fi 26729 26730 26731 if test "x$path" != "x$new_path"; then 26732 BOOT_JDK="$new_path" 26733 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 26734 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 26735 fi 26736 26737 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 26738 26739 path="$BOOT_JDK" 26740 has_colon=`$ECHO $path | $GREP ^.:` 26741 new_path="$path" 26742 if test "x$has_colon" = x; then 26743 # Not in mixed or Windows style, start by that. 26744 new_path=`cmd //c echo $path` 26745 fi 26746 26747 26748 input_path="$new_path" 26749 # Check if we need to convert this using DOS-style short mode. If the path 26750 # contains just simple characters, use it. Otherwise (spaces, weird characters), 26751 # take no chances and rewrite it. 26752 # Note: m4 eats our [], so we need to use [ and ] instead. 26753 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 26754 if test "x$has_forbidden_chars" != x; then 26755 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 26756 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 26757 fi 26758 26759 26760 windows_path="$new_path" 26761 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 26762 unix_path=`$CYGPATH -u "$windows_path"` 26763 new_path="$unix_path" 26764 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 26765 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 26766 new_path="$unix_path" 26767 fi 26768 26769 if test "x$path" != "x$new_path"; then 26770 BOOT_JDK="$new_path" 26771 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 26772 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 26773 fi 26774 26775 # Save the first 10 bytes of this path to the storage, so fixpath can work. 26776 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 26777 26778 else 26779 # We're on a unix platform. Hooray! :) 26780 path="$BOOT_JDK" 26781 has_space=`$ECHO "$path" | $GREP " "` 26782 if test "x$has_space" != x; then 26783 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 26784 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 26785 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 26786 fi 26787 26788 # Use eval to expand a potential ~ 26789 eval path="$path" 26790 if test ! -f "$path" && test ! -d "$path"; then 26791 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 26792 fi 26793 26794 if test -d "$path"; then 26795 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 26796 else 26797 dir="`$DIRNAME "$path"`" 26798 base="`$BASENAME "$path"`" 26799 BOOT_JDK="`cd "$dir"; $THEPWDCMD -L`/$base" 26800 fi 26801 fi 26802 fi 26803 26804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 26805 $as_echo_n "checking for Boot JDK... " >&6; } 26806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 26807 $as_echo "$BOOT_JDK" >&6; } 26808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 26809 $as_echo_n "checking Boot JDK version... " >&6; } 26810 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 26811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 26812 $as_echo "$BOOT_JDK_VERSION" >&6; } 26813 fi # end check jdk version 26814 fi # end check javac 26815 fi # end check java 26816 fi # end check boot jdk found 26817 fi 26818 26819 done 26820 fi 26821 26822 fi 26823 26824 26825 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 26826 if test "x$BOOT_JDK_FOUND" = xmaybe; then 26827 # Do we have a bin/java? 26828 if test ! -x "$BOOT_JDK/bin/java"; then 26829 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 26830 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 26831 BOOT_JDK_FOUND=no 26832 else 26833 # Do we have a bin/javac? 26834 if test ! -x "$BOOT_JDK/bin/javac"; then 26835 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 26836 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 26837 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 26838 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 26839 BOOT_JDK_FOUND=no 26840 else 26841 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 26842 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $HEAD -n 1` 26843 26844 # Extra M4 quote needed to protect [] in grep expression. 26845 FOUND_CORRECT_VERSION=`$ECHO $BOOT_JDK_VERSION | $EGREP '\"9([\.+-].*)?\"|(1\.[89]\.)'` 26846 if test "x$FOUND_CORRECT_VERSION" = x; then 26847 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 26848 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 26849 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5 26850 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;} 26851 BOOT_JDK_FOUND=no 26852 else 26853 # We're done! :-) 26854 BOOT_JDK_FOUND=yes 26855 26856 # Only process if variable expands to non-empty 26857 26858 if test "x$BOOT_JDK" != x; then 26859 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 26860 26861 # Input might be given as Windows format, start by converting to 26862 # unix format. 26863 path="$BOOT_JDK" 26864 new_path=`$CYGPATH -u "$path"` 26865 26866 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 26867 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 26868 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 26869 # "foo.exe" is OK but "foo" is an error. 26870 # 26871 # This test is therefore slightly more accurate than "test -f" to check for file precense. 26872 # It is also a way to make sure we got the proper file name for the real test later on. 26873 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 26874 if test "x$test_shortpath" = x; then 26875 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 26876 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 26877 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 26878 fi 26879 26880 # Call helper function which possibly converts this using DOS-style short mode. 26881 # If so, the updated path is stored in $new_path. 26882 26883 input_path="$new_path" 26884 # Check if we need to convert this using DOS-style short mode. If the path 26885 # contains just simple characters, use it. Otherwise (spaces, weird characters), 26886 # take no chances and rewrite it. 26887 # Note: m4 eats our [], so we need to use [ and ] instead. 26888 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 26889 if test "x$has_forbidden_chars" != x; then 26890 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 26891 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 26892 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 26893 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 26894 # Going to short mode and back again did indeed matter. Since short mode is 26895 # case insensitive, let's make it lowercase to improve readability. 26896 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 26897 # Now convert it back to Unix-style (cygpath) 26898 input_path=`$CYGPATH -u "$shortmode_path"` 26899 new_path="$input_path" 26900 fi 26901 fi 26902 26903 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 26904 if test "x$test_cygdrive_prefix" = x; then 26905 # As a simple fix, exclude /usr/bin since it's not a real path. 26906 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 26907 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 26908 # a path prefixed by /cygdrive for fixpath to work. 26909 new_path="$CYGWIN_ROOT_PATH$input_path" 26910 fi 26911 fi 26912 26913 26914 if test "x$path" != "x$new_path"; then 26915 BOOT_JDK="$new_path" 26916 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 26917 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 26918 fi 26919 26920 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 26921 26922 path="$BOOT_JDK" 26923 has_colon=`$ECHO $path | $GREP ^.:` 26924 new_path="$path" 26925 if test "x$has_colon" = x; then 26926 # Not in mixed or Windows style, start by that. 26927 new_path=`cmd //c echo $path` 26928 fi 26929 26930 26931 input_path="$new_path" 26932 # Check if we need to convert this using DOS-style short mode. If the path 26933 # contains just simple characters, use it. Otherwise (spaces, weird characters), 26934 # take no chances and rewrite it. 26935 # Note: m4 eats our [], so we need to use [ and ] instead. 26936 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 26937 if test "x$has_forbidden_chars" != x; then 26938 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 26939 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 26940 fi 26941 26942 26943 windows_path="$new_path" 26944 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 26945 unix_path=`$CYGPATH -u "$windows_path"` 26946 new_path="$unix_path" 26947 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 26948 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 26949 new_path="$unix_path" 26950 fi 26951 26952 if test "x$path" != "x$new_path"; then 26953 BOOT_JDK="$new_path" 26954 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 26955 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 26956 fi 26957 26958 # Save the first 10 bytes of this path to the storage, so fixpath can work. 26959 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 26960 26961 else 26962 # We're on a unix platform. Hooray! :) 26963 path="$BOOT_JDK" 26964 has_space=`$ECHO "$path" | $GREP " "` 26965 if test "x$has_space" != x; then 26966 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 26967 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 26968 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 26969 fi 26970 26971 # Use eval to expand a potential ~ 26972 eval path="$path" 26973 if test ! -f "$path" && test ! -d "$path"; then 26974 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 26975 fi 26976 26977 if test -d "$path"; then 26978 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 26979 else 26980 dir="`$DIRNAME "$path"`" 26981 base="`$BASENAME "$path"`" 26982 BOOT_JDK="`cd "$dir"; $THEPWDCMD -L`/$base" 26983 fi 26984 fi 26985 fi 26986 26987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 26988 $as_echo_n "checking for Boot JDK... " >&6; } 26989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 26990 $as_echo "$BOOT_JDK" >&6; } 26991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 26992 $as_echo_n "checking Boot JDK version... " >&6; } 26993 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 26994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 26995 $as_echo "$BOOT_JDK_VERSION" >&6; } 26996 fi # end check jdk version 26997 fi # end check javac 26998 fi # end check java 26999 fi # end check boot jdk found 27000 fi 27001 27002 27003 if test "x$BOOT_JDK_FOUND" = xno; then 27004 # Now execute the test 27005 27006 if test "x$PROGRAMW6432" != x; then 27007 VIRTUAL_DIR="$PROGRAMW6432/Java" 27008 27009 windows_path="$VIRTUAL_DIR" 27010 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 27011 unix_path=`$CYGPATH -u "$windows_path"` 27012 VIRTUAL_DIR="$unix_path" 27013 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 27014 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 27015 VIRTUAL_DIR="$unix_path" 27016 fi 27017 27018 27019 BOOT_JDK_PREFIX="$VIRTUAL_DIR" 27020 BOOT_JDK_SUFFIX="" 27021 ALL_JDKS_FOUND=`$LS "$BOOT_JDK_PREFIX" 2> /dev/null | $SORT -r` 27022 if test "x$ALL_JDKS_FOUND" != x; then 27023 for JDK_TO_TRY in $ALL_JDKS_FOUND ; do 27024 27025 if test "x$BOOT_JDK_FOUND" = xno; then 27026 # Now execute the test 27027 27028 BOOT_JDK="${BOOT_JDK_PREFIX}/${JDK_TO_TRY}${BOOT_JDK_SUFFIX}" 27029 if test -d "$BOOT_JDK"; then 27030 BOOT_JDK_FOUND=maybe 27031 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&5 27032 $as_echo "$as_me: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&6;} 27033 fi 27034 27035 27036 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 27037 if test "x$BOOT_JDK_FOUND" = xmaybe; then 27038 # Do we have a bin/java? 27039 if test ! -x "$BOOT_JDK/bin/java"; then 27040 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 27041 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 27042 BOOT_JDK_FOUND=no 27043 else 27044 # Do we have a bin/javac? 27045 if test ! -x "$BOOT_JDK/bin/javac"; then 27046 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 27047 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 27048 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 27049 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 27050 BOOT_JDK_FOUND=no 27051 else 27052 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 27053 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $HEAD -n 1` 27054 27055 # Extra M4 quote needed to protect [] in grep expression. 27056 FOUND_CORRECT_VERSION=`$ECHO $BOOT_JDK_VERSION | $EGREP '\"9([\.+-].*)?\"|(1\.[89]\.)'` 27057 if test "x$FOUND_CORRECT_VERSION" = x; then 27058 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 27059 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 27060 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5 27061 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;} 27062 BOOT_JDK_FOUND=no 27063 else 27064 # We're done! :-) 27065 BOOT_JDK_FOUND=yes 27066 27067 # Only process if variable expands to non-empty 27068 27069 if test "x$BOOT_JDK" != x; then 27070 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 27071 27072 # Input might be given as Windows format, start by converting to 27073 # unix format. 27074 path="$BOOT_JDK" 27075 new_path=`$CYGPATH -u "$path"` 27076 27077 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 27078 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 27079 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 27080 # "foo.exe" is OK but "foo" is an error. 27081 # 27082 # This test is therefore slightly more accurate than "test -f" to check for file precense. 27083 # It is also a way to make sure we got the proper file name for the real test later on. 27084 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 27085 if test "x$test_shortpath" = x; then 27086 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 27087 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 27088 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 27089 fi 27090 27091 # Call helper function which possibly converts this using DOS-style short mode. 27092 # If so, the updated path is stored in $new_path. 27093 27094 input_path="$new_path" 27095 # Check if we need to convert this using DOS-style short mode. If the path 27096 # contains just simple characters, use it. Otherwise (spaces, weird characters), 27097 # take no chances and rewrite it. 27098 # Note: m4 eats our [], so we need to use [ and ] instead. 27099 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 27100 if test "x$has_forbidden_chars" != x; then 27101 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 27102 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 27103 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 27104 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 27105 # Going to short mode and back again did indeed matter. Since short mode is 27106 # case insensitive, let's make it lowercase to improve readability. 27107 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 27108 # Now convert it back to Unix-style (cygpath) 27109 input_path=`$CYGPATH -u "$shortmode_path"` 27110 new_path="$input_path" 27111 fi 27112 fi 27113 27114 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 27115 if test "x$test_cygdrive_prefix" = x; then 27116 # As a simple fix, exclude /usr/bin since it's not a real path. 27117 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 27118 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 27119 # a path prefixed by /cygdrive for fixpath to work. 27120 new_path="$CYGWIN_ROOT_PATH$input_path" 27121 fi 27122 fi 27123 27124 27125 if test "x$path" != "x$new_path"; then 27126 BOOT_JDK="$new_path" 27127 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 27128 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 27129 fi 27130 27131 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 27132 27133 path="$BOOT_JDK" 27134 has_colon=`$ECHO $path | $GREP ^.:` 27135 new_path="$path" 27136 if test "x$has_colon" = x; then 27137 # Not in mixed or Windows style, start by that. 27138 new_path=`cmd //c echo $path` 27139 fi 27140 27141 27142 input_path="$new_path" 27143 # Check if we need to convert this using DOS-style short mode. If the path 27144 # contains just simple characters, use it. Otherwise (spaces, weird characters), 27145 # take no chances and rewrite it. 27146 # Note: m4 eats our [], so we need to use [ and ] instead. 27147 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 27148 if test "x$has_forbidden_chars" != x; then 27149 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 27150 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 27151 fi 27152 27153 27154 windows_path="$new_path" 27155 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 27156 unix_path=`$CYGPATH -u "$windows_path"` 27157 new_path="$unix_path" 27158 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 27159 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 27160 new_path="$unix_path" 27161 fi 27162 27163 if test "x$path" != "x$new_path"; then 27164 BOOT_JDK="$new_path" 27165 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 27166 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 27167 fi 27168 27169 # Save the first 10 bytes of this path to the storage, so fixpath can work. 27170 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 27171 27172 else 27173 # We're on a unix platform. Hooray! :) 27174 path="$BOOT_JDK" 27175 has_space=`$ECHO "$path" | $GREP " "` 27176 if test "x$has_space" != x; then 27177 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 27178 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 27179 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 27180 fi 27181 27182 # Use eval to expand a potential ~ 27183 eval path="$path" 27184 if test ! -f "$path" && test ! -d "$path"; then 27185 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 27186 fi 27187 27188 if test -d "$path"; then 27189 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 27190 else 27191 dir="`$DIRNAME "$path"`" 27192 base="`$BASENAME "$path"`" 27193 BOOT_JDK="`cd "$dir"; $THEPWDCMD -L`/$base" 27194 fi 27195 fi 27196 fi 27197 27198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 27199 $as_echo_n "checking for Boot JDK... " >&6; } 27200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 27201 $as_echo "$BOOT_JDK" >&6; } 27202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 27203 $as_echo_n "checking Boot JDK version... " >&6; } 27204 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 27205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 27206 $as_echo "$BOOT_JDK_VERSION" >&6; } 27207 fi # end check jdk version 27208 fi # end check javac 27209 fi # end check java 27210 fi # end check boot jdk found 27211 fi 27212 27213 done 27214 fi 27215 27216 fi 27217 27218 27219 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 27220 if test "x$BOOT_JDK_FOUND" = xmaybe; then 27221 # Do we have a bin/java? 27222 if test ! -x "$BOOT_JDK/bin/java"; then 27223 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 27224 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 27225 BOOT_JDK_FOUND=no 27226 else 27227 # Do we have a bin/javac? 27228 if test ! -x "$BOOT_JDK/bin/javac"; then 27229 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 27230 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 27231 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 27232 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 27233 BOOT_JDK_FOUND=no 27234 else 27235 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 27236 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $HEAD -n 1` 27237 27238 # Extra M4 quote needed to protect [] in grep expression. 27239 FOUND_CORRECT_VERSION=`$ECHO $BOOT_JDK_VERSION | $EGREP '\"9([\.+-].*)?\"|(1\.[89]\.)'` 27240 if test "x$FOUND_CORRECT_VERSION" = x; then 27241 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 27242 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 27243 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5 27244 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;} 27245 BOOT_JDK_FOUND=no 27246 else 27247 # We're done! :-) 27248 BOOT_JDK_FOUND=yes 27249 27250 # Only process if variable expands to non-empty 27251 27252 if test "x$BOOT_JDK" != x; then 27253 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 27254 27255 # Input might be given as Windows format, start by converting to 27256 # unix format. 27257 path="$BOOT_JDK" 27258 new_path=`$CYGPATH -u "$path"` 27259 27260 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 27261 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 27262 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 27263 # "foo.exe" is OK but "foo" is an error. 27264 # 27265 # This test is therefore slightly more accurate than "test -f" to check for file precense. 27266 # It is also a way to make sure we got the proper file name for the real test later on. 27267 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 27268 if test "x$test_shortpath" = x; then 27269 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 27270 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 27271 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 27272 fi 27273 27274 # Call helper function which possibly converts this using DOS-style short mode. 27275 # If so, the updated path is stored in $new_path. 27276 27277 input_path="$new_path" 27278 # Check if we need to convert this using DOS-style short mode. If the path 27279 # contains just simple characters, use it. Otherwise (spaces, weird characters), 27280 # take no chances and rewrite it. 27281 # Note: m4 eats our [], so we need to use [ and ] instead. 27282 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 27283 if test "x$has_forbidden_chars" != x; then 27284 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 27285 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 27286 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 27287 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 27288 # Going to short mode and back again did indeed matter. Since short mode is 27289 # case insensitive, let's make it lowercase to improve readability. 27290 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 27291 # Now convert it back to Unix-style (cygpath) 27292 input_path=`$CYGPATH -u "$shortmode_path"` 27293 new_path="$input_path" 27294 fi 27295 fi 27296 27297 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 27298 if test "x$test_cygdrive_prefix" = x; then 27299 # As a simple fix, exclude /usr/bin since it's not a real path. 27300 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 27301 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 27302 # a path prefixed by /cygdrive for fixpath to work. 27303 new_path="$CYGWIN_ROOT_PATH$input_path" 27304 fi 27305 fi 27306 27307 27308 if test "x$path" != "x$new_path"; then 27309 BOOT_JDK="$new_path" 27310 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 27311 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 27312 fi 27313 27314 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 27315 27316 path="$BOOT_JDK" 27317 has_colon=`$ECHO $path | $GREP ^.:` 27318 new_path="$path" 27319 if test "x$has_colon" = x; then 27320 # Not in mixed or Windows style, start by that. 27321 new_path=`cmd //c echo $path` 27322 fi 27323 27324 27325 input_path="$new_path" 27326 # Check if we need to convert this using DOS-style short mode. If the path 27327 # contains just simple characters, use it. Otherwise (spaces, weird characters), 27328 # take no chances and rewrite it. 27329 # Note: m4 eats our [], so we need to use [ and ] instead. 27330 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 27331 if test "x$has_forbidden_chars" != x; then 27332 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 27333 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 27334 fi 27335 27336 27337 windows_path="$new_path" 27338 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 27339 unix_path=`$CYGPATH -u "$windows_path"` 27340 new_path="$unix_path" 27341 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 27342 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 27343 new_path="$unix_path" 27344 fi 27345 27346 if test "x$path" != "x$new_path"; then 27347 BOOT_JDK="$new_path" 27348 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 27349 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 27350 fi 27351 27352 # Save the first 10 bytes of this path to the storage, so fixpath can work. 27353 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 27354 27355 else 27356 # We're on a unix platform. Hooray! :) 27357 path="$BOOT_JDK" 27358 has_space=`$ECHO "$path" | $GREP " "` 27359 if test "x$has_space" != x; then 27360 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 27361 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 27362 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 27363 fi 27364 27365 # Use eval to expand a potential ~ 27366 eval path="$path" 27367 if test ! -f "$path" && test ! -d "$path"; then 27368 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 27369 fi 27370 27371 if test -d "$path"; then 27372 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 27373 else 27374 dir="`$DIRNAME "$path"`" 27375 base="`$BASENAME "$path"`" 27376 BOOT_JDK="`cd "$dir"; $THEPWDCMD -L`/$base" 27377 fi 27378 fi 27379 fi 27380 27381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 27382 $as_echo_n "checking for Boot JDK... " >&6; } 27383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 27384 $as_echo "$BOOT_JDK" >&6; } 27385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 27386 $as_echo_n "checking Boot JDK version... " >&6; } 27387 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 27388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 27389 $as_echo "$BOOT_JDK_VERSION" >&6; } 27390 fi # end check jdk version 27391 fi # end check javac 27392 fi # end check java 27393 fi # end check boot jdk found 27394 fi 27395 27396 27397 if test "x$BOOT_JDK_FOUND" = xno; then 27398 # Now execute the test 27399 27400 if test "x$PROGRAMFILES" != x; then 27401 VIRTUAL_DIR="$PROGRAMFILES/Java" 27402 27403 windows_path="$VIRTUAL_DIR" 27404 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 27405 unix_path=`$CYGPATH -u "$windows_path"` 27406 VIRTUAL_DIR="$unix_path" 27407 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 27408 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 27409 VIRTUAL_DIR="$unix_path" 27410 fi 27411 27412 27413 BOOT_JDK_PREFIX="$VIRTUAL_DIR" 27414 BOOT_JDK_SUFFIX="" 27415 ALL_JDKS_FOUND=`$LS "$BOOT_JDK_PREFIX" 2> /dev/null | $SORT -r` 27416 if test "x$ALL_JDKS_FOUND" != x; then 27417 for JDK_TO_TRY in $ALL_JDKS_FOUND ; do 27418 27419 if test "x$BOOT_JDK_FOUND" = xno; then 27420 # Now execute the test 27421 27422 BOOT_JDK="${BOOT_JDK_PREFIX}/${JDK_TO_TRY}${BOOT_JDK_SUFFIX}" 27423 if test -d "$BOOT_JDK"; then 27424 BOOT_JDK_FOUND=maybe 27425 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&5 27426 $as_echo "$as_me: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&6;} 27427 fi 27428 27429 27430 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 27431 if test "x$BOOT_JDK_FOUND" = xmaybe; then 27432 # Do we have a bin/java? 27433 if test ! -x "$BOOT_JDK/bin/java"; then 27434 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 27435 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 27436 BOOT_JDK_FOUND=no 27437 else 27438 # Do we have a bin/javac? 27439 if test ! -x "$BOOT_JDK/bin/javac"; then 27440 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 27441 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 27442 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 27443 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 27444 BOOT_JDK_FOUND=no 27445 else 27446 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 27447 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $HEAD -n 1` 27448 27449 # Extra M4 quote needed to protect [] in grep expression. 27450 FOUND_CORRECT_VERSION=`$ECHO $BOOT_JDK_VERSION | $EGREP '\"9([\.+-].*)?\"|(1\.[89]\.)'` 27451 if test "x$FOUND_CORRECT_VERSION" = x; then 27452 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 27453 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 27454 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5 27455 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;} 27456 BOOT_JDK_FOUND=no 27457 else 27458 # We're done! :-) 27459 BOOT_JDK_FOUND=yes 27460 27461 # Only process if variable expands to non-empty 27462 27463 if test "x$BOOT_JDK" != x; then 27464 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 27465 27466 # Input might be given as Windows format, start by converting to 27467 # unix format. 27468 path="$BOOT_JDK" 27469 new_path=`$CYGPATH -u "$path"` 27470 27471 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 27472 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 27473 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 27474 # "foo.exe" is OK but "foo" is an error. 27475 # 27476 # This test is therefore slightly more accurate than "test -f" to check for file precense. 27477 # It is also a way to make sure we got the proper file name for the real test later on. 27478 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 27479 if test "x$test_shortpath" = x; then 27480 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 27481 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 27482 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 27483 fi 27484 27485 # Call helper function which possibly converts this using DOS-style short mode. 27486 # If so, the updated path is stored in $new_path. 27487 27488 input_path="$new_path" 27489 # Check if we need to convert this using DOS-style short mode. If the path 27490 # contains just simple characters, use it. Otherwise (spaces, weird characters), 27491 # take no chances and rewrite it. 27492 # Note: m4 eats our [], so we need to use [ and ] instead. 27493 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 27494 if test "x$has_forbidden_chars" != x; then 27495 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 27496 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 27497 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 27498 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 27499 # Going to short mode and back again did indeed matter. Since short mode is 27500 # case insensitive, let's make it lowercase to improve readability. 27501 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 27502 # Now convert it back to Unix-style (cygpath) 27503 input_path=`$CYGPATH -u "$shortmode_path"` 27504 new_path="$input_path" 27505 fi 27506 fi 27507 27508 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 27509 if test "x$test_cygdrive_prefix" = x; then 27510 # As a simple fix, exclude /usr/bin since it's not a real path. 27511 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 27512 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 27513 # a path prefixed by /cygdrive for fixpath to work. 27514 new_path="$CYGWIN_ROOT_PATH$input_path" 27515 fi 27516 fi 27517 27518 27519 if test "x$path" != "x$new_path"; then 27520 BOOT_JDK="$new_path" 27521 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 27522 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 27523 fi 27524 27525 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 27526 27527 path="$BOOT_JDK" 27528 has_colon=`$ECHO $path | $GREP ^.:` 27529 new_path="$path" 27530 if test "x$has_colon" = x; then 27531 # Not in mixed or Windows style, start by that. 27532 new_path=`cmd //c echo $path` 27533 fi 27534 27535 27536 input_path="$new_path" 27537 # Check if we need to convert this using DOS-style short mode. If the path 27538 # contains just simple characters, use it. Otherwise (spaces, weird characters), 27539 # take no chances and rewrite it. 27540 # Note: m4 eats our [], so we need to use [ and ] instead. 27541 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 27542 if test "x$has_forbidden_chars" != x; then 27543 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 27544 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 27545 fi 27546 27547 27548 windows_path="$new_path" 27549 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 27550 unix_path=`$CYGPATH -u "$windows_path"` 27551 new_path="$unix_path" 27552 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 27553 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 27554 new_path="$unix_path" 27555 fi 27556 27557 if test "x$path" != "x$new_path"; then 27558 BOOT_JDK="$new_path" 27559 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 27560 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 27561 fi 27562 27563 # Save the first 10 bytes of this path to the storage, so fixpath can work. 27564 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 27565 27566 else 27567 # We're on a unix platform. Hooray! :) 27568 path="$BOOT_JDK" 27569 has_space=`$ECHO "$path" | $GREP " "` 27570 if test "x$has_space" != x; then 27571 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 27572 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 27573 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 27574 fi 27575 27576 # Use eval to expand a potential ~ 27577 eval path="$path" 27578 if test ! -f "$path" && test ! -d "$path"; then 27579 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 27580 fi 27581 27582 if test -d "$path"; then 27583 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 27584 else 27585 dir="`$DIRNAME "$path"`" 27586 base="`$BASENAME "$path"`" 27587 BOOT_JDK="`cd "$dir"; $THEPWDCMD -L`/$base" 27588 fi 27589 fi 27590 fi 27591 27592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 27593 $as_echo_n "checking for Boot JDK... " >&6; } 27594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 27595 $as_echo "$BOOT_JDK" >&6; } 27596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 27597 $as_echo_n "checking Boot JDK version... " >&6; } 27598 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 27599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 27600 $as_echo "$BOOT_JDK_VERSION" >&6; } 27601 fi # end check jdk version 27602 fi # end check javac 27603 fi # end check java 27604 fi # end check boot jdk found 27605 fi 27606 27607 done 27608 fi 27609 27610 fi 27611 27612 27613 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 27614 if test "x$BOOT_JDK_FOUND" = xmaybe; then 27615 # Do we have a bin/java? 27616 if test ! -x "$BOOT_JDK/bin/java"; then 27617 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 27618 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 27619 BOOT_JDK_FOUND=no 27620 else 27621 # Do we have a bin/javac? 27622 if test ! -x "$BOOT_JDK/bin/javac"; then 27623 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 27624 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 27625 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 27626 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 27627 BOOT_JDK_FOUND=no 27628 else 27629 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 27630 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $HEAD -n 1` 27631 27632 # Extra M4 quote needed to protect [] in grep expression. 27633 FOUND_CORRECT_VERSION=`$ECHO $BOOT_JDK_VERSION | $EGREP '\"9([\.+-].*)?\"|(1\.[89]\.)'` 27634 if test "x$FOUND_CORRECT_VERSION" = x; then 27635 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 27636 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 27637 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5 27638 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;} 27639 BOOT_JDK_FOUND=no 27640 else 27641 # We're done! :-) 27642 BOOT_JDK_FOUND=yes 27643 27644 # Only process if variable expands to non-empty 27645 27646 if test "x$BOOT_JDK" != x; then 27647 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 27648 27649 # Input might be given as Windows format, start by converting to 27650 # unix format. 27651 path="$BOOT_JDK" 27652 new_path=`$CYGPATH -u "$path"` 27653 27654 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 27655 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 27656 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 27657 # "foo.exe" is OK but "foo" is an error. 27658 # 27659 # This test is therefore slightly more accurate than "test -f" to check for file precense. 27660 # It is also a way to make sure we got the proper file name for the real test later on. 27661 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 27662 if test "x$test_shortpath" = x; then 27663 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 27664 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 27665 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 27666 fi 27667 27668 # Call helper function which possibly converts this using DOS-style short mode. 27669 # If so, the updated path is stored in $new_path. 27670 27671 input_path="$new_path" 27672 # Check if we need to convert this using DOS-style short mode. If the path 27673 # contains just simple characters, use it. Otherwise (spaces, weird characters), 27674 # take no chances and rewrite it. 27675 # Note: m4 eats our [], so we need to use [ and ] instead. 27676 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 27677 if test "x$has_forbidden_chars" != x; then 27678 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 27679 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 27680 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 27681 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 27682 # Going to short mode and back again did indeed matter. Since short mode is 27683 # case insensitive, let's make it lowercase to improve readability. 27684 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 27685 # Now convert it back to Unix-style (cygpath) 27686 input_path=`$CYGPATH -u "$shortmode_path"` 27687 new_path="$input_path" 27688 fi 27689 fi 27690 27691 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 27692 if test "x$test_cygdrive_prefix" = x; then 27693 # As a simple fix, exclude /usr/bin since it's not a real path. 27694 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 27695 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 27696 # a path prefixed by /cygdrive for fixpath to work. 27697 new_path="$CYGWIN_ROOT_PATH$input_path" 27698 fi 27699 fi 27700 27701 27702 if test "x$path" != "x$new_path"; then 27703 BOOT_JDK="$new_path" 27704 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 27705 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 27706 fi 27707 27708 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 27709 27710 path="$BOOT_JDK" 27711 has_colon=`$ECHO $path | $GREP ^.:` 27712 new_path="$path" 27713 if test "x$has_colon" = x; then 27714 # Not in mixed or Windows style, start by that. 27715 new_path=`cmd //c echo $path` 27716 fi 27717 27718 27719 input_path="$new_path" 27720 # Check if we need to convert this using DOS-style short mode. If the path 27721 # contains just simple characters, use it. Otherwise (spaces, weird characters), 27722 # take no chances and rewrite it. 27723 # Note: m4 eats our [], so we need to use [ and ] instead. 27724 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 27725 if test "x$has_forbidden_chars" != x; then 27726 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 27727 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 27728 fi 27729 27730 27731 windows_path="$new_path" 27732 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 27733 unix_path=`$CYGPATH -u "$windows_path"` 27734 new_path="$unix_path" 27735 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 27736 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 27737 new_path="$unix_path" 27738 fi 27739 27740 if test "x$path" != "x$new_path"; then 27741 BOOT_JDK="$new_path" 27742 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 27743 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 27744 fi 27745 27746 # Save the first 10 bytes of this path to the storage, so fixpath can work. 27747 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 27748 27749 else 27750 # We're on a unix platform. Hooray! :) 27751 path="$BOOT_JDK" 27752 has_space=`$ECHO "$path" | $GREP " "` 27753 if test "x$has_space" != x; then 27754 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 27755 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 27756 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 27757 fi 27758 27759 # Use eval to expand a potential ~ 27760 eval path="$path" 27761 if test ! -f "$path" && test ! -d "$path"; then 27762 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 27763 fi 27764 27765 if test -d "$path"; then 27766 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 27767 else 27768 dir="`$DIRNAME "$path"`" 27769 base="`$BASENAME "$path"`" 27770 BOOT_JDK="`cd "$dir"; $THEPWDCMD -L`/$base" 27771 fi 27772 fi 27773 fi 27774 27775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 27776 $as_echo_n "checking for Boot JDK... " >&6; } 27777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 27778 $as_echo "$BOOT_JDK" >&6; } 27779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 27780 $as_echo_n "checking Boot JDK version... " >&6; } 27781 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 27782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 27783 $as_echo "$BOOT_JDK_VERSION" >&6; } 27784 fi # end check jdk version 27785 fi # end check javac 27786 fi # end check java 27787 fi # end check boot jdk found 27788 fi 27789 27790 27791 if test "x$BOOT_JDK_FOUND" = xno; then 27792 # Now execute the test 27793 27794 if test "x$ProgramFiles" != x; then 27795 VIRTUAL_DIR="$ProgramFiles/Java" 27796 27797 windows_path="$VIRTUAL_DIR" 27798 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 27799 unix_path=`$CYGPATH -u "$windows_path"` 27800 VIRTUAL_DIR="$unix_path" 27801 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 27802 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 27803 VIRTUAL_DIR="$unix_path" 27804 fi 27805 27806 27807 BOOT_JDK_PREFIX="$VIRTUAL_DIR" 27808 BOOT_JDK_SUFFIX="" 27809 ALL_JDKS_FOUND=`$LS "$BOOT_JDK_PREFIX" 2> /dev/null | $SORT -r` 27810 if test "x$ALL_JDKS_FOUND" != x; then 27811 for JDK_TO_TRY in $ALL_JDKS_FOUND ; do 27812 27813 if test "x$BOOT_JDK_FOUND" = xno; then 27814 # Now execute the test 27815 27816 BOOT_JDK="${BOOT_JDK_PREFIX}/${JDK_TO_TRY}${BOOT_JDK_SUFFIX}" 27817 if test -d "$BOOT_JDK"; then 27818 BOOT_JDK_FOUND=maybe 27819 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&5 27820 $as_echo "$as_me: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&6;} 27821 fi 27822 27823 27824 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 27825 if test "x$BOOT_JDK_FOUND" = xmaybe; then 27826 # Do we have a bin/java? 27827 if test ! -x "$BOOT_JDK/bin/java"; then 27828 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 27829 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 27830 BOOT_JDK_FOUND=no 27831 else 27832 # Do we have a bin/javac? 27833 if test ! -x "$BOOT_JDK/bin/javac"; then 27834 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 27835 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 27836 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 27837 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 27838 BOOT_JDK_FOUND=no 27839 else 27840 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 27841 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $HEAD -n 1` 27842 27843 # Extra M4 quote needed to protect [] in grep expression. 27844 FOUND_CORRECT_VERSION=`$ECHO $BOOT_JDK_VERSION | $EGREP '\"9([\.+-].*)?\"|(1\.[89]\.)'` 27845 if test "x$FOUND_CORRECT_VERSION" = x; then 27846 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 27847 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 27848 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5 27849 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;} 27850 BOOT_JDK_FOUND=no 27851 else 27852 # We're done! :-) 27853 BOOT_JDK_FOUND=yes 27854 27855 # Only process if variable expands to non-empty 27856 27857 if test "x$BOOT_JDK" != x; then 27858 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 27859 27860 # Input might be given as Windows format, start by converting to 27861 # unix format. 27862 path="$BOOT_JDK" 27863 new_path=`$CYGPATH -u "$path"` 27864 27865 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 27866 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 27867 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 27868 # "foo.exe" is OK but "foo" is an error. 27869 # 27870 # This test is therefore slightly more accurate than "test -f" to check for file precense. 27871 # It is also a way to make sure we got the proper file name for the real test later on. 27872 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 27873 if test "x$test_shortpath" = x; then 27874 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 27875 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 27876 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 27877 fi 27878 27879 # Call helper function which possibly converts this using DOS-style short mode. 27880 # If so, the updated path is stored in $new_path. 27881 27882 input_path="$new_path" 27883 # Check if we need to convert this using DOS-style short mode. If the path 27884 # contains just simple characters, use it. Otherwise (spaces, weird characters), 27885 # take no chances and rewrite it. 27886 # Note: m4 eats our [], so we need to use [ and ] instead. 27887 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 27888 if test "x$has_forbidden_chars" != x; then 27889 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 27890 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 27891 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 27892 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 27893 # Going to short mode and back again did indeed matter. Since short mode is 27894 # case insensitive, let's make it lowercase to improve readability. 27895 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 27896 # Now convert it back to Unix-style (cygpath) 27897 input_path=`$CYGPATH -u "$shortmode_path"` 27898 new_path="$input_path" 27899 fi 27900 fi 27901 27902 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 27903 if test "x$test_cygdrive_prefix" = x; then 27904 # As a simple fix, exclude /usr/bin since it's not a real path. 27905 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 27906 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 27907 # a path prefixed by /cygdrive for fixpath to work. 27908 new_path="$CYGWIN_ROOT_PATH$input_path" 27909 fi 27910 fi 27911 27912 27913 if test "x$path" != "x$new_path"; then 27914 BOOT_JDK="$new_path" 27915 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 27916 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 27917 fi 27918 27919 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 27920 27921 path="$BOOT_JDK" 27922 has_colon=`$ECHO $path | $GREP ^.:` 27923 new_path="$path" 27924 if test "x$has_colon" = x; then 27925 # Not in mixed or Windows style, start by that. 27926 new_path=`cmd //c echo $path` 27927 fi 27928 27929 27930 input_path="$new_path" 27931 # Check if we need to convert this using DOS-style short mode. If the path 27932 # contains just simple characters, use it. Otherwise (spaces, weird characters), 27933 # take no chances and rewrite it. 27934 # Note: m4 eats our [], so we need to use [ and ] instead. 27935 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 27936 if test "x$has_forbidden_chars" != x; then 27937 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 27938 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 27939 fi 27940 27941 27942 windows_path="$new_path" 27943 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 27944 unix_path=`$CYGPATH -u "$windows_path"` 27945 new_path="$unix_path" 27946 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 27947 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 27948 new_path="$unix_path" 27949 fi 27950 27951 if test "x$path" != "x$new_path"; then 27952 BOOT_JDK="$new_path" 27953 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 27954 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 27955 fi 27956 27957 # Save the first 10 bytes of this path to the storage, so fixpath can work. 27958 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 27959 27960 else 27961 # We're on a unix platform. Hooray! :) 27962 path="$BOOT_JDK" 27963 has_space=`$ECHO "$path" | $GREP " "` 27964 if test "x$has_space" != x; then 27965 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 27966 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 27967 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 27968 fi 27969 27970 # Use eval to expand a potential ~ 27971 eval path="$path" 27972 if test ! -f "$path" && test ! -d "$path"; then 27973 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 27974 fi 27975 27976 if test -d "$path"; then 27977 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 27978 else 27979 dir="`$DIRNAME "$path"`" 27980 base="`$BASENAME "$path"`" 27981 BOOT_JDK="`cd "$dir"; $THEPWDCMD -L`/$base" 27982 fi 27983 fi 27984 fi 27985 27986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 27987 $as_echo_n "checking for Boot JDK... " >&6; } 27988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 27989 $as_echo "$BOOT_JDK" >&6; } 27990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 27991 $as_echo_n "checking Boot JDK version... " >&6; } 27992 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 27993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 27994 $as_echo "$BOOT_JDK_VERSION" >&6; } 27995 fi # end check jdk version 27996 fi # end check javac 27997 fi # end check java 27998 fi # end check boot jdk found 27999 fi 28000 28001 done 28002 fi 28003 28004 fi 28005 28006 28007 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 28008 if test "x$BOOT_JDK_FOUND" = xmaybe; then 28009 # Do we have a bin/java? 28010 if test ! -x "$BOOT_JDK/bin/java"; then 28011 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 28012 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 28013 BOOT_JDK_FOUND=no 28014 else 28015 # Do we have a bin/javac? 28016 if test ! -x "$BOOT_JDK/bin/javac"; then 28017 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 28018 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 28019 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 28020 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 28021 BOOT_JDK_FOUND=no 28022 else 28023 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 28024 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $HEAD -n 1` 28025 28026 # Extra M4 quote needed to protect [] in grep expression. 28027 FOUND_CORRECT_VERSION=`$ECHO $BOOT_JDK_VERSION | $EGREP '\"9([\.+-].*)?\"|(1\.[89]\.)'` 28028 if test "x$FOUND_CORRECT_VERSION" = x; then 28029 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 28030 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 28031 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5 28032 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;} 28033 BOOT_JDK_FOUND=no 28034 else 28035 # We're done! :-) 28036 BOOT_JDK_FOUND=yes 28037 28038 # Only process if variable expands to non-empty 28039 28040 if test "x$BOOT_JDK" != x; then 28041 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 28042 28043 # Input might be given as Windows format, start by converting to 28044 # unix format. 28045 path="$BOOT_JDK" 28046 new_path=`$CYGPATH -u "$path"` 28047 28048 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 28049 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 28050 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 28051 # "foo.exe" is OK but "foo" is an error. 28052 # 28053 # This test is therefore slightly more accurate than "test -f" to check for file precense. 28054 # It is also a way to make sure we got the proper file name for the real test later on. 28055 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 28056 if test "x$test_shortpath" = x; then 28057 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 28058 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 28059 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 28060 fi 28061 28062 # Call helper function which possibly converts this using DOS-style short mode. 28063 # If so, the updated path is stored in $new_path. 28064 28065 input_path="$new_path" 28066 # Check if we need to convert this using DOS-style short mode. If the path 28067 # contains just simple characters, use it. Otherwise (spaces, weird characters), 28068 # take no chances and rewrite it. 28069 # Note: m4 eats our [], so we need to use [ and ] instead. 28070 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 28071 if test "x$has_forbidden_chars" != x; then 28072 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 28073 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 28074 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 28075 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 28076 # Going to short mode and back again did indeed matter. Since short mode is 28077 # case insensitive, let's make it lowercase to improve readability. 28078 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 28079 # Now convert it back to Unix-style (cygpath) 28080 input_path=`$CYGPATH -u "$shortmode_path"` 28081 new_path="$input_path" 28082 fi 28083 fi 28084 28085 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 28086 if test "x$test_cygdrive_prefix" = x; then 28087 # As a simple fix, exclude /usr/bin since it's not a real path. 28088 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 28089 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 28090 # a path prefixed by /cygdrive for fixpath to work. 28091 new_path="$CYGWIN_ROOT_PATH$input_path" 28092 fi 28093 fi 28094 28095 28096 if test "x$path" != "x$new_path"; then 28097 BOOT_JDK="$new_path" 28098 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 28099 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 28100 fi 28101 28102 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 28103 28104 path="$BOOT_JDK" 28105 has_colon=`$ECHO $path | $GREP ^.:` 28106 new_path="$path" 28107 if test "x$has_colon" = x; then 28108 # Not in mixed or Windows style, start by that. 28109 new_path=`cmd //c echo $path` 28110 fi 28111 28112 28113 input_path="$new_path" 28114 # Check if we need to convert this using DOS-style short mode. If the path 28115 # contains just simple characters, use it. Otherwise (spaces, weird characters), 28116 # take no chances and rewrite it. 28117 # Note: m4 eats our [], so we need to use [ and ] instead. 28118 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 28119 if test "x$has_forbidden_chars" != x; then 28120 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 28121 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 28122 fi 28123 28124 28125 windows_path="$new_path" 28126 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 28127 unix_path=`$CYGPATH -u "$windows_path"` 28128 new_path="$unix_path" 28129 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 28130 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 28131 new_path="$unix_path" 28132 fi 28133 28134 if test "x$path" != "x$new_path"; then 28135 BOOT_JDK="$new_path" 28136 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 28137 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 28138 fi 28139 28140 # Save the first 10 bytes of this path to the storage, so fixpath can work. 28141 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 28142 28143 else 28144 # We're on a unix platform. Hooray! :) 28145 path="$BOOT_JDK" 28146 has_space=`$ECHO "$path" | $GREP " "` 28147 if test "x$has_space" != x; then 28148 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 28149 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 28150 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 28151 fi 28152 28153 # Use eval to expand a potential ~ 28154 eval path="$path" 28155 if test ! -f "$path" && test ! -d "$path"; then 28156 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 28157 fi 28158 28159 if test -d "$path"; then 28160 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 28161 else 28162 dir="`$DIRNAME "$path"`" 28163 base="`$BASENAME "$path"`" 28164 BOOT_JDK="`cd "$dir"; $THEPWDCMD -L`/$base" 28165 fi 28166 fi 28167 fi 28168 28169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 28170 $as_echo_n "checking for Boot JDK... " >&6; } 28171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 28172 $as_echo "$BOOT_JDK" >&6; } 28173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 28174 $as_echo_n "checking Boot JDK version... " >&6; } 28175 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 28176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 28177 $as_echo "$BOOT_JDK_VERSION" >&6; } 28178 fi # end check jdk version 28179 fi # end check javac 28180 fi # end check java 28181 fi # end check boot jdk found 28182 fi 28183 28184 28185 if test "x$BOOT_JDK_FOUND" = xno; then 28186 # Now execute the test 28187 28188 BOOT_JDK_PREFIX="/cygdrive/c/Program Files/Java" 28189 BOOT_JDK_SUFFIX="" 28190 ALL_JDKS_FOUND=`$LS "$BOOT_JDK_PREFIX" 2> /dev/null | $SORT -r` 28191 if test "x$ALL_JDKS_FOUND" != x; then 28192 for JDK_TO_TRY in $ALL_JDKS_FOUND ; do 28193 28194 if test "x$BOOT_JDK_FOUND" = xno; then 28195 # Now execute the test 28196 28197 BOOT_JDK="${BOOT_JDK_PREFIX}/${JDK_TO_TRY}${BOOT_JDK_SUFFIX}" 28198 if test -d "$BOOT_JDK"; then 28199 BOOT_JDK_FOUND=maybe 28200 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&5 28201 $as_echo "$as_me: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&6;} 28202 fi 28203 28204 28205 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 28206 if test "x$BOOT_JDK_FOUND" = xmaybe; then 28207 # Do we have a bin/java? 28208 if test ! -x "$BOOT_JDK/bin/java"; then 28209 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 28210 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 28211 BOOT_JDK_FOUND=no 28212 else 28213 # Do we have a bin/javac? 28214 if test ! -x "$BOOT_JDK/bin/javac"; then 28215 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 28216 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 28217 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 28218 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 28219 BOOT_JDK_FOUND=no 28220 else 28221 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 28222 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $HEAD -n 1` 28223 28224 # Extra M4 quote needed to protect [] in grep expression. 28225 FOUND_CORRECT_VERSION=`$ECHO $BOOT_JDK_VERSION | $EGREP '\"9([\.+-].*)?\"|(1\.[89]\.)'` 28226 if test "x$FOUND_CORRECT_VERSION" = x; then 28227 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 28228 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 28229 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5 28230 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;} 28231 BOOT_JDK_FOUND=no 28232 else 28233 # We're done! :-) 28234 BOOT_JDK_FOUND=yes 28235 28236 # Only process if variable expands to non-empty 28237 28238 if test "x$BOOT_JDK" != x; then 28239 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 28240 28241 # Input might be given as Windows format, start by converting to 28242 # unix format. 28243 path="$BOOT_JDK" 28244 new_path=`$CYGPATH -u "$path"` 28245 28246 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 28247 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 28248 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 28249 # "foo.exe" is OK but "foo" is an error. 28250 # 28251 # This test is therefore slightly more accurate than "test -f" to check for file precense. 28252 # It is also a way to make sure we got the proper file name for the real test later on. 28253 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 28254 if test "x$test_shortpath" = x; then 28255 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 28256 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 28257 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 28258 fi 28259 28260 # Call helper function which possibly converts this using DOS-style short mode. 28261 # If so, the updated path is stored in $new_path. 28262 28263 input_path="$new_path" 28264 # Check if we need to convert this using DOS-style short mode. If the path 28265 # contains just simple characters, use it. Otherwise (spaces, weird characters), 28266 # take no chances and rewrite it. 28267 # Note: m4 eats our [], so we need to use [ and ] instead. 28268 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 28269 if test "x$has_forbidden_chars" != x; then 28270 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 28271 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 28272 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 28273 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 28274 # Going to short mode and back again did indeed matter. Since short mode is 28275 # case insensitive, let's make it lowercase to improve readability. 28276 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 28277 # Now convert it back to Unix-style (cygpath) 28278 input_path=`$CYGPATH -u "$shortmode_path"` 28279 new_path="$input_path" 28280 fi 28281 fi 28282 28283 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 28284 if test "x$test_cygdrive_prefix" = x; then 28285 # As a simple fix, exclude /usr/bin since it's not a real path. 28286 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 28287 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 28288 # a path prefixed by /cygdrive for fixpath to work. 28289 new_path="$CYGWIN_ROOT_PATH$input_path" 28290 fi 28291 fi 28292 28293 28294 if test "x$path" != "x$new_path"; then 28295 BOOT_JDK="$new_path" 28296 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 28297 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 28298 fi 28299 28300 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 28301 28302 path="$BOOT_JDK" 28303 has_colon=`$ECHO $path | $GREP ^.:` 28304 new_path="$path" 28305 if test "x$has_colon" = x; then 28306 # Not in mixed or Windows style, start by that. 28307 new_path=`cmd //c echo $path` 28308 fi 28309 28310 28311 input_path="$new_path" 28312 # Check if we need to convert this using DOS-style short mode. If the path 28313 # contains just simple characters, use it. Otherwise (spaces, weird characters), 28314 # take no chances and rewrite it. 28315 # Note: m4 eats our [], so we need to use [ and ] instead. 28316 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 28317 if test "x$has_forbidden_chars" != x; then 28318 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 28319 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 28320 fi 28321 28322 28323 windows_path="$new_path" 28324 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 28325 unix_path=`$CYGPATH -u "$windows_path"` 28326 new_path="$unix_path" 28327 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 28328 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 28329 new_path="$unix_path" 28330 fi 28331 28332 if test "x$path" != "x$new_path"; then 28333 BOOT_JDK="$new_path" 28334 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 28335 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 28336 fi 28337 28338 # Save the first 10 bytes of this path to the storage, so fixpath can work. 28339 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 28340 28341 else 28342 # We're on a unix platform. Hooray! :) 28343 path="$BOOT_JDK" 28344 has_space=`$ECHO "$path" | $GREP " "` 28345 if test "x$has_space" != x; then 28346 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 28347 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 28348 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 28349 fi 28350 28351 # Use eval to expand a potential ~ 28352 eval path="$path" 28353 if test ! -f "$path" && test ! -d "$path"; then 28354 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 28355 fi 28356 28357 if test -d "$path"; then 28358 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 28359 else 28360 dir="`$DIRNAME "$path"`" 28361 base="`$BASENAME "$path"`" 28362 BOOT_JDK="`cd "$dir"; $THEPWDCMD -L`/$base" 28363 fi 28364 fi 28365 fi 28366 28367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 28368 $as_echo_n "checking for Boot JDK... " >&6; } 28369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 28370 $as_echo "$BOOT_JDK" >&6; } 28371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 28372 $as_echo_n "checking Boot JDK version... " >&6; } 28373 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 28374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 28375 $as_echo "$BOOT_JDK_VERSION" >&6; } 28376 fi # end check jdk version 28377 fi # end check javac 28378 fi # end check java 28379 fi # end check boot jdk found 28380 fi 28381 28382 done 28383 fi 28384 28385 28386 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 28387 if test "x$BOOT_JDK_FOUND" = xmaybe; then 28388 # Do we have a bin/java? 28389 if test ! -x "$BOOT_JDK/bin/java"; then 28390 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 28391 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 28392 BOOT_JDK_FOUND=no 28393 else 28394 # Do we have a bin/javac? 28395 if test ! -x "$BOOT_JDK/bin/javac"; then 28396 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 28397 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 28398 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 28399 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 28400 BOOT_JDK_FOUND=no 28401 else 28402 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 28403 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $HEAD -n 1` 28404 28405 # Extra M4 quote needed to protect [] in grep expression. 28406 FOUND_CORRECT_VERSION=`$ECHO $BOOT_JDK_VERSION | $EGREP '\"9([\.+-].*)?\"|(1\.[89]\.)'` 28407 if test "x$FOUND_CORRECT_VERSION" = x; then 28408 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 28409 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 28410 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5 28411 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;} 28412 BOOT_JDK_FOUND=no 28413 else 28414 # We're done! :-) 28415 BOOT_JDK_FOUND=yes 28416 28417 # Only process if variable expands to non-empty 28418 28419 if test "x$BOOT_JDK" != x; then 28420 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 28421 28422 # Input might be given as Windows format, start by converting to 28423 # unix format. 28424 path="$BOOT_JDK" 28425 new_path=`$CYGPATH -u "$path"` 28426 28427 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 28428 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 28429 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 28430 # "foo.exe" is OK but "foo" is an error. 28431 # 28432 # This test is therefore slightly more accurate than "test -f" to check for file precense. 28433 # It is also a way to make sure we got the proper file name for the real test later on. 28434 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 28435 if test "x$test_shortpath" = x; then 28436 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 28437 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 28438 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 28439 fi 28440 28441 # Call helper function which possibly converts this using DOS-style short mode. 28442 # If so, the updated path is stored in $new_path. 28443 28444 input_path="$new_path" 28445 # Check if we need to convert this using DOS-style short mode. If the path 28446 # contains just simple characters, use it. Otherwise (spaces, weird characters), 28447 # take no chances and rewrite it. 28448 # Note: m4 eats our [], so we need to use [ and ] instead. 28449 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 28450 if test "x$has_forbidden_chars" != x; then 28451 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 28452 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 28453 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 28454 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 28455 # Going to short mode and back again did indeed matter. Since short mode is 28456 # case insensitive, let's make it lowercase to improve readability. 28457 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 28458 # Now convert it back to Unix-style (cygpath) 28459 input_path=`$CYGPATH -u "$shortmode_path"` 28460 new_path="$input_path" 28461 fi 28462 fi 28463 28464 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 28465 if test "x$test_cygdrive_prefix" = x; then 28466 # As a simple fix, exclude /usr/bin since it's not a real path. 28467 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 28468 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 28469 # a path prefixed by /cygdrive for fixpath to work. 28470 new_path="$CYGWIN_ROOT_PATH$input_path" 28471 fi 28472 fi 28473 28474 28475 if test "x$path" != "x$new_path"; then 28476 BOOT_JDK="$new_path" 28477 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 28478 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 28479 fi 28480 28481 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 28482 28483 path="$BOOT_JDK" 28484 has_colon=`$ECHO $path | $GREP ^.:` 28485 new_path="$path" 28486 if test "x$has_colon" = x; then 28487 # Not in mixed or Windows style, start by that. 28488 new_path=`cmd //c echo $path` 28489 fi 28490 28491 28492 input_path="$new_path" 28493 # Check if we need to convert this using DOS-style short mode. If the path 28494 # contains just simple characters, use it. Otherwise (spaces, weird characters), 28495 # take no chances and rewrite it. 28496 # Note: m4 eats our [], so we need to use [ and ] instead. 28497 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 28498 if test "x$has_forbidden_chars" != x; then 28499 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 28500 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 28501 fi 28502 28503 28504 windows_path="$new_path" 28505 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 28506 unix_path=`$CYGPATH -u "$windows_path"` 28507 new_path="$unix_path" 28508 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 28509 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 28510 new_path="$unix_path" 28511 fi 28512 28513 if test "x$path" != "x$new_path"; then 28514 BOOT_JDK="$new_path" 28515 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 28516 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 28517 fi 28518 28519 # Save the first 10 bytes of this path to the storage, so fixpath can work. 28520 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 28521 28522 else 28523 # We're on a unix platform. Hooray! :) 28524 path="$BOOT_JDK" 28525 has_space=`$ECHO "$path" | $GREP " "` 28526 if test "x$has_space" != x; then 28527 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 28528 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 28529 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 28530 fi 28531 28532 # Use eval to expand a potential ~ 28533 eval path="$path" 28534 if test ! -f "$path" && test ! -d "$path"; then 28535 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 28536 fi 28537 28538 if test -d "$path"; then 28539 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 28540 else 28541 dir="`$DIRNAME "$path"`" 28542 base="`$BASENAME "$path"`" 28543 BOOT_JDK="`cd "$dir"; $THEPWDCMD -L`/$base" 28544 fi 28545 fi 28546 fi 28547 28548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 28549 $as_echo_n "checking for Boot JDK... " >&6; } 28550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 28551 $as_echo "$BOOT_JDK" >&6; } 28552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 28553 $as_echo_n "checking Boot JDK version... " >&6; } 28554 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 28555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 28556 $as_echo "$BOOT_JDK_VERSION" >&6; } 28557 fi # end check jdk version 28558 fi # end check javac 28559 fi # end check java 28560 fi # end check boot jdk found 28561 fi 28562 28563 elif test "x$OPENJDK_TARGET_OS" = xmacosx; then 28564 28565 if test "x$BOOT_JDK_FOUND" = xno; then 28566 # Now execute the test 28567 28568 BOOT_JDK_PREFIX="/Library/Java/JavaVirtualMachines" 28569 BOOT_JDK_SUFFIX="/Contents/Home" 28570 ALL_JDKS_FOUND=`$LS "$BOOT_JDK_PREFIX" 2> /dev/null | $SORT -r` 28571 if test "x$ALL_JDKS_FOUND" != x; then 28572 for JDK_TO_TRY in $ALL_JDKS_FOUND ; do 28573 28574 if test "x$BOOT_JDK_FOUND" = xno; then 28575 # Now execute the test 28576 28577 BOOT_JDK="${BOOT_JDK_PREFIX}/${JDK_TO_TRY}${BOOT_JDK_SUFFIX}" 28578 if test -d "$BOOT_JDK"; then 28579 BOOT_JDK_FOUND=maybe 28580 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&5 28581 $as_echo "$as_me: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&6;} 28582 fi 28583 28584 28585 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 28586 if test "x$BOOT_JDK_FOUND" = xmaybe; then 28587 # Do we have a bin/java? 28588 if test ! -x "$BOOT_JDK/bin/java"; then 28589 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 28590 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 28591 BOOT_JDK_FOUND=no 28592 else 28593 # Do we have a bin/javac? 28594 if test ! -x "$BOOT_JDK/bin/javac"; then 28595 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 28596 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 28597 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 28598 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 28599 BOOT_JDK_FOUND=no 28600 else 28601 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 28602 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $HEAD -n 1` 28603 28604 # Extra M4 quote needed to protect [] in grep expression. 28605 FOUND_CORRECT_VERSION=`$ECHO $BOOT_JDK_VERSION | $EGREP '\"9([\.+-].*)?\"|(1\.[89]\.)'` 28606 if test "x$FOUND_CORRECT_VERSION" = x; then 28607 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 28608 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 28609 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5 28610 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;} 28611 BOOT_JDK_FOUND=no 28612 else 28613 # We're done! :-) 28614 BOOT_JDK_FOUND=yes 28615 28616 # Only process if variable expands to non-empty 28617 28618 if test "x$BOOT_JDK" != x; then 28619 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 28620 28621 # Input might be given as Windows format, start by converting to 28622 # unix format. 28623 path="$BOOT_JDK" 28624 new_path=`$CYGPATH -u "$path"` 28625 28626 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 28627 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 28628 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 28629 # "foo.exe" is OK but "foo" is an error. 28630 # 28631 # This test is therefore slightly more accurate than "test -f" to check for file precense. 28632 # It is also a way to make sure we got the proper file name for the real test later on. 28633 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 28634 if test "x$test_shortpath" = x; then 28635 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 28636 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 28637 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 28638 fi 28639 28640 # Call helper function which possibly converts this using DOS-style short mode. 28641 # If so, the updated path is stored in $new_path. 28642 28643 input_path="$new_path" 28644 # Check if we need to convert this using DOS-style short mode. If the path 28645 # contains just simple characters, use it. Otherwise (spaces, weird characters), 28646 # take no chances and rewrite it. 28647 # Note: m4 eats our [], so we need to use [ and ] instead. 28648 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 28649 if test "x$has_forbidden_chars" != x; then 28650 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 28651 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 28652 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 28653 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 28654 # Going to short mode and back again did indeed matter. Since short mode is 28655 # case insensitive, let's make it lowercase to improve readability. 28656 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 28657 # Now convert it back to Unix-style (cygpath) 28658 input_path=`$CYGPATH -u "$shortmode_path"` 28659 new_path="$input_path" 28660 fi 28661 fi 28662 28663 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 28664 if test "x$test_cygdrive_prefix" = x; then 28665 # As a simple fix, exclude /usr/bin since it's not a real path. 28666 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 28667 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 28668 # a path prefixed by /cygdrive for fixpath to work. 28669 new_path="$CYGWIN_ROOT_PATH$input_path" 28670 fi 28671 fi 28672 28673 28674 if test "x$path" != "x$new_path"; then 28675 BOOT_JDK="$new_path" 28676 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 28677 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 28678 fi 28679 28680 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 28681 28682 path="$BOOT_JDK" 28683 has_colon=`$ECHO $path | $GREP ^.:` 28684 new_path="$path" 28685 if test "x$has_colon" = x; then 28686 # Not in mixed or Windows style, start by that. 28687 new_path=`cmd //c echo $path` 28688 fi 28689 28690 28691 input_path="$new_path" 28692 # Check if we need to convert this using DOS-style short mode. If the path 28693 # contains just simple characters, use it. Otherwise (spaces, weird characters), 28694 # take no chances and rewrite it. 28695 # Note: m4 eats our [], so we need to use [ and ] instead. 28696 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 28697 if test "x$has_forbidden_chars" != x; then 28698 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 28699 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 28700 fi 28701 28702 28703 windows_path="$new_path" 28704 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 28705 unix_path=`$CYGPATH -u "$windows_path"` 28706 new_path="$unix_path" 28707 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 28708 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 28709 new_path="$unix_path" 28710 fi 28711 28712 if test "x$path" != "x$new_path"; then 28713 BOOT_JDK="$new_path" 28714 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 28715 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 28716 fi 28717 28718 # Save the first 10 bytes of this path to the storage, so fixpath can work. 28719 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 28720 28721 else 28722 # We're on a unix platform. Hooray! :) 28723 path="$BOOT_JDK" 28724 has_space=`$ECHO "$path" | $GREP " "` 28725 if test "x$has_space" != x; then 28726 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 28727 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 28728 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 28729 fi 28730 28731 # Use eval to expand a potential ~ 28732 eval path="$path" 28733 if test ! -f "$path" && test ! -d "$path"; then 28734 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 28735 fi 28736 28737 if test -d "$path"; then 28738 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 28739 else 28740 dir="`$DIRNAME "$path"`" 28741 base="`$BASENAME "$path"`" 28742 BOOT_JDK="`cd "$dir"; $THEPWDCMD -L`/$base" 28743 fi 28744 fi 28745 fi 28746 28747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 28748 $as_echo_n "checking for Boot JDK... " >&6; } 28749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 28750 $as_echo "$BOOT_JDK" >&6; } 28751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 28752 $as_echo_n "checking Boot JDK version... " >&6; } 28753 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 28754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 28755 $as_echo "$BOOT_JDK_VERSION" >&6; } 28756 fi # end check jdk version 28757 fi # end check javac 28758 fi # end check java 28759 fi # end check boot jdk found 28760 fi 28761 28762 done 28763 fi 28764 28765 28766 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 28767 if test "x$BOOT_JDK_FOUND" = xmaybe; then 28768 # Do we have a bin/java? 28769 if test ! -x "$BOOT_JDK/bin/java"; then 28770 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 28771 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 28772 BOOT_JDK_FOUND=no 28773 else 28774 # Do we have a bin/javac? 28775 if test ! -x "$BOOT_JDK/bin/javac"; then 28776 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 28777 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 28778 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 28779 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 28780 BOOT_JDK_FOUND=no 28781 else 28782 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 28783 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $HEAD -n 1` 28784 28785 # Extra M4 quote needed to protect [] in grep expression. 28786 FOUND_CORRECT_VERSION=`$ECHO $BOOT_JDK_VERSION | $EGREP '\"9([\.+-].*)?\"|(1\.[89]\.)'` 28787 if test "x$FOUND_CORRECT_VERSION" = x; then 28788 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 28789 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 28790 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5 28791 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;} 28792 BOOT_JDK_FOUND=no 28793 else 28794 # We're done! :-) 28795 BOOT_JDK_FOUND=yes 28796 28797 # Only process if variable expands to non-empty 28798 28799 if test "x$BOOT_JDK" != x; then 28800 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 28801 28802 # Input might be given as Windows format, start by converting to 28803 # unix format. 28804 path="$BOOT_JDK" 28805 new_path=`$CYGPATH -u "$path"` 28806 28807 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 28808 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 28809 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 28810 # "foo.exe" is OK but "foo" is an error. 28811 # 28812 # This test is therefore slightly more accurate than "test -f" to check for file precense. 28813 # It is also a way to make sure we got the proper file name for the real test later on. 28814 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 28815 if test "x$test_shortpath" = x; then 28816 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 28817 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 28818 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 28819 fi 28820 28821 # Call helper function which possibly converts this using DOS-style short mode. 28822 # If so, the updated path is stored in $new_path. 28823 28824 input_path="$new_path" 28825 # Check if we need to convert this using DOS-style short mode. If the path 28826 # contains just simple characters, use it. Otherwise (spaces, weird characters), 28827 # take no chances and rewrite it. 28828 # Note: m4 eats our [], so we need to use [ and ] instead. 28829 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 28830 if test "x$has_forbidden_chars" != x; then 28831 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 28832 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 28833 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 28834 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 28835 # Going to short mode and back again did indeed matter. Since short mode is 28836 # case insensitive, let's make it lowercase to improve readability. 28837 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 28838 # Now convert it back to Unix-style (cygpath) 28839 input_path=`$CYGPATH -u "$shortmode_path"` 28840 new_path="$input_path" 28841 fi 28842 fi 28843 28844 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 28845 if test "x$test_cygdrive_prefix" = x; then 28846 # As a simple fix, exclude /usr/bin since it's not a real path. 28847 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 28848 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 28849 # a path prefixed by /cygdrive for fixpath to work. 28850 new_path="$CYGWIN_ROOT_PATH$input_path" 28851 fi 28852 fi 28853 28854 28855 if test "x$path" != "x$new_path"; then 28856 BOOT_JDK="$new_path" 28857 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 28858 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 28859 fi 28860 28861 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 28862 28863 path="$BOOT_JDK" 28864 has_colon=`$ECHO $path | $GREP ^.:` 28865 new_path="$path" 28866 if test "x$has_colon" = x; then 28867 # Not in mixed or Windows style, start by that. 28868 new_path=`cmd //c echo $path` 28869 fi 28870 28871 28872 input_path="$new_path" 28873 # Check if we need to convert this using DOS-style short mode. If the path 28874 # contains just simple characters, use it. Otherwise (spaces, weird characters), 28875 # take no chances and rewrite it. 28876 # Note: m4 eats our [], so we need to use [ and ] instead. 28877 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 28878 if test "x$has_forbidden_chars" != x; then 28879 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 28880 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 28881 fi 28882 28883 28884 windows_path="$new_path" 28885 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 28886 unix_path=`$CYGPATH -u "$windows_path"` 28887 new_path="$unix_path" 28888 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 28889 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 28890 new_path="$unix_path" 28891 fi 28892 28893 if test "x$path" != "x$new_path"; then 28894 BOOT_JDK="$new_path" 28895 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 28896 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 28897 fi 28898 28899 # Save the first 10 bytes of this path to the storage, so fixpath can work. 28900 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 28901 28902 else 28903 # We're on a unix platform. Hooray! :) 28904 path="$BOOT_JDK" 28905 has_space=`$ECHO "$path" | $GREP " "` 28906 if test "x$has_space" != x; then 28907 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 28908 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 28909 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 28910 fi 28911 28912 # Use eval to expand a potential ~ 28913 eval path="$path" 28914 if test ! -f "$path" && test ! -d "$path"; then 28915 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 28916 fi 28917 28918 if test -d "$path"; then 28919 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 28920 else 28921 dir="`$DIRNAME "$path"`" 28922 base="`$BASENAME "$path"`" 28923 BOOT_JDK="`cd "$dir"; $THEPWDCMD -L`/$base" 28924 fi 28925 fi 28926 fi 28927 28928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 28929 $as_echo_n "checking for Boot JDK... " >&6; } 28930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 28931 $as_echo "$BOOT_JDK" >&6; } 28932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 28933 $as_echo_n "checking Boot JDK version... " >&6; } 28934 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 28935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 28936 $as_echo "$BOOT_JDK_VERSION" >&6; } 28937 fi # end check jdk version 28938 fi # end check javac 28939 fi # end check java 28940 fi # end check boot jdk found 28941 fi 28942 28943 28944 if test "x$BOOT_JDK_FOUND" = xno; then 28945 # Now execute the test 28946 28947 BOOT_JDK_PREFIX="/System/Library/Java/JavaVirtualMachines" 28948 BOOT_JDK_SUFFIX="/Contents/Home" 28949 ALL_JDKS_FOUND=`$LS "$BOOT_JDK_PREFIX" 2> /dev/null | $SORT -r` 28950 if test "x$ALL_JDKS_FOUND" != x; then 28951 for JDK_TO_TRY in $ALL_JDKS_FOUND ; do 28952 28953 if test "x$BOOT_JDK_FOUND" = xno; then 28954 # Now execute the test 28955 28956 BOOT_JDK="${BOOT_JDK_PREFIX}/${JDK_TO_TRY}${BOOT_JDK_SUFFIX}" 28957 if test -d "$BOOT_JDK"; then 28958 BOOT_JDK_FOUND=maybe 28959 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&5 28960 $as_echo "$as_me: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&6;} 28961 fi 28962 28963 28964 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 28965 if test "x$BOOT_JDK_FOUND" = xmaybe; then 28966 # Do we have a bin/java? 28967 if test ! -x "$BOOT_JDK/bin/java"; then 28968 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 28969 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 28970 BOOT_JDK_FOUND=no 28971 else 28972 # Do we have a bin/javac? 28973 if test ! -x "$BOOT_JDK/bin/javac"; then 28974 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 28975 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 28976 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 28977 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 28978 BOOT_JDK_FOUND=no 28979 else 28980 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 28981 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $HEAD -n 1` 28982 28983 # Extra M4 quote needed to protect [] in grep expression. 28984 FOUND_CORRECT_VERSION=`$ECHO $BOOT_JDK_VERSION | $EGREP '\"9([\.+-].*)?\"|(1\.[89]\.)'` 28985 if test "x$FOUND_CORRECT_VERSION" = x; then 28986 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 28987 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 28988 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5 28989 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;} 28990 BOOT_JDK_FOUND=no 28991 else 28992 # We're done! :-) 28993 BOOT_JDK_FOUND=yes 28994 28995 # Only process if variable expands to non-empty 28996 28997 if test "x$BOOT_JDK" != x; then 28998 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 28999 29000 # Input might be given as Windows format, start by converting to 29001 # unix format. 29002 path="$BOOT_JDK" 29003 new_path=`$CYGPATH -u "$path"` 29004 29005 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 29006 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 29007 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 29008 # "foo.exe" is OK but "foo" is an error. 29009 # 29010 # This test is therefore slightly more accurate than "test -f" to check for file precense. 29011 # It is also a way to make sure we got the proper file name for the real test later on. 29012 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 29013 if test "x$test_shortpath" = x; then 29014 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 29015 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 29016 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 29017 fi 29018 29019 # Call helper function which possibly converts this using DOS-style short mode. 29020 # If so, the updated path is stored in $new_path. 29021 29022 input_path="$new_path" 29023 # Check if we need to convert this using DOS-style short mode. If the path 29024 # contains just simple characters, use it. Otherwise (spaces, weird characters), 29025 # take no chances and rewrite it. 29026 # Note: m4 eats our [], so we need to use [ and ] instead. 29027 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 29028 if test "x$has_forbidden_chars" != x; then 29029 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 29030 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 29031 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 29032 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 29033 # Going to short mode and back again did indeed matter. Since short mode is 29034 # case insensitive, let's make it lowercase to improve readability. 29035 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 29036 # Now convert it back to Unix-style (cygpath) 29037 input_path=`$CYGPATH -u "$shortmode_path"` 29038 new_path="$input_path" 29039 fi 29040 fi 29041 29042 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 29043 if test "x$test_cygdrive_prefix" = x; then 29044 # As a simple fix, exclude /usr/bin since it's not a real path. 29045 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 29046 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 29047 # a path prefixed by /cygdrive for fixpath to work. 29048 new_path="$CYGWIN_ROOT_PATH$input_path" 29049 fi 29050 fi 29051 29052 29053 if test "x$path" != "x$new_path"; then 29054 BOOT_JDK="$new_path" 29055 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 29056 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 29057 fi 29058 29059 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 29060 29061 path="$BOOT_JDK" 29062 has_colon=`$ECHO $path | $GREP ^.:` 29063 new_path="$path" 29064 if test "x$has_colon" = x; then 29065 # Not in mixed or Windows style, start by that. 29066 new_path=`cmd //c echo $path` 29067 fi 29068 29069 29070 input_path="$new_path" 29071 # Check if we need to convert this using DOS-style short mode. If the path 29072 # contains just simple characters, use it. Otherwise (spaces, weird characters), 29073 # take no chances and rewrite it. 29074 # Note: m4 eats our [], so we need to use [ and ] instead. 29075 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 29076 if test "x$has_forbidden_chars" != x; then 29077 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 29078 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 29079 fi 29080 29081 29082 windows_path="$new_path" 29083 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 29084 unix_path=`$CYGPATH -u "$windows_path"` 29085 new_path="$unix_path" 29086 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 29087 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 29088 new_path="$unix_path" 29089 fi 29090 29091 if test "x$path" != "x$new_path"; then 29092 BOOT_JDK="$new_path" 29093 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 29094 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 29095 fi 29096 29097 # Save the first 10 bytes of this path to the storage, so fixpath can work. 29098 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 29099 29100 else 29101 # We're on a unix platform. Hooray! :) 29102 path="$BOOT_JDK" 29103 has_space=`$ECHO "$path" | $GREP " "` 29104 if test "x$has_space" != x; then 29105 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 29106 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 29107 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 29108 fi 29109 29110 # Use eval to expand a potential ~ 29111 eval path="$path" 29112 if test ! -f "$path" && test ! -d "$path"; then 29113 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 29114 fi 29115 29116 if test -d "$path"; then 29117 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 29118 else 29119 dir="`$DIRNAME "$path"`" 29120 base="`$BASENAME "$path"`" 29121 BOOT_JDK="`cd "$dir"; $THEPWDCMD -L`/$base" 29122 fi 29123 fi 29124 fi 29125 29126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 29127 $as_echo_n "checking for Boot JDK... " >&6; } 29128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 29129 $as_echo "$BOOT_JDK" >&6; } 29130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 29131 $as_echo_n "checking Boot JDK version... " >&6; } 29132 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 29133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 29134 $as_echo "$BOOT_JDK_VERSION" >&6; } 29135 fi # end check jdk version 29136 fi # end check javac 29137 fi # end check java 29138 fi # end check boot jdk found 29139 fi 29140 29141 done 29142 fi 29143 29144 29145 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 29146 if test "x$BOOT_JDK_FOUND" = xmaybe; then 29147 # Do we have a bin/java? 29148 if test ! -x "$BOOT_JDK/bin/java"; then 29149 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 29150 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 29151 BOOT_JDK_FOUND=no 29152 else 29153 # Do we have a bin/javac? 29154 if test ! -x "$BOOT_JDK/bin/javac"; then 29155 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 29156 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 29157 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 29158 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 29159 BOOT_JDK_FOUND=no 29160 else 29161 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 29162 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $HEAD -n 1` 29163 29164 # Extra M4 quote needed to protect [] in grep expression. 29165 FOUND_CORRECT_VERSION=`$ECHO $BOOT_JDK_VERSION | $EGREP '\"9([\.+-].*)?\"|(1\.[89]\.)'` 29166 if test "x$FOUND_CORRECT_VERSION" = x; then 29167 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 29168 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 29169 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5 29170 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;} 29171 BOOT_JDK_FOUND=no 29172 else 29173 # We're done! :-) 29174 BOOT_JDK_FOUND=yes 29175 29176 # Only process if variable expands to non-empty 29177 29178 if test "x$BOOT_JDK" != x; then 29179 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 29180 29181 # Input might be given as Windows format, start by converting to 29182 # unix format. 29183 path="$BOOT_JDK" 29184 new_path=`$CYGPATH -u "$path"` 29185 29186 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 29187 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 29188 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 29189 # "foo.exe" is OK but "foo" is an error. 29190 # 29191 # This test is therefore slightly more accurate than "test -f" to check for file precense. 29192 # It is also a way to make sure we got the proper file name for the real test later on. 29193 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 29194 if test "x$test_shortpath" = x; then 29195 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 29196 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 29197 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 29198 fi 29199 29200 # Call helper function which possibly converts this using DOS-style short mode. 29201 # If so, the updated path is stored in $new_path. 29202 29203 input_path="$new_path" 29204 # Check if we need to convert this using DOS-style short mode. If the path 29205 # contains just simple characters, use it. Otherwise (spaces, weird characters), 29206 # take no chances and rewrite it. 29207 # Note: m4 eats our [], so we need to use [ and ] instead. 29208 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 29209 if test "x$has_forbidden_chars" != x; then 29210 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 29211 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 29212 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 29213 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 29214 # Going to short mode and back again did indeed matter. Since short mode is 29215 # case insensitive, let's make it lowercase to improve readability. 29216 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 29217 # Now convert it back to Unix-style (cygpath) 29218 input_path=`$CYGPATH -u "$shortmode_path"` 29219 new_path="$input_path" 29220 fi 29221 fi 29222 29223 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 29224 if test "x$test_cygdrive_prefix" = x; then 29225 # As a simple fix, exclude /usr/bin since it's not a real path. 29226 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 29227 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 29228 # a path prefixed by /cygdrive for fixpath to work. 29229 new_path="$CYGWIN_ROOT_PATH$input_path" 29230 fi 29231 fi 29232 29233 29234 if test "x$path" != "x$new_path"; then 29235 BOOT_JDK="$new_path" 29236 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 29237 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 29238 fi 29239 29240 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 29241 29242 path="$BOOT_JDK" 29243 has_colon=`$ECHO $path | $GREP ^.:` 29244 new_path="$path" 29245 if test "x$has_colon" = x; then 29246 # Not in mixed or Windows style, start by that. 29247 new_path=`cmd //c echo $path` 29248 fi 29249 29250 29251 input_path="$new_path" 29252 # Check if we need to convert this using DOS-style short mode. If the path 29253 # contains just simple characters, use it. Otherwise (spaces, weird characters), 29254 # take no chances and rewrite it. 29255 # Note: m4 eats our [], so we need to use [ and ] instead. 29256 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 29257 if test "x$has_forbidden_chars" != x; then 29258 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 29259 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 29260 fi 29261 29262 29263 windows_path="$new_path" 29264 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 29265 unix_path=`$CYGPATH -u "$windows_path"` 29266 new_path="$unix_path" 29267 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 29268 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 29269 new_path="$unix_path" 29270 fi 29271 29272 if test "x$path" != "x$new_path"; then 29273 BOOT_JDK="$new_path" 29274 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 29275 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 29276 fi 29277 29278 # Save the first 10 bytes of this path to the storage, so fixpath can work. 29279 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 29280 29281 else 29282 # We're on a unix platform. Hooray! :) 29283 path="$BOOT_JDK" 29284 has_space=`$ECHO "$path" | $GREP " "` 29285 if test "x$has_space" != x; then 29286 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 29287 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 29288 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 29289 fi 29290 29291 # Use eval to expand a potential ~ 29292 eval path="$path" 29293 if test ! -f "$path" && test ! -d "$path"; then 29294 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 29295 fi 29296 29297 if test -d "$path"; then 29298 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 29299 else 29300 dir="`$DIRNAME "$path"`" 29301 base="`$BASENAME "$path"`" 29302 BOOT_JDK="`cd "$dir"; $THEPWDCMD -L`/$base" 29303 fi 29304 fi 29305 fi 29306 29307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 29308 $as_echo_n "checking for Boot JDK... " >&6; } 29309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 29310 $as_echo "$BOOT_JDK" >&6; } 29311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 29312 $as_echo_n "checking Boot JDK version... " >&6; } 29313 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 29314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 29315 $as_echo "$BOOT_JDK_VERSION" >&6; } 29316 fi # end check jdk version 29317 fi # end check javac 29318 fi # end check java 29319 fi # end check boot jdk found 29320 fi 29321 29322 elif test "x$OPENJDK_TARGET_OS" = xlinux; then 29323 29324 if test "x$BOOT_JDK_FOUND" = xno; then 29325 # Now execute the test 29326 29327 BOOT_JDK_PREFIX="/usr/lib/jvm" 29328 BOOT_JDK_SUFFIX="" 29329 ALL_JDKS_FOUND=`$LS "$BOOT_JDK_PREFIX" 2> /dev/null | $SORT -r` 29330 if test "x$ALL_JDKS_FOUND" != x; then 29331 for JDK_TO_TRY in $ALL_JDKS_FOUND ; do 29332 29333 if test "x$BOOT_JDK_FOUND" = xno; then 29334 # Now execute the test 29335 29336 BOOT_JDK="${BOOT_JDK_PREFIX}/${JDK_TO_TRY}${BOOT_JDK_SUFFIX}" 29337 if test -d "$BOOT_JDK"; then 29338 BOOT_JDK_FOUND=maybe 29339 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&5 29340 $as_echo "$as_me: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&6;} 29341 fi 29342 29343 29344 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 29345 if test "x$BOOT_JDK_FOUND" = xmaybe; then 29346 # Do we have a bin/java? 29347 if test ! -x "$BOOT_JDK/bin/java"; then 29348 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 29349 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 29350 BOOT_JDK_FOUND=no 29351 else 29352 # Do we have a bin/javac? 29353 if test ! -x "$BOOT_JDK/bin/javac"; then 29354 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 29355 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 29356 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 29357 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 29358 BOOT_JDK_FOUND=no 29359 else 29360 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 29361 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $HEAD -n 1` 29362 29363 # Extra M4 quote needed to protect [] in grep expression. 29364 FOUND_CORRECT_VERSION=`$ECHO $BOOT_JDK_VERSION | $EGREP '\"9([\.+-].*)?\"|(1\.[89]\.)'` 29365 if test "x$FOUND_CORRECT_VERSION" = x; then 29366 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 29367 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 29368 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5 29369 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;} 29370 BOOT_JDK_FOUND=no 29371 else 29372 # We're done! :-) 29373 BOOT_JDK_FOUND=yes 29374 29375 # Only process if variable expands to non-empty 29376 29377 if test "x$BOOT_JDK" != x; then 29378 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 29379 29380 # Input might be given as Windows format, start by converting to 29381 # unix format. 29382 path="$BOOT_JDK" 29383 new_path=`$CYGPATH -u "$path"` 29384 29385 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 29386 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 29387 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 29388 # "foo.exe" is OK but "foo" is an error. 29389 # 29390 # This test is therefore slightly more accurate than "test -f" to check for file precense. 29391 # It is also a way to make sure we got the proper file name for the real test later on. 29392 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 29393 if test "x$test_shortpath" = x; then 29394 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 29395 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 29396 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 29397 fi 29398 29399 # Call helper function which possibly converts this using DOS-style short mode. 29400 # If so, the updated path is stored in $new_path. 29401 29402 input_path="$new_path" 29403 # Check if we need to convert this using DOS-style short mode. If the path 29404 # contains just simple characters, use it. Otherwise (spaces, weird characters), 29405 # take no chances and rewrite it. 29406 # Note: m4 eats our [], so we need to use [ and ] instead. 29407 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 29408 if test "x$has_forbidden_chars" != x; then 29409 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 29410 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 29411 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 29412 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 29413 # Going to short mode and back again did indeed matter. Since short mode is 29414 # case insensitive, let's make it lowercase to improve readability. 29415 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 29416 # Now convert it back to Unix-style (cygpath) 29417 input_path=`$CYGPATH -u "$shortmode_path"` 29418 new_path="$input_path" 29419 fi 29420 fi 29421 29422 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 29423 if test "x$test_cygdrive_prefix" = x; then 29424 # As a simple fix, exclude /usr/bin since it's not a real path. 29425 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 29426 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 29427 # a path prefixed by /cygdrive for fixpath to work. 29428 new_path="$CYGWIN_ROOT_PATH$input_path" 29429 fi 29430 fi 29431 29432 29433 if test "x$path" != "x$new_path"; then 29434 BOOT_JDK="$new_path" 29435 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 29436 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 29437 fi 29438 29439 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 29440 29441 path="$BOOT_JDK" 29442 has_colon=`$ECHO $path | $GREP ^.:` 29443 new_path="$path" 29444 if test "x$has_colon" = x; then 29445 # Not in mixed or Windows style, start by that. 29446 new_path=`cmd //c echo $path` 29447 fi 29448 29449 29450 input_path="$new_path" 29451 # Check if we need to convert this using DOS-style short mode. If the path 29452 # contains just simple characters, use it. Otherwise (spaces, weird characters), 29453 # take no chances and rewrite it. 29454 # Note: m4 eats our [], so we need to use [ and ] instead. 29455 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 29456 if test "x$has_forbidden_chars" != x; then 29457 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 29458 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 29459 fi 29460 29461 29462 windows_path="$new_path" 29463 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 29464 unix_path=`$CYGPATH -u "$windows_path"` 29465 new_path="$unix_path" 29466 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 29467 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 29468 new_path="$unix_path" 29469 fi 29470 29471 if test "x$path" != "x$new_path"; then 29472 BOOT_JDK="$new_path" 29473 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 29474 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 29475 fi 29476 29477 # Save the first 10 bytes of this path to the storage, so fixpath can work. 29478 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 29479 29480 else 29481 # We're on a unix platform. Hooray! :) 29482 path="$BOOT_JDK" 29483 has_space=`$ECHO "$path" | $GREP " "` 29484 if test "x$has_space" != x; then 29485 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 29486 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 29487 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 29488 fi 29489 29490 # Use eval to expand a potential ~ 29491 eval path="$path" 29492 if test ! -f "$path" && test ! -d "$path"; then 29493 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 29494 fi 29495 29496 if test -d "$path"; then 29497 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 29498 else 29499 dir="`$DIRNAME "$path"`" 29500 base="`$BASENAME "$path"`" 29501 BOOT_JDK="`cd "$dir"; $THEPWDCMD -L`/$base" 29502 fi 29503 fi 29504 fi 29505 29506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 29507 $as_echo_n "checking for Boot JDK... " >&6; } 29508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 29509 $as_echo "$BOOT_JDK" >&6; } 29510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 29511 $as_echo_n "checking Boot JDK version... " >&6; } 29512 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 29513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 29514 $as_echo "$BOOT_JDK_VERSION" >&6; } 29515 fi # end check jdk version 29516 fi # end check javac 29517 fi # end check java 29518 fi # end check boot jdk found 29519 fi 29520 29521 done 29522 fi 29523 29524 29525 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 29526 if test "x$BOOT_JDK_FOUND" = xmaybe; then 29527 # Do we have a bin/java? 29528 if test ! -x "$BOOT_JDK/bin/java"; then 29529 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 29530 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 29531 BOOT_JDK_FOUND=no 29532 else 29533 # Do we have a bin/javac? 29534 if test ! -x "$BOOT_JDK/bin/javac"; then 29535 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 29536 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 29537 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 29538 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 29539 BOOT_JDK_FOUND=no 29540 else 29541 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 29542 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $HEAD -n 1` 29543 29544 # Extra M4 quote needed to protect [] in grep expression. 29545 FOUND_CORRECT_VERSION=`$ECHO $BOOT_JDK_VERSION | $EGREP '\"9([\.+-].*)?\"|(1\.[89]\.)'` 29546 if test "x$FOUND_CORRECT_VERSION" = x; then 29547 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 29548 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 29549 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5 29550 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;} 29551 BOOT_JDK_FOUND=no 29552 else 29553 # We're done! :-) 29554 BOOT_JDK_FOUND=yes 29555 29556 # Only process if variable expands to non-empty 29557 29558 if test "x$BOOT_JDK" != x; then 29559 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 29560 29561 # Input might be given as Windows format, start by converting to 29562 # unix format. 29563 path="$BOOT_JDK" 29564 new_path=`$CYGPATH -u "$path"` 29565 29566 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 29567 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 29568 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 29569 # "foo.exe" is OK but "foo" is an error. 29570 # 29571 # This test is therefore slightly more accurate than "test -f" to check for file precense. 29572 # It is also a way to make sure we got the proper file name for the real test later on. 29573 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 29574 if test "x$test_shortpath" = x; then 29575 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 29576 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 29577 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 29578 fi 29579 29580 # Call helper function which possibly converts this using DOS-style short mode. 29581 # If so, the updated path is stored in $new_path. 29582 29583 input_path="$new_path" 29584 # Check if we need to convert this using DOS-style short mode. If the path 29585 # contains just simple characters, use it. Otherwise (spaces, weird characters), 29586 # take no chances and rewrite it. 29587 # Note: m4 eats our [], so we need to use [ and ] instead. 29588 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 29589 if test "x$has_forbidden_chars" != x; then 29590 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 29591 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 29592 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 29593 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 29594 # Going to short mode and back again did indeed matter. Since short mode is 29595 # case insensitive, let's make it lowercase to improve readability. 29596 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 29597 # Now convert it back to Unix-style (cygpath) 29598 input_path=`$CYGPATH -u "$shortmode_path"` 29599 new_path="$input_path" 29600 fi 29601 fi 29602 29603 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 29604 if test "x$test_cygdrive_prefix" = x; then 29605 # As a simple fix, exclude /usr/bin since it's not a real path. 29606 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 29607 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 29608 # a path prefixed by /cygdrive for fixpath to work. 29609 new_path="$CYGWIN_ROOT_PATH$input_path" 29610 fi 29611 fi 29612 29613 29614 if test "x$path" != "x$new_path"; then 29615 BOOT_JDK="$new_path" 29616 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 29617 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 29618 fi 29619 29620 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 29621 29622 path="$BOOT_JDK" 29623 has_colon=`$ECHO $path | $GREP ^.:` 29624 new_path="$path" 29625 if test "x$has_colon" = x; then 29626 # Not in mixed or Windows style, start by that. 29627 new_path=`cmd //c echo $path` 29628 fi 29629 29630 29631 input_path="$new_path" 29632 # Check if we need to convert this using DOS-style short mode. If the path 29633 # contains just simple characters, use it. Otherwise (spaces, weird characters), 29634 # take no chances and rewrite it. 29635 # Note: m4 eats our [], so we need to use [ and ] instead. 29636 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 29637 if test "x$has_forbidden_chars" != x; then 29638 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 29639 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 29640 fi 29641 29642 29643 windows_path="$new_path" 29644 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 29645 unix_path=`$CYGPATH -u "$windows_path"` 29646 new_path="$unix_path" 29647 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 29648 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 29649 new_path="$unix_path" 29650 fi 29651 29652 if test "x$path" != "x$new_path"; then 29653 BOOT_JDK="$new_path" 29654 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 29655 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 29656 fi 29657 29658 # Save the first 10 bytes of this path to the storage, so fixpath can work. 29659 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 29660 29661 else 29662 # We're on a unix platform. Hooray! :) 29663 path="$BOOT_JDK" 29664 has_space=`$ECHO "$path" | $GREP " "` 29665 if test "x$has_space" != x; then 29666 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 29667 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 29668 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 29669 fi 29670 29671 # Use eval to expand a potential ~ 29672 eval path="$path" 29673 if test ! -f "$path" && test ! -d "$path"; then 29674 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 29675 fi 29676 29677 if test -d "$path"; then 29678 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 29679 else 29680 dir="`$DIRNAME "$path"`" 29681 base="`$BASENAME "$path"`" 29682 BOOT_JDK="`cd "$dir"; $THEPWDCMD -L`/$base" 29683 fi 29684 fi 29685 fi 29686 29687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 29688 $as_echo_n "checking for Boot JDK... " >&6; } 29689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 29690 $as_echo "$BOOT_JDK" >&6; } 29691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 29692 $as_echo_n "checking Boot JDK version... " >&6; } 29693 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 29694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 29695 $as_echo "$BOOT_JDK_VERSION" >&6; } 29696 fi # end check jdk version 29697 fi # end check javac 29698 fi # end check java 29699 fi # end check boot jdk found 29700 fi 29701 29702 fi 29703 29704 29705 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 29706 if test "x$BOOT_JDK_FOUND" = xmaybe; then 29707 # Do we have a bin/java? 29708 if test ! -x "$BOOT_JDK/bin/java"; then 29709 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 29710 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 29711 BOOT_JDK_FOUND=no 29712 else 29713 # Do we have a bin/javac? 29714 if test ! -x "$BOOT_JDK/bin/javac"; then 29715 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 29716 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 29717 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 29718 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 29719 BOOT_JDK_FOUND=no 29720 else 29721 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 29722 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $HEAD -n 1` 29723 29724 # Extra M4 quote needed to protect [] in grep expression. 29725 FOUND_CORRECT_VERSION=`$ECHO $BOOT_JDK_VERSION | $EGREP '\"9([\.+-].*)?\"|(1\.[89]\.)'` 29726 if test "x$FOUND_CORRECT_VERSION" = x; then 29727 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 29728 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 29729 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5 29730 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;} 29731 BOOT_JDK_FOUND=no 29732 else 29733 # We're done! :-) 29734 BOOT_JDK_FOUND=yes 29735 29736 # Only process if variable expands to non-empty 29737 29738 if test "x$BOOT_JDK" != x; then 29739 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 29740 29741 # Input might be given as Windows format, start by converting to 29742 # unix format. 29743 path="$BOOT_JDK" 29744 new_path=`$CYGPATH -u "$path"` 29745 29746 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 29747 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 29748 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 29749 # "foo.exe" is OK but "foo" is an error. 29750 # 29751 # This test is therefore slightly more accurate than "test -f" to check for file precense. 29752 # It is also a way to make sure we got the proper file name for the real test later on. 29753 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 29754 if test "x$test_shortpath" = x; then 29755 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 29756 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 29757 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 29758 fi 29759 29760 # Call helper function which possibly converts this using DOS-style short mode. 29761 # If so, the updated path is stored in $new_path. 29762 29763 input_path="$new_path" 29764 # Check if we need to convert this using DOS-style short mode. If the path 29765 # contains just simple characters, use it. Otherwise (spaces, weird characters), 29766 # take no chances and rewrite it. 29767 # Note: m4 eats our [], so we need to use [ and ] instead. 29768 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 29769 if test "x$has_forbidden_chars" != x; then 29770 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 29771 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 29772 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 29773 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 29774 # Going to short mode and back again did indeed matter. Since short mode is 29775 # case insensitive, let's make it lowercase to improve readability. 29776 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 29777 # Now convert it back to Unix-style (cygpath) 29778 input_path=`$CYGPATH -u "$shortmode_path"` 29779 new_path="$input_path" 29780 fi 29781 fi 29782 29783 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 29784 if test "x$test_cygdrive_prefix" = x; then 29785 # As a simple fix, exclude /usr/bin since it's not a real path. 29786 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 29787 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 29788 # a path prefixed by /cygdrive for fixpath to work. 29789 new_path="$CYGWIN_ROOT_PATH$input_path" 29790 fi 29791 fi 29792 29793 29794 if test "x$path" != "x$new_path"; then 29795 BOOT_JDK="$new_path" 29796 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 29797 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 29798 fi 29799 29800 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 29801 29802 path="$BOOT_JDK" 29803 has_colon=`$ECHO $path | $GREP ^.:` 29804 new_path="$path" 29805 if test "x$has_colon" = x; then 29806 # Not in mixed or Windows style, start by that. 29807 new_path=`cmd //c echo $path` 29808 fi 29809 29810 29811 input_path="$new_path" 29812 # Check if we need to convert this using DOS-style short mode. If the path 29813 # contains just simple characters, use it. Otherwise (spaces, weird characters), 29814 # take no chances and rewrite it. 29815 # Note: m4 eats our [], so we need to use [ and ] instead. 29816 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 29817 if test "x$has_forbidden_chars" != x; then 29818 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 29819 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 29820 fi 29821 29822 29823 windows_path="$new_path" 29824 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 29825 unix_path=`$CYGPATH -u "$windows_path"` 29826 new_path="$unix_path" 29827 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 29828 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 29829 new_path="$unix_path" 29830 fi 29831 29832 if test "x$path" != "x$new_path"; then 29833 BOOT_JDK="$new_path" 29834 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 29835 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 29836 fi 29837 29838 # Save the first 10 bytes of this path to the storage, so fixpath can work. 29839 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 29840 29841 else 29842 # We're on a unix platform. Hooray! :) 29843 path="$BOOT_JDK" 29844 has_space=`$ECHO "$path" | $GREP " "` 29845 if test "x$has_space" != x; then 29846 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 29847 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 29848 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 29849 fi 29850 29851 # Use eval to expand a potential ~ 29852 eval path="$path" 29853 if test ! -f "$path" && test ! -d "$path"; then 29854 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 29855 fi 29856 29857 if test -d "$path"; then 29858 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 29859 else 29860 dir="`$DIRNAME "$path"`" 29861 base="`$BASENAME "$path"`" 29862 BOOT_JDK="`cd "$dir"; $THEPWDCMD -L`/$base" 29863 fi 29864 fi 29865 fi 29866 29867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 29868 $as_echo_n "checking for Boot JDK... " >&6; } 29869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 29870 $as_echo "$BOOT_JDK" >&6; } 29871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 29872 $as_echo_n "checking Boot JDK version... " >&6; } 29873 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 29874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 29875 $as_echo "$BOOT_JDK_VERSION" >&6; } 29876 fi # end check jdk version 29877 fi # end check javac 29878 fi # end check java 29879 fi # end check boot jdk found 29880 fi 29881 29882 29883 # If we haven't found anything yet, we've truly lost. Give up. 29884 if test "x$BOOT_JDK_FOUND" = xno; then 29885 29886 # Print a helpful message on how to acquire the necessary build dependency. 29887 # openjdk is the help tag: freetype, cups, alsa etc 29888 MISSING_DEPENDENCY=openjdk 29889 29890 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 29891 cygwin_help $MISSING_DEPENDENCY 29892 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 29893 msys_help $MISSING_DEPENDENCY 29894 else 29895 PKGHANDLER_COMMAND= 29896 29897 case $PKGHANDLER in 29898 apt-get) 29899 apt_help $MISSING_DEPENDENCY ;; 29900 yum) 29901 yum_help $MISSING_DEPENDENCY ;; 29902 port) 29903 port_help $MISSING_DEPENDENCY ;; 29904 pkgutil) 29905 pkgutil_help $MISSING_DEPENDENCY ;; 29906 pkgadd) 29907 pkgadd_help $MISSING_DEPENDENCY ;; 29908 esac 29909 29910 if test "x$PKGHANDLER_COMMAND" != x; then 29911 HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'." 29912 fi 29913 fi 29914 29915 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find a valid Boot JDK. $HELP_MSG" >&5 29916 $as_echo "$as_me: Could not find a valid Boot JDK. $HELP_MSG" >&6;} 29917 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be fixed by explicitely setting --with-boot-jdk" >&5 29918 $as_echo "$as_me: This might be fixed by explicitely setting --with-boot-jdk" >&6;} 29919 as_fn_error $? "Cannot continue" "$LINENO" 5 29920 fi 29921 29922 29923 29924 # Setup tools from the Boot JDK. 29925 29926 # Use user overridden value if available, otherwise locate tool in the Boot JDK. 29927 29928 # Publish this variable in the help. 29929 29930 29931 if [ -z "${JAVA+x}" ]; then 29932 # The variable is not set by user, try to locate tool using the code snippet 29933 29934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for java in Boot JDK" >&5 29935 $as_echo_n "checking for java in Boot JDK... " >&6; } 29936 JAVA=$BOOT_JDK/bin/java 29937 if test ! -x $JAVA; then 29938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 29939 $as_echo "not found" >&6; } 29940 { $as_echo "$as_me:${as_lineno-$LINENO}: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&5 29941 $as_echo "$as_me: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&6;} 29942 as_fn_error $? "Could not find java in the Boot JDK" "$LINENO" 5 29943 fi 29944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 29945 $as_echo "ok" >&6; } 29946 29947 29948 else 29949 # The variable is set, but is it from the command line or the environment? 29950 29951 # Try to remove the string !JAVA! from our list. 29952 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!JAVA!/} 29953 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 29954 # If it failed, the variable was not from the command line. Ignore it, 29955 # but warn the user (except for BASH, which is always set by the calling BASH). 29956 if test "xJAVA" != xBASH; then 29957 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of JAVA from the environment. Use command line variables instead." >&5 29958 $as_echo "$as_me: WARNING: Ignoring value of JAVA from the environment. Use command line variables instead." >&2;} 29959 fi 29960 # Try to locate tool using the code snippet 29961 29962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for java in Boot JDK" >&5 29963 $as_echo_n "checking for java in Boot JDK... " >&6; } 29964 JAVA=$BOOT_JDK/bin/java 29965 if test ! -x $JAVA; then 29966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 29967 $as_echo "not found" >&6; } 29968 { $as_echo "$as_me:${as_lineno-$LINENO}: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&5 29969 $as_echo "$as_me: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&6;} 29970 as_fn_error $? "Could not find java in the Boot JDK" "$LINENO" 5 29971 fi 29972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 29973 $as_echo "ok" >&6; } 29974 29975 29976 else 29977 # If it succeeded, then it was overridden by the user. We will use it 29978 # for the tool. 29979 29980 # First remove it from the list of overridden variables, so we can test 29981 # for unknown variables in the end. 29982 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 29983 29984 # Check if we try to supply an empty value 29985 if test "x$JAVA" = x; then 29986 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool JAVA= (no value)" >&5 29987 $as_echo "$as_me: Setting user supplied tool JAVA= (no value)" >&6;} 29988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JAVA" >&5 29989 $as_echo_n "checking for JAVA... " >&6; } 29990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 29991 $as_echo "disabled" >&6; } 29992 else 29993 # Check if the provided tool contains a complete path. 29994 tool_specified="$JAVA" 29995 tool_basename="${tool_specified##*/}" 29996 if test "x$tool_basename" = "x$tool_specified"; then 29997 # A command without a complete path is provided, search $PATH. 29998 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool JAVA=$tool_basename" >&5 29999 $as_echo "$as_me: Will search for user supplied tool JAVA=$tool_basename" >&6;} 30000 # Extract the first word of "$tool_basename", so it can be a program name with args. 30001 set dummy $tool_basename; ac_word=$2 30002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 30003 $as_echo_n "checking for $ac_word... " >&6; } 30004 if ${ac_cv_path_JAVA+:} false; then : 30005 $as_echo_n "(cached) " >&6 30006 else 30007 case $JAVA in 30008 [\\/]* | ?:[\\/]*) 30009 ac_cv_path_JAVA="$JAVA" # Let the user override the test with a path. 30010 ;; 30011 *) 30012 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 30013 for as_dir in $PATH 30014 do 30015 IFS=$as_save_IFS 30016 test -z "$as_dir" && as_dir=. 30017 for ac_exec_ext in '' $ac_executable_extensions; do 30018 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 30019 ac_cv_path_JAVA="$as_dir/$ac_word$ac_exec_ext" 30020 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 30021 break 2 30022 fi 30023 done 30024 done 30025 IFS=$as_save_IFS 30026 30027 ;; 30028 esac 30029 fi 30030 JAVA=$ac_cv_path_JAVA 30031 if test -n "$JAVA"; then 30032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVA" >&5 30033 $as_echo "$JAVA" >&6; } 30034 else 30035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 30036 $as_echo "no" >&6; } 30037 fi 30038 30039 30040 if test "x$JAVA" = x; then 30041 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 30042 fi 30043 else 30044 # Otherwise we believe it is a complete path. Use it as it is. 30045 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool JAVA=$tool_specified" >&5 30046 $as_echo "$as_me: Will use user supplied tool JAVA=$tool_specified" >&6;} 30047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JAVA" >&5 30048 $as_echo_n "checking for JAVA... " >&6; } 30049 if test ! -x "$tool_specified"; then 30050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 30051 $as_echo "not found" >&6; } 30052 as_fn_error $? "User supplied tool JAVA=$tool_specified does not exist or is not executable" "$LINENO" 5 30053 fi 30054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 30055 $as_echo "$tool_specified" >&6; } 30056 fi 30057 fi 30058 fi 30059 30060 fi 30061 30062 30063 30064 # Use user overridden value if available, otherwise locate tool in the Boot JDK. 30065 30066 # Publish this variable in the help. 30067 30068 30069 if [ -z "${JAVAC+x}" ]; then 30070 # The variable is not set by user, try to locate tool using the code snippet 30071 30072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for javac in Boot JDK" >&5 30073 $as_echo_n "checking for javac in Boot JDK... " >&6; } 30074 JAVAC=$BOOT_JDK/bin/javac 30075 if test ! -x $JAVAC; then 30076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 30077 $as_echo "not found" >&6; } 30078 { $as_echo "$as_me:${as_lineno-$LINENO}: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&5 30079 $as_echo "$as_me: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&6;} 30080 as_fn_error $? "Could not find javac in the Boot JDK" "$LINENO" 5 30081 fi 30082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 30083 $as_echo "ok" >&6; } 30084 30085 30086 else 30087 # The variable is set, but is it from the command line or the environment? 30088 30089 # Try to remove the string !JAVAC! from our list. 30090 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!JAVAC!/} 30091 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 30092 # If it failed, the variable was not from the command line. Ignore it, 30093 # but warn the user (except for BASH, which is always set by the calling BASH). 30094 if test "xJAVAC" != xBASH; then 30095 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of JAVAC from the environment. Use command line variables instead." >&5 30096 $as_echo "$as_me: WARNING: Ignoring value of JAVAC from the environment. Use command line variables instead." >&2;} 30097 fi 30098 # Try to locate tool using the code snippet 30099 30100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for javac in Boot JDK" >&5 30101 $as_echo_n "checking for javac in Boot JDK... " >&6; } 30102 JAVAC=$BOOT_JDK/bin/javac 30103 if test ! -x $JAVAC; then 30104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 30105 $as_echo "not found" >&6; } 30106 { $as_echo "$as_me:${as_lineno-$LINENO}: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&5 30107 $as_echo "$as_me: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&6;} 30108 as_fn_error $? "Could not find javac in the Boot JDK" "$LINENO" 5 30109 fi 30110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 30111 $as_echo "ok" >&6; } 30112 30113 30114 else 30115 # If it succeeded, then it was overridden by the user. We will use it 30116 # for the tool. 30117 30118 # First remove it from the list of overridden variables, so we can test 30119 # for unknown variables in the end. 30120 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 30121 30122 # Check if we try to supply an empty value 30123 if test "x$JAVAC" = x; then 30124 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool JAVAC= (no value)" >&5 30125 $as_echo "$as_me: Setting user supplied tool JAVAC= (no value)" >&6;} 30126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JAVAC" >&5 30127 $as_echo_n "checking for JAVAC... " >&6; } 30128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 30129 $as_echo "disabled" >&6; } 30130 else 30131 # Check if the provided tool contains a complete path. 30132 tool_specified="$JAVAC" 30133 tool_basename="${tool_specified##*/}" 30134 if test "x$tool_basename" = "x$tool_specified"; then 30135 # A command without a complete path is provided, search $PATH. 30136 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool JAVAC=$tool_basename" >&5 30137 $as_echo "$as_me: Will search for user supplied tool JAVAC=$tool_basename" >&6;} 30138 # Extract the first word of "$tool_basename", so it can be a program name with args. 30139 set dummy $tool_basename; ac_word=$2 30140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 30141 $as_echo_n "checking for $ac_word... " >&6; } 30142 if ${ac_cv_path_JAVAC+:} false; then : 30143 $as_echo_n "(cached) " >&6 30144 else 30145 case $JAVAC in 30146 [\\/]* | ?:[\\/]*) 30147 ac_cv_path_JAVAC="$JAVAC" # Let the user override the test with a path. 30148 ;; 30149 *) 30150 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 30151 for as_dir in $PATH 30152 do 30153 IFS=$as_save_IFS 30154 test -z "$as_dir" && as_dir=. 30155 for ac_exec_ext in '' $ac_executable_extensions; do 30156 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 30157 ac_cv_path_JAVAC="$as_dir/$ac_word$ac_exec_ext" 30158 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 30159 break 2 30160 fi 30161 done 30162 done 30163 IFS=$as_save_IFS 30164 30165 ;; 30166 esac 30167 fi 30168 JAVAC=$ac_cv_path_JAVAC 30169 if test -n "$JAVAC"; then 30170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVAC" >&5 30171 $as_echo "$JAVAC" >&6; } 30172 else 30173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 30174 $as_echo "no" >&6; } 30175 fi 30176 30177 30178 if test "x$JAVAC" = x; then 30179 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 30180 fi 30181 else 30182 # Otherwise we believe it is a complete path. Use it as it is. 30183 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool JAVAC=$tool_specified" >&5 30184 $as_echo "$as_me: Will use user supplied tool JAVAC=$tool_specified" >&6;} 30185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JAVAC" >&5 30186 $as_echo_n "checking for JAVAC... " >&6; } 30187 if test ! -x "$tool_specified"; then 30188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 30189 $as_echo "not found" >&6; } 30190 as_fn_error $? "User supplied tool JAVAC=$tool_specified does not exist or is not executable" "$LINENO" 5 30191 fi 30192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 30193 $as_echo "$tool_specified" >&6; } 30194 fi 30195 fi 30196 fi 30197 30198 fi 30199 30200 30201 30202 # Use user overridden value if available, otherwise locate tool in the Boot JDK. 30203 30204 # Publish this variable in the help. 30205 30206 30207 if [ -z "${JAVAH+x}" ]; then 30208 # The variable is not set by user, try to locate tool using the code snippet 30209 30210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for javah in Boot JDK" >&5 30211 $as_echo_n "checking for javah in Boot JDK... " >&6; } 30212 JAVAH=$BOOT_JDK/bin/javah 30213 if test ! -x $JAVAH; then 30214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 30215 $as_echo "not found" >&6; } 30216 { $as_echo "$as_me:${as_lineno-$LINENO}: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&5 30217 $as_echo "$as_me: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&6;} 30218 as_fn_error $? "Could not find javah in the Boot JDK" "$LINENO" 5 30219 fi 30220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 30221 $as_echo "ok" >&6; } 30222 30223 30224 else 30225 # The variable is set, but is it from the command line or the environment? 30226 30227 # Try to remove the string !JAVAH! from our list. 30228 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!JAVAH!/} 30229 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 30230 # If it failed, the variable was not from the command line. Ignore it, 30231 # but warn the user (except for BASH, which is always set by the calling BASH). 30232 if test "xJAVAH" != xBASH; then 30233 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of JAVAH from the environment. Use command line variables instead." >&5 30234 $as_echo "$as_me: WARNING: Ignoring value of JAVAH from the environment. Use command line variables instead." >&2;} 30235 fi 30236 # Try to locate tool using the code snippet 30237 30238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for javah in Boot JDK" >&5 30239 $as_echo_n "checking for javah in Boot JDK... " >&6; } 30240 JAVAH=$BOOT_JDK/bin/javah 30241 if test ! -x $JAVAH; then 30242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 30243 $as_echo "not found" >&6; } 30244 { $as_echo "$as_me:${as_lineno-$LINENO}: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&5 30245 $as_echo "$as_me: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&6;} 30246 as_fn_error $? "Could not find javah in the Boot JDK" "$LINENO" 5 30247 fi 30248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 30249 $as_echo "ok" >&6; } 30250 30251 30252 else 30253 # If it succeeded, then it was overridden by the user. We will use it 30254 # for the tool. 30255 30256 # First remove it from the list of overridden variables, so we can test 30257 # for unknown variables in the end. 30258 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 30259 30260 # Check if we try to supply an empty value 30261 if test "x$JAVAH" = x; then 30262 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool JAVAH= (no value)" >&5 30263 $as_echo "$as_me: Setting user supplied tool JAVAH= (no value)" >&6;} 30264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JAVAH" >&5 30265 $as_echo_n "checking for JAVAH... " >&6; } 30266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 30267 $as_echo "disabled" >&6; } 30268 else 30269 # Check if the provided tool contains a complete path. 30270 tool_specified="$JAVAH" 30271 tool_basename="${tool_specified##*/}" 30272 if test "x$tool_basename" = "x$tool_specified"; then 30273 # A command without a complete path is provided, search $PATH. 30274 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool JAVAH=$tool_basename" >&5 30275 $as_echo "$as_me: Will search for user supplied tool JAVAH=$tool_basename" >&6;} 30276 # Extract the first word of "$tool_basename", so it can be a program name with args. 30277 set dummy $tool_basename; ac_word=$2 30278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 30279 $as_echo_n "checking for $ac_word... " >&6; } 30280 if ${ac_cv_path_JAVAH+:} false; then : 30281 $as_echo_n "(cached) " >&6 30282 else 30283 case $JAVAH in 30284 [\\/]* | ?:[\\/]*) 30285 ac_cv_path_JAVAH="$JAVAH" # Let the user override the test with a path. 30286 ;; 30287 *) 30288 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 30289 for as_dir in $PATH 30290 do 30291 IFS=$as_save_IFS 30292 test -z "$as_dir" && as_dir=. 30293 for ac_exec_ext in '' $ac_executable_extensions; do 30294 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 30295 ac_cv_path_JAVAH="$as_dir/$ac_word$ac_exec_ext" 30296 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 30297 break 2 30298 fi 30299 done 30300 done 30301 IFS=$as_save_IFS 30302 30303 ;; 30304 esac 30305 fi 30306 JAVAH=$ac_cv_path_JAVAH 30307 if test -n "$JAVAH"; then 30308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVAH" >&5 30309 $as_echo "$JAVAH" >&6; } 30310 else 30311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 30312 $as_echo "no" >&6; } 30313 fi 30314 30315 30316 if test "x$JAVAH" = x; then 30317 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 30318 fi 30319 else 30320 # Otherwise we believe it is a complete path. Use it as it is. 30321 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool JAVAH=$tool_specified" >&5 30322 $as_echo "$as_me: Will use user supplied tool JAVAH=$tool_specified" >&6;} 30323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JAVAH" >&5 30324 $as_echo_n "checking for JAVAH... " >&6; } 30325 if test ! -x "$tool_specified"; then 30326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 30327 $as_echo "not found" >&6; } 30328 as_fn_error $? "User supplied tool JAVAH=$tool_specified does not exist or is not executable" "$LINENO" 5 30329 fi 30330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 30331 $as_echo "$tool_specified" >&6; } 30332 fi 30333 fi 30334 fi 30335 30336 fi 30337 30338 30339 30340 # Use user overridden value if available, otherwise locate tool in the Boot JDK. 30341 30342 # Publish this variable in the help. 30343 30344 30345 if [ -z "${JAR+x}" ]; then 30346 # The variable is not set by user, try to locate tool using the code snippet 30347 30348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jar in Boot JDK" >&5 30349 $as_echo_n "checking for jar in Boot JDK... " >&6; } 30350 JAR=$BOOT_JDK/bin/jar 30351 if test ! -x $JAR; then 30352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 30353 $as_echo "not found" >&6; } 30354 { $as_echo "$as_me:${as_lineno-$LINENO}: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&5 30355 $as_echo "$as_me: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&6;} 30356 as_fn_error $? "Could not find jar in the Boot JDK" "$LINENO" 5 30357 fi 30358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 30359 $as_echo "ok" >&6; } 30360 30361 30362 else 30363 # The variable is set, but is it from the command line or the environment? 30364 30365 # Try to remove the string !JAR! from our list. 30366 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!JAR!/} 30367 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 30368 # If it failed, the variable was not from the command line. Ignore it, 30369 # but warn the user (except for BASH, which is always set by the calling BASH). 30370 if test "xJAR" != xBASH; then 30371 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of JAR from the environment. Use command line variables instead." >&5 30372 $as_echo "$as_me: WARNING: Ignoring value of JAR from the environment. Use command line variables instead." >&2;} 30373 fi 30374 # Try to locate tool using the code snippet 30375 30376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jar in Boot JDK" >&5 30377 $as_echo_n "checking for jar in Boot JDK... " >&6; } 30378 JAR=$BOOT_JDK/bin/jar 30379 if test ! -x $JAR; then 30380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 30381 $as_echo "not found" >&6; } 30382 { $as_echo "$as_me:${as_lineno-$LINENO}: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&5 30383 $as_echo "$as_me: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&6;} 30384 as_fn_error $? "Could not find jar in the Boot JDK" "$LINENO" 5 30385 fi 30386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 30387 $as_echo "ok" >&6; } 30388 30389 30390 else 30391 # If it succeeded, then it was overridden by the user. We will use it 30392 # for the tool. 30393 30394 # First remove it from the list of overridden variables, so we can test 30395 # for unknown variables in the end. 30396 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 30397 30398 # Check if we try to supply an empty value 30399 if test "x$JAR" = x; then 30400 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool JAR= (no value)" >&5 30401 $as_echo "$as_me: Setting user supplied tool JAR= (no value)" >&6;} 30402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JAR" >&5 30403 $as_echo_n "checking for JAR... " >&6; } 30404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 30405 $as_echo "disabled" >&6; } 30406 else 30407 # Check if the provided tool contains a complete path. 30408 tool_specified="$JAR" 30409 tool_basename="${tool_specified##*/}" 30410 if test "x$tool_basename" = "x$tool_specified"; then 30411 # A command without a complete path is provided, search $PATH. 30412 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool JAR=$tool_basename" >&5 30413 $as_echo "$as_me: Will search for user supplied tool JAR=$tool_basename" >&6;} 30414 # Extract the first word of "$tool_basename", so it can be a program name with args. 30415 set dummy $tool_basename; ac_word=$2 30416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 30417 $as_echo_n "checking for $ac_word... " >&6; } 30418 if ${ac_cv_path_JAR+:} false; then : 30419 $as_echo_n "(cached) " >&6 30420 else 30421 case $JAR in 30422 [\\/]* | ?:[\\/]*) 30423 ac_cv_path_JAR="$JAR" # Let the user override the test with a path. 30424 ;; 30425 *) 30426 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 30427 for as_dir in $PATH 30428 do 30429 IFS=$as_save_IFS 30430 test -z "$as_dir" && as_dir=. 30431 for ac_exec_ext in '' $ac_executable_extensions; do 30432 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 30433 ac_cv_path_JAR="$as_dir/$ac_word$ac_exec_ext" 30434 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 30435 break 2 30436 fi 30437 done 30438 done 30439 IFS=$as_save_IFS 30440 30441 ;; 30442 esac 30443 fi 30444 JAR=$ac_cv_path_JAR 30445 if test -n "$JAR"; then 30446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAR" >&5 30447 $as_echo "$JAR" >&6; } 30448 else 30449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 30450 $as_echo "no" >&6; } 30451 fi 30452 30453 30454 if test "x$JAR" = x; then 30455 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 30456 fi 30457 else 30458 # Otherwise we believe it is a complete path. Use it as it is. 30459 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool JAR=$tool_specified" >&5 30460 $as_echo "$as_me: Will use user supplied tool JAR=$tool_specified" >&6;} 30461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JAR" >&5 30462 $as_echo_n "checking for JAR... " >&6; } 30463 if test ! -x "$tool_specified"; then 30464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 30465 $as_echo "not found" >&6; } 30466 as_fn_error $? "User supplied tool JAR=$tool_specified does not exist or is not executable" "$LINENO" 5 30467 fi 30468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 30469 $as_echo "$tool_specified" >&6; } 30470 fi 30471 fi 30472 fi 30473 30474 fi 30475 30476 30477 30478 # Use user overridden value if available, otherwise locate tool in the Boot JDK. 30479 30480 # Publish this variable in the help. 30481 30482 30483 if [ -z "${JARSIGNER+x}" ]; then 30484 # The variable is not set by user, try to locate tool using the code snippet 30485 30486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jarsigner in Boot JDK" >&5 30487 $as_echo_n "checking for jarsigner in Boot JDK... " >&6; } 30488 JARSIGNER=$BOOT_JDK/bin/jarsigner 30489 if test ! -x $JARSIGNER; then 30490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 30491 $as_echo "not found" >&6; } 30492 { $as_echo "$as_me:${as_lineno-$LINENO}: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&5 30493 $as_echo "$as_me: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&6;} 30494 as_fn_error $? "Could not find jarsigner in the Boot JDK" "$LINENO" 5 30495 fi 30496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 30497 $as_echo "ok" >&6; } 30498 30499 30500 else 30501 # The variable is set, but is it from the command line or the environment? 30502 30503 # Try to remove the string !JARSIGNER! from our list. 30504 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!JARSIGNER!/} 30505 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 30506 # If it failed, the variable was not from the command line. Ignore it, 30507 # but warn the user (except for BASH, which is always set by the calling BASH). 30508 if test "xJARSIGNER" != xBASH; then 30509 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of JARSIGNER from the environment. Use command line variables instead." >&5 30510 $as_echo "$as_me: WARNING: Ignoring value of JARSIGNER from the environment. Use command line variables instead." >&2;} 30511 fi 30512 # Try to locate tool using the code snippet 30513 30514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jarsigner in Boot JDK" >&5 30515 $as_echo_n "checking for jarsigner in Boot JDK... " >&6; } 30516 JARSIGNER=$BOOT_JDK/bin/jarsigner 30517 if test ! -x $JARSIGNER; then 30518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 30519 $as_echo "not found" >&6; } 30520 { $as_echo "$as_me:${as_lineno-$LINENO}: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&5 30521 $as_echo "$as_me: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&6;} 30522 as_fn_error $? "Could not find jarsigner in the Boot JDK" "$LINENO" 5 30523 fi 30524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 30525 $as_echo "ok" >&6; } 30526 30527 30528 else 30529 # If it succeeded, then it was overridden by the user. We will use it 30530 # for the tool. 30531 30532 # First remove it from the list of overridden variables, so we can test 30533 # for unknown variables in the end. 30534 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 30535 30536 # Check if we try to supply an empty value 30537 if test "x$JARSIGNER" = x; then 30538 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool JARSIGNER= (no value)" >&5 30539 $as_echo "$as_me: Setting user supplied tool JARSIGNER= (no value)" >&6;} 30540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JARSIGNER" >&5 30541 $as_echo_n "checking for JARSIGNER... " >&6; } 30542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 30543 $as_echo "disabled" >&6; } 30544 else 30545 # Check if the provided tool contains a complete path. 30546 tool_specified="$JARSIGNER" 30547 tool_basename="${tool_specified##*/}" 30548 if test "x$tool_basename" = "x$tool_specified"; then 30549 # A command without a complete path is provided, search $PATH. 30550 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool JARSIGNER=$tool_basename" >&5 30551 $as_echo "$as_me: Will search for user supplied tool JARSIGNER=$tool_basename" >&6;} 30552 # Extract the first word of "$tool_basename", so it can be a program name with args. 30553 set dummy $tool_basename; ac_word=$2 30554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 30555 $as_echo_n "checking for $ac_word... " >&6; } 30556 if ${ac_cv_path_JARSIGNER+:} false; then : 30557 $as_echo_n "(cached) " >&6 30558 else 30559 case $JARSIGNER in 30560 [\\/]* | ?:[\\/]*) 30561 ac_cv_path_JARSIGNER="$JARSIGNER" # Let the user override the test with a path. 30562 ;; 30563 *) 30564 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 30565 for as_dir in $PATH 30566 do 30567 IFS=$as_save_IFS 30568 test -z "$as_dir" && as_dir=. 30569 for ac_exec_ext in '' $ac_executable_extensions; do 30570 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 30571 ac_cv_path_JARSIGNER="$as_dir/$ac_word$ac_exec_ext" 30572 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 30573 break 2 30574 fi 30575 done 30576 done 30577 IFS=$as_save_IFS 30578 30579 ;; 30580 esac 30581 fi 30582 JARSIGNER=$ac_cv_path_JARSIGNER 30583 if test -n "$JARSIGNER"; then 30584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JARSIGNER" >&5 30585 $as_echo "$JARSIGNER" >&6; } 30586 else 30587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 30588 $as_echo "no" >&6; } 30589 fi 30590 30591 30592 if test "x$JARSIGNER" = x; then 30593 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 30594 fi 30595 else 30596 # Otherwise we believe it is a complete path. Use it as it is. 30597 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool JARSIGNER=$tool_specified" >&5 30598 $as_echo "$as_me: Will use user supplied tool JARSIGNER=$tool_specified" >&6;} 30599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JARSIGNER" >&5 30600 $as_echo_n "checking for JARSIGNER... " >&6; } 30601 if test ! -x "$tool_specified"; then 30602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 30603 $as_echo "not found" >&6; } 30604 as_fn_error $? "User supplied tool JARSIGNER=$tool_specified does not exist or is not executable" "$LINENO" 5 30605 fi 30606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 30607 $as_echo "$tool_specified" >&6; } 30608 fi 30609 fi 30610 fi 30611 30612 fi 30613 30614 30615 30616 # Finally, set some other options... 30617 30618 # When compiling code to be executed by the Boot JDK, force jdk8 compatibility. 30619 BOOT_JDK_SOURCETARGET="-source 8 -target 8" 30620 30621 30622 30623 $ECHO "Check if jvm arg is ok: -Xpatch:foo=bar" >&5 30624 $ECHO "Command: $JAVA -Xpatch:foo=bar -version" >&5 30625 OUTPUT=`$JAVA -Xpatch:foo=bar -version 2>&1` 30626 FOUND_WARN=`$ECHO "$OUTPUT" | $GREP -i warn` 30627 FOUND_VERSION=`$ECHO $OUTPUT | $GREP " version \""` 30628 if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then 30629 dummy="$dummy -Xpatch:foo=bar" 30630 JVM_ARG_OK=true 30631 else 30632 $ECHO "Arg failed:" >&5 30633 $ECHO "$OUTPUT" >&5 30634 JVM_ARG_OK=false 30635 fi 30636 30637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Boot JDK supports modules" >&5 30638 $as_echo_n "checking if Boot JDK supports modules... " >&6; } 30639 if test "x$JVM_ARG_OK" = "xtrue"; then 30640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 30641 $as_echo "yes" >&6; } 30642 BOOT_JDK_MODULAR="true" 30643 else 30644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 30645 $as_echo "no" >&6; } 30646 BOOT_JDK_MODULAR="false" 30647 fi 30648 30649 30650 30651 30652 # Check if the boot jdk is 32 or 64 bit 30653 if "$JAVA" -d64 -version > /dev/null 2>&1; then 30654 BOOT_JDK_BITS="64" 30655 else 30656 BOOT_JDK_BITS="32" 30657 fi 30658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Boot JDK is 32 or 64 bits" >&5 30659 $as_echo_n "checking if Boot JDK is 32 or 64 bits... " >&6; } 30660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_BITS" >&5 30661 $as_echo "$BOOT_JDK_BITS" >&6; } 30662 30663 30664 30665 30666 # Check whether --with-build-jdk was given. 30667 if test "${with_build_jdk+set}" = set; then : 30668 withval=$with_build_jdk; 30669 fi 30670 30671 30672 CREATE_BUILDJDK=false 30673 EXTERNAL_BUILDJDK=false 30674 BUILD_JDK_FOUND="no" 30675 if test "x$with_build_jdk" != "x"; then 30676 30677 if test "x$BUILD_JDK_FOUND" = xno; then 30678 # Execute the test 30679 30680 if test "x$with_build_jdk" != x; then 30681 BUILD_JDK=$with_build_jdk 30682 BUILD_JDK_FOUND=maybe 30683 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Build JDK using configure arguments" >&5 30684 $as_echo "$as_me: Found potential Build JDK using configure arguments" >&6;} 30685 fi 30686 30687 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 30688 if test "x$BUILD_JDK_FOUND" = xmaybe; then 30689 # Do we have a bin/java? 30690 if test ! -x "$BUILD_JDK/bin/java"; then 30691 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Build JDK found at $BUILD_JDK did not contain bin/java; ignoring" >&5 30692 $as_echo "$as_me: Potential Build JDK found at $BUILD_JDK did not contain bin/java; ignoring" >&6;} 30693 BUILD_JDK_FOUND=no 30694 elif test ! -x "$BUILD_JDK/bin/jlink"; then 30695 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Build JDK found at $BUILD_JDK did not contain bin/jlink; ignoring" >&5 30696 $as_echo "$as_me: Potential Build JDK found at $BUILD_JDK did not contain bin/jlink; ignoring" >&6;} 30697 BUILD_JDK_FOUND=no 30698 elif test ! -x "$BUILD_JDK/bin/jmod"; then 30699 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Build JDK found at $BUILD_JDK did not contain bin/jmod; ignoring" >&5 30700 $as_echo "$as_me: Potential Build JDK found at $BUILD_JDK did not contain bin/jmod; ignoring" >&6;} 30701 BUILD_JDK_FOUND=no 30702 elif test ! -x "$BUILD_JDK/bin/javac"; then 30703 # Do we have a bin/javac? 30704 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Build JDK found at $BUILD_JDK did not contain bin/javac; ignoring" >&5 30705 $as_echo "$as_me: Potential Build JDK found at $BUILD_JDK did not contain bin/javac; ignoring" >&6;} 30706 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be a JRE instead of an JDK)" >&5 30707 $as_echo "$as_me: (This might be a JRE instead of an JDK)" >&6;} 30708 BUILD_JDK_FOUND=no 30709 else 30710 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 30711 BUILD_JDK_VERSION=`"$BUILD_JDK/bin/java" -version 2>&1 | $HEAD -n 1` 30712 30713 # Extra M4 quote needed to protect [] in grep expression. 30714 FOUND_CORRECT_VERSION=`echo $BUILD_JDK_VERSION | $EGREP '\"9([\.+-].*)?\"'` 30715 if test "x$FOUND_CORRECT_VERSION" = x; then 30716 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Build JDK found at $BUILD_JDK is incorrect JDK version ($BUILD_JDK_VERSION); ignoring" >&5 30717 $as_echo "$as_me: Potential Build JDK found at $BUILD_JDK is incorrect JDK version ($BUILD_JDK_VERSION); ignoring" >&6;} 30718 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Build JDK must be version 9)" >&5 30719 $as_echo "$as_me: (Your Build JDK must be version 9)" >&6;} 30720 BUILD_JDK_FOUND=no 30721 else 30722 # We're done! 30723 BUILD_JDK_FOUND=yes 30724 30725 # Only process if variable expands to non-empty 30726 30727 if test "x$BUILD_JDK" != x; then 30728 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 30729 30730 # Input might be given as Windows format, start by converting to 30731 # unix format. 30732 path="$BUILD_JDK" 30733 new_path=`$CYGPATH -u "$path"` 30734 30735 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 30736 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 30737 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 30738 # "foo.exe" is OK but "foo" is an error. 30739 # 30740 # This test is therefore slightly more accurate than "test -f" to check for file precense. 30741 # It is also a way to make sure we got the proper file name for the real test later on. 30742 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 30743 if test "x$test_shortpath" = x; then 30744 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_JDK, which resolves as \"$path\", is invalid." >&5 30745 $as_echo "$as_me: The path of BUILD_JDK, which resolves as \"$path\", is invalid." >&6;} 30746 as_fn_error $? "Cannot locate the the path of BUILD_JDK" "$LINENO" 5 30747 fi 30748 30749 # Call helper function which possibly converts this using DOS-style short mode. 30750 # If so, the updated path is stored in $new_path. 30751 30752 input_path="$new_path" 30753 # Check if we need to convert this using DOS-style short mode. If the path 30754 # contains just simple characters, use it. Otherwise (spaces, weird characters), 30755 # take no chances and rewrite it. 30756 # Note: m4 eats our [], so we need to use [ and ] instead. 30757 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 30758 if test "x$has_forbidden_chars" != x; then 30759 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 30760 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 30761 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 30762 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 30763 # Going to short mode and back again did indeed matter. Since short mode is 30764 # case insensitive, let's make it lowercase to improve readability. 30765 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 30766 # Now convert it back to Unix-style (cygpath) 30767 input_path=`$CYGPATH -u "$shortmode_path"` 30768 new_path="$input_path" 30769 fi 30770 fi 30771 30772 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 30773 if test "x$test_cygdrive_prefix" = x; then 30774 # As a simple fix, exclude /usr/bin since it's not a real path. 30775 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 30776 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 30777 # a path prefixed by /cygdrive for fixpath to work. 30778 new_path="$CYGWIN_ROOT_PATH$input_path" 30779 fi 30780 fi 30781 30782 30783 if test "x$path" != "x$new_path"; then 30784 BUILD_JDK="$new_path" 30785 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BUILD_JDK to \"$new_path\"" >&5 30786 $as_echo "$as_me: Rewriting BUILD_JDK to \"$new_path\"" >&6;} 30787 fi 30788 30789 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 30790 30791 path="$BUILD_JDK" 30792 has_colon=`$ECHO $path | $GREP ^.:` 30793 new_path="$path" 30794 if test "x$has_colon" = x; then 30795 # Not in mixed or Windows style, start by that. 30796 new_path=`cmd //c echo $path` 30797 fi 30798 30799 30800 input_path="$new_path" 30801 # Check if we need to convert this using DOS-style short mode. If the path 30802 # contains just simple characters, use it. Otherwise (spaces, weird characters), 30803 # take no chances and rewrite it. 30804 # Note: m4 eats our [], so we need to use [ and ] instead. 30805 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 30806 if test "x$has_forbidden_chars" != x; then 30807 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 30808 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 30809 fi 30810 30811 30812 windows_path="$new_path" 30813 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 30814 unix_path=`$CYGPATH -u "$windows_path"` 30815 new_path="$unix_path" 30816 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 30817 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 30818 new_path="$unix_path" 30819 fi 30820 30821 if test "x$path" != "x$new_path"; then 30822 BUILD_JDK="$new_path" 30823 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BUILD_JDK to \"$new_path\"" >&5 30824 $as_echo "$as_me: Rewriting BUILD_JDK to \"$new_path\"" >&6;} 30825 fi 30826 30827 # Save the first 10 bytes of this path to the storage, so fixpath can work. 30828 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 30829 30830 else 30831 # We're on a unix platform. Hooray! :) 30832 path="$BUILD_JDK" 30833 has_space=`$ECHO "$path" | $GREP " "` 30834 if test "x$has_space" != x; then 30835 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_JDK, which resolves as \"$path\", is invalid." >&5 30836 $as_echo "$as_me: The path of BUILD_JDK, which resolves as \"$path\", is invalid." >&6;} 30837 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 30838 fi 30839 30840 # Use eval to expand a potential ~ 30841 eval path="$path" 30842 if test ! -f "$path" && test ! -d "$path"; then 30843 as_fn_error $? "The path of BUILD_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 30844 fi 30845 30846 if test -d "$path"; then 30847 BUILD_JDK="`cd "$path"; $THEPWDCMD -L`" 30848 else 30849 dir="`$DIRNAME "$path"`" 30850 base="`$BASENAME "$path"`" 30851 BUILD_JDK="`cd "$dir"; $THEPWDCMD -L`/$base" 30852 fi 30853 fi 30854 fi 30855 30856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Build JDK" >&5 30857 $as_echo_n "checking for Build JDK... " >&6; } 30858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_JDK" >&5 30859 $as_echo "$BUILD_JDK" >&6; } 30860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Build JDK version" >&5 30861 $as_echo_n "checking Build JDK version... " >&6; } 30862 BUILD_JDK_VERSION=`"$BUILD_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 30863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_JDK_VERSION" >&5 30864 $as_echo "$BUILD_JDK_VERSION" >&6; } 30865 fi # end check jdk version 30866 fi # end check java 30867 fi # end check build jdk found 30868 fi 30869 30870 EXTERNAL_BUILDJDK=true 30871 else 30872 if test "x$COMPILE_TYPE" = "xcross"; then 30873 BUILD_JDK="\$(BUILDJDK_OUTPUTDIR)/jdk" 30874 BUILD_JDK_FOUND=yes 30875 CREATE_BUILDJDK=true 30876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Build JDK" >&5 30877 $as_echo_n "checking for Build JDK... " >&6; } 30878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, will build it for the host platform" >&5 30879 $as_echo "yes, will build it for the host platform" >&6; } 30880 else 30881 BUILD_JDK="\$(JDK_OUTPUTDIR)" 30882 BUILD_JDK_FOUND=yes 30883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Build JDK" >&5 30884 $as_echo_n "checking for Build JDK... " >&6; } 30885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, will use output dir" >&5 30886 $as_echo "yes, will use output dir" >&6; } 30887 fi 30888 fi 30889 30890 JMOD="$BUILD_JDK/bin/jmod" 30891 JLINK="$BUILD_JDK/bin/jlink" 30892 30893 30894 30895 if test "x$BUILD_JDK_FOUND" != "xyes"; then 30896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Build JDK" >&5 30897 $as_echo_n "checking for Build JDK... " >&6; } 30898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 30899 $as_echo "no" >&6; } 30900 as_fn_error $? "Could not find a suitable Build JDK" "$LINENO" 5 30901 fi 30902 30903 30904 30905 30906 30907 30908 ############################################################################### 30909 # 30910 # Configure the sources to use. We can add or override individual directories. 30911 # 30912 ############################################################################### 30913 30914 30915 # Where are the sources. 30916 LANGTOOLS_TOPDIR="$SRC_ROOT/langtools" 30917 CORBA_TOPDIR="$SRC_ROOT/corba" 30918 JAXP_TOPDIR="$SRC_ROOT/jaxp" 30919 JAXWS_TOPDIR="$SRC_ROOT/jaxws" 30920 HOTSPOT_TOPDIR="$SRC_ROOT/hotspot" 30921 NASHORN_TOPDIR="$SRC_ROOT/nashorn" 30922 JDK_TOPDIR="$SRC_ROOT/jdk" 30923 30924 30925 30926 30927 30928 30929 30930 30931 30932 # This feature is no longer supported. 30933 30934 30935 30936 # Check whether --with-add-source-root was given. 30937 if test "${with_add_source_root+set}" = set; then : 30938 withval=$with_add_source_root; { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Option --with-add-source-root is deprecated and will be ignored." >&5 30939 $as_echo "$as_me: WARNING: Option --with-add-source-root is deprecated and will be ignored." >&2;} 30940 fi 30941 30942 30943 30944 30945 # Check whether --with-override-source-root was given. 30946 if test "${with_override_source_root+set}" = set; then : 30947 withval=$with_override_source_root; { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Option --with-override-source-root is deprecated and will be ignored." >&5 30948 $as_echo "$as_me: WARNING: Option --with-override-source-root is deprecated and will be ignored." >&2;} 30949 fi 30950 30951 30952 30953 30954 # Check whether --with-adds-and-overrides was given. 30955 if test "${with_adds_and_overrides+set}" = set; then : 30956 withval=$with_adds_and_overrides; { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Option --with-adds-and-overrides is deprecated and will be ignored." >&5 30957 $as_echo "$as_me: WARNING: Option --with-adds-and-overrides is deprecated and will be ignored." >&2;} 30958 fi 30959 30960 30961 30962 30963 # Check whether --with-override-langtools was given. 30964 if test "${with_override_langtools+set}" = set; then : 30965 withval=$with_override_langtools; { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Option --with-override-langtools is deprecated and will be ignored." >&5 30966 $as_echo "$as_me: WARNING: Option --with-override-langtools is deprecated and will be ignored." >&2;} 30967 fi 30968 30969 30970 30971 30972 # Check whether --with-override-corba was given. 30973 if test "${with_override_corba+set}" = set; then : 30974 withval=$with_override_corba; { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Option --with-override-corba is deprecated and will be ignored." >&5 30975 $as_echo "$as_me: WARNING: Option --with-override-corba is deprecated and will be ignored." >&2;} 30976 fi 30977 30978 30979 30980 30981 # Check whether --with-override-jaxp was given. 30982 if test "${with_override_jaxp+set}" = set; then : 30983 withval=$with_override_jaxp; { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Option --with-override-jaxp is deprecated and will be ignored." >&5 30984 $as_echo "$as_me: WARNING: Option --with-override-jaxp is deprecated and will be ignored." >&2;} 30985 fi 30986 30987 30988 30989 30990 # Check whether --with-override-jaxws was given. 30991 if test "${with_override_jaxws+set}" = set; then : 30992 withval=$with_override_jaxws; { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Option --with-override-jaxws is deprecated and will be ignored." >&5 30993 $as_echo "$as_me: WARNING: Option --with-override-jaxws is deprecated and will be ignored." >&2;} 30994 fi 30995 30996 30997 30998 30999 # Check whether --with-override-hotspot was given. 31000 if test "${with_override_hotspot+set}" = set; then : 31001 withval=$with_override_hotspot; { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Option --with-override-hotspot is deprecated and will be ignored." >&5 31002 $as_echo "$as_me: WARNING: Option --with-override-hotspot is deprecated and will be ignored." >&2;} 31003 fi 31004 31005 31006 31007 31008 # Check whether --with-override-nashorn was given. 31009 if test "${with_override_nashorn+set}" = set; then : 31010 withval=$with_override_nashorn; { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Option --with-override-nashorn is deprecated and will be ignored." >&5 31011 $as_echo "$as_me: WARNING: Option --with-override-nashorn is deprecated and will be ignored." >&2;} 31012 fi 31013 31014 31015 31016 31017 # Check whether --with-override-jdk was given. 31018 if test "${with_override_jdk+set}" = set; then : 31019 withval=$with_override_jdk; { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Option --with-override-jdk is deprecated and will be ignored." >&5 31020 $as_echo "$as_me: WARNING: Option --with-override-jdk is deprecated and will be ignored." >&2;} 31021 fi 31022 31023 31024 31025 31026 BUILD_OUTPUT="$OUTPUT_ROOT" 31027 31028 31029 HOTSPOT_DIST="$OUTPUT_ROOT/hotspot/dist" 31030 BUILD_HOTSPOT=true 31031 31032 31033 31034 # Check whether --with-import-hotspot was given. 31035 if test "${with_import_hotspot+set}" = set; then : 31036 withval=$with_import_hotspot; 31037 fi 31038 31039 if test "x$with_import_hotspot" != x; then 31040 CURDIR="$PWD" 31041 cd "$with_import_hotspot" 31042 HOTSPOT_DIST="`pwd`" 31043 cd "$CURDIR" 31044 if ! (test -d $HOTSPOT_DIST/lib && test -d $HOTSPOT_DIST/jre/lib); then 31045 as_fn_error $? "You have to import hotspot from a full jdk image or hotspot build dist dir!" "$LINENO" 5 31046 fi 31047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if hotspot should be imported" >&5 31048 $as_echo_n "checking if hotspot should be imported... " >&6; } 31049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes from $HOTSPOT_DIST" >&5 31050 $as_echo "yes from $HOTSPOT_DIST" >&6; } 31051 BUILD_HOTSPOT=false 31052 fi 31053 31054 JDK_OUTPUTDIR="$OUTPUT_ROOT/jdk" 31055 31056 31057 31058 31059 # Check whether --with-import-modules was given. 31060 if test "${with_import_modules+set}" = set; then : 31061 withval=$with_import_modules; 31062 fi 31063 31064 31065 if test "x$with_import_modules" != x \ 31066 && test "x$with_import_modules" != "xno"; then 31067 if test -d "$with_import_modules"; then 31068 IMPORT_MODULES_TOPDIR="$with_import_modules" 31069 31070 # Only process if variable expands to non-empty 31071 31072 if test "x$IMPORT_MODULES_TOPDIR" != x; then 31073 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 31074 31075 # Input might be given as Windows format, start by converting to 31076 # unix format. 31077 path="$IMPORT_MODULES_TOPDIR" 31078 new_path=`$CYGPATH -u "$path"` 31079 31080 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 31081 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 31082 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 31083 # "foo.exe" is OK but "foo" is an error. 31084 # 31085 # This test is therefore slightly more accurate than "test -f" to check for file precense. 31086 # It is also a way to make sure we got the proper file name for the real test later on. 31087 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 31088 if test "x$test_shortpath" = x; then 31089 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of IMPORT_MODULES_TOPDIR, which resolves as \"$path\", is invalid." >&5 31090 $as_echo "$as_me: The path of IMPORT_MODULES_TOPDIR, which resolves as \"$path\", is invalid." >&6;} 31091 as_fn_error $? "Cannot locate the the path of IMPORT_MODULES_TOPDIR" "$LINENO" 5 31092 fi 31093 31094 # Call helper function which possibly converts this using DOS-style short mode. 31095 # If so, the updated path is stored in $new_path. 31096 31097 input_path="$new_path" 31098 # Check if we need to convert this using DOS-style short mode. If the path 31099 # contains just simple characters, use it. Otherwise (spaces, weird characters), 31100 # take no chances and rewrite it. 31101 # Note: m4 eats our [], so we need to use [ and ] instead. 31102 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 31103 if test "x$has_forbidden_chars" != x; then 31104 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 31105 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 31106 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 31107 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 31108 # Going to short mode and back again did indeed matter. Since short mode is 31109 # case insensitive, let's make it lowercase to improve readability. 31110 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 31111 # Now convert it back to Unix-style (cygpath) 31112 input_path=`$CYGPATH -u "$shortmode_path"` 31113 new_path="$input_path" 31114 fi 31115 fi 31116 31117 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 31118 if test "x$test_cygdrive_prefix" = x; then 31119 # As a simple fix, exclude /usr/bin since it's not a real path. 31120 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 31121 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 31122 # a path prefixed by /cygdrive for fixpath to work. 31123 new_path="$CYGWIN_ROOT_PATH$input_path" 31124 fi 31125 fi 31126 31127 31128 if test "x$path" != "x$new_path"; then 31129 IMPORT_MODULES_TOPDIR="$new_path" 31130 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting IMPORT_MODULES_TOPDIR to \"$new_path\"" >&5 31131 $as_echo "$as_me: Rewriting IMPORT_MODULES_TOPDIR to \"$new_path\"" >&6;} 31132 fi 31133 31134 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 31135 31136 path="$IMPORT_MODULES_TOPDIR" 31137 has_colon=`$ECHO $path | $GREP ^.:` 31138 new_path="$path" 31139 if test "x$has_colon" = x; then 31140 # Not in mixed or Windows style, start by that. 31141 new_path=`cmd //c echo $path` 31142 fi 31143 31144 31145 input_path="$new_path" 31146 # Check if we need to convert this using DOS-style short mode. If the path 31147 # contains just simple characters, use it. Otherwise (spaces, weird characters), 31148 # take no chances and rewrite it. 31149 # Note: m4 eats our [], so we need to use [ and ] instead. 31150 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 31151 if test "x$has_forbidden_chars" != x; then 31152 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 31153 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 31154 fi 31155 31156 31157 windows_path="$new_path" 31158 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 31159 unix_path=`$CYGPATH -u "$windows_path"` 31160 new_path="$unix_path" 31161 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 31162 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 31163 new_path="$unix_path" 31164 fi 31165 31166 if test "x$path" != "x$new_path"; then 31167 IMPORT_MODULES_TOPDIR="$new_path" 31168 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting IMPORT_MODULES_TOPDIR to \"$new_path\"" >&5 31169 $as_echo "$as_me: Rewriting IMPORT_MODULES_TOPDIR to \"$new_path\"" >&6;} 31170 fi 31171 31172 # Save the first 10 bytes of this path to the storage, so fixpath can work. 31173 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 31174 31175 else 31176 # We're on a unix platform. Hooray! :) 31177 path="$IMPORT_MODULES_TOPDIR" 31178 has_space=`$ECHO "$path" | $GREP " "` 31179 if test "x$has_space" != x; then 31180 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of IMPORT_MODULES_TOPDIR, which resolves as \"$path\", is invalid." >&5 31181 $as_echo "$as_me: The path of IMPORT_MODULES_TOPDIR, which resolves as \"$path\", is invalid." >&6;} 31182 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 31183 fi 31184 31185 # Use eval to expand a potential ~ 31186 eval path="$path" 31187 if test ! -f "$path" && test ! -d "$path"; then 31188 as_fn_error $? "The path of IMPORT_MODULES_TOPDIR, which resolves as \"$path\", is not found." "$LINENO" 5 31189 fi 31190 31191 if test -d "$path"; then 31192 IMPORT_MODULES_TOPDIR="`cd "$path"; $THEPWDCMD -L`" 31193 else 31194 dir="`$DIRNAME "$path"`" 31195 base="`$BASENAME "$path"`" 31196 IMPORT_MODULES_TOPDIR="`cd "$dir"; $THEPWDCMD -L`/$base" 31197 fi 31198 fi 31199 fi 31200 31201 elif test -e "$with_import_modules"; then 31202 IMPORT_MODULES_TOPDIR="$CONFIGURESUPPORT_OUTPUTDIR/import-modules" 31203 $RM -rf "$IMPORT_MODULES_TOPDIR" 31204 $MKDIR -p "$IMPORT_MODULES_TOPDIR" 31205 if ! $UNZIP -q "$with_import_modules" -d "$IMPORT_MODULES_TOPDIR"; then 31206 as_fn_error $? "--with-import-modules=\"$with_import_modules\" must point to a dir or a zip file" "$LINENO" 5 31207 fi 31208 else 31209 as_fn_error $? "--with-import-modules=\"$with_import_modules\" must point to a dir or a zip file" "$LINENO" 5 31210 fi 31211 fi 31212 31213 if test -d "$IMPORT_MODULES_TOPDIR/modules"; then 31214 IMPORT_MODULES_CLASSES="$IMPORT_MODULES_TOPDIR/modules" 31215 fi 31216 if test -d "$IMPORT_MODULES_TOPDIR/modules_cmds"; then 31217 IMPORT_MODULES_CMDS="$IMPORT_MODULES_TOPDIR/modules_cmds" 31218 fi 31219 if test -d "$IMPORT_MODULES_TOPDIR/modules_libs"; then 31220 IMPORT_MODULES_LIBS="$IMPORT_MODULES_TOPDIR/modules_libs" 31221 fi 31222 if test -d "$IMPORT_MODULES_TOPDIR/modules_conf"; then 31223 IMPORT_MODULES_CONF="$IMPORT_MODULES_TOPDIR/modules_conf" 31224 fi 31225 if test -d "$IMPORT_MODULES_TOPDIR/modules_src"; then 31226 IMPORT_MODULES_SRC="$IMPORT_MODULES_TOPDIR/modules_src" 31227 fi 31228 if test -d "$IMPORT_MODULES_TOPDIR/make"; then 31229 IMPORT_MODULES_MAKE="$IMPORT_MODULES_TOPDIR/make" 31230 fi 31231 31232 31233 31234 31235 31236 31237 31238 31239 31240 ############################################################################### 31241 # 31242 # Setup the toolchain (compilers etc), i.e. tools used to compile and process 31243 # native code. 31244 # 31245 ############################################################################### 31246 31247 # See if we are doing a complete static build or not 31248 31249 # Check whether --enable-static-build was given. 31250 if test "${enable_static_build+set}" = set; then : 31251 enableval=$enable_static_build; 31252 fi 31253 31254 STATIC_BUILD=false 31255 if test "x$enable_static_build" = "xyes"; then 31256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if static build is enabled" >&5 31257 $as_echo_n "checking if static build is enabled... " >&6; } 31258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 31259 $as_echo "yes" >&6; } 31260 if test "x$OPENJDK_TARGET_OS" != "xmacosx"; then 31261 as_fn_error $? "--enable-static-build is only supported for macosx builds" "$LINENO" 5 31262 fi 31263 STATIC_BUILD_CFLAGS="-DSTATIC_BUILD=1" 31264 LEGACY_EXTRA_CFLAGS="$LEGACY_EXTRA_CFLAGS $STATIC_BUILD_CFLAGS" 31265 LEGACY_EXTRA_CXXFLAGS="$LEGACY_EXTRA_CXXFLAGS $STATIC_BUILD_CFLAGS" 31266 CFLAGS_JDKLIB_EXTRA="$CFLAGS_JDKLIB_EXTRA $STATIC_BUILD_CFLAGS" 31267 CXXFLAGS_JDKLIB_EXTRA="$CXXFLAGS_JDKLIB_EXTRA $STATIC_BUILD_CFLAGS" 31268 STATIC_BUILD=true 31269 elif test "x$enable_static_build" = "xno"; then 31270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if static build is enabled" >&5 31271 $as_echo_n "checking if static build is enabled... " >&6; } 31272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 31273 $as_echo "no" >&6; } 31274 elif test "x$enable_static_build" != "x"; then 31275 as_fn_error $? "--enable-static-build can only be assigned \"yes\" or \"no\"" "$LINENO" 5 31276 fi 31277 31278 31279 31280 31281 # First determine the toolchain type (compiler family) 31282 31283 31284 # Check whether --with-toolchain-type was given. 31285 if test "${with_toolchain_type+set}" = set; then : 31286 withval=$with_toolchain_type; 31287 fi 31288 31289 31290 # Use indirect variable referencing 31291 toolchain_var_name=VALID_TOOLCHAINS_$OPENJDK_BUILD_OS 31292 VALID_TOOLCHAINS=${!toolchain_var_name} 31293 31294 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 31295 if test -n "$XCODEBUILD"; then 31296 # On Mac OS X, default toolchain to clang after Xcode 5 31297 XCODE_VERSION_OUTPUT=`"$XCODEBUILD" -version 2>&1 | $HEAD -n 1` 31298 $ECHO "$XCODE_VERSION_OUTPUT" | $GREP "Xcode " > /dev/null 31299 if test $? -ne 0; then 31300 as_fn_error $? "Failed to determine Xcode version." "$LINENO" 5 31301 fi 31302 XCODE_MAJOR_VERSION=`$ECHO $XCODE_VERSION_OUTPUT | \ 31303 $SED -e 's/^Xcode \([1-9][0-9.]*\)/\1/' | \ 31304 $CUT -f 1 -d .` 31305 { $as_echo "$as_me:${as_lineno-$LINENO}: Xcode major version: $XCODE_MAJOR_VERSION" >&5 31306 $as_echo "$as_me: Xcode major version: $XCODE_MAJOR_VERSION" >&6;} 31307 if test $XCODE_MAJOR_VERSION -ge 5; then 31308 DEFAULT_TOOLCHAIN="clang" 31309 else 31310 DEFAULT_TOOLCHAIN="gcc" 31311 fi 31312 else 31313 # If Xcode is not installed, but the command line tools are 31314 # then we can't run xcodebuild. On these systems we should 31315 # default to clang 31316 DEFAULT_TOOLCHAIN="clang" 31317 fi 31318 else 31319 # First toolchain type in the list is the default 31320 DEFAULT_TOOLCHAIN=${VALID_TOOLCHAINS%% *} 31321 fi 31322 31323 if test "x$with_toolchain_type" = xlist; then 31324 # List all toolchains 31325 { $as_echo "$as_me:${as_lineno-$LINENO}: The following toolchains are valid on this platform:" >&5 31326 $as_echo "$as_me: The following toolchains are valid on this platform:" >&6;} 31327 for toolchain in $VALID_TOOLCHAINS; do 31328 toolchain_var_name=TOOLCHAIN_DESCRIPTION_$toolchain 31329 TOOLCHAIN_DESCRIPTION=${!toolchain_var_name} 31330 $PRINTF " %-10s %s\n" $toolchain "$TOOLCHAIN_DESCRIPTION" 31331 done 31332 31333 exit 0 31334 elif test "x$with_toolchain_type" != x; then 31335 # User override; check that it is valid 31336 if test "x${VALID_TOOLCHAINS/$with_toolchain_type/}" = "x${VALID_TOOLCHAINS}"; then 31337 { $as_echo "$as_me:${as_lineno-$LINENO}: Toolchain type $with_toolchain_type is not valid on this platform." >&5 31338 $as_echo "$as_me: Toolchain type $with_toolchain_type is not valid on this platform." >&6;} 31339 { $as_echo "$as_me:${as_lineno-$LINENO}: Valid toolchains: $VALID_TOOLCHAINS." >&5 31340 $as_echo "$as_me: Valid toolchains: $VALID_TOOLCHAINS." >&6;} 31341 as_fn_error $? "Cannot continue." "$LINENO" 5 31342 fi 31343 TOOLCHAIN_TYPE=$with_toolchain_type 31344 else 31345 # No flag given, use default 31346 TOOLCHAIN_TYPE=$DEFAULT_TOOLCHAIN 31347 fi 31348 31349 31350 TOOLCHAIN_CC_BINARY_clang="clang" 31351 TOOLCHAIN_CC_BINARY_gcc="gcc" 31352 TOOLCHAIN_CC_BINARY_microsoft="cl" 31353 TOOLCHAIN_CC_BINARY_solstudio="cc" 31354 TOOLCHAIN_CC_BINARY_xlc="xlc_r" 31355 31356 TOOLCHAIN_CXX_BINARY_clang="clang++" 31357 TOOLCHAIN_CXX_BINARY_gcc="g++" 31358 TOOLCHAIN_CXX_BINARY_microsoft="cl" 31359 TOOLCHAIN_CXX_BINARY_solstudio="CC" 31360 TOOLCHAIN_CXX_BINARY_xlc="xlC_r" 31361 31362 # Use indirect variable referencing 31363 toolchain_var_name=TOOLCHAIN_DESCRIPTION_$TOOLCHAIN_TYPE 31364 TOOLCHAIN_DESCRIPTION=${!toolchain_var_name} 31365 toolchain_var_name=TOOLCHAIN_MINIMUM_VERSION_$TOOLCHAIN_TYPE 31366 TOOLCHAIN_MINIMUM_VERSION=${!toolchain_var_name} 31367 toolchain_var_name=TOOLCHAIN_CC_BINARY_$TOOLCHAIN_TYPE 31368 TOOLCHAIN_CC_BINARY=${!toolchain_var_name} 31369 toolchain_var_name=TOOLCHAIN_CXX_BINARY_$TOOLCHAIN_TYPE 31370 TOOLCHAIN_CXX_BINARY=${!toolchain_var_name} 31371 31372 31373 # Define filename patterns 31374 if test "x$OPENJDK_TARGET_OS" = xwindows; then 31375 LIBRARY_PREFIX= 31376 SHARED_LIBRARY_SUFFIX='.dll' 31377 STATIC_LIBRARY_SUFFIX='.lib' 31378 SHARED_LIBRARY='$1.dll' 31379 STATIC_LIBRARY='$1.lib' 31380 OBJ_SUFFIX='.obj' 31381 EXE_SUFFIX='.exe' 31382 else 31383 LIBRARY_PREFIX=lib 31384 SHARED_LIBRARY_SUFFIX='.so' 31385 STATIC_LIBRARY_SUFFIX='.a' 31386 SHARED_LIBRARY='lib$1.so' 31387 STATIC_LIBRARY='lib$1.a' 31388 OBJ_SUFFIX='.o' 31389 EXE_SUFFIX='' 31390 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 31391 # For full static builds, we're overloading the SHARED_LIBRARY 31392 # variables in order to limit the amount of changes required. 31393 # It would be better to remove SHARED and just use LIBRARY and 31394 # LIBRARY_SUFFIX for libraries that can be built either 31395 # shared or static and use STATIC_* for libraries that are 31396 # always built statically. 31397 if test "x$STATIC_BUILD" = xtrue; then 31398 SHARED_LIBRARY='lib$1.a' 31399 SHARED_LIBRARY_SUFFIX='.a' 31400 else 31401 SHARED_LIBRARY='lib$1.dylib' 31402 SHARED_LIBRARY_SUFFIX='.dylib' 31403 fi 31404 fi 31405 fi 31406 31407 31408 31409 31410 31411 31412 31413 31414 31415 31416 if test "x$TOOLCHAIN_TYPE" = "x$DEFAULT_TOOLCHAIN"; then 31417 { $as_echo "$as_me:${as_lineno-$LINENO}: Using default toolchain $TOOLCHAIN_TYPE ($TOOLCHAIN_DESCRIPTION)" >&5 31418 $as_echo "$as_me: Using default toolchain $TOOLCHAIN_TYPE ($TOOLCHAIN_DESCRIPTION)" >&6;} 31419 else 31420 { $as_echo "$as_me:${as_lineno-$LINENO}: Using user selected toolchain $TOOLCHAIN_TYPE ($TOOLCHAIN_DESCRIPTION). Default toolchain is $DEFAULT_TOOLCHAIN." >&5 31421 $as_echo "$as_me: Using user selected toolchain $TOOLCHAIN_TYPE ($TOOLCHAIN_DESCRIPTION). Default toolchain is $DEFAULT_TOOLCHAIN." >&6;} 31422 fi 31423 31424 31425 # User supplied flags should be used when configure detects compilers 31426 31427 if test "x$CFLAGS" != "x${ADDED_CFLAGS}"; then 31428 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring CFLAGS($CFLAGS) found in environment. Use --with-extra-cflags" >&5 31429 $as_echo "$as_me: WARNING: Ignoring CFLAGS($CFLAGS) found in environment. Use --with-extra-cflags" >&2;} 31430 fi 31431 31432 if test "x$CXXFLAGS" != "x${ADDED_CXXFLAGS}"; then 31433 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring CXXFLAGS($CXXFLAGS) found in environment. Use --with-extra-cxxflags" >&5 31434 $as_echo "$as_me: WARNING: Ignoring CXXFLAGS($CXXFLAGS) found in environment. Use --with-extra-cxxflags" >&2;} 31435 fi 31436 31437 if test "x$LDFLAGS" != "x${ADDED_LDFLAGS}"; then 31438 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring LDFLAGS($LDFLAGS) found in environment. Use --with-extra-ldflags" >&5 31439 $as_echo "$as_me: WARNING: Ignoring LDFLAGS($LDFLAGS) found in environment. Use --with-extra-ldflags" >&2;} 31440 fi 31441 31442 31443 # Check whether --with-extra-cflags was given. 31444 if test "${with_extra_cflags+set}" = set; then : 31445 withval=$with_extra_cflags; 31446 fi 31447 31448 31449 31450 # Check whether --with-extra-cxxflags was given. 31451 if test "${with_extra_cxxflags+set}" = set; then : 31452 withval=$with_extra_cxxflags; 31453 fi 31454 31455 31456 31457 # Check whether --with-extra-ldflags was given. 31458 if test "${with_extra_ldflags+set}" = set; then : 31459 withval=$with_extra_ldflags; 31460 fi 31461 31462 31463 EXTRA_CFLAGS="$with_extra_cflags" 31464 EXTRA_CXXFLAGS="$with_extra_cxxflags" 31465 EXTRA_LDFLAGS="$with_extra_ldflags" 31466 31467 # Hotspot needs these set in their legacy form 31468 LEGACY_EXTRA_CFLAGS="$LEGACY_EXTRA_CFLAGS $EXTRA_CFLAGS" 31469 LEGACY_EXTRA_CXXFLAGS="$LEGACY_EXTRA_CXXFLAGS $EXTRA_CXXFLAGS" 31470 LEGACY_EXTRA_LDFLAGS="$LEGACY_EXTRA_LDFLAGS $EXTRA_LDFLAGS" 31471 31472 31473 31474 31475 31476 31477 31478 31479 31480 # The global CFLAGS and LDLAGS variables are used by configure tests and 31481 # should include the extra parameters 31482 CFLAGS="$EXTRA_CFLAGS" 31483 CXXFLAGS="$EXTRA_CXXFLAGS" 31484 LDFLAGS="$EXTRA_LDFLAGS" 31485 CPPFLAGS="" 31486 31487 # The sysroot cflags are needed for configure to be able to run the compilers 31488 31489 if test "x$SYSROOT" != "x"; then 31490 if test "x$TOOLCHAIN_TYPE" = xsolstudio; then 31491 if test "x$OPENJDK_TARGET_OS" = xsolaris; then 31492 # Solaris Studio does not have a concept of sysroot. Instead we must 31493 # make sure the default include and lib dirs are appended to each 31494 # compile and link command line. Must also add -I-xbuiltin to enable 31495 # inlining of system functions and intrinsics. 31496 SYSROOT_CFLAGS="-I-xbuiltin -I$SYSROOT/usr/include" 31497 SYSROOT_LDFLAGS="-L$SYSROOT/usr/lib$OPENJDK_TARGET_CPU_ISADIR \ 31498 -L$SYSROOT/lib$OPENJDK_TARGET_CPU_ISADIR \ 31499 -L$SYSROOT/usr/ccs/lib$OPENJDK_TARGET_CPU_ISADIR" 31500 fi 31501 elif test "x$TOOLCHAIN_TYPE" = xgcc; then 31502 SYSROOT_CFLAGS="--sysroot=$SYSROOT" 31503 SYSROOT_LDFLAGS="--sysroot=$SYSROOT" 31504 elif test "x$TOOLCHAIN_TYPE" = xclang; then 31505 SYSROOT_CFLAGS="-isysroot $SYSROOT" 31506 SYSROOT_LDFLAGS="-isysroot $SYSROOT" 31507 fi 31508 # Propagate the sysroot args to hotspot 31509 LEGACY_EXTRA_CFLAGS="$LEGACY_EXTRA_CFLAGS $SYSROOT_CFLAGS" 31510 LEGACY_EXTRA_CXXFLAGS="$LEGACY_EXTRA_CXXFLAGS $SYSROOT_CFLAGS" 31511 LEGACY_EXTRA_LDFLAGS="$LEGACY_EXTRA_LDFLAGS $SYSROOT_LDFLAGS" 31512 # The global CFLAGS and LDFLAGS variables need these for configure to function 31513 CFLAGS="$CFLAGS $SYSROOT_CFLAGS" 31514 CPPFLAGS="$CPPFLAGS $SYSROOT_CFLAGS" 31515 CXXFLAGS="$CXXFLAGS $SYSROOT_CFLAGS" 31516 LDFLAGS="$LDFLAGS $SYSROOT_LDFLAGS" 31517 fi 31518 31519 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 31520 # We also need -iframework<path>/System/Library/Frameworks 31521 SYSROOT_CFLAGS="$SYSROOT_CFLAGS -iframework $SYSROOT/System/Library/Frameworks" 31522 SYSROOT_LDFLAGS="$SYSROOT_LDFLAGS -iframework $SYSROOT/System/Library/Frameworks" 31523 # These always need to be set, or we can't find the frameworks embedded in JavaVM.framework 31524 # set this here so it doesn't have to be peppered throughout the forest 31525 SYSROOT_CFLAGS="$SYSROOT_CFLAGS -F $SYSROOT/System/Library/Frameworks/JavaVM.framework/Frameworks" 31526 SYSROOT_LDFLAGS="$SYSROOT_LDFLAGS -F $SYSROOT/System/Library/Frameworks/JavaVM.framework/Frameworks" 31527 fi 31528 31529 31530 31531 31532 31533 # Then detect the actual binaries needed 31534 31535 # FIXME: Is this needed? 31536 ac_ext=cpp 31537 ac_cpp='$CXXCPP $CPPFLAGS' 31538 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 31539 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 31540 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 31541 31542 31543 # Store the CFLAGS etc passed to the configure script. 31544 ORG_CFLAGS="$CFLAGS" 31545 ORG_CXXFLAGS="$CXXFLAGS" 31546 31547 # autoconf magic only relies on PATH, so update it if tools dir is specified 31548 OLD_PATH="$PATH" 31549 31550 # On Windows, we need to detect the visual studio installation first. 31551 # This will change the PATH, but we need to keep that new PATH even 31552 # after toolchain detection is done, since the compiler (on x86) uses 31553 # it for DLL resolution in runtime. 31554 if test "x$OPENJDK_BUILD_OS" = "xwindows" \ 31555 && test "x$TOOLCHAIN_TYPE" = "xmicrosoft"; then 31556 31557 # Store path to cygwin link.exe to help excluding it when searching for 31558 # VS linker. This must be done before changing the PATH when looking for VS. 31559 # Extract the first word of "link", so it can be a program name with args. 31560 set dummy link; ac_word=$2 31561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 31562 $as_echo_n "checking for $ac_word... " >&6; } 31563 if ${ac_cv_path_CYGWIN_LINK+:} false; then : 31564 $as_echo_n "(cached) " >&6 31565 else 31566 case $CYGWIN_LINK in 31567 [\\/]* | ?:[\\/]*) 31568 ac_cv_path_CYGWIN_LINK="$CYGWIN_LINK" # Let the user override the test with a path. 31569 ;; 31570 *) 31571 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 31572 for as_dir in $PATH 31573 do 31574 IFS=$as_save_IFS 31575 test -z "$as_dir" && as_dir=. 31576 for ac_exec_ext in '' $ac_executable_extensions; do 31577 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 31578 ac_cv_path_CYGWIN_LINK="$as_dir/$ac_word$ac_exec_ext" 31579 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 31580 break 2 31581 fi 31582 done 31583 done 31584 IFS=$as_save_IFS 31585 31586 ;; 31587 esac 31588 fi 31589 CYGWIN_LINK=$ac_cv_path_CYGWIN_LINK 31590 if test -n "$CYGWIN_LINK"; then 31591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CYGWIN_LINK" >&5 31592 $as_echo "$CYGWIN_LINK" >&6; } 31593 else 31594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 31595 $as_echo "no" >&6; } 31596 fi 31597 31598 31599 if test "x$CYGWIN_LINK" != x; then 31600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the first found link.exe is actually the Cygwin link tool" >&5 31601 $as_echo_n "checking if the first found link.exe is actually the Cygwin link tool... " >&6; } 31602 "$CYGWIN_LINK" --version > /dev/null 31603 if test $? -eq 0 ; then 31604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 31605 $as_echo "yes" >&6; } 31606 else 31607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 31608 $as_echo "no" >&6; } 31609 # This might be the VS linker. Don't exclude it later on. 31610 CYGWIN_LINK="" 31611 fi 31612 fi 31613 31614 # First-hand choice is to locate and run the vsvars bat file. 31615 31616 31617 # Check whether --with-toolchain-version was given. 31618 if test "${with_toolchain_version+set}" = set; then : 31619 withval=$with_toolchain_version; 31620 fi 31621 31622 31623 if test "x$with_toolchain_version" = xlist; then 31624 # List all toolchains 31625 { $as_echo "$as_me:${as_lineno-$LINENO}: The following toolchain versions are valid on this platform:" >&5 31626 $as_echo "$as_me: The following toolchain versions are valid on this platform:" >&6;} 31627 for version in $VALID_VS_VERSIONS; do 31628 eval VS_DESCRIPTION=\${VS_DESCRIPTION_$version} 31629 $PRINTF " %-10s %s\n" $version "$VS_DESCRIPTION" 31630 done 31631 31632 exit 0 31633 elif test "x$DEVKIT_VS_VERSION" != x; then 31634 VS_VERSION=$DEVKIT_VS_VERSION 31635 TOOLCHAIN_VERSION=$VS_VERSION 31636 eval VS_DESCRIPTION="\${VS_DESCRIPTION_${VS_VERSION}}" 31637 eval VS_VERSION_INTERNAL="\${VS_VERSION_INTERNAL_${VS_VERSION}}" 31638 eval MSVCR_NAME="\${VS_MSVCR_${VS_VERSION}}" 31639 eval MSVCP_NAME="\${VS_MSVCP_${VS_VERSION}}" 31640 eval PLATFORM_TOOLSET="\${VS_VS_PLATFORM_NAME_${VS_VERSION}}" 31641 VS_PATH="$TOOLCHAIN_PATH:$PATH" 31642 31643 # Convert DEVKIT_VS_INCLUDE into windows style VS_INCLUDE so that it 31644 # can still be exported as INCLUDE for compiler invocations without 31645 # SYSROOT_CFLAGS 31646 OLDIFS="$IFS" 31647 IFS=";" 31648 for i in $DEVKIT_VS_INCLUDE; do 31649 ipath=$i 31650 31651 unix_path="$ipath" 31652 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 31653 windows_path=`$CYGPATH -m "$unix_path"` 31654 ipath="$windows_path" 31655 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 31656 windows_path=`cmd //c echo $unix_path` 31657 ipath="$windows_path" 31658 fi 31659 31660 VS_INCLUDE="$VS_INCLUDE;$ipath" 31661 done 31662 # Convert DEVKIT_VS_LIB into VS_LIB so that it can still be exported 31663 # as LIB for compiler invocations without SYSROOT_LDFLAGS 31664 for i in $DEVKIT_VS_LIB; do 31665 libpath=$i 31666 31667 unix_path="$libpath" 31668 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 31669 windows_path=`$CYGPATH -m "$unix_path"` 31670 libpath="$windows_path" 31671 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 31672 windows_path=`cmd //c echo $unix_path` 31673 libpath="$windows_path" 31674 fi 31675 31676 VS_LIB="$VS_LIB;$libpath" 31677 done 31678 IFS="$OLDIFS" 31679 31680 { $as_echo "$as_me:${as_lineno-$LINENO}: Found devkit $VS_DESCRIPTION" >&5 31681 $as_echo "$as_me: Found devkit $VS_DESCRIPTION" >&6;} 31682 31683 elif test "x$with_toolchain_version" != x; then 31684 # User override; check that it is valid 31685 if test "x${VALID_VS_VERSIONS/$with_toolchain_version/}" = "x${VALID_VS_VERSIONS}"; then 31686 { $as_echo "$as_me:${as_lineno-$LINENO}: Visual Studio version $with_toolchain_version is not valid." >&5 31687 $as_echo "$as_me: Visual Studio version $with_toolchain_version is not valid." >&6;} 31688 { $as_echo "$as_me:${as_lineno-$LINENO}: Valid Visual Studio versions: $VALID_VS_VERSIONS." >&5 31689 $as_echo "$as_me: Valid Visual Studio versions: $VALID_VS_VERSIONS." >&6;} 31690 as_fn_error $? "Cannot continue." "$LINENO" 5 31691 fi 31692 VS_VERSIONS_PROBE_LIST="$with_toolchain_version" 31693 else 31694 # No flag given, use default 31695 VS_VERSIONS_PROBE_LIST="$VALID_VS_VERSIONS" 31696 fi 31697 31698 for VS_VERSION in $VS_VERSIONS_PROBE_LIST; do 31699 31700 VS_VERSION="$VS_VERSION" 31701 eval VS_COMNTOOLS_VAR="\${VS_ENVVAR_${VS_VERSION}}" 31702 eval VS_COMNTOOLS="\$${VS_COMNTOOLS_VAR}" 31703 eval VS_INSTALL_DIR="\${VS_VS_INSTALLDIR_${VS_VERSION}}" 31704 eval SDK_INSTALL_DIR="\${VS_SDK_INSTALLDIR_${VS_VERSION}}" 31705 31706 # When using --with-tools-dir, assume it points to the correct and default 31707 # version of Visual Studio or that --with-toolchain-version was also set. 31708 if test "x$with_tools_dir" != x; then 31709 31710 if test "x$VS_ENV_CMD" = x; then 31711 VS_VERSION="${VS_VERSION}" 31712 VS_BASE="$with_tools_dir/../.." 31713 METHOD="--with-tools-dir" 31714 31715 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 31716 VCVARSFILE="vc/bin/vcvars32.bat" 31717 else 31718 VCVARSFILE="vc/bin/amd64/vcvars64.bat" 31719 fi 31720 31721 31722 windows_path="$VS_BASE" 31723 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 31724 unix_path=`$CYGPATH -u "$windows_path"` 31725 VS_BASE="$unix_path" 31726 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 31727 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 31728 VS_BASE="$unix_path" 31729 fi 31730 31731 if test -d "$VS_BASE"; then 31732 if test -f "$VS_BASE/$VCVARSFILE"; then 31733 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Visual Studio installation at $VS_BASE using $METHOD" >&5 31734 $as_echo "$as_me: Found Visual Studio installation at $VS_BASE using $METHOD" >&6;} 31735 VS_ENV_CMD="$VS_BASE/$VCVARSFILE" 31736 # PLATFORM_TOOLSET is used during the compilation of the freetype sources (see 31737 # 'LIB_BUILD_FREETYPE' in libraries.m4) and must be one of 'v100', 'v110' or 'v120' for VS 2010, 2012 or VS2013 31738 eval PLATFORM_TOOLSET="\${VS_VS_PLATFORM_NAME_${VS_VERSION}}" 31739 else 31740 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Visual Studio installation at $VS_BASE using $METHOD" >&5 31741 $as_echo "$as_me: Found Visual Studio installation at $VS_BASE using $METHOD" >&6;} 31742 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: $VCVARSFILE is missing, this is probably Visual Studio Express. Ignoring" >&5 31743 $as_echo "$as_me: Warning: $VCVARSFILE is missing, this is probably Visual Studio Express. Ignoring" >&6;} 31744 fi 31745 fi 31746 fi 31747 31748 31749 if test "x$VS_ENV_CMD" = x; then 31750 VS_VERSION="${VS_VERSION}" 31751 VS_BASE="$with_tools_dir/../../.." 31752 METHOD="--with-tools-dir" 31753 31754 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 31755 VCVARSFILE="vc/bin/vcvars32.bat" 31756 else 31757 VCVARSFILE="vc/bin/amd64/vcvars64.bat" 31758 fi 31759 31760 31761 windows_path="$VS_BASE" 31762 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 31763 unix_path=`$CYGPATH -u "$windows_path"` 31764 VS_BASE="$unix_path" 31765 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 31766 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 31767 VS_BASE="$unix_path" 31768 fi 31769 31770 if test -d "$VS_BASE"; then 31771 if test -f "$VS_BASE/$VCVARSFILE"; then 31772 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Visual Studio installation at $VS_BASE using $METHOD" >&5 31773 $as_echo "$as_me: Found Visual Studio installation at $VS_BASE using $METHOD" >&6;} 31774 VS_ENV_CMD="$VS_BASE/$VCVARSFILE" 31775 # PLATFORM_TOOLSET is used during the compilation of the freetype sources (see 31776 # 'LIB_BUILD_FREETYPE' in libraries.m4) and must be one of 'v100', 'v110' or 'v120' for VS 2010, 2012 or VS2013 31777 eval PLATFORM_TOOLSET="\${VS_VS_PLATFORM_NAME_${VS_VERSION}}" 31778 else 31779 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Visual Studio installation at $VS_BASE using $METHOD" >&5 31780 $as_echo "$as_me: Found Visual Studio installation at $VS_BASE using $METHOD" >&6;} 31781 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: $VCVARSFILE is missing, this is probably Visual Studio Express. Ignoring" >&5 31782 $as_echo "$as_me: Warning: $VCVARSFILE is missing, this is probably Visual Studio Express. Ignoring" >&6;} 31783 fi 31784 fi 31785 fi 31786 31787 if test "x$VS_ENV_CMD" = x; then 31788 # Having specified an argument which is incorrect will produce an instant failure; 31789 # we should not go on looking 31790 { $as_echo "$as_me:${as_lineno-$LINENO}: The path given by --with-tools-dir does not contain a valid" >&5 31791 $as_echo "$as_me: The path given by --with-tools-dir does not contain a valid" >&6;} 31792 { $as_echo "$as_me:${as_lineno-$LINENO}: Visual Studio installation. Please point to the VC/bin or VC/bin/amd64" >&5 31793 $as_echo "$as_me: Visual Studio installation. Please point to the VC/bin or VC/bin/amd64" >&6;} 31794 { $as_echo "$as_me:${as_lineno-$LINENO}: directory within the Visual Studio installation" >&5 31795 $as_echo "$as_me: directory within the Visual Studio installation" >&6;} 31796 as_fn_error $? "Cannot locate a valid Visual Studio installation" "$LINENO" 5 31797 fi 31798 fi 31799 31800 VS_ENV_CMD="" 31801 VS_ENV_ARGS="" 31802 31803 if test "x$VS_COMNTOOLS" != x; then 31804 31805 if test "x$VS_ENV_CMD" = x; then 31806 VS_VERSION="${VS_VERSION}" 31807 VS_BASE="$VS_COMNTOOLS/../.." 31808 METHOD="$VS_COMNTOOLS_VAR variable" 31809 31810 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 31811 VCVARSFILE="vc/bin/vcvars32.bat" 31812 else 31813 VCVARSFILE="vc/bin/amd64/vcvars64.bat" 31814 fi 31815 31816 31817 windows_path="$VS_BASE" 31818 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 31819 unix_path=`$CYGPATH -u "$windows_path"` 31820 VS_BASE="$unix_path" 31821 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 31822 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 31823 VS_BASE="$unix_path" 31824 fi 31825 31826 if test -d "$VS_BASE"; then 31827 if test -f "$VS_BASE/$VCVARSFILE"; then 31828 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Visual Studio installation at $VS_BASE using $METHOD" >&5 31829 $as_echo "$as_me: Found Visual Studio installation at $VS_BASE using $METHOD" >&6;} 31830 VS_ENV_CMD="$VS_BASE/$VCVARSFILE" 31831 # PLATFORM_TOOLSET is used during the compilation of the freetype sources (see 31832 # 'LIB_BUILD_FREETYPE' in libraries.m4) and must be one of 'v100', 'v110' or 'v120' for VS 2010, 2012 or VS2013 31833 eval PLATFORM_TOOLSET="\${VS_VS_PLATFORM_NAME_${VS_VERSION}}" 31834 else 31835 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Visual Studio installation at $VS_BASE using $METHOD" >&5 31836 $as_echo "$as_me: Found Visual Studio installation at $VS_BASE using $METHOD" >&6;} 31837 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: $VCVARSFILE is missing, this is probably Visual Studio Express. Ignoring" >&5 31838 $as_echo "$as_me: Warning: $VCVARSFILE is missing, this is probably Visual Studio Express. Ignoring" >&6;} 31839 fi 31840 fi 31841 fi 31842 31843 fi 31844 if test "x$PROGRAMFILES" != x; then 31845 31846 if test "x$VS_ENV_CMD" = x; then 31847 VS_VERSION="${VS_VERSION}" 31848 VS_BASE="$PROGRAMFILES/$VS_INSTALL_DIR" 31849 METHOD="well-known name" 31850 31851 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 31852 VCVARSFILE="vc/bin/vcvars32.bat" 31853 else 31854 VCVARSFILE="vc/bin/amd64/vcvars64.bat" 31855 fi 31856 31857 31858 windows_path="$VS_BASE" 31859 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 31860 unix_path=`$CYGPATH -u "$windows_path"` 31861 VS_BASE="$unix_path" 31862 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 31863 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 31864 VS_BASE="$unix_path" 31865 fi 31866 31867 if test -d "$VS_BASE"; then 31868 if test -f "$VS_BASE/$VCVARSFILE"; then 31869 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Visual Studio installation at $VS_BASE using $METHOD" >&5 31870 $as_echo "$as_me: Found Visual Studio installation at $VS_BASE using $METHOD" >&6;} 31871 VS_ENV_CMD="$VS_BASE/$VCVARSFILE" 31872 # PLATFORM_TOOLSET is used during the compilation of the freetype sources (see 31873 # 'LIB_BUILD_FREETYPE' in libraries.m4) and must be one of 'v100', 'v110' or 'v120' for VS 2010, 2012 or VS2013 31874 eval PLATFORM_TOOLSET="\${VS_VS_PLATFORM_NAME_${VS_VERSION}}" 31875 else 31876 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Visual Studio installation at $VS_BASE using $METHOD" >&5 31877 $as_echo "$as_me: Found Visual Studio installation at $VS_BASE using $METHOD" >&6;} 31878 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: $VCVARSFILE is missing, this is probably Visual Studio Express. Ignoring" >&5 31879 $as_echo "$as_me: Warning: $VCVARSFILE is missing, this is probably Visual Studio Express. Ignoring" >&6;} 31880 fi 31881 fi 31882 fi 31883 31884 fi 31885 # Work around the insanely named ProgramFiles(x86) env variable 31886 PROGRAMFILES_X86="`env | $SED -n 's/^ProgramFiles(x86)=//p'`" 31887 if test "x$PROGRAMFILES_X86" != x; then 31888 31889 if test "x$VS_ENV_CMD" = x; then 31890 VS_VERSION="${VS_VERSION}" 31891 VS_BASE="$PROGRAMFILES_X86/$VS_INSTALL_DIR" 31892 METHOD="well-known name" 31893 31894 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 31895 VCVARSFILE="vc/bin/vcvars32.bat" 31896 else 31897 VCVARSFILE="vc/bin/amd64/vcvars64.bat" 31898 fi 31899 31900 31901 windows_path="$VS_BASE" 31902 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 31903 unix_path=`$CYGPATH -u "$windows_path"` 31904 VS_BASE="$unix_path" 31905 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 31906 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 31907 VS_BASE="$unix_path" 31908 fi 31909 31910 if test -d "$VS_BASE"; then 31911 if test -f "$VS_BASE/$VCVARSFILE"; then 31912 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Visual Studio installation at $VS_BASE using $METHOD" >&5 31913 $as_echo "$as_me: Found Visual Studio installation at $VS_BASE using $METHOD" >&6;} 31914 VS_ENV_CMD="$VS_BASE/$VCVARSFILE" 31915 # PLATFORM_TOOLSET is used during the compilation of the freetype sources (see 31916 # 'LIB_BUILD_FREETYPE' in libraries.m4) and must be one of 'v100', 'v110' or 'v120' for VS 2010, 2012 or VS2013 31917 eval PLATFORM_TOOLSET="\${VS_VS_PLATFORM_NAME_${VS_VERSION}}" 31918 else 31919 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Visual Studio installation at $VS_BASE using $METHOD" >&5 31920 $as_echo "$as_me: Found Visual Studio installation at $VS_BASE using $METHOD" >&6;} 31921 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: $VCVARSFILE is missing, this is probably Visual Studio Express. Ignoring" >&5 31922 $as_echo "$as_me: Warning: $VCVARSFILE is missing, this is probably Visual Studio Express. Ignoring" >&6;} 31923 fi 31924 fi 31925 fi 31926 31927 fi 31928 31929 if test "x$VS_ENV_CMD" = x; then 31930 VS_VERSION="${VS_VERSION}" 31931 VS_BASE="C:/Program Files/$VS_INSTALL_DIR" 31932 METHOD="well-known name" 31933 31934 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 31935 VCVARSFILE="vc/bin/vcvars32.bat" 31936 else 31937 VCVARSFILE="vc/bin/amd64/vcvars64.bat" 31938 fi 31939 31940 31941 windows_path="$VS_BASE" 31942 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 31943 unix_path=`$CYGPATH -u "$windows_path"` 31944 VS_BASE="$unix_path" 31945 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 31946 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 31947 VS_BASE="$unix_path" 31948 fi 31949 31950 if test -d "$VS_BASE"; then 31951 if test -f "$VS_BASE/$VCVARSFILE"; then 31952 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Visual Studio installation at $VS_BASE using $METHOD" >&5 31953 $as_echo "$as_me: Found Visual Studio installation at $VS_BASE using $METHOD" >&6;} 31954 VS_ENV_CMD="$VS_BASE/$VCVARSFILE" 31955 # PLATFORM_TOOLSET is used during the compilation of the freetype sources (see 31956 # 'LIB_BUILD_FREETYPE' in libraries.m4) and must be one of 'v100', 'v110' or 'v120' for VS 2010, 2012 or VS2013 31957 eval PLATFORM_TOOLSET="\${VS_VS_PLATFORM_NAME_${VS_VERSION}}" 31958 else 31959 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Visual Studio installation at $VS_BASE using $METHOD" >&5 31960 $as_echo "$as_me: Found Visual Studio installation at $VS_BASE using $METHOD" >&6;} 31961 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: $VCVARSFILE is missing, this is probably Visual Studio Express. Ignoring" >&5 31962 $as_echo "$as_me: Warning: $VCVARSFILE is missing, this is probably Visual Studio Express. Ignoring" >&6;} 31963 fi 31964 fi 31965 fi 31966 31967 31968 if test "x$VS_ENV_CMD" = x; then 31969 VS_VERSION="${VS_VERSION}" 31970 VS_BASE="C:/Program Files (x86)/$VS_INSTALL_DIR" 31971 METHOD="well-known name" 31972 31973 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 31974 VCVARSFILE="vc/bin/vcvars32.bat" 31975 else 31976 VCVARSFILE="vc/bin/amd64/vcvars64.bat" 31977 fi 31978 31979 31980 windows_path="$VS_BASE" 31981 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 31982 unix_path=`$CYGPATH -u "$windows_path"` 31983 VS_BASE="$unix_path" 31984 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 31985 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 31986 VS_BASE="$unix_path" 31987 fi 31988 31989 if test -d "$VS_BASE"; then 31990 if test -f "$VS_BASE/$VCVARSFILE"; then 31991 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Visual Studio installation at $VS_BASE using $METHOD" >&5 31992 $as_echo "$as_me: Found Visual Studio installation at $VS_BASE using $METHOD" >&6;} 31993 VS_ENV_CMD="$VS_BASE/$VCVARSFILE" 31994 # PLATFORM_TOOLSET is used during the compilation of the freetype sources (see 31995 # 'LIB_BUILD_FREETYPE' in libraries.m4) and must be one of 'v100', 'v110' or 'v120' for VS 2010, 2012 or VS2013 31996 eval PLATFORM_TOOLSET="\${VS_VS_PLATFORM_NAME_${VS_VERSION}}" 31997 else 31998 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Visual Studio installation at $VS_BASE using $METHOD" >&5 31999 $as_echo "$as_me: Found Visual Studio installation at $VS_BASE using $METHOD" >&6;} 32000 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: $VCVARSFILE is missing, this is probably Visual Studio Express. Ignoring" >&5 32001 $as_echo "$as_me: Warning: $VCVARSFILE is missing, this is probably Visual Studio Express. Ignoring" >&6;} 32002 fi 32003 fi 32004 fi 32005 32006 32007 if test "x$SDK_INSTALL_DIR" != x; then 32008 if test "x$ProgramW6432" != x; then 32009 32010 if test "x$VS_ENV_CMD" = x; then 32011 VS_VERSION="${VS_VERSION}" 32012 WIN_SDK_BASE="$ProgramW6432/$SDK_INSTALL_DIR" 32013 METHOD="well-known name" 32014 32015 windows_path="$WIN_SDK_BASE" 32016 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 32017 unix_path=`$CYGPATH -u "$windows_path"` 32018 WIN_SDK_BASE="$unix_path" 32019 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 32020 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 32021 WIN_SDK_BASE="$unix_path" 32022 fi 32023 32024 if test -d "$WIN_SDK_BASE"; then 32025 # There have been cases of partial or broken SDK installations. A missing 32026 # lib dir is not going to work. 32027 if test ! -d "$WIN_SDK_BASE/lib"; then 32028 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5 32029 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;} 32030 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: Installation is broken, lib dir is missing. Ignoring" >&5 32031 $as_echo "$as_me: Warning: Installation is broken, lib dir is missing. Ignoring" >&6;} 32032 elif test -f "$WIN_SDK_BASE/Bin/SetEnv.Cmd"; then 32033 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5 32034 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;} 32035 VS_ENV_CMD="$WIN_SDK_BASE/Bin/SetEnv.Cmd" 32036 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 32037 VS_ENV_ARGS="/x86" 32038 else 32039 VS_ENV_ARGS="/x64" 32040 fi 32041 # PLATFORM_TOOLSET is used during the compilation of the freetype sources (see 32042 # 'LIB_BUILD_FREETYPE' in libraries.m4) and must be 'Windows7.1SDK' for Windows7.1SDK 32043 # TODO: improve detection for other versions of SDK 32044 eval PLATFORM_TOOLSET="\${VS_SDK_PLATFORM_NAME_${VS_VERSION}}" 32045 else 32046 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5 32047 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;} 32048 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: Installation is broken, SetEnv.Cmd is missing. Ignoring" >&5 32049 $as_echo "$as_me: Warning: Installation is broken, SetEnv.Cmd is missing. Ignoring" >&6;} 32050 fi 32051 fi 32052 fi 32053 32054 fi 32055 if test "x$PROGRAMW6432" != x; then 32056 32057 if test "x$VS_ENV_CMD" = x; then 32058 VS_VERSION="${VS_VERSION}" 32059 WIN_SDK_BASE="$PROGRAMW6432/$SDK_INSTALL_DIR" 32060 METHOD="well-known name" 32061 32062 windows_path="$WIN_SDK_BASE" 32063 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 32064 unix_path=`$CYGPATH -u "$windows_path"` 32065 WIN_SDK_BASE="$unix_path" 32066 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 32067 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 32068 WIN_SDK_BASE="$unix_path" 32069 fi 32070 32071 if test -d "$WIN_SDK_BASE"; then 32072 # There have been cases of partial or broken SDK installations. A missing 32073 # lib dir is not going to work. 32074 if test ! -d "$WIN_SDK_BASE/lib"; then 32075 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5 32076 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;} 32077 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: Installation is broken, lib dir is missing. Ignoring" >&5 32078 $as_echo "$as_me: Warning: Installation is broken, lib dir is missing. Ignoring" >&6;} 32079 elif test -f "$WIN_SDK_BASE/Bin/SetEnv.Cmd"; then 32080 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5 32081 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;} 32082 VS_ENV_CMD="$WIN_SDK_BASE/Bin/SetEnv.Cmd" 32083 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 32084 VS_ENV_ARGS="/x86" 32085 else 32086 VS_ENV_ARGS="/x64" 32087 fi 32088 # PLATFORM_TOOLSET is used during the compilation of the freetype sources (see 32089 # 'LIB_BUILD_FREETYPE' in libraries.m4) and must be 'Windows7.1SDK' for Windows7.1SDK 32090 # TODO: improve detection for other versions of SDK 32091 eval PLATFORM_TOOLSET="\${VS_SDK_PLATFORM_NAME_${VS_VERSION}}" 32092 else 32093 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5 32094 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;} 32095 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: Installation is broken, SetEnv.Cmd is missing. Ignoring" >&5 32096 $as_echo "$as_me: Warning: Installation is broken, SetEnv.Cmd is missing. Ignoring" >&6;} 32097 fi 32098 fi 32099 fi 32100 32101 fi 32102 if test "x$PROGRAMFILES" != x; then 32103 32104 if test "x$VS_ENV_CMD" = x; then 32105 VS_VERSION="${VS_VERSION}" 32106 WIN_SDK_BASE="$PROGRAMFILES/$SDK_INSTALL_DIR" 32107 METHOD="well-known name" 32108 32109 windows_path="$WIN_SDK_BASE" 32110 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 32111 unix_path=`$CYGPATH -u "$windows_path"` 32112 WIN_SDK_BASE="$unix_path" 32113 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 32114 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 32115 WIN_SDK_BASE="$unix_path" 32116 fi 32117 32118 if test -d "$WIN_SDK_BASE"; then 32119 # There have been cases of partial or broken SDK installations. A missing 32120 # lib dir is not going to work. 32121 if test ! -d "$WIN_SDK_BASE/lib"; then 32122 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5 32123 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;} 32124 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: Installation is broken, lib dir is missing. Ignoring" >&5 32125 $as_echo "$as_me: Warning: Installation is broken, lib dir is missing. Ignoring" >&6;} 32126 elif test -f "$WIN_SDK_BASE/Bin/SetEnv.Cmd"; then 32127 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5 32128 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;} 32129 VS_ENV_CMD="$WIN_SDK_BASE/Bin/SetEnv.Cmd" 32130 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 32131 VS_ENV_ARGS="/x86" 32132 else 32133 VS_ENV_ARGS="/x64" 32134 fi 32135 # PLATFORM_TOOLSET is used during the compilation of the freetype sources (see 32136 # 'LIB_BUILD_FREETYPE' in libraries.m4) and must be 'Windows7.1SDK' for Windows7.1SDK 32137 # TODO: improve detection for other versions of SDK 32138 eval PLATFORM_TOOLSET="\${VS_SDK_PLATFORM_NAME_${VS_VERSION}}" 32139 else 32140 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5 32141 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;} 32142 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: Installation is broken, SetEnv.Cmd is missing. Ignoring" >&5 32143 $as_echo "$as_me: Warning: Installation is broken, SetEnv.Cmd is missing. Ignoring" >&6;} 32144 fi 32145 fi 32146 fi 32147 32148 fi 32149 32150 if test "x$VS_ENV_CMD" = x; then 32151 VS_VERSION="${VS_VERSION}" 32152 WIN_SDK_BASE="C:/Program Files/$SDK_INSTALL_DIR" 32153 METHOD="well-known name" 32154 32155 windows_path="$WIN_SDK_BASE" 32156 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 32157 unix_path=`$CYGPATH -u "$windows_path"` 32158 WIN_SDK_BASE="$unix_path" 32159 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 32160 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 32161 WIN_SDK_BASE="$unix_path" 32162 fi 32163 32164 if test -d "$WIN_SDK_BASE"; then 32165 # There have been cases of partial or broken SDK installations. A missing 32166 # lib dir is not going to work. 32167 if test ! -d "$WIN_SDK_BASE/lib"; then 32168 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5 32169 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;} 32170 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: Installation is broken, lib dir is missing. Ignoring" >&5 32171 $as_echo "$as_me: Warning: Installation is broken, lib dir is missing. Ignoring" >&6;} 32172 elif test -f "$WIN_SDK_BASE/Bin/SetEnv.Cmd"; then 32173 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5 32174 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;} 32175 VS_ENV_CMD="$WIN_SDK_BASE/Bin/SetEnv.Cmd" 32176 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 32177 VS_ENV_ARGS="/x86" 32178 else 32179 VS_ENV_ARGS="/x64" 32180 fi 32181 # PLATFORM_TOOLSET is used during the compilation of the freetype sources (see 32182 # 'LIB_BUILD_FREETYPE' in libraries.m4) and must be 'Windows7.1SDK' for Windows7.1SDK 32183 # TODO: improve detection for other versions of SDK 32184 eval PLATFORM_TOOLSET="\${VS_SDK_PLATFORM_NAME_${VS_VERSION}}" 32185 else 32186 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5 32187 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;} 32188 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: Installation is broken, SetEnv.Cmd is missing. Ignoring" >&5 32189 $as_echo "$as_me: Warning: Installation is broken, SetEnv.Cmd is missing. Ignoring" >&6;} 32190 fi 32191 fi 32192 fi 32193 32194 32195 if test "x$VS_ENV_CMD" = x; then 32196 VS_VERSION="${VS_VERSION}" 32197 WIN_SDK_BASE="C:/Program Files (x86)/$SDK_INSTALL_DIR" 32198 METHOD="well-known name" 32199 32200 windows_path="$WIN_SDK_BASE" 32201 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 32202 unix_path=`$CYGPATH -u "$windows_path"` 32203 WIN_SDK_BASE="$unix_path" 32204 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 32205 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 32206 WIN_SDK_BASE="$unix_path" 32207 fi 32208 32209 if test -d "$WIN_SDK_BASE"; then 32210 # There have been cases of partial or broken SDK installations. A missing 32211 # lib dir is not going to work. 32212 if test ! -d "$WIN_SDK_BASE/lib"; then 32213 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5 32214 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;} 32215 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: Installation is broken, lib dir is missing. Ignoring" >&5 32216 $as_echo "$as_me: Warning: Installation is broken, lib dir is missing. Ignoring" >&6;} 32217 elif test -f "$WIN_SDK_BASE/Bin/SetEnv.Cmd"; then 32218 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5 32219 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;} 32220 VS_ENV_CMD="$WIN_SDK_BASE/Bin/SetEnv.Cmd" 32221 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 32222 VS_ENV_ARGS="/x86" 32223 else 32224 VS_ENV_ARGS="/x64" 32225 fi 32226 # PLATFORM_TOOLSET is used during the compilation of the freetype sources (see 32227 # 'LIB_BUILD_FREETYPE' in libraries.m4) and must be 'Windows7.1SDK' for Windows7.1SDK 32228 # TODO: improve detection for other versions of SDK 32229 eval PLATFORM_TOOLSET="\${VS_SDK_PLATFORM_NAME_${VS_VERSION}}" 32230 else 32231 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5 32232 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;} 32233 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: Installation is broken, SetEnv.Cmd is missing. Ignoring" >&5 32234 $as_echo "$as_me: Warning: Installation is broken, SetEnv.Cmd is missing. Ignoring" >&6;} 32235 fi 32236 fi 32237 fi 32238 32239 fi 32240 32241 if test "x$VS_ENV_CMD" != x; then 32242 TOOLCHAIN_VERSION=$VS_VERSION 32243 eval VS_DESCRIPTION="\${VS_DESCRIPTION_${VS_VERSION}}" 32244 eval VS_VERSION_INTERNAL="\${VS_VERSION_INTERNAL_${VS_VERSION}}" 32245 eval MSVCR_NAME="\${VS_MSVCR_${VS_VERSION}}" 32246 eval MSVCP_NAME="\${VS_MSVCP_${VS_VERSION}}" 32247 # The rest of the variables are already evaled while probing 32248 { $as_echo "$as_me:${as_lineno-$LINENO}: Found $VS_DESCRIPTION" >&5 32249 $as_echo "$as_me: Found $VS_DESCRIPTION" >&6;} 32250 break 32251 fi 32252 done 32253 32254 32255 # If we have a devkit, skip all of the below. 32256 if test "x$DEVKIT_VS_VERSION" = x; then 32257 if test "x$VS_ENV_CMD" != x; then 32258 # We have found a Visual Studio environment on disk, let's extract variables from the vsvars bat file. 32259 32260 # Only process if variable expands to non-empty 32261 32262 if test "x$VS_ENV_CMD" != x; then 32263 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 32264 32265 # First separate the path from the arguments. This will split at the first 32266 # space. 32267 complete="$VS_ENV_CMD" 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=`$CYGPATH -u "$path"` 32275 32276 # Now try to locate executable using which 32277 new_path=`$WHICH "$new_path" 2> /dev/null` 32278 # bat and cmd files are not always considered executable in cygwin causing which 32279 # to not find them 32280 if test "x$new_path" = x \ 32281 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 32282 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 32283 new_path=`$CYGPATH -u "$path"` 32284 fi 32285 if test "x$new_path" = x; then 32286 # Oops. Which didn't find the executable. 32287 # The splitting of arguments from the executable at a space might have been incorrect, 32288 # since paths with space are more likely in Windows. Give it another try with the whole 32289 # argument. 32290 path="$complete" 32291 arguments="EOL" 32292 new_path=`$CYGPATH -u "$path"` 32293 new_path=`$WHICH "$new_path" 2> /dev/null` 32294 # bat and cmd files are not always considered executable in cygwin causing which 32295 # to not find them 32296 if test "x$new_path" = x \ 32297 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 32298 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 32299 new_path=`$CYGPATH -u "$path"` 32300 fi 32301 if test "x$new_path" = x; then 32302 # It's still not found. Now this is an unrecoverable error. 32303 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of VS_ENV_CMD, which resolves as \"$complete\", is not found." >&5 32304 $as_echo "$as_me: The path of VS_ENV_CMD, which resolves as \"$complete\", is not found." >&6;} 32305 has_space=`$ECHO "$complete" | $GREP " "` 32306 if test "x$has_space" != x; then 32307 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 32308 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 32309 fi 32310 as_fn_error $? "Cannot locate the the path of VS_ENV_CMD" "$LINENO" 5 32311 fi 32312 fi 32313 32314 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 32315 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 32316 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 32317 # "foo.exe" is OK but "foo" is an error. 32318 # 32319 # This test is therefore slightly more accurate than "test -f" to check for file presence. 32320 # It is also a way to make sure we got the proper file name for the real test later on. 32321 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 32322 if test "x$test_shortpath" = x; then 32323 # Short path failed, file does not exist as specified. 32324 # Try adding .exe or .cmd 32325 if test -f "${new_path}.exe"; then 32326 input_to_shortpath="${new_path}.exe" 32327 elif test -f "${new_path}.cmd"; then 32328 input_to_shortpath="${new_path}.cmd" 32329 else 32330 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of VS_ENV_CMD, which resolves as \"$new_path\", is invalid." >&5 32331 $as_echo "$as_me: The path of VS_ENV_CMD, which resolves as \"$new_path\", is invalid." >&6;} 32332 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 32333 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 32334 as_fn_error $? "Cannot locate the the path of VS_ENV_CMD" "$LINENO" 5 32335 fi 32336 else 32337 input_to_shortpath="$new_path" 32338 fi 32339 32340 # Call helper function which possibly converts this using DOS-style short mode. 32341 # If so, the updated path is stored in $new_path. 32342 new_path="$input_to_shortpath" 32343 32344 input_path="$input_to_shortpath" 32345 # Check if we need to convert this using DOS-style short mode. If the path 32346 # contains just simple characters, use it. Otherwise (spaces, weird characters), 32347 # take no chances and rewrite it. 32348 # Note: m4 eats our [], so we need to use [ and ] instead. 32349 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 32350 if test "x$has_forbidden_chars" != x; then 32351 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 32352 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 32353 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 32354 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 32355 # Going to short mode and back again did indeed matter. Since short mode is 32356 # case insensitive, let's make it lowercase to improve readability. 32357 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 32358 # Now convert it back to Unix-style (cygpath) 32359 input_path=`$CYGPATH -u "$shortmode_path"` 32360 new_path="$input_path" 32361 fi 32362 fi 32363 32364 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 32365 if test "x$test_cygdrive_prefix" = x; then 32366 # As a simple fix, exclude /usr/bin since it's not a real path. 32367 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 32368 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 32369 # a path prefixed by /cygdrive for fixpath to work. 32370 new_path="$CYGWIN_ROOT_PATH$input_path" 32371 fi 32372 fi 32373 32374 # remove trailing .exe if any 32375 new_path="${new_path/%.exe/}" 32376 32377 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 32378 32379 # First separate the path from the arguments. This will split at the first 32380 # space. 32381 complete="$VS_ENV_CMD" 32382 path="${complete%% *}" 32383 tmp="$complete EOL" 32384 arguments="${tmp#* }" 32385 32386 # Input might be given as Windows format, start by converting to 32387 # unix format. 32388 new_path="$path" 32389 32390 windows_path="$new_path" 32391 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 32392 unix_path=`$CYGPATH -u "$windows_path"` 32393 new_path="$unix_path" 32394 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 32395 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 32396 new_path="$unix_path" 32397 fi 32398 32399 32400 # Now try to locate executable using which 32401 new_path=`$WHICH "$new_path" 2> /dev/null` 32402 32403 if test "x$new_path" = x; then 32404 # Oops. Which didn't find the executable. 32405 # The splitting of arguments from the executable at a space might have been incorrect, 32406 # since paths with space are more likely in Windows. Give it another try with the whole 32407 # argument. 32408 path="$complete" 32409 arguments="EOL" 32410 new_path="$path" 32411 32412 windows_path="$new_path" 32413 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 32414 unix_path=`$CYGPATH -u "$windows_path"` 32415 new_path="$unix_path" 32416 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 32417 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 32418 new_path="$unix_path" 32419 fi 32420 32421 32422 new_path=`$WHICH "$new_path" 2> /dev/null` 32423 # bat and cmd files are not always considered executable in MSYS causing which 32424 # to not find them 32425 if test "x$new_path" = x \ 32426 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 32427 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 32428 new_path="$path" 32429 32430 windows_path="$new_path" 32431 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 32432 unix_path=`$CYGPATH -u "$windows_path"` 32433 new_path="$unix_path" 32434 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 32435 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 32436 new_path="$unix_path" 32437 fi 32438 32439 fi 32440 32441 if test "x$new_path" = x; then 32442 # It's still not found. Now this is an unrecoverable error. 32443 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of VS_ENV_CMD, which resolves as \"$complete\", is not found." >&5 32444 $as_echo "$as_me: The path of VS_ENV_CMD, which resolves as \"$complete\", is not found." >&6;} 32445 has_space=`$ECHO "$complete" | $GREP " "` 32446 if test "x$has_space" != x; then 32447 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 32448 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 32449 fi 32450 as_fn_error $? "Cannot locate the the path of VS_ENV_CMD" "$LINENO" 5 32451 fi 32452 fi 32453 32454 # Now new_path has a complete unix path to the binary 32455 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 32456 # Keep paths in /bin as-is, but remove trailing .exe if any 32457 new_path="${new_path/%.exe/}" 32458 # Do not save /bin paths to all_fixpath_prefixes! 32459 else 32460 # Not in mixed or Windows style, start by that. 32461 new_path=`cmd //c echo $new_path` 32462 32463 input_path="$new_path" 32464 # Check if we need to convert this using DOS-style short mode. If the path 32465 # contains just simple characters, use it. Otherwise (spaces, weird characters), 32466 # take no chances and rewrite it. 32467 # Note: m4 eats our [], so we need to use [ and ] instead. 32468 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 32469 if test "x$has_forbidden_chars" != x; then 32470 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 32471 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 32472 fi 32473 32474 # Output is in $new_path 32475 32476 windows_path="$new_path" 32477 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 32478 unix_path=`$CYGPATH -u "$windows_path"` 32479 new_path="$unix_path" 32480 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 32481 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 32482 new_path="$unix_path" 32483 fi 32484 32485 # remove trailing .exe if any 32486 new_path="${new_path/%.exe/}" 32487 32488 # Save the first 10 bytes of this path to the storage, so fixpath can work. 32489 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 32490 fi 32491 32492 else 32493 # We're on a unix platform. Hooray! :) 32494 # First separate the path from the arguments. This will split at the first 32495 # space. 32496 complete="$VS_ENV_CMD" 32497 path="${complete%% *}" 32498 tmp="$complete EOL" 32499 arguments="${tmp#* }" 32500 32501 # Cannot rely on the command "which" here since it doesn't always work. 32502 is_absolute_path=`$ECHO "$path" | $GREP ^/` 32503 if test -z "$is_absolute_path"; then 32504 # Path to executable is not absolute. Find it. 32505 IFS_save="$IFS" 32506 IFS=: 32507 for p in $PATH; do 32508 if test -f "$p/$path" && test -x "$p/$path"; then 32509 new_path="$p/$path" 32510 break 32511 fi 32512 done 32513 IFS="$IFS_save" 32514 else 32515 # This is an absolute path, we can use it without further modifications. 32516 new_path="$path" 32517 fi 32518 32519 if test "x$new_path" = x; then 32520 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of VS_ENV_CMD, which resolves as \"$complete\", is not found." >&5 32521 $as_echo "$as_me: The path of VS_ENV_CMD, which resolves as \"$complete\", is not found." >&6;} 32522 has_space=`$ECHO "$complete" | $GREP " "` 32523 if test "x$has_space" != x; then 32524 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 32525 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 32526 fi 32527 as_fn_error $? "Cannot locate the the path of VS_ENV_CMD" "$LINENO" 5 32528 fi 32529 fi 32530 32531 # Now join together the path and the arguments once again 32532 if test "x$arguments" != xEOL; then 32533 new_complete="$new_path ${arguments% *}" 32534 else 32535 new_complete="$new_path" 32536 fi 32537 32538 if test "x$complete" != "x$new_complete"; then 32539 VS_ENV_CMD="$new_complete" 32540 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting VS_ENV_CMD to \"$new_complete\"" >&5 32541 $as_echo "$as_me: Rewriting VS_ENV_CMD to \"$new_complete\"" >&6;} 32542 fi 32543 fi 32544 32545 32546 # Lets extract the variables that are set by vcvarsall.bat/vsvars32.bat/vsvars64.bat 32547 { $as_echo "$as_me:${as_lineno-$LINENO}: Trying to extract Visual Studio environment variables" >&5 32548 $as_echo "$as_me: Trying to extract Visual Studio environment variables" >&6;} 32549 32550 # We need to create a couple of temporary files. 32551 VS_ENV_TMP_DIR="$CONFIGURESUPPORT_OUTPUTDIR/vs-env" 32552 $MKDIR -p $VS_ENV_TMP_DIR 32553 32554 # Cannot use the VS10 setup script directly (since it only updates the DOS subshell environment). 32555 # Instead create a shell script which will set the relevant variables when run. 32556 WINPATH_VS_ENV_CMD="$VS_ENV_CMD" 32557 32558 unix_path="$WINPATH_VS_ENV_CMD" 32559 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 32560 windows_path=`$CYGPATH -m "$unix_path"` 32561 WINPATH_VS_ENV_CMD="$windows_path" 32562 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 32563 windows_path=`cmd //c echo $unix_path` 32564 WINPATH_VS_ENV_CMD="$windows_path" 32565 fi 32566 32567 WINPATH_BASH="$BASH" 32568 32569 unix_path="$WINPATH_BASH" 32570 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 32571 windows_path=`$CYGPATH -m "$unix_path"` 32572 WINPATH_BASH="$windows_path" 32573 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 32574 windows_path=`cmd //c echo $unix_path` 32575 WINPATH_BASH="$windows_path" 32576 fi 32577 32578 32579 # Generate a DOS batch file which runs $VS_ENV_CMD, and then creates a shell 32580 # script (executable by bash) that will setup the important variables. 32581 EXTRACT_VC_ENV_BAT_FILE="$VS_ENV_TMP_DIR/extract-vs-env.bat" 32582 $ECHO "@echo off" > $EXTRACT_VC_ENV_BAT_FILE 32583 # This will end up something like: 32584 # call C:/progra~2/micros~2.0/vc/bin/amd64/vcvars64.bat 32585 $ECHO "call $WINPATH_VS_ENV_CMD $VS_ENV_ARGS" >> $EXTRACT_VC_ENV_BAT_FILE 32586 # These will end up something like: 32587 # C:/CygWin/bin/bash -c 'echo VS_PATH=\"$PATH\" > localdevenv.sh 32588 # The trailing space for everyone except PATH is no typo, but is needed due 32589 # to trailing \ in the Windows paths. These will be stripped later. 32590 $ECHO "$WINPATH_BASH -c 'echo VS_PATH="'\"$PATH\" > set-vs-env.sh' \ 32591 >> $EXTRACT_VC_ENV_BAT_FILE 32592 $ECHO "$WINPATH_BASH -c 'echo VS_INCLUDE="'\"$INCLUDE\;$include \" >> set-vs-env.sh' \ 32593 >> $EXTRACT_VC_ENV_BAT_FILE 32594 $ECHO "$WINPATH_BASH -c 'echo VS_LIB="'\"$LIB\;$lib \" >> set-vs-env.sh' \ 32595 >> $EXTRACT_VC_ENV_BAT_FILE 32596 $ECHO "$WINPATH_BASH -c 'echo VCINSTALLDIR="'\"$VCINSTALLDIR \" >> set-vs-env.sh' \ 32597 >> $EXTRACT_VC_ENV_BAT_FILE 32598 $ECHO "$WINPATH_BASH -c 'echo WindowsSdkDir="'\"$WindowsSdkDir \" >> set-vs-env.sh' \ 32599 >> $EXTRACT_VC_ENV_BAT_FILE 32600 $ECHO "$WINPATH_BASH -c 'echo WINDOWSSDKDIR="'\"$WINDOWSSDKDIR \" >> set-vs-env.sh' \ 32601 >> $EXTRACT_VC_ENV_BAT_FILE 32602 32603 # Now execute the newly created bat file. 32604 # The | cat is to stop SetEnv.Cmd to mess with system colors on msys. 32605 # Change directory so we don't need to mess with Windows paths in redirects. 32606 cd $VS_ENV_TMP_DIR 32607 cmd /c extract-vs-env.bat | $CAT 32608 cd $CURDIR 32609 32610 if test ! -s $VS_ENV_TMP_DIR/set-vs-env.sh; then 32611 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not succesfully extract the envionment variables needed for the VS setup." >&5 32612 $as_echo "$as_me: Could not succesfully extract the envionment variables needed for the VS setup." >&6;} 32613 { $as_echo "$as_me:${as_lineno-$LINENO}: Try setting --with-tools-dir to the VC/bin directory within the VS installation" >&5 32614 $as_echo "$as_me: Try setting --with-tools-dir to the VC/bin directory within the VS installation" >&6;} 32615 { $as_echo "$as_me:${as_lineno-$LINENO}: or run \"bash.exe -l\" from a VS command prompt and then run configure from there." >&5 32616 $as_echo "$as_me: or run \"bash.exe -l\" from a VS command prompt and then run configure from there." >&6;} 32617 as_fn_error $? "Cannot continue" "$LINENO" 5 32618 fi 32619 32620 # Now set all paths and other env variables. This will allow the rest of 32621 # the configure script to find and run the compiler in the proper way. 32622 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting extracted environment variables" >&5 32623 $as_echo "$as_me: Setting extracted environment variables" >&6;} 32624 . $VS_ENV_TMP_DIR/set-vs-env.sh 32625 # Now we have VS_PATH, VS_INCLUDE, VS_LIB. For further checking, we 32626 # also define VCINSTALLDIR, WindowsSdkDir and WINDOWSSDKDIR. 32627 else 32628 # We did not find a vsvars bat file, let's hope we are run from a VS command prompt. 32629 { $as_echo "$as_me:${as_lineno-$LINENO}: Cannot locate a valid Visual Studio installation, checking current environment" >&5 32630 $as_echo "$as_me: Cannot locate a valid Visual Studio installation, checking current environment" >&6;} 32631 fi 32632 fi 32633 32634 # At this point, we should have correct variables in the environment, or we can't continue. 32635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Visual Studio variables" >&5 32636 $as_echo_n "checking for Visual Studio variables... " >&6; } 32637 32638 if test "x$VCINSTALLDIR" != x || test "x$WindowsSDKDir" != x \ 32639 || test "x$WINDOWSSDKDIR" != x || test "x$DEVKIT_NAME" != x; then 32640 if test "x$VS_INCLUDE" = x || test "x$VS_LIB" = x; then 32641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: present but broken" >&5 32642 $as_echo "present but broken" >&6; } 32643 as_fn_error $? "Your VC command prompt seems broken, INCLUDE and/or LIB is missing." "$LINENO" 5 32644 else 32645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 32646 $as_echo "ok" >&6; } 32647 # Remove any trailing "\" ";" and " " from the variables. 32648 VS_INCLUDE=`$ECHO "$VS_INCLUDE" | $SED -e 's/\\\\*;* *$//'` 32649 VS_LIB=`$ECHO "$VS_LIB" | $SED 's/\\\\*;* *$//'` 32650 VCINSTALLDIR=`$ECHO "$VCINSTALLDIR" | $SED 's/\\\\* *$//'` 32651 WindowsSDKDir=`$ECHO "$WindowsSDKDir" | $SED 's/\\\\* *$//'` 32652 WINDOWSSDKDIR=`$ECHO "$WINDOWSSDKDIR" | $SED 's/\\\\* *$//'` 32653 # Remove any paths containing # (typically F#) as that messes up make. This 32654 # is needed if visual studio was installed with F# support. 32655 VS_PATH=`$ECHO "$VS_PATH" | $SED 's/[^:#]*#[^:]*://g'` 32656 32657 32658 32659 32660 32661 # Convert VS_INCLUDE into SYSROOT_CFLAGS 32662 OLDIFS="$IFS" 32663 IFS=";" 32664 for i in $VS_INCLUDE; do 32665 ipath=$i 32666 # Only process non-empty elements 32667 if test "x$ipath" != x; then 32668 IFS="$OLDIFS" 32669 # Check that directory exists before calling fixup_path 32670 testpath=$ipath 32671 32672 windows_path="$testpath" 32673 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 32674 unix_path=`$CYGPATH -u "$windows_path"` 32675 testpath="$unix_path" 32676 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 32677 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 32678 testpath="$unix_path" 32679 fi 32680 32681 if test -d "$testpath"; then 32682 32683 # Only process if variable expands to non-empty 32684 32685 if test "x$ipath" != x; then 32686 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 32687 32688 # Input might be given as Windows format, start by converting to 32689 # unix format. 32690 path="$ipath" 32691 new_path=`$CYGPATH -u "$path"` 32692 32693 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 32694 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 32695 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 32696 # "foo.exe" is OK but "foo" is an error. 32697 # 32698 # This test is therefore slightly more accurate than "test -f" to check for file precense. 32699 # It is also a way to make sure we got the proper file name for the real test later on. 32700 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 32701 if test "x$test_shortpath" = x; then 32702 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of ipath, which resolves as \"$path\", is invalid." >&5 32703 $as_echo "$as_me: The path of ipath, which resolves as \"$path\", is invalid." >&6;} 32704 as_fn_error $? "Cannot locate the the path of ipath" "$LINENO" 5 32705 fi 32706 32707 # Call helper function which possibly converts this using DOS-style short mode. 32708 # If so, the updated path is stored in $new_path. 32709 32710 input_path="$new_path" 32711 # Check if we need to convert this using DOS-style short mode. If the path 32712 # contains just simple characters, use it. Otherwise (spaces, weird characters), 32713 # take no chances and rewrite it. 32714 # Note: m4 eats our [], so we need to use [ and ] instead. 32715 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 32716 if test "x$has_forbidden_chars" != x; then 32717 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 32718 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 32719 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 32720 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 32721 # Going to short mode and back again did indeed matter. Since short mode is 32722 # case insensitive, let's make it lowercase to improve readability. 32723 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 32724 # Now convert it back to Unix-style (cygpath) 32725 input_path=`$CYGPATH -u "$shortmode_path"` 32726 new_path="$input_path" 32727 fi 32728 fi 32729 32730 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 32731 if test "x$test_cygdrive_prefix" = x; then 32732 # As a simple fix, exclude /usr/bin since it's not a real path. 32733 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 32734 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 32735 # a path prefixed by /cygdrive for fixpath to work. 32736 new_path="$CYGWIN_ROOT_PATH$input_path" 32737 fi 32738 fi 32739 32740 32741 if test "x$path" != "x$new_path"; then 32742 ipath="$new_path" 32743 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting ipath to \"$new_path\"" >&5 32744 $as_echo "$as_me: Rewriting ipath to \"$new_path\"" >&6;} 32745 fi 32746 32747 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 32748 32749 path="$ipath" 32750 has_colon=`$ECHO $path | $GREP ^.:` 32751 new_path="$path" 32752 if test "x$has_colon" = x; then 32753 # Not in mixed or Windows style, start by that. 32754 new_path=`cmd //c echo $path` 32755 fi 32756 32757 32758 input_path="$new_path" 32759 # Check if we need to convert this using DOS-style short mode. If the path 32760 # contains just simple characters, use it. Otherwise (spaces, weird characters), 32761 # take no chances and rewrite it. 32762 # Note: m4 eats our [], so we need to use [ and ] instead. 32763 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 32764 if test "x$has_forbidden_chars" != x; then 32765 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 32766 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 32767 fi 32768 32769 32770 windows_path="$new_path" 32771 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 32772 unix_path=`$CYGPATH -u "$windows_path"` 32773 new_path="$unix_path" 32774 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 32775 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 32776 new_path="$unix_path" 32777 fi 32778 32779 if test "x$path" != "x$new_path"; then 32780 ipath="$new_path" 32781 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting ipath to \"$new_path\"" >&5 32782 $as_echo "$as_me: Rewriting ipath to \"$new_path\"" >&6;} 32783 fi 32784 32785 # Save the first 10 bytes of this path to the storage, so fixpath can work. 32786 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 32787 32788 else 32789 # We're on a unix platform. Hooray! :) 32790 path="$ipath" 32791 has_space=`$ECHO "$path" | $GREP " "` 32792 if test "x$has_space" != x; then 32793 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of ipath, which resolves as \"$path\", is invalid." >&5 32794 $as_echo "$as_me: The path of ipath, which resolves as \"$path\", is invalid." >&6;} 32795 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 32796 fi 32797 32798 # Use eval to expand a potential ~ 32799 eval path="$path" 32800 if test ! -f "$path" && test ! -d "$path"; then 32801 as_fn_error $? "The path of ipath, which resolves as \"$path\", is not found." "$LINENO" 5 32802 fi 32803 32804 if test -d "$path"; then 32805 ipath="`cd "$path"; $THEPWDCMD -L`" 32806 else 32807 dir="`$DIRNAME "$path"`" 32808 base="`$BASENAME "$path"`" 32809 ipath="`cd "$dir"; $THEPWDCMD -L`/$base" 32810 fi 32811 fi 32812 fi 32813 32814 SYSROOT_CFLAGS="$SYSROOT_CFLAGS -I$ipath" 32815 fi 32816 IFS=";" 32817 fi 32818 done 32819 # Convert VS_LIB into SYSROOT_LDFLAGS 32820 for i in $VS_LIB; do 32821 libpath=$i 32822 # Only process non-empty elements 32823 if test "x$libpath" != x; then 32824 IFS="$OLDIFS" 32825 # Check that directory exists before calling fixup_path 32826 testpath=$libpath 32827 32828 windows_path="$testpath" 32829 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 32830 unix_path=`$CYGPATH -u "$windows_path"` 32831 testpath="$unix_path" 32832 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 32833 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 32834 testpath="$unix_path" 32835 fi 32836 32837 if test -d "$testpath"; then 32838 32839 # Only process if variable expands to non-empty 32840 32841 if test "x$libpath" != x; then 32842 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 32843 32844 # Input might be given as Windows format, start by converting to 32845 # unix format. 32846 path="$libpath" 32847 new_path=`$CYGPATH -u "$path"` 32848 32849 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 32850 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 32851 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 32852 # "foo.exe" is OK but "foo" is an error. 32853 # 32854 # This test is therefore slightly more accurate than "test -f" to check for file precense. 32855 # It is also a way to make sure we got the proper file name for the real test later on. 32856 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 32857 if test "x$test_shortpath" = x; then 32858 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of libpath, which resolves as \"$path\", is invalid." >&5 32859 $as_echo "$as_me: The path of libpath, which resolves as \"$path\", is invalid." >&6;} 32860 as_fn_error $? "Cannot locate the the path of libpath" "$LINENO" 5 32861 fi 32862 32863 # Call helper function which possibly converts this using DOS-style short mode. 32864 # If so, the updated path is stored in $new_path. 32865 32866 input_path="$new_path" 32867 # Check if we need to convert this using DOS-style short mode. If the path 32868 # contains just simple characters, use it. Otherwise (spaces, weird characters), 32869 # take no chances and rewrite it. 32870 # Note: m4 eats our [], so we need to use [ and ] instead. 32871 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 32872 if test "x$has_forbidden_chars" != x; then 32873 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 32874 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 32875 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 32876 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 32877 # Going to short mode and back again did indeed matter. Since short mode is 32878 # case insensitive, let's make it lowercase to improve readability. 32879 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 32880 # Now convert it back to Unix-style (cygpath) 32881 input_path=`$CYGPATH -u "$shortmode_path"` 32882 new_path="$input_path" 32883 fi 32884 fi 32885 32886 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 32887 if test "x$test_cygdrive_prefix" = x; then 32888 # As a simple fix, exclude /usr/bin since it's not a real path. 32889 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 32890 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 32891 # a path prefixed by /cygdrive for fixpath to work. 32892 new_path="$CYGWIN_ROOT_PATH$input_path" 32893 fi 32894 fi 32895 32896 32897 if test "x$path" != "x$new_path"; then 32898 libpath="$new_path" 32899 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting libpath to \"$new_path\"" >&5 32900 $as_echo "$as_me: Rewriting libpath to \"$new_path\"" >&6;} 32901 fi 32902 32903 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 32904 32905 path="$libpath" 32906 has_colon=`$ECHO $path | $GREP ^.:` 32907 new_path="$path" 32908 if test "x$has_colon" = x; then 32909 # Not in mixed or Windows style, start by that. 32910 new_path=`cmd //c echo $path` 32911 fi 32912 32913 32914 input_path="$new_path" 32915 # Check if we need to convert this using DOS-style short mode. If the path 32916 # contains just simple characters, use it. Otherwise (spaces, weird characters), 32917 # take no chances and rewrite it. 32918 # Note: m4 eats our [], so we need to use [ and ] instead. 32919 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 32920 if test "x$has_forbidden_chars" != x; then 32921 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 32922 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 32923 fi 32924 32925 32926 windows_path="$new_path" 32927 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 32928 unix_path=`$CYGPATH -u "$windows_path"` 32929 new_path="$unix_path" 32930 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 32931 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 32932 new_path="$unix_path" 32933 fi 32934 32935 if test "x$path" != "x$new_path"; then 32936 libpath="$new_path" 32937 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting libpath to \"$new_path\"" >&5 32938 $as_echo "$as_me: Rewriting libpath to \"$new_path\"" >&6;} 32939 fi 32940 32941 # Save the first 10 bytes of this path to the storage, so fixpath can work. 32942 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 32943 32944 else 32945 # We're on a unix platform. Hooray! :) 32946 path="$libpath" 32947 has_space=`$ECHO "$path" | $GREP " "` 32948 if test "x$has_space" != x; then 32949 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of libpath, which resolves as \"$path\", is invalid." >&5 32950 $as_echo "$as_me: The path of libpath, which resolves as \"$path\", is invalid." >&6;} 32951 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 32952 fi 32953 32954 # Use eval to expand a potential ~ 32955 eval path="$path" 32956 if test ! -f "$path" && test ! -d "$path"; then 32957 as_fn_error $? "The path of libpath, which resolves as \"$path\", is not found." "$LINENO" 5 32958 fi 32959 32960 if test -d "$path"; then 32961 libpath="`cd "$path"; $THEPWDCMD -L`" 32962 else 32963 dir="`$DIRNAME "$path"`" 32964 base="`$BASENAME "$path"`" 32965 libpath="`cd "$dir"; $THEPWDCMD -L`/$base" 32966 fi 32967 fi 32968 fi 32969 32970 SYSROOT_LDFLAGS="$SYSROOT_LDFLAGS -libpath:$libpath" 32971 fi 32972 IFS=";" 32973 fi 32974 done 32975 IFS="$OLDIFS" 32976 fi 32977 else 32978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 32979 $as_echo "not found" >&6; } 32980 32981 if test "x$VS_ENV_CMD" = x; then 32982 { $as_echo "$as_me:${as_lineno-$LINENO}: Cannot locate a valid Visual Studio or Windows SDK installation on disk," >&5 32983 $as_echo "$as_me: Cannot locate a valid Visual Studio or Windows SDK installation on disk," >&6;} 32984 { $as_echo "$as_me:${as_lineno-$LINENO}: nor is this script run from a Visual Studio command prompt." >&5 32985 $as_echo "$as_me: nor is this script run from a Visual Studio command prompt." >&6;} 32986 else 32987 { $as_echo "$as_me:${as_lineno-$LINENO}: Running the extraction script failed." >&5 32988 $as_echo "$as_me: Running the extraction script failed." >&6;} 32989 fi 32990 { $as_echo "$as_me:${as_lineno-$LINENO}: Try setting --with-tools-dir to the VC/bin directory within the VS installation" >&5 32991 $as_echo "$as_me: Try setting --with-tools-dir to the VC/bin directory within the VS installation" >&6;} 32992 { $as_echo "$as_me:${as_lineno-$LINENO}: or run \"bash.exe -l\" from a VS command prompt and then run configure from there." >&5 32993 $as_echo "$as_me: or run \"bash.exe -l\" from a VS command prompt and then run configure from there." >&6;} 32994 as_fn_error $? "Cannot continue" "$LINENO" 5 32995 fi 32996 32997 # Reset path to VS_PATH. It will include everything that was on PATH at the time we 32998 # ran TOOLCHAIN_SETUP_VISUAL_STUDIO_ENV. 32999 PATH="$VS_PATH" 33000 # The microsoft toolchain also requires INCLUDE and LIB to be set. 33001 export INCLUDE="$VS_INCLUDE" 33002 export LIB="$VS_LIB" 33003 else 33004 if test "x$XCODE_VERSION_OUTPUT" != x; then 33005 # For Xcode, we set the Xcode version as TOOLCHAIN_VERSION 33006 TOOLCHAIN_VERSION=`$ECHO $XCODE_VERSION_OUTPUT | $CUT -f 2 -d ' '` 33007 TOOLCHAIN_DESCRIPTION="$TOOLCHAIN_DESCRIPTION from Xcode" 33008 else 33009 # Currently we do not define this for other toolchains. This might change as the need arise. 33010 TOOLCHAIN_VERSION= 33011 fi 33012 fi 33013 33014 33015 # For solaris we really need solaris tools, and not the GNU equivalent. 33016 # The build tools on Solaris reside in /usr/ccs (C Compilation System), 33017 # so add that to path before starting to probe. 33018 # FIXME: This was originally only done for AS,NM,GNM,STRIP,OBJCOPY,OBJDUMP. 33019 if test "x$OPENJDK_BUILD_OS" = xsolaris; then 33020 PATH="/usr/ccs/bin:$PATH" 33021 fi 33022 33023 # Finally add TOOLCHAIN_PATH at the beginning, to allow --with-tools-dir to 33024 # override all other locations. 33025 if test "x$TOOLCHAIN_PATH" != x; then 33026 PATH=$TOOLCHAIN_PATH:$PATH 33027 fi 33028 33029 33030 # 33031 # Setup the compilers (CC and CXX) 33032 # 33033 33034 COMPILER_NAME=C 33035 SEARCH_LIST="$TOOLCHAIN_CC_BINARY" 33036 33037 if test "x$CC" != x; then 33038 # User has supplied compiler name already, always let that override. 33039 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied compiler CC=$CC" >&5 33040 $as_echo "$as_me: Will use user supplied compiler CC=$CC" >&6;} 33041 if test "x`basename $CC`" = "x$CC"; then 33042 # A command without a complete path is provided, search $PATH. 33043 33044 for ac_prog in $CC 33045 do 33046 # Extract the first word of "$ac_prog", so it can be a program name with args. 33047 set dummy $ac_prog; ac_word=$2 33048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 33049 $as_echo_n "checking for $ac_word... " >&6; } 33050 if ${ac_cv_path_POTENTIAL_CC+:} false; then : 33051 $as_echo_n "(cached) " >&6 33052 else 33053 case $POTENTIAL_CC in 33054 [\\/]* | ?:[\\/]*) 33055 ac_cv_path_POTENTIAL_CC="$POTENTIAL_CC" # Let the user override the test with a path. 33056 ;; 33057 *) 33058 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 33059 for as_dir in $PATH 33060 do 33061 IFS=$as_save_IFS 33062 test -z "$as_dir" && as_dir=. 33063 for ac_exec_ext in '' $ac_executable_extensions; do 33064 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 33065 ac_cv_path_POTENTIAL_CC="$as_dir/$ac_word$ac_exec_ext" 33066 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 33067 break 2 33068 fi 33069 done 33070 done 33071 IFS=$as_save_IFS 33072 33073 ;; 33074 esac 33075 fi 33076 POTENTIAL_CC=$ac_cv_path_POTENTIAL_CC 33077 if test -n "$POTENTIAL_CC"; then 33078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $POTENTIAL_CC" >&5 33079 $as_echo "$POTENTIAL_CC" >&6; } 33080 else 33081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 33082 $as_echo "no" >&6; } 33083 fi 33084 33085 33086 test -n "$POTENTIAL_CC" && break 33087 done 33088 33089 if test "x$POTENTIAL_CC" != x; then 33090 CC=$POTENTIAL_CC 33091 else 33092 as_fn_error $? "User supplied compiler CC=$CC could not be found" "$LINENO" 5 33093 fi 33094 else 33095 # Otherwise it might already be a complete path 33096 if test ! -x "$CC"; then 33097 as_fn_error $? "User supplied compiler CC=$CC does not exist" "$LINENO" 5 33098 fi 33099 fi 33100 else 33101 # No user supplied value. Locate compiler ourselves. 33102 33103 # If we are cross compiling, assume cross compilation tools follows the 33104 # cross compilation standard where they are prefixed with the autoconf 33105 # standard name for the target. For example the binary 33106 # i686-sun-solaris2.10-gcc will cross compile for i686-sun-solaris2.10. 33107 # If we are not cross compiling, then the default compiler name will be 33108 # used. 33109 33110 CC= 33111 # If TOOLCHAIN_PATH is set, check for all compiler names in there first 33112 # before checking the rest of the PATH. 33113 # FIXME: Now that we prefix the TOOLS_DIR to the PATH in the PRE_DETECTION 33114 # step, this should not be necessary. 33115 if test -n "$TOOLCHAIN_PATH"; then 33116 PATH_save="$PATH" 33117 PATH="$TOOLCHAIN_PATH" 33118 for ac_prog in $SEARCH_LIST 33119 do 33120 # Extract the first word of "$ac_prog", so it can be a program name with args. 33121 set dummy $ac_prog; ac_word=$2 33122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 33123 $as_echo_n "checking for $ac_word... " >&6; } 33124 if ${ac_cv_path_TOOLCHAIN_PATH_CC+:} false; then : 33125 $as_echo_n "(cached) " >&6 33126 else 33127 case $TOOLCHAIN_PATH_CC in 33128 [\\/]* | ?:[\\/]*) 33129 ac_cv_path_TOOLCHAIN_PATH_CC="$TOOLCHAIN_PATH_CC" # Let the user override the test with a path. 33130 ;; 33131 *) 33132 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 33133 for as_dir in $PATH 33134 do 33135 IFS=$as_save_IFS 33136 test -z "$as_dir" && as_dir=. 33137 for ac_exec_ext in '' $ac_executable_extensions; do 33138 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 33139 ac_cv_path_TOOLCHAIN_PATH_CC="$as_dir/$ac_word$ac_exec_ext" 33140 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 33141 break 2 33142 fi 33143 done 33144 done 33145 IFS=$as_save_IFS 33146 33147 ;; 33148 esac 33149 fi 33150 TOOLCHAIN_PATH_CC=$ac_cv_path_TOOLCHAIN_PATH_CC 33151 if test -n "$TOOLCHAIN_PATH_CC"; then 33152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOOLCHAIN_PATH_CC" >&5 33153 $as_echo "$TOOLCHAIN_PATH_CC" >&6; } 33154 else 33155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 33156 $as_echo "no" >&6; } 33157 fi 33158 33159 33160 test -n "$TOOLCHAIN_PATH_CC" && break 33161 done 33162 33163 CC=$TOOLCHAIN_PATH_CC 33164 PATH="$PATH_save" 33165 fi 33166 33167 # AC_PATH_PROGS can't be run multiple times with the same variable, 33168 # so create a new name for this run. 33169 if test "x$CC" = x; then 33170 for ac_prog in $SEARCH_LIST 33171 do 33172 # Extract the first word of "$ac_prog", so it can be a program name with args. 33173 set dummy $ac_prog; ac_word=$2 33174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 33175 $as_echo_n "checking for $ac_word... " >&6; } 33176 if ${ac_cv_path_POTENTIAL_CC+:} false; then : 33177 $as_echo_n "(cached) " >&6 33178 else 33179 case $POTENTIAL_CC in 33180 [\\/]* | ?:[\\/]*) 33181 ac_cv_path_POTENTIAL_CC="$POTENTIAL_CC" # Let the user override the test with a path. 33182 ;; 33183 *) 33184 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 33185 for as_dir in $PATH 33186 do 33187 IFS=$as_save_IFS 33188 test -z "$as_dir" && as_dir=. 33189 for ac_exec_ext in '' $ac_executable_extensions; do 33190 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 33191 ac_cv_path_POTENTIAL_CC="$as_dir/$ac_word$ac_exec_ext" 33192 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 33193 break 2 33194 fi 33195 done 33196 done 33197 IFS=$as_save_IFS 33198 33199 ;; 33200 esac 33201 fi 33202 POTENTIAL_CC=$ac_cv_path_POTENTIAL_CC 33203 if test -n "$POTENTIAL_CC"; then 33204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $POTENTIAL_CC" >&5 33205 $as_echo "$POTENTIAL_CC" >&6; } 33206 else 33207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 33208 $as_echo "no" >&6; } 33209 fi 33210 33211 33212 test -n "$POTENTIAL_CC" && break 33213 done 33214 33215 CC=$POTENTIAL_CC 33216 fi 33217 33218 if test "x$CC" = x; then 33219 33220 # Print a helpful message on how to acquire the necessary build dependency. 33221 # devkit is the help tag: freetype, cups, alsa etc 33222 MISSING_DEPENDENCY=devkit 33223 33224 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 33225 cygwin_help $MISSING_DEPENDENCY 33226 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 33227 msys_help $MISSING_DEPENDENCY 33228 else 33229 PKGHANDLER_COMMAND= 33230 33231 case $PKGHANDLER in 33232 apt-get) 33233 apt_help $MISSING_DEPENDENCY ;; 33234 yum) 33235 yum_help $MISSING_DEPENDENCY ;; 33236 port) 33237 port_help $MISSING_DEPENDENCY ;; 33238 pkgutil) 33239 pkgutil_help $MISSING_DEPENDENCY ;; 33240 pkgadd) 33241 pkgadd_help $MISSING_DEPENDENCY ;; 33242 esac 33243 33244 if test "x$PKGHANDLER_COMMAND" != x; then 33245 HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'." 33246 fi 33247 fi 33248 33249 as_fn_error $? "Could not find a $COMPILER_NAME compiler. $HELP_MSG" "$LINENO" 5 33250 fi 33251 fi 33252 33253 # Now we have a compiler binary in CC. Make sure it's okay. 33254 33255 # Only process if variable expands to non-empty 33256 33257 if test "x$CC" != x; then 33258 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 33259 33260 # First separate the path from the arguments. This will split at the first 33261 # space. 33262 complete="$CC" 33263 path="${complete%% *}" 33264 tmp="$complete EOL" 33265 arguments="${tmp#* }" 33266 33267 # Input might be given as Windows format, start by converting to 33268 # unix format. 33269 new_path=`$CYGPATH -u "$path"` 33270 33271 # Now try to locate executable using which 33272 new_path=`$WHICH "$new_path" 2> /dev/null` 33273 # bat and cmd files are not always considered executable in cygwin causing which 33274 # to not find them 33275 if test "x$new_path" = x \ 33276 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 33277 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 33278 new_path=`$CYGPATH -u "$path"` 33279 fi 33280 if test "x$new_path" = x; then 33281 # Oops. Which didn't find the executable. 33282 # The splitting of arguments from the executable at a space might have been incorrect, 33283 # since paths with space are more likely in Windows. Give it another try with the whole 33284 # argument. 33285 path="$complete" 33286 arguments="EOL" 33287 new_path=`$CYGPATH -u "$path"` 33288 new_path=`$WHICH "$new_path" 2> /dev/null` 33289 # bat and cmd files are not always considered executable in cygwin causing which 33290 # to not find them 33291 if test "x$new_path" = x \ 33292 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 33293 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 33294 new_path=`$CYGPATH -u "$path"` 33295 fi 33296 if test "x$new_path" = x; then 33297 # It's still not found. Now this is an unrecoverable error. 33298 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CC, which resolves as \"$complete\", is not found." >&5 33299 $as_echo "$as_me: The path of CC, which resolves as \"$complete\", is not found." >&6;} 33300 has_space=`$ECHO "$complete" | $GREP " "` 33301 if test "x$has_space" != x; then 33302 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 33303 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 33304 fi 33305 as_fn_error $? "Cannot locate the the path of CC" "$LINENO" 5 33306 fi 33307 fi 33308 33309 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 33310 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 33311 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 33312 # "foo.exe" is OK but "foo" is an error. 33313 # 33314 # This test is therefore slightly more accurate than "test -f" to check for file presence. 33315 # It is also a way to make sure we got the proper file name for the real test later on. 33316 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 33317 if test "x$test_shortpath" = x; then 33318 # Short path failed, file does not exist as specified. 33319 # Try adding .exe or .cmd 33320 if test -f "${new_path}.exe"; then 33321 input_to_shortpath="${new_path}.exe" 33322 elif test -f "${new_path}.cmd"; then 33323 input_to_shortpath="${new_path}.cmd" 33324 else 33325 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CC, which resolves as \"$new_path\", is invalid." >&5 33326 $as_echo "$as_me: The path of CC, which resolves as \"$new_path\", is invalid." >&6;} 33327 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 33328 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 33329 as_fn_error $? "Cannot locate the the path of CC" "$LINENO" 5 33330 fi 33331 else 33332 input_to_shortpath="$new_path" 33333 fi 33334 33335 # Call helper function which possibly converts this using DOS-style short mode. 33336 # If so, the updated path is stored in $new_path. 33337 new_path="$input_to_shortpath" 33338 33339 input_path="$input_to_shortpath" 33340 # Check if we need to convert this using DOS-style short mode. If the path 33341 # contains just simple characters, use it. Otherwise (spaces, weird characters), 33342 # take no chances and rewrite it. 33343 # Note: m4 eats our [], so we need to use [ and ] instead. 33344 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 33345 if test "x$has_forbidden_chars" != x; then 33346 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 33347 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 33348 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 33349 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 33350 # Going to short mode and back again did indeed matter. Since short mode is 33351 # case insensitive, let's make it lowercase to improve readability. 33352 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 33353 # Now convert it back to Unix-style (cygpath) 33354 input_path=`$CYGPATH -u "$shortmode_path"` 33355 new_path="$input_path" 33356 fi 33357 fi 33358 33359 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 33360 if test "x$test_cygdrive_prefix" = x; then 33361 # As a simple fix, exclude /usr/bin since it's not a real path. 33362 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 33363 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 33364 # a path prefixed by /cygdrive for fixpath to work. 33365 new_path="$CYGWIN_ROOT_PATH$input_path" 33366 fi 33367 fi 33368 33369 # remove trailing .exe if any 33370 new_path="${new_path/%.exe/}" 33371 33372 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 33373 33374 # First separate the path from the arguments. This will split at the first 33375 # space. 33376 complete="$CC" 33377 path="${complete%% *}" 33378 tmp="$complete EOL" 33379 arguments="${tmp#* }" 33380 33381 # Input might be given as Windows format, start by converting to 33382 # unix format. 33383 new_path="$path" 33384 33385 windows_path="$new_path" 33386 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 33387 unix_path=`$CYGPATH -u "$windows_path"` 33388 new_path="$unix_path" 33389 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 33390 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 33391 new_path="$unix_path" 33392 fi 33393 33394 33395 # Now try to locate executable using which 33396 new_path=`$WHICH "$new_path" 2> /dev/null` 33397 33398 if test "x$new_path" = x; then 33399 # Oops. Which didn't find the executable. 33400 # The splitting of arguments from the executable at a space might have been incorrect, 33401 # since paths with space are more likely in Windows. Give it another try with the whole 33402 # argument. 33403 path="$complete" 33404 arguments="EOL" 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 new_path=`$WHICH "$new_path" 2> /dev/null` 33418 # bat and cmd files are not always considered executable in MSYS causing which 33419 # to not find them 33420 if test "x$new_path" = x \ 33421 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 33422 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 33423 new_path="$path" 33424 33425 windows_path="$new_path" 33426 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 33427 unix_path=`$CYGPATH -u "$windows_path"` 33428 new_path="$unix_path" 33429 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 33430 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 33431 new_path="$unix_path" 33432 fi 33433 33434 fi 33435 33436 if test "x$new_path" = x; then 33437 # It's still not found. Now this is an unrecoverable error. 33438 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CC, which resolves as \"$complete\", is not found." >&5 33439 $as_echo "$as_me: The path of CC, which resolves as \"$complete\", is not found." >&6;} 33440 has_space=`$ECHO "$complete" | $GREP " "` 33441 if test "x$has_space" != x; then 33442 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 33443 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 33444 fi 33445 as_fn_error $? "Cannot locate the the path of CC" "$LINENO" 5 33446 fi 33447 fi 33448 33449 # Now new_path has a complete unix path to the binary 33450 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 33451 # Keep paths in /bin as-is, but remove trailing .exe if any 33452 new_path="${new_path/%.exe/}" 33453 # Do not save /bin paths to all_fixpath_prefixes! 33454 else 33455 # Not in mixed or Windows style, start by that. 33456 new_path=`cmd //c echo $new_path` 33457 33458 input_path="$new_path" 33459 # Check if we need to convert this using DOS-style short mode. If the path 33460 # contains just simple characters, use it. Otherwise (spaces, weird characters), 33461 # take no chances and rewrite it. 33462 # Note: m4 eats our [], so we need to use [ and ] instead. 33463 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 33464 if test "x$has_forbidden_chars" != x; then 33465 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 33466 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 33467 fi 33468 33469 # Output is in $new_path 33470 33471 windows_path="$new_path" 33472 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 33473 unix_path=`$CYGPATH -u "$windows_path"` 33474 new_path="$unix_path" 33475 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 33476 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 33477 new_path="$unix_path" 33478 fi 33479 33480 # remove trailing .exe if any 33481 new_path="${new_path/%.exe/}" 33482 33483 # Save the first 10 bytes of this path to the storage, so fixpath can work. 33484 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 33485 fi 33486 33487 else 33488 # We're on a unix platform. Hooray! :) 33489 # First separate the path from the arguments. This will split at the first 33490 # space. 33491 complete="$CC" 33492 path="${complete%% *}" 33493 tmp="$complete EOL" 33494 arguments="${tmp#* }" 33495 33496 # Cannot rely on the command "which" here since it doesn't always work. 33497 is_absolute_path=`$ECHO "$path" | $GREP ^/` 33498 if test -z "$is_absolute_path"; then 33499 # Path to executable is not absolute. Find it. 33500 IFS_save="$IFS" 33501 IFS=: 33502 for p in $PATH; do 33503 if test -f "$p/$path" && test -x "$p/$path"; then 33504 new_path="$p/$path" 33505 break 33506 fi 33507 done 33508 IFS="$IFS_save" 33509 else 33510 # This is an absolute path, we can use it without further modifications. 33511 new_path="$path" 33512 fi 33513 33514 if test "x$new_path" = x; then 33515 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CC, which resolves as \"$complete\", is not found." >&5 33516 $as_echo "$as_me: The path of CC, which resolves as \"$complete\", is not found." >&6;} 33517 has_space=`$ECHO "$complete" | $GREP " "` 33518 if test "x$has_space" != x; then 33519 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 33520 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 33521 fi 33522 as_fn_error $? "Cannot locate the the path of CC" "$LINENO" 5 33523 fi 33524 fi 33525 33526 # Now join together the path and the arguments once again 33527 if test "x$arguments" != xEOL; then 33528 new_complete="$new_path ${arguments% *}" 33529 else 33530 new_complete="$new_path" 33531 fi 33532 33533 if test "x$complete" != "x$new_complete"; then 33534 CC="$new_complete" 33535 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting CC to \"$new_complete\"" >&5 33536 $as_echo "$as_me: Rewriting CC to \"$new_complete\"" >&6;} 33537 fi 33538 fi 33539 33540 TEST_COMPILER="$CC" 33541 33542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking resolved symbolic links for CC" >&5 33543 $as_echo_n "checking resolved symbolic links for CC... " >&6; } 33544 SYMLINK_ORIGINAL="$TEST_COMPILER" 33545 33546 if test "x$OPENJDK_BUILD_OS" != xwindows; then 33547 # Follow a chain of symbolic links. Use readlink 33548 # where it exists, else fall back to horribly 33549 # complicated shell code. 33550 if test "x$READLINK_TESTED" != yes; then 33551 # On MacOSX there is a readlink tool with a different 33552 # purpose than the GNU readlink tool. Check the found readlink. 33553 ISGNU=`$READLINK --version 2>&1 | $GREP GNU` 33554 if test "x$ISGNU" = x; then 33555 # A readlink that we do not know how to use. 33556 # Are there other non-GNU readlinks out there? 33557 READLINK_TESTED=yes 33558 READLINK= 33559 fi 33560 fi 33561 33562 if test "x$READLINK" != x; then 33563 SYMLINK_ORIGINAL=`$READLINK -f $SYMLINK_ORIGINAL` 33564 else 33565 # Save the current directory for restoring afterwards 33566 STARTDIR=$PWD 33567 COUNTER=0 33568 sym_link_dir=`$DIRNAME $SYMLINK_ORIGINAL` 33569 sym_link_file=`$BASENAME $SYMLINK_ORIGINAL` 33570 cd $sym_link_dir 33571 # Use -P flag to resolve symlinks in directories. 33572 cd `$THEPWDCMD -P` 33573 sym_link_dir=`$THEPWDCMD -P` 33574 # Resolve file symlinks 33575 while test $COUNTER -lt 20; do 33576 ISLINK=`$LS -l $sym_link_dir/$sym_link_file | $GREP '\->' | $SED -e 's/.*-> \(.*\)/\1/'` 33577 if test "x$ISLINK" == x; then 33578 # This is not a symbolic link! We are done! 33579 break 33580 fi 33581 # Again resolve directory symlinks since the target of the just found 33582 # link could be in a different directory 33583 cd `$DIRNAME $ISLINK` 33584 sym_link_dir=`$THEPWDCMD -P` 33585 sym_link_file=`$BASENAME $ISLINK` 33586 let COUNTER=COUNTER+1 33587 done 33588 cd $STARTDIR 33589 SYMLINK_ORIGINAL=$sym_link_dir/$sym_link_file 33590 fi 33591 fi 33592 33593 if test "x$TEST_COMPILER" = "x$SYMLINK_ORIGINAL"; then 33594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no symlink" >&5 33595 $as_echo "no symlink" >&6; } 33596 else 33597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SYMLINK_ORIGINAL" >&5 33598 $as_echo "$SYMLINK_ORIGINAL" >&6; } 33599 33600 # We can't handle ccache by gcc wrappers, since we need to know if we're 33601 # using ccache. Instead ccache usage must be controlled by a configure option. 33602 COMPILER_BASENAME=`$BASENAME "$SYMLINK_ORIGINAL"` 33603 if test "x$COMPILER_BASENAME" = "xccache"; then 33604 { $as_echo "$as_me:${as_lineno-$LINENO}: Please use --enable-ccache instead of providing a wrapped compiler." >&5 33605 $as_echo "$as_me: Please use --enable-ccache instead of providing a wrapped compiler." >&6;} 33606 as_fn_error $? "$TEST_COMPILER is a symbolic link to ccache. This is not supported." "$LINENO" 5 33607 fi 33608 fi 33609 33610 33611 COMPILER=$CC 33612 COMPILER_NAME=$COMPILER_NAME 33613 33614 if test "x$TOOLCHAIN_TYPE" = xsolstudio; then 33615 # cc -V output typically looks like 33616 # cc: Sun C 5.12 Linux_i386 2011/11/16 33617 COMPILER_VERSION_OUTPUT=`$COMPILER -V 2>&1` 33618 # Check that this is likely to be the Solaris Studio cc. 33619 $ECHO "$COMPILER_VERSION_OUTPUT" | $GREP "^.*: Sun $COMPILER_NAME" > /dev/null 33620 if test $? -ne 0; then 33621 ALT_VERSION_OUTPUT=`$COMPILER --version 2>&1` 33622 { $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 33623 $as_echo "$as_me: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required $TOOLCHAIN_TYPE compiler." >&6;} 33624 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with -V was: \"$COMPILER_VERSION_OUTPUT\"" >&5 33625 $as_echo "$as_me: The result from running with -V was: \"$COMPILER_VERSION_OUTPUT\"" >&6;} 33626 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with --version was: \"$ALT_VERSION_OUTPUT\"" >&5 33627 $as_echo "$as_me: The result from running with --version was: \"$ALT_VERSION_OUTPUT\"" >&6;} 33628 as_fn_error $? "A $TOOLCHAIN_TYPE compiler is required. Try setting --with-tools-dir." "$LINENO" 5 33629 fi 33630 # Remove usage instructions (if present), and 33631 # collapse compiler output into a single line 33632 COMPILER_VERSION_STRING=`$ECHO $COMPILER_VERSION_OUTPUT | \ 33633 $SED -e 's/ *[Uu]sage:.*//'` 33634 COMPILER_VERSION_NUMBER=`$ECHO $COMPILER_VERSION_OUTPUT | \ 33635 $SED -e "s/^.*[ ,\t]$COMPILER_NAME[ ,\t]\([1-9]\.[0-9][0-9]*\).*/\1/"` 33636 elif test "x$TOOLCHAIN_TYPE" = xxlc; then 33637 # xlc -qversion output typically looks like 33638 # IBM XL C/C++ for AIX, V11.1 (5724-X13) 33639 # Version: 11.01.0000.0015 33640 COMPILER_VERSION_OUTPUT=`$COMPILER -qversion 2>&1` 33641 # Check that this is likely to be the IBM XL C compiler. 33642 $ECHO "$COMPILER_VERSION_OUTPUT" | $GREP "IBM XL C" > /dev/null 33643 if test $? -ne 0; then 33644 ALT_VERSION_OUTPUT=`$COMPILER --version 2>&1` 33645 { $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 33646 $as_echo "$as_me: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required $TOOLCHAIN_TYPE compiler." >&6;} 33647 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with -qversion was: \"$COMPILER_VERSION_OUTPUT\"" >&5 33648 $as_echo "$as_me: The result from running with -qversion was: \"$COMPILER_VERSION_OUTPUT\"" >&6;} 33649 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with --version was: \"$ALT_VERSION_OUTPUT\"" >&5 33650 $as_echo "$as_me: The result from running with --version was: \"$ALT_VERSION_OUTPUT\"" >&6;} 33651 as_fn_error $? "A $TOOLCHAIN_TYPE compiler is required. Try setting --with-tools-dir." "$LINENO" 5 33652 fi 33653 # Collapse compiler output into a single line 33654 COMPILER_VERSION_STRING=`$ECHO $COMPILER_VERSION_OUTPUT` 33655 COMPILER_VERSION_NUMBER=`$ECHO $COMPILER_VERSION_OUTPUT | \ 33656 $SED -e 's/^.*, V\([1-9][0-9.]*\).*$/\1/'` 33657 elif test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 33658 # There is no specific version flag, but all output starts with a version string. 33659 # First line typically looks something like: 33660 # Microsoft (R) 32-bit C/C++ Optimizing Compiler Version 16.00.40219.01 for 80x86 33661 COMPILER_VERSION_OUTPUT=`$COMPILER 2>&1 | $HEAD -n 1 | $TR -d '\r'` 33662 # Check that this is likely to be Microsoft CL.EXE. 33663 $ECHO "$COMPILER_VERSION_OUTPUT" | $GREP "Microsoft.*Compiler" > /dev/null 33664 if test $? -ne 0; then 33665 { $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 33666 $as_echo "$as_me: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required $TOOLCHAIN_TYPE compiler." >&6;} 33667 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running it was: \"$COMPILER_VERSION_OUTPUT\"" >&5 33668 $as_echo "$as_me: The result from running it was: \"$COMPILER_VERSION_OUTPUT\"" >&6;} 33669 as_fn_error $? "A $TOOLCHAIN_TYPE compiler is required. Try setting --with-tools-dir." "$LINENO" 5 33670 fi 33671 # Collapse compiler output into a single line 33672 COMPILER_VERSION_STRING=`$ECHO $COMPILER_VERSION_OUTPUT` 33673 COMPILER_VERSION_NUMBER=`$ECHO $COMPILER_VERSION_OUTPUT | \ 33674 $SED -e 's/^.*ersion.\([1-9][0-9.]*\) .*$/\1/'` 33675 elif test "x$TOOLCHAIN_TYPE" = xgcc; then 33676 # gcc --version output typically looks like 33677 # gcc (Ubuntu/Linaro 4.8.1-10ubuntu9) 4.8.1 33678 # Copyright (C) 2013 Free Software Foundation, Inc. 33679 # This is free software; see the source for copying conditions. There is NO 33680 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 33681 COMPILER_VERSION_OUTPUT=`$COMPILER --version 2>&1` 33682 # Check that this is likely to be GCC. 33683 $ECHO "$COMPILER_VERSION_OUTPUT" | $GREP "Free Software Foundation" > /dev/null 33684 if test $? -ne 0; then 33685 { $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 33686 $as_echo "$as_me: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required $TOOLCHAIN_TYPE compiler." >&6;} 33687 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with --version was: \"$COMPILER_VERSION\"" >&5 33688 $as_echo "$as_me: The result from running with --version was: \"$COMPILER_VERSION\"" >&6;} 33689 as_fn_error $? "A $TOOLCHAIN_TYPE compiler is required. Try setting --with-tools-dir." "$LINENO" 5 33690 fi 33691 # Remove Copyright and legalese from version string, and 33692 # collapse into a single line 33693 COMPILER_VERSION_STRING=`$ECHO $COMPILER_VERSION_OUTPUT | \ 33694 $SED -e 's/ *Copyright .*//'` 33695 COMPILER_VERSION_NUMBER=`$ECHO $COMPILER_VERSION_OUTPUT | \ 33696 $SED -e 's/^.* \([1-9]\.[0-9.]*\)[^0-9.].*$/\1/'` 33697 elif test "x$TOOLCHAIN_TYPE" = xclang; then 33698 # clang --version output typically looks like 33699 # Apple LLVM version 5.0 (clang-500.2.79) (based on LLVM 3.3svn) 33700 # clang version 3.3 (tags/RELEASE_33/final) 33701 # or 33702 # Debian clang version 3.2-7ubuntu1 (tags/RELEASE_32/final) (based on LLVM 3.2) 33703 # Target: x86_64-pc-linux-gnu 33704 # Thread model: posix 33705 COMPILER_VERSION_OUTPUT=`$COMPILER --version 2>&1` 33706 # Check that this is likely to be clang 33707 $ECHO "$COMPILER_VERSION_OUTPUT" | $GREP "clang" > /dev/null 33708 if test $? -ne 0; then 33709 { $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 33710 $as_echo "$as_me: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required $TOOLCHAIN_TYPE compiler." >&6;} 33711 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with --version was: \"$COMPILER_VERSION_OUTPUT\"" >&5 33712 $as_echo "$as_me: The result from running with --version was: \"$COMPILER_VERSION_OUTPUT\"" >&6;} 33713 as_fn_error $? "A $TOOLCHAIN_TYPE compiler is required. Try setting --with-tools-dir." "$LINENO" 5 33714 fi 33715 # Collapse compiler output into a single line 33716 COMPILER_VERSION_STRING=`$ECHO $COMPILER_VERSION_OUTPUT` 33717 COMPILER_VERSION_NUMBER=`$ECHO $COMPILER_VERSION_OUTPUT | \ 33718 $SED -e 's/^.* version \([1-9][0-9.]*\).*$/\1/'` 33719 else 33720 as_fn_error $? "Unknown toolchain type $TOOLCHAIN_TYPE." "$LINENO" 5 33721 fi 33722 # This sets CC_VERSION_NUMBER or CXX_VERSION_NUMBER. (This comment is a grep marker) 33723 CC_VERSION_NUMBER="$COMPILER_VERSION_NUMBER" 33724 # This sets CC_VERSION_STRING or CXX_VERSION_STRING. (This comment is a grep marker) 33725 CC_VERSION_STRING="$COMPILER_VERSION_STRING" 33726 33727 { $as_echo "$as_me:${as_lineno-$LINENO}: Using $TOOLCHAIN_TYPE $COMPILER_NAME compiler version $COMPILER_VERSION_NUMBER [$COMPILER_VERSION_STRING]" >&5 33728 $as_echo "$as_me: Using $TOOLCHAIN_TYPE $COMPILER_NAME compiler version $COMPILER_VERSION_NUMBER [$COMPILER_VERSION_STRING]" >&6;} 33729 33730 33731 # Now that we have resolved CC ourself, let autoconf have its go at it 33732 ac_ext=c 33733 ac_cpp='$CPP $CPPFLAGS' 33734 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 33735 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 33736 ac_compiler_gnu=$ac_cv_c_compiler_gnu 33737 if test -n "$ac_tool_prefix"; then 33738 for ac_prog in $CC 33739 do 33740 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 33741 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 33742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 33743 $as_echo_n "checking for $ac_word... " >&6; } 33744 if ${ac_cv_prog_CC+:} false; then : 33745 $as_echo_n "(cached) " >&6 33746 else 33747 if test -n "$CC"; then 33748 ac_cv_prog_CC="$CC" # Let the user override the test. 33749 else 33750 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 33751 for as_dir in $PATH 33752 do 33753 IFS=$as_save_IFS 33754 test -z "$as_dir" && as_dir=. 33755 for ac_exec_ext in '' $ac_executable_extensions; do 33756 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 33757 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 33758 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 33759 break 2 33760 fi 33761 done 33762 done 33763 IFS=$as_save_IFS 33764 33765 fi 33766 fi 33767 CC=$ac_cv_prog_CC 33768 if test -n "$CC"; then 33769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 33770 $as_echo "$CC" >&6; } 33771 else 33772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 33773 $as_echo "no" >&6; } 33774 fi 33775 33776 33777 test -n "$CC" && break 33778 done 33779 fi 33780 if test -z "$CC"; then 33781 ac_ct_CC=$CC 33782 for ac_prog in $CC 33783 do 33784 # Extract the first word of "$ac_prog", so it can be a program name with args. 33785 set dummy $ac_prog; ac_word=$2 33786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 33787 $as_echo_n "checking for $ac_word... " >&6; } 33788 if ${ac_cv_prog_ac_ct_CC+:} false; then : 33789 $as_echo_n "(cached) " >&6 33790 else 33791 if test -n "$ac_ct_CC"; then 33792 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 33793 else 33794 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 33795 for as_dir in $PATH 33796 do 33797 IFS=$as_save_IFS 33798 test -z "$as_dir" && as_dir=. 33799 for ac_exec_ext in '' $ac_executable_extensions; do 33800 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 33801 ac_cv_prog_ac_ct_CC="$ac_prog" 33802 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 33803 break 2 33804 fi 33805 done 33806 done 33807 IFS=$as_save_IFS 33808 33809 fi 33810 fi 33811 ac_ct_CC=$ac_cv_prog_ac_ct_CC 33812 if test -n "$ac_ct_CC"; then 33813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 33814 $as_echo "$ac_ct_CC" >&6; } 33815 else 33816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 33817 $as_echo "no" >&6; } 33818 fi 33819 33820 33821 test -n "$ac_ct_CC" && break 33822 done 33823 33824 if test "x$ac_ct_CC" = x; then 33825 CC="" 33826 else 33827 case $cross_compiling:$ac_tool_warned in 33828 yes:) 33829 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 33830 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 33831 ac_tool_warned=yes ;; 33832 esac 33833 CC=$ac_ct_CC 33834 fi 33835 fi 33836 33837 33838 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 33839 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 33840 as_fn_error $? "no acceptable C compiler found in \$PATH 33841 See \`config.log' for more details" "$LINENO" 5; } 33842 33843 # Provide some information about the compiler. 33844 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 33845 set X $ac_compile 33846 ac_compiler=$2 33847 for ac_option in --version -v -V -qversion; do 33848 { { ac_try="$ac_compiler $ac_option >&5" 33849 case "(($ac_try" in 33850 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 33851 *) ac_try_echo=$ac_try;; 33852 esac 33853 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 33854 $as_echo "$ac_try_echo"; } >&5 33855 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 33856 ac_status=$? 33857 if test -s conftest.err; then 33858 sed '10a\ 33859 ... rest of stderr output deleted ... 33860 10q' conftest.err >conftest.er1 33861 cat conftest.er1 >&5 33862 fi 33863 rm -f conftest.er1 conftest.err 33864 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 33865 test $ac_status = 0; } 33866 done 33867 33868 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 33869 /* end confdefs.h. */ 33870 33871 int 33872 main () 33873 { 33874 33875 ; 33876 return 0; 33877 } 33878 _ACEOF 33879 ac_clean_files_save=$ac_clean_files 33880 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 33881 # Try to create an executable without -o first, disregard a.out. 33882 # It will help us diagnose broken compilers, and finding out an intuition 33883 # of exeext. 33884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 33885 $as_echo_n "checking whether the C compiler works... " >&6; } 33886 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 33887 33888 # The possible output files: 33889 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 33890 33891 ac_rmfiles= 33892 for ac_file in $ac_files 33893 do 33894 case $ac_file in 33895 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 33896 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 33897 esac 33898 done 33899 rm -f $ac_rmfiles 33900 33901 if { { ac_try="$ac_link_default" 33902 case "(($ac_try" in 33903 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 33904 *) ac_try_echo=$ac_try;; 33905 esac 33906 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 33907 $as_echo "$ac_try_echo"; } >&5 33908 (eval "$ac_link_default") 2>&5 33909 ac_status=$? 33910 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 33911 test $ac_status = 0; }; then : 33912 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 33913 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 33914 # in a Makefile. We should not override ac_cv_exeext if it was cached, 33915 # so that the user can short-circuit this test for compilers unknown to 33916 # Autoconf. 33917 for ac_file in $ac_files '' 33918 do 33919 test -f "$ac_file" || continue 33920 case $ac_file in 33921 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 33922 ;; 33923 [ab].out ) 33924 # We found the default executable, but exeext='' is most 33925 # certainly right. 33926 break;; 33927 *.* ) 33928 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 33929 then :; else 33930 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 33931 fi 33932 # We set ac_cv_exeext here because the later test for it is not 33933 # safe: cross compilers may not add the suffix if given an `-o' 33934 # argument, so we may need to know it at that point already. 33935 # Even if this section looks crufty: it has the advantage of 33936 # actually working. 33937 break;; 33938 * ) 33939 break;; 33940 esac 33941 done 33942 test "$ac_cv_exeext" = no && ac_cv_exeext= 33943 33944 else 33945 ac_file='' 33946 fi 33947 if test -z "$ac_file"; then : 33948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 33949 $as_echo "no" >&6; } 33950 $as_echo "$as_me: failed program was:" >&5 33951 sed 's/^/| /' conftest.$ac_ext >&5 33952 33953 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 33954 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 33955 as_fn_error 77 "C compiler cannot create executables 33956 See \`config.log' for more details" "$LINENO" 5; } 33957 else 33958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 33959 $as_echo "yes" >&6; } 33960 fi 33961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 33962 $as_echo_n "checking for C compiler default output file name... " >&6; } 33963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 33964 $as_echo "$ac_file" >&6; } 33965 ac_exeext=$ac_cv_exeext 33966 33967 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 33968 ac_clean_files=$ac_clean_files_save 33969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 33970 $as_echo_n "checking for suffix of executables... " >&6; } 33971 if { { ac_try="$ac_link" 33972 case "(($ac_try" in 33973 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 33974 *) ac_try_echo=$ac_try;; 33975 esac 33976 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 33977 $as_echo "$ac_try_echo"; } >&5 33978 (eval "$ac_link") 2>&5 33979 ac_status=$? 33980 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 33981 test $ac_status = 0; }; then : 33982 # If both `conftest.exe' and `conftest' are `present' (well, observable) 33983 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 33984 # work properly (i.e., refer to `conftest.exe'), while it won't with 33985 # `rm'. 33986 for ac_file in conftest.exe conftest conftest.*; do 33987 test -f "$ac_file" || continue 33988 case $ac_file in 33989 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 33990 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 33991 break;; 33992 * ) break;; 33993 esac 33994 done 33995 else 33996 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 33997 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 33998 as_fn_error $? "cannot compute suffix of executables: cannot compile and link 33999 See \`config.log' for more details" "$LINENO" 5; } 34000 fi 34001 rm -f conftest conftest$ac_cv_exeext 34002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 34003 $as_echo "$ac_cv_exeext" >&6; } 34004 34005 rm -f conftest.$ac_ext 34006 EXEEXT=$ac_cv_exeext 34007 ac_exeext=$EXEEXT 34008 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 34009 /* end confdefs.h. */ 34010 #include <stdio.h> 34011 int 34012 main () 34013 { 34014 FILE *f = fopen ("conftest.out", "w"); 34015 return ferror (f) || fclose (f) != 0; 34016 34017 ; 34018 return 0; 34019 } 34020 _ACEOF 34021 ac_clean_files="$ac_clean_files conftest.out" 34022 # Check that the compiler produces executables we can run. If not, either 34023 # the compiler is broken, or we cross compile. 34024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 34025 $as_echo_n "checking whether we are cross compiling... " >&6; } 34026 if test "$cross_compiling" != yes; then 34027 { { ac_try="$ac_link" 34028 case "(($ac_try" in 34029 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 34030 *) ac_try_echo=$ac_try;; 34031 esac 34032 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 34033 $as_echo "$ac_try_echo"; } >&5 34034 (eval "$ac_link") 2>&5 34035 ac_status=$? 34036 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 34037 test $ac_status = 0; } 34038 if { ac_try='./conftest$ac_cv_exeext' 34039 { { case "(($ac_try" in 34040 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 34041 *) ac_try_echo=$ac_try;; 34042 esac 34043 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 34044 $as_echo "$ac_try_echo"; } >&5 34045 (eval "$ac_try") 2>&5 34046 ac_status=$? 34047 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 34048 test $ac_status = 0; }; }; then 34049 cross_compiling=no 34050 else 34051 if test "$cross_compiling" = maybe; then 34052 cross_compiling=yes 34053 else 34054 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 34055 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 34056 as_fn_error $? "cannot run C compiled programs. 34057 If you meant to cross compile, use \`--host'. 34058 See \`config.log' for more details" "$LINENO" 5; } 34059 fi 34060 fi 34061 fi 34062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 34063 $as_echo "$cross_compiling" >&6; } 34064 34065 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 34066 ac_clean_files=$ac_clean_files_save 34067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 34068 $as_echo_n "checking for suffix of object files... " >&6; } 34069 if ${ac_cv_objext+:} false; then : 34070 $as_echo_n "(cached) " >&6 34071 else 34072 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 34073 /* end confdefs.h. */ 34074 34075 int 34076 main () 34077 { 34078 34079 ; 34080 return 0; 34081 } 34082 _ACEOF 34083 rm -f conftest.o conftest.obj 34084 if { { ac_try="$ac_compile" 34085 case "(($ac_try" in 34086 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 34087 *) ac_try_echo=$ac_try;; 34088 esac 34089 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 34090 $as_echo "$ac_try_echo"; } >&5 34091 (eval "$ac_compile") 2>&5 34092 ac_status=$? 34093 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 34094 test $ac_status = 0; }; then : 34095 for ac_file in conftest.o conftest.obj conftest.*; do 34096 test -f "$ac_file" || continue; 34097 case $ac_file in 34098 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 34099 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 34100 break;; 34101 esac 34102 done 34103 else 34104 $as_echo "$as_me: failed program was:" >&5 34105 sed 's/^/| /' conftest.$ac_ext >&5 34106 34107 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 34108 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 34109 as_fn_error $? "cannot compute suffix of object files: cannot compile 34110 See \`config.log' for more details" "$LINENO" 5; } 34111 fi 34112 rm -f conftest.$ac_cv_objext conftest.$ac_ext 34113 fi 34114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 34115 $as_echo "$ac_cv_objext" >&6; } 34116 OBJEXT=$ac_cv_objext 34117 ac_objext=$OBJEXT 34118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 34119 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 34120 if ${ac_cv_c_compiler_gnu+:} false; then : 34121 $as_echo_n "(cached) " >&6 34122 else 34123 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 34124 /* end confdefs.h. */ 34125 34126 int 34127 main () 34128 { 34129 #ifndef __GNUC__ 34130 choke me 34131 #endif 34132 34133 ; 34134 return 0; 34135 } 34136 _ACEOF 34137 if ac_fn_c_try_compile "$LINENO"; then : 34138 ac_compiler_gnu=yes 34139 else 34140 ac_compiler_gnu=no 34141 fi 34142 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 34143 ac_cv_c_compiler_gnu=$ac_compiler_gnu 34144 34145 fi 34146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 34147 $as_echo "$ac_cv_c_compiler_gnu" >&6; } 34148 if test $ac_compiler_gnu = yes; then 34149 GCC=yes 34150 else 34151 GCC= 34152 fi 34153 ac_test_CFLAGS=${CFLAGS+set} 34154 ac_save_CFLAGS=$CFLAGS 34155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 34156 $as_echo_n "checking whether $CC accepts -g... " >&6; } 34157 if ${ac_cv_prog_cc_g+:} false; then : 34158 $as_echo_n "(cached) " >&6 34159 else 34160 ac_save_c_werror_flag=$ac_c_werror_flag 34161 ac_c_werror_flag=yes 34162 ac_cv_prog_cc_g=no 34163 CFLAGS="-g" 34164 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 34165 /* end confdefs.h. */ 34166 34167 int 34168 main () 34169 { 34170 34171 ; 34172 return 0; 34173 } 34174 _ACEOF 34175 if ac_fn_c_try_compile "$LINENO"; then : 34176 ac_cv_prog_cc_g=yes 34177 else 34178 CFLAGS="" 34179 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 34180 /* end confdefs.h. */ 34181 34182 int 34183 main () 34184 { 34185 34186 ; 34187 return 0; 34188 } 34189 _ACEOF 34190 if ac_fn_c_try_compile "$LINENO"; then : 34191 34192 else 34193 ac_c_werror_flag=$ac_save_c_werror_flag 34194 CFLAGS="-g" 34195 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 34196 /* end confdefs.h. */ 34197 34198 int 34199 main () 34200 { 34201 34202 ; 34203 return 0; 34204 } 34205 _ACEOF 34206 if ac_fn_c_try_compile "$LINENO"; then : 34207 ac_cv_prog_cc_g=yes 34208 fi 34209 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 34210 fi 34211 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 34212 fi 34213 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 34214 ac_c_werror_flag=$ac_save_c_werror_flag 34215 fi 34216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 34217 $as_echo "$ac_cv_prog_cc_g" >&6; } 34218 if test "$ac_test_CFLAGS" = set; then 34219 CFLAGS=$ac_save_CFLAGS 34220 elif test $ac_cv_prog_cc_g = yes; then 34221 if test "$GCC" = yes; then 34222 CFLAGS="-g -O2" 34223 else 34224 CFLAGS="-g" 34225 fi 34226 else 34227 if test "$GCC" = yes; then 34228 CFLAGS="-O2" 34229 else 34230 CFLAGS= 34231 fi 34232 fi 34233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 34234 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 34235 if ${ac_cv_prog_cc_c89+:} false; then : 34236 $as_echo_n "(cached) " >&6 34237 else 34238 ac_cv_prog_cc_c89=no 34239 ac_save_CC=$CC 34240 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 34241 /* end confdefs.h. */ 34242 #include <stdarg.h> 34243 #include <stdio.h> 34244 struct stat; 34245 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 34246 struct buf { int x; }; 34247 FILE * (*rcsopen) (struct buf *, struct stat *, int); 34248 static char *e (p, i) 34249 char **p; 34250 int i; 34251 { 34252 return p[i]; 34253 } 34254 static char *f (char * (*g) (char **, int), char **p, ...) 34255 { 34256 char *s; 34257 va_list v; 34258 va_start (v,p); 34259 s = g (p, va_arg (v,int)); 34260 va_end (v); 34261 return s; 34262 } 34263 34264 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 34265 function prototypes and stuff, but not '\xHH' hex character constants. 34266 These don't provoke an error unfortunately, instead are silently treated 34267 as 'x'. The following induces an error, until -std is added to get 34268 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 34269 array size at least. It's necessary to write '\x00'==0 to get something 34270 that's true only with -std. */ 34271 int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 34272 34273 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 34274 inside strings and character constants. */ 34275 #define FOO(x) 'x' 34276 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 34277 34278 int test (int i, double x); 34279 struct s1 {int (*f) (int a);}; 34280 struct s2 {int (*f) (double a);}; 34281 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 34282 int argc; 34283 char **argv; 34284 int 34285 main () 34286 { 34287 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 34288 ; 34289 return 0; 34290 } 34291 _ACEOF 34292 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 34293 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 34294 do 34295 CC="$ac_save_CC $ac_arg" 34296 if ac_fn_c_try_compile "$LINENO"; then : 34297 ac_cv_prog_cc_c89=$ac_arg 34298 fi 34299 rm -f core conftest.err conftest.$ac_objext 34300 test "x$ac_cv_prog_cc_c89" != "xno" && break 34301 done 34302 rm -f conftest.$ac_ext 34303 CC=$ac_save_CC 34304 34305 fi 34306 # AC_CACHE_VAL 34307 case "x$ac_cv_prog_cc_c89" in 34308 x) 34309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 34310 $as_echo "none needed" >&6; } ;; 34311 xno) 34312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 34313 $as_echo "unsupported" >&6; } ;; 34314 *) 34315 CC="$CC $ac_cv_prog_cc_c89" 34316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 34317 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 34318 esac 34319 if test "x$ac_cv_prog_cc_c89" != xno; then : 34320 34321 fi 34322 34323 ac_ext=cpp 34324 ac_cpp='$CXXCPP $CPPFLAGS' 34325 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 34326 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 34327 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 34328 34329 34330 34331 COMPILER_NAME=C++ 34332 SEARCH_LIST="$TOOLCHAIN_CXX_BINARY" 34333 34334 if test "x$CXX" != x; then 34335 # User has supplied compiler name already, always let that override. 34336 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied compiler CXX=$CXX" >&5 34337 $as_echo "$as_me: Will use user supplied compiler CXX=$CXX" >&6;} 34338 if test "x`basename $CXX`" = "x$CXX"; then 34339 # A command without a complete path is provided, search $PATH. 34340 34341 for ac_prog in $CXX 34342 do 34343 # Extract the first word of "$ac_prog", so it can be a program name with args. 34344 set dummy $ac_prog; ac_word=$2 34345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 34346 $as_echo_n "checking for $ac_word... " >&6; } 34347 if ${ac_cv_path_POTENTIAL_CXX+:} false; then : 34348 $as_echo_n "(cached) " >&6 34349 else 34350 case $POTENTIAL_CXX in 34351 [\\/]* | ?:[\\/]*) 34352 ac_cv_path_POTENTIAL_CXX="$POTENTIAL_CXX" # Let the user override the test with a path. 34353 ;; 34354 *) 34355 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 34356 for as_dir in $PATH 34357 do 34358 IFS=$as_save_IFS 34359 test -z "$as_dir" && as_dir=. 34360 for ac_exec_ext in '' $ac_executable_extensions; do 34361 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 34362 ac_cv_path_POTENTIAL_CXX="$as_dir/$ac_word$ac_exec_ext" 34363 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 34364 break 2 34365 fi 34366 done 34367 done 34368 IFS=$as_save_IFS 34369 34370 ;; 34371 esac 34372 fi 34373 POTENTIAL_CXX=$ac_cv_path_POTENTIAL_CXX 34374 if test -n "$POTENTIAL_CXX"; then 34375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $POTENTIAL_CXX" >&5 34376 $as_echo "$POTENTIAL_CXX" >&6; } 34377 else 34378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 34379 $as_echo "no" >&6; } 34380 fi 34381 34382 34383 test -n "$POTENTIAL_CXX" && break 34384 done 34385 34386 if test "x$POTENTIAL_CXX" != x; then 34387 CXX=$POTENTIAL_CXX 34388 else 34389 as_fn_error $? "User supplied compiler CXX=$CXX could not be found" "$LINENO" 5 34390 fi 34391 else 34392 # Otherwise it might already be a complete path 34393 if test ! -x "$CXX"; then 34394 as_fn_error $? "User supplied compiler CXX=$CXX does not exist" "$LINENO" 5 34395 fi 34396 fi 34397 else 34398 # No user supplied value. Locate compiler ourselves. 34399 34400 # If we are cross compiling, assume cross compilation tools follows the 34401 # cross compilation standard where they are prefixed with the autoconf 34402 # standard name for the target. For example the binary 34403 # i686-sun-solaris2.10-gcc will cross compile for i686-sun-solaris2.10. 34404 # If we are not cross compiling, then the default compiler name will be 34405 # used. 34406 34407 CXX= 34408 # If TOOLCHAIN_PATH is set, check for all compiler names in there first 34409 # before checking the rest of the PATH. 34410 # FIXME: Now that we prefix the TOOLS_DIR to the PATH in the PRE_DETECTION 34411 # step, this should not be necessary. 34412 if test -n "$TOOLCHAIN_PATH"; then 34413 PATH_save="$PATH" 34414 PATH="$TOOLCHAIN_PATH" 34415 for ac_prog in $SEARCH_LIST 34416 do 34417 # Extract the first word of "$ac_prog", so it can be a program name with args. 34418 set dummy $ac_prog; ac_word=$2 34419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 34420 $as_echo_n "checking for $ac_word... " >&6; } 34421 if ${ac_cv_path_TOOLCHAIN_PATH_CXX+:} false; then : 34422 $as_echo_n "(cached) " >&6 34423 else 34424 case $TOOLCHAIN_PATH_CXX in 34425 [\\/]* | ?:[\\/]*) 34426 ac_cv_path_TOOLCHAIN_PATH_CXX="$TOOLCHAIN_PATH_CXX" # Let the user override the test with a path. 34427 ;; 34428 *) 34429 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 34430 for as_dir in $PATH 34431 do 34432 IFS=$as_save_IFS 34433 test -z "$as_dir" && as_dir=. 34434 for ac_exec_ext in '' $ac_executable_extensions; do 34435 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 34436 ac_cv_path_TOOLCHAIN_PATH_CXX="$as_dir/$ac_word$ac_exec_ext" 34437 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 34438 break 2 34439 fi 34440 done 34441 done 34442 IFS=$as_save_IFS 34443 34444 ;; 34445 esac 34446 fi 34447 TOOLCHAIN_PATH_CXX=$ac_cv_path_TOOLCHAIN_PATH_CXX 34448 if test -n "$TOOLCHAIN_PATH_CXX"; then 34449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOOLCHAIN_PATH_CXX" >&5 34450 $as_echo "$TOOLCHAIN_PATH_CXX" >&6; } 34451 else 34452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 34453 $as_echo "no" >&6; } 34454 fi 34455 34456 34457 test -n "$TOOLCHAIN_PATH_CXX" && break 34458 done 34459 34460 CXX=$TOOLCHAIN_PATH_CXX 34461 PATH="$PATH_save" 34462 fi 34463 34464 # AC_PATH_PROGS can't be run multiple times with the same variable, 34465 # so create a new name for this run. 34466 if test "x$CXX" = x; then 34467 for ac_prog in $SEARCH_LIST 34468 do 34469 # Extract the first word of "$ac_prog", so it can be a program name with args. 34470 set dummy $ac_prog; ac_word=$2 34471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 34472 $as_echo_n "checking for $ac_word... " >&6; } 34473 if ${ac_cv_path_POTENTIAL_CXX+:} false; then : 34474 $as_echo_n "(cached) " >&6 34475 else 34476 case $POTENTIAL_CXX in 34477 [\\/]* | ?:[\\/]*) 34478 ac_cv_path_POTENTIAL_CXX="$POTENTIAL_CXX" # Let the user override the test with a path. 34479 ;; 34480 *) 34481 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 34482 for as_dir in $PATH 34483 do 34484 IFS=$as_save_IFS 34485 test -z "$as_dir" && as_dir=. 34486 for ac_exec_ext in '' $ac_executable_extensions; do 34487 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 34488 ac_cv_path_POTENTIAL_CXX="$as_dir/$ac_word$ac_exec_ext" 34489 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 34490 break 2 34491 fi 34492 done 34493 done 34494 IFS=$as_save_IFS 34495 34496 ;; 34497 esac 34498 fi 34499 POTENTIAL_CXX=$ac_cv_path_POTENTIAL_CXX 34500 if test -n "$POTENTIAL_CXX"; then 34501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $POTENTIAL_CXX" >&5 34502 $as_echo "$POTENTIAL_CXX" >&6; } 34503 else 34504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 34505 $as_echo "no" >&6; } 34506 fi 34507 34508 34509 test -n "$POTENTIAL_CXX" && break 34510 done 34511 34512 CXX=$POTENTIAL_CXX 34513 fi 34514 34515 if test "x$CXX" = x; then 34516 34517 # Print a helpful message on how to acquire the necessary build dependency. 34518 # devkit is the help tag: freetype, cups, alsa etc 34519 MISSING_DEPENDENCY=devkit 34520 34521 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 34522 cygwin_help $MISSING_DEPENDENCY 34523 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 34524 msys_help $MISSING_DEPENDENCY 34525 else 34526 PKGHANDLER_COMMAND= 34527 34528 case $PKGHANDLER in 34529 apt-get) 34530 apt_help $MISSING_DEPENDENCY ;; 34531 yum) 34532 yum_help $MISSING_DEPENDENCY ;; 34533 port) 34534 port_help $MISSING_DEPENDENCY ;; 34535 pkgutil) 34536 pkgutil_help $MISSING_DEPENDENCY ;; 34537 pkgadd) 34538 pkgadd_help $MISSING_DEPENDENCY ;; 34539 esac 34540 34541 if test "x$PKGHANDLER_COMMAND" != x; then 34542 HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'." 34543 fi 34544 fi 34545 34546 as_fn_error $? "Could not find a $COMPILER_NAME compiler. $HELP_MSG" "$LINENO" 5 34547 fi 34548 fi 34549 34550 # Now we have a compiler binary in CXX. Make sure it's okay. 34551 34552 # Only process if variable expands to non-empty 34553 34554 if test "x$CXX" != x; then 34555 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 34556 34557 # First separate the path from the arguments. This will split at the first 34558 # space. 34559 complete="$CXX" 34560 path="${complete%% *}" 34561 tmp="$complete EOL" 34562 arguments="${tmp#* }" 34563 34564 # Input might be given as Windows format, start by converting to 34565 # unix format. 34566 new_path=`$CYGPATH -u "$path"` 34567 34568 # Now try to locate executable using which 34569 new_path=`$WHICH "$new_path" 2> /dev/null` 34570 # bat and cmd files are not always considered executable in cygwin causing which 34571 # to not find them 34572 if test "x$new_path" = x \ 34573 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 34574 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 34575 new_path=`$CYGPATH -u "$path"` 34576 fi 34577 if test "x$new_path" = x; then 34578 # Oops. Which didn't find the executable. 34579 # The splitting of arguments from the executable at a space might have been incorrect, 34580 # since paths with space are more likely in Windows. Give it another try with the whole 34581 # argument. 34582 path="$complete" 34583 arguments="EOL" 34584 new_path=`$CYGPATH -u "$path"` 34585 new_path=`$WHICH "$new_path" 2> /dev/null` 34586 # bat and cmd files are not always considered executable in cygwin causing which 34587 # to not find them 34588 if test "x$new_path" = x \ 34589 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 34590 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 34591 new_path=`$CYGPATH -u "$path"` 34592 fi 34593 if test "x$new_path" = x; then 34594 # It's still not found. Now this is an unrecoverable error. 34595 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CXX, which resolves as \"$complete\", is not found." >&5 34596 $as_echo "$as_me: The path of CXX, which resolves as \"$complete\", is not found." >&6;} 34597 has_space=`$ECHO "$complete" | $GREP " "` 34598 if test "x$has_space" != x; then 34599 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 34600 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 34601 fi 34602 as_fn_error $? "Cannot locate the the path of CXX" "$LINENO" 5 34603 fi 34604 fi 34605 34606 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 34607 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 34608 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 34609 # "foo.exe" is OK but "foo" is an error. 34610 # 34611 # This test is therefore slightly more accurate than "test -f" to check for file presence. 34612 # It is also a way to make sure we got the proper file name for the real test later on. 34613 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 34614 if test "x$test_shortpath" = x; then 34615 # Short path failed, file does not exist as specified. 34616 # Try adding .exe or .cmd 34617 if test -f "${new_path}.exe"; then 34618 input_to_shortpath="${new_path}.exe" 34619 elif test -f "${new_path}.cmd"; then 34620 input_to_shortpath="${new_path}.cmd" 34621 else 34622 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CXX, which resolves as \"$new_path\", is invalid." >&5 34623 $as_echo "$as_me: The path of CXX, which resolves as \"$new_path\", is invalid." >&6;} 34624 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 34625 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 34626 as_fn_error $? "Cannot locate the the path of CXX" "$LINENO" 5 34627 fi 34628 else 34629 input_to_shortpath="$new_path" 34630 fi 34631 34632 # Call helper function which possibly converts this using DOS-style short mode. 34633 # If so, the updated path is stored in $new_path. 34634 new_path="$input_to_shortpath" 34635 34636 input_path="$input_to_shortpath" 34637 # Check if we need to convert this using DOS-style short mode. If the path 34638 # contains just simple characters, use it. Otherwise (spaces, weird characters), 34639 # take no chances and rewrite it. 34640 # Note: m4 eats our [], so we need to use [ and ] instead. 34641 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 34642 if test "x$has_forbidden_chars" != x; then 34643 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 34644 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 34645 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 34646 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 34647 # Going to short mode and back again did indeed matter. Since short mode is 34648 # case insensitive, let's make it lowercase to improve readability. 34649 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 34650 # Now convert it back to Unix-style (cygpath) 34651 input_path=`$CYGPATH -u "$shortmode_path"` 34652 new_path="$input_path" 34653 fi 34654 fi 34655 34656 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 34657 if test "x$test_cygdrive_prefix" = x; then 34658 # As a simple fix, exclude /usr/bin since it's not a real path. 34659 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 34660 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 34661 # a path prefixed by /cygdrive for fixpath to work. 34662 new_path="$CYGWIN_ROOT_PATH$input_path" 34663 fi 34664 fi 34665 34666 # remove trailing .exe if any 34667 new_path="${new_path/%.exe/}" 34668 34669 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 34670 34671 # First separate the path from the arguments. This will split at the first 34672 # space. 34673 complete="$CXX" 34674 path="${complete%% *}" 34675 tmp="$complete EOL" 34676 arguments="${tmp#* }" 34677 34678 # Input might be given as Windows format, start by converting to 34679 # unix format. 34680 new_path="$path" 34681 34682 windows_path="$new_path" 34683 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 34684 unix_path=`$CYGPATH -u "$windows_path"` 34685 new_path="$unix_path" 34686 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 34687 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 34688 new_path="$unix_path" 34689 fi 34690 34691 34692 # Now try to locate executable using which 34693 new_path=`$WHICH "$new_path" 2> /dev/null` 34694 34695 if test "x$new_path" = x; then 34696 # Oops. Which didn't find the executable. 34697 # The splitting of arguments from the executable at a space might have been incorrect, 34698 # since paths with space are more likely in Windows. Give it another try with the whole 34699 # argument. 34700 path="$complete" 34701 arguments="EOL" 34702 new_path="$path" 34703 34704 windows_path="$new_path" 34705 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 34706 unix_path=`$CYGPATH -u "$windows_path"` 34707 new_path="$unix_path" 34708 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 34709 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 34710 new_path="$unix_path" 34711 fi 34712 34713 34714 new_path=`$WHICH "$new_path" 2> /dev/null` 34715 # bat and cmd files are not always considered executable in MSYS causing which 34716 # to not find them 34717 if test "x$new_path" = x \ 34718 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 34719 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 34720 new_path="$path" 34721 34722 windows_path="$new_path" 34723 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 34724 unix_path=`$CYGPATH -u "$windows_path"` 34725 new_path="$unix_path" 34726 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 34727 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 34728 new_path="$unix_path" 34729 fi 34730 34731 fi 34732 34733 if test "x$new_path" = x; then 34734 # It's still not found. Now this is an unrecoverable error. 34735 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CXX, which resolves as \"$complete\", is not found." >&5 34736 $as_echo "$as_me: The path of CXX, which resolves as \"$complete\", is not found." >&6;} 34737 has_space=`$ECHO "$complete" | $GREP " "` 34738 if test "x$has_space" != x; then 34739 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 34740 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 34741 fi 34742 as_fn_error $? "Cannot locate the the path of CXX" "$LINENO" 5 34743 fi 34744 fi 34745 34746 # Now new_path has a complete unix path to the binary 34747 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 34748 # Keep paths in /bin as-is, but remove trailing .exe if any 34749 new_path="${new_path/%.exe/}" 34750 # Do not save /bin paths to all_fixpath_prefixes! 34751 else 34752 # Not in mixed or Windows style, start by that. 34753 new_path=`cmd //c echo $new_path` 34754 34755 input_path="$new_path" 34756 # Check if we need to convert this using DOS-style short mode. If the path 34757 # contains just simple characters, use it. Otherwise (spaces, weird characters), 34758 # take no chances and rewrite it. 34759 # Note: m4 eats our [], so we need to use [ and ] instead. 34760 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 34761 if test "x$has_forbidden_chars" != x; then 34762 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 34763 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 34764 fi 34765 34766 # Output is in $new_path 34767 34768 windows_path="$new_path" 34769 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 34770 unix_path=`$CYGPATH -u "$windows_path"` 34771 new_path="$unix_path" 34772 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 34773 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 34774 new_path="$unix_path" 34775 fi 34776 34777 # remove trailing .exe if any 34778 new_path="${new_path/%.exe/}" 34779 34780 # Save the first 10 bytes of this path to the storage, so fixpath can work. 34781 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 34782 fi 34783 34784 else 34785 # We're on a unix platform. Hooray! :) 34786 # First separate the path from the arguments. This will split at the first 34787 # space. 34788 complete="$CXX" 34789 path="${complete%% *}" 34790 tmp="$complete EOL" 34791 arguments="${tmp#* }" 34792 34793 # Cannot rely on the command "which" here since it doesn't always work. 34794 is_absolute_path=`$ECHO "$path" | $GREP ^/` 34795 if test -z "$is_absolute_path"; then 34796 # Path to executable is not absolute. Find it. 34797 IFS_save="$IFS" 34798 IFS=: 34799 for p in $PATH; do 34800 if test -f "$p/$path" && test -x "$p/$path"; then 34801 new_path="$p/$path" 34802 break 34803 fi 34804 done 34805 IFS="$IFS_save" 34806 else 34807 # This is an absolute path, we can use it without further modifications. 34808 new_path="$path" 34809 fi 34810 34811 if test "x$new_path" = x; then 34812 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CXX, which resolves as \"$complete\", is not found." >&5 34813 $as_echo "$as_me: The path of CXX, which resolves as \"$complete\", is not found." >&6;} 34814 has_space=`$ECHO "$complete" | $GREP " "` 34815 if test "x$has_space" != x; then 34816 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 34817 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 34818 fi 34819 as_fn_error $? "Cannot locate the the path of CXX" "$LINENO" 5 34820 fi 34821 fi 34822 34823 # Now join together the path and the arguments once again 34824 if test "x$arguments" != xEOL; then 34825 new_complete="$new_path ${arguments% *}" 34826 else 34827 new_complete="$new_path" 34828 fi 34829 34830 if test "x$complete" != "x$new_complete"; then 34831 CXX="$new_complete" 34832 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting CXX to \"$new_complete\"" >&5 34833 $as_echo "$as_me: Rewriting CXX to \"$new_complete\"" >&6;} 34834 fi 34835 fi 34836 34837 TEST_COMPILER="$CXX" 34838 34839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking resolved symbolic links for CXX" >&5 34840 $as_echo_n "checking resolved symbolic links for CXX... " >&6; } 34841 SYMLINK_ORIGINAL="$TEST_COMPILER" 34842 34843 if test "x$OPENJDK_BUILD_OS" != xwindows; then 34844 # Follow a chain of symbolic links. Use readlink 34845 # where it exists, else fall back to horribly 34846 # complicated shell code. 34847 if test "x$READLINK_TESTED" != yes; then 34848 # On MacOSX there is a readlink tool with a different 34849 # purpose than the GNU readlink tool. Check the found readlink. 34850 ISGNU=`$READLINK --version 2>&1 | $GREP GNU` 34851 if test "x$ISGNU" = x; then 34852 # A readlink that we do not know how to use. 34853 # Are there other non-GNU readlinks out there? 34854 READLINK_TESTED=yes 34855 READLINK= 34856 fi 34857 fi 34858 34859 if test "x$READLINK" != x; then 34860 SYMLINK_ORIGINAL=`$READLINK -f $SYMLINK_ORIGINAL` 34861 else 34862 # Save the current directory for restoring afterwards 34863 STARTDIR=$PWD 34864 COUNTER=0 34865 sym_link_dir=`$DIRNAME $SYMLINK_ORIGINAL` 34866 sym_link_file=`$BASENAME $SYMLINK_ORIGINAL` 34867 cd $sym_link_dir 34868 # Use -P flag to resolve symlinks in directories. 34869 cd `$THEPWDCMD -P` 34870 sym_link_dir=`$THEPWDCMD -P` 34871 # Resolve file symlinks 34872 while test $COUNTER -lt 20; do 34873 ISLINK=`$LS -l $sym_link_dir/$sym_link_file | $GREP '\->' | $SED -e 's/.*-> \(.*\)/\1/'` 34874 if test "x$ISLINK" == x; then 34875 # This is not a symbolic link! We are done! 34876 break 34877 fi 34878 # Again resolve directory symlinks since the target of the just found 34879 # link could be in a different directory 34880 cd `$DIRNAME $ISLINK` 34881 sym_link_dir=`$THEPWDCMD -P` 34882 sym_link_file=`$BASENAME $ISLINK` 34883 let COUNTER=COUNTER+1 34884 done 34885 cd $STARTDIR 34886 SYMLINK_ORIGINAL=$sym_link_dir/$sym_link_file 34887 fi 34888 fi 34889 34890 if test "x$TEST_COMPILER" = "x$SYMLINK_ORIGINAL"; then 34891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no symlink" >&5 34892 $as_echo "no symlink" >&6; } 34893 else 34894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SYMLINK_ORIGINAL" >&5 34895 $as_echo "$SYMLINK_ORIGINAL" >&6; } 34896 34897 # We can't handle ccache by gcc wrappers, since we need to know if we're 34898 # using ccache. Instead ccache usage must be controlled by a configure option. 34899 COMPILER_BASENAME=`$BASENAME "$SYMLINK_ORIGINAL"` 34900 if test "x$COMPILER_BASENAME" = "xccache"; then 34901 { $as_echo "$as_me:${as_lineno-$LINENO}: Please use --enable-ccache instead of providing a wrapped compiler." >&5 34902 $as_echo "$as_me: Please use --enable-ccache instead of providing a wrapped compiler." >&6;} 34903 as_fn_error $? "$TEST_COMPILER is a symbolic link to ccache. This is not supported." "$LINENO" 5 34904 fi 34905 fi 34906 34907 34908 COMPILER=$CXX 34909 COMPILER_NAME=$COMPILER_NAME 34910 34911 if test "x$TOOLCHAIN_TYPE" = xsolstudio; then 34912 # cc -V output typically looks like 34913 # cc: Sun C 5.12 Linux_i386 2011/11/16 34914 COMPILER_VERSION_OUTPUT=`$COMPILER -V 2>&1` 34915 # Check that this is likely to be the Solaris Studio cc. 34916 $ECHO "$COMPILER_VERSION_OUTPUT" | $GREP "^.*: Sun $COMPILER_NAME" > /dev/null 34917 if test $? -ne 0; then 34918 ALT_VERSION_OUTPUT=`$COMPILER --version 2>&1` 34919 { $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 34920 $as_echo "$as_me: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required $TOOLCHAIN_TYPE compiler." >&6;} 34921 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with -V was: \"$COMPILER_VERSION_OUTPUT\"" >&5 34922 $as_echo "$as_me: The result from running with -V was: \"$COMPILER_VERSION_OUTPUT\"" >&6;} 34923 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with --version was: \"$ALT_VERSION_OUTPUT\"" >&5 34924 $as_echo "$as_me: The result from running with --version was: \"$ALT_VERSION_OUTPUT\"" >&6;} 34925 as_fn_error $? "A $TOOLCHAIN_TYPE compiler is required. Try setting --with-tools-dir." "$LINENO" 5 34926 fi 34927 # Remove usage instructions (if present), and 34928 # collapse compiler output into a single line 34929 COMPILER_VERSION_STRING=`$ECHO $COMPILER_VERSION_OUTPUT | \ 34930 $SED -e 's/ *[Uu]sage:.*//'` 34931 COMPILER_VERSION_NUMBER=`$ECHO $COMPILER_VERSION_OUTPUT | \ 34932 $SED -e "s/^.*[ ,\t]$COMPILER_NAME[ ,\t]\([1-9]\.[0-9][0-9]*\).*/\1/"` 34933 elif test "x$TOOLCHAIN_TYPE" = xxlc; then 34934 # xlc -qversion output typically looks like 34935 # IBM XL C/C++ for AIX, V11.1 (5724-X13) 34936 # Version: 11.01.0000.0015 34937 COMPILER_VERSION_OUTPUT=`$COMPILER -qversion 2>&1` 34938 # Check that this is likely to be the IBM XL C compiler. 34939 $ECHO "$COMPILER_VERSION_OUTPUT" | $GREP "IBM XL C" > /dev/null 34940 if test $? -ne 0; then 34941 ALT_VERSION_OUTPUT=`$COMPILER --version 2>&1` 34942 { $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 34943 $as_echo "$as_me: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required $TOOLCHAIN_TYPE compiler." >&6;} 34944 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with -qversion was: \"$COMPILER_VERSION_OUTPUT\"" >&5 34945 $as_echo "$as_me: The result from running with -qversion was: \"$COMPILER_VERSION_OUTPUT\"" >&6;} 34946 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with --version was: \"$ALT_VERSION_OUTPUT\"" >&5 34947 $as_echo "$as_me: The result from running with --version was: \"$ALT_VERSION_OUTPUT\"" >&6;} 34948 as_fn_error $? "A $TOOLCHAIN_TYPE compiler is required. Try setting --with-tools-dir." "$LINENO" 5 34949 fi 34950 # Collapse compiler output into a single line 34951 COMPILER_VERSION_STRING=`$ECHO $COMPILER_VERSION_OUTPUT` 34952 COMPILER_VERSION_NUMBER=`$ECHO $COMPILER_VERSION_OUTPUT | \ 34953 $SED -e 's/^.*, V\([1-9][0-9.]*\).*$/\1/'` 34954 elif test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 34955 # There is no specific version flag, but all output starts with a version string. 34956 # First line typically looks something like: 34957 # Microsoft (R) 32-bit C/C++ Optimizing Compiler Version 16.00.40219.01 for 80x86 34958 COMPILER_VERSION_OUTPUT=`$COMPILER 2>&1 | $HEAD -n 1 | $TR -d '\r'` 34959 # Check that this is likely to be Microsoft CL.EXE. 34960 $ECHO "$COMPILER_VERSION_OUTPUT" | $GREP "Microsoft.*Compiler" > /dev/null 34961 if test $? -ne 0; then 34962 { $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 34963 $as_echo "$as_me: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required $TOOLCHAIN_TYPE compiler." >&6;} 34964 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running it was: \"$COMPILER_VERSION_OUTPUT\"" >&5 34965 $as_echo "$as_me: The result from running it was: \"$COMPILER_VERSION_OUTPUT\"" >&6;} 34966 as_fn_error $? "A $TOOLCHAIN_TYPE compiler is required. Try setting --with-tools-dir." "$LINENO" 5 34967 fi 34968 # Collapse compiler output into a single line 34969 COMPILER_VERSION_STRING=`$ECHO $COMPILER_VERSION_OUTPUT` 34970 COMPILER_VERSION_NUMBER=`$ECHO $COMPILER_VERSION_OUTPUT | \ 34971 $SED -e 's/^.*ersion.\([1-9][0-9.]*\) .*$/\1/'` 34972 elif test "x$TOOLCHAIN_TYPE" = xgcc; then 34973 # gcc --version output typically looks like 34974 # gcc (Ubuntu/Linaro 4.8.1-10ubuntu9) 4.8.1 34975 # Copyright (C) 2013 Free Software Foundation, Inc. 34976 # This is free software; see the source for copying conditions. There is NO 34977 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 34978 COMPILER_VERSION_OUTPUT=`$COMPILER --version 2>&1` 34979 # Check that this is likely to be GCC. 34980 $ECHO "$COMPILER_VERSION_OUTPUT" | $GREP "Free Software Foundation" > /dev/null 34981 if test $? -ne 0; then 34982 { $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 34983 $as_echo "$as_me: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required $TOOLCHAIN_TYPE compiler." >&6;} 34984 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with --version was: \"$COMPILER_VERSION\"" >&5 34985 $as_echo "$as_me: The result from running with --version was: \"$COMPILER_VERSION\"" >&6;} 34986 as_fn_error $? "A $TOOLCHAIN_TYPE compiler is required. Try setting --with-tools-dir." "$LINENO" 5 34987 fi 34988 # Remove Copyright and legalese from version string, and 34989 # collapse into a single line 34990 COMPILER_VERSION_STRING=`$ECHO $COMPILER_VERSION_OUTPUT | \ 34991 $SED -e 's/ *Copyright .*//'` 34992 COMPILER_VERSION_NUMBER=`$ECHO $COMPILER_VERSION_OUTPUT | \ 34993 $SED -e 's/^.* \([1-9]\.[0-9.]*\)[^0-9.].*$/\1/'` 34994 elif test "x$TOOLCHAIN_TYPE" = xclang; then 34995 # clang --version output typically looks like 34996 # Apple LLVM version 5.0 (clang-500.2.79) (based on LLVM 3.3svn) 34997 # clang version 3.3 (tags/RELEASE_33/final) 34998 # or 34999 # Debian clang version 3.2-7ubuntu1 (tags/RELEASE_32/final) (based on LLVM 3.2) 35000 # Target: x86_64-pc-linux-gnu 35001 # Thread model: posix 35002 COMPILER_VERSION_OUTPUT=`$COMPILER --version 2>&1` 35003 # Check that this is likely to be clang 35004 $ECHO "$COMPILER_VERSION_OUTPUT" | $GREP "clang" > /dev/null 35005 if test $? -ne 0; then 35006 { $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 35007 $as_echo "$as_me: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required $TOOLCHAIN_TYPE compiler." >&6;} 35008 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with --version was: \"$COMPILER_VERSION_OUTPUT\"" >&5 35009 $as_echo "$as_me: The result from running with --version was: \"$COMPILER_VERSION_OUTPUT\"" >&6;} 35010 as_fn_error $? "A $TOOLCHAIN_TYPE compiler is required. Try setting --with-tools-dir." "$LINENO" 5 35011 fi 35012 # Collapse compiler output into a single line 35013 COMPILER_VERSION_STRING=`$ECHO $COMPILER_VERSION_OUTPUT` 35014 COMPILER_VERSION_NUMBER=`$ECHO $COMPILER_VERSION_OUTPUT | \ 35015 $SED -e 's/^.* version \([1-9][0-9.]*\).*$/\1/'` 35016 else 35017 as_fn_error $? "Unknown toolchain type $TOOLCHAIN_TYPE." "$LINENO" 5 35018 fi 35019 # This sets CC_VERSION_NUMBER or CXX_VERSION_NUMBER. (This comment is a grep marker) 35020 CXX_VERSION_NUMBER="$COMPILER_VERSION_NUMBER" 35021 # This sets CC_VERSION_STRING or CXX_VERSION_STRING. (This comment is a grep marker) 35022 CXX_VERSION_STRING="$COMPILER_VERSION_STRING" 35023 35024 { $as_echo "$as_me:${as_lineno-$LINENO}: Using $TOOLCHAIN_TYPE $COMPILER_NAME compiler version $COMPILER_VERSION_NUMBER [$COMPILER_VERSION_STRING]" >&5 35025 $as_echo "$as_me: Using $TOOLCHAIN_TYPE $COMPILER_NAME compiler version $COMPILER_VERSION_NUMBER [$COMPILER_VERSION_STRING]" >&6;} 35026 35027 35028 # Now that we have resolved CXX ourself, let autoconf have its go at it 35029 ac_ext=cpp 35030 ac_cpp='$CXXCPP $CPPFLAGS' 35031 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 35032 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 35033 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 35034 if test -z "$CXX"; then 35035 if test -n "$CCC"; then 35036 CXX=$CCC 35037 else 35038 if test -n "$ac_tool_prefix"; then 35039 for ac_prog in $CXX 35040 do 35041 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 35042 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 35043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 35044 $as_echo_n "checking for $ac_word... " >&6; } 35045 if ${ac_cv_prog_CXX+:} false; then : 35046 $as_echo_n "(cached) " >&6 35047 else 35048 if test -n "$CXX"; then 35049 ac_cv_prog_CXX="$CXX" # Let the user override the test. 35050 else 35051 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 35052 for as_dir in $PATH 35053 do 35054 IFS=$as_save_IFS 35055 test -z "$as_dir" && as_dir=. 35056 for ac_exec_ext in '' $ac_executable_extensions; do 35057 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 35058 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" 35059 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 35060 break 2 35061 fi 35062 done 35063 done 35064 IFS=$as_save_IFS 35065 35066 fi 35067 fi 35068 CXX=$ac_cv_prog_CXX 35069 if test -n "$CXX"; then 35070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 35071 $as_echo "$CXX" >&6; } 35072 else 35073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 35074 $as_echo "no" >&6; } 35075 fi 35076 35077 35078 test -n "$CXX" && break 35079 done 35080 fi 35081 if test -z "$CXX"; then 35082 ac_ct_CXX=$CXX 35083 for ac_prog in $CXX 35084 do 35085 # Extract the first word of "$ac_prog", so it can be a program name with args. 35086 set dummy $ac_prog; ac_word=$2 35087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 35088 $as_echo_n "checking for $ac_word... " >&6; } 35089 if ${ac_cv_prog_ac_ct_CXX+:} false; then : 35090 $as_echo_n "(cached) " >&6 35091 else 35092 if test -n "$ac_ct_CXX"; then 35093 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. 35094 else 35095 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 35096 for as_dir in $PATH 35097 do 35098 IFS=$as_save_IFS 35099 test -z "$as_dir" && as_dir=. 35100 for ac_exec_ext in '' $ac_executable_extensions; do 35101 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 35102 ac_cv_prog_ac_ct_CXX="$ac_prog" 35103 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 35104 break 2 35105 fi 35106 done 35107 done 35108 IFS=$as_save_IFS 35109 35110 fi 35111 fi 35112 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX 35113 if test -n "$ac_ct_CXX"; then 35114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 35115 $as_echo "$ac_ct_CXX" >&6; } 35116 else 35117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 35118 $as_echo "no" >&6; } 35119 fi 35120 35121 35122 test -n "$ac_ct_CXX" && break 35123 done 35124 35125 if test "x$ac_ct_CXX" = x; then 35126 CXX="g++" 35127 else 35128 case $cross_compiling:$ac_tool_warned in 35129 yes:) 35130 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 35131 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 35132 ac_tool_warned=yes ;; 35133 esac 35134 CXX=$ac_ct_CXX 35135 fi 35136 fi 35137 35138 fi 35139 fi 35140 # Provide some information about the compiler. 35141 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5 35142 set X $ac_compile 35143 ac_compiler=$2 35144 for ac_option in --version -v -V -qversion; do 35145 { { ac_try="$ac_compiler $ac_option >&5" 35146 case "(($ac_try" in 35147 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 35148 *) ac_try_echo=$ac_try;; 35149 esac 35150 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 35151 $as_echo "$ac_try_echo"; } >&5 35152 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 35153 ac_status=$? 35154 if test -s conftest.err; then 35155 sed '10a\ 35156 ... rest of stderr output deleted ... 35157 10q' conftest.err >conftest.er1 35158 cat conftest.er1 >&5 35159 fi 35160 rm -f conftest.er1 conftest.err 35161 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 35162 test $ac_status = 0; } 35163 done 35164 35165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5 35166 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; } 35167 if ${ac_cv_cxx_compiler_gnu+:} false; then : 35168 $as_echo_n "(cached) " >&6 35169 else 35170 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 35171 /* end confdefs.h. */ 35172 35173 int 35174 main () 35175 { 35176 #ifndef __GNUC__ 35177 choke me 35178 #endif 35179 35180 ; 35181 return 0; 35182 } 35183 _ACEOF 35184 if ac_fn_cxx_try_compile "$LINENO"; then : 35185 ac_compiler_gnu=yes 35186 else 35187 ac_compiler_gnu=no 35188 fi 35189 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 35190 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu 35191 35192 fi 35193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5 35194 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; } 35195 if test $ac_compiler_gnu = yes; then 35196 GXX=yes 35197 else 35198 GXX= 35199 fi 35200 ac_test_CXXFLAGS=${CXXFLAGS+set} 35201 ac_save_CXXFLAGS=$CXXFLAGS 35202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5 35203 $as_echo_n "checking whether $CXX accepts -g... " >&6; } 35204 if ${ac_cv_prog_cxx_g+:} false; then : 35205 $as_echo_n "(cached) " >&6 35206 else 35207 ac_save_cxx_werror_flag=$ac_cxx_werror_flag 35208 ac_cxx_werror_flag=yes 35209 ac_cv_prog_cxx_g=no 35210 CXXFLAGS="-g" 35211 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 35212 /* end confdefs.h. */ 35213 35214 int 35215 main () 35216 { 35217 35218 ; 35219 return 0; 35220 } 35221 _ACEOF 35222 if ac_fn_cxx_try_compile "$LINENO"; then : 35223 ac_cv_prog_cxx_g=yes 35224 else 35225 CXXFLAGS="" 35226 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 35227 /* end confdefs.h. */ 35228 35229 int 35230 main () 35231 { 35232 35233 ; 35234 return 0; 35235 } 35236 _ACEOF 35237 if ac_fn_cxx_try_compile "$LINENO"; then : 35238 35239 else 35240 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 35241 CXXFLAGS="-g" 35242 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 35243 /* end confdefs.h. */ 35244 35245 int 35246 main () 35247 { 35248 35249 ; 35250 return 0; 35251 } 35252 _ACEOF 35253 if ac_fn_cxx_try_compile "$LINENO"; then : 35254 ac_cv_prog_cxx_g=yes 35255 fi 35256 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 35257 fi 35258 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 35259 fi 35260 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 35261 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 35262 fi 35263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5 35264 $as_echo "$ac_cv_prog_cxx_g" >&6; } 35265 if test "$ac_test_CXXFLAGS" = set; then 35266 CXXFLAGS=$ac_save_CXXFLAGS 35267 elif test $ac_cv_prog_cxx_g = yes; then 35268 if test "$GXX" = yes; then 35269 CXXFLAGS="-g -O2" 35270 else 35271 CXXFLAGS="-g" 35272 fi 35273 else 35274 if test "$GXX" = yes; then 35275 CXXFLAGS="-O2" 35276 else 35277 CXXFLAGS= 35278 fi 35279 fi 35280 ac_ext=cpp 35281 ac_cpp='$CXXCPP $CPPFLAGS' 35282 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 35283 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 35284 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 35285 35286 35287 # This is the compiler version number on the form X.Y[.Z] 35288 35289 35290 35291 35292 if test "x$CC_VERSION_NUMBER" != "x$CXX_VERSION_NUMBER"; then 35293 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: C and C++ compiler have different version numbers, $CC_VERSION_NUMBER vs $CXX_VERSION_NUMBER." >&5 35294 $as_echo "$as_me: WARNING: C and C++ compiler have different version numbers, $CC_VERSION_NUMBER vs $CXX_VERSION_NUMBER." >&2;} 35295 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This typically indicates a broken setup, and is not supported" >&5 35296 $as_echo "$as_me: WARNING: This typically indicates a broken setup, and is not supported" >&2;} 35297 fi 35298 35299 # We only check CC_VERSION_NUMBER since we assume CXX_VERSION_NUMBER is equal. 35300 if [[ "[$]CC_VERSION_NUMBER" =~ (.*\.){3} ]] ; then 35301 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: C compiler version number has more than three parts (X.Y.Z): $CC_VERSION_NUMBER. Comparisons might be wrong." >&5 35302 $as_echo "$as_me: WARNING: C compiler version number has more than three parts (X.Y.Z): $CC_VERSION_NUMBER. Comparisons might be wrong." >&2;} 35303 fi 35304 35305 if [[ "[$]CC_VERSION_NUMBER" =~ [0-9]{6} ]] ; then 35306 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: C compiler version number has a part larger than 99999: $CC_VERSION_NUMBER. Comparisons might be wrong." >&5 35307 $as_echo "$as_me: WARNING: C compiler version number has a part larger than 99999: $CC_VERSION_NUMBER. Comparisons might be wrong." >&2;} 35308 fi 35309 35310 COMPARABLE_ACTUAL_VERSION=`$AWK -F. '{ printf("%05d%05d%05d\n", $1, $2, $3) }' <<< "$CC_VERSION_NUMBER"` 35311 35312 35313 if test "x$TOOLCHAIN_MINIMUM_VERSION" != x; then 35314 35315 35316 35317 35318 35319 35320 35321 35322 35323 35324 35325 35326 35327 35328 35329 35330 35331 35332 35333 35334 35335 35336 35337 35338 35339 35340 35341 35342 35343 35344 35345 35346 35347 35348 35349 35350 35351 35352 35353 35354 35355 35356 35357 35358 35359 35360 35361 35362 35363 # Execute function body 35364 35365 # Need to assign to a variable since m4 is blocked from modifying parts in []. 35366 REFERENCE_VERSION=$TOOLCHAIN_MINIMUM_VERSION 35367 35368 if [[ "$REFERENCE_VERSION" =~ (.*\.){3} ]] ; then 35369 as_fn_error $? "Internal error: Cannot compare to $TOOLCHAIN_MINIMUM_VERSION, only three parts (X.Y.Z) is supported" "$LINENO" 5 35370 fi 35371 35372 if [[ "$REFERENCE_VERSION" =~ [0-9]{6} ]] ; then 35373 as_fn_error $? "Internal error: Cannot compare to $TOOLCHAIN_MINIMUM_VERSION, only parts < 99999 is supported" "$LINENO" 5 35374 fi 35375 35376 # Version comparison method inspired by http://stackoverflow.com/a/24067243 35377 COMPARABLE_REFERENCE_VERSION=`$AWK -F. '{ printf("%05d%05d%05d\n", $1, $2, $3) }' <<< "$REFERENCE_VERSION"` 35378 35379 if test $COMPARABLE_ACTUAL_VERSION -ge $COMPARABLE_REFERENCE_VERSION ; then 35380 : 35381 35382 else 35383 : 35384 35385 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You are using $TOOLCHAIN_TYPE older than $TOOLCHAIN_MINIMUM_VERSION. This is not a supported configuration." >&5 35386 $as_echo "$as_me: WARNING: You are using $TOOLCHAIN_TYPE older than $TOOLCHAIN_MINIMUM_VERSION. This is not a supported configuration." >&2;} 35387 35388 35389 fi 35390 35391 35392 35393 35394 35395 35396 35397 35398 35399 35400 35401 35402 35403 35404 fi 35405 35406 # 35407 # Setup the preprocessor (CPP and CXXCPP) 35408 # 35409 ac_ext=c 35410 ac_cpp='$CPP $CPPFLAGS' 35411 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 35412 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 35413 ac_compiler_gnu=$ac_cv_c_compiler_gnu 35414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 35415 $as_echo_n "checking how to run the C preprocessor... " >&6; } 35416 # On Suns, sometimes $CPP names a directory. 35417 if test -n "$CPP" && test -d "$CPP"; then 35418 CPP= 35419 fi 35420 if test -z "$CPP"; then 35421 if ${ac_cv_prog_CPP+:} false; then : 35422 $as_echo_n "(cached) " >&6 35423 else 35424 # Double quotes because CPP needs to be expanded 35425 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 35426 do 35427 ac_preproc_ok=false 35428 for ac_c_preproc_warn_flag in '' yes 35429 do 35430 # Use a header file that comes with gcc, so configuring glibc 35431 # with a fresh cross-compiler works. 35432 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 35433 # <limits.h> exists even on freestanding compilers. 35434 # On the NeXT, cc -E runs the code through the compiler's parser, 35435 # not just through cpp. "Syntax error" is here to catch this case. 35436 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 35437 /* end confdefs.h. */ 35438 #ifdef __STDC__ 35439 # include <limits.h> 35440 #else 35441 # include <assert.h> 35442 #endif 35443 Syntax error 35444 _ACEOF 35445 if ac_fn_c_try_cpp "$LINENO"; then : 35446 35447 else 35448 # Broken: fails on valid input. 35449 continue 35450 fi 35451 rm -f conftest.err conftest.i conftest.$ac_ext 35452 35453 # OK, works on sane cases. Now check whether nonexistent headers 35454 # can be detected and how. 35455 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 35456 /* end confdefs.h. */ 35457 #include <ac_nonexistent.h> 35458 _ACEOF 35459 if ac_fn_c_try_cpp "$LINENO"; then : 35460 # Broken: success on invalid input. 35461 continue 35462 else 35463 # Passes both tests. 35464 ac_preproc_ok=: 35465 break 35466 fi 35467 rm -f conftest.err conftest.i conftest.$ac_ext 35468 35469 done 35470 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 35471 rm -f conftest.i conftest.err conftest.$ac_ext 35472 if $ac_preproc_ok; then : 35473 break 35474 fi 35475 35476 done 35477 ac_cv_prog_CPP=$CPP 35478 35479 fi 35480 CPP=$ac_cv_prog_CPP 35481 else 35482 ac_cv_prog_CPP=$CPP 35483 fi 35484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 35485 $as_echo "$CPP" >&6; } 35486 ac_preproc_ok=false 35487 for ac_c_preproc_warn_flag in '' yes 35488 do 35489 # Use a header file that comes with gcc, so configuring glibc 35490 # with a fresh cross-compiler works. 35491 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 35492 # <limits.h> exists even on freestanding compilers. 35493 # On the NeXT, cc -E runs the code through the compiler's parser, 35494 # not just through cpp. "Syntax error" is here to catch this case. 35495 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 35496 /* end confdefs.h. */ 35497 #ifdef __STDC__ 35498 # include <limits.h> 35499 #else 35500 # include <assert.h> 35501 #endif 35502 Syntax error 35503 _ACEOF 35504 if ac_fn_c_try_cpp "$LINENO"; then : 35505 35506 else 35507 # Broken: fails on valid input. 35508 continue 35509 fi 35510 rm -f conftest.err conftest.i conftest.$ac_ext 35511 35512 # OK, works on sane cases. Now check whether nonexistent headers 35513 # can be detected and how. 35514 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 35515 /* end confdefs.h. */ 35516 #include <ac_nonexistent.h> 35517 _ACEOF 35518 if ac_fn_c_try_cpp "$LINENO"; then : 35519 # Broken: success on invalid input. 35520 continue 35521 else 35522 # Passes both tests. 35523 ac_preproc_ok=: 35524 break 35525 fi 35526 rm -f conftest.err conftest.i conftest.$ac_ext 35527 35528 done 35529 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 35530 rm -f conftest.i conftest.err conftest.$ac_ext 35531 if $ac_preproc_ok; then : 35532 35533 else 35534 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 35535 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 35536 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 35537 See \`config.log' for more details" "$LINENO" 5; } 35538 fi 35539 35540 ac_ext=cpp 35541 ac_cpp='$CXXCPP $CPPFLAGS' 35542 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 35543 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 35544 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 35545 35546 35547 # Only process if variable expands to non-empty 35548 35549 if test "x$CPP" != x; then 35550 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 35551 35552 # First separate the path from the arguments. This will split at the first 35553 # space. 35554 complete="$CPP" 35555 path="${complete%% *}" 35556 tmp="$complete EOL" 35557 arguments="${tmp#* }" 35558 35559 # Input might be given as Windows format, start by converting to 35560 # unix format. 35561 new_path=`$CYGPATH -u "$path"` 35562 35563 # Now try to locate executable using which 35564 new_path=`$WHICH "$new_path" 2> /dev/null` 35565 # bat and cmd files are not always considered executable in cygwin causing which 35566 # to not find them 35567 if test "x$new_path" = x \ 35568 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 35569 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 35570 new_path=`$CYGPATH -u "$path"` 35571 fi 35572 if test "x$new_path" = x; then 35573 # Oops. Which didn't find the executable. 35574 # The splitting of arguments from the executable at a space might have been incorrect, 35575 # since paths with space are more likely in Windows. Give it another try with the whole 35576 # argument. 35577 path="$complete" 35578 arguments="EOL" 35579 new_path=`$CYGPATH -u "$path"` 35580 new_path=`$WHICH "$new_path" 2> /dev/null` 35581 # bat and cmd files are not always considered executable in cygwin causing which 35582 # to not find them 35583 if test "x$new_path" = x \ 35584 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 35585 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 35586 new_path=`$CYGPATH -u "$path"` 35587 fi 35588 if test "x$new_path" = x; then 35589 # It's still not found. Now this is an unrecoverable error. 35590 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CPP, which resolves as \"$complete\", is not found." >&5 35591 $as_echo "$as_me: The path of CPP, which resolves as \"$complete\", is not found." >&6;} 35592 has_space=`$ECHO "$complete" | $GREP " "` 35593 if test "x$has_space" != x; then 35594 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 35595 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 35596 fi 35597 as_fn_error $? "Cannot locate the the path of CPP" "$LINENO" 5 35598 fi 35599 fi 35600 35601 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 35602 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 35603 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 35604 # "foo.exe" is OK but "foo" is an error. 35605 # 35606 # This test is therefore slightly more accurate than "test -f" to check for file presence. 35607 # It is also a way to make sure we got the proper file name for the real test later on. 35608 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 35609 if test "x$test_shortpath" = x; then 35610 # Short path failed, file does not exist as specified. 35611 # Try adding .exe or .cmd 35612 if test -f "${new_path}.exe"; then 35613 input_to_shortpath="${new_path}.exe" 35614 elif test -f "${new_path}.cmd"; then 35615 input_to_shortpath="${new_path}.cmd" 35616 else 35617 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CPP, which resolves as \"$new_path\", is invalid." >&5 35618 $as_echo "$as_me: The path of CPP, which resolves as \"$new_path\", is invalid." >&6;} 35619 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 35620 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 35621 as_fn_error $? "Cannot locate the the path of CPP" "$LINENO" 5 35622 fi 35623 else 35624 input_to_shortpath="$new_path" 35625 fi 35626 35627 # Call helper function which possibly converts this using DOS-style short mode. 35628 # If so, the updated path is stored in $new_path. 35629 new_path="$input_to_shortpath" 35630 35631 input_path="$input_to_shortpath" 35632 # Check if we need to convert this using DOS-style short mode. If the path 35633 # contains just simple characters, use it. Otherwise (spaces, weird characters), 35634 # take no chances and rewrite it. 35635 # Note: m4 eats our [], so we need to use [ and ] instead. 35636 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 35637 if test "x$has_forbidden_chars" != x; then 35638 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 35639 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 35640 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 35641 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 35642 # Going to short mode and back again did indeed matter. Since short mode is 35643 # case insensitive, let's make it lowercase to improve readability. 35644 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 35645 # Now convert it back to Unix-style (cygpath) 35646 input_path=`$CYGPATH -u "$shortmode_path"` 35647 new_path="$input_path" 35648 fi 35649 fi 35650 35651 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 35652 if test "x$test_cygdrive_prefix" = x; then 35653 # As a simple fix, exclude /usr/bin since it's not a real path. 35654 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 35655 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 35656 # a path prefixed by /cygdrive for fixpath to work. 35657 new_path="$CYGWIN_ROOT_PATH$input_path" 35658 fi 35659 fi 35660 35661 # remove trailing .exe if any 35662 new_path="${new_path/%.exe/}" 35663 35664 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 35665 35666 # First separate the path from the arguments. This will split at the first 35667 # space. 35668 complete="$CPP" 35669 path="${complete%% *}" 35670 tmp="$complete EOL" 35671 arguments="${tmp#* }" 35672 35673 # Input might be given as Windows format, start by converting to 35674 # unix format. 35675 new_path="$path" 35676 35677 windows_path="$new_path" 35678 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 35679 unix_path=`$CYGPATH -u "$windows_path"` 35680 new_path="$unix_path" 35681 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 35682 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 35683 new_path="$unix_path" 35684 fi 35685 35686 35687 # Now try to locate executable using which 35688 new_path=`$WHICH "$new_path" 2> /dev/null` 35689 35690 if test "x$new_path" = x; then 35691 # Oops. Which didn't find the executable. 35692 # The splitting of arguments from the executable at a space might have been incorrect, 35693 # since paths with space are more likely in Windows. Give it another try with the whole 35694 # argument. 35695 path="$complete" 35696 arguments="EOL" 35697 new_path="$path" 35698 35699 windows_path="$new_path" 35700 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 35701 unix_path=`$CYGPATH -u "$windows_path"` 35702 new_path="$unix_path" 35703 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 35704 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 35705 new_path="$unix_path" 35706 fi 35707 35708 35709 new_path=`$WHICH "$new_path" 2> /dev/null` 35710 # bat and cmd files are not always considered executable in MSYS causing which 35711 # to not find them 35712 if test "x$new_path" = x \ 35713 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 35714 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 35715 new_path="$path" 35716 35717 windows_path="$new_path" 35718 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 35719 unix_path=`$CYGPATH -u "$windows_path"` 35720 new_path="$unix_path" 35721 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 35722 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 35723 new_path="$unix_path" 35724 fi 35725 35726 fi 35727 35728 if test "x$new_path" = x; then 35729 # It's still not found. Now this is an unrecoverable error. 35730 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CPP, which resolves as \"$complete\", is not found." >&5 35731 $as_echo "$as_me: The path of CPP, which resolves as \"$complete\", is not found." >&6;} 35732 has_space=`$ECHO "$complete" | $GREP " "` 35733 if test "x$has_space" != x; then 35734 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 35735 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 35736 fi 35737 as_fn_error $? "Cannot locate the the path of CPP" "$LINENO" 5 35738 fi 35739 fi 35740 35741 # Now new_path has a complete unix path to the binary 35742 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 35743 # Keep paths in /bin as-is, but remove trailing .exe if any 35744 new_path="${new_path/%.exe/}" 35745 # Do not save /bin paths to all_fixpath_prefixes! 35746 else 35747 # Not in mixed or Windows style, start by that. 35748 new_path=`cmd //c echo $new_path` 35749 35750 input_path="$new_path" 35751 # Check if we need to convert this using DOS-style short mode. If the path 35752 # contains just simple characters, use it. Otherwise (spaces, weird characters), 35753 # take no chances and rewrite it. 35754 # Note: m4 eats our [], so we need to use [ and ] instead. 35755 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 35756 if test "x$has_forbidden_chars" != x; then 35757 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 35758 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 35759 fi 35760 35761 # Output is in $new_path 35762 35763 windows_path="$new_path" 35764 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 35765 unix_path=`$CYGPATH -u "$windows_path"` 35766 new_path="$unix_path" 35767 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 35768 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 35769 new_path="$unix_path" 35770 fi 35771 35772 # remove trailing .exe if any 35773 new_path="${new_path/%.exe/}" 35774 35775 # Save the first 10 bytes of this path to the storage, so fixpath can work. 35776 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 35777 fi 35778 35779 else 35780 # We're on a unix platform. Hooray! :) 35781 # First separate the path from the arguments. This will split at the first 35782 # space. 35783 complete="$CPP" 35784 path="${complete%% *}" 35785 tmp="$complete EOL" 35786 arguments="${tmp#* }" 35787 35788 # Cannot rely on the command "which" here since it doesn't always work. 35789 is_absolute_path=`$ECHO "$path" | $GREP ^/` 35790 if test -z "$is_absolute_path"; then 35791 # Path to executable is not absolute. Find it. 35792 IFS_save="$IFS" 35793 IFS=: 35794 for p in $PATH; do 35795 if test -f "$p/$path" && test -x "$p/$path"; then 35796 new_path="$p/$path" 35797 break 35798 fi 35799 done 35800 IFS="$IFS_save" 35801 else 35802 # This is an absolute path, we can use it without further modifications. 35803 new_path="$path" 35804 fi 35805 35806 if test "x$new_path" = x; then 35807 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CPP, which resolves as \"$complete\", is not found." >&5 35808 $as_echo "$as_me: The path of CPP, which resolves as \"$complete\", is not found." >&6;} 35809 has_space=`$ECHO "$complete" | $GREP " "` 35810 if test "x$has_space" != x; then 35811 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 35812 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 35813 fi 35814 as_fn_error $? "Cannot locate the the path of CPP" "$LINENO" 5 35815 fi 35816 fi 35817 35818 # Now join together the path and the arguments once again 35819 if test "x$arguments" != xEOL; then 35820 new_complete="$new_path ${arguments% *}" 35821 else 35822 new_complete="$new_path" 35823 fi 35824 35825 if test "x$complete" != "x$new_complete"; then 35826 CPP="$new_complete" 35827 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting CPP to \"$new_complete\"" >&5 35828 $as_echo "$as_me: Rewriting CPP to \"$new_complete\"" >&6;} 35829 fi 35830 fi 35831 35832 ac_ext=cpp 35833 ac_cpp='$CXXCPP $CPPFLAGS' 35834 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 35835 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 35836 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 35837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5 35838 $as_echo_n "checking how to run the C++ preprocessor... " >&6; } 35839 if test -z "$CXXCPP"; then 35840 if ${ac_cv_prog_CXXCPP+:} false; then : 35841 $as_echo_n "(cached) " >&6 35842 else 35843 # Double quotes because CXXCPP needs to be expanded 35844 for CXXCPP in "$CXX -E" "/lib/cpp" 35845 do 35846 ac_preproc_ok=false 35847 for ac_cxx_preproc_warn_flag in '' yes 35848 do 35849 # Use a header file that comes with gcc, so configuring glibc 35850 # with a fresh cross-compiler works. 35851 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 35852 # <limits.h> exists even on freestanding compilers. 35853 # On the NeXT, cc -E runs the code through the compiler's parser, 35854 # not just through cpp. "Syntax error" is here to catch this case. 35855 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 35856 /* end confdefs.h. */ 35857 #ifdef __STDC__ 35858 # include <limits.h> 35859 #else 35860 # include <assert.h> 35861 #endif 35862 Syntax error 35863 _ACEOF 35864 if ac_fn_cxx_try_cpp "$LINENO"; then : 35865 35866 else 35867 # Broken: fails on valid input. 35868 continue 35869 fi 35870 rm -f conftest.err conftest.i conftest.$ac_ext 35871 35872 # OK, works on sane cases. Now check whether nonexistent headers 35873 # can be detected and how. 35874 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 35875 /* end confdefs.h. */ 35876 #include <ac_nonexistent.h> 35877 _ACEOF 35878 if ac_fn_cxx_try_cpp "$LINENO"; then : 35879 # Broken: success on invalid input. 35880 continue 35881 else 35882 # Passes both tests. 35883 ac_preproc_ok=: 35884 break 35885 fi 35886 rm -f conftest.err conftest.i conftest.$ac_ext 35887 35888 done 35889 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 35890 rm -f conftest.i conftest.err conftest.$ac_ext 35891 if $ac_preproc_ok; then : 35892 break 35893 fi 35894 35895 done 35896 ac_cv_prog_CXXCPP=$CXXCPP 35897 35898 fi 35899 CXXCPP=$ac_cv_prog_CXXCPP 35900 else 35901 ac_cv_prog_CXXCPP=$CXXCPP 35902 fi 35903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5 35904 $as_echo "$CXXCPP" >&6; } 35905 ac_preproc_ok=false 35906 for ac_cxx_preproc_warn_flag in '' yes 35907 do 35908 # Use a header file that comes with gcc, so configuring glibc 35909 # with a fresh cross-compiler works. 35910 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 35911 # <limits.h> exists even on freestanding compilers. 35912 # On the NeXT, cc -E runs the code through the compiler's parser, 35913 # not just through cpp. "Syntax error" is here to catch this case. 35914 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 35915 /* end confdefs.h. */ 35916 #ifdef __STDC__ 35917 # include <limits.h> 35918 #else 35919 # include <assert.h> 35920 #endif 35921 Syntax error 35922 _ACEOF 35923 if ac_fn_cxx_try_cpp "$LINENO"; then : 35924 35925 else 35926 # Broken: fails on valid input. 35927 continue 35928 fi 35929 rm -f conftest.err conftest.i conftest.$ac_ext 35930 35931 # OK, works on sane cases. Now check whether nonexistent headers 35932 # can be detected and how. 35933 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 35934 /* end confdefs.h. */ 35935 #include <ac_nonexistent.h> 35936 _ACEOF 35937 if ac_fn_cxx_try_cpp "$LINENO"; then : 35938 # Broken: success on invalid input. 35939 continue 35940 else 35941 # Passes both tests. 35942 ac_preproc_ok=: 35943 break 35944 fi 35945 rm -f conftest.err conftest.i conftest.$ac_ext 35946 35947 done 35948 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 35949 rm -f conftest.i conftest.err conftest.$ac_ext 35950 if $ac_preproc_ok; then : 35951 35952 else 35953 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 35954 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 35955 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check 35956 See \`config.log' for more details" "$LINENO" 5; } 35957 fi 35958 35959 ac_ext=cpp 35960 ac_cpp='$CXXCPP $CPPFLAGS' 35961 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 35962 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 35963 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 35964 35965 35966 # Only process if variable expands to non-empty 35967 35968 if test "x$CXXCPP" != x; then 35969 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 35970 35971 # First separate the path from the arguments. This will split at the first 35972 # space. 35973 complete="$CXXCPP" 35974 path="${complete%% *}" 35975 tmp="$complete EOL" 35976 arguments="${tmp#* }" 35977 35978 # Input might be given as Windows format, start by converting to 35979 # unix format. 35980 new_path=`$CYGPATH -u "$path"` 35981 35982 # Now try to locate executable using which 35983 new_path=`$WHICH "$new_path" 2> /dev/null` 35984 # bat and cmd files are not always considered executable in cygwin causing which 35985 # to not find them 35986 if test "x$new_path" = x \ 35987 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 35988 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 35989 new_path=`$CYGPATH -u "$path"` 35990 fi 35991 if test "x$new_path" = x; then 35992 # Oops. Which didn't find the executable. 35993 # The splitting of arguments from the executable at a space might have been incorrect, 35994 # since paths with space are more likely in Windows. Give it another try with the whole 35995 # argument. 35996 path="$complete" 35997 arguments="EOL" 35998 new_path=`$CYGPATH -u "$path"` 35999 new_path=`$WHICH "$new_path" 2> /dev/null` 36000 # bat and cmd files are not always considered executable in cygwin causing which 36001 # to not find them 36002 if test "x$new_path" = x \ 36003 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 36004 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 36005 new_path=`$CYGPATH -u "$path"` 36006 fi 36007 if test "x$new_path" = x; then 36008 # It's still not found. Now this is an unrecoverable error. 36009 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CXXCPP, which resolves as \"$complete\", is not found." >&5 36010 $as_echo "$as_me: The path of CXXCPP, which resolves as \"$complete\", is not found." >&6;} 36011 has_space=`$ECHO "$complete" | $GREP " "` 36012 if test "x$has_space" != x; then 36013 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 36014 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 36015 fi 36016 as_fn_error $? "Cannot locate the the path of CXXCPP" "$LINENO" 5 36017 fi 36018 fi 36019 36020 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 36021 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 36022 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 36023 # "foo.exe" is OK but "foo" is an error. 36024 # 36025 # This test is therefore slightly more accurate than "test -f" to check for file presence. 36026 # It is also a way to make sure we got the proper file name for the real test later on. 36027 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 36028 if test "x$test_shortpath" = x; then 36029 # Short path failed, file does not exist as specified. 36030 # Try adding .exe or .cmd 36031 if test -f "${new_path}.exe"; then 36032 input_to_shortpath="${new_path}.exe" 36033 elif test -f "${new_path}.cmd"; then 36034 input_to_shortpath="${new_path}.cmd" 36035 else 36036 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CXXCPP, which resolves as \"$new_path\", is invalid." >&5 36037 $as_echo "$as_me: The path of CXXCPP, which resolves as \"$new_path\", is invalid." >&6;} 36038 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 36039 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 36040 as_fn_error $? "Cannot locate the the path of CXXCPP" "$LINENO" 5 36041 fi 36042 else 36043 input_to_shortpath="$new_path" 36044 fi 36045 36046 # Call helper function which possibly converts this using DOS-style short mode. 36047 # If so, the updated path is stored in $new_path. 36048 new_path="$input_to_shortpath" 36049 36050 input_path="$input_to_shortpath" 36051 # Check if we need to convert this using DOS-style short mode. If the path 36052 # contains just simple characters, use it. Otherwise (spaces, weird characters), 36053 # take no chances and rewrite it. 36054 # Note: m4 eats our [], so we need to use [ and ] instead. 36055 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 36056 if test "x$has_forbidden_chars" != x; then 36057 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 36058 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 36059 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 36060 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 36061 # Going to short mode and back again did indeed matter. Since short mode is 36062 # case insensitive, let's make it lowercase to improve readability. 36063 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 36064 # Now convert it back to Unix-style (cygpath) 36065 input_path=`$CYGPATH -u "$shortmode_path"` 36066 new_path="$input_path" 36067 fi 36068 fi 36069 36070 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 36071 if test "x$test_cygdrive_prefix" = x; then 36072 # As a simple fix, exclude /usr/bin since it's not a real path. 36073 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 36074 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 36075 # a path prefixed by /cygdrive for fixpath to work. 36076 new_path="$CYGWIN_ROOT_PATH$input_path" 36077 fi 36078 fi 36079 36080 # remove trailing .exe if any 36081 new_path="${new_path/%.exe/}" 36082 36083 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 36084 36085 # First separate the path from the arguments. This will split at the first 36086 # space. 36087 complete="$CXXCPP" 36088 path="${complete%% *}" 36089 tmp="$complete EOL" 36090 arguments="${tmp#* }" 36091 36092 # Input might be given as Windows format, start by converting to 36093 # unix format. 36094 new_path="$path" 36095 36096 windows_path="$new_path" 36097 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 36098 unix_path=`$CYGPATH -u "$windows_path"` 36099 new_path="$unix_path" 36100 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 36101 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 36102 new_path="$unix_path" 36103 fi 36104 36105 36106 # Now try to locate executable using which 36107 new_path=`$WHICH "$new_path" 2> /dev/null` 36108 36109 if test "x$new_path" = x; then 36110 # Oops. Which didn't find the executable. 36111 # The splitting of arguments from the executable at a space might have been incorrect, 36112 # since paths with space are more likely in Windows. Give it another try with the whole 36113 # argument. 36114 path="$complete" 36115 arguments="EOL" 36116 new_path="$path" 36117 36118 windows_path="$new_path" 36119 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 36120 unix_path=`$CYGPATH -u "$windows_path"` 36121 new_path="$unix_path" 36122 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 36123 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 36124 new_path="$unix_path" 36125 fi 36126 36127 36128 new_path=`$WHICH "$new_path" 2> /dev/null` 36129 # bat and cmd files are not always considered executable in MSYS causing which 36130 # to not find them 36131 if test "x$new_path" = x \ 36132 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 36133 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 36134 new_path="$path" 36135 36136 windows_path="$new_path" 36137 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 36138 unix_path=`$CYGPATH -u "$windows_path"` 36139 new_path="$unix_path" 36140 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 36141 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 36142 new_path="$unix_path" 36143 fi 36144 36145 fi 36146 36147 if test "x$new_path" = x; then 36148 # It's still not found. Now this is an unrecoverable error. 36149 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CXXCPP, which resolves as \"$complete\", is not found." >&5 36150 $as_echo "$as_me: The path of CXXCPP, which resolves as \"$complete\", is not found." >&6;} 36151 has_space=`$ECHO "$complete" | $GREP " "` 36152 if test "x$has_space" != x; then 36153 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 36154 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 36155 fi 36156 as_fn_error $? "Cannot locate the the path of CXXCPP" "$LINENO" 5 36157 fi 36158 fi 36159 36160 # Now new_path has a complete unix path to the binary 36161 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 36162 # Keep paths in /bin as-is, but remove trailing .exe if any 36163 new_path="${new_path/%.exe/}" 36164 # Do not save /bin paths to all_fixpath_prefixes! 36165 else 36166 # Not in mixed or Windows style, start by that. 36167 new_path=`cmd //c echo $new_path` 36168 36169 input_path="$new_path" 36170 # Check if we need to convert this using DOS-style short mode. If the path 36171 # contains just simple characters, use it. Otherwise (spaces, weird characters), 36172 # take no chances and rewrite it. 36173 # Note: m4 eats our [], so we need to use [ and ] instead. 36174 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 36175 if test "x$has_forbidden_chars" != x; then 36176 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 36177 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 36178 fi 36179 36180 # Output is in $new_path 36181 36182 windows_path="$new_path" 36183 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 36184 unix_path=`$CYGPATH -u "$windows_path"` 36185 new_path="$unix_path" 36186 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 36187 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 36188 new_path="$unix_path" 36189 fi 36190 36191 # remove trailing .exe if any 36192 new_path="${new_path/%.exe/}" 36193 36194 # Save the first 10 bytes of this path to the storage, so fixpath can work. 36195 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 36196 fi 36197 36198 else 36199 # We're on a unix platform. Hooray! :) 36200 # First separate the path from the arguments. This will split at the first 36201 # space. 36202 complete="$CXXCPP" 36203 path="${complete%% *}" 36204 tmp="$complete EOL" 36205 arguments="${tmp#* }" 36206 36207 # Cannot rely on the command "which" here since it doesn't always work. 36208 is_absolute_path=`$ECHO "$path" | $GREP ^/` 36209 if test -z "$is_absolute_path"; then 36210 # Path to executable is not absolute. Find it. 36211 IFS_save="$IFS" 36212 IFS=: 36213 for p in $PATH; do 36214 if test -f "$p/$path" && test -x "$p/$path"; then 36215 new_path="$p/$path" 36216 break 36217 fi 36218 done 36219 IFS="$IFS_save" 36220 else 36221 # This is an absolute path, we can use it without further modifications. 36222 new_path="$path" 36223 fi 36224 36225 if test "x$new_path" = x; then 36226 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CXXCPP, which resolves as \"$complete\", is not found." >&5 36227 $as_echo "$as_me: The path of CXXCPP, which resolves as \"$complete\", is not found." >&6;} 36228 has_space=`$ECHO "$complete" | $GREP " "` 36229 if test "x$has_space" != x; then 36230 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 36231 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 36232 fi 36233 as_fn_error $? "Cannot locate the the path of CXXCPP" "$LINENO" 5 36234 fi 36235 fi 36236 36237 # Now join together the path and the arguments once again 36238 if test "x$arguments" != xEOL; then 36239 new_complete="$new_path ${arguments% *}" 36240 else 36241 new_complete="$new_path" 36242 fi 36243 36244 if test "x$complete" != "x$new_complete"; then 36245 CXXCPP="$new_complete" 36246 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting CXXCPP to \"$new_complete\"" >&5 36247 $as_echo "$as_me: Rewriting CXXCPP to \"$new_complete\"" >&6;} 36248 fi 36249 fi 36250 36251 36252 # 36253 # Setup the linker (LD) 36254 # 36255 if test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 36256 # In the Microsoft toolchain we have a separate LD command "link". 36257 # Make sure we reject /usr/bin/link (as determined in CYGWIN_LINK), which is 36258 # a cygwin program for something completely different. 36259 # Extract the first word of "link", so it can be a program name with args. 36260 set dummy link; ac_word=$2 36261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 36262 $as_echo_n "checking for $ac_word... " >&6; } 36263 if ${ac_cv_prog_LD+:} false; then : 36264 $as_echo_n "(cached) " >&6 36265 else 36266 if test -n "$LD"; then 36267 ac_cv_prog_LD="$LD" # Let the user override the test. 36268 else 36269 ac_prog_rejected=no 36270 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 36271 for as_dir in $PATH 36272 do 36273 IFS=$as_save_IFS 36274 test -z "$as_dir" && as_dir=. 36275 for ac_exec_ext in '' $ac_executable_extensions; do 36276 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 36277 if test "$as_dir/$ac_word$ac_exec_ext" = "$CYGWIN_LINK"; then 36278 ac_prog_rejected=yes 36279 continue 36280 fi 36281 ac_cv_prog_LD="link" 36282 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 36283 break 2 36284 fi 36285 done 36286 done 36287 IFS=$as_save_IFS 36288 36289 if test $ac_prog_rejected = yes; then 36290 # We found a bogon in the path, so make sure we never use it. 36291 set dummy $ac_cv_prog_LD 36292 shift 36293 if test $# != 0; then 36294 # We chose a different compiler from the bogus one. 36295 # However, it has the same basename, so the bogon will be chosen 36296 # first if we set LD to just the basename; use the full file name. 36297 shift 36298 ac_cv_prog_LD="$as_dir/$ac_word${1+' '}$@" 36299 fi 36300 fi 36301 fi 36302 fi 36303 LD=$ac_cv_prog_LD 36304 if test -n "$LD"; then 36305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 36306 $as_echo "$LD" >&6; } 36307 else 36308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 36309 $as_echo "no" >&6; } 36310 fi 36311 36312 36313 36314 # Only process if variable expands to non-empty 36315 36316 if test "x$LD" != x; then 36317 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 36318 36319 # First separate the path from the arguments. This will split at the first 36320 # space. 36321 complete="$LD" 36322 path="${complete%% *}" 36323 tmp="$complete EOL" 36324 arguments="${tmp#* }" 36325 36326 # Input might be given as Windows format, start by converting to 36327 # unix format. 36328 new_path=`$CYGPATH -u "$path"` 36329 36330 # Now try to locate executable using which 36331 new_path=`$WHICH "$new_path" 2> /dev/null` 36332 # bat and cmd files are not always considered executable in cygwin causing which 36333 # to not find them 36334 if test "x$new_path" = x \ 36335 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 36336 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 36337 new_path=`$CYGPATH -u "$path"` 36338 fi 36339 if test "x$new_path" = x; then 36340 # Oops. Which didn't find the executable. 36341 # The splitting of arguments from the executable at a space might have been incorrect, 36342 # since paths with space are more likely in Windows. Give it another try with the whole 36343 # argument. 36344 path="$complete" 36345 arguments="EOL" 36346 new_path=`$CYGPATH -u "$path"` 36347 new_path=`$WHICH "$new_path" 2> /dev/null` 36348 # bat and cmd files are not always considered executable in cygwin causing which 36349 # to not find them 36350 if test "x$new_path" = x \ 36351 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 36352 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 36353 new_path=`$CYGPATH -u "$path"` 36354 fi 36355 if test "x$new_path" = x; then 36356 # It's still not found. Now this is an unrecoverable error. 36357 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of LD, which resolves as \"$complete\", is not found." >&5 36358 $as_echo "$as_me: The path of LD, which resolves as \"$complete\", is not found." >&6;} 36359 has_space=`$ECHO "$complete" | $GREP " "` 36360 if test "x$has_space" != x; then 36361 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 36362 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 36363 fi 36364 as_fn_error $? "Cannot locate the the path of LD" "$LINENO" 5 36365 fi 36366 fi 36367 36368 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 36369 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 36370 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 36371 # "foo.exe" is OK but "foo" is an error. 36372 # 36373 # This test is therefore slightly more accurate than "test -f" to check for file presence. 36374 # It is also a way to make sure we got the proper file name for the real test later on. 36375 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 36376 if test "x$test_shortpath" = x; then 36377 # Short path failed, file does not exist as specified. 36378 # Try adding .exe or .cmd 36379 if test -f "${new_path}.exe"; then 36380 input_to_shortpath="${new_path}.exe" 36381 elif test -f "${new_path}.cmd"; then 36382 input_to_shortpath="${new_path}.cmd" 36383 else 36384 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of LD, which resolves as \"$new_path\", is invalid." >&5 36385 $as_echo "$as_me: The path of LD, which resolves as \"$new_path\", is invalid." >&6;} 36386 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 36387 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 36388 as_fn_error $? "Cannot locate the the path of LD" "$LINENO" 5 36389 fi 36390 else 36391 input_to_shortpath="$new_path" 36392 fi 36393 36394 # Call helper function which possibly converts this using DOS-style short mode. 36395 # If so, the updated path is stored in $new_path. 36396 new_path="$input_to_shortpath" 36397 36398 input_path="$input_to_shortpath" 36399 # Check if we need to convert this using DOS-style short mode. If the path 36400 # contains just simple characters, use it. Otherwise (spaces, weird characters), 36401 # take no chances and rewrite it. 36402 # Note: m4 eats our [], so we need to use [ and ] instead. 36403 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 36404 if test "x$has_forbidden_chars" != x; then 36405 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 36406 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 36407 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 36408 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 36409 # Going to short mode and back again did indeed matter. Since short mode is 36410 # case insensitive, let's make it lowercase to improve readability. 36411 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 36412 # Now convert it back to Unix-style (cygpath) 36413 input_path=`$CYGPATH -u "$shortmode_path"` 36414 new_path="$input_path" 36415 fi 36416 fi 36417 36418 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 36419 if test "x$test_cygdrive_prefix" = x; then 36420 # As a simple fix, exclude /usr/bin since it's not a real path. 36421 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 36422 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 36423 # a path prefixed by /cygdrive for fixpath to work. 36424 new_path="$CYGWIN_ROOT_PATH$input_path" 36425 fi 36426 fi 36427 36428 # remove trailing .exe if any 36429 new_path="${new_path/%.exe/}" 36430 36431 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 36432 36433 # First separate the path from the arguments. This will split at the first 36434 # space. 36435 complete="$LD" 36436 path="${complete%% *}" 36437 tmp="$complete EOL" 36438 arguments="${tmp#* }" 36439 36440 # Input might be given as Windows format, start by converting to 36441 # unix format. 36442 new_path="$path" 36443 36444 windows_path="$new_path" 36445 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 36446 unix_path=`$CYGPATH -u "$windows_path"` 36447 new_path="$unix_path" 36448 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 36449 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 36450 new_path="$unix_path" 36451 fi 36452 36453 36454 # Now try to locate executable using which 36455 new_path=`$WHICH "$new_path" 2> /dev/null` 36456 36457 if test "x$new_path" = x; then 36458 # Oops. Which didn't find the executable. 36459 # The splitting of arguments from the executable at a space might have been incorrect, 36460 # since paths with space are more likely in Windows. Give it another try with the whole 36461 # argument. 36462 path="$complete" 36463 arguments="EOL" 36464 new_path="$path" 36465 36466 windows_path="$new_path" 36467 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 36468 unix_path=`$CYGPATH -u "$windows_path"` 36469 new_path="$unix_path" 36470 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 36471 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 36472 new_path="$unix_path" 36473 fi 36474 36475 36476 new_path=`$WHICH "$new_path" 2> /dev/null` 36477 # bat and cmd files are not always considered executable in MSYS causing which 36478 # to not find them 36479 if test "x$new_path" = x \ 36480 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 36481 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 36482 new_path="$path" 36483 36484 windows_path="$new_path" 36485 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 36486 unix_path=`$CYGPATH -u "$windows_path"` 36487 new_path="$unix_path" 36488 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 36489 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 36490 new_path="$unix_path" 36491 fi 36492 36493 fi 36494 36495 if test "x$new_path" = x; then 36496 # It's still not found. Now this is an unrecoverable error. 36497 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of LD, which resolves as \"$complete\", is not found." >&5 36498 $as_echo "$as_me: The path of LD, which resolves as \"$complete\", is not found." >&6;} 36499 has_space=`$ECHO "$complete" | $GREP " "` 36500 if test "x$has_space" != x; then 36501 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 36502 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 36503 fi 36504 as_fn_error $? "Cannot locate the the path of LD" "$LINENO" 5 36505 fi 36506 fi 36507 36508 # Now new_path has a complete unix path to the binary 36509 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 36510 # Keep paths in /bin as-is, but remove trailing .exe if any 36511 new_path="${new_path/%.exe/}" 36512 # Do not save /bin paths to all_fixpath_prefixes! 36513 else 36514 # Not in mixed or Windows style, start by that. 36515 new_path=`cmd //c echo $new_path` 36516 36517 input_path="$new_path" 36518 # Check if we need to convert this using DOS-style short mode. If the path 36519 # contains just simple characters, use it. Otherwise (spaces, weird characters), 36520 # take no chances and rewrite it. 36521 # Note: m4 eats our [], so we need to use [ and ] instead. 36522 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 36523 if test "x$has_forbidden_chars" != x; then 36524 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 36525 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 36526 fi 36527 36528 # Output is in $new_path 36529 36530 windows_path="$new_path" 36531 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 36532 unix_path=`$CYGPATH -u "$windows_path"` 36533 new_path="$unix_path" 36534 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 36535 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 36536 new_path="$unix_path" 36537 fi 36538 36539 # remove trailing .exe if any 36540 new_path="${new_path/%.exe/}" 36541 36542 # Save the first 10 bytes of this path to the storage, so fixpath can work. 36543 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 36544 fi 36545 36546 else 36547 # We're on a unix platform. Hooray! :) 36548 # First separate the path from the arguments. This will split at the first 36549 # space. 36550 complete="$LD" 36551 path="${complete%% *}" 36552 tmp="$complete EOL" 36553 arguments="${tmp#* }" 36554 36555 # Cannot rely on the command "which" here since it doesn't always work. 36556 is_absolute_path=`$ECHO "$path" | $GREP ^/` 36557 if test -z "$is_absolute_path"; then 36558 # Path to executable is not absolute. Find it. 36559 IFS_save="$IFS" 36560 IFS=: 36561 for p in $PATH; do 36562 if test -f "$p/$path" && test -x "$p/$path"; then 36563 new_path="$p/$path" 36564 break 36565 fi 36566 done 36567 IFS="$IFS_save" 36568 else 36569 # This is an absolute path, we can use it without further modifications. 36570 new_path="$path" 36571 fi 36572 36573 if test "x$new_path" = x; then 36574 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of LD, which resolves as \"$complete\", is not found." >&5 36575 $as_echo "$as_me: The path of LD, which resolves as \"$complete\", is not found." >&6;} 36576 has_space=`$ECHO "$complete" | $GREP " "` 36577 if test "x$has_space" != x; then 36578 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 36579 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 36580 fi 36581 as_fn_error $? "Cannot locate the the path of LD" "$LINENO" 5 36582 fi 36583 fi 36584 36585 # Now join together the path and the arguments once again 36586 if test "x$arguments" != xEOL; then 36587 new_complete="$new_path ${arguments% *}" 36588 else 36589 new_complete="$new_path" 36590 fi 36591 36592 if test "x$complete" != "x$new_complete"; then 36593 LD="$new_complete" 36594 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting LD to \"$new_complete\"" >&5 36595 $as_echo "$as_me: Rewriting LD to \"$new_complete\"" >&6;} 36596 fi 36597 fi 36598 36599 # Verify that we indeed succeeded with this trick. 36600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the found link.exe is actually the Visual Studio linker" >&5 36601 $as_echo_n "checking if the found link.exe is actually the Visual Studio linker... " >&6; } 36602 "$LD" --version > /dev/null 36603 if test $? -eq 0 ; then 36604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 36605 $as_echo "no" >&6; } 36606 as_fn_error $? "This is the Cygwin link tool. Please check your PATH and rerun configure." "$LINENO" 5 36607 else 36608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 36609 $as_echo "yes" >&6; } 36610 fi 36611 LDCXX="$LD" 36612 else 36613 # All other toolchains use the compiler to link. 36614 LD="$CC" 36615 LDCXX="$CXX" 36616 fi 36617 36618 # FIXME: it should be CXXLD, according to standard (cf CXXCPP) 36619 36620 36621 # 36622 # Setup the assembler (AS) 36623 # 36624 if test "x$OPENJDK_TARGET_OS" = xsolaris; then 36625 36626 36627 # Publish this variable in the help. 36628 36629 36630 if [ -z "${AS+x}" ]; then 36631 # The variable is not set by user, try to locate tool using the code snippet 36632 for ac_prog in as 36633 do 36634 # Extract the first word of "$ac_prog", so it can be a program name with args. 36635 set dummy $ac_prog; ac_word=$2 36636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 36637 $as_echo_n "checking for $ac_word... " >&6; } 36638 if ${ac_cv_path_AS+:} false; then : 36639 $as_echo_n "(cached) " >&6 36640 else 36641 case $AS in 36642 [\\/]* | ?:[\\/]*) 36643 ac_cv_path_AS="$AS" # Let the user override the test with a path. 36644 ;; 36645 *) 36646 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 36647 for as_dir in $PATH 36648 do 36649 IFS=$as_save_IFS 36650 test -z "$as_dir" && as_dir=. 36651 for ac_exec_ext in '' $ac_executable_extensions; do 36652 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 36653 ac_cv_path_AS="$as_dir/$ac_word$ac_exec_ext" 36654 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 36655 break 2 36656 fi 36657 done 36658 done 36659 IFS=$as_save_IFS 36660 36661 ;; 36662 esac 36663 fi 36664 AS=$ac_cv_path_AS 36665 if test -n "$AS"; then 36666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5 36667 $as_echo "$AS" >&6; } 36668 else 36669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 36670 $as_echo "no" >&6; } 36671 fi 36672 36673 36674 test -n "$AS" && break 36675 done 36676 36677 else 36678 # The variable is set, but is it from the command line or the environment? 36679 36680 # Try to remove the string !AS! from our list. 36681 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!AS!/} 36682 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 36683 # If it failed, the variable was not from the command line. Ignore it, 36684 # but warn the user (except for BASH, which is always set by the calling BASH). 36685 if test "xAS" != xBASH; then 36686 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of AS from the environment. Use command line variables instead." >&5 36687 $as_echo "$as_me: WARNING: Ignoring value of AS from the environment. Use command line variables instead." >&2;} 36688 fi 36689 # Try to locate tool using the code snippet 36690 for ac_prog in as 36691 do 36692 # Extract the first word of "$ac_prog", so it can be a program name with args. 36693 set dummy $ac_prog; ac_word=$2 36694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 36695 $as_echo_n "checking for $ac_word... " >&6; } 36696 if ${ac_cv_path_AS+:} false; then : 36697 $as_echo_n "(cached) " >&6 36698 else 36699 case $AS in 36700 [\\/]* | ?:[\\/]*) 36701 ac_cv_path_AS="$AS" # Let the user override the test with a path. 36702 ;; 36703 *) 36704 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 36705 for as_dir in $PATH 36706 do 36707 IFS=$as_save_IFS 36708 test -z "$as_dir" && as_dir=. 36709 for ac_exec_ext in '' $ac_executable_extensions; do 36710 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 36711 ac_cv_path_AS="$as_dir/$ac_word$ac_exec_ext" 36712 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 36713 break 2 36714 fi 36715 done 36716 done 36717 IFS=$as_save_IFS 36718 36719 ;; 36720 esac 36721 fi 36722 AS=$ac_cv_path_AS 36723 if test -n "$AS"; then 36724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5 36725 $as_echo "$AS" >&6; } 36726 else 36727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 36728 $as_echo "no" >&6; } 36729 fi 36730 36731 36732 test -n "$AS" && break 36733 done 36734 36735 else 36736 # If it succeeded, then it was overridden by the user. We will use it 36737 # for the tool. 36738 36739 # First remove it from the list of overridden variables, so we can test 36740 # for unknown variables in the end. 36741 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 36742 36743 # Check if we try to supply an empty value 36744 if test "x$AS" = x; then 36745 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool AS= (no value)" >&5 36746 $as_echo "$as_me: Setting user supplied tool AS= (no value)" >&6;} 36747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AS" >&5 36748 $as_echo_n "checking for AS... " >&6; } 36749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 36750 $as_echo "disabled" >&6; } 36751 else 36752 # Check if the provided tool contains a complete path. 36753 tool_specified="$AS" 36754 tool_basename="${tool_specified##*/}" 36755 if test "x$tool_basename" = "x$tool_specified"; then 36756 # A command without a complete path is provided, search $PATH. 36757 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool AS=$tool_basename" >&5 36758 $as_echo "$as_me: Will search for user supplied tool AS=$tool_basename" >&6;} 36759 # Extract the first word of "$tool_basename", so it can be a program name with args. 36760 set dummy $tool_basename; ac_word=$2 36761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 36762 $as_echo_n "checking for $ac_word... " >&6; } 36763 if ${ac_cv_path_AS+:} false; then : 36764 $as_echo_n "(cached) " >&6 36765 else 36766 case $AS in 36767 [\\/]* | ?:[\\/]*) 36768 ac_cv_path_AS="$AS" # Let the user override the test with a path. 36769 ;; 36770 *) 36771 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 36772 for as_dir in $PATH 36773 do 36774 IFS=$as_save_IFS 36775 test -z "$as_dir" && as_dir=. 36776 for ac_exec_ext in '' $ac_executable_extensions; do 36777 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 36778 ac_cv_path_AS="$as_dir/$ac_word$ac_exec_ext" 36779 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 36780 break 2 36781 fi 36782 done 36783 done 36784 IFS=$as_save_IFS 36785 36786 ;; 36787 esac 36788 fi 36789 AS=$ac_cv_path_AS 36790 if test -n "$AS"; then 36791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5 36792 $as_echo "$AS" >&6; } 36793 else 36794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 36795 $as_echo "no" >&6; } 36796 fi 36797 36798 36799 if test "x$AS" = x; then 36800 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 36801 fi 36802 else 36803 # Otherwise we believe it is a complete path. Use it as it is. 36804 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool AS=$tool_specified" >&5 36805 $as_echo "$as_me: Will use user supplied tool AS=$tool_specified" >&6;} 36806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AS" >&5 36807 $as_echo_n "checking for AS... " >&6; } 36808 if test ! -x "$tool_specified"; then 36809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 36810 $as_echo "not found" >&6; } 36811 as_fn_error $? "User supplied tool AS=$tool_specified does not exist or is not executable" "$LINENO" 5 36812 fi 36813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 36814 $as_echo "$tool_specified" >&6; } 36815 fi 36816 fi 36817 fi 36818 36819 fi 36820 36821 36822 36823 # Only process if variable expands to non-empty 36824 36825 if test "x$AS" != x; then 36826 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 36827 36828 # First separate the path from the arguments. This will split at the first 36829 # space. 36830 complete="$AS" 36831 path="${complete%% *}" 36832 tmp="$complete EOL" 36833 arguments="${tmp#* }" 36834 36835 # Input might be given as Windows format, start by converting to 36836 # unix format. 36837 new_path=`$CYGPATH -u "$path"` 36838 36839 # Now try to locate executable using which 36840 new_path=`$WHICH "$new_path" 2> /dev/null` 36841 # bat and cmd files are not always considered executable in cygwin causing which 36842 # to not find them 36843 if test "x$new_path" = x \ 36844 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 36845 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 36846 new_path=`$CYGPATH -u "$path"` 36847 fi 36848 if test "x$new_path" = x; then 36849 # Oops. Which didn't find the executable. 36850 # The splitting of arguments from the executable at a space might have been incorrect, 36851 # since paths with space are more likely in Windows. Give it another try with the whole 36852 # argument. 36853 path="$complete" 36854 arguments="EOL" 36855 new_path=`$CYGPATH -u "$path"` 36856 new_path=`$WHICH "$new_path" 2> /dev/null` 36857 # bat and cmd files are not always considered executable in cygwin causing which 36858 # to not find them 36859 if test "x$new_path" = x \ 36860 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 36861 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 36862 new_path=`$CYGPATH -u "$path"` 36863 fi 36864 if test "x$new_path" = x; then 36865 # It's still not found. Now this is an unrecoverable error. 36866 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of AS, which resolves as \"$complete\", is not found." >&5 36867 $as_echo "$as_me: The path of AS, which resolves as \"$complete\", is not found." >&6;} 36868 has_space=`$ECHO "$complete" | $GREP " "` 36869 if test "x$has_space" != x; then 36870 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 36871 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 36872 fi 36873 as_fn_error $? "Cannot locate the the path of AS" "$LINENO" 5 36874 fi 36875 fi 36876 36877 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 36878 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 36879 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 36880 # "foo.exe" is OK but "foo" is an error. 36881 # 36882 # This test is therefore slightly more accurate than "test -f" to check for file presence. 36883 # It is also a way to make sure we got the proper file name for the real test later on. 36884 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 36885 if test "x$test_shortpath" = x; then 36886 # Short path failed, file does not exist as specified. 36887 # Try adding .exe or .cmd 36888 if test -f "${new_path}.exe"; then 36889 input_to_shortpath="${new_path}.exe" 36890 elif test -f "${new_path}.cmd"; then 36891 input_to_shortpath="${new_path}.cmd" 36892 else 36893 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of AS, which resolves as \"$new_path\", is invalid." >&5 36894 $as_echo "$as_me: The path of AS, which resolves as \"$new_path\", is invalid." >&6;} 36895 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 36896 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 36897 as_fn_error $? "Cannot locate the the path of AS" "$LINENO" 5 36898 fi 36899 else 36900 input_to_shortpath="$new_path" 36901 fi 36902 36903 # Call helper function which possibly converts this using DOS-style short mode. 36904 # If so, the updated path is stored in $new_path. 36905 new_path="$input_to_shortpath" 36906 36907 input_path="$input_to_shortpath" 36908 # Check if we need to convert this using DOS-style short mode. If the path 36909 # contains just simple characters, use it. Otherwise (spaces, weird characters), 36910 # take no chances and rewrite it. 36911 # Note: m4 eats our [], so we need to use [ and ] instead. 36912 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 36913 if test "x$has_forbidden_chars" != x; then 36914 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 36915 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 36916 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 36917 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 36918 # Going to short mode and back again did indeed matter. Since short mode is 36919 # case insensitive, let's make it lowercase to improve readability. 36920 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 36921 # Now convert it back to Unix-style (cygpath) 36922 input_path=`$CYGPATH -u "$shortmode_path"` 36923 new_path="$input_path" 36924 fi 36925 fi 36926 36927 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 36928 if test "x$test_cygdrive_prefix" = x; then 36929 # As a simple fix, exclude /usr/bin since it's not a real path. 36930 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 36931 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 36932 # a path prefixed by /cygdrive for fixpath to work. 36933 new_path="$CYGWIN_ROOT_PATH$input_path" 36934 fi 36935 fi 36936 36937 # remove trailing .exe if any 36938 new_path="${new_path/%.exe/}" 36939 36940 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 36941 36942 # First separate the path from the arguments. This will split at the first 36943 # space. 36944 complete="$AS" 36945 path="${complete%% *}" 36946 tmp="$complete EOL" 36947 arguments="${tmp#* }" 36948 36949 # Input might be given as Windows format, start by converting to 36950 # unix format. 36951 new_path="$path" 36952 36953 windows_path="$new_path" 36954 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 36955 unix_path=`$CYGPATH -u "$windows_path"` 36956 new_path="$unix_path" 36957 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 36958 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 36959 new_path="$unix_path" 36960 fi 36961 36962 36963 # Now try to locate executable using which 36964 new_path=`$WHICH "$new_path" 2> /dev/null` 36965 36966 if test "x$new_path" = x; then 36967 # Oops. Which didn't find the executable. 36968 # The splitting of arguments from the executable at a space might have been incorrect, 36969 # since paths with space are more likely in Windows. Give it another try with the whole 36970 # argument. 36971 path="$complete" 36972 arguments="EOL" 36973 new_path="$path" 36974 36975 windows_path="$new_path" 36976 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 36977 unix_path=`$CYGPATH -u "$windows_path"` 36978 new_path="$unix_path" 36979 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 36980 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 36981 new_path="$unix_path" 36982 fi 36983 36984 36985 new_path=`$WHICH "$new_path" 2> /dev/null` 36986 # bat and cmd files are not always considered executable in MSYS causing which 36987 # to not find them 36988 if test "x$new_path" = x \ 36989 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 36990 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 36991 new_path="$path" 36992 36993 windows_path="$new_path" 36994 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 36995 unix_path=`$CYGPATH -u "$windows_path"` 36996 new_path="$unix_path" 36997 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 36998 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 36999 new_path="$unix_path" 37000 fi 37001 37002 fi 37003 37004 if test "x$new_path" = x; then 37005 # It's still not found. Now this is an unrecoverable error. 37006 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of AS, which resolves as \"$complete\", is not found." >&5 37007 $as_echo "$as_me: The path of AS, which resolves as \"$complete\", is not found." >&6;} 37008 has_space=`$ECHO "$complete" | $GREP " "` 37009 if test "x$has_space" != x; then 37010 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 37011 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 37012 fi 37013 as_fn_error $? "Cannot locate the the path of AS" "$LINENO" 5 37014 fi 37015 fi 37016 37017 # Now new_path has a complete unix path to the binary 37018 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 37019 # Keep paths in /bin as-is, but remove trailing .exe if any 37020 new_path="${new_path/%.exe/}" 37021 # Do not save /bin paths to all_fixpath_prefixes! 37022 else 37023 # Not in mixed or Windows style, start by that. 37024 new_path=`cmd //c echo $new_path` 37025 37026 input_path="$new_path" 37027 # Check if we need to convert this using DOS-style short mode. If the path 37028 # contains just simple characters, use it. Otherwise (spaces, weird characters), 37029 # take no chances and rewrite it. 37030 # Note: m4 eats our [], so we need to use [ and ] instead. 37031 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 37032 if test "x$has_forbidden_chars" != x; then 37033 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 37034 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 37035 fi 37036 37037 # Output is in $new_path 37038 37039 windows_path="$new_path" 37040 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 37041 unix_path=`$CYGPATH -u "$windows_path"` 37042 new_path="$unix_path" 37043 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 37044 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 37045 new_path="$unix_path" 37046 fi 37047 37048 # remove trailing .exe if any 37049 new_path="${new_path/%.exe/}" 37050 37051 # Save the first 10 bytes of this path to the storage, so fixpath can work. 37052 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 37053 fi 37054 37055 else 37056 # We're on a unix platform. Hooray! :) 37057 # First separate the path from the arguments. This will split at the first 37058 # space. 37059 complete="$AS" 37060 path="${complete%% *}" 37061 tmp="$complete EOL" 37062 arguments="${tmp#* }" 37063 37064 # Cannot rely on the command "which" here since it doesn't always work. 37065 is_absolute_path=`$ECHO "$path" | $GREP ^/` 37066 if test -z "$is_absolute_path"; then 37067 # Path to executable is not absolute. Find it. 37068 IFS_save="$IFS" 37069 IFS=: 37070 for p in $PATH; do 37071 if test -f "$p/$path" && test -x "$p/$path"; then 37072 new_path="$p/$path" 37073 break 37074 fi 37075 done 37076 IFS="$IFS_save" 37077 else 37078 # This is an absolute path, we can use it without further modifications. 37079 new_path="$path" 37080 fi 37081 37082 if test "x$new_path" = x; then 37083 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of AS, which resolves as \"$complete\", is not found." >&5 37084 $as_echo "$as_me: The path of AS, which resolves as \"$complete\", is not found." >&6;} 37085 has_space=`$ECHO "$complete" | $GREP " "` 37086 if test "x$has_space" != x; then 37087 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 37088 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 37089 fi 37090 as_fn_error $? "Cannot locate the the path of AS" "$LINENO" 5 37091 fi 37092 fi 37093 37094 # Now join together the path and the arguments once again 37095 if test "x$arguments" != xEOL; then 37096 new_complete="$new_path ${arguments% *}" 37097 else 37098 new_complete="$new_path" 37099 fi 37100 37101 if test "x$complete" != "x$new_complete"; then 37102 AS="$new_complete" 37103 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting AS to \"$new_complete\"" >&5 37104 $as_echo "$as_me: Rewriting AS to \"$new_complete\"" >&6;} 37105 fi 37106 fi 37107 37108 if test "x$AS" = x; then 37109 as_fn_error $? "Solaris assembler (as) is required. Please install via \"pkg install pkg:/developer/assembler\"." "$LINENO" 5 37110 fi 37111 else 37112 # FIXME: is this correct for microsoft? 37113 AS="$CC -c" 37114 fi 37115 37116 37117 # 37118 # Setup the archiver (AR) 37119 # 37120 if test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 37121 # The corresponding ar tool is lib.exe (used to create static libraries) 37122 # Extract the first word of "lib", so it can be a program name with args. 37123 set dummy lib; ac_word=$2 37124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 37125 $as_echo_n "checking for $ac_word... " >&6; } 37126 if ${ac_cv_prog_AR+:} false; then : 37127 $as_echo_n "(cached) " >&6 37128 else 37129 if test -n "$AR"; then 37130 ac_cv_prog_AR="$AR" # Let the user override the test. 37131 else 37132 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 37133 for as_dir in $PATH 37134 do 37135 IFS=$as_save_IFS 37136 test -z "$as_dir" && as_dir=. 37137 for ac_exec_ext in '' $ac_executable_extensions; do 37138 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 37139 ac_cv_prog_AR="lib" 37140 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 37141 break 2 37142 fi 37143 done 37144 done 37145 IFS=$as_save_IFS 37146 37147 fi 37148 fi 37149 AR=$ac_cv_prog_AR 37150 if test -n "$AR"; then 37151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 37152 $as_echo "$AR" >&6; } 37153 else 37154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 37155 $as_echo "no" >&6; } 37156 fi 37157 37158 37159 elif test "x$TOOLCHAIN_TYPE" = xgcc; then 37160 37161 37162 # Publish this variable in the help. 37163 37164 37165 if [ -z "${AR+x}" ]; then 37166 # The variable is not set by user, try to locate tool using the code snippet 37167 if test -n "$ac_tool_prefix"; then 37168 for ac_prog in ar gcc-ar 37169 do 37170 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 37171 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 37172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 37173 $as_echo_n "checking for $ac_word... " >&6; } 37174 if ${ac_cv_prog_AR+:} false; then : 37175 $as_echo_n "(cached) " >&6 37176 else 37177 if test -n "$AR"; then 37178 ac_cv_prog_AR="$AR" # Let the user override the test. 37179 else 37180 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 37181 for as_dir in $PATH 37182 do 37183 IFS=$as_save_IFS 37184 test -z "$as_dir" && as_dir=. 37185 for ac_exec_ext in '' $ac_executable_extensions; do 37186 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 37187 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 37188 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 37189 break 2 37190 fi 37191 done 37192 done 37193 IFS=$as_save_IFS 37194 37195 fi 37196 fi 37197 AR=$ac_cv_prog_AR 37198 if test -n "$AR"; then 37199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 37200 $as_echo "$AR" >&6; } 37201 else 37202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 37203 $as_echo "no" >&6; } 37204 fi 37205 37206 37207 test -n "$AR" && break 37208 done 37209 fi 37210 if test -z "$AR"; then 37211 ac_ct_AR=$AR 37212 for ac_prog in ar gcc-ar 37213 do 37214 # Extract the first word of "$ac_prog", so it can be a program name with args. 37215 set dummy $ac_prog; ac_word=$2 37216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 37217 $as_echo_n "checking for $ac_word... " >&6; } 37218 if ${ac_cv_prog_ac_ct_AR+:} false; then : 37219 $as_echo_n "(cached) " >&6 37220 else 37221 if test -n "$ac_ct_AR"; then 37222 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 37223 else 37224 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 37225 for as_dir in $PATH 37226 do 37227 IFS=$as_save_IFS 37228 test -z "$as_dir" && as_dir=. 37229 for ac_exec_ext in '' $ac_executable_extensions; do 37230 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 37231 ac_cv_prog_ac_ct_AR="$ac_prog" 37232 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 37233 break 2 37234 fi 37235 done 37236 done 37237 IFS=$as_save_IFS 37238 37239 fi 37240 fi 37241 ac_ct_AR=$ac_cv_prog_ac_ct_AR 37242 if test -n "$ac_ct_AR"; then 37243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 37244 $as_echo "$ac_ct_AR" >&6; } 37245 else 37246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 37247 $as_echo "no" >&6; } 37248 fi 37249 37250 37251 test -n "$ac_ct_AR" && break 37252 done 37253 37254 if test "x$ac_ct_AR" = x; then 37255 AR="" 37256 else 37257 case $cross_compiling:$ac_tool_warned in 37258 yes:) 37259 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 37260 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 37261 ac_tool_warned=yes ;; 37262 esac 37263 AR=$ac_ct_AR 37264 fi 37265 fi 37266 37267 else 37268 # The variable is set, but is it from the command line or the environment? 37269 37270 # Try to remove the string !AR! from our list. 37271 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!AR!/} 37272 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 37273 # If it failed, the variable was not from the command line. Ignore it, 37274 # but warn the user (except for BASH, which is always set by the calling BASH). 37275 if test "xAR" != xBASH; then 37276 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of AR from the environment. Use command line variables instead." >&5 37277 $as_echo "$as_me: WARNING: Ignoring value of AR from the environment. Use command line variables instead." >&2;} 37278 fi 37279 # Try to locate tool using the code snippet 37280 if test -n "$ac_tool_prefix"; then 37281 for ac_prog in ar gcc-ar 37282 do 37283 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 37284 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 37285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 37286 $as_echo_n "checking for $ac_word... " >&6; } 37287 if ${ac_cv_prog_AR+:} false; then : 37288 $as_echo_n "(cached) " >&6 37289 else 37290 if test -n "$AR"; then 37291 ac_cv_prog_AR="$AR" # Let the user override the test. 37292 else 37293 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 37294 for as_dir in $PATH 37295 do 37296 IFS=$as_save_IFS 37297 test -z "$as_dir" && as_dir=. 37298 for ac_exec_ext in '' $ac_executable_extensions; do 37299 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 37300 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 37301 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 37302 break 2 37303 fi 37304 done 37305 done 37306 IFS=$as_save_IFS 37307 37308 fi 37309 fi 37310 AR=$ac_cv_prog_AR 37311 if test -n "$AR"; then 37312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 37313 $as_echo "$AR" >&6; } 37314 else 37315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 37316 $as_echo "no" >&6; } 37317 fi 37318 37319 37320 test -n "$AR" && break 37321 done 37322 fi 37323 if test -z "$AR"; then 37324 ac_ct_AR=$AR 37325 for ac_prog in ar gcc-ar 37326 do 37327 # Extract the first word of "$ac_prog", so it can be a program name with args. 37328 set dummy $ac_prog; ac_word=$2 37329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 37330 $as_echo_n "checking for $ac_word... " >&6; } 37331 if ${ac_cv_prog_ac_ct_AR+:} false; then : 37332 $as_echo_n "(cached) " >&6 37333 else 37334 if test -n "$ac_ct_AR"; then 37335 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 37336 else 37337 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 37338 for as_dir in $PATH 37339 do 37340 IFS=$as_save_IFS 37341 test -z "$as_dir" && as_dir=. 37342 for ac_exec_ext in '' $ac_executable_extensions; do 37343 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 37344 ac_cv_prog_ac_ct_AR="$ac_prog" 37345 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 37346 break 2 37347 fi 37348 done 37349 done 37350 IFS=$as_save_IFS 37351 37352 fi 37353 fi 37354 ac_ct_AR=$ac_cv_prog_ac_ct_AR 37355 if test -n "$ac_ct_AR"; then 37356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 37357 $as_echo "$ac_ct_AR" >&6; } 37358 else 37359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 37360 $as_echo "no" >&6; } 37361 fi 37362 37363 37364 test -n "$ac_ct_AR" && break 37365 done 37366 37367 if test "x$ac_ct_AR" = x; then 37368 AR="" 37369 else 37370 case $cross_compiling:$ac_tool_warned in 37371 yes:) 37372 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 37373 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 37374 ac_tool_warned=yes ;; 37375 esac 37376 AR=$ac_ct_AR 37377 fi 37378 fi 37379 37380 else 37381 # If it succeeded, then it was overridden by the user. We will use it 37382 # for the tool. 37383 37384 # First remove it from the list of overridden variables, so we can test 37385 # for unknown variables in the end. 37386 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 37387 37388 # Check if we try to supply an empty value 37389 if test "x$AR" = x; then 37390 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool AR= (no value)" >&5 37391 $as_echo "$as_me: Setting user supplied tool AR= (no value)" >&6;} 37392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AR" >&5 37393 $as_echo_n "checking for AR... " >&6; } 37394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 37395 $as_echo "disabled" >&6; } 37396 else 37397 # Check if the provided tool contains a complete path. 37398 tool_specified="$AR" 37399 tool_basename="${tool_specified##*/}" 37400 if test "x$tool_basename" = "x$tool_specified"; then 37401 # A command without a complete path is provided, search $PATH. 37402 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool AR=$tool_basename" >&5 37403 $as_echo "$as_me: Will search for user supplied tool AR=$tool_basename" >&6;} 37404 # Extract the first word of "$tool_basename", so it can be a program name with args. 37405 set dummy $tool_basename; ac_word=$2 37406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 37407 $as_echo_n "checking for $ac_word... " >&6; } 37408 if ${ac_cv_path_AR+:} false; then : 37409 $as_echo_n "(cached) " >&6 37410 else 37411 case $AR in 37412 [\\/]* | ?:[\\/]*) 37413 ac_cv_path_AR="$AR" # Let the user override the test with a path. 37414 ;; 37415 *) 37416 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 37417 for as_dir in $PATH 37418 do 37419 IFS=$as_save_IFS 37420 test -z "$as_dir" && as_dir=. 37421 for ac_exec_ext in '' $ac_executable_extensions; do 37422 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 37423 ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext" 37424 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 37425 break 2 37426 fi 37427 done 37428 done 37429 IFS=$as_save_IFS 37430 37431 ;; 37432 esac 37433 fi 37434 AR=$ac_cv_path_AR 37435 if test -n "$AR"; then 37436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 37437 $as_echo "$AR" >&6; } 37438 else 37439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 37440 $as_echo "no" >&6; } 37441 fi 37442 37443 37444 if test "x$AR" = x; then 37445 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 37446 fi 37447 else 37448 # Otherwise we believe it is a complete path. Use it as it is. 37449 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool AR=$tool_specified" >&5 37450 $as_echo "$as_me: Will use user supplied tool AR=$tool_specified" >&6;} 37451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AR" >&5 37452 $as_echo_n "checking for AR... " >&6; } 37453 if test ! -x "$tool_specified"; then 37454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 37455 $as_echo "not found" >&6; } 37456 as_fn_error $? "User supplied tool AR=$tool_specified does not exist or is not executable" "$LINENO" 5 37457 fi 37458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 37459 $as_echo "$tool_specified" >&6; } 37460 fi 37461 fi 37462 fi 37463 37464 fi 37465 37466 37467 else 37468 37469 37470 # Publish this variable in the help. 37471 37472 37473 if [ -z "${AR+x}" ]; then 37474 # The variable is not set by user, try to locate tool using the code snippet 37475 if test -n "$ac_tool_prefix"; then 37476 for ac_prog in ar 37477 do 37478 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 37479 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 37480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 37481 $as_echo_n "checking for $ac_word... " >&6; } 37482 if ${ac_cv_prog_AR+:} false; then : 37483 $as_echo_n "(cached) " >&6 37484 else 37485 if test -n "$AR"; then 37486 ac_cv_prog_AR="$AR" # Let the user override the test. 37487 else 37488 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 37489 for as_dir in $PATH 37490 do 37491 IFS=$as_save_IFS 37492 test -z "$as_dir" && as_dir=. 37493 for ac_exec_ext in '' $ac_executable_extensions; do 37494 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 37495 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 37496 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 37497 break 2 37498 fi 37499 done 37500 done 37501 IFS=$as_save_IFS 37502 37503 fi 37504 fi 37505 AR=$ac_cv_prog_AR 37506 if test -n "$AR"; then 37507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 37508 $as_echo "$AR" >&6; } 37509 else 37510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 37511 $as_echo "no" >&6; } 37512 fi 37513 37514 37515 test -n "$AR" && break 37516 done 37517 fi 37518 if test -z "$AR"; then 37519 ac_ct_AR=$AR 37520 for ac_prog in ar 37521 do 37522 # Extract the first word of "$ac_prog", so it can be a program name with args. 37523 set dummy $ac_prog; ac_word=$2 37524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 37525 $as_echo_n "checking for $ac_word... " >&6; } 37526 if ${ac_cv_prog_ac_ct_AR+:} false; then : 37527 $as_echo_n "(cached) " >&6 37528 else 37529 if test -n "$ac_ct_AR"; then 37530 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 37531 else 37532 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 37533 for as_dir in $PATH 37534 do 37535 IFS=$as_save_IFS 37536 test -z "$as_dir" && as_dir=. 37537 for ac_exec_ext in '' $ac_executable_extensions; do 37538 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 37539 ac_cv_prog_ac_ct_AR="$ac_prog" 37540 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 37541 break 2 37542 fi 37543 done 37544 done 37545 IFS=$as_save_IFS 37546 37547 fi 37548 fi 37549 ac_ct_AR=$ac_cv_prog_ac_ct_AR 37550 if test -n "$ac_ct_AR"; then 37551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 37552 $as_echo "$ac_ct_AR" >&6; } 37553 else 37554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 37555 $as_echo "no" >&6; } 37556 fi 37557 37558 37559 test -n "$ac_ct_AR" && break 37560 done 37561 37562 if test "x$ac_ct_AR" = x; then 37563 AR="" 37564 else 37565 case $cross_compiling:$ac_tool_warned in 37566 yes:) 37567 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 37568 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 37569 ac_tool_warned=yes ;; 37570 esac 37571 AR=$ac_ct_AR 37572 fi 37573 fi 37574 37575 else 37576 # The variable is set, but is it from the command line or the environment? 37577 37578 # Try to remove the string !AR! from our list. 37579 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!AR!/} 37580 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 37581 # If it failed, the variable was not from the command line. Ignore it, 37582 # but warn the user (except for BASH, which is always set by the calling BASH). 37583 if test "xAR" != xBASH; then 37584 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of AR from the environment. Use command line variables instead." >&5 37585 $as_echo "$as_me: WARNING: Ignoring value of AR from the environment. Use command line variables instead." >&2;} 37586 fi 37587 # Try to locate tool using the code snippet 37588 if test -n "$ac_tool_prefix"; then 37589 for ac_prog in ar 37590 do 37591 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 37592 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 37593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 37594 $as_echo_n "checking for $ac_word... " >&6; } 37595 if ${ac_cv_prog_AR+:} false; then : 37596 $as_echo_n "(cached) " >&6 37597 else 37598 if test -n "$AR"; then 37599 ac_cv_prog_AR="$AR" # Let the user override the test. 37600 else 37601 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 37602 for as_dir in $PATH 37603 do 37604 IFS=$as_save_IFS 37605 test -z "$as_dir" && as_dir=. 37606 for ac_exec_ext in '' $ac_executable_extensions; do 37607 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 37608 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 37609 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 37610 break 2 37611 fi 37612 done 37613 done 37614 IFS=$as_save_IFS 37615 37616 fi 37617 fi 37618 AR=$ac_cv_prog_AR 37619 if test -n "$AR"; then 37620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 37621 $as_echo "$AR" >&6; } 37622 else 37623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 37624 $as_echo "no" >&6; } 37625 fi 37626 37627 37628 test -n "$AR" && break 37629 done 37630 fi 37631 if test -z "$AR"; then 37632 ac_ct_AR=$AR 37633 for ac_prog in ar 37634 do 37635 # Extract the first word of "$ac_prog", so it can be a program name with args. 37636 set dummy $ac_prog; ac_word=$2 37637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 37638 $as_echo_n "checking for $ac_word... " >&6; } 37639 if ${ac_cv_prog_ac_ct_AR+:} false; then : 37640 $as_echo_n "(cached) " >&6 37641 else 37642 if test -n "$ac_ct_AR"; then 37643 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 37644 else 37645 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 37646 for as_dir in $PATH 37647 do 37648 IFS=$as_save_IFS 37649 test -z "$as_dir" && as_dir=. 37650 for ac_exec_ext in '' $ac_executable_extensions; do 37651 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 37652 ac_cv_prog_ac_ct_AR="$ac_prog" 37653 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 37654 break 2 37655 fi 37656 done 37657 done 37658 IFS=$as_save_IFS 37659 37660 fi 37661 fi 37662 ac_ct_AR=$ac_cv_prog_ac_ct_AR 37663 if test -n "$ac_ct_AR"; then 37664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 37665 $as_echo "$ac_ct_AR" >&6; } 37666 else 37667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 37668 $as_echo "no" >&6; } 37669 fi 37670 37671 37672 test -n "$ac_ct_AR" && break 37673 done 37674 37675 if test "x$ac_ct_AR" = x; then 37676 AR="" 37677 else 37678 case $cross_compiling:$ac_tool_warned in 37679 yes:) 37680 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 37681 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 37682 ac_tool_warned=yes ;; 37683 esac 37684 AR=$ac_ct_AR 37685 fi 37686 fi 37687 37688 else 37689 # If it succeeded, then it was overridden by the user. We will use it 37690 # for the tool. 37691 37692 # First remove it from the list of overridden variables, so we can test 37693 # for unknown variables in the end. 37694 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 37695 37696 # Check if we try to supply an empty value 37697 if test "x$AR" = x; then 37698 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool AR= (no value)" >&5 37699 $as_echo "$as_me: Setting user supplied tool AR= (no value)" >&6;} 37700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AR" >&5 37701 $as_echo_n "checking for AR... " >&6; } 37702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 37703 $as_echo "disabled" >&6; } 37704 else 37705 # Check if the provided tool contains a complete path. 37706 tool_specified="$AR" 37707 tool_basename="${tool_specified##*/}" 37708 if test "x$tool_basename" = "x$tool_specified"; then 37709 # A command without a complete path is provided, search $PATH. 37710 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool AR=$tool_basename" >&5 37711 $as_echo "$as_me: Will search for user supplied tool AR=$tool_basename" >&6;} 37712 # Extract the first word of "$tool_basename", so it can be a program name with args. 37713 set dummy $tool_basename; ac_word=$2 37714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 37715 $as_echo_n "checking for $ac_word... " >&6; } 37716 if ${ac_cv_path_AR+:} false; then : 37717 $as_echo_n "(cached) " >&6 37718 else 37719 case $AR in 37720 [\\/]* | ?:[\\/]*) 37721 ac_cv_path_AR="$AR" # Let the user override the test with a path. 37722 ;; 37723 *) 37724 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 37725 for as_dir in $PATH 37726 do 37727 IFS=$as_save_IFS 37728 test -z "$as_dir" && as_dir=. 37729 for ac_exec_ext in '' $ac_executable_extensions; do 37730 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 37731 ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext" 37732 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 37733 break 2 37734 fi 37735 done 37736 done 37737 IFS=$as_save_IFS 37738 37739 ;; 37740 esac 37741 fi 37742 AR=$ac_cv_path_AR 37743 if test -n "$AR"; then 37744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 37745 $as_echo "$AR" >&6; } 37746 else 37747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 37748 $as_echo "no" >&6; } 37749 fi 37750 37751 37752 if test "x$AR" = x; then 37753 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 37754 fi 37755 else 37756 # Otherwise we believe it is a complete path. Use it as it is. 37757 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool AR=$tool_specified" >&5 37758 $as_echo "$as_me: Will use user supplied tool AR=$tool_specified" >&6;} 37759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AR" >&5 37760 $as_echo_n "checking for AR... " >&6; } 37761 if test ! -x "$tool_specified"; then 37762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 37763 $as_echo "not found" >&6; } 37764 as_fn_error $? "User supplied tool AR=$tool_specified does not exist or is not executable" "$LINENO" 5 37765 fi 37766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 37767 $as_echo "$tool_specified" >&6; } 37768 fi 37769 fi 37770 fi 37771 37772 fi 37773 37774 37775 fi 37776 37777 # Only process if variable expands to non-empty 37778 37779 if test "x$AR" != x; then 37780 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 37781 37782 # First separate the path from the arguments. This will split at the first 37783 # space. 37784 complete="$AR" 37785 path="${complete%% *}" 37786 tmp="$complete EOL" 37787 arguments="${tmp#* }" 37788 37789 # Input might be given as Windows format, start by converting to 37790 # unix format. 37791 new_path=`$CYGPATH -u "$path"` 37792 37793 # Now try to locate executable using which 37794 new_path=`$WHICH "$new_path" 2> /dev/null` 37795 # bat and cmd files are not always considered executable in cygwin causing which 37796 # to not find them 37797 if test "x$new_path" = x \ 37798 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 37799 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 37800 new_path=`$CYGPATH -u "$path"` 37801 fi 37802 if test "x$new_path" = x; then 37803 # Oops. Which didn't find the executable. 37804 # The splitting of arguments from the executable at a space might have been incorrect, 37805 # since paths with space are more likely in Windows. Give it another try with the whole 37806 # argument. 37807 path="$complete" 37808 arguments="EOL" 37809 new_path=`$CYGPATH -u "$path"` 37810 new_path=`$WHICH "$new_path" 2> /dev/null` 37811 # bat and cmd files are not always considered executable in cygwin causing which 37812 # to not find them 37813 if test "x$new_path" = x \ 37814 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 37815 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 37816 new_path=`$CYGPATH -u "$path"` 37817 fi 37818 if test "x$new_path" = x; then 37819 # It's still not found. Now this is an unrecoverable error. 37820 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of AR, which resolves as \"$complete\", is not found." >&5 37821 $as_echo "$as_me: The path of AR, which resolves as \"$complete\", is not found." >&6;} 37822 has_space=`$ECHO "$complete" | $GREP " "` 37823 if test "x$has_space" != x; then 37824 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 37825 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 37826 fi 37827 as_fn_error $? "Cannot locate the the path of AR" "$LINENO" 5 37828 fi 37829 fi 37830 37831 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 37832 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 37833 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 37834 # "foo.exe" is OK but "foo" is an error. 37835 # 37836 # This test is therefore slightly more accurate than "test -f" to check for file presence. 37837 # It is also a way to make sure we got the proper file name for the real test later on. 37838 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 37839 if test "x$test_shortpath" = x; then 37840 # Short path failed, file does not exist as specified. 37841 # Try adding .exe or .cmd 37842 if test -f "${new_path}.exe"; then 37843 input_to_shortpath="${new_path}.exe" 37844 elif test -f "${new_path}.cmd"; then 37845 input_to_shortpath="${new_path}.cmd" 37846 else 37847 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of AR, which resolves as \"$new_path\", is invalid." >&5 37848 $as_echo "$as_me: The path of AR, which resolves as \"$new_path\", is invalid." >&6;} 37849 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 37850 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 37851 as_fn_error $? "Cannot locate the the path of AR" "$LINENO" 5 37852 fi 37853 else 37854 input_to_shortpath="$new_path" 37855 fi 37856 37857 # Call helper function which possibly converts this using DOS-style short mode. 37858 # If so, the updated path is stored in $new_path. 37859 new_path="$input_to_shortpath" 37860 37861 input_path="$input_to_shortpath" 37862 # Check if we need to convert this using DOS-style short mode. If the path 37863 # contains just simple characters, use it. Otherwise (spaces, weird characters), 37864 # take no chances and rewrite it. 37865 # Note: m4 eats our [], so we need to use [ and ] instead. 37866 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 37867 if test "x$has_forbidden_chars" != x; then 37868 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 37869 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 37870 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 37871 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 37872 # Going to short mode and back again did indeed matter. Since short mode is 37873 # case insensitive, let's make it lowercase to improve readability. 37874 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 37875 # Now convert it back to Unix-style (cygpath) 37876 input_path=`$CYGPATH -u "$shortmode_path"` 37877 new_path="$input_path" 37878 fi 37879 fi 37880 37881 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 37882 if test "x$test_cygdrive_prefix" = x; then 37883 # As a simple fix, exclude /usr/bin since it's not a real path. 37884 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 37885 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 37886 # a path prefixed by /cygdrive for fixpath to work. 37887 new_path="$CYGWIN_ROOT_PATH$input_path" 37888 fi 37889 fi 37890 37891 # remove trailing .exe if any 37892 new_path="${new_path/%.exe/}" 37893 37894 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 37895 37896 # First separate the path from the arguments. This will split at the first 37897 # space. 37898 complete="$AR" 37899 path="${complete%% *}" 37900 tmp="$complete EOL" 37901 arguments="${tmp#* }" 37902 37903 # Input might be given as Windows format, start by converting to 37904 # unix format. 37905 new_path="$path" 37906 37907 windows_path="$new_path" 37908 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 37909 unix_path=`$CYGPATH -u "$windows_path"` 37910 new_path="$unix_path" 37911 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 37912 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 37913 new_path="$unix_path" 37914 fi 37915 37916 37917 # Now try to locate executable using which 37918 new_path=`$WHICH "$new_path" 2> /dev/null` 37919 37920 if test "x$new_path" = x; then 37921 # Oops. Which didn't find the executable. 37922 # The splitting of arguments from the executable at a space might have been incorrect, 37923 # since paths with space are more likely in Windows. Give it another try with the whole 37924 # argument. 37925 path="$complete" 37926 arguments="EOL" 37927 new_path="$path" 37928 37929 windows_path="$new_path" 37930 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 37931 unix_path=`$CYGPATH -u "$windows_path"` 37932 new_path="$unix_path" 37933 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 37934 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 37935 new_path="$unix_path" 37936 fi 37937 37938 37939 new_path=`$WHICH "$new_path" 2> /dev/null` 37940 # bat and cmd files are not always considered executable in MSYS causing which 37941 # to not find them 37942 if test "x$new_path" = x \ 37943 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 37944 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 37945 new_path="$path" 37946 37947 windows_path="$new_path" 37948 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 37949 unix_path=`$CYGPATH -u "$windows_path"` 37950 new_path="$unix_path" 37951 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 37952 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 37953 new_path="$unix_path" 37954 fi 37955 37956 fi 37957 37958 if test "x$new_path" = x; then 37959 # It's still not found. Now this is an unrecoverable error. 37960 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of AR, which resolves as \"$complete\", is not found." >&5 37961 $as_echo "$as_me: The path of AR, which resolves as \"$complete\", is not found." >&6;} 37962 has_space=`$ECHO "$complete" | $GREP " "` 37963 if test "x$has_space" != x; then 37964 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 37965 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 37966 fi 37967 as_fn_error $? "Cannot locate the the path of AR" "$LINENO" 5 37968 fi 37969 fi 37970 37971 # Now new_path has a complete unix path to the binary 37972 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 37973 # Keep paths in /bin as-is, but remove trailing .exe if any 37974 new_path="${new_path/%.exe/}" 37975 # Do not save /bin paths to all_fixpath_prefixes! 37976 else 37977 # Not in mixed or Windows style, start by that. 37978 new_path=`cmd //c echo $new_path` 37979 37980 input_path="$new_path" 37981 # Check if we need to convert this using DOS-style short mode. If the path 37982 # contains just simple characters, use it. Otherwise (spaces, weird characters), 37983 # take no chances and rewrite it. 37984 # Note: m4 eats our [], so we need to use [ and ] instead. 37985 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 37986 if test "x$has_forbidden_chars" != x; then 37987 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 37988 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 37989 fi 37990 37991 # Output is in $new_path 37992 37993 windows_path="$new_path" 37994 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 37995 unix_path=`$CYGPATH -u "$windows_path"` 37996 new_path="$unix_path" 37997 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 37998 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 37999 new_path="$unix_path" 38000 fi 38001 38002 # remove trailing .exe if any 38003 new_path="${new_path/%.exe/}" 38004 38005 # Save the first 10 bytes of this path to the storage, so fixpath can work. 38006 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 38007 fi 38008 38009 else 38010 # We're on a unix platform. Hooray! :) 38011 # First separate the path from the arguments. This will split at the first 38012 # space. 38013 complete="$AR" 38014 path="${complete%% *}" 38015 tmp="$complete EOL" 38016 arguments="${tmp#* }" 38017 38018 # Cannot rely on the command "which" here since it doesn't always work. 38019 is_absolute_path=`$ECHO "$path" | $GREP ^/` 38020 if test -z "$is_absolute_path"; then 38021 # Path to executable is not absolute. Find it. 38022 IFS_save="$IFS" 38023 IFS=: 38024 for p in $PATH; do 38025 if test -f "$p/$path" && test -x "$p/$path"; then 38026 new_path="$p/$path" 38027 break 38028 fi 38029 done 38030 IFS="$IFS_save" 38031 else 38032 # This is an absolute path, we can use it without further modifications. 38033 new_path="$path" 38034 fi 38035 38036 if test "x$new_path" = x; then 38037 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of AR, which resolves as \"$complete\", is not found." >&5 38038 $as_echo "$as_me: The path of AR, which resolves as \"$complete\", is not found." >&6;} 38039 has_space=`$ECHO "$complete" | $GREP " "` 38040 if test "x$has_space" != x; then 38041 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 38042 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 38043 fi 38044 as_fn_error $? "Cannot locate the the path of AR" "$LINENO" 5 38045 fi 38046 fi 38047 38048 # Now join together the path and the arguments once again 38049 if test "x$arguments" != xEOL; then 38050 new_complete="$new_path ${arguments% *}" 38051 else 38052 new_complete="$new_path" 38053 fi 38054 38055 if test "x$complete" != "x$new_complete"; then 38056 AR="$new_complete" 38057 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting AR to \"$new_complete\"" >&5 38058 $as_echo "$as_me: Rewriting AR to \"$new_complete\"" >&6;} 38059 fi 38060 fi 38061 38062 38063 38064 if test "x$OPENJDK_TARGET_OS" = "xmacosx"; then 38065 38066 38067 # Publish this variable in the help. 38068 38069 38070 if [ -z "${LIPO+x}" ]; then 38071 # The variable is not set by user, try to locate tool using the code snippet 38072 for ac_prog in lipo 38073 do 38074 # Extract the first word of "$ac_prog", so it can be a program name with args. 38075 set dummy $ac_prog; ac_word=$2 38076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 38077 $as_echo_n "checking for $ac_word... " >&6; } 38078 if ${ac_cv_path_LIPO+:} false; then : 38079 $as_echo_n "(cached) " >&6 38080 else 38081 case $LIPO in 38082 [\\/]* | ?:[\\/]*) 38083 ac_cv_path_LIPO="$LIPO" # Let the user override the test with a path. 38084 ;; 38085 *) 38086 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 38087 for as_dir in $PATH 38088 do 38089 IFS=$as_save_IFS 38090 test -z "$as_dir" && as_dir=. 38091 for ac_exec_ext in '' $ac_executable_extensions; do 38092 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 38093 ac_cv_path_LIPO="$as_dir/$ac_word$ac_exec_ext" 38094 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 38095 break 2 38096 fi 38097 done 38098 done 38099 IFS=$as_save_IFS 38100 38101 ;; 38102 esac 38103 fi 38104 LIPO=$ac_cv_path_LIPO 38105 if test -n "$LIPO"; then 38106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 38107 $as_echo "$LIPO" >&6; } 38108 else 38109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 38110 $as_echo "no" >&6; } 38111 fi 38112 38113 38114 test -n "$LIPO" && break 38115 done 38116 38117 else 38118 # The variable is set, but is it from the command line or the environment? 38119 38120 # Try to remove the string !LIPO! from our list. 38121 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!LIPO!/} 38122 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 38123 # If it failed, the variable was not from the command line. Ignore it, 38124 # but warn the user (except for BASH, which is always set by the calling BASH). 38125 if test "xLIPO" != xBASH; then 38126 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of LIPO from the environment. Use command line variables instead." >&5 38127 $as_echo "$as_me: WARNING: Ignoring value of LIPO from the environment. Use command line variables instead." >&2;} 38128 fi 38129 # Try to locate tool using the code snippet 38130 for ac_prog in lipo 38131 do 38132 # Extract the first word of "$ac_prog", so it can be a program name with args. 38133 set dummy $ac_prog; ac_word=$2 38134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 38135 $as_echo_n "checking for $ac_word... " >&6; } 38136 if ${ac_cv_path_LIPO+:} false; then : 38137 $as_echo_n "(cached) " >&6 38138 else 38139 case $LIPO in 38140 [\\/]* | ?:[\\/]*) 38141 ac_cv_path_LIPO="$LIPO" # Let the user override the test with a path. 38142 ;; 38143 *) 38144 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 38145 for as_dir in $PATH 38146 do 38147 IFS=$as_save_IFS 38148 test -z "$as_dir" && as_dir=. 38149 for ac_exec_ext in '' $ac_executable_extensions; do 38150 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 38151 ac_cv_path_LIPO="$as_dir/$ac_word$ac_exec_ext" 38152 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 38153 break 2 38154 fi 38155 done 38156 done 38157 IFS=$as_save_IFS 38158 38159 ;; 38160 esac 38161 fi 38162 LIPO=$ac_cv_path_LIPO 38163 if test -n "$LIPO"; then 38164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 38165 $as_echo "$LIPO" >&6; } 38166 else 38167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 38168 $as_echo "no" >&6; } 38169 fi 38170 38171 38172 test -n "$LIPO" && break 38173 done 38174 38175 else 38176 # If it succeeded, then it was overridden by the user. We will use it 38177 # for the tool. 38178 38179 # First remove it from the list of overridden variables, so we can test 38180 # for unknown variables in the end. 38181 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 38182 38183 # Check if we try to supply an empty value 38184 if test "x$LIPO" = x; then 38185 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool LIPO= (no value)" >&5 38186 $as_echo "$as_me: Setting user supplied tool LIPO= (no value)" >&6;} 38187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIPO" >&5 38188 $as_echo_n "checking for LIPO... " >&6; } 38189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 38190 $as_echo "disabled" >&6; } 38191 else 38192 # Check if the provided tool contains a complete path. 38193 tool_specified="$LIPO" 38194 tool_basename="${tool_specified##*/}" 38195 if test "x$tool_basename" = "x$tool_specified"; then 38196 # A command without a complete path is provided, search $PATH. 38197 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool LIPO=$tool_basename" >&5 38198 $as_echo "$as_me: Will search for user supplied tool LIPO=$tool_basename" >&6;} 38199 # Extract the first word of "$tool_basename", so it can be a program name with args. 38200 set dummy $tool_basename; ac_word=$2 38201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 38202 $as_echo_n "checking for $ac_word... " >&6; } 38203 if ${ac_cv_path_LIPO+:} false; then : 38204 $as_echo_n "(cached) " >&6 38205 else 38206 case $LIPO in 38207 [\\/]* | ?:[\\/]*) 38208 ac_cv_path_LIPO="$LIPO" # Let the user override the test with a path. 38209 ;; 38210 *) 38211 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 38212 for as_dir in $PATH 38213 do 38214 IFS=$as_save_IFS 38215 test -z "$as_dir" && as_dir=. 38216 for ac_exec_ext in '' $ac_executable_extensions; do 38217 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 38218 ac_cv_path_LIPO="$as_dir/$ac_word$ac_exec_ext" 38219 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 38220 break 2 38221 fi 38222 done 38223 done 38224 IFS=$as_save_IFS 38225 38226 ;; 38227 esac 38228 fi 38229 LIPO=$ac_cv_path_LIPO 38230 if test -n "$LIPO"; then 38231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 38232 $as_echo "$LIPO" >&6; } 38233 else 38234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 38235 $as_echo "no" >&6; } 38236 fi 38237 38238 38239 if test "x$LIPO" = x; then 38240 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 38241 fi 38242 else 38243 # Otherwise we believe it is a complete path. Use it as it is. 38244 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool LIPO=$tool_specified" >&5 38245 $as_echo "$as_me: Will use user supplied tool LIPO=$tool_specified" >&6;} 38246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIPO" >&5 38247 $as_echo_n "checking for LIPO... " >&6; } 38248 if test ! -x "$tool_specified"; then 38249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 38250 $as_echo "not found" >&6; } 38251 as_fn_error $? "User supplied tool LIPO=$tool_specified does not exist or is not executable" "$LINENO" 5 38252 fi 38253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 38254 $as_echo "$tool_specified" >&6; } 38255 fi 38256 fi 38257 fi 38258 38259 fi 38260 38261 38262 38263 # Only process if variable expands to non-empty 38264 38265 if test "x$LIPO" != x; then 38266 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 38267 38268 # First separate the path from the arguments. This will split at the first 38269 # space. 38270 complete="$LIPO" 38271 path="${complete%% *}" 38272 tmp="$complete EOL" 38273 arguments="${tmp#* }" 38274 38275 # Input might be given as Windows format, start by converting to 38276 # unix format. 38277 new_path=`$CYGPATH -u "$path"` 38278 38279 # Now try to locate executable using which 38280 new_path=`$WHICH "$new_path" 2> /dev/null` 38281 # bat and cmd files are not always considered executable in cygwin causing which 38282 # to not find them 38283 if test "x$new_path" = x \ 38284 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 38285 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 38286 new_path=`$CYGPATH -u "$path"` 38287 fi 38288 if test "x$new_path" = x; then 38289 # Oops. Which didn't find the executable. 38290 # The splitting of arguments from the executable at a space might have been incorrect, 38291 # since paths with space are more likely in Windows. Give it another try with the whole 38292 # argument. 38293 path="$complete" 38294 arguments="EOL" 38295 new_path=`$CYGPATH -u "$path"` 38296 new_path=`$WHICH "$new_path" 2> /dev/null` 38297 # bat and cmd files are not always considered executable in cygwin causing which 38298 # to not find them 38299 if test "x$new_path" = x \ 38300 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 38301 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 38302 new_path=`$CYGPATH -u "$path"` 38303 fi 38304 if test "x$new_path" = x; then 38305 # It's still not found. Now this is an unrecoverable error. 38306 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of LIPO, which resolves as \"$complete\", is not found." >&5 38307 $as_echo "$as_me: The path of LIPO, which resolves as \"$complete\", is not found." >&6;} 38308 has_space=`$ECHO "$complete" | $GREP " "` 38309 if test "x$has_space" != x; then 38310 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 38311 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 38312 fi 38313 as_fn_error $? "Cannot locate the the path of LIPO" "$LINENO" 5 38314 fi 38315 fi 38316 38317 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 38318 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 38319 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 38320 # "foo.exe" is OK but "foo" is an error. 38321 # 38322 # This test is therefore slightly more accurate than "test -f" to check for file presence. 38323 # It is also a way to make sure we got the proper file name for the real test later on. 38324 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 38325 if test "x$test_shortpath" = x; then 38326 # Short path failed, file does not exist as specified. 38327 # Try adding .exe or .cmd 38328 if test -f "${new_path}.exe"; then 38329 input_to_shortpath="${new_path}.exe" 38330 elif test -f "${new_path}.cmd"; then 38331 input_to_shortpath="${new_path}.cmd" 38332 else 38333 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of LIPO, which resolves as \"$new_path\", is invalid." >&5 38334 $as_echo "$as_me: The path of LIPO, which resolves as \"$new_path\", is invalid." >&6;} 38335 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 38336 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 38337 as_fn_error $? "Cannot locate the the path of LIPO" "$LINENO" 5 38338 fi 38339 else 38340 input_to_shortpath="$new_path" 38341 fi 38342 38343 # Call helper function which possibly converts this using DOS-style short mode. 38344 # If so, the updated path is stored in $new_path. 38345 new_path="$input_to_shortpath" 38346 38347 input_path="$input_to_shortpath" 38348 # Check if we need to convert this using DOS-style short mode. If the path 38349 # contains just simple characters, use it. Otherwise (spaces, weird characters), 38350 # take no chances and rewrite it. 38351 # Note: m4 eats our [], so we need to use [ and ] instead. 38352 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 38353 if test "x$has_forbidden_chars" != x; then 38354 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 38355 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 38356 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 38357 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 38358 # Going to short mode and back again did indeed matter. Since short mode is 38359 # case insensitive, let's make it lowercase to improve readability. 38360 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 38361 # Now convert it back to Unix-style (cygpath) 38362 input_path=`$CYGPATH -u "$shortmode_path"` 38363 new_path="$input_path" 38364 fi 38365 fi 38366 38367 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 38368 if test "x$test_cygdrive_prefix" = x; then 38369 # As a simple fix, exclude /usr/bin since it's not a real path. 38370 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 38371 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 38372 # a path prefixed by /cygdrive for fixpath to work. 38373 new_path="$CYGWIN_ROOT_PATH$input_path" 38374 fi 38375 fi 38376 38377 # remove trailing .exe if any 38378 new_path="${new_path/%.exe/}" 38379 38380 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 38381 38382 # First separate the path from the arguments. This will split at the first 38383 # space. 38384 complete="$LIPO" 38385 path="${complete%% *}" 38386 tmp="$complete EOL" 38387 arguments="${tmp#* }" 38388 38389 # Input might be given as Windows format, start by converting to 38390 # unix format. 38391 new_path="$path" 38392 38393 windows_path="$new_path" 38394 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 38395 unix_path=`$CYGPATH -u "$windows_path"` 38396 new_path="$unix_path" 38397 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 38398 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 38399 new_path="$unix_path" 38400 fi 38401 38402 38403 # Now try to locate executable using which 38404 new_path=`$WHICH "$new_path" 2> /dev/null` 38405 38406 if test "x$new_path" = x; then 38407 # Oops. Which didn't find the executable. 38408 # The splitting of arguments from the executable at a space might have been incorrect, 38409 # since paths with space are more likely in Windows. Give it another try with the whole 38410 # argument. 38411 path="$complete" 38412 arguments="EOL" 38413 new_path="$path" 38414 38415 windows_path="$new_path" 38416 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 38417 unix_path=`$CYGPATH -u "$windows_path"` 38418 new_path="$unix_path" 38419 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 38420 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 38421 new_path="$unix_path" 38422 fi 38423 38424 38425 new_path=`$WHICH "$new_path" 2> /dev/null` 38426 # bat and cmd files are not always considered executable in MSYS causing which 38427 # to not find them 38428 if test "x$new_path" = x \ 38429 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 38430 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 38431 new_path="$path" 38432 38433 windows_path="$new_path" 38434 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 38435 unix_path=`$CYGPATH -u "$windows_path"` 38436 new_path="$unix_path" 38437 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 38438 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 38439 new_path="$unix_path" 38440 fi 38441 38442 fi 38443 38444 if test "x$new_path" = x; then 38445 # It's still not found. Now this is an unrecoverable error. 38446 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of LIPO, which resolves as \"$complete\", is not found." >&5 38447 $as_echo "$as_me: The path of LIPO, which resolves as \"$complete\", is not found." >&6;} 38448 has_space=`$ECHO "$complete" | $GREP " "` 38449 if test "x$has_space" != x; then 38450 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 38451 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 38452 fi 38453 as_fn_error $? "Cannot locate the the path of LIPO" "$LINENO" 5 38454 fi 38455 fi 38456 38457 # Now new_path has a complete unix path to the binary 38458 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 38459 # Keep paths in /bin as-is, but remove trailing .exe if any 38460 new_path="${new_path/%.exe/}" 38461 # Do not save /bin paths to all_fixpath_prefixes! 38462 else 38463 # Not in mixed or Windows style, start by that. 38464 new_path=`cmd //c echo $new_path` 38465 38466 input_path="$new_path" 38467 # Check if we need to convert this using DOS-style short mode. If the path 38468 # contains just simple characters, use it. Otherwise (spaces, weird characters), 38469 # take no chances and rewrite it. 38470 # Note: m4 eats our [], so we need to use [ and ] instead. 38471 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 38472 if test "x$has_forbidden_chars" != x; then 38473 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 38474 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 38475 fi 38476 38477 # Output is in $new_path 38478 38479 windows_path="$new_path" 38480 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 38481 unix_path=`$CYGPATH -u "$windows_path"` 38482 new_path="$unix_path" 38483 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 38484 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 38485 new_path="$unix_path" 38486 fi 38487 38488 # remove trailing .exe if any 38489 new_path="${new_path/%.exe/}" 38490 38491 # Save the first 10 bytes of this path to the storage, so fixpath can work. 38492 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 38493 fi 38494 38495 else 38496 # We're on a unix platform. Hooray! :) 38497 # First separate the path from the arguments. This will split at the first 38498 # space. 38499 complete="$LIPO" 38500 path="${complete%% *}" 38501 tmp="$complete EOL" 38502 arguments="${tmp#* }" 38503 38504 # Cannot rely on the command "which" here since it doesn't always work. 38505 is_absolute_path=`$ECHO "$path" | $GREP ^/` 38506 if test -z "$is_absolute_path"; then 38507 # Path to executable is not absolute. Find it. 38508 IFS_save="$IFS" 38509 IFS=: 38510 for p in $PATH; do 38511 if test -f "$p/$path" && test -x "$p/$path"; then 38512 new_path="$p/$path" 38513 break 38514 fi 38515 done 38516 IFS="$IFS_save" 38517 else 38518 # This is an absolute path, we can use it without further modifications. 38519 new_path="$path" 38520 fi 38521 38522 if test "x$new_path" = x; then 38523 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of LIPO, which resolves as \"$complete\", is not found." >&5 38524 $as_echo "$as_me: The path of LIPO, which resolves as \"$complete\", is not found." >&6;} 38525 has_space=`$ECHO "$complete" | $GREP " "` 38526 if test "x$has_space" != x; then 38527 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 38528 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 38529 fi 38530 as_fn_error $? "Cannot locate the the path of LIPO" "$LINENO" 5 38531 fi 38532 fi 38533 38534 # Now join together the path and the arguments once again 38535 if test "x$arguments" != xEOL; then 38536 new_complete="$new_path ${arguments% *}" 38537 else 38538 new_complete="$new_path" 38539 fi 38540 38541 if test "x$complete" != "x$new_complete"; then 38542 LIPO="$new_complete" 38543 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting LIPO to \"$new_complete\"" >&5 38544 $as_echo "$as_me: Rewriting LIPO to \"$new_complete\"" >&6;} 38545 fi 38546 fi 38547 38548 fi 38549 38550 if test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 38551 # Extract the first word of "mt", so it can be a program name with args. 38552 set dummy mt; ac_word=$2 38553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 38554 $as_echo_n "checking for $ac_word... " >&6; } 38555 if ${ac_cv_prog_MT+:} false; then : 38556 $as_echo_n "(cached) " >&6 38557 else 38558 if test -n "$MT"; then 38559 ac_cv_prog_MT="$MT" # Let the user override the test. 38560 else 38561 ac_prog_rejected=no 38562 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 38563 for as_dir in $PATH 38564 do 38565 IFS=$as_save_IFS 38566 test -z "$as_dir" && as_dir=. 38567 for ac_exec_ext in '' $ac_executable_extensions; do 38568 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 38569 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/bin/mt"; then 38570 ac_prog_rejected=yes 38571 continue 38572 fi 38573 ac_cv_prog_MT="mt" 38574 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 38575 break 2 38576 fi 38577 done 38578 done 38579 IFS=$as_save_IFS 38580 38581 if test $ac_prog_rejected = yes; then 38582 # We found a bogon in the path, so make sure we never use it. 38583 set dummy $ac_cv_prog_MT 38584 shift 38585 if test $# != 0; then 38586 # We chose a different compiler from the bogus one. 38587 # However, it has the same basename, so the bogon will be chosen 38588 # first if we set MT to just the basename; use the full file name. 38589 shift 38590 ac_cv_prog_MT="$as_dir/$ac_word${1+' '}$@" 38591 fi 38592 fi 38593 fi 38594 fi 38595 MT=$ac_cv_prog_MT 38596 if test -n "$MT"; then 38597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MT" >&5 38598 $as_echo "$MT" >&6; } 38599 else 38600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 38601 $as_echo "no" >&6; } 38602 fi 38603 38604 38605 38606 # Only process if variable expands to non-empty 38607 38608 if test "x$MT" != x; then 38609 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 38610 38611 # First separate the path from the arguments. This will split at the first 38612 # space. 38613 complete="$MT" 38614 path="${complete%% *}" 38615 tmp="$complete EOL" 38616 arguments="${tmp#* }" 38617 38618 # Input might be given as Windows format, start by converting to 38619 # unix format. 38620 new_path=`$CYGPATH -u "$path"` 38621 38622 # Now try to locate executable using which 38623 new_path=`$WHICH "$new_path" 2> /dev/null` 38624 # bat and cmd files are not always considered executable in cygwin causing which 38625 # to not find them 38626 if test "x$new_path" = x \ 38627 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 38628 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 38629 new_path=`$CYGPATH -u "$path"` 38630 fi 38631 if test "x$new_path" = x; then 38632 # Oops. Which didn't find the executable. 38633 # The splitting of arguments from the executable at a space might have been incorrect, 38634 # since paths with space are more likely in Windows. Give it another try with the whole 38635 # argument. 38636 path="$complete" 38637 arguments="EOL" 38638 new_path=`$CYGPATH -u "$path"` 38639 new_path=`$WHICH "$new_path" 2> /dev/null` 38640 # bat and cmd files are not always considered executable in cygwin causing which 38641 # to not find them 38642 if test "x$new_path" = x \ 38643 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 38644 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 38645 new_path=`$CYGPATH -u "$path"` 38646 fi 38647 if test "x$new_path" = x; then 38648 # It's still not found. Now this is an unrecoverable error. 38649 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MT, which resolves as \"$complete\", is not found." >&5 38650 $as_echo "$as_me: The path of MT, which resolves as \"$complete\", is not found." >&6;} 38651 has_space=`$ECHO "$complete" | $GREP " "` 38652 if test "x$has_space" != x; then 38653 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 38654 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 38655 fi 38656 as_fn_error $? "Cannot locate the the path of MT" "$LINENO" 5 38657 fi 38658 fi 38659 38660 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 38661 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 38662 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 38663 # "foo.exe" is OK but "foo" is an error. 38664 # 38665 # This test is therefore slightly more accurate than "test -f" to check for file presence. 38666 # It is also a way to make sure we got the proper file name for the real test later on. 38667 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 38668 if test "x$test_shortpath" = x; then 38669 # Short path failed, file does not exist as specified. 38670 # Try adding .exe or .cmd 38671 if test -f "${new_path}.exe"; then 38672 input_to_shortpath="${new_path}.exe" 38673 elif test -f "${new_path}.cmd"; then 38674 input_to_shortpath="${new_path}.cmd" 38675 else 38676 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MT, which resolves as \"$new_path\", is invalid." >&5 38677 $as_echo "$as_me: The path of MT, which resolves as \"$new_path\", is invalid." >&6;} 38678 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 38679 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 38680 as_fn_error $? "Cannot locate the the path of MT" "$LINENO" 5 38681 fi 38682 else 38683 input_to_shortpath="$new_path" 38684 fi 38685 38686 # Call helper function which possibly converts this using DOS-style short mode. 38687 # If so, the updated path is stored in $new_path. 38688 new_path="$input_to_shortpath" 38689 38690 input_path="$input_to_shortpath" 38691 # Check if we need to convert this using DOS-style short mode. If the path 38692 # contains just simple characters, use it. Otherwise (spaces, weird characters), 38693 # take no chances and rewrite it. 38694 # Note: m4 eats our [], so we need to use [ and ] instead. 38695 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 38696 if test "x$has_forbidden_chars" != x; then 38697 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 38698 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 38699 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 38700 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 38701 # Going to short mode and back again did indeed matter. Since short mode is 38702 # case insensitive, let's make it lowercase to improve readability. 38703 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 38704 # Now convert it back to Unix-style (cygpath) 38705 input_path=`$CYGPATH -u "$shortmode_path"` 38706 new_path="$input_path" 38707 fi 38708 fi 38709 38710 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 38711 if test "x$test_cygdrive_prefix" = x; then 38712 # As a simple fix, exclude /usr/bin since it's not a real path. 38713 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 38714 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 38715 # a path prefixed by /cygdrive for fixpath to work. 38716 new_path="$CYGWIN_ROOT_PATH$input_path" 38717 fi 38718 fi 38719 38720 # remove trailing .exe if any 38721 new_path="${new_path/%.exe/}" 38722 38723 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 38724 38725 # First separate the path from the arguments. This will split at the first 38726 # space. 38727 complete="$MT" 38728 path="${complete%% *}" 38729 tmp="$complete EOL" 38730 arguments="${tmp#* }" 38731 38732 # Input might be given as Windows format, start by converting to 38733 # unix format. 38734 new_path="$path" 38735 38736 windows_path="$new_path" 38737 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 38738 unix_path=`$CYGPATH -u "$windows_path"` 38739 new_path="$unix_path" 38740 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 38741 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 38742 new_path="$unix_path" 38743 fi 38744 38745 38746 # Now try to locate executable using which 38747 new_path=`$WHICH "$new_path" 2> /dev/null` 38748 38749 if test "x$new_path" = x; then 38750 # Oops. Which didn't find the executable. 38751 # The splitting of arguments from the executable at a space might have been incorrect, 38752 # since paths with space are more likely in Windows. Give it another try with the whole 38753 # argument. 38754 path="$complete" 38755 arguments="EOL" 38756 new_path="$path" 38757 38758 windows_path="$new_path" 38759 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 38760 unix_path=`$CYGPATH -u "$windows_path"` 38761 new_path="$unix_path" 38762 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 38763 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 38764 new_path="$unix_path" 38765 fi 38766 38767 38768 new_path=`$WHICH "$new_path" 2> /dev/null` 38769 # bat and cmd files are not always considered executable in MSYS causing which 38770 # to not find them 38771 if test "x$new_path" = x \ 38772 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 38773 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 38774 new_path="$path" 38775 38776 windows_path="$new_path" 38777 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 38778 unix_path=`$CYGPATH -u "$windows_path"` 38779 new_path="$unix_path" 38780 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 38781 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 38782 new_path="$unix_path" 38783 fi 38784 38785 fi 38786 38787 if test "x$new_path" = x; then 38788 # It's still not found. Now this is an unrecoverable error. 38789 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MT, which resolves as \"$complete\", is not found." >&5 38790 $as_echo "$as_me: The path of MT, which resolves as \"$complete\", is not found." >&6;} 38791 has_space=`$ECHO "$complete" | $GREP " "` 38792 if test "x$has_space" != x; then 38793 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 38794 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 38795 fi 38796 as_fn_error $? "Cannot locate the the path of MT" "$LINENO" 5 38797 fi 38798 fi 38799 38800 # Now new_path has a complete unix path to the binary 38801 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 38802 # Keep paths in /bin as-is, but remove trailing .exe if any 38803 new_path="${new_path/%.exe/}" 38804 # Do not save /bin paths to all_fixpath_prefixes! 38805 else 38806 # Not in mixed or Windows style, start by that. 38807 new_path=`cmd //c echo $new_path` 38808 38809 input_path="$new_path" 38810 # Check if we need to convert this using DOS-style short mode. If the path 38811 # contains just simple characters, use it. Otherwise (spaces, weird characters), 38812 # take no chances and rewrite it. 38813 # Note: m4 eats our [], so we need to use [ and ] instead. 38814 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 38815 if test "x$has_forbidden_chars" != x; then 38816 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 38817 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 38818 fi 38819 38820 # Output is in $new_path 38821 38822 windows_path="$new_path" 38823 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 38824 unix_path=`$CYGPATH -u "$windows_path"` 38825 new_path="$unix_path" 38826 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 38827 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 38828 new_path="$unix_path" 38829 fi 38830 38831 # remove trailing .exe if any 38832 new_path="${new_path/%.exe/}" 38833 38834 # Save the first 10 bytes of this path to the storage, so fixpath can work. 38835 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 38836 fi 38837 38838 else 38839 # We're on a unix platform. Hooray! :) 38840 # First separate the path from the arguments. This will split at the first 38841 # space. 38842 complete="$MT" 38843 path="${complete%% *}" 38844 tmp="$complete EOL" 38845 arguments="${tmp#* }" 38846 38847 # Cannot rely on the command "which" here since it doesn't always work. 38848 is_absolute_path=`$ECHO "$path" | $GREP ^/` 38849 if test -z "$is_absolute_path"; then 38850 # Path to executable is not absolute. Find it. 38851 IFS_save="$IFS" 38852 IFS=: 38853 for p in $PATH; do 38854 if test -f "$p/$path" && test -x "$p/$path"; then 38855 new_path="$p/$path" 38856 break 38857 fi 38858 done 38859 IFS="$IFS_save" 38860 else 38861 # This is an absolute path, we can use it without further modifications. 38862 new_path="$path" 38863 fi 38864 38865 if test "x$new_path" = x; then 38866 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MT, which resolves as \"$complete\", is not found." >&5 38867 $as_echo "$as_me: The path of MT, which resolves as \"$complete\", is not found." >&6;} 38868 has_space=`$ECHO "$complete" | $GREP " "` 38869 if test "x$has_space" != x; then 38870 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 38871 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 38872 fi 38873 as_fn_error $? "Cannot locate the the path of MT" "$LINENO" 5 38874 fi 38875 fi 38876 38877 # Now join together the path and the arguments once again 38878 if test "x$arguments" != xEOL; then 38879 new_complete="$new_path ${arguments% *}" 38880 else 38881 new_complete="$new_path" 38882 fi 38883 38884 if test "x$complete" != "x$new_complete"; then 38885 MT="$new_complete" 38886 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MT to \"$new_complete\"" >&5 38887 $as_echo "$as_me: Rewriting MT to \"$new_complete\"" >&6;} 38888 fi 38889 fi 38890 38891 # Setup the resource compiler (RC) 38892 # Extract the first word of "rc", so it can be a program name with args. 38893 set dummy rc; ac_word=$2 38894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 38895 $as_echo_n "checking for $ac_word... " >&6; } 38896 if ${ac_cv_prog_RC+:} false; then : 38897 $as_echo_n "(cached) " >&6 38898 else 38899 if test -n "$RC"; then 38900 ac_cv_prog_RC="$RC" # Let the user override the test. 38901 else 38902 ac_prog_rejected=no 38903 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 38904 for as_dir in $PATH 38905 do 38906 IFS=$as_save_IFS 38907 test -z "$as_dir" && as_dir=. 38908 for ac_exec_ext in '' $ac_executable_extensions; do 38909 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 38910 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/bin/rc"; then 38911 ac_prog_rejected=yes 38912 continue 38913 fi 38914 ac_cv_prog_RC="rc" 38915 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 38916 break 2 38917 fi 38918 done 38919 done 38920 IFS=$as_save_IFS 38921 38922 if test $ac_prog_rejected = yes; then 38923 # We found a bogon in the path, so make sure we never use it. 38924 set dummy $ac_cv_prog_RC 38925 shift 38926 if test $# != 0; then 38927 # We chose a different compiler from the bogus one. 38928 # However, it has the same basename, so the bogon will be chosen 38929 # first if we set RC to just the basename; use the full file name. 38930 shift 38931 ac_cv_prog_RC="$as_dir/$ac_word${1+' '}$@" 38932 fi 38933 fi 38934 fi 38935 fi 38936 RC=$ac_cv_prog_RC 38937 if test -n "$RC"; then 38938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RC" >&5 38939 $as_echo "$RC" >&6; } 38940 else 38941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 38942 $as_echo "no" >&6; } 38943 fi 38944 38945 38946 38947 # Only process if variable expands to non-empty 38948 38949 if test "x$RC" != x; then 38950 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 38951 38952 # First separate the path from the arguments. This will split at the first 38953 # space. 38954 complete="$RC" 38955 path="${complete%% *}" 38956 tmp="$complete EOL" 38957 arguments="${tmp#* }" 38958 38959 # Input might be given as Windows format, start by converting to 38960 # unix format. 38961 new_path=`$CYGPATH -u "$path"` 38962 38963 # Now try to locate executable using which 38964 new_path=`$WHICH "$new_path" 2> /dev/null` 38965 # bat and cmd files are not always considered executable in cygwin causing which 38966 # to not find them 38967 if test "x$new_path" = x \ 38968 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 38969 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 38970 new_path=`$CYGPATH -u "$path"` 38971 fi 38972 if test "x$new_path" = x; then 38973 # Oops. Which didn't find the executable. 38974 # The splitting of arguments from the executable at a space might have been incorrect, 38975 # since paths with space are more likely in Windows. Give it another try with the whole 38976 # argument. 38977 path="$complete" 38978 arguments="EOL" 38979 new_path=`$CYGPATH -u "$path"` 38980 new_path=`$WHICH "$new_path" 2> /dev/null` 38981 # bat and cmd files are not always considered executable in cygwin causing which 38982 # to not find them 38983 if test "x$new_path" = x \ 38984 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 38985 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 38986 new_path=`$CYGPATH -u "$path"` 38987 fi 38988 if test "x$new_path" = x; then 38989 # It's still not found. Now this is an unrecoverable error. 38990 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of RC, which resolves as \"$complete\", is not found." >&5 38991 $as_echo "$as_me: The path of RC, which resolves as \"$complete\", is not found." >&6;} 38992 has_space=`$ECHO "$complete" | $GREP " "` 38993 if test "x$has_space" != x; then 38994 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 38995 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 38996 fi 38997 as_fn_error $? "Cannot locate the the path of RC" "$LINENO" 5 38998 fi 38999 fi 39000 39001 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 39002 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 39003 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 39004 # "foo.exe" is OK but "foo" is an error. 39005 # 39006 # This test is therefore slightly more accurate than "test -f" to check for file presence. 39007 # It is also a way to make sure we got the proper file name for the real test later on. 39008 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 39009 if test "x$test_shortpath" = x; then 39010 # Short path failed, file does not exist as specified. 39011 # Try adding .exe or .cmd 39012 if test -f "${new_path}.exe"; then 39013 input_to_shortpath="${new_path}.exe" 39014 elif test -f "${new_path}.cmd"; then 39015 input_to_shortpath="${new_path}.cmd" 39016 else 39017 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of RC, which resolves as \"$new_path\", is invalid." >&5 39018 $as_echo "$as_me: The path of RC, which resolves as \"$new_path\", is invalid." >&6;} 39019 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 39020 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 39021 as_fn_error $? "Cannot locate the the path of RC" "$LINENO" 5 39022 fi 39023 else 39024 input_to_shortpath="$new_path" 39025 fi 39026 39027 # Call helper function which possibly converts this using DOS-style short mode. 39028 # If so, the updated path is stored in $new_path. 39029 new_path="$input_to_shortpath" 39030 39031 input_path="$input_to_shortpath" 39032 # Check if we need to convert this using DOS-style short mode. If the path 39033 # contains just simple characters, use it. Otherwise (spaces, weird characters), 39034 # take no chances and rewrite it. 39035 # Note: m4 eats our [], so we need to use [ and ] instead. 39036 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 39037 if test "x$has_forbidden_chars" != x; then 39038 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 39039 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 39040 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 39041 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 39042 # Going to short mode and back again did indeed matter. Since short mode is 39043 # case insensitive, let's make it lowercase to improve readability. 39044 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 39045 # Now convert it back to Unix-style (cygpath) 39046 input_path=`$CYGPATH -u "$shortmode_path"` 39047 new_path="$input_path" 39048 fi 39049 fi 39050 39051 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 39052 if test "x$test_cygdrive_prefix" = x; then 39053 # As a simple fix, exclude /usr/bin since it's not a real path. 39054 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 39055 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 39056 # a path prefixed by /cygdrive for fixpath to work. 39057 new_path="$CYGWIN_ROOT_PATH$input_path" 39058 fi 39059 fi 39060 39061 # remove trailing .exe if any 39062 new_path="${new_path/%.exe/}" 39063 39064 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 39065 39066 # First separate the path from the arguments. This will split at the first 39067 # space. 39068 complete="$RC" 39069 path="${complete%% *}" 39070 tmp="$complete EOL" 39071 arguments="${tmp#* }" 39072 39073 # Input might be given as Windows format, start by converting to 39074 # unix format. 39075 new_path="$path" 39076 39077 windows_path="$new_path" 39078 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 39079 unix_path=`$CYGPATH -u "$windows_path"` 39080 new_path="$unix_path" 39081 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 39082 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 39083 new_path="$unix_path" 39084 fi 39085 39086 39087 # Now try to locate executable using which 39088 new_path=`$WHICH "$new_path" 2> /dev/null` 39089 39090 if test "x$new_path" = x; then 39091 # Oops. Which didn't find the executable. 39092 # The splitting of arguments from the executable at a space might have been incorrect, 39093 # since paths with space are more likely in Windows. Give it another try with the whole 39094 # argument. 39095 path="$complete" 39096 arguments="EOL" 39097 new_path="$path" 39098 39099 windows_path="$new_path" 39100 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 39101 unix_path=`$CYGPATH -u "$windows_path"` 39102 new_path="$unix_path" 39103 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 39104 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 39105 new_path="$unix_path" 39106 fi 39107 39108 39109 new_path=`$WHICH "$new_path" 2> /dev/null` 39110 # bat and cmd files are not always considered executable in MSYS causing which 39111 # to not find them 39112 if test "x$new_path" = x \ 39113 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 39114 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 39115 new_path="$path" 39116 39117 windows_path="$new_path" 39118 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 39119 unix_path=`$CYGPATH -u "$windows_path"` 39120 new_path="$unix_path" 39121 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 39122 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 39123 new_path="$unix_path" 39124 fi 39125 39126 fi 39127 39128 if test "x$new_path" = x; then 39129 # It's still not found. Now this is an unrecoverable error. 39130 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of RC, which resolves as \"$complete\", is not found." >&5 39131 $as_echo "$as_me: The path of RC, which resolves as \"$complete\", is not found." >&6;} 39132 has_space=`$ECHO "$complete" | $GREP " "` 39133 if test "x$has_space" != x; then 39134 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 39135 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 39136 fi 39137 as_fn_error $? "Cannot locate the the path of RC" "$LINENO" 5 39138 fi 39139 fi 39140 39141 # Now new_path has a complete unix path to the binary 39142 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 39143 # Keep paths in /bin as-is, but remove trailing .exe if any 39144 new_path="${new_path/%.exe/}" 39145 # Do not save /bin paths to all_fixpath_prefixes! 39146 else 39147 # Not in mixed or Windows style, start by that. 39148 new_path=`cmd //c echo $new_path` 39149 39150 input_path="$new_path" 39151 # Check if we need to convert this using DOS-style short mode. If the path 39152 # contains just simple characters, use it. Otherwise (spaces, weird characters), 39153 # take no chances and rewrite it. 39154 # Note: m4 eats our [], so we need to use [ and ] instead. 39155 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 39156 if test "x$has_forbidden_chars" != x; then 39157 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 39158 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 39159 fi 39160 39161 # Output is in $new_path 39162 39163 windows_path="$new_path" 39164 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 39165 unix_path=`$CYGPATH -u "$windows_path"` 39166 new_path="$unix_path" 39167 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 39168 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 39169 new_path="$unix_path" 39170 fi 39171 39172 # remove trailing .exe if any 39173 new_path="${new_path/%.exe/}" 39174 39175 # Save the first 10 bytes of this path to the storage, so fixpath can work. 39176 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 39177 fi 39178 39179 else 39180 # We're on a unix platform. Hooray! :) 39181 # First separate the path from the arguments. This will split at the first 39182 # space. 39183 complete="$RC" 39184 path="${complete%% *}" 39185 tmp="$complete EOL" 39186 arguments="${tmp#* }" 39187 39188 # Cannot rely on the command "which" here since it doesn't always work. 39189 is_absolute_path=`$ECHO "$path" | $GREP ^/` 39190 if test -z "$is_absolute_path"; then 39191 # Path to executable is not absolute. Find it. 39192 IFS_save="$IFS" 39193 IFS=: 39194 for p in $PATH; do 39195 if test -f "$p/$path" && test -x "$p/$path"; then 39196 new_path="$p/$path" 39197 break 39198 fi 39199 done 39200 IFS="$IFS_save" 39201 else 39202 # This is an absolute path, we can use it without further modifications. 39203 new_path="$path" 39204 fi 39205 39206 if test "x$new_path" = x; then 39207 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of RC, which resolves as \"$complete\", is not found." >&5 39208 $as_echo "$as_me: The path of RC, which resolves as \"$complete\", is not found." >&6;} 39209 has_space=`$ECHO "$complete" | $GREP " "` 39210 if test "x$has_space" != x; then 39211 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 39212 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 39213 fi 39214 as_fn_error $? "Cannot locate the the path of RC" "$LINENO" 5 39215 fi 39216 fi 39217 39218 # Now join together the path and the arguments once again 39219 if test "x$arguments" != xEOL; then 39220 new_complete="$new_path ${arguments% *}" 39221 else 39222 new_complete="$new_path" 39223 fi 39224 39225 if test "x$complete" != "x$new_complete"; then 39226 RC="$new_complete" 39227 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting RC to \"$new_complete\"" >&5 39228 $as_echo "$as_me: Rewriting RC to \"$new_complete\"" >&6;} 39229 fi 39230 fi 39231 39232 # Extract the first word of "dumpbin", so it can be a program name with args. 39233 set dummy dumpbin; ac_word=$2 39234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 39235 $as_echo_n "checking for $ac_word... " >&6; } 39236 if ${ac_cv_prog_DUMPBIN+:} false; then : 39237 $as_echo_n "(cached) " >&6 39238 else 39239 if test -n "$DUMPBIN"; then 39240 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 39241 else 39242 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 39243 for as_dir in $PATH 39244 do 39245 IFS=$as_save_IFS 39246 test -z "$as_dir" && as_dir=. 39247 for ac_exec_ext in '' $ac_executable_extensions; do 39248 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 39249 ac_cv_prog_DUMPBIN="dumpbin" 39250 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 39251 break 2 39252 fi 39253 done 39254 done 39255 IFS=$as_save_IFS 39256 39257 fi 39258 fi 39259 DUMPBIN=$ac_cv_prog_DUMPBIN 39260 if test -n "$DUMPBIN"; then 39261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 39262 $as_echo "$DUMPBIN" >&6; } 39263 else 39264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 39265 $as_echo "no" >&6; } 39266 fi 39267 39268 39269 39270 # Only process if variable expands to non-empty 39271 39272 if test "x$DUMPBIN" != x; then 39273 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 39274 39275 # First separate the path from the arguments. This will split at the first 39276 # space. 39277 complete="$DUMPBIN" 39278 path="${complete%% *}" 39279 tmp="$complete EOL" 39280 arguments="${tmp#* }" 39281 39282 # Input might be given as Windows format, start by converting to 39283 # unix format. 39284 new_path=`$CYGPATH -u "$path"` 39285 39286 # Now try to locate executable using which 39287 new_path=`$WHICH "$new_path" 2> /dev/null` 39288 # bat and cmd files are not always considered executable in cygwin causing which 39289 # to not find them 39290 if test "x$new_path" = x \ 39291 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 39292 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 39293 new_path=`$CYGPATH -u "$path"` 39294 fi 39295 if test "x$new_path" = x; then 39296 # Oops. Which didn't find the executable. 39297 # The splitting of arguments from the executable at a space might have been incorrect, 39298 # since paths with space are more likely in Windows. Give it another try with the whole 39299 # argument. 39300 path="$complete" 39301 arguments="EOL" 39302 new_path=`$CYGPATH -u "$path"` 39303 new_path=`$WHICH "$new_path" 2> /dev/null` 39304 # bat and cmd files are not always considered executable in cygwin causing which 39305 # to not find them 39306 if test "x$new_path" = x \ 39307 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 39308 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 39309 new_path=`$CYGPATH -u "$path"` 39310 fi 39311 if test "x$new_path" = x; then 39312 # It's still not found. Now this is an unrecoverable error. 39313 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of DUMPBIN, which resolves as \"$complete\", is not found." >&5 39314 $as_echo "$as_me: The path of DUMPBIN, which resolves as \"$complete\", is not found." >&6;} 39315 has_space=`$ECHO "$complete" | $GREP " "` 39316 if test "x$has_space" != x; then 39317 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 39318 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 39319 fi 39320 as_fn_error $? "Cannot locate the the path of DUMPBIN" "$LINENO" 5 39321 fi 39322 fi 39323 39324 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 39325 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 39326 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 39327 # "foo.exe" is OK but "foo" is an error. 39328 # 39329 # This test is therefore slightly more accurate than "test -f" to check for file presence. 39330 # It is also a way to make sure we got the proper file name for the real test later on. 39331 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 39332 if test "x$test_shortpath" = x; then 39333 # Short path failed, file does not exist as specified. 39334 # Try adding .exe or .cmd 39335 if test -f "${new_path}.exe"; then 39336 input_to_shortpath="${new_path}.exe" 39337 elif test -f "${new_path}.cmd"; then 39338 input_to_shortpath="${new_path}.cmd" 39339 else 39340 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of DUMPBIN, which resolves as \"$new_path\", is invalid." >&5 39341 $as_echo "$as_me: The path of DUMPBIN, which resolves as \"$new_path\", is invalid." >&6;} 39342 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 39343 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 39344 as_fn_error $? "Cannot locate the the path of DUMPBIN" "$LINENO" 5 39345 fi 39346 else 39347 input_to_shortpath="$new_path" 39348 fi 39349 39350 # Call helper function which possibly converts this using DOS-style short mode. 39351 # If so, the updated path is stored in $new_path. 39352 new_path="$input_to_shortpath" 39353 39354 input_path="$input_to_shortpath" 39355 # Check if we need to convert this using DOS-style short mode. If the path 39356 # contains just simple characters, use it. Otherwise (spaces, weird characters), 39357 # take no chances and rewrite it. 39358 # Note: m4 eats our [], so we need to use [ and ] instead. 39359 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 39360 if test "x$has_forbidden_chars" != x; then 39361 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 39362 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 39363 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 39364 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 39365 # Going to short mode and back again did indeed matter. Since short mode is 39366 # case insensitive, let's make it lowercase to improve readability. 39367 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 39368 # Now convert it back to Unix-style (cygpath) 39369 input_path=`$CYGPATH -u "$shortmode_path"` 39370 new_path="$input_path" 39371 fi 39372 fi 39373 39374 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 39375 if test "x$test_cygdrive_prefix" = x; then 39376 # As a simple fix, exclude /usr/bin since it's not a real path. 39377 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 39378 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 39379 # a path prefixed by /cygdrive for fixpath to work. 39380 new_path="$CYGWIN_ROOT_PATH$input_path" 39381 fi 39382 fi 39383 39384 # remove trailing .exe if any 39385 new_path="${new_path/%.exe/}" 39386 39387 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 39388 39389 # First separate the path from the arguments. This will split at the first 39390 # space. 39391 complete="$DUMPBIN" 39392 path="${complete%% *}" 39393 tmp="$complete EOL" 39394 arguments="${tmp#* }" 39395 39396 # Input might be given as Windows format, start by converting to 39397 # unix format. 39398 new_path="$path" 39399 39400 windows_path="$new_path" 39401 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 39402 unix_path=`$CYGPATH -u "$windows_path"` 39403 new_path="$unix_path" 39404 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 39405 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 39406 new_path="$unix_path" 39407 fi 39408 39409 39410 # Now try to locate executable using which 39411 new_path=`$WHICH "$new_path" 2> /dev/null` 39412 39413 if test "x$new_path" = x; then 39414 # Oops. Which didn't find the executable. 39415 # The splitting of arguments from the executable at a space might have been incorrect, 39416 # since paths with space are more likely in Windows. Give it another try with the whole 39417 # argument. 39418 path="$complete" 39419 arguments="EOL" 39420 new_path="$path" 39421 39422 windows_path="$new_path" 39423 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 39424 unix_path=`$CYGPATH -u "$windows_path"` 39425 new_path="$unix_path" 39426 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 39427 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 39428 new_path="$unix_path" 39429 fi 39430 39431 39432 new_path=`$WHICH "$new_path" 2> /dev/null` 39433 # bat and cmd files are not always considered executable in MSYS causing which 39434 # to not find them 39435 if test "x$new_path" = x \ 39436 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 39437 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 39438 new_path="$path" 39439 39440 windows_path="$new_path" 39441 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 39442 unix_path=`$CYGPATH -u "$windows_path"` 39443 new_path="$unix_path" 39444 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 39445 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 39446 new_path="$unix_path" 39447 fi 39448 39449 fi 39450 39451 if test "x$new_path" = x; then 39452 # It's still not found. Now this is an unrecoverable error. 39453 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of DUMPBIN, which resolves as \"$complete\", is not found." >&5 39454 $as_echo "$as_me: The path of DUMPBIN, which resolves as \"$complete\", is not found." >&6;} 39455 has_space=`$ECHO "$complete" | $GREP " "` 39456 if test "x$has_space" != x; then 39457 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 39458 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 39459 fi 39460 as_fn_error $? "Cannot locate the the path of DUMPBIN" "$LINENO" 5 39461 fi 39462 fi 39463 39464 # Now new_path has a complete unix path to the binary 39465 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 39466 # Keep paths in /bin as-is, but remove trailing .exe if any 39467 new_path="${new_path/%.exe/}" 39468 # Do not save /bin paths to all_fixpath_prefixes! 39469 else 39470 # Not in mixed or Windows style, start by that. 39471 new_path=`cmd //c echo $new_path` 39472 39473 input_path="$new_path" 39474 # Check if we need to convert this using DOS-style short mode. If the path 39475 # contains just simple characters, use it. Otherwise (spaces, weird characters), 39476 # take no chances and rewrite it. 39477 # Note: m4 eats our [], so we need to use [ and ] instead. 39478 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 39479 if test "x$has_forbidden_chars" != x; then 39480 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 39481 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 39482 fi 39483 39484 # Output is in $new_path 39485 39486 windows_path="$new_path" 39487 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 39488 unix_path=`$CYGPATH -u "$windows_path"` 39489 new_path="$unix_path" 39490 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 39491 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 39492 new_path="$unix_path" 39493 fi 39494 39495 # remove trailing .exe if any 39496 new_path="${new_path/%.exe/}" 39497 39498 # Save the first 10 bytes of this path to the storage, so fixpath can work. 39499 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 39500 fi 39501 39502 else 39503 # We're on a unix platform. Hooray! :) 39504 # First separate the path from the arguments. This will split at the first 39505 # space. 39506 complete="$DUMPBIN" 39507 path="${complete%% *}" 39508 tmp="$complete EOL" 39509 arguments="${tmp#* }" 39510 39511 # Cannot rely on the command "which" here since it doesn't always work. 39512 is_absolute_path=`$ECHO "$path" | $GREP ^/` 39513 if test -z "$is_absolute_path"; then 39514 # Path to executable is not absolute. Find it. 39515 IFS_save="$IFS" 39516 IFS=: 39517 for p in $PATH; do 39518 if test -f "$p/$path" && test -x "$p/$path"; then 39519 new_path="$p/$path" 39520 break 39521 fi 39522 done 39523 IFS="$IFS_save" 39524 else 39525 # This is an absolute path, we can use it without further modifications. 39526 new_path="$path" 39527 fi 39528 39529 if test "x$new_path" = x; then 39530 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of DUMPBIN, which resolves as \"$complete\", is not found." >&5 39531 $as_echo "$as_me: The path of DUMPBIN, which resolves as \"$complete\", is not found." >&6;} 39532 has_space=`$ECHO "$complete" | $GREP " "` 39533 if test "x$has_space" != x; then 39534 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 39535 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 39536 fi 39537 as_fn_error $? "Cannot locate the the path of DUMPBIN" "$LINENO" 5 39538 fi 39539 fi 39540 39541 # Now join together the path and the arguments once again 39542 if test "x$arguments" != xEOL; then 39543 new_complete="$new_path ${arguments% *}" 39544 else 39545 new_complete="$new_path" 39546 fi 39547 39548 if test "x$complete" != "x$new_complete"; then 39549 DUMPBIN="$new_complete" 39550 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting DUMPBIN to \"$new_complete\"" >&5 39551 $as_echo "$as_me: Rewriting DUMPBIN to \"$new_complete\"" >&6;} 39552 fi 39553 fi 39554 39555 # We need to check for 'msbuild.exe' because at the place where we expect to 39556 # find 'msbuild.exe' there's also a directory called 'msbuild' and configure 39557 # won't find the 'msbuild.exe' executable in that case (and the 39558 # 'ac_executable_extensions' is unusable due to performance reasons). 39559 # Notice that we intentionally don't fix up the path to MSBUILD because we 39560 # will call it in a DOS shell during freetype detection on Windows (see 39561 # 'LIB_SETUP_FREETYPE' in "libraries.m4" 39562 # Extract the first word of "msbuild.exe", so it can be a program name with args. 39563 set dummy msbuild.exe; ac_word=$2 39564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 39565 $as_echo_n "checking for $ac_word... " >&6; } 39566 if ${ac_cv_prog_MSBUILD+:} false; then : 39567 $as_echo_n "(cached) " >&6 39568 else 39569 if test -n "$MSBUILD"; then 39570 ac_cv_prog_MSBUILD="$MSBUILD" # Let the user override the test. 39571 else 39572 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 39573 for as_dir in $PATH 39574 do 39575 IFS=$as_save_IFS 39576 test -z "$as_dir" && as_dir=. 39577 for ac_exec_ext in '' $ac_executable_extensions; do 39578 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 39579 ac_cv_prog_MSBUILD="msbuild.exe" 39580 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 39581 break 2 39582 fi 39583 done 39584 done 39585 IFS=$as_save_IFS 39586 39587 fi 39588 fi 39589 MSBUILD=$ac_cv_prog_MSBUILD 39590 if test -n "$MSBUILD"; then 39591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSBUILD" >&5 39592 $as_echo "$MSBUILD" >&6; } 39593 else 39594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 39595 $as_echo "no" >&6; } 39596 fi 39597 39598 39599 fi 39600 39601 if test "x$OPENJDK_TARGET_OS" = xsolaris; then 39602 39603 39604 # Publish this variable in the help. 39605 39606 39607 if [ -z "${STRIP+x}" ]; then 39608 # The variable is not set by user, try to locate tool using the code snippet 39609 for ac_prog in strip 39610 do 39611 # Extract the first word of "$ac_prog", so it can be a program name with args. 39612 set dummy $ac_prog; ac_word=$2 39613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 39614 $as_echo_n "checking for $ac_word... " >&6; } 39615 if ${ac_cv_path_STRIP+:} false; then : 39616 $as_echo_n "(cached) " >&6 39617 else 39618 case $STRIP in 39619 [\\/]* | ?:[\\/]*) 39620 ac_cv_path_STRIP="$STRIP" # Let the user override the test with a path. 39621 ;; 39622 *) 39623 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 39624 for as_dir in $PATH 39625 do 39626 IFS=$as_save_IFS 39627 test -z "$as_dir" && as_dir=. 39628 for ac_exec_ext in '' $ac_executable_extensions; do 39629 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 39630 ac_cv_path_STRIP="$as_dir/$ac_word$ac_exec_ext" 39631 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 39632 break 2 39633 fi 39634 done 39635 done 39636 IFS=$as_save_IFS 39637 39638 ;; 39639 esac 39640 fi 39641 STRIP=$ac_cv_path_STRIP 39642 if test -n "$STRIP"; then 39643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 39644 $as_echo "$STRIP" >&6; } 39645 else 39646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 39647 $as_echo "no" >&6; } 39648 fi 39649 39650 39651 test -n "$STRIP" && break 39652 done 39653 39654 else 39655 # The variable is set, but is it from the command line or the environment? 39656 39657 # Try to remove the string !STRIP! from our list. 39658 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!STRIP!/} 39659 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 39660 # If it failed, the variable was not from the command line. Ignore it, 39661 # but warn the user (except for BASH, which is always set by the calling BASH). 39662 if test "xSTRIP" != xBASH; then 39663 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of STRIP from the environment. Use command line variables instead." >&5 39664 $as_echo "$as_me: WARNING: Ignoring value of STRIP from the environment. Use command line variables instead." >&2;} 39665 fi 39666 # Try to locate tool using the code snippet 39667 for ac_prog in strip 39668 do 39669 # Extract the first word of "$ac_prog", so it can be a program name with args. 39670 set dummy $ac_prog; ac_word=$2 39671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 39672 $as_echo_n "checking for $ac_word... " >&6; } 39673 if ${ac_cv_path_STRIP+:} false; then : 39674 $as_echo_n "(cached) " >&6 39675 else 39676 case $STRIP in 39677 [\\/]* | ?:[\\/]*) 39678 ac_cv_path_STRIP="$STRIP" # Let the user override the test with a path. 39679 ;; 39680 *) 39681 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 39682 for as_dir in $PATH 39683 do 39684 IFS=$as_save_IFS 39685 test -z "$as_dir" && as_dir=. 39686 for ac_exec_ext in '' $ac_executable_extensions; do 39687 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 39688 ac_cv_path_STRIP="$as_dir/$ac_word$ac_exec_ext" 39689 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 39690 break 2 39691 fi 39692 done 39693 done 39694 IFS=$as_save_IFS 39695 39696 ;; 39697 esac 39698 fi 39699 STRIP=$ac_cv_path_STRIP 39700 if test -n "$STRIP"; then 39701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 39702 $as_echo "$STRIP" >&6; } 39703 else 39704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 39705 $as_echo "no" >&6; } 39706 fi 39707 39708 39709 test -n "$STRIP" && break 39710 done 39711 39712 else 39713 # If it succeeded, then it was overridden by the user. We will use it 39714 # for the tool. 39715 39716 # First remove it from the list of overridden variables, so we can test 39717 # for unknown variables in the end. 39718 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 39719 39720 # Check if we try to supply an empty value 39721 if test "x$STRIP" = x; then 39722 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool STRIP= (no value)" >&5 39723 $as_echo "$as_me: Setting user supplied tool STRIP= (no value)" >&6;} 39724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for STRIP" >&5 39725 $as_echo_n "checking for STRIP... " >&6; } 39726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 39727 $as_echo "disabled" >&6; } 39728 else 39729 # Check if the provided tool contains a complete path. 39730 tool_specified="$STRIP" 39731 tool_basename="${tool_specified##*/}" 39732 if test "x$tool_basename" = "x$tool_specified"; then 39733 # A command without a complete path is provided, search $PATH. 39734 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool STRIP=$tool_basename" >&5 39735 $as_echo "$as_me: Will search for user supplied tool STRIP=$tool_basename" >&6;} 39736 # Extract the first word of "$tool_basename", so it can be a program name with args. 39737 set dummy $tool_basename; ac_word=$2 39738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 39739 $as_echo_n "checking for $ac_word... " >&6; } 39740 if ${ac_cv_path_STRIP+:} false; then : 39741 $as_echo_n "(cached) " >&6 39742 else 39743 case $STRIP in 39744 [\\/]* | ?:[\\/]*) 39745 ac_cv_path_STRIP="$STRIP" # Let the user override the test with a path. 39746 ;; 39747 *) 39748 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 39749 for as_dir in $PATH 39750 do 39751 IFS=$as_save_IFS 39752 test -z "$as_dir" && as_dir=. 39753 for ac_exec_ext in '' $ac_executable_extensions; do 39754 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 39755 ac_cv_path_STRIP="$as_dir/$ac_word$ac_exec_ext" 39756 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 39757 break 2 39758 fi 39759 done 39760 done 39761 IFS=$as_save_IFS 39762 39763 ;; 39764 esac 39765 fi 39766 STRIP=$ac_cv_path_STRIP 39767 if test -n "$STRIP"; then 39768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 39769 $as_echo "$STRIP" >&6; } 39770 else 39771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 39772 $as_echo "no" >&6; } 39773 fi 39774 39775 39776 if test "x$STRIP" = x; then 39777 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 39778 fi 39779 else 39780 # Otherwise we believe it is a complete path. Use it as it is. 39781 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool STRIP=$tool_specified" >&5 39782 $as_echo "$as_me: Will use user supplied tool STRIP=$tool_specified" >&6;} 39783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for STRIP" >&5 39784 $as_echo_n "checking for STRIP... " >&6; } 39785 if test ! -x "$tool_specified"; then 39786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 39787 $as_echo "not found" >&6; } 39788 as_fn_error $? "User supplied tool STRIP=$tool_specified does not exist or is not executable" "$LINENO" 5 39789 fi 39790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 39791 $as_echo "$tool_specified" >&6; } 39792 fi 39793 fi 39794 fi 39795 39796 fi 39797 39798 39799 39800 # Only process if variable expands to non-empty 39801 39802 if test "x$STRIP" != x; then 39803 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 39804 39805 # First separate the path from the arguments. This will split at the first 39806 # space. 39807 complete="$STRIP" 39808 path="${complete%% *}" 39809 tmp="$complete EOL" 39810 arguments="${tmp#* }" 39811 39812 # Input might be given as Windows format, start by converting to 39813 # unix format. 39814 new_path=`$CYGPATH -u "$path"` 39815 39816 # Now try to locate executable using which 39817 new_path=`$WHICH "$new_path" 2> /dev/null` 39818 # bat and cmd files are not always considered executable in cygwin causing which 39819 # to not find them 39820 if test "x$new_path" = x \ 39821 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 39822 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 39823 new_path=`$CYGPATH -u "$path"` 39824 fi 39825 if test "x$new_path" = x; then 39826 # Oops. Which didn't find the executable. 39827 # The splitting of arguments from the executable at a space might have been incorrect, 39828 # since paths with space are more likely in Windows. Give it another try with the whole 39829 # argument. 39830 path="$complete" 39831 arguments="EOL" 39832 new_path=`$CYGPATH -u "$path"` 39833 new_path=`$WHICH "$new_path" 2> /dev/null` 39834 # bat and cmd files are not always considered executable in cygwin causing which 39835 # to not find them 39836 if test "x$new_path" = x \ 39837 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 39838 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 39839 new_path=`$CYGPATH -u "$path"` 39840 fi 39841 if test "x$new_path" = x; then 39842 # It's still not found. Now this is an unrecoverable error. 39843 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of STRIP, which resolves as \"$complete\", is not found." >&5 39844 $as_echo "$as_me: The path of STRIP, which resolves as \"$complete\", is not found." >&6;} 39845 has_space=`$ECHO "$complete" | $GREP " "` 39846 if test "x$has_space" != x; then 39847 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 39848 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 39849 fi 39850 as_fn_error $? "Cannot locate the the path of STRIP" "$LINENO" 5 39851 fi 39852 fi 39853 39854 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 39855 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 39856 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 39857 # "foo.exe" is OK but "foo" is an error. 39858 # 39859 # This test is therefore slightly more accurate than "test -f" to check for file presence. 39860 # It is also a way to make sure we got the proper file name for the real test later on. 39861 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 39862 if test "x$test_shortpath" = x; then 39863 # Short path failed, file does not exist as specified. 39864 # Try adding .exe or .cmd 39865 if test -f "${new_path}.exe"; then 39866 input_to_shortpath="${new_path}.exe" 39867 elif test -f "${new_path}.cmd"; then 39868 input_to_shortpath="${new_path}.cmd" 39869 else 39870 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of STRIP, which resolves as \"$new_path\", is invalid." >&5 39871 $as_echo "$as_me: The path of STRIP, which resolves as \"$new_path\", is invalid." >&6;} 39872 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 39873 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 39874 as_fn_error $? "Cannot locate the the path of STRIP" "$LINENO" 5 39875 fi 39876 else 39877 input_to_shortpath="$new_path" 39878 fi 39879 39880 # Call helper function which possibly converts this using DOS-style short mode. 39881 # If so, the updated path is stored in $new_path. 39882 new_path="$input_to_shortpath" 39883 39884 input_path="$input_to_shortpath" 39885 # Check if we need to convert this using DOS-style short mode. If the path 39886 # contains just simple characters, use it. Otherwise (spaces, weird characters), 39887 # take no chances and rewrite it. 39888 # Note: m4 eats our [], so we need to use [ and ] instead. 39889 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 39890 if test "x$has_forbidden_chars" != x; then 39891 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 39892 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 39893 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 39894 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 39895 # Going to short mode and back again did indeed matter. Since short mode is 39896 # case insensitive, let's make it lowercase to improve readability. 39897 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 39898 # Now convert it back to Unix-style (cygpath) 39899 input_path=`$CYGPATH -u "$shortmode_path"` 39900 new_path="$input_path" 39901 fi 39902 fi 39903 39904 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 39905 if test "x$test_cygdrive_prefix" = x; then 39906 # As a simple fix, exclude /usr/bin since it's not a real path. 39907 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 39908 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 39909 # a path prefixed by /cygdrive for fixpath to work. 39910 new_path="$CYGWIN_ROOT_PATH$input_path" 39911 fi 39912 fi 39913 39914 # remove trailing .exe if any 39915 new_path="${new_path/%.exe/}" 39916 39917 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 39918 39919 # First separate the path from the arguments. This will split at the first 39920 # space. 39921 complete="$STRIP" 39922 path="${complete%% *}" 39923 tmp="$complete EOL" 39924 arguments="${tmp#* }" 39925 39926 # Input might be given as Windows format, start by converting to 39927 # unix format. 39928 new_path="$path" 39929 39930 windows_path="$new_path" 39931 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 39932 unix_path=`$CYGPATH -u "$windows_path"` 39933 new_path="$unix_path" 39934 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 39935 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 39936 new_path="$unix_path" 39937 fi 39938 39939 39940 # Now try to locate executable using which 39941 new_path=`$WHICH "$new_path" 2> /dev/null` 39942 39943 if test "x$new_path" = x; then 39944 # Oops. Which didn't find the executable. 39945 # The splitting of arguments from the executable at a space might have been incorrect, 39946 # since paths with space are more likely in Windows. Give it another try with the whole 39947 # argument. 39948 path="$complete" 39949 arguments="EOL" 39950 new_path="$path" 39951 39952 windows_path="$new_path" 39953 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 39954 unix_path=`$CYGPATH -u "$windows_path"` 39955 new_path="$unix_path" 39956 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 39957 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 39958 new_path="$unix_path" 39959 fi 39960 39961 39962 new_path=`$WHICH "$new_path" 2> /dev/null` 39963 # bat and cmd files are not always considered executable in MSYS causing which 39964 # to not find them 39965 if test "x$new_path" = x \ 39966 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 39967 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 39968 new_path="$path" 39969 39970 windows_path="$new_path" 39971 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 39972 unix_path=`$CYGPATH -u "$windows_path"` 39973 new_path="$unix_path" 39974 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 39975 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 39976 new_path="$unix_path" 39977 fi 39978 39979 fi 39980 39981 if test "x$new_path" = x; then 39982 # It's still not found. Now this is an unrecoverable error. 39983 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of STRIP, which resolves as \"$complete\", is not found." >&5 39984 $as_echo "$as_me: The path of STRIP, which resolves as \"$complete\", is not found." >&6;} 39985 has_space=`$ECHO "$complete" | $GREP " "` 39986 if test "x$has_space" != x; then 39987 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 39988 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 39989 fi 39990 as_fn_error $? "Cannot locate the the path of STRIP" "$LINENO" 5 39991 fi 39992 fi 39993 39994 # Now new_path has a complete unix path to the binary 39995 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 39996 # Keep paths in /bin as-is, but remove trailing .exe if any 39997 new_path="${new_path/%.exe/}" 39998 # Do not save /bin paths to all_fixpath_prefixes! 39999 else 40000 # Not in mixed or Windows style, start by that. 40001 new_path=`cmd //c echo $new_path` 40002 40003 input_path="$new_path" 40004 # Check if we need to convert this using DOS-style short mode. If the path 40005 # contains just simple characters, use it. Otherwise (spaces, weird characters), 40006 # take no chances and rewrite it. 40007 # Note: m4 eats our [], so we need to use [ and ] instead. 40008 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 40009 if test "x$has_forbidden_chars" != x; then 40010 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 40011 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 40012 fi 40013 40014 # Output is in $new_path 40015 40016 windows_path="$new_path" 40017 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 40018 unix_path=`$CYGPATH -u "$windows_path"` 40019 new_path="$unix_path" 40020 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 40021 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 40022 new_path="$unix_path" 40023 fi 40024 40025 # remove trailing .exe if any 40026 new_path="${new_path/%.exe/}" 40027 40028 # Save the first 10 bytes of this path to the storage, so fixpath can work. 40029 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 40030 fi 40031 40032 else 40033 # We're on a unix platform. Hooray! :) 40034 # First separate the path from the arguments. This will split at the first 40035 # space. 40036 complete="$STRIP" 40037 path="${complete%% *}" 40038 tmp="$complete EOL" 40039 arguments="${tmp#* }" 40040 40041 # Cannot rely on the command "which" here since it doesn't always work. 40042 is_absolute_path=`$ECHO "$path" | $GREP ^/` 40043 if test -z "$is_absolute_path"; then 40044 # Path to executable is not absolute. Find it. 40045 IFS_save="$IFS" 40046 IFS=: 40047 for p in $PATH; do 40048 if test -f "$p/$path" && test -x "$p/$path"; then 40049 new_path="$p/$path" 40050 break 40051 fi 40052 done 40053 IFS="$IFS_save" 40054 else 40055 # This is an absolute path, we can use it without further modifications. 40056 new_path="$path" 40057 fi 40058 40059 if test "x$new_path" = x; then 40060 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of STRIP, which resolves as \"$complete\", is not found." >&5 40061 $as_echo "$as_me: The path of STRIP, which resolves as \"$complete\", is not found." >&6;} 40062 has_space=`$ECHO "$complete" | $GREP " "` 40063 if test "x$has_space" != x; then 40064 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 40065 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 40066 fi 40067 as_fn_error $? "Cannot locate the the path of STRIP" "$LINENO" 5 40068 fi 40069 fi 40070 40071 # Now join together the path and the arguments once again 40072 if test "x$arguments" != xEOL; then 40073 new_complete="$new_path ${arguments% *}" 40074 else 40075 new_complete="$new_path" 40076 fi 40077 40078 if test "x$complete" != "x$new_complete"; then 40079 STRIP="$new_complete" 40080 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting STRIP to \"$new_complete\"" >&5 40081 $as_echo "$as_me: Rewriting STRIP to \"$new_complete\"" >&6;} 40082 fi 40083 fi 40084 40085 40086 40087 # Publish this variable in the help. 40088 40089 40090 if [ -z "${NM+x}" ]; then 40091 # The variable is not set by user, try to locate tool using the code snippet 40092 for ac_prog in nm 40093 do 40094 # Extract the first word of "$ac_prog", so it can be a program name with args. 40095 set dummy $ac_prog; ac_word=$2 40096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 40097 $as_echo_n "checking for $ac_word... " >&6; } 40098 if ${ac_cv_path_NM+:} false; then : 40099 $as_echo_n "(cached) " >&6 40100 else 40101 case $NM in 40102 [\\/]* | ?:[\\/]*) 40103 ac_cv_path_NM="$NM" # Let the user override the test with a path. 40104 ;; 40105 *) 40106 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 40107 for as_dir in $PATH 40108 do 40109 IFS=$as_save_IFS 40110 test -z "$as_dir" && as_dir=. 40111 for ac_exec_ext in '' $ac_executable_extensions; do 40112 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 40113 ac_cv_path_NM="$as_dir/$ac_word$ac_exec_ext" 40114 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 40115 break 2 40116 fi 40117 done 40118 done 40119 IFS=$as_save_IFS 40120 40121 ;; 40122 esac 40123 fi 40124 NM=$ac_cv_path_NM 40125 if test -n "$NM"; then 40126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5 40127 $as_echo "$NM" >&6; } 40128 else 40129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 40130 $as_echo "no" >&6; } 40131 fi 40132 40133 40134 test -n "$NM" && break 40135 done 40136 40137 else 40138 # The variable is set, but is it from the command line or the environment? 40139 40140 # Try to remove the string !NM! from our list. 40141 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!NM!/} 40142 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 40143 # If it failed, the variable was not from the command line. Ignore it, 40144 # but warn the user (except for BASH, which is always set by the calling BASH). 40145 if test "xNM" != xBASH; then 40146 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of NM from the environment. Use command line variables instead." >&5 40147 $as_echo "$as_me: WARNING: Ignoring value of NM from the environment. Use command line variables instead." >&2;} 40148 fi 40149 # Try to locate tool using the code snippet 40150 for ac_prog in nm 40151 do 40152 # Extract the first word of "$ac_prog", so it can be a program name with args. 40153 set dummy $ac_prog; ac_word=$2 40154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 40155 $as_echo_n "checking for $ac_word... " >&6; } 40156 if ${ac_cv_path_NM+:} false; then : 40157 $as_echo_n "(cached) " >&6 40158 else 40159 case $NM in 40160 [\\/]* | ?:[\\/]*) 40161 ac_cv_path_NM="$NM" # Let the user override the test with a path. 40162 ;; 40163 *) 40164 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 40165 for as_dir in $PATH 40166 do 40167 IFS=$as_save_IFS 40168 test -z "$as_dir" && as_dir=. 40169 for ac_exec_ext in '' $ac_executable_extensions; do 40170 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 40171 ac_cv_path_NM="$as_dir/$ac_word$ac_exec_ext" 40172 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 40173 break 2 40174 fi 40175 done 40176 done 40177 IFS=$as_save_IFS 40178 40179 ;; 40180 esac 40181 fi 40182 NM=$ac_cv_path_NM 40183 if test -n "$NM"; then 40184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5 40185 $as_echo "$NM" >&6; } 40186 else 40187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 40188 $as_echo "no" >&6; } 40189 fi 40190 40191 40192 test -n "$NM" && break 40193 done 40194 40195 else 40196 # If it succeeded, then it was overridden by the user. We will use it 40197 # for the tool. 40198 40199 # First remove it from the list of overridden variables, so we can test 40200 # for unknown variables in the end. 40201 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 40202 40203 # Check if we try to supply an empty value 40204 if test "x$NM" = x; then 40205 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool NM= (no value)" >&5 40206 $as_echo "$as_me: Setting user supplied tool NM= (no value)" >&6;} 40207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NM" >&5 40208 $as_echo_n "checking for NM... " >&6; } 40209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 40210 $as_echo "disabled" >&6; } 40211 else 40212 # Check if the provided tool contains a complete path. 40213 tool_specified="$NM" 40214 tool_basename="${tool_specified##*/}" 40215 if test "x$tool_basename" = "x$tool_specified"; then 40216 # A command without a complete path is provided, search $PATH. 40217 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool NM=$tool_basename" >&5 40218 $as_echo "$as_me: Will search for user supplied tool NM=$tool_basename" >&6;} 40219 # Extract the first word of "$tool_basename", so it can be a program name with args. 40220 set dummy $tool_basename; ac_word=$2 40221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 40222 $as_echo_n "checking for $ac_word... " >&6; } 40223 if ${ac_cv_path_NM+:} false; then : 40224 $as_echo_n "(cached) " >&6 40225 else 40226 case $NM in 40227 [\\/]* | ?:[\\/]*) 40228 ac_cv_path_NM="$NM" # Let the user override the test with a path. 40229 ;; 40230 *) 40231 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 40232 for as_dir in $PATH 40233 do 40234 IFS=$as_save_IFS 40235 test -z "$as_dir" && as_dir=. 40236 for ac_exec_ext in '' $ac_executable_extensions; do 40237 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 40238 ac_cv_path_NM="$as_dir/$ac_word$ac_exec_ext" 40239 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 40240 break 2 40241 fi 40242 done 40243 done 40244 IFS=$as_save_IFS 40245 40246 ;; 40247 esac 40248 fi 40249 NM=$ac_cv_path_NM 40250 if test -n "$NM"; then 40251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5 40252 $as_echo "$NM" >&6; } 40253 else 40254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 40255 $as_echo "no" >&6; } 40256 fi 40257 40258 40259 if test "x$NM" = x; then 40260 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 40261 fi 40262 else 40263 # Otherwise we believe it is a complete path. Use it as it is. 40264 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool NM=$tool_specified" >&5 40265 $as_echo "$as_me: Will use user supplied tool NM=$tool_specified" >&6;} 40266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NM" >&5 40267 $as_echo_n "checking for NM... " >&6; } 40268 if test ! -x "$tool_specified"; then 40269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 40270 $as_echo "not found" >&6; } 40271 as_fn_error $? "User supplied tool NM=$tool_specified does not exist or is not executable" "$LINENO" 5 40272 fi 40273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 40274 $as_echo "$tool_specified" >&6; } 40275 fi 40276 fi 40277 fi 40278 40279 fi 40280 40281 40282 40283 # Only process if variable expands to non-empty 40284 40285 if test "x$NM" != x; then 40286 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 40287 40288 # First separate the path from the arguments. This will split at the first 40289 # space. 40290 complete="$NM" 40291 path="${complete%% *}" 40292 tmp="$complete EOL" 40293 arguments="${tmp#* }" 40294 40295 # Input might be given as Windows format, start by converting to 40296 # unix format. 40297 new_path=`$CYGPATH -u "$path"` 40298 40299 # Now try to locate executable using which 40300 new_path=`$WHICH "$new_path" 2> /dev/null` 40301 # bat and cmd files are not always considered executable in cygwin causing which 40302 # to not find them 40303 if test "x$new_path" = x \ 40304 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 40305 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 40306 new_path=`$CYGPATH -u "$path"` 40307 fi 40308 if test "x$new_path" = x; then 40309 # Oops. Which didn't find the executable. 40310 # The splitting of arguments from the executable at a space might have been incorrect, 40311 # since paths with space are more likely in Windows. Give it another try with the whole 40312 # argument. 40313 path="$complete" 40314 arguments="EOL" 40315 new_path=`$CYGPATH -u "$path"` 40316 new_path=`$WHICH "$new_path" 2> /dev/null` 40317 # bat and cmd files are not always considered executable in cygwin causing which 40318 # to not find them 40319 if test "x$new_path" = x \ 40320 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 40321 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 40322 new_path=`$CYGPATH -u "$path"` 40323 fi 40324 if test "x$new_path" = x; then 40325 # It's still not found. Now this is an unrecoverable error. 40326 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of NM, which resolves as \"$complete\", is not found." >&5 40327 $as_echo "$as_me: The path of NM, which resolves as \"$complete\", is not found." >&6;} 40328 has_space=`$ECHO "$complete" | $GREP " "` 40329 if test "x$has_space" != x; then 40330 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 40331 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 40332 fi 40333 as_fn_error $? "Cannot locate the the path of NM" "$LINENO" 5 40334 fi 40335 fi 40336 40337 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 40338 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 40339 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 40340 # "foo.exe" is OK but "foo" is an error. 40341 # 40342 # This test is therefore slightly more accurate than "test -f" to check for file presence. 40343 # It is also a way to make sure we got the proper file name for the real test later on. 40344 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 40345 if test "x$test_shortpath" = x; then 40346 # Short path failed, file does not exist as specified. 40347 # Try adding .exe or .cmd 40348 if test -f "${new_path}.exe"; then 40349 input_to_shortpath="${new_path}.exe" 40350 elif test -f "${new_path}.cmd"; then 40351 input_to_shortpath="${new_path}.cmd" 40352 else 40353 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of NM, which resolves as \"$new_path\", is invalid." >&5 40354 $as_echo "$as_me: The path of NM, which resolves as \"$new_path\", is invalid." >&6;} 40355 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 40356 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 40357 as_fn_error $? "Cannot locate the the path of NM" "$LINENO" 5 40358 fi 40359 else 40360 input_to_shortpath="$new_path" 40361 fi 40362 40363 # Call helper function which possibly converts this using DOS-style short mode. 40364 # If so, the updated path is stored in $new_path. 40365 new_path="$input_to_shortpath" 40366 40367 input_path="$input_to_shortpath" 40368 # Check if we need to convert this using DOS-style short mode. If the path 40369 # contains just simple characters, use it. Otherwise (spaces, weird characters), 40370 # take no chances and rewrite it. 40371 # Note: m4 eats our [], so we need to use [ and ] instead. 40372 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 40373 if test "x$has_forbidden_chars" != x; then 40374 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 40375 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 40376 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 40377 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 40378 # Going to short mode and back again did indeed matter. Since short mode is 40379 # case insensitive, let's make it lowercase to improve readability. 40380 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 40381 # Now convert it back to Unix-style (cygpath) 40382 input_path=`$CYGPATH -u "$shortmode_path"` 40383 new_path="$input_path" 40384 fi 40385 fi 40386 40387 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 40388 if test "x$test_cygdrive_prefix" = x; then 40389 # As a simple fix, exclude /usr/bin since it's not a real path. 40390 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 40391 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 40392 # a path prefixed by /cygdrive for fixpath to work. 40393 new_path="$CYGWIN_ROOT_PATH$input_path" 40394 fi 40395 fi 40396 40397 # remove trailing .exe if any 40398 new_path="${new_path/%.exe/}" 40399 40400 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 40401 40402 # First separate the path from the arguments. This will split at the first 40403 # space. 40404 complete="$NM" 40405 path="${complete%% *}" 40406 tmp="$complete EOL" 40407 arguments="${tmp#* }" 40408 40409 # Input might be given as Windows format, start by converting to 40410 # unix format. 40411 new_path="$path" 40412 40413 windows_path="$new_path" 40414 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 40415 unix_path=`$CYGPATH -u "$windows_path"` 40416 new_path="$unix_path" 40417 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 40418 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 40419 new_path="$unix_path" 40420 fi 40421 40422 40423 # Now try to locate executable using which 40424 new_path=`$WHICH "$new_path" 2> /dev/null` 40425 40426 if test "x$new_path" = x; then 40427 # Oops. Which didn't find the executable. 40428 # The splitting of arguments from the executable at a space might have been incorrect, 40429 # since paths with space are more likely in Windows. Give it another try with the whole 40430 # argument. 40431 path="$complete" 40432 arguments="EOL" 40433 new_path="$path" 40434 40435 windows_path="$new_path" 40436 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 40437 unix_path=`$CYGPATH -u "$windows_path"` 40438 new_path="$unix_path" 40439 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 40440 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 40441 new_path="$unix_path" 40442 fi 40443 40444 40445 new_path=`$WHICH "$new_path" 2> /dev/null` 40446 # bat and cmd files are not always considered executable in MSYS causing which 40447 # to not find them 40448 if test "x$new_path" = x \ 40449 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 40450 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 40451 new_path="$path" 40452 40453 windows_path="$new_path" 40454 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 40455 unix_path=`$CYGPATH -u "$windows_path"` 40456 new_path="$unix_path" 40457 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 40458 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 40459 new_path="$unix_path" 40460 fi 40461 40462 fi 40463 40464 if test "x$new_path" = x; then 40465 # It's still not found. Now this is an unrecoverable error. 40466 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of NM, which resolves as \"$complete\", is not found." >&5 40467 $as_echo "$as_me: The path of NM, which resolves as \"$complete\", is not found." >&6;} 40468 has_space=`$ECHO "$complete" | $GREP " "` 40469 if test "x$has_space" != x; then 40470 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 40471 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 40472 fi 40473 as_fn_error $? "Cannot locate the the path of NM" "$LINENO" 5 40474 fi 40475 fi 40476 40477 # Now new_path has a complete unix path to the binary 40478 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 40479 # Keep paths in /bin as-is, but remove trailing .exe if any 40480 new_path="${new_path/%.exe/}" 40481 # Do not save /bin paths to all_fixpath_prefixes! 40482 else 40483 # Not in mixed or Windows style, start by that. 40484 new_path=`cmd //c echo $new_path` 40485 40486 input_path="$new_path" 40487 # Check if we need to convert this using DOS-style short mode. If the path 40488 # contains just simple characters, use it. Otherwise (spaces, weird characters), 40489 # take no chances and rewrite it. 40490 # Note: m4 eats our [], so we need to use [ and ] instead. 40491 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 40492 if test "x$has_forbidden_chars" != x; then 40493 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 40494 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 40495 fi 40496 40497 # Output is in $new_path 40498 40499 windows_path="$new_path" 40500 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 40501 unix_path=`$CYGPATH -u "$windows_path"` 40502 new_path="$unix_path" 40503 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 40504 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 40505 new_path="$unix_path" 40506 fi 40507 40508 # remove trailing .exe if any 40509 new_path="${new_path/%.exe/}" 40510 40511 # Save the first 10 bytes of this path to the storage, so fixpath can work. 40512 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 40513 fi 40514 40515 else 40516 # We're on a unix platform. Hooray! :) 40517 # First separate the path from the arguments. This will split at the first 40518 # space. 40519 complete="$NM" 40520 path="${complete%% *}" 40521 tmp="$complete EOL" 40522 arguments="${tmp#* }" 40523 40524 # Cannot rely on the command "which" here since it doesn't always work. 40525 is_absolute_path=`$ECHO "$path" | $GREP ^/` 40526 if test -z "$is_absolute_path"; then 40527 # Path to executable is not absolute. Find it. 40528 IFS_save="$IFS" 40529 IFS=: 40530 for p in $PATH; do 40531 if test -f "$p/$path" && test -x "$p/$path"; then 40532 new_path="$p/$path" 40533 break 40534 fi 40535 done 40536 IFS="$IFS_save" 40537 else 40538 # This is an absolute path, we can use it without further modifications. 40539 new_path="$path" 40540 fi 40541 40542 if test "x$new_path" = x; then 40543 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of NM, which resolves as \"$complete\", is not found." >&5 40544 $as_echo "$as_me: The path of NM, which resolves as \"$complete\", is not found." >&6;} 40545 has_space=`$ECHO "$complete" | $GREP " "` 40546 if test "x$has_space" != x; then 40547 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 40548 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 40549 fi 40550 as_fn_error $? "Cannot locate the the path of NM" "$LINENO" 5 40551 fi 40552 fi 40553 40554 # Now join together the path and the arguments once again 40555 if test "x$arguments" != xEOL; then 40556 new_complete="$new_path ${arguments% *}" 40557 else 40558 new_complete="$new_path" 40559 fi 40560 40561 if test "x$complete" != "x$new_complete"; then 40562 NM="$new_complete" 40563 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting NM to \"$new_complete\"" >&5 40564 $as_echo "$as_me: Rewriting NM to \"$new_complete\"" >&6;} 40565 fi 40566 fi 40567 40568 40569 40570 # Publish this variable in the help. 40571 40572 40573 if [ -z "${GNM+x}" ]; then 40574 # The variable is not set by user, try to locate tool using the code snippet 40575 for ac_prog in gnm 40576 do 40577 # Extract the first word of "$ac_prog", so it can be a program name with args. 40578 set dummy $ac_prog; ac_word=$2 40579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 40580 $as_echo_n "checking for $ac_word... " >&6; } 40581 if ${ac_cv_path_GNM+:} false; then : 40582 $as_echo_n "(cached) " >&6 40583 else 40584 case $GNM in 40585 [\\/]* | ?:[\\/]*) 40586 ac_cv_path_GNM="$GNM" # Let the user override the test with a path. 40587 ;; 40588 *) 40589 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 40590 for as_dir in $PATH 40591 do 40592 IFS=$as_save_IFS 40593 test -z "$as_dir" && as_dir=. 40594 for ac_exec_ext in '' $ac_executable_extensions; do 40595 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 40596 ac_cv_path_GNM="$as_dir/$ac_word$ac_exec_ext" 40597 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 40598 break 2 40599 fi 40600 done 40601 done 40602 IFS=$as_save_IFS 40603 40604 ;; 40605 esac 40606 fi 40607 GNM=$ac_cv_path_GNM 40608 if test -n "$GNM"; then 40609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNM" >&5 40610 $as_echo "$GNM" >&6; } 40611 else 40612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 40613 $as_echo "no" >&6; } 40614 fi 40615 40616 40617 test -n "$GNM" && break 40618 done 40619 40620 else 40621 # The variable is set, but is it from the command line or the environment? 40622 40623 # Try to remove the string !GNM! from our list. 40624 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!GNM!/} 40625 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 40626 # If it failed, the variable was not from the command line. Ignore it, 40627 # but warn the user (except for BASH, which is always set by the calling BASH). 40628 if test "xGNM" != xBASH; then 40629 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of GNM from the environment. Use command line variables instead." >&5 40630 $as_echo "$as_me: WARNING: Ignoring value of GNM from the environment. Use command line variables instead." >&2;} 40631 fi 40632 # Try to locate tool using the code snippet 40633 for ac_prog in gnm 40634 do 40635 # Extract the first word of "$ac_prog", so it can be a program name with args. 40636 set dummy $ac_prog; ac_word=$2 40637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 40638 $as_echo_n "checking for $ac_word... " >&6; } 40639 if ${ac_cv_path_GNM+:} false; then : 40640 $as_echo_n "(cached) " >&6 40641 else 40642 case $GNM in 40643 [\\/]* | ?:[\\/]*) 40644 ac_cv_path_GNM="$GNM" # Let the user override the test with a path. 40645 ;; 40646 *) 40647 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 40648 for as_dir in $PATH 40649 do 40650 IFS=$as_save_IFS 40651 test -z "$as_dir" && as_dir=. 40652 for ac_exec_ext in '' $ac_executable_extensions; do 40653 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 40654 ac_cv_path_GNM="$as_dir/$ac_word$ac_exec_ext" 40655 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 40656 break 2 40657 fi 40658 done 40659 done 40660 IFS=$as_save_IFS 40661 40662 ;; 40663 esac 40664 fi 40665 GNM=$ac_cv_path_GNM 40666 if test -n "$GNM"; then 40667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNM" >&5 40668 $as_echo "$GNM" >&6; } 40669 else 40670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 40671 $as_echo "no" >&6; } 40672 fi 40673 40674 40675 test -n "$GNM" && break 40676 done 40677 40678 else 40679 # If it succeeded, then it was overridden by the user. We will use it 40680 # for the tool. 40681 40682 # First remove it from the list of overridden variables, so we can test 40683 # for unknown variables in the end. 40684 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 40685 40686 # Check if we try to supply an empty value 40687 if test "x$GNM" = x; then 40688 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool GNM= (no value)" >&5 40689 $as_echo "$as_me: Setting user supplied tool GNM= (no value)" >&6;} 40690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNM" >&5 40691 $as_echo_n "checking for GNM... " >&6; } 40692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 40693 $as_echo "disabled" >&6; } 40694 else 40695 # Check if the provided tool contains a complete path. 40696 tool_specified="$GNM" 40697 tool_basename="${tool_specified##*/}" 40698 if test "x$tool_basename" = "x$tool_specified"; then 40699 # A command without a complete path is provided, search $PATH. 40700 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool GNM=$tool_basename" >&5 40701 $as_echo "$as_me: Will search for user supplied tool GNM=$tool_basename" >&6;} 40702 # Extract the first word of "$tool_basename", so it can be a program name with args. 40703 set dummy $tool_basename; ac_word=$2 40704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 40705 $as_echo_n "checking for $ac_word... " >&6; } 40706 if ${ac_cv_path_GNM+:} false; then : 40707 $as_echo_n "(cached) " >&6 40708 else 40709 case $GNM in 40710 [\\/]* | ?:[\\/]*) 40711 ac_cv_path_GNM="$GNM" # Let the user override the test with a path. 40712 ;; 40713 *) 40714 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 40715 for as_dir in $PATH 40716 do 40717 IFS=$as_save_IFS 40718 test -z "$as_dir" && as_dir=. 40719 for ac_exec_ext in '' $ac_executable_extensions; do 40720 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 40721 ac_cv_path_GNM="$as_dir/$ac_word$ac_exec_ext" 40722 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 40723 break 2 40724 fi 40725 done 40726 done 40727 IFS=$as_save_IFS 40728 40729 ;; 40730 esac 40731 fi 40732 GNM=$ac_cv_path_GNM 40733 if test -n "$GNM"; then 40734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNM" >&5 40735 $as_echo "$GNM" >&6; } 40736 else 40737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 40738 $as_echo "no" >&6; } 40739 fi 40740 40741 40742 if test "x$GNM" = x; then 40743 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 40744 fi 40745 else 40746 # Otherwise we believe it is a complete path. Use it as it is. 40747 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool GNM=$tool_specified" >&5 40748 $as_echo "$as_me: Will use user supplied tool GNM=$tool_specified" >&6;} 40749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNM" >&5 40750 $as_echo_n "checking for GNM... " >&6; } 40751 if test ! -x "$tool_specified"; then 40752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 40753 $as_echo "not found" >&6; } 40754 as_fn_error $? "User supplied tool GNM=$tool_specified does not exist or is not executable" "$LINENO" 5 40755 fi 40756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 40757 $as_echo "$tool_specified" >&6; } 40758 fi 40759 fi 40760 fi 40761 40762 fi 40763 40764 40765 40766 # Only process if variable expands to non-empty 40767 40768 if test "x$GNM" != x; then 40769 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 40770 40771 # First separate the path from the arguments. This will split at the first 40772 # space. 40773 complete="$GNM" 40774 path="${complete%% *}" 40775 tmp="$complete EOL" 40776 arguments="${tmp#* }" 40777 40778 # Input might be given as Windows format, start by converting to 40779 # unix format. 40780 new_path=`$CYGPATH -u "$path"` 40781 40782 # Now try to locate executable using which 40783 new_path=`$WHICH "$new_path" 2> /dev/null` 40784 # bat and cmd files are not always considered executable in cygwin causing which 40785 # to not find them 40786 if test "x$new_path" = x \ 40787 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 40788 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 40789 new_path=`$CYGPATH -u "$path"` 40790 fi 40791 if test "x$new_path" = x; then 40792 # Oops. Which didn't find the executable. 40793 # The splitting of arguments from the executable at a space might have been incorrect, 40794 # since paths with space are more likely in Windows. Give it another try with the whole 40795 # argument. 40796 path="$complete" 40797 arguments="EOL" 40798 new_path=`$CYGPATH -u "$path"` 40799 new_path=`$WHICH "$new_path" 2> /dev/null` 40800 # bat and cmd files are not always considered executable in cygwin causing which 40801 # to not find them 40802 if test "x$new_path" = x \ 40803 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 40804 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 40805 new_path=`$CYGPATH -u "$path"` 40806 fi 40807 if test "x$new_path" = x; then 40808 # It's still not found. Now this is an unrecoverable error. 40809 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of GNM, which resolves as \"$complete\", is not found." >&5 40810 $as_echo "$as_me: The path of GNM, which resolves as \"$complete\", is not found." >&6;} 40811 has_space=`$ECHO "$complete" | $GREP " "` 40812 if test "x$has_space" != x; then 40813 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 40814 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 40815 fi 40816 as_fn_error $? "Cannot locate the the path of GNM" "$LINENO" 5 40817 fi 40818 fi 40819 40820 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 40821 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 40822 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 40823 # "foo.exe" is OK but "foo" is an error. 40824 # 40825 # This test is therefore slightly more accurate than "test -f" to check for file presence. 40826 # It is also a way to make sure we got the proper file name for the real test later on. 40827 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 40828 if test "x$test_shortpath" = x; then 40829 # Short path failed, file does not exist as specified. 40830 # Try adding .exe or .cmd 40831 if test -f "${new_path}.exe"; then 40832 input_to_shortpath="${new_path}.exe" 40833 elif test -f "${new_path}.cmd"; then 40834 input_to_shortpath="${new_path}.cmd" 40835 else 40836 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of GNM, which resolves as \"$new_path\", is invalid." >&5 40837 $as_echo "$as_me: The path of GNM, which resolves as \"$new_path\", is invalid." >&6;} 40838 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 40839 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 40840 as_fn_error $? "Cannot locate the the path of GNM" "$LINENO" 5 40841 fi 40842 else 40843 input_to_shortpath="$new_path" 40844 fi 40845 40846 # Call helper function which possibly converts this using DOS-style short mode. 40847 # If so, the updated path is stored in $new_path. 40848 new_path="$input_to_shortpath" 40849 40850 input_path="$input_to_shortpath" 40851 # Check if we need to convert this using DOS-style short mode. If the path 40852 # contains just simple characters, use it. Otherwise (spaces, weird characters), 40853 # take no chances and rewrite it. 40854 # Note: m4 eats our [], so we need to use [ and ] instead. 40855 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 40856 if test "x$has_forbidden_chars" != x; then 40857 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 40858 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 40859 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 40860 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 40861 # Going to short mode and back again did indeed matter. Since short mode is 40862 # case insensitive, let's make it lowercase to improve readability. 40863 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 40864 # Now convert it back to Unix-style (cygpath) 40865 input_path=`$CYGPATH -u "$shortmode_path"` 40866 new_path="$input_path" 40867 fi 40868 fi 40869 40870 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 40871 if test "x$test_cygdrive_prefix" = x; then 40872 # As a simple fix, exclude /usr/bin since it's not a real path. 40873 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 40874 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 40875 # a path prefixed by /cygdrive for fixpath to work. 40876 new_path="$CYGWIN_ROOT_PATH$input_path" 40877 fi 40878 fi 40879 40880 # remove trailing .exe if any 40881 new_path="${new_path/%.exe/}" 40882 40883 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 40884 40885 # First separate the path from the arguments. This will split at the first 40886 # space. 40887 complete="$GNM" 40888 path="${complete%% *}" 40889 tmp="$complete EOL" 40890 arguments="${tmp#* }" 40891 40892 # Input might be given as Windows format, start by converting to 40893 # unix format. 40894 new_path="$path" 40895 40896 windows_path="$new_path" 40897 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 40898 unix_path=`$CYGPATH -u "$windows_path"` 40899 new_path="$unix_path" 40900 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 40901 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 40902 new_path="$unix_path" 40903 fi 40904 40905 40906 # Now try to locate executable using which 40907 new_path=`$WHICH "$new_path" 2> /dev/null` 40908 40909 if test "x$new_path" = x; then 40910 # Oops. Which didn't find the executable. 40911 # The splitting of arguments from the executable at a space might have been incorrect, 40912 # since paths with space are more likely in Windows. Give it another try with the whole 40913 # argument. 40914 path="$complete" 40915 arguments="EOL" 40916 new_path="$path" 40917 40918 windows_path="$new_path" 40919 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 40920 unix_path=`$CYGPATH -u "$windows_path"` 40921 new_path="$unix_path" 40922 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 40923 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 40924 new_path="$unix_path" 40925 fi 40926 40927 40928 new_path=`$WHICH "$new_path" 2> /dev/null` 40929 # bat and cmd files are not always considered executable in MSYS causing which 40930 # to not find them 40931 if test "x$new_path" = x \ 40932 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 40933 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 40934 new_path="$path" 40935 40936 windows_path="$new_path" 40937 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 40938 unix_path=`$CYGPATH -u "$windows_path"` 40939 new_path="$unix_path" 40940 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 40941 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 40942 new_path="$unix_path" 40943 fi 40944 40945 fi 40946 40947 if test "x$new_path" = x; then 40948 # It's still not found. Now this is an unrecoverable error. 40949 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of GNM, which resolves as \"$complete\", is not found." >&5 40950 $as_echo "$as_me: The path of GNM, which resolves as \"$complete\", is not found." >&6;} 40951 has_space=`$ECHO "$complete" | $GREP " "` 40952 if test "x$has_space" != x; then 40953 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 40954 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 40955 fi 40956 as_fn_error $? "Cannot locate the the path of GNM" "$LINENO" 5 40957 fi 40958 fi 40959 40960 # Now new_path has a complete unix path to the binary 40961 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 40962 # Keep paths in /bin as-is, but remove trailing .exe if any 40963 new_path="${new_path/%.exe/}" 40964 # Do not save /bin paths to all_fixpath_prefixes! 40965 else 40966 # Not in mixed or Windows style, start by that. 40967 new_path=`cmd //c echo $new_path` 40968 40969 input_path="$new_path" 40970 # Check if we need to convert this using DOS-style short mode. If the path 40971 # contains just simple characters, use it. Otherwise (spaces, weird characters), 40972 # take no chances and rewrite it. 40973 # Note: m4 eats our [], so we need to use [ and ] instead. 40974 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 40975 if test "x$has_forbidden_chars" != x; then 40976 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 40977 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 40978 fi 40979 40980 # Output is in $new_path 40981 40982 windows_path="$new_path" 40983 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 40984 unix_path=`$CYGPATH -u "$windows_path"` 40985 new_path="$unix_path" 40986 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 40987 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 40988 new_path="$unix_path" 40989 fi 40990 40991 # remove trailing .exe if any 40992 new_path="${new_path/%.exe/}" 40993 40994 # Save the first 10 bytes of this path to the storage, so fixpath can work. 40995 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 40996 fi 40997 40998 else 40999 # We're on a unix platform. Hooray! :) 41000 # First separate the path from the arguments. This will split at the first 41001 # space. 41002 complete="$GNM" 41003 path="${complete%% *}" 41004 tmp="$complete EOL" 41005 arguments="${tmp#* }" 41006 41007 # Cannot rely on the command "which" here since it doesn't always work. 41008 is_absolute_path=`$ECHO "$path" | $GREP ^/` 41009 if test -z "$is_absolute_path"; then 41010 # Path to executable is not absolute. Find it. 41011 IFS_save="$IFS" 41012 IFS=: 41013 for p in $PATH; do 41014 if test -f "$p/$path" && test -x "$p/$path"; then 41015 new_path="$p/$path" 41016 break 41017 fi 41018 done 41019 IFS="$IFS_save" 41020 else 41021 # This is an absolute path, we can use it without further modifications. 41022 new_path="$path" 41023 fi 41024 41025 if test "x$new_path" = x; then 41026 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of GNM, which resolves as \"$complete\", is not found." >&5 41027 $as_echo "$as_me: The path of GNM, which resolves as \"$complete\", is not found." >&6;} 41028 has_space=`$ECHO "$complete" | $GREP " "` 41029 if test "x$has_space" != x; then 41030 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 41031 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 41032 fi 41033 as_fn_error $? "Cannot locate the the path of GNM" "$LINENO" 5 41034 fi 41035 fi 41036 41037 # Now join together the path and the arguments once again 41038 if test "x$arguments" != xEOL; then 41039 new_complete="$new_path ${arguments% *}" 41040 else 41041 new_complete="$new_path" 41042 fi 41043 41044 if test "x$complete" != "x$new_complete"; then 41045 GNM="$new_complete" 41046 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting GNM to \"$new_complete\"" >&5 41047 $as_echo "$as_me: Rewriting GNM to \"$new_complete\"" >&6;} 41048 fi 41049 fi 41050 41051 elif test "x$OPENJDK_TARGET_OS" != xwindows; then 41052 # FIXME: we should unify this with the solaris case above. 41053 41054 41055 # Publish this variable in the help. 41056 41057 41058 if [ -z "${STRIP+x}" ]; then 41059 # The variable is not set by user, try to locate tool using the code snippet 41060 if test -n "$ac_tool_prefix"; then 41061 for ac_prog in strip 41062 do 41063 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 41064 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 41065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 41066 $as_echo_n "checking for $ac_word... " >&6; } 41067 if ${ac_cv_prog_STRIP+:} false; then : 41068 $as_echo_n "(cached) " >&6 41069 else 41070 if test -n "$STRIP"; then 41071 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 41072 else 41073 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 41074 for as_dir in $PATH 41075 do 41076 IFS=$as_save_IFS 41077 test -z "$as_dir" && as_dir=. 41078 for ac_exec_ext in '' $ac_executable_extensions; do 41079 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 41080 ac_cv_prog_STRIP="$ac_tool_prefix$ac_prog" 41081 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 41082 break 2 41083 fi 41084 done 41085 done 41086 IFS=$as_save_IFS 41087 41088 fi 41089 fi 41090 STRIP=$ac_cv_prog_STRIP 41091 if test -n "$STRIP"; then 41092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 41093 $as_echo "$STRIP" >&6; } 41094 else 41095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 41096 $as_echo "no" >&6; } 41097 fi 41098 41099 41100 test -n "$STRIP" && break 41101 done 41102 fi 41103 if test -z "$STRIP"; then 41104 ac_ct_STRIP=$STRIP 41105 for ac_prog in strip 41106 do 41107 # Extract the first word of "$ac_prog", so it can be a program name with args. 41108 set dummy $ac_prog; ac_word=$2 41109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 41110 $as_echo_n "checking for $ac_word... " >&6; } 41111 if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 41112 $as_echo_n "(cached) " >&6 41113 else 41114 if test -n "$ac_ct_STRIP"; then 41115 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 41116 else 41117 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 41118 for as_dir in $PATH 41119 do 41120 IFS=$as_save_IFS 41121 test -z "$as_dir" && as_dir=. 41122 for ac_exec_ext in '' $ac_executable_extensions; do 41123 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 41124 ac_cv_prog_ac_ct_STRIP="$ac_prog" 41125 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 41126 break 2 41127 fi 41128 done 41129 done 41130 IFS=$as_save_IFS 41131 41132 fi 41133 fi 41134 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 41135 if test -n "$ac_ct_STRIP"; then 41136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 41137 $as_echo "$ac_ct_STRIP" >&6; } 41138 else 41139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 41140 $as_echo "no" >&6; } 41141 fi 41142 41143 41144 test -n "$ac_ct_STRIP" && break 41145 done 41146 41147 if test "x$ac_ct_STRIP" = x; then 41148 STRIP="" 41149 else 41150 case $cross_compiling:$ac_tool_warned in 41151 yes:) 41152 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 41153 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 41154 ac_tool_warned=yes ;; 41155 esac 41156 STRIP=$ac_ct_STRIP 41157 fi 41158 fi 41159 41160 else 41161 # The variable is set, but is it from the command line or the environment? 41162 41163 # Try to remove the string !STRIP! from our list. 41164 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!STRIP!/} 41165 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 41166 # If it failed, the variable was not from the command line. Ignore it, 41167 # but warn the user (except for BASH, which is always set by the calling BASH). 41168 if test "xSTRIP" != xBASH; then 41169 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of STRIP from the environment. Use command line variables instead." >&5 41170 $as_echo "$as_me: WARNING: Ignoring value of STRIP from the environment. Use command line variables instead." >&2;} 41171 fi 41172 # Try to locate tool using the code snippet 41173 if test -n "$ac_tool_prefix"; then 41174 for ac_prog in strip 41175 do 41176 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 41177 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 41178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 41179 $as_echo_n "checking for $ac_word... " >&6; } 41180 if ${ac_cv_prog_STRIP+:} false; then : 41181 $as_echo_n "(cached) " >&6 41182 else 41183 if test -n "$STRIP"; then 41184 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 41185 else 41186 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 41187 for as_dir in $PATH 41188 do 41189 IFS=$as_save_IFS 41190 test -z "$as_dir" && as_dir=. 41191 for ac_exec_ext in '' $ac_executable_extensions; do 41192 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 41193 ac_cv_prog_STRIP="$ac_tool_prefix$ac_prog" 41194 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 41195 break 2 41196 fi 41197 done 41198 done 41199 IFS=$as_save_IFS 41200 41201 fi 41202 fi 41203 STRIP=$ac_cv_prog_STRIP 41204 if test -n "$STRIP"; then 41205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 41206 $as_echo "$STRIP" >&6; } 41207 else 41208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 41209 $as_echo "no" >&6; } 41210 fi 41211 41212 41213 test -n "$STRIP" && break 41214 done 41215 fi 41216 if test -z "$STRIP"; then 41217 ac_ct_STRIP=$STRIP 41218 for ac_prog in strip 41219 do 41220 # Extract the first word of "$ac_prog", so it can be a program name with args. 41221 set dummy $ac_prog; ac_word=$2 41222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 41223 $as_echo_n "checking for $ac_word... " >&6; } 41224 if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 41225 $as_echo_n "(cached) " >&6 41226 else 41227 if test -n "$ac_ct_STRIP"; then 41228 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 41229 else 41230 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 41231 for as_dir in $PATH 41232 do 41233 IFS=$as_save_IFS 41234 test -z "$as_dir" && as_dir=. 41235 for ac_exec_ext in '' $ac_executable_extensions; do 41236 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 41237 ac_cv_prog_ac_ct_STRIP="$ac_prog" 41238 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 41239 break 2 41240 fi 41241 done 41242 done 41243 IFS=$as_save_IFS 41244 41245 fi 41246 fi 41247 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 41248 if test -n "$ac_ct_STRIP"; then 41249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 41250 $as_echo "$ac_ct_STRIP" >&6; } 41251 else 41252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 41253 $as_echo "no" >&6; } 41254 fi 41255 41256 41257 test -n "$ac_ct_STRIP" && break 41258 done 41259 41260 if test "x$ac_ct_STRIP" = x; then 41261 STRIP="" 41262 else 41263 case $cross_compiling:$ac_tool_warned in 41264 yes:) 41265 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 41266 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 41267 ac_tool_warned=yes ;; 41268 esac 41269 STRIP=$ac_ct_STRIP 41270 fi 41271 fi 41272 41273 else 41274 # If it succeeded, then it was overridden by the user. We will use it 41275 # for the tool. 41276 41277 # First remove it from the list of overridden variables, so we can test 41278 # for unknown variables in the end. 41279 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 41280 41281 # Check if we try to supply an empty value 41282 if test "x$STRIP" = x; then 41283 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool STRIP= (no value)" >&5 41284 $as_echo "$as_me: Setting user supplied tool STRIP= (no value)" >&6;} 41285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for STRIP" >&5 41286 $as_echo_n "checking for STRIP... " >&6; } 41287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 41288 $as_echo "disabled" >&6; } 41289 else 41290 # Check if the provided tool contains a complete path. 41291 tool_specified="$STRIP" 41292 tool_basename="${tool_specified##*/}" 41293 if test "x$tool_basename" = "x$tool_specified"; then 41294 # A command without a complete path is provided, search $PATH. 41295 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool STRIP=$tool_basename" >&5 41296 $as_echo "$as_me: Will search for user supplied tool STRIP=$tool_basename" >&6;} 41297 # Extract the first word of "$tool_basename", so it can be a program name with args. 41298 set dummy $tool_basename; ac_word=$2 41299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 41300 $as_echo_n "checking for $ac_word... " >&6; } 41301 if ${ac_cv_path_STRIP+:} false; then : 41302 $as_echo_n "(cached) " >&6 41303 else 41304 case $STRIP in 41305 [\\/]* | ?:[\\/]*) 41306 ac_cv_path_STRIP="$STRIP" # Let the user override the test with a path. 41307 ;; 41308 *) 41309 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 41310 for as_dir in $PATH 41311 do 41312 IFS=$as_save_IFS 41313 test -z "$as_dir" && as_dir=. 41314 for ac_exec_ext in '' $ac_executable_extensions; do 41315 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 41316 ac_cv_path_STRIP="$as_dir/$ac_word$ac_exec_ext" 41317 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 41318 break 2 41319 fi 41320 done 41321 done 41322 IFS=$as_save_IFS 41323 41324 ;; 41325 esac 41326 fi 41327 STRIP=$ac_cv_path_STRIP 41328 if test -n "$STRIP"; then 41329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 41330 $as_echo "$STRIP" >&6; } 41331 else 41332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 41333 $as_echo "no" >&6; } 41334 fi 41335 41336 41337 if test "x$STRIP" = x; then 41338 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 41339 fi 41340 else 41341 # Otherwise we believe it is a complete path. Use it as it is. 41342 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool STRIP=$tool_specified" >&5 41343 $as_echo "$as_me: Will use user supplied tool STRIP=$tool_specified" >&6;} 41344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for STRIP" >&5 41345 $as_echo_n "checking for STRIP... " >&6; } 41346 if test ! -x "$tool_specified"; then 41347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 41348 $as_echo "not found" >&6; } 41349 as_fn_error $? "User supplied tool STRIP=$tool_specified does not exist or is not executable" "$LINENO" 5 41350 fi 41351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 41352 $as_echo "$tool_specified" >&6; } 41353 fi 41354 fi 41355 fi 41356 41357 fi 41358 41359 41360 41361 # Only process if variable expands to non-empty 41362 41363 if test "x$STRIP" != x; then 41364 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 41365 41366 # First separate the path from the arguments. This will split at the first 41367 # space. 41368 complete="$STRIP" 41369 path="${complete%% *}" 41370 tmp="$complete EOL" 41371 arguments="${tmp#* }" 41372 41373 # Input might be given as Windows format, start by converting to 41374 # unix format. 41375 new_path=`$CYGPATH -u "$path"` 41376 41377 # Now try to locate executable using which 41378 new_path=`$WHICH "$new_path" 2> /dev/null` 41379 # bat and cmd files are not always considered executable in cygwin causing which 41380 # to not find them 41381 if test "x$new_path" = x \ 41382 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 41383 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 41384 new_path=`$CYGPATH -u "$path"` 41385 fi 41386 if test "x$new_path" = x; then 41387 # Oops. Which didn't find the executable. 41388 # The splitting of arguments from the executable at a space might have been incorrect, 41389 # since paths with space are more likely in Windows. Give it another try with the whole 41390 # argument. 41391 path="$complete" 41392 arguments="EOL" 41393 new_path=`$CYGPATH -u "$path"` 41394 new_path=`$WHICH "$new_path" 2> /dev/null` 41395 # bat and cmd files are not always considered executable in cygwin causing which 41396 # to not find them 41397 if test "x$new_path" = x \ 41398 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 41399 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 41400 new_path=`$CYGPATH -u "$path"` 41401 fi 41402 if test "x$new_path" = x; then 41403 # It's still not found. Now this is an unrecoverable error. 41404 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of STRIP, which resolves as \"$complete\", is not found." >&5 41405 $as_echo "$as_me: The path of STRIP, which resolves as \"$complete\", is not found." >&6;} 41406 has_space=`$ECHO "$complete" | $GREP " "` 41407 if test "x$has_space" != x; then 41408 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 41409 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 41410 fi 41411 as_fn_error $? "Cannot locate the the path of STRIP" "$LINENO" 5 41412 fi 41413 fi 41414 41415 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 41416 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 41417 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 41418 # "foo.exe" is OK but "foo" is an error. 41419 # 41420 # This test is therefore slightly more accurate than "test -f" to check for file presence. 41421 # It is also a way to make sure we got the proper file name for the real test later on. 41422 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 41423 if test "x$test_shortpath" = x; then 41424 # Short path failed, file does not exist as specified. 41425 # Try adding .exe or .cmd 41426 if test -f "${new_path}.exe"; then 41427 input_to_shortpath="${new_path}.exe" 41428 elif test -f "${new_path}.cmd"; then 41429 input_to_shortpath="${new_path}.cmd" 41430 else 41431 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of STRIP, which resolves as \"$new_path\", is invalid." >&5 41432 $as_echo "$as_me: The path of STRIP, which resolves as \"$new_path\", is invalid." >&6;} 41433 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 41434 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 41435 as_fn_error $? "Cannot locate the the path of STRIP" "$LINENO" 5 41436 fi 41437 else 41438 input_to_shortpath="$new_path" 41439 fi 41440 41441 # Call helper function which possibly converts this using DOS-style short mode. 41442 # If so, the updated path is stored in $new_path. 41443 new_path="$input_to_shortpath" 41444 41445 input_path="$input_to_shortpath" 41446 # Check if we need to convert this using DOS-style short mode. If the path 41447 # contains just simple characters, use it. Otherwise (spaces, weird characters), 41448 # take no chances and rewrite it. 41449 # Note: m4 eats our [], so we need to use [ and ] instead. 41450 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 41451 if test "x$has_forbidden_chars" != x; then 41452 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 41453 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 41454 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 41455 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 41456 # Going to short mode and back again did indeed matter. Since short mode is 41457 # case insensitive, let's make it lowercase to improve readability. 41458 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 41459 # Now convert it back to Unix-style (cygpath) 41460 input_path=`$CYGPATH -u "$shortmode_path"` 41461 new_path="$input_path" 41462 fi 41463 fi 41464 41465 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 41466 if test "x$test_cygdrive_prefix" = x; then 41467 # As a simple fix, exclude /usr/bin since it's not a real path. 41468 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 41469 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 41470 # a path prefixed by /cygdrive for fixpath to work. 41471 new_path="$CYGWIN_ROOT_PATH$input_path" 41472 fi 41473 fi 41474 41475 # remove trailing .exe if any 41476 new_path="${new_path/%.exe/}" 41477 41478 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 41479 41480 # First separate the path from the arguments. This will split at the first 41481 # space. 41482 complete="$STRIP" 41483 path="${complete%% *}" 41484 tmp="$complete EOL" 41485 arguments="${tmp#* }" 41486 41487 # Input might be given as Windows format, start by converting to 41488 # unix format. 41489 new_path="$path" 41490 41491 windows_path="$new_path" 41492 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 41493 unix_path=`$CYGPATH -u "$windows_path"` 41494 new_path="$unix_path" 41495 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 41496 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 41497 new_path="$unix_path" 41498 fi 41499 41500 41501 # Now try to locate executable using which 41502 new_path=`$WHICH "$new_path" 2> /dev/null` 41503 41504 if test "x$new_path" = x; then 41505 # Oops. Which didn't find the executable. 41506 # The splitting of arguments from the executable at a space might have been incorrect, 41507 # since paths with space are more likely in Windows. Give it another try with the whole 41508 # argument. 41509 path="$complete" 41510 arguments="EOL" 41511 new_path="$path" 41512 41513 windows_path="$new_path" 41514 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 41515 unix_path=`$CYGPATH -u "$windows_path"` 41516 new_path="$unix_path" 41517 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 41518 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 41519 new_path="$unix_path" 41520 fi 41521 41522 41523 new_path=`$WHICH "$new_path" 2> /dev/null` 41524 # bat and cmd files are not always considered executable in MSYS causing which 41525 # to not find them 41526 if test "x$new_path" = x \ 41527 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 41528 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 41529 new_path="$path" 41530 41531 windows_path="$new_path" 41532 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 41533 unix_path=`$CYGPATH -u "$windows_path"` 41534 new_path="$unix_path" 41535 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 41536 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 41537 new_path="$unix_path" 41538 fi 41539 41540 fi 41541 41542 if test "x$new_path" = x; then 41543 # It's still not found. Now this is an unrecoverable error. 41544 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of STRIP, which resolves as \"$complete\", is not found." >&5 41545 $as_echo "$as_me: The path of STRIP, which resolves as \"$complete\", is not found." >&6;} 41546 has_space=`$ECHO "$complete" | $GREP " "` 41547 if test "x$has_space" != x; then 41548 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 41549 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 41550 fi 41551 as_fn_error $? "Cannot locate the the path of STRIP" "$LINENO" 5 41552 fi 41553 fi 41554 41555 # Now new_path has a complete unix path to the binary 41556 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 41557 # Keep paths in /bin as-is, but remove trailing .exe if any 41558 new_path="${new_path/%.exe/}" 41559 # Do not save /bin paths to all_fixpath_prefixes! 41560 else 41561 # Not in mixed or Windows style, start by that. 41562 new_path=`cmd //c echo $new_path` 41563 41564 input_path="$new_path" 41565 # Check if we need to convert this using DOS-style short mode. If the path 41566 # contains just simple characters, use it. Otherwise (spaces, weird characters), 41567 # take no chances and rewrite it. 41568 # Note: m4 eats our [], so we need to use [ and ] instead. 41569 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 41570 if test "x$has_forbidden_chars" != x; then 41571 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 41572 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 41573 fi 41574 41575 # Output is in $new_path 41576 41577 windows_path="$new_path" 41578 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 41579 unix_path=`$CYGPATH -u "$windows_path"` 41580 new_path="$unix_path" 41581 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 41582 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 41583 new_path="$unix_path" 41584 fi 41585 41586 # remove trailing .exe if any 41587 new_path="${new_path/%.exe/}" 41588 41589 # Save the first 10 bytes of this path to the storage, so fixpath can work. 41590 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 41591 fi 41592 41593 else 41594 # We're on a unix platform. Hooray! :) 41595 # First separate the path from the arguments. This will split at the first 41596 # space. 41597 complete="$STRIP" 41598 path="${complete%% *}" 41599 tmp="$complete EOL" 41600 arguments="${tmp#* }" 41601 41602 # Cannot rely on the command "which" here since it doesn't always work. 41603 is_absolute_path=`$ECHO "$path" | $GREP ^/` 41604 if test -z "$is_absolute_path"; then 41605 # Path to executable is not absolute. Find it. 41606 IFS_save="$IFS" 41607 IFS=: 41608 for p in $PATH; do 41609 if test -f "$p/$path" && test -x "$p/$path"; then 41610 new_path="$p/$path" 41611 break 41612 fi 41613 done 41614 IFS="$IFS_save" 41615 else 41616 # This is an absolute path, we can use it without further modifications. 41617 new_path="$path" 41618 fi 41619 41620 if test "x$new_path" = x; then 41621 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of STRIP, which resolves as \"$complete\", is not found." >&5 41622 $as_echo "$as_me: The path of STRIP, which resolves as \"$complete\", is not found." >&6;} 41623 has_space=`$ECHO "$complete" | $GREP " "` 41624 if test "x$has_space" != x; then 41625 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 41626 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 41627 fi 41628 as_fn_error $? "Cannot locate the the path of STRIP" "$LINENO" 5 41629 fi 41630 fi 41631 41632 # Now join together the path and the arguments once again 41633 if test "x$arguments" != xEOL; then 41634 new_complete="$new_path ${arguments% *}" 41635 else 41636 new_complete="$new_path" 41637 fi 41638 41639 if test "x$complete" != "x$new_complete"; then 41640 STRIP="$new_complete" 41641 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting STRIP to \"$new_complete\"" >&5 41642 $as_echo "$as_me: Rewriting STRIP to \"$new_complete\"" >&6;} 41643 fi 41644 fi 41645 41646 if test "x$TOOLCHAIN_TYPE" = xgcc; then 41647 41648 41649 # Publish this variable in the help. 41650 41651 41652 if [ -z "${NM+x}" ]; then 41653 # The variable is not set by user, try to locate tool using the code snippet 41654 if test -n "$ac_tool_prefix"; then 41655 for ac_prog in nm gcc-nm 41656 do 41657 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 41658 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 41659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 41660 $as_echo_n "checking for $ac_word... " >&6; } 41661 if ${ac_cv_prog_NM+:} false; then : 41662 $as_echo_n "(cached) " >&6 41663 else 41664 if test -n "$NM"; then 41665 ac_cv_prog_NM="$NM" # Let the user override the test. 41666 else 41667 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 41668 for as_dir in $PATH 41669 do 41670 IFS=$as_save_IFS 41671 test -z "$as_dir" && as_dir=. 41672 for ac_exec_ext in '' $ac_executable_extensions; do 41673 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 41674 ac_cv_prog_NM="$ac_tool_prefix$ac_prog" 41675 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 41676 break 2 41677 fi 41678 done 41679 done 41680 IFS=$as_save_IFS 41681 41682 fi 41683 fi 41684 NM=$ac_cv_prog_NM 41685 if test -n "$NM"; then 41686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5 41687 $as_echo "$NM" >&6; } 41688 else 41689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 41690 $as_echo "no" >&6; } 41691 fi 41692 41693 41694 test -n "$NM" && break 41695 done 41696 fi 41697 if test -z "$NM"; then 41698 ac_ct_NM=$NM 41699 for ac_prog in nm gcc-nm 41700 do 41701 # Extract the first word of "$ac_prog", so it can be a program name with args. 41702 set dummy $ac_prog; ac_word=$2 41703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 41704 $as_echo_n "checking for $ac_word... " >&6; } 41705 if ${ac_cv_prog_ac_ct_NM+:} false; then : 41706 $as_echo_n "(cached) " >&6 41707 else 41708 if test -n "$ac_ct_NM"; then 41709 ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test. 41710 else 41711 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 41712 for as_dir in $PATH 41713 do 41714 IFS=$as_save_IFS 41715 test -z "$as_dir" && as_dir=. 41716 for ac_exec_ext in '' $ac_executable_extensions; do 41717 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 41718 ac_cv_prog_ac_ct_NM="$ac_prog" 41719 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 41720 break 2 41721 fi 41722 done 41723 done 41724 IFS=$as_save_IFS 41725 41726 fi 41727 fi 41728 ac_ct_NM=$ac_cv_prog_ac_ct_NM 41729 if test -n "$ac_ct_NM"; then 41730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NM" >&5 41731 $as_echo "$ac_ct_NM" >&6; } 41732 else 41733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 41734 $as_echo "no" >&6; } 41735 fi 41736 41737 41738 test -n "$ac_ct_NM" && break 41739 done 41740 41741 if test "x$ac_ct_NM" = x; then 41742 NM="" 41743 else 41744 case $cross_compiling:$ac_tool_warned in 41745 yes:) 41746 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 41747 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 41748 ac_tool_warned=yes ;; 41749 esac 41750 NM=$ac_ct_NM 41751 fi 41752 fi 41753 41754 else 41755 # The variable is set, but is it from the command line or the environment? 41756 41757 # Try to remove the string !NM! from our list. 41758 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!NM!/} 41759 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 41760 # If it failed, the variable was not from the command line. Ignore it, 41761 # but warn the user (except for BASH, which is always set by the calling BASH). 41762 if test "xNM" != xBASH; then 41763 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of NM from the environment. Use command line variables instead." >&5 41764 $as_echo "$as_me: WARNING: Ignoring value of NM from the environment. Use command line variables instead." >&2;} 41765 fi 41766 # Try to locate tool using the code snippet 41767 if test -n "$ac_tool_prefix"; then 41768 for ac_prog in nm gcc-nm 41769 do 41770 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 41771 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 41772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 41773 $as_echo_n "checking for $ac_word... " >&6; } 41774 if ${ac_cv_prog_NM+:} false; then : 41775 $as_echo_n "(cached) " >&6 41776 else 41777 if test -n "$NM"; then 41778 ac_cv_prog_NM="$NM" # Let the user override the test. 41779 else 41780 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 41781 for as_dir in $PATH 41782 do 41783 IFS=$as_save_IFS 41784 test -z "$as_dir" && as_dir=. 41785 for ac_exec_ext in '' $ac_executable_extensions; do 41786 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 41787 ac_cv_prog_NM="$ac_tool_prefix$ac_prog" 41788 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 41789 break 2 41790 fi 41791 done 41792 done 41793 IFS=$as_save_IFS 41794 41795 fi 41796 fi 41797 NM=$ac_cv_prog_NM 41798 if test -n "$NM"; then 41799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5 41800 $as_echo "$NM" >&6; } 41801 else 41802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 41803 $as_echo "no" >&6; } 41804 fi 41805 41806 41807 test -n "$NM" && break 41808 done 41809 fi 41810 if test -z "$NM"; then 41811 ac_ct_NM=$NM 41812 for ac_prog in nm gcc-nm 41813 do 41814 # Extract the first word of "$ac_prog", so it can be a program name with args. 41815 set dummy $ac_prog; ac_word=$2 41816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 41817 $as_echo_n "checking for $ac_word... " >&6; } 41818 if ${ac_cv_prog_ac_ct_NM+:} false; then : 41819 $as_echo_n "(cached) " >&6 41820 else 41821 if test -n "$ac_ct_NM"; then 41822 ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test. 41823 else 41824 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 41825 for as_dir in $PATH 41826 do 41827 IFS=$as_save_IFS 41828 test -z "$as_dir" && as_dir=. 41829 for ac_exec_ext in '' $ac_executable_extensions; do 41830 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 41831 ac_cv_prog_ac_ct_NM="$ac_prog" 41832 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 41833 break 2 41834 fi 41835 done 41836 done 41837 IFS=$as_save_IFS 41838 41839 fi 41840 fi 41841 ac_ct_NM=$ac_cv_prog_ac_ct_NM 41842 if test -n "$ac_ct_NM"; then 41843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NM" >&5 41844 $as_echo "$ac_ct_NM" >&6; } 41845 else 41846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 41847 $as_echo "no" >&6; } 41848 fi 41849 41850 41851 test -n "$ac_ct_NM" && break 41852 done 41853 41854 if test "x$ac_ct_NM" = x; then 41855 NM="" 41856 else 41857 case $cross_compiling:$ac_tool_warned in 41858 yes:) 41859 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 41860 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 41861 ac_tool_warned=yes ;; 41862 esac 41863 NM=$ac_ct_NM 41864 fi 41865 fi 41866 41867 else 41868 # If it succeeded, then it was overridden by the user. We will use it 41869 # for the tool. 41870 41871 # First remove it from the list of overridden variables, so we can test 41872 # for unknown variables in the end. 41873 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 41874 41875 # Check if we try to supply an empty value 41876 if test "x$NM" = x; then 41877 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool NM= (no value)" >&5 41878 $as_echo "$as_me: Setting user supplied tool NM= (no value)" >&6;} 41879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NM" >&5 41880 $as_echo_n "checking for NM... " >&6; } 41881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 41882 $as_echo "disabled" >&6; } 41883 else 41884 # Check if the provided tool contains a complete path. 41885 tool_specified="$NM" 41886 tool_basename="${tool_specified##*/}" 41887 if test "x$tool_basename" = "x$tool_specified"; then 41888 # A command without a complete path is provided, search $PATH. 41889 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool NM=$tool_basename" >&5 41890 $as_echo "$as_me: Will search for user supplied tool NM=$tool_basename" >&6;} 41891 # Extract the first word of "$tool_basename", so it can be a program name with args. 41892 set dummy $tool_basename; ac_word=$2 41893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 41894 $as_echo_n "checking for $ac_word... " >&6; } 41895 if ${ac_cv_path_NM+:} false; then : 41896 $as_echo_n "(cached) " >&6 41897 else 41898 case $NM in 41899 [\\/]* | ?:[\\/]*) 41900 ac_cv_path_NM="$NM" # Let the user override the test with a path. 41901 ;; 41902 *) 41903 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 41904 for as_dir in $PATH 41905 do 41906 IFS=$as_save_IFS 41907 test -z "$as_dir" && as_dir=. 41908 for ac_exec_ext in '' $ac_executable_extensions; do 41909 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 41910 ac_cv_path_NM="$as_dir/$ac_word$ac_exec_ext" 41911 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 41912 break 2 41913 fi 41914 done 41915 done 41916 IFS=$as_save_IFS 41917 41918 ;; 41919 esac 41920 fi 41921 NM=$ac_cv_path_NM 41922 if test -n "$NM"; then 41923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5 41924 $as_echo "$NM" >&6; } 41925 else 41926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 41927 $as_echo "no" >&6; } 41928 fi 41929 41930 41931 if test "x$NM" = x; then 41932 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 41933 fi 41934 else 41935 # Otherwise we believe it is a complete path. Use it as it is. 41936 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool NM=$tool_specified" >&5 41937 $as_echo "$as_me: Will use user supplied tool NM=$tool_specified" >&6;} 41938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NM" >&5 41939 $as_echo_n "checking for NM... " >&6; } 41940 if test ! -x "$tool_specified"; then 41941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 41942 $as_echo "not found" >&6; } 41943 as_fn_error $? "User supplied tool NM=$tool_specified does not exist or is not executable" "$LINENO" 5 41944 fi 41945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 41946 $as_echo "$tool_specified" >&6; } 41947 fi 41948 fi 41949 fi 41950 41951 fi 41952 41953 41954 else 41955 41956 41957 # Publish this variable in the help. 41958 41959 41960 if [ -z "${NM+x}" ]; then 41961 # The variable is not set by user, try to locate tool using the code snippet 41962 if test -n "$ac_tool_prefix"; then 41963 for ac_prog in nm 41964 do 41965 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 41966 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 41967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 41968 $as_echo_n "checking for $ac_word... " >&6; } 41969 if ${ac_cv_prog_NM+:} false; then : 41970 $as_echo_n "(cached) " >&6 41971 else 41972 if test -n "$NM"; then 41973 ac_cv_prog_NM="$NM" # Let the user override the test. 41974 else 41975 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 41976 for as_dir in $PATH 41977 do 41978 IFS=$as_save_IFS 41979 test -z "$as_dir" && as_dir=. 41980 for ac_exec_ext in '' $ac_executable_extensions; do 41981 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 41982 ac_cv_prog_NM="$ac_tool_prefix$ac_prog" 41983 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 41984 break 2 41985 fi 41986 done 41987 done 41988 IFS=$as_save_IFS 41989 41990 fi 41991 fi 41992 NM=$ac_cv_prog_NM 41993 if test -n "$NM"; then 41994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5 41995 $as_echo "$NM" >&6; } 41996 else 41997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 41998 $as_echo "no" >&6; } 41999 fi 42000 42001 42002 test -n "$NM" && break 42003 done 42004 fi 42005 if test -z "$NM"; then 42006 ac_ct_NM=$NM 42007 for ac_prog in nm 42008 do 42009 # Extract the first word of "$ac_prog", so it can be a program name with args. 42010 set dummy $ac_prog; ac_word=$2 42011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 42012 $as_echo_n "checking for $ac_word... " >&6; } 42013 if ${ac_cv_prog_ac_ct_NM+:} false; then : 42014 $as_echo_n "(cached) " >&6 42015 else 42016 if test -n "$ac_ct_NM"; then 42017 ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test. 42018 else 42019 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 42020 for as_dir in $PATH 42021 do 42022 IFS=$as_save_IFS 42023 test -z "$as_dir" && as_dir=. 42024 for ac_exec_ext in '' $ac_executable_extensions; do 42025 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 42026 ac_cv_prog_ac_ct_NM="$ac_prog" 42027 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 42028 break 2 42029 fi 42030 done 42031 done 42032 IFS=$as_save_IFS 42033 42034 fi 42035 fi 42036 ac_ct_NM=$ac_cv_prog_ac_ct_NM 42037 if test -n "$ac_ct_NM"; then 42038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NM" >&5 42039 $as_echo "$ac_ct_NM" >&6; } 42040 else 42041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 42042 $as_echo "no" >&6; } 42043 fi 42044 42045 42046 test -n "$ac_ct_NM" && break 42047 done 42048 42049 if test "x$ac_ct_NM" = x; then 42050 NM="" 42051 else 42052 case $cross_compiling:$ac_tool_warned in 42053 yes:) 42054 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 42055 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 42056 ac_tool_warned=yes ;; 42057 esac 42058 NM=$ac_ct_NM 42059 fi 42060 fi 42061 42062 else 42063 # The variable is set, but is it from the command line or the environment? 42064 42065 # Try to remove the string !NM! from our list. 42066 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!NM!/} 42067 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 42068 # If it failed, the variable was not from the command line. Ignore it, 42069 # but warn the user (except for BASH, which is always set by the calling BASH). 42070 if test "xNM" != xBASH; then 42071 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of NM from the environment. Use command line variables instead." >&5 42072 $as_echo "$as_me: WARNING: Ignoring value of NM from the environment. Use command line variables instead." >&2;} 42073 fi 42074 # Try to locate tool using the code snippet 42075 if test -n "$ac_tool_prefix"; then 42076 for ac_prog in nm 42077 do 42078 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 42079 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 42080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 42081 $as_echo_n "checking for $ac_word... " >&6; } 42082 if ${ac_cv_prog_NM+:} false; then : 42083 $as_echo_n "(cached) " >&6 42084 else 42085 if test -n "$NM"; then 42086 ac_cv_prog_NM="$NM" # Let the user override the test. 42087 else 42088 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 42089 for as_dir in $PATH 42090 do 42091 IFS=$as_save_IFS 42092 test -z "$as_dir" && as_dir=. 42093 for ac_exec_ext in '' $ac_executable_extensions; do 42094 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 42095 ac_cv_prog_NM="$ac_tool_prefix$ac_prog" 42096 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 42097 break 2 42098 fi 42099 done 42100 done 42101 IFS=$as_save_IFS 42102 42103 fi 42104 fi 42105 NM=$ac_cv_prog_NM 42106 if test -n "$NM"; then 42107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5 42108 $as_echo "$NM" >&6; } 42109 else 42110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 42111 $as_echo "no" >&6; } 42112 fi 42113 42114 42115 test -n "$NM" && break 42116 done 42117 fi 42118 if test -z "$NM"; then 42119 ac_ct_NM=$NM 42120 for ac_prog in nm 42121 do 42122 # Extract the first word of "$ac_prog", so it can be a program name with args. 42123 set dummy $ac_prog; ac_word=$2 42124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 42125 $as_echo_n "checking for $ac_word... " >&6; } 42126 if ${ac_cv_prog_ac_ct_NM+:} false; then : 42127 $as_echo_n "(cached) " >&6 42128 else 42129 if test -n "$ac_ct_NM"; then 42130 ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test. 42131 else 42132 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 42133 for as_dir in $PATH 42134 do 42135 IFS=$as_save_IFS 42136 test -z "$as_dir" && as_dir=. 42137 for ac_exec_ext in '' $ac_executable_extensions; do 42138 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 42139 ac_cv_prog_ac_ct_NM="$ac_prog" 42140 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 42141 break 2 42142 fi 42143 done 42144 done 42145 IFS=$as_save_IFS 42146 42147 fi 42148 fi 42149 ac_ct_NM=$ac_cv_prog_ac_ct_NM 42150 if test -n "$ac_ct_NM"; then 42151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NM" >&5 42152 $as_echo "$ac_ct_NM" >&6; } 42153 else 42154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 42155 $as_echo "no" >&6; } 42156 fi 42157 42158 42159 test -n "$ac_ct_NM" && break 42160 done 42161 42162 if test "x$ac_ct_NM" = x; then 42163 NM="" 42164 else 42165 case $cross_compiling:$ac_tool_warned in 42166 yes:) 42167 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 42168 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 42169 ac_tool_warned=yes ;; 42170 esac 42171 NM=$ac_ct_NM 42172 fi 42173 fi 42174 42175 else 42176 # If it succeeded, then it was overridden by the user. We will use it 42177 # for the tool. 42178 42179 # First remove it from the list of overridden variables, so we can test 42180 # for unknown variables in the end. 42181 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 42182 42183 # Check if we try to supply an empty value 42184 if test "x$NM" = x; then 42185 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool NM= (no value)" >&5 42186 $as_echo "$as_me: Setting user supplied tool NM= (no value)" >&6;} 42187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NM" >&5 42188 $as_echo_n "checking for NM... " >&6; } 42189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 42190 $as_echo "disabled" >&6; } 42191 else 42192 # Check if the provided tool contains a complete path. 42193 tool_specified="$NM" 42194 tool_basename="${tool_specified##*/}" 42195 if test "x$tool_basename" = "x$tool_specified"; then 42196 # A command without a complete path is provided, search $PATH. 42197 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool NM=$tool_basename" >&5 42198 $as_echo "$as_me: Will search for user supplied tool NM=$tool_basename" >&6;} 42199 # Extract the first word of "$tool_basename", so it can be a program name with args. 42200 set dummy $tool_basename; ac_word=$2 42201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 42202 $as_echo_n "checking for $ac_word... " >&6; } 42203 if ${ac_cv_path_NM+:} false; then : 42204 $as_echo_n "(cached) " >&6 42205 else 42206 case $NM in 42207 [\\/]* | ?:[\\/]*) 42208 ac_cv_path_NM="$NM" # Let the user override the test with a path. 42209 ;; 42210 *) 42211 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 42212 for as_dir in $PATH 42213 do 42214 IFS=$as_save_IFS 42215 test -z "$as_dir" && as_dir=. 42216 for ac_exec_ext in '' $ac_executable_extensions; do 42217 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 42218 ac_cv_path_NM="$as_dir/$ac_word$ac_exec_ext" 42219 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 42220 break 2 42221 fi 42222 done 42223 done 42224 IFS=$as_save_IFS 42225 42226 ;; 42227 esac 42228 fi 42229 NM=$ac_cv_path_NM 42230 if test -n "$NM"; then 42231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5 42232 $as_echo "$NM" >&6; } 42233 else 42234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 42235 $as_echo "no" >&6; } 42236 fi 42237 42238 42239 if test "x$NM" = x; then 42240 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 42241 fi 42242 else 42243 # Otherwise we believe it is a complete path. Use it as it is. 42244 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool NM=$tool_specified" >&5 42245 $as_echo "$as_me: Will use user supplied tool NM=$tool_specified" >&6;} 42246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NM" >&5 42247 $as_echo_n "checking for NM... " >&6; } 42248 if test ! -x "$tool_specified"; then 42249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 42250 $as_echo "not found" >&6; } 42251 as_fn_error $? "User supplied tool NM=$tool_specified does not exist or is not executable" "$LINENO" 5 42252 fi 42253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 42254 $as_echo "$tool_specified" >&6; } 42255 fi 42256 fi 42257 fi 42258 42259 fi 42260 42261 42262 fi 42263 42264 # Only process if variable expands to non-empty 42265 42266 if test "x$NM" != x; then 42267 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 42268 42269 # First separate the path from the arguments. This will split at the first 42270 # space. 42271 complete="$NM" 42272 path="${complete%% *}" 42273 tmp="$complete EOL" 42274 arguments="${tmp#* }" 42275 42276 # Input might be given as Windows format, start by converting to 42277 # unix format. 42278 new_path=`$CYGPATH -u "$path"` 42279 42280 # Now try to locate executable using which 42281 new_path=`$WHICH "$new_path" 2> /dev/null` 42282 # bat and cmd files are not always considered executable in cygwin causing which 42283 # to not find them 42284 if test "x$new_path" = x \ 42285 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 42286 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 42287 new_path=`$CYGPATH -u "$path"` 42288 fi 42289 if test "x$new_path" = x; then 42290 # Oops. Which didn't find the executable. 42291 # The splitting of arguments from the executable at a space might have been incorrect, 42292 # since paths with space are more likely in Windows. Give it another try with the whole 42293 # argument. 42294 path="$complete" 42295 arguments="EOL" 42296 new_path=`$CYGPATH -u "$path"` 42297 new_path=`$WHICH "$new_path" 2> /dev/null` 42298 # bat and cmd files are not always considered executable in cygwin causing which 42299 # to not find them 42300 if test "x$new_path" = x \ 42301 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 42302 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 42303 new_path=`$CYGPATH -u "$path"` 42304 fi 42305 if test "x$new_path" = x; then 42306 # It's still not found. Now this is an unrecoverable error. 42307 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of NM, which resolves as \"$complete\", is not found." >&5 42308 $as_echo "$as_me: The path of NM, which resolves as \"$complete\", is not found." >&6;} 42309 has_space=`$ECHO "$complete" | $GREP " "` 42310 if test "x$has_space" != x; then 42311 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 42312 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 42313 fi 42314 as_fn_error $? "Cannot locate the the path of NM" "$LINENO" 5 42315 fi 42316 fi 42317 42318 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 42319 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 42320 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 42321 # "foo.exe" is OK but "foo" is an error. 42322 # 42323 # This test is therefore slightly more accurate than "test -f" to check for file presence. 42324 # It is also a way to make sure we got the proper file name for the real test later on. 42325 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 42326 if test "x$test_shortpath" = x; then 42327 # Short path failed, file does not exist as specified. 42328 # Try adding .exe or .cmd 42329 if test -f "${new_path}.exe"; then 42330 input_to_shortpath="${new_path}.exe" 42331 elif test -f "${new_path}.cmd"; then 42332 input_to_shortpath="${new_path}.cmd" 42333 else 42334 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of NM, which resolves as \"$new_path\", is invalid." >&5 42335 $as_echo "$as_me: The path of NM, which resolves as \"$new_path\", is invalid." >&6;} 42336 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 42337 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 42338 as_fn_error $? "Cannot locate the the path of NM" "$LINENO" 5 42339 fi 42340 else 42341 input_to_shortpath="$new_path" 42342 fi 42343 42344 # Call helper function which possibly converts this using DOS-style short mode. 42345 # If so, the updated path is stored in $new_path. 42346 new_path="$input_to_shortpath" 42347 42348 input_path="$input_to_shortpath" 42349 # Check if we need to convert this using DOS-style short mode. If the path 42350 # contains just simple characters, use it. Otherwise (spaces, weird characters), 42351 # take no chances and rewrite it. 42352 # Note: m4 eats our [], so we need to use [ and ] instead. 42353 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 42354 if test "x$has_forbidden_chars" != x; then 42355 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 42356 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 42357 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 42358 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 42359 # Going to short mode and back again did indeed matter. Since short mode is 42360 # case insensitive, let's make it lowercase to improve readability. 42361 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 42362 # Now convert it back to Unix-style (cygpath) 42363 input_path=`$CYGPATH -u "$shortmode_path"` 42364 new_path="$input_path" 42365 fi 42366 fi 42367 42368 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 42369 if test "x$test_cygdrive_prefix" = x; then 42370 # As a simple fix, exclude /usr/bin since it's not a real path. 42371 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 42372 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 42373 # a path prefixed by /cygdrive for fixpath to work. 42374 new_path="$CYGWIN_ROOT_PATH$input_path" 42375 fi 42376 fi 42377 42378 # remove trailing .exe if any 42379 new_path="${new_path/%.exe/}" 42380 42381 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 42382 42383 # First separate the path from the arguments. This will split at the first 42384 # space. 42385 complete="$NM" 42386 path="${complete%% *}" 42387 tmp="$complete EOL" 42388 arguments="${tmp#* }" 42389 42390 # Input might be given as Windows format, start by converting to 42391 # unix format. 42392 new_path="$path" 42393 42394 windows_path="$new_path" 42395 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 42396 unix_path=`$CYGPATH -u "$windows_path"` 42397 new_path="$unix_path" 42398 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 42399 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 42400 new_path="$unix_path" 42401 fi 42402 42403 42404 # Now try to locate executable using which 42405 new_path=`$WHICH "$new_path" 2> /dev/null` 42406 42407 if test "x$new_path" = x; then 42408 # Oops. Which didn't find the executable. 42409 # The splitting of arguments from the executable at a space might have been incorrect, 42410 # since paths with space are more likely in Windows. Give it another try with the whole 42411 # argument. 42412 path="$complete" 42413 arguments="EOL" 42414 new_path="$path" 42415 42416 windows_path="$new_path" 42417 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 42418 unix_path=`$CYGPATH -u "$windows_path"` 42419 new_path="$unix_path" 42420 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 42421 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 42422 new_path="$unix_path" 42423 fi 42424 42425 42426 new_path=`$WHICH "$new_path" 2> /dev/null` 42427 # bat and cmd files are not always considered executable in MSYS causing which 42428 # to not find them 42429 if test "x$new_path" = x \ 42430 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 42431 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 42432 new_path="$path" 42433 42434 windows_path="$new_path" 42435 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 42436 unix_path=`$CYGPATH -u "$windows_path"` 42437 new_path="$unix_path" 42438 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 42439 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 42440 new_path="$unix_path" 42441 fi 42442 42443 fi 42444 42445 if test "x$new_path" = x; then 42446 # It's still not found. Now this is an unrecoverable error. 42447 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of NM, which resolves as \"$complete\", is not found." >&5 42448 $as_echo "$as_me: The path of NM, which resolves as \"$complete\", is not found." >&6;} 42449 has_space=`$ECHO "$complete" | $GREP " "` 42450 if test "x$has_space" != x; then 42451 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 42452 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 42453 fi 42454 as_fn_error $? "Cannot locate the the path of NM" "$LINENO" 5 42455 fi 42456 fi 42457 42458 # Now new_path has a complete unix path to the binary 42459 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 42460 # Keep paths in /bin as-is, but remove trailing .exe if any 42461 new_path="${new_path/%.exe/}" 42462 # Do not save /bin paths to all_fixpath_prefixes! 42463 else 42464 # Not in mixed or Windows style, start by that. 42465 new_path=`cmd //c echo $new_path` 42466 42467 input_path="$new_path" 42468 # Check if we need to convert this using DOS-style short mode. If the path 42469 # contains just simple characters, use it. Otherwise (spaces, weird characters), 42470 # take no chances and rewrite it. 42471 # Note: m4 eats our [], so we need to use [ and ] instead. 42472 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 42473 if test "x$has_forbidden_chars" != x; then 42474 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 42475 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 42476 fi 42477 42478 # Output is in $new_path 42479 42480 windows_path="$new_path" 42481 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 42482 unix_path=`$CYGPATH -u "$windows_path"` 42483 new_path="$unix_path" 42484 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 42485 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 42486 new_path="$unix_path" 42487 fi 42488 42489 # remove trailing .exe if any 42490 new_path="${new_path/%.exe/}" 42491 42492 # Save the first 10 bytes of this path to the storage, so fixpath can work. 42493 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 42494 fi 42495 42496 else 42497 # We're on a unix platform. Hooray! :) 42498 # First separate the path from the arguments. This will split at the first 42499 # space. 42500 complete="$NM" 42501 path="${complete%% *}" 42502 tmp="$complete EOL" 42503 arguments="${tmp#* }" 42504 42505 # Cannot rely on the command "which" here since it doesn't always work. 42506 is_absolute_path=`$ECHO "$path" | $GREP ^/` 42507 if test -z "$is_absolute_path"; then 42508 # Path to executable is not absolute. Find it. 42509 IFS_save="$IFS" 42510 IFS=: 42511 for p in $PATH; do 42512 if test -f "$p/$path" && test -x "$p/$path"; then 42513 new_path="$p/$path" 42514 break 42515 fi 42516 done 42517 IFS="$IFS_save" 42518 else 42519 # This is an absolute path, we can use it without further modifications. 42520 new_path="$path" 42521 fi 42522 42523 if test "x$new_path" = x; then 42524 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of NM, which resolves as \"$complete\", is not found." >&5 42525 $as_echo "$as_me: The path of NM, which resolves as \"$complete\", is not found." >&6;} 42526 has_space=`$ECHO "$complete" | $GREP " "` 42527 if test "x$has_space" != x; then 42528 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 42529 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 42530 fi 42531 as_fn_error $? "Cannot locate the the path of NM" "$LINENO" 5 42532 fi 42533 fi 42534 42535 # Now join together the path and the arguments once again 42536 if test "x$arguments" != xEOL; then 42537 new_complete="$new_path ${arguments% *}" 42538 else 42539 new_complete="$new_path" 42540 fi 42541 42542 if test "x$complete" != "x$new_complete"; then 42543 NM="$new_complete" 42544 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting NM to \"$new_complete\"" >&5 42545 $as_echo "$as_me: Rewriting NM to \"$new_complete\"" >&6;} 42546 fi 42547 fi 42548 42549 GNM="$NM" 42550 42551 fi 42552 42553 # objcopy is used for moving debug symbols to separate files when 42554 # full debug symbols are enabled. 42555 if test "x$OPENJDK_TARGET_OS" = xsolaris || test "x$OPENJDK_TARGET_OS" = xlinux; then 42556 42557 42558 # Publish this variable in the help. 42559 42560 42561 if [ -z "${OBJCOPY+x}" ]; then 42562 # The variable is not set by user, try to locate tool using the code snippet 42563 if test -n "$ac_tool_prefix"; then 42564 for ac_prog in gobjcopy objcopy 42565 do 42566 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 42567 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 42568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 42569 $as_echo_n "checking for $ac_word... " >&6; } 42570 if ${ac_cv_prog_OBJCOPY+:} false; then : 42571 $as_echo_n "(cached) " >&6 42572 else 42573 if test -n "$OBJCOPY"; then 42574 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test. 42575 else 42576 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 42577 for as_dir in $PATH 42578 do 42579 IFS=$as_save_IFS 42580 test -z "$as_dir" && as_dir=. 42581 for ac_exec_ext in '' $ac_executable_extensions; do 42582 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 42583 ac_cv_prog_OBJCOPY="$ac_tool_prefix$ac_prog" 42584 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 42585 break 2 42586 fi 42587 done 42588 done 42589 IFS=$as_save_IFS 42590 42591 fi 42592 fi 42593 OBJCOPY=$ac_cv_prog_OBJCOPY 42594 if test -n "$OBJCOPY"; then 42595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5 42596 $as_echo "$OBJCOPY" >&6; } 42597 else 42598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 42599 $as_echo "no" >&6; } 42600 fi 42601 42602 42603 test -n "$OBJCOPY" && break 42604 done 42605 fi 42606 if test -z "$OBJCOPY"; then 42607 ac_ct_OBJCOPY=$OBJCOPY 42608 for ac_prog in gobjcopy objcopy 42609 do 42610 # Extract the first word of "$ac_prog", so it can be a program name with args. 42611 set dummy $ac_prog; ac_word=$2 42612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 42613 $as_echo_n "checking for $ac_word... " >&6; } 42614 if ${ac_cv_prog_ac_ct_OBJCOPY+:} false; then : 42615 $as_echo_n "(cached) " >&6 42616 else 42617 if test -n "$ac_ct_OBJCOPY"; then 42618 ac_cv_prog_ac_ct_OBJCOPY="$ac_ct_OBJCOPY" # Let the user override the test. 42619 else 42620 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 42621 for as_dir in $PATH 42622 do 42623 IFS=$as_save_IFS 42624 test -z "$as_dir" && as_dir=. 42625 for ac_exec_ext in '' $ac_executable_extensions; do 42626 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 42627 ac_cv_prog_ac_ct_OBJCOPY="$ac_prog" 42628 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 42629 break 2 42630 fi 42631 done 42632 done 42633 IFS=$as_save_IFS 42634 42635 fi 42636 fi 42637 ac_ct_OBJCOPY=$ac_cv_prog_ac_ct_OBJCOPY 42638 if test -n "$ac_ct_OBJCOPY"; then 42639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJCOPY" >&5 42640 $as_echo "$ac_ct_OBJCOPY" >&6; } 42641 else 42642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 42643 $as_echo "no" >&6; } 42644 fi 42645 42646 42647 test -n "$ac_ct_OBJCOPY" && break 42648 done 42649 42650 if test "x$ac_ct_OBJCOPY" = x; then 42651 OBJCOPY="" 42652 else 42653 case $cross_compiling:$ac_tool_warned in 42654 yes:) 42655 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 42656 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 42657 ac_tool_warned=yes ;; 42658 esac 42659 OBJCOPY=$ac_ct_OBJCOPY 42660 fi 42661 fi 42662 42663 else 42664 # The variable is set, but is it from the command line or the environment? 42665 42666 # Try to remove the string !OBJCOPY! from our list. 42667 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!OBJCOPY!/} 42668 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 42669 # If it failed, the variable was not from the command line. Ignore it, 42670 # but warn the user (except for BASH, which is always set by the calling BASH). 42671 if test "xOBJCOPY" != xBASH; then 42672 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of OBJCOPY from the environment. Use command line variables instead." >&5 42673 $as_echo "$as_me: WARNING: Ignoring value of OBJCOPY from the environment. Use command line variables instead." >&2;} 42674 fi 42675 # Try to locate tool using the code snippet 42676 if test -n "$ac_tool_prefix"; then 42677 for ac_prog in gobjcopy objcopy 42678 do 42679 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 42680 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 42681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 42682 $as_echo_n "checking for $ac_word... " >&6; } 42683 if ${ac_cv_prog_OBJCOPY+:} false; then : 42684 $as_echo_n "(cached) " >&6 42685 else 42686 if test -n "$OBJCOPY"; then 42687 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test. 42688 else 42689 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 42690 for as_dir in $PATH 42691 do 42692 IFS=$as_save_IFS 42693 test -z "$as_dir" && as_dir=. 42694 for ac_exec_ext in '' $ac_executable_extensions; do 42695 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 42696 ac_cv_prog_OBJCOPY="$ac_tool_prefix$ac_prog" 42697 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 42698 break 2 42699 fi 42700 done 42701 done 42702 IFS=$as_save_IFS 42703 42704 fi 42705 fi 42706 OBJCOPY=$ac_cv_prog_OBJCOPY 42707 if test -n "$OBJCOPY"; then 42708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5 42709 $as_echo "$OBJCOPY" >&6; } 42710 else 42711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 42712 $as_echo "no" >&6; } 42713 fi 42714 42715 42716 test -n "$OBJCOPY" && break 42717 done 42718 fi 42719 if test -z "$OBJCOPY"; then 42720 ac_ct_OBJCOPY=$OBJCOPY 42721 for ac_prog in gobjcopy objcopy 42722 do 42723 # Extract the first word of "$ac_prog", so it can be a program name with args. 42724 set dummy $ac_prog; ac_word=$2 42725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 42726 $as_echo_n "checking for $ac_word... " >&6; } 42727 if ${ac_cv_prog_ac_ct_OBJCOPY+:} false; then : 42728 $as_echo_n "(cached) " >&6 42729 else 42730 if test -n "$ac_ct_OBJCOPY"; then 42731 ac_cv_prog_ac_ct_OBJCOPY="$ac_ct_OBJCOPY" # Let the user override the test. 42732 else 42733 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 42734 for as_dir in $PATH 42735 do 42736 IFS=$as_save_IFS 42737 test -z "$as_dir" && as_dir=. 42738 for ac_exec_ext in '' $ac_executable_extensions; do 42739 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 42740 ac_cv_prog_ac_ct_OBJCOPY="$ac_prog" 42741 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 42742 break 2 42743 fi 42744 done 42745 done 42746 IFS=$as_save_IFS 42747 42748 fi 42749 fi 42750 ac_ct_OBJCOPY=$ac_cv_prog_ac_ct_OBJCOPY 42751 if test -n "$ac_ct_OBJCOPY"; then 42752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJCOPY" >&5 42753 $as_echo "$ac_ct_OBJCOPY" >&6; } 42754 else 42755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 42756 $as_echo "no" >&6; } 42757 fi 42758 42759 42760 test -n "$ac_ct_OBJCOPY" && break 42761 done 42762 42763 if test "x$ac_ct_OBJCOPY" = x; then 42764 OBJCOPY="" 42765 else 42766 case $cross_compiling:$ac_tool_warned in 42767 yes:) 42768 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 42769 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 42770 ac_tool_warned=yes ;; 42771 esac 42772 OBJCOPY=$ac_ct_OBJCOPY 42773 fi 42774 fi 42775 42776 else 42777 # If it succeeded, then it was overridden by the user. We will use it 42778 # for the tool. 42779 42780 # First remove it from the list of overridden variables, so we can test 42781 # for unknown variables in the end. 42782 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 42783 42784 # Check if we try to supply an empty value 42785 if test "x$OBJCOPY" = x; then 42786 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool OBJCOPY= (no value)" >&5 42787 $as_echo "$as_me: Setting user supplied tool OBJCOPY= (no value)" >&6;} 42788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OBJCOPY" >&5 42789 $as_echo_n "checking for OBJCOPY... " >&6; } 42790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 42791 $as_echo "disabled" >&6; } 42792 else 42793 # Check if the provided tool contains a complete path. 42794 tool_specified="$OBJCOPY" 42795 tool_basename="${tool_specified##*/}" 42796 if test "x$tool_basename" = "x$tool_specified"; then 42797 # A command without a complete path is provided, search $PATH. 42798 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool OBJCOPY=$tool_basename" >&5 42799 $as_echo "$as_me: Will search for user supplied tool OBJCOPY=$tool_basename" >&6;} 42800 # Extract the first word of "$tool_basename", so it can be a program name with args. 42801 set dummy $tool_basename; ac_word=$2 42802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 42803 $as_echo_n "checking for $ac_word... " >&6; } 42804 if ${ac_cv_path_OBJCOPY+:} false; then : 42805 $as_echo_n "(cached) " >&6 42806 else 42807 case $OBJCOPY in 42808 [\\/]* | ?:[\\/]*) 42809 ac_cv_path_OBJCOPY="$OBJCOPY" # Let the user override the test with a path. 42810 ;; 42811 *) 42812 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 42813 for as_dir in $PATH 42814 do 42815 IFS=$as_save_IFS 42816 test -z "$as_dir" && as_dir=. 42817 for ac_exec_ext in '' $ac_executable_extensions; do 42818 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 42819 ac_cv_path_OBJCOPY="$as_dir/$ac_word$ac_exec_ext" 42820 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 42821 break 2 42822 fi 42823 done 42824 done 42825 IFS=$as_save_IFS 42826 42827 ;; 42828 esac 42829 fi 42830 OBJCOPY=$ac_cv_path_OBJCOPY 42831 if test -n "$OBJCOPY"; then 42832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5 42833 $as_echo "$OBJCOPY" >&6; } 42834 else 42835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 42836 $as_echo "no" >&6; } 42837 fi 42838 42839 42840 if test "x$OBJCOPY" = x; then 42841 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 42842 fi 42843 else 42844 # Otherwise we believe it is a complete path. Use it as it is. 42845 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool OBJCOPY=$tool_specified" >&5 42846 $as_echo "$as_me: Will use user supplied tool OBJCOPY=$tool_specified" >&6;} 42847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OBJCOPY" >&5 42848 $as_echo_n "checking for OBJCOPY... " >&6; } 42849 if test ! -x "$tool_specified"; then 42850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 42851 $as_echo "not found" >&6; } 42852 as_fn_error $? "User supplied tool OBJCOPY=$tool_specified does not exist or is not executable" "$LINENO" 5 42853 fi 42854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 42855 $as_echo "$tool_specified" >&6; } 42856 fi 42857 fi 42858 fi 42859 42860 fi 42861 42862 42863 # Only call fixup if objcopy was found. 42864 if test -n "$OBJCOPY"; then 42865 42866 # Only process if variable expands to non-empty 42867 42868 if test "x$OBJCOPY" != x; then 42869 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 42870 42871 # First separate the path from the arguments. This will split at the first 42872 # space. 42873 complete="$OBJCOPY" 42874 path="${complete%% *}" 42875 tmp="$complete EOL" 42876 arguments="${tmp#* }" 42877 42878 # Input might be given as Windows format, start by converting to 42879 # unix format. 42880 new_path=`$CYGPATH -u "$path"` 42881 42882 # Now try to locate executable using which 42883 new_path=`$WHICH "$new_path" 2> /dev/null` 42884 # bat and cmd files are not always considered executable in cygwin causing which 42885 # to not find them 42886 if test "x$new_path" = x \ 42887 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 42888 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 42889 new_path=`$CYGPATH -u "$path"` 42890 fi 42891 if test "x$new_path" = x; then 42892 # Oops. Which didn't find the executable. 42893 # The splitting of arguments from the executable at a space might have been incorrect, 42894 # since paths with space are more likely in Windows. Give it another try with the whole 42895 # argument. 42896 path="$complete" 42897 arguments="EOL" 42898 new_path=`$CYGPATH -u "$path"` 42899 new_path=`$WHICH "$new_path" 2> /dev/null` 42900 # bat and cmd files are not always considered executable in cygwin causing which 42901 # to not find them 42902 if test "x$new_path" = x \ 42903 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 42904 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 42905 new_path=`$CYGPATH -u "$path"` 42906 fi 42907 if test "x$new_path" = x; then 42908 # It's still not found. Now this is an unrecoverable error. 42909 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OBJCOPY, which resolves as \"$complete\", is not found." >&5 42910 $as_echo "$as_me: The path of OBJCOPY, which resolves as \"$complete\", is not found." >&6;} 42911 has_space=`$ECHO "$complete" | $GREP " "` 42912 if test "x$has_space" != x; then 42913 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 42914 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 42915 fi 42916 as_fn_error $? "Cannot locate the the path of OBJCOPY" "$LINENO" 5 42917 fi 42918 fi 42919 42920 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 42921 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 42922 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 42923 # "foo.exe" is OK but "foo" is an error. 42924 # 42925 # This test is therefore slightly more accurate than "test -f" to check for file presence. 42926 # It is also a way to make sure we got the proper file name for the real test later on. 42927 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 42928 if test "x$test_shortpath" = x; then 42929 # Short path failed, file does not exist as specified. 42930 # Try adding .exe or .cmd 42931 if test -f "${new_path}.exe"; then 42932 input_to_shortpath="${new_path}.exe" 42933 elif test -f "${new_path}.cmd"; then 42934 input_to_shortpath="${new_path}.cmd" 42935 else 42936 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OBJCOPY, which resolves as \"$new_path\", is invalid." >&5 42937 $as_echo "$as_me: The path of OBJCOPY, which resolves as \"$new_path\", is invalid." >&6;} 42938 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 42939 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 42940 as_fn_error $? "Cannot locate the the path of OBJCOPY" "$LINENO" 5 42941 fi 42942 else 42943 input_to_shortpath="$new_path" 42944 fi 42945 42946 # Call helper function which possibly converts this using DOS-style short mode. 42947 # If so, the updated path is stored in $new_path. 42948 new_path="$input_to_shortpath" 42949 42950 input_path="$input_to_shortpath" 42951 # Check if we need to convert this using DOS-style short mode. If the path 42952 # contains just simple characters, use it. Otherwise (spaces, weird characters), 42953 # take no chances and rewrite it. 42954 # Note: m4 eats our [], so we need to use [ and ] instead. 42955 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 42956 if test "x$has_forbidden_chars" != x; then 42957 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 42958 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 42959 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 42960 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 42961 # Going to short mode and back again did indeed matter. Since short mode is 42962 # case insensitive, let's make it lowercase to improve readability. 42963 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 42964 # Now convert it back to Unix-style (cygpath) 42965 input_path=`$CYGPATH -u "$shortmode_path"` 42966 new_path="$input_path" 42967 fi 42968 fi 42969 42970 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 42971 if test "x$test_cygdrive_prefix" = x; then 42972 # As a simple fix, exclude /usr/bin since it's not a real path. 42973 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 42974 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 42975 # a path prefixed by /cygdrive for fixpath to work. 42976 new_path="$CYGWIN_ROOT_PATH$input_path" 42977 fi 42978 fi 42979 42980 # remove trailing .exe if any 42981 new_path="${new_path/%.exe/}" 42982 42983 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 42984 42985 # First separate the path from the arguments. This will split at the first 42986 # space. 42987 complete="$OBJCOPY" 42988 path="${complete%% *}" 42989 tmp="$complete EOL" 42990 arguments="${tmp#* }" 42991 42992 # Input might be given as Windows format, start by converting to 42993 # unix format. 42994 new_path="$path" 42995 42996 windows_path="$new_path" 42997 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 42998 unix_path=`$CYGPATH -u "$windows_path"` 42999 new_path="$unix_path" 43000 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 43001 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 43002 new_path="$unix_path" 43003 fi 43004 43005 43006 # Now try to locate executable using which 43007 new_path=`$WHICH "$new_path" 2> /dev/null` 43008 43009 if test "x$new_path" = x; then 43010 # Oops. Which didn't find the executable. 43011 # The splitting of arguments from the executable at a space might have been incorrect, 43012 # since paths with space are more likely in Windows. Give it another try with the whole 43013 # argument. 43014 path="$complete" 43015 arguments="EOL" 43016 new_path="$path" 43017 43018 windows_path="$new_path" 43019 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 43020 unix_path=`$CYGPATH -u "$windows_path"` 43021 new_path="$unix_path" 43022 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 43023 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 43024 new_path="$unix_path" 43025 fi 43026 43027 43028 new_path=`$WHICH "$new_path" 2> /dev/null` 43029 # bat and cmd files are not always considered executable in MSYS causing which 43030 # to not find them 43031 if test "x$new_path" = x \ 43032 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 43033 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 43034 new_path="$path" 43035 43036 windows_path="$new_path" 43037 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 43038 unix_path=`$CYGPATH -u "$windows_path"` 43039 new_path="$unix_path" 43040 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 43041 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 43042 new_path="$unix_path" 43043 fi 43044 43045 fi 43046 43047 if test "x$new_path" = x; then 43048 # It's still not found. Now this is an unrecoverable error. 43049 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OBJCOPY, which resolves as \"$complete\", is not found." >&5 43050 $as_echo "$as_me: The path of OBJCOPY, which resolves as \"$complete\", is not found." >&6;} 43051 has_space=`$ECHO "$complete" | $GREP " "` 43052 if test "x$has_space" != x; then 43053 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 43054 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 43055 fi 43056 as_fn_error $? "Cannot locate the the path of OBJCOPY" "$LINENO" 5 43057 fi 43058 fi 43059 43060 # Now new_path has a complete unix path to the binary 43061 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 43062 # Keep paths in /bin as-is, but remove trailing .exe if any 43063 new_path="${new_path/%.exe/}" 43064 # Do not save /bin paths to all_fixpath_prefixes! 43065 else 43066 # Not in mixed or Windows style, start by that. 43067 new_path=`cmd //c echo $new_path` 43068 43069 input_path="$new_path" 43070 # Check if we need to convert this using DOS-style short mode. If the path 43071 # contains just simple characters, use it. Otherwise (spaces, weird characters), 43072 # take no chances and rewrite it. 43073 # Note: m4 eats our [], so we need to use [ and ] instead. 43074 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 43075 if test "x$has_forbidden_chars" != x; then 43076 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 43077 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 43078 fi 43079 43080 # Output is in $new_path 43081 43082 windows_path="$new_path" 43083 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 43084 unix_path=`$CYGPATH -u "$windows_path"` 43085 new_path="$unix_path" 43086 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 43087 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 43088 new_path="$unix_path" 43089 fi 43090 43091 # remove trailing .exe if any 43092 new_path="${new_path/%.exe/}" 43093 43094 # Save the first 10 bytes of this path to the storage, so fixpath can work. 43095 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 43096 fi 43097 43098 else 43099 # We're on a unix platform. Hooray! :) 43100 # First separate the path from the arguments. This will split at the first 43101 # space. 43102 complete="$OBJCOPY" 43103 path="${complete%% *}" 43104 tmp="$complete EOL" 43105 arguments="${tmp#* }" 43106 43107 # Cannot rely on the command "which" here since it doesn't always work. 43108 is_absolute_path=`$ECHO "$path" | $GREP ^/` 43109 if test -z "$is_absolute_path"; then 43110 # Path to executable is not absolute. Find it. 43111 IFS_save="$IFS" 43112 IFS=: 43113 for p in $PATH; do 43114 if test -f "$p/$path" && test -x "$p/$path"; then 43115 new_path="$p/$path" 43116 break 43117 fi 43118 done 43119 IFS="$IFS_save" 43120 else 43121 # This is an absolute path, we can use it without further modifications. 43122 new_path="$path" 43123 fi 43124 43125 if test "x$new_path" = x; then 43126 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OBJCOPY, which resolves as \"$complete\", is not found." >&5 43127 $as_echo "$as_me: The path of OBJCOPY, which resolves as \"$complete\", is not found." >&6;} 43128 has_space=`$ECHO "$complete" | $GREP " "` 43129 if test "x$has_space" != x; then 43130 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 43131 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 43132 fi 43133 as_fn_error $? "Cannot locate the the path of OBJCOPY" "$LINENO" 5 43134 fi 43135 fi 43136 43137 # Now join together the path and the arguments once again 43138 if test "x$arguments" != xEOL; then 43139 new_complete="$new_path ${arguments% *}" 43140 else 43141 new_complete="$new_path" 43142 fi 43143 43144 if test "x$complete" != "x$new_complete"; then 43145 OBJCOPY="$new_complete" 43146 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting OBJCOPY to \"$new_complete\"" >&5 43147 $as_echo "$as_me: Rewriting OBJCOPY to \"$new_complete\"" >&6;} 43148 fi 43149 fi 43150 43151 if test "x$OPENJDK_BUILD_OS" = xsolaris; then 43152 # objcopy prior to 2.21.1 on solaris is broken and is not usable. 43153 # Rewrite objcopy version output to VALID_VERSION or BAD_VERSION. 43154 # - version number is last blank separate word on first line 43155 # - version number formats that have been seen: 43156 # - <major>.<minor> 43157 # - <major>.<minor>.<micro> 43158 OBJCOPY_VERSION=`$OBJCOPY --version | $HEAD -n 1` 43159 # The outer [ ] is to prevent m4 from eating the [] in the sed expression. 43160 OBJCOPY_VERSION_CHECK=`$ECHO $OBJCOPY_VERSION | $SED -n \ 43161 -e 's/.* //' \ 43162 -e '/^[01]\./b bad' \ 43163 -e '/^2\./{' \ 43164 -e ' s/^2\.//' \ 43165 -e ' /^[0-9]$/b bad' \ 43166 -e ' /^[0-9]\./b bad' \ 43167 -e ' /^1[0-9]$/b bad' \ 43168 -e ' /^1[0-9]\./b bad' \ 43169 -e ' /^20\./b bad' \ 43170 -e ' /^21\.0$/b bad' \ 43171 -e ' /^21\.0\./b bad' \ 43172 -e '}' \ 43173 -e ':good' \ 43174 -e 's/.*/VALID_VERSION/p' \ 43175 -e 'q' \ 43176 -e ':bad' \ 43177 -e 's/.*/BAD_VERSION/p' \ 43178 -e 'q'` 43179 if test "x$OBJCOPY_VERSION_CHECK" = xBAD_VERSION; then 43180 OBJCOPY= 43181 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring found objcopy since it is broken (prior to 2.21.1). No debug symbols will be generated." >&5 43182 $as_echo "$as_me: WARNING: Ignoring found objcopy since it is broken (prior to 2.21.1). No debug symbols will be generated." >&2;} 43183 { $as_echo "$as_me:${as_lineno-$LINENO}: objcopy reports version $OBJCOPY_VERSION" >&5 43184 $as_echo "$as_me: objcopy reports version $OBJCOPY_VERSION" >&6;} 43185 { $as_echo "$as_me:${as_lineno-$LINENO}: Note: patch 149063-01 or newer contains the correct Solaris 10 SPARC version" >&5 43186 $as_echo "$as_me: Note: patch 149063-01 or newer contains the correct Solaris 10 SPARC version" >&6;} 43187 { $as_echo "$as_me:${as_lineno-$LINENO}: Note: patch 149064-01 or newer contains the correct Solaris 10 X86 version" >&5 43188 $as_echo "$as_me: Note: patch 149064-01 or newer contains the correct Solaris 10 X86 version" >&6;} 43189 { $as_echo "$as_me:${as_lineno-$LINENO}: Note: Solaris 11 Update 1 contains the correct version" >&5 43190 $as_echo "$as_me: Note: Solaris 11 Update 1 contains the correct version" >&6;} 43191 fi 43192 fi 43193 fi 43194 fi 43195 43196 43197 43198 # Publish this variable in the help. 43199 43200 43201 if [ -z "${OBJDUMP+x}" ]; then 43202 # The variable is not set by user, try to locate tool using the code snippet 43203 if test -n "$ac_tool_prefix"; then 43204 for ac_prog in gobjdump objdump 43205 do 43206 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 43207 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 43208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 43209 $as_echo_n "checking for $ac_word... " >&6; } 43210 if ${ac_cv_prog_OBJDUMP+:} false; then : 43211 $as_echo_n "(cached) " >&6 43212 else 43213 if test -n "$OBJDUMP"; then 43214 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 43215 else 43216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 43217 for as_dir in $PATH 43218 do 43219 IFS=$as_save_IFS 43220 test -z "$as_dir" && as_dir=. 43221 for ac_exec_ext in '' $ac_executable_extensions; do 43222 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 43223 ac_cv_prog_OBJDUMP="$ac_tool_prefix$ac_prog" 43224 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 43225 break 2 43226 fi 43227 done 43228 done 43229 IFS=$as_save_IFS 43230 43231 fi 43232 fi 43233 OBJDUMP=$ac_cv_prog_OBJDUMP 43234 if test -n "$OBJDUMP"; then 43235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 43236 $as_echo "$OBJDUMP" >&6; } 43237 else 43238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 43239 $as_echo "no" >&6; } 43240 fi 43241 43242 43243 test -n "$OBJDUMP" && break 43244 done 43245 fi 43246 if test -z "$OBJDUMP"; then 43247 ac_ct_OBJDUMP=$OBJDUMP 43248 for ac_prog in gobjdump objdump 43249 do 43250 # Extract the first word of "$ac_prog", so it can be a program name with args. 43251 set dummy $ac_prog; ac_word=$2 43252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 43253 $as_echo_n "checking for $ac_word... " >&6; } 43254 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : 43255 $as_echo_n "(cached) " >&6 43256 else 43257 if test -n "$ac_ct_OBJDUMP"; then 43258 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 43259 else 43260 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 43261 for as_dir in $PATH 43262 do 43263 IFS=$as_save_IFS 43264 test -z "$as_dir" && as_dir=. 43265 for ac_exec_ext in '' $ac_executable_extensions; do 43266 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 43267 ac_cv_prog_ac_ct_OBJDUMP="$ac_prog" 43268 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 43269 break 2 43270 fi 43271 done 43272 done 43273 IFS=$as_save_IFS 43274 43275 fi 43276 fi 43277 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 43278 if test -n "$ac_ct_OBJDUMP"; then 43279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 43280 $as_echo "$ac_ct_OBJDUMP" >&6; } 43281 else 43282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 43283 $as_echo "no" >&6; } 43284 fi 43285 43286 43287 test -n "$ac_ct_OBJDUMP" && break 43288 done 43289 43290 if test "x$ac_ct_OBJDUMP" = x; then 43291 OBJDUMP="" 43292 else 43293 case $cross_compiling:$ac_tool_warned in 43294 yes:) 43295 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 43296 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 43297 ac_tool_warned=yes ;; 43298 esac 43299 OBJDUMP=$ac_ct_OBJDUMP 43300 fi 43301 fi 43302 43303 else 43304 # The variable is set, but is it from the command line or the environment? 43305 43306 # Try to remove the string !OBJDUMP! from our list. 43307 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!OBJDUMP!/} 43308 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 43309 # If it failed, the variable was not from the command line. Ignore it, 43310 # but warn the user (except for BASH, which is always set by the calling BASH). 43311 if test "xOBJDUMP" != xBASH; then 43312 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of OBJDUMP from the environment. Use command line variables instead." >&5 43313 $as_echo "$as_me: WARNING: Ignoring value of OBJDUMP from the environment. Use command line variables instead." >&2;} 43314 fi 43315 # Try to locate tool using the code snippet 43316 if test -n "$ac_tool_prefix"; then 43317 for ac_prog in gobjdump objdump 43318 do 43319 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 43320 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 43321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 43322 $as_echo_n "checking for $ac_word... " >&6; } 43323 if ${ac_cv_prog_OBJDUMP+:} false; then : 43324 $as_echo_n "(cached) " >&6 43325 else 43326 if test -n "$OBJDUMP"; then 43327 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 43328 else 43329 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 43330 for as_dir in $PATH 43331 do 43332 IFS=$as_save_IFS 43333 test -z "$as_dir" && as_dir=. 43334 for ac_exec_ext in '' $ac_executable_extensions; do 43335 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 43336 ac_cv_prog_OBJDUMP="$ac_tool_prefix$ac_prog" 43337 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 43338 break 2 43339 fi 43340 done 43341 done 43342 IFS=$as_save_IFS 43343 43344 fi 43345 fi 43346 OBJDUMP=$ac_cv_prog_OBJDUMP 43347 if test -n "$OBJDUMP"; then 43348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 43349 $as_echo "$OBJDUMP" >&6; } 43350 else 43351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 43352 $as_echo "no" >&6; } 43353 fi 43354 43355 43356 test -n "$OBJDUMP" && break 43357 done 43358 fi 43359 if test -z "$OBJDUMP"; then 43360 ac_ct_OBJDUMP=$OBJDUMP 43361 for ac_prog in gobjdump objdump 43362 do 43363 # Extract the first word of "$ac_prog", so it can be a program name with args. 43364 set dummy $ac_prog; ac_word=$2 43365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 43366 $as_echo_n "checking for $ac_word... " >&6; } 43367 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : 43368 $as_echo_n "(cached) " >&6 43369 else 43370 if test -n "$ac_ct_OBJDUMP"; then 43371 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 43372 else 43373 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 43374 for as_dir in $PATH 43375 do 43376 IFS=$as_save_IFS 43377 test -z "$as_dir" && as_dir=. 43378 for ac_exec_ext in '' $ac_executable_extensions; do 43379 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 43380 ac_cv_prog_ac_ct_OBJDUMP="$ac_prog" 43381 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 43382 break 2 43383 fi 43384 done 43385 done 43386 IFS=$as_save_IFS 43387 43388 fi 43389 fi 43390 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 43391 if test -n "$ac_ct_OBJDUMP"; then 43392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 43393 $as_echo "$ac_ct_OBJDUMP" >&6; } 43394 else 43395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 43396 $as_echo "no" >&6; } 43397 fi 43398 43399 43400 test -n "$ac_ct_OBJDUMP" && break 43401 done 43402 43403 if test "x$ac_ct_OBJDUMP" = x; then 43404 OBJDUMP="" 43405 else 43406 case $cross_compiling:$ac_tool_warned in 43407 yes:) 43408 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 43409 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 43410 ac_tool_warned=yes ;; 43411 esac 43412 OBJDUMP=$ac_ct_OBJDUMP 43413 fi 43414 fi 43415 43416 else 43417 # If it succeeded, then it was overridden by the user. We will use it 43418 # for the tool. 43419 43420 # First remove it from the list of overridden variables, so we can test 43421 # for unknown variables in the end. 43422 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 43423 43424 # Check if we try to supply an empty value 43425 if test "x$OBJDUMP" = x; then 43426 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool OBJDUMP= (no value)" >&5 43427 $as_echo "$as_me: Setting user supplied tool OBJDUMP= (no value)" >&6;} 43428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OBJDUMP" >&5 43429 $as_echo_n "checking for OBJDUMP... " >&6; } 43430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 43431 $as_echo "disabled" >&6; } 43432 else 43433 # Check if the provided tool contains a complete path. 43434 tool_specified="$OBJDUMP" 43435 tool_basename="${tool_specified##*/}" 43436 if test "x$tool_basename" = "x$tool_specified"; then 43437 # A command without a complete path is provided, search $PATH. 43438 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool OBJDUMP=$tool_basename" >&5 43439 $as_echo "$as_me: Will search for user supplied tool OBJDUMP=$tool_basename" >&6;} 43440 # Extract the first word of "$tool_basename", so it can be a program name with args. 43441 set dummy $tool_basename; ac_word=$2 43442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 43443 $as_echo_n "checking for $ac_word... " >&6; } 43444 if ${ac_cv_path_OBJDUMP+:} false; then : 43445 $as_echo_n "(cached) " >&6 43446 else 43447 case $OBJDUMP in 43448 [\\/]* | ?:[\\/]*) 43449 ac_cv_path_OBJDUMP="$OBJDUMP" # Let the user override the test with a path. 43450 ;; 43451 *) 43452 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 43453 for as_dir in $PATH 43454 do 43455 IFS=$as_save_IFS 43456 test -z "$as_dir" && as_dir=. 43457 for ac_exec_ext in '' $ac_executable_extensions; do 43458 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 43459 ac_cv_path_OBJDUMP="$as_dir/$ac_word$ac_exec_ext" 43460 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 43461 break 2 43462 fi 43463 done 43464 done 43465 IFS=$as_save_IFS 43466 43467 ;; 43468 esac 43469 fi 43470 OBJDUMP=$ac_cv_path_OBJDUMP 43471 if test -n "$OBJDUMP"; then 43472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 43473 $as_echo "$OBJDUMP" >&6; } 43474 else 43475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 43476 $as_echo "no" >&6; } 43477 fi 43478 43479 43480 if test "x$OBJDUMP" = x; then 43481 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 43482 fi 43483 else 43484 # Otherwise we believe it is a complete path. Use it as it is. 43485 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool OBJDUMP=$tool_specified" >&5 43486 $as_echo "$as_me: Will use user supplied tool OBJDUMP=$tool_specified" >&6;} 43487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OBJDUMP" >&5 43488 $as_echo_n "checking for OBJDUMP... " >&6; } 43489 if test ! -x "$tool_specified"; then 43490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 43491 $as_echo "not found" >&6; } 43492 as_fn_error $? "User supplied tool OBJDUMP=$tool_specified does not exist or is not executable" "$LINENO" 5 43493 fi 43494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 43495 $as_echo "$tool_specified" >&6; } 43496 fi 43497 fi 43498 fi 43499 43500 fi 43501 43502 43503 if test "x$OBJDUMP" != x; then 43504 # Only used for compare.sh; we can live without it. BASIC_FIXUP_EXECUTABLE 43505 # bails if argument is missing. 43506 43507 # Only process if variable expands to non-empty 43508 43509 if test "x$OBJDUMP" != x; then 43510 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 43511 43512 # First separate the path from the arguments. This will split at the first 43513 # space. 43514 complete="$OBJDUMP" 43515 path="${complete%% *}" 43516 tmp="$complete EOL" 43517 arguments="${tmp#* }" 43518 43519 # Input might be given as Windows format, start by converting to 43520 # unix format. 43521 new_path=`$CYGPATH -u "$path"` 43522 43523 # Now try to locate executable using which 43524 new_path=`$WHICH "$new_path" 2> /dev/null` 43525 # bat and cmd files are not always considered executable in cygwin causing which 43526 # to not find them 43527 if test "x$new_path" = x \ 43528 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 43529 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 43530 new_path=`$CYGPATH -u "$path"` 43531 fi 43532 if test "x$new_path" = x; then 43533 # Oops. Which didn't find the executable. 43534 # The splitting of arguments from the executable at a space might have been incorrect, 43535 # since paths with space are more likely in Windows. Give it another try with the whole 43536 # argument. 43537 path="$complete" 43538 arguments="EOL" 43539 new_path=`$CYGPATH -u "$path"` 43540 new_path=`$WHICH "$new_path" 2> /dev/null` 43541 # bat and cmd files are not always considered executable in cygwin causing which 43542 # to not find them 43543 if test "x$new_path" = x \ 43544 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 43545 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 43546 new_path=`$CYGPATH -u "$path"` 43547 fi 43548 if test "x$new_path" = x; then 43549 # It's still not found. Now this is an unrecoverable error. 43550 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OBJDUMP, which resolves as \"$complete\", is not found." >&5 43551 $as_echo "$as_me: The path of OBJDUMP, which resolves as \"$complete\", is not found." >&6;} 43552 has_space=`$ECHO "$complete" | $GREP " "` 43553 if test "x$has_space" != x; then 43554 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 43555 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 43556 fi 43557 as_fn_error $? "Cannot locate the the path of OBJDUMP" "$LINENO" 5 43558 fi 43559 fi 43560 43561 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 43562 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 43563 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 43564 # "foo.exe" is OK but "foo" is an error. 43565 # 43566 # This test is therefore slightly more accurate than "test -f" to check for file presence. 43567 # It is also a way to make sure we got the proper file name for the real test later on. 43568 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 43569 if test "x$test_shortpath" = x; then 43570 # Short path failed, file does not exist as specified. 43571 # Try adding .exe or .cmd 43572 if test -f "${new_path}.exe"; then 43573 input_to_shortpath="${new_path}.exe" 43574 elif test -f "${new_path}.cmd"; then 43575 input_to_shortpath="${new_path}.cmd" 43576 else 43577 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OBJDUMP, which resolves as \"$new_path\", is invalid." >&5 43578 $as_echo "$as_me: The path of OBJDUMP, which resolves as \"$new_path\", is invalid." >&6;} 43579 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 43580 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 43581 as_fn_error $? "Cannot locate the the path of OBJDUMP" "$LINENO" 5 43582 fi 43583 else 43584 input_to_shortpath="$new_path" 43585 fi 43586 43587 # Call helper function which possibly converts this using DOS-style short mode. 43588 # If so, the updated path is stored in $new_path. 43589 new_path="$input_to_shortpath" 43590 43591 input_path="$input_to_shortpath" 43592 # Check if we need to convert this using DOS-style short mode. If the path 43593 # contains just simple characters, use it. Otherwise (spaces, weird characters), 43594 # take no chances and rewrite it. 43595 # Note: m4 eats our [], so we need to use [ and ] instead. 43596 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 43597 if test "x$has_forbidden_chars" != x; then 43598 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 43599 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 43600 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 43601 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 43602 # Going to short mode and back again did indeed matter. Since short mode is 43603 # case insensitive, let's make it lowercase to improve readability. 43604 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 43605 # Now convert it back to Unix-style (cygpath) 43606 input_path=`$CYGPATH -u "$shortmode_path"` 43607 new_path="$input_path" 43608 fi 43609 fi 43610 43611 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 43612 if test "x$test_cygdrive_prefix" = x; then 43613 # As a simple fix, exclude /usr/bin since it's not a real path. 43614 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 43615 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 43616 # a path prefixed by /cygdrive for fixpath to work. 43617 new_path="$CYGWIN_ROOT_PATH$input_path" 43618 fi 43619 fi 43620 43621 # remove trailing .exe if any 43622 new_path="${new_path/%.exe/}" 43623 43624 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 43625 43626 # First separate the path from the arguments. This will split at the first 43627 # space. 43628 complete="$OBJDUMP" 43629 path="${complete%% *}" 43630 tmp="$complete EOL" 43631 arguments="${tmp#* }" 43632 43633 # Input might be given as Windows format, start by converting to 43634 # unix format. 43635 new_path="$path" 43636 43637 windows_path="$new_path" 43638 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 43639 unix_path=`$CYGPATH -u "$windows_path"` 43640 new_path="$unix_path" 43641 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 43642 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 43643 new_path="$unix_path" 43644 fi 43645 43646 43647 # Now try to locate executable using which 43648 new_path=`$WHICH "$new_path" 2> /dev/null` 43649 43650 if test "x$new_path" = x; then 43651 # Oops. Which didn't find the executable. 43652 # The splitting of arguments from the executable at a space might have been incorrect, 43653 # since paths with space are more likely in Windows. Give it another try with the whole 43654 # argument. 43655 path="$complete" 43656 arguments="EOL" 43657 new_path="$path" 43658 43659 windows_path="$new_path" 43660 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 43661 unix_path=`$CYGPATH -u "$windows_path"` 43662 new_path="$unix_path" 43663 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 43664 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 43665 new_path="$unix_path" 43666 fi 43667 43668 43669 new_path=`$WHICH "$new_path" 2> /dev/null` 43670 # bat and cmd files are not always considered executable in MSYS causing which 43671 # to not find them 43672 if test "x$new_path" = x \ 43673 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 43674 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 43675 new_path="$path" 43676 43677 windows_path="$new_path" 43678 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 43679 unix_path=`$CYGPATH -u "$windows_path"` 43680 new_path="$unix_path" 43681 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 43682 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 43683 new_path="$unix_path" 43684 fi 43685 43686 fi 43687 43688 if test "x$new_path" = x; then 43689 # It's still not found. Now this is an unrecoverable error. 43690 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OBJDUMP, which resolves as \"$complete\", is not found." >&5 43691 $as_echo "$as_me: The path of OBJDUMP, which resolves as \"$complete\", is not found." >&6;} 43692 has_space=`$ECHO "$complete" | $GREP " "` 43693 if test "x$has_space" != x; then 43694 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 43695 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 43696 fi 43697 as_fn_error $? "Cannot locate the the path of OBJDUMP" "$LINENO" 5 43698 fi 43699 fi 43700 43701 # Now new_path has a complete unix path to the binary 43702 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 43703 # Keep paths in /bin as-is, but remove trailing .exe if any 43704 new_path="${new_path/%.exe/}" 43705 # Do not save /bin paths to all_fixpath_prefixes! 43706 else 43707 # Not in mixed or Windows style, start by that. 43708 new_path=`cmd //c echo $new_path` 43709 43710 input_path="$new_path" 43711 # Check if we need to convert this using DOS-style short mode. If the path 43712 # contains just simple characters, use it. Otherwise (spaces, weird characters), 43713 # take no chances and rewrite it. 43714 # Note: m4 eats our [], so we need to use [ and ] instead. 43715 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 43716 if test "x$has_forbidden_chars" != x; then 43717 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 43718 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 43719 fi 43720 43721 # Output is in $new_path 43722 43723 windows_path="$new_path" 43724 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 43725 unix_path=`$CYGPATH -u "$windows_path"` 43726 new_path="$unix_path" 43727 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 43728 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 43729 new_path="$unix_path" 43730 fi 43731 43732 # remove trailing .exe if any 43733 new_path="${new_path/%.exe/}" 43734 43735 # Save the first 10 bytes of this path to the storage, so fixpath can work. 43736 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 43737 fi 43738 43739 else 43740 # We're on a unix platform. Hooray! :) 43741 # First separate the path from the arguments. This will split at the first 43742 # space. 43743 complete="$OBJDUMP" 43744 path="${complete%% *}" 43745 tmp="$complete EOL" 43746 arguments="${tmp#* }" 43747 43748 # Cannot rely on the command "which" here since it doesn't always work. 43749 is_absolute_path=`$ECHO "$path" | $GREP ^/` 43750 if test -z "$is_absolute_path"; then 43751 # Path to executable is not absolute. Find it. 43752 IFS_save="$IFS" 43753 IFS=: 43754 for p in $PATH; do 43755 if test -f "$p/$path" && test -x "$p/$path"; then 43756 new_path="$p/$path" 43757 break 43758 fi 43759 done 43760 IFS="$IFS_save" 43761 else 43762 # This is an absolute path, we can use it without further modifications. 43763 new_path="$path" 43764 fi 43765 43766 if test "x$new_path" = x; then 43767 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OBJDUMP, which resolves as \"$complete\", is not found." >&5 43768 $as_echo "$as_me: The path of OBJDUMP, which resolves as \"$complete\", is not found." >&6;} 43769 has_space=`$ECHO "$complete" | $GREP " "` 43770 if test "x$has_space" != x; then 43771 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 43772 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 43773 fi 43774 as_fn_error $? "Cannot locate the the path of OBJDUMP" "$LINENO" 5 43775 fi 43776 fi 43777 43778 # Now join together the path and the arguments once again 43779 if test "x$arguments" != xEOL; then 43780 new_complete="$new_path ${arguments% *}" 43781 else 43782 new_complete="$new_path" 43783 fi 43784 43785 if test "x$complete" != "x$new_complete"; then 43786 OBJDUMP="$new_complete" 43787 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting OBJDUMP to \"$new_complete\"" >&5 43788 $as_echo "$as_me: Rewriting OBJDUMP to \"$new_complete\"" >&6;} 43789 fi 43790 fi 43791 43792 fi 43793 43794 43795 # Restore old path. 43796 PATH="$OLD_PATH" 43797 43798 # Restore the flags to the user specified values. 43799 # This is necessary since AC_PROG_CC defaults CFLAGS to "-g -O2" 43800 CFLAGS="$ORG_CFLAGS" 43801 CXXFLAGS="$ORG_CXXFLAGS" 43802 43803 43804 # Finally do some processing after the detection phase 43805 43806 if test "x$COMPILE_TYPE" = "xcross"; then 43807 # Now we need to find a C/C++ compiler that can build executables for the 43808 # build platform. We can't use the AC_PROG_CC macro, since it can only be 43809 # used once. Also, we need to do this without adding a tools dir to the 43810 # path, otherwise we might pick up cross-compilers which don't use standard 43811 # naming. 43812 43813 OLDPATH="$PATH" 43814 43815 43816 # Check whether --with-build-devkit was given. 43817 if test "${with_build_devkit+set}" = set; then : 43818 withval=$with_build_devkit; 43819 fi 43820 43821 if test "x$with_build_devkit" = "xyes"; then 43822 as_fn_error $? "--with-build-devkit must have a value" "$LINENO" 5 43823 elif test -n "$with_build_devkit"; then 43824 if test ! -d "$with_build_devkit"; then 43825 as_fn_error $? "--with-build-devkit points to non existing dir: $with_build_devkit" "$LINENO" 5 43826 else 43827 43828 # Only process if variable expands to non-empty 43829 43830 if test "x$with_build_devkit" != x; then 43831 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 43832 43833 # Input might be given as Windows format, start by converting to 43834 # unix format. 43835 path="$with_build_devkit" 43836 new_path=`$CYGPATH -u "$path"` 43837 43838 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 43839 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 43840 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 43841 # "foo.exe" is OK but "foo" is an error. 43842 # 43843 # This test is therefore slightly more accurate than "test -f" to check for file precense. 43844 # It is also a way to make sure we got the proper file name for the real test later on. 43845 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 43846 if test "x$test_shortpath" = x; then 43847 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of with_build_devkit, which resolves as \"$path\", is invalid." >&5 43848 $as_echo "$as_me: The path of with_build_devkit, which resolves as \"$path\", is invalid." >&6;} 43849 as_fn_error $? "Cannot locate the the path of with_build_devkit" "$LINENO" 5 43850 fi 43851 43852 # Call helper function which possibly converts this using DOS-style short mode. 43853 # If so, the updated path is stored in $new_path. 43854 43855 input_path="$new_path" 43856 # Check if we need to convert this using DOS-style short mode. If the path 43857 # contains just simple characters, use it. Otherwise (spaces, weird characters), 43858 # take no chances and rewrite it. 43859 # Note: m4 eats our [], so we need to use [ and ] instead. 43860 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 43861 if test "x$has_forbidden_chars" != x; then 43862 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 43863 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 43864 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 43865 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 43866 # Going to short mode and back again did indeed matter. Since short mode is 43867 # case insensitive, let's make it lowercase to improve readability. 43868 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 43869 # Now convert it back to Unix-style (cygpath) 43870 input_path=`$CYGPATH -u "$shortmode_path"` 43871 new_path="$input_path" 43872 fi 43873 fi 43874 43875 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 43876 if test "x$test_cygdrive_prefix" = x; then 43877 # As a simple fix, exclude /usr/bin since it's not a real path. 43878 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 43879 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 43880 # a path prefixed by /cygdrive for fixpath to work. 43881 new_path="$CYGWIN_ROOT_PATH$input_path" 43882 fi 43883 fi 43884 43885 43886 if test "x$path" != "x$new_path"; then 43887 with_build_devkit="$new_path" 43888 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting with_build_devkit to \"$new_path\"" >&5 43889 $as_echo "$as_me: Rewriting with_build_devkit to \"$new_path\"" >&6;} 43890 fi 43891 43892 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 43893 43894 path="$with_build_devkit" 43895 has_colon=`$ECHO $path | $GREP ^.:` 43896 new_path="$path" 43897 if test "x$has_colon" = x; then 43898 # Not in mixed or Windows style, start by that. 43899 new_path=`cmd //c echo $path` 43900 fi 43901 43902 43903 input_path="$new_path" 43904 # Check if we need to convert this using DOS-style short mode. If the path 43905 # contains just simple characters, use it. Otherwise (spaces, weird characters), 43906 # take no chances and rewrite it. 43907 # Note: m4 eats our [], so we need to use [ and ] instead. 43908 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 43909 if test "x$has_forbidden_chars" != x; then 43910 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 43911 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 43912 fi 43913 43914 43915 windows_path="$new_path" 43916 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 43917 unix_path=`$CYGPATH -u "$windows_path"` 43918 new_path="$unix_path" 43919 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 43920 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 43921 new_path="$unix_path" 43922 fi 43923 43924 if test "x$path" != "x$new_path"; then 43925 with_build_devkit="$new_path" 43926 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting with_build_devkit to \"$new_path\"" >&5 43927 $as_echo "$as_me: Rewriting with_build_devkit to \"$new_path\"" >&6;} 43928 fi 43929 43930 # Save the first 10 bytes of this path to the storage, so fixpath can work. 43931 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 43932 43933 else 43934 # We're on a unix platform. Hooray! :) 43935 path="$with_build_devkit" 43936 has_space=`$ECHO "$path" | $GREP " "` 43937 if test "x$has_space" != x; then 43938 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of with_build_devkit, which resolves as \"$path\", is invalid." >&5 43939 $as_echo "$as_me: The path of with_build_devkit, which resolves as \"$path\", is invalid." >&6;} 43940 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 43941 fi 43942 43943 # Use eval to expand a potential ~ 43944 eval path="$path" 43945 if test ! -f "$path" && test ! -d "$path"; then 43946 as_fn_error $? "The path of with_build_devkit, which resolves as \"$path\", is not found." "$LINENO" 5 43947 fi 43948 43949 if test -d "$path"; then 43950 with_build_devkit="`cd "$path"; $THEPWDCMD -L`" 43951 else 43952 dir="`$DIRNAME "$path"`" 43953 base="`$BASENAME "$path"`" 43954 with_build_devkit="`cd "$dir"; $THEPWDCMD -L`/$base" 43955 fi 43956 fi 43957 fi 43958 43959 BUILD_DEVKIT_ROOT="$with_build_devkit" 43960 # Check for a meta data info file in the root of the devkit 43961 if test -f "$BUILD_DEVKIT_ROOT/devkit.info"; then 43962 # Process devkit.info so that existing devkit variables are not 43963 # modified by this 43964 $SED -e "s/^DEVKIT_/BUILD_DEVKIT_/g" \ 43965 -e "s/\$DEVKIT_ROOT/\$BUILD_DEVKIT_ROOT/g" \ 43966 -e "s/\$host/\$build/g" \ 43967 $BUILD_DEVKIT_ROOT/devkit.info \ 43968 > $CONFIGURESUPPORT_OUTPUTDIR/build-devkit.info 43969 . $CONFIGURESUPPORT_OUTPUTDIR/build-devkit.info 43970 # This potentially sets the following: 43971 # A descriptive name of the devkit 43972 43973 if test "x$BUILD_DEVKIT_NAME" = x; then 43974 eval BUILD_DEVKIT_NAME="\${BUILD_DEVKIT_NAME_${OPENJDK_TARGET_CPU}}" 43975 fi 43976 43977 # Corresponds to --with-extra-path 43978 43979 if test "x$BUILD_DEVKIT_EXTRA_PATH" = x; then 43980 eval BUILD_DEVKIT_EXTRA_PATH="\${BUILD_DEVKIT_EXTRA_PATH_${OPENJDK_TARGET_CPU}}" 43981 fi 43982 43983 # Corresponds to --with-toolchain-path 43984 43985 if test "x$BUILD_DEVKIT_TOOLCHAIN_PATH" = x; then 43986 eval BUILD_DEVKIT_TOOLCHAIN_PATH="\${BUILD_DEVKIT_TOOLCHAIN_PATH_${OPENJDK_TARGET_CPU}}" 43987 fi 43988 43989 # Corresponds to --with-sysroot 43990 43991 if test "x$BUILD_DEVKIT_SYSROOT" = x; then 43992 eval BUILD_DEVKIT_SYSROOT="\${BUILD_DEVKIT_SYSROOT_${OPENJDK_TARGET_CPU}}" 43993 fi 43994 43995 # Skip the Window specific parts 43996 fi 43997 43998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for build platform devkit" >&5 43999 $as_echo_n "checking for build platform devkit... " >&6; } 44000 if test "x$BUILD_DEVKIT_NAME" != x; then 44001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_DEVKIT_NAME in $BUILD_DEVKIT_ROOT" >&5 44002 $as_echo "$BUILD_DEVKIT_NAME in $BUILD_DEVKIT_ROOT" >&6; } 44003 else 44004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_DEVKIT_ROOT" >&5 44005 $as_echo "$BUILD_DEVKIT_ROOT" >&6; } 44006 fi 44007 44008 BUILD_SYSROOT="$BUILD_DEVKIT_SYSROOT" 44009 44010 if test "x$BUILD_SYSROOT" != "x"; then 44011 if test "x$TOOLCHAIN_TYPE" = xsolstudio; then 44012 if test "x$OPENJDK_TARGET_OS" = xsolaris; then 44013 # Solaris Studio does not have a concept of sysroot. Instead we must 44014 # make sure the default include and lib dirs are appended to each 44015 # compile and link command line. Must also add -I-xbuiltin to enable 44016 # inlining of system functions and intrinsics. 44017 BUILD_SYSROOT_CFLAGS="-I-xbuiltin -I$BUILD_SYSROOT/usr/include" 44018 BUILD_SYSROOT_LDFLAGS="-L$BUILD_SYSROOT/usr/lib$OPENJDK_TARGET_CPU_ISADIR \ 44019 -L$BUILD_SYSROOT/lib$OPENJDK_TARGET_CPU_ISADIR \ 44020 -L$BUILD_SYSROOT/usr/ccs/lib$OPENJDK_TARGET_CPU_ISADIR" 44021 fi 44022 elif test "x$TOOLCHAIN_TYPE" = xgcc; then 44023 BUILD_SYSROOT_CFLAGS="--sysroot=$BUILD_SYSROOT" 44024 BUILD_SYSROOT_LDFLAGS="--sysroot=$BUILD_SYSROOT" 44025 elif test "x$TOOLCHAIN_TYPE" = xclang; then 44026 BUILD_SYSROOT_CFLAGS="-isysroot $BUILD_SYSROOT" 44027 BUILD_SYSROOT_LDFLAGS="-isysroot $BUILD_SYSROOT" 44028 fi 44029 # Propagate the sysroot args to hotspot 44030 BUILD_LEGACY_EXTRA_CFLAGS="$BUILD_LEGACY_EXTRA_CFLAGS $BUILD_SYSROOT_CFLAGS" 44031 BUILD_LEGACY_EXTRA_CXXFLAGS="$BUILD_LEGACY_EXTRA_CXXFLAGS $BUILD_SYSROOT_CFLAGS" 44032 BUILD_LEGACY_EXTRA_LDFLAGS="$BUILD_LEGACY_EXTRA_LDFLAGS $BUILD_SYSROOT_LDFLAGS" 44033 # The global CFLAGS and LDFLAGS variables need these for configure to function 44034 BUILD_CFLAGS="$BUILD_CFLAGS $BUILD_SYSROOT_CFLAGS" 44035 BUILD_CPPFLAGS="$BUILD_CPPFLAGS $BUILD_SYSROOT_CFLAGS" 44036 BUILD_CXXFLAGS="$BUILD_CXXFLAGS $BUILD_SYSROOT_CFLAGS" 44037 BUILD_LDFLAGS="$BUILD_LDFLAGS $BUILD_SYSROOT_LDFLAGS" 44038 fi 44039 44040 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 44041 # We also need -iframework<path>/System/Library/Frameworks 44042 BUILD_SYSROOT_CFLAGS="$BUILD_SYSROOT_CFLAGS -iframework $BUILD_SYSROOT/System/Library/Frameworks" 44043 BUILD_SYSROOT_LDFLAGS="$BUILD_SYSROOT_LDFLAGS -iframework $BUILD_SYSROOT/System/Library/Frameworks" 44044 # These always need to be set, or we can't find the frameworks embedded in JavaVM.framework 44045 # set this here so it doesn't have to be peppered throughout the forest 44046 BUILD_SYSROOT_CFLAGS="$BUILD_SYSROOT_CFLAGS -F $BUILD_SYSROOT/System/Library/Frameworks/JavaVM.framework/Frameworks" 44047 BUILD_SYSROOT_LDFLAGS="$BUILD_SYSROOT_LDFLAGS -F $BUILD_SYSROOT/System/Library/Frameworks/JavaVM.framework/Frameworks" 44048 fi 44049 44050 44051 44052 44053 44054 # Fallback default of just /bin if DEVKIT_PATH is not defined 44055 if test "x$BUILD_DEVKIT_TOOLCHAIN_PATH" = x; then 44056 BUILD_DEVKIT_TOOLCHAIN_PATH="$BUILD_DEVKIT_ROOT/bin" 44057 fi 44058 PATH="$BUILD_DEVKIT_TOOLCHAIN_PATH:$BUILD_DEVKIT_EXTRA_PATH" 44059 fi 44060 fi 44061 44062 # FIXME: we should list the discovered compilers as an exclude pattern! 44063 # If we do that, we can do this detection before POST_DETECTION, and still 44064 # find the build compilers in the tools dir, if needed. 44065 44066 44067 44068 # Publish this variable in the help. 44069 44070 44071 if [ -z "${BUILD_CC+x}" ]; then 44072 # The variable is not set by user, try to locate tool using the code snippet 44073 for ac_prog in cl cc gcc 44074 do 44075 # Extract the first word of "$ac_prog", so it can be a program name with args. 44076 set dummy $ac_prog; ac_word=$2 44077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 44078 $as_echo_n "checking for $ac_word... " >&6; } 44079 if ${ac_cv_path_BUILD_CC+:} false; then : 44080 $as_echo_n "(cached) " >&6 44081 else 44082 case $BUILD_CC in 44083 [\\/]* | ?:[\\/]*) 44084 ac_cv_path_BUILD_CC="$BUILD_CC" # Let the user override the test with a path. 44085 ;; 44086 *) 44087 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 44088 for as_dir in $PATH 44089 do 44090 IFS=$as_save_IFS 44091 test -z "$as_dir" && as_dir=. 44092 for ac_exec_ext in '' $ac_executable_extensions; do 44093 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 44094 ac_cv_path_BUILD_CC="$as_dir/$ac_word$ac_exec_ext" 44095 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 44096 break 2 44097 fi 44098 done 44099 done 44100 IFS=$as_save_IFS 44101 44102 ;; 44103 esac 44104 fi 44105 BUILD_CC=$ac_cv_path_BUILD_CC 44106 if test -n "$BUILD_CC"; then 44107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CC" >&5 44108 $as_echo "$BUILD_CC" >&6; } 44109 else 44110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 44111 $as_echo "no" >&6; } 44112 fi 44113 44114 44115 test -n "$BUILD_CC" && break 44116 done 44117 44118 else 44119 # The variable is set, but is it from the command line or the environment? 44120 44121 # Try to remove the string !BUILD_CC! from our list. 44122 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!BUILD_CC!/} 44123 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 44124 # If it failed, the variable was not from the command line. Ignore it, 44125 # but warn the user (except for BASH, which is always set by the calling BASH). 44126 if test "xBUILD_CC" != xBASH; then 44127 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of BUILD_CC from the environment. Use command line variables instead." >&5 44128 $as_echo "$as_me: WARNING: Ignoring value of BUILD_CC from the environment. Use command line variables instead." >&2;} 44129 fi 44130 # Try to locate tool using the code snippet 44131 for ac_prog in cl cc gcc 44132 do 44133 # Extract the first word of "$ac_prog", so it can be a program name with args. 44134 set dummy $ac_prog; ac_word=$2 44135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 44136 $as_echo_n "checking for $ac_word... " >&6; } 44137 if ${ac_cv_path_BUILD_CC+:} false; then : 44138 $as_echo_n "(cached) " >&6 44139 else 44140 case $BUILD_CC in 44141 [\\/]* | ?:[\\/]*) 44142 ac_cv_path_BUILD_CC="$BUILD_CC" # Let the user override the test with a path. 44143 ;; 44144 *) 44145 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 44146 for as_dir in $PATH 44147 do 44148 IFS=$as_save_IFS 44149 test -z "$as_dir" && as_dir=. 44150 for ac_exec_ext in '' $ac_executable_extensions; do 44151 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 44152 ac_cv_path_BUILD_CC="$as_dir/$ac_word$ac_exec_ext" 44153 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 44154 break 2 44155 fi 44156 done 44157 done 44158 IFS=$as_save_IFS 44159 44160 ;; 44161 esac 44162 fi 44163 BUILD_CC=$ac_cv_path_BUILD_CC 44164 if test -n "$BUILD_CC"; then 44165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CC" >&5 44166 $as_echo "$BUILD_CC" >&6; } 44167 else 44168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 44169 $as_echo "no" >&6; } 44170 fi 44171 44172 44173 test -n "$BUILD_CC" && break 44174 done 44175 44176 else 44177 # If it succeeded, then it was overridden by the user. We will use it 44178 # for the tool. 44179 44180 # First remove it from the list of overridden variables, so we can test 44181 # for unknown variables in the end. 44182 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 44183 44184 # Check if we try to supply an empty value 44185 if test "x$BUILD_CC" = x; then 44186 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool BUILD_CC= (no value)" >&5 44187 $as_echo "$as_me: Setting user supplied tool BUILD_CC= (no value)" >&6;} 44188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BUILD_CC" >&5 44189 $as_echo_n "checking for BUILD_CC... " >&6; } 44190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 44191 $as_echo "disabled" >&6; } 44192 else 44193 # Check if the provided tool contains a complete path. 44194 tool_specified="$BUILD_CC" 44195 tool_basename="${tool_specified##*/}" 44196 if test "x$tool_basename" = "x$tool_specified"; then 44197 # A command without a complete path is provided, search $PATH. 44198 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool BUILD_CC=$tool_basename" >&5 44199 $as_echo "$as_me: Will search for user supplied tool BUILD_CC=$tool_basename" >&6;} 44200 # Extract the first word of "$tool_basename", so it can be a program name with args. 44201 set dummy $tool_basename; ac_word=$2 44202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 44203 $as_echo_n "checking for $ac_word... " >&6; } 44204 if ${ac_cv_path_BUILD_CC+:} false; then : 44205 $as_echo_n "(cached) " >&6 44206 else 44207 case $BUILD_CC in 44208 [\\/]* | ?:[\\/]*) 44209 ac_cv_path_BUILD_CC="$BUILD_CC" # Let the user override the test with a path. 44210 ;; 44211 *) 44212 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 44213 for as_dir in $PATH 44214 do 44215 IFS=$as_save_IFS 44216 test -z "$as_dir" && as_dir=. 44217 for ac_exec_ext in '' $ac_executable_extensions; do 44218 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 44219 ac_cv_path_BUILD_CC="$as_dir/$ac_word$ac_exec_ext" 44220 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 44221 break 2 44222 fi 44223 done 44224 done 44225 IFS=$as_save_IFS 44226 44227 ;; 44228 esac 44229 fi 44230 BUILD_CC=$ac_cv_path_BUILD_CC 44231 if test -n "$BUILD_CC"; then 44232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CC" >&5 44233 $as_echo "$BUILD_CC" >&6; } 44234 else 44235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 44236 $as_echo "no" >&6; } 44237 fi 44238 44239 44240 if test "x$BUILD_CC" = x; then 44241 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 44242 fi 44243 else 44244 # Otherwise we believe it is a complete path. Use it as it is. 44245 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool BUILD_CC=$tool_specified" >&5 44246 $as_echo "$as_me: Will use user supplied tool BUILD_CC=$tool_specified" >&6;} 44247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BUILD_CC" >&5 44248 $as_echo_n "checking for BUILD_CC... " >&6; } 44249 if test ! -x "$tool_specified"; then 44250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 44251 $as_echo "not found" >&6; } 44252 as_fn_error $? "User supplied tool BUILD_CC=$tool_specified does not exist or is not executable" "$LINENO" 5 44253 fi 44254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 44255 $as_echo "$tool_specified" >&6; } 44256 fi 44257 fi 44258 fi 44259 44260 fi 44261 44262 44263 44264 if test "x$BUILD_CC" = x; then 44265 as_fn_error $? "Could not find required tool for BUILD_CC" "$LINENO" 5 44266 fi 44267 44268 44269 44270 # Only process if variable expands to non-empty 44271 44272 if test "x$BUILD_CC" != x; then 44273 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 44274 44275 # First separate the path from the arguments. This will split at the first 44276 # space. 44277 complete="$BUILD_CC" 44278 path="${complete%% *}" 44279 tmp="$complete EOL" 44280 arguments="${tmp#* }" 44281 44282 # Input might be given as Windows format, start by converting to 44283 # unix format. 44284 new_path=`$CYGPATH -u "$path"` 44285 44286 # Now try to locate executable using which 44287 new_path=`$WHICH "$new_path" 2> /dev/null` 44288 # bat and cmd files are not always considered executable in cygwin causing which 44289 # to not find them 44290 if test "x$new_path" = x \ 44291 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 44292 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 44293 new_path=`$CYGPATH -u "$path"` 44294 fi 44295 if test "x$new_path" = x; then 44296 # Oops. Which didn't find the executable. 44297 # The splitting of arguments from the executable at a space might have been incorrect, 44298 # since paths with space are more likely in Windows. Give it another try with the whole 44299 # argument. 44300 path="$complete" 44301 arguments="EOL" 44302 new_path=`$CYGPATH -u "$path"` 44303 new_path=`$WHICH "$new_path" 2> /dev/null` 44304 # bat and cmd files are not always considered executable in cygwin causing which 44305 # to not find them 44306 if test "x$new_path" = x \ 44307 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 44308 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 44309 new_path=`$CYGPATH -u "$path"` 44310 fi 44311 if test "x$new_path" = x; then 44312 # It's still not found. Now this is an unrecoverable error. 44313 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_CC, which resolves as \"$complete\", is not found." >&5 44314 $as_echo "$as_me: The path of BUILD_CC, which resolves as \"$complete\", is not found." >&6;} 44315 has_space=`$ECHO "$complete" | $GREP " "` 44316 if test "x$has_space" != x; then 44317 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 44318 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 44319 fi 44320 as_fn_error $? "Cannot locate the the path of BUILD_CC" "$LINENO" 5 44321 fi 44322 fi 44323 44324 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 44325 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 44326 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 44327 # "foo.exe" is OK but "foo" is an error. 44328 # 44329 # This test is therefore slightly more accurate than "test -f" to check for file presence. 44330 # It is also a way to make sure we got the proper file name for the real test later on. 44331 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 44332 if test "x$test_shortpath" = x; then 44333 # Short path failed, file does not exist as specified. 44334 # Try adding .exe or .cmd 44335 if test -f "${new_path}.exe"; then 44336 input_to_shortpath="${new_path}.exe" 44337 elif test -f "${new_path}.cmd"; then 44338 input_to_shortpath="${new_path}.cmd" 44339 else 44340 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_CC, which resolves as \"$new_path\", is invalid." >&5 44341 $as_echo "$as_me: The path of BUILD_CC, which resolves as \"$new_path\", is invalid." >&6;} 44342 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 44343 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 44344 as_fn_error $? "Cannot locate the the path of BUILD_CC" "$LINENO" 5 44345 fi 44346 else 44347 input_to_shortpath="$new_path" 44348 fi 44349 44350 # Call helper function which possibly converts this using DOS-style short mode. 44351 # If so, the updated path is stored in $new_path. 44352 new_path="$input_to_shortpath" 44353 44354 input_path="$input_to_shortpath" 44355 # Check if we need to convert this using DOS-style short mode. If the path 44356 # contains just simple characters, use it. Otherwise (spaces, weird characters), 44357 # take no chances and rewrite it. 44358 # Note: m4 eats our [], so we need to use [ and ] instead. 44359 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 44360 if test "x$has_forbidden_chars" != x; then 44361 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 44362 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 44363 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 44364 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 44365 # Going to short mode and back again did indeed matter. Since short mode is 44366 # case insensitive, let's make it lowercase to improve readability. 44367 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 44368 # Now convert it back to Unix-style (cygpath) 44369 input_path=`$CYGPATH -u "$shortmode_path"` 44370 new_path="$input_path" 44371 fi 44372 fi 44373 44374 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 44375 if test "x$test_cygdrive_prefix" = x; then 44376 # As a simple fix, exclude /usr/bin since it's not a real path. 44377 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 44378 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 44379 # a path prefixed by /cygdrive for fixpath to work. 44380 new_path="$CYGWIN_ROOT_PATH$input_path" 44381 fi 44382 fi 44383 44384 # remove trailing .exe if any 44385 new_path="${new_path/%.exe/}" 44386 44387 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 44388 44389 # First separate the path from the arguments. This will split at the first 44390 # space. 44391 complete="$BUILD_CC" 44392 path="${complete%% *}" 44393 tmp="$complete EOL" 44394 arguments="${tmp#* }" 44395 44396 # Input might be given as Windows format, start by converting to 44397 # unix format. 44398 new_path="$path" 44399 44400 windows_path="$new_path" 44401 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 44402 unix_path=`$CYGPATH -u "$windows_path"` 44403 new_path="$unix_path" 44404 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 44405 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 44406 new_path="$unix_path" 44407 fi 44408 44409 44410 # Now try to locate executable using which 44411 new_path=`$WHICH "$new_path" 2> /dev/null` 44412 44413 if test "x$new_path" = x; then 44414 # Oops. Which didn't find the executable. 44415 # The splitting of arguments from the executable at a space might have been incorrect, 44416 # since paths with space are more likely in Windows. Give it another try with the whole 44417 # argument. 44418 path="$complete" 44419 arguments="EOL" 44420 new_path="$path" 44421 44422 windows_path="$new_path" 44423 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 44424 unix_path=`$CYGPATH -u "$windows_path"` 44425 new_path="$unix_path" 44426 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 44427 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 44428 new_path="$unix_path" 44429 fi 44430 44431 44432 new_path=`$WHICH "$new_path" 2> /dev/null` 44433 # bat and cmd files are not always considered executable in MSYS causing which 44434 # to not find them 44435 if test "x$new_path" = x \ 44436 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 44437 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 44438 new_path="$path" 44439 44440 windows_path="$new_path" 44441 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 44442 unix_path=`$CYGPATH -u "$windows_path"` 44443 new_path="$unix_path" 44444 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 44445 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 44446 new_path="$unix_path" 44447 fi 44448 44449 fi 44450 44451 if test "x$new_path" = x; then 44452 # It's still not found. Now this is an unrecoverable error. 44453 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_CC, which resolves as \"$complete\", is not found." >&5 44454 $as_echo "$as_me: The path of BUILD_CC, which resolves as \"$complete\", is not found." >&6;} 44455 has_space=`$ECHO "$complete" | $GREP " "` 44456 if test "x$has_space" != x; then 44457 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 44458 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 44459 fi 44460 as_fn_error $? "Cannot locate the the path of BUILD_CC" "$LINENO" 5 44461 fi 44462 fi 44463 44464 # Now new_path has a complete unix path to the binary 44465 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 44466 # Keep paths in /bin as-is, but remove trailing .exe if any 44467 new_path="${new_path/%.exe/}" 44468 # Do not save /bin paths to all_fixpath_prefixes! 44469 else 44470 # Not in mixed or Windows style, start by that. 44471 new_path=`cmd //c echo $new_path` 44472 44473 input_path="$new_path" 44474 # Check if we need to convert this using DOS-style short mode. If the path 44475 # contains just simple characters, use it. Otherwise (spaces, weird characters), 44476 # take no chances and rewrite it. 44477 # Note: m4 eats our [], so we need to use [ and ] instead. 44478 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 44479 if test "x$has_forbidden_chars" != x; then 44480 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 44481 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 44482 fi 44483 44484 # Output is in $new_path 44485 44486 windows_path="$new_path" 44487 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 44488 unix_path=`$CYGPATH -u "$windows_path"` 44489 new_path="$unix_path" 44490 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 44491 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 44492 new_path="$unix_path" 44493 fi 44494 44495 # remove trailing .exe if any 44496 new_path="${new_path/%.exe/}" 44497 44498 # Save the first 10 bytes of this path to the storage, so fixpath can work. 44499 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 44500 fi 44501 44502 else 44503 # We're on a unix platform. Hooray! :) 44504 # First separate the path from the arguments. This will split at the first 44505 # space. 44506 complete="$BUILD_CC" 44507 path="${complete%% *}" 44508 tmp="$complete EOL" 44509 arguments="${tmp#* }" 44510 44511 # Cannot rely on the command "which" here since it doesn't always work. 44512 is_absolute_path=`$ECHO "$path" | $GREP ^/` 44513 if test -z "$is_absolute_path"; then 44514 # Path to executable is not absolute. Find it. 44515 IFS_save="$IFS" 44516 IFS=: 44517 for p in $PATH; do 44518 if test -f "$p/$path" && test -x "$p/$path"; then 44519 new_path="$p/$path" 44520 break 44521 fi 44522 done 44523 IFS="$IFS_save" 44524 else 44525 # This is an absolute path, we can use it without further modifications. 44526 new_path="$path" 44527 fi 44528 44529 if test "x$new_path" = x; then 44530 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_CC, which resolves as \"$complete\", is not found." >&5 44531 $as_echo "$as_me: The path of BUILD_CC, which resolves as \"$complete\", is not found." >&6;} 44532 has_space=`$ECHO "$complete" | $GREP " "` 44533 if test "x$has_space" != x; then 44534 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 44535 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 44536 fi 44537 as_fn_error $? "Cannot locate the the path of BUILD_CC" "$LINENO" 5 44538 fi 44539 fi 44540 44541 # Now join together the path and the arguments once again 44542 if test "x$arguments" != xEOL; then 44543 new_complete="$new_path ${arguments% *}" 44544 else 44545 new_complete="$new_path" 44546 fi 44547 44548 if test "x$complete" != "x$new_complete"; then 44549 BUILD_CC="$new_complete" 44550 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BUILD_CC to \"$new_complete\"" >&5 44551 $as_echo "$as_me: Rewriting BUILD_CC to \"$new_complete\"" >&6;} 44552 fi 44553 fi 44554 44555 44556 44557 44558 # Publish this variable in the help. 44559 44560 44561 if [ -z "${BUILD_CXX+x}" ]; then 44562 # The variable is not set by user, try to locate tool using the code snippet 44563 for ac_prog in cl CC g++ 44564 do 44565 # Extract the first word of "$ac_prog", so it can be a program name with args. 44566 set dummy $ac_prog; ac_word=$2 44567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 44568 $as_echo_n "checking for $ac_word... " >&6; } 44569 if ${ac_cv_path_BUILD_CXX+:} false; then : 44570 $as_echo_n "(cached) " >&6 44571 else 44572 case $BUILD_CXX in 44573 [\\/]* | ?:[\\/]*) 44574 ac_cv_path_BUILD_CXX="$BUILD_CXX" # Let the user override the test with a path. 44575 ;; 44576 *) 44577 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 44578 for as_dir in $PATH 44579 do 44580 IFS=$as_save_IFS 44581 test -z "$as_dir" && as_dir=. 44582 for ac_exec_ext in '' $ac_executable_extensions; do 44583 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 44584 ac_cv_path_BUILD_CXX="$as_dir/$ac_word$ac_exec_ext" 44585 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 44586 break 2 44587 fi 44588 done 44589 done 44590 IFS=$as_save_IFS 44591 44592 ;; 44593 esac 44594 fi 44595 BUILD_CXX=$ac_cv_path_BUILD_CXX 44596 if test -n "$BUILD_CXX"; then 44597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CXX" >&5 44598 $as_echo "$BUILD_CXX" >&6; } 44599 else 44600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 44601 $as_echo "no" >&6; } 44602 fi 44603 44604 44605 test -n "$BUILD_CXX" && break 44606 done 44607 44608 else 44609 # The variable is set, but is it from the command line or the environment? 44610 44611 # Try to remove the string !BUILD_CXX! from our list. 44612 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!BUILD_CXX!/} 44613 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 44614 # If it failed, the variable was not from the command line. Ignore it, 44615 # but warn the user (except for BASH, which is always set by the calling BASH). 44616 if test "xBUILD_CXX" != xBASH; then 44617 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of BUILD_CXX from the environment. Use command line variables instead." >&5 44618 $as_echo "$as_me: WARNING: Ignoring value of BUILD_CXX from the environment. Use command line variables instead." >&2;} 44619 fi 44620 # Try to locate tool using the code snippet 44621 for ac_prog in cl CC g++ 44622 do 44623 # Extract the first word of "$ac_prog", so it can be a program name with args. 44624 set dummy $ac_prog; ac_word=$2 44625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 44626 $as_echo_n "checking for $ac_word... " >&6; } 44627 if ${ac_cv_path_BUILD_CXX+:} false; then : 44628 $as_echo_n "(cached) " >&6 44629 else 44630 case $BUILD_CXX in 44631 [\\/]* | ?:[\\/]*) 44632 ac_cv_path_BUILD_CXX="$BUILD_CXX" # Let the user override the test with a path. 44633 ;; 44634 *) 44635 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 44636 for as_dir in $PATH 44637 do 44638 IFS=$as_save_IFS 44639 test -z "$as_dir" && as_dir=. 44640 for ac_exec_ext in '' $ac_executable_extensions; do 44641 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 44642 ac_cv_path_BUILD_CXX="$as_dir/$ac_word$ac_exec_ext" 44643 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 44644 break 2 44645 fi 44646 done 44647 done 44648 IFS=$as_save_IFS 44649 44650 ;; 44651 esac 44652 fi 44653 BUILD_CXX=$ac_cv_path_BUILD_CXX 44654 if test -n "$BUILD_CXX"; then 44655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CXX" >&5 44656 $as_echo "$BUILD_CXX" >&6; } 44657 else 44658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 44659 $as_echo "no" >&6; } 44660 fi 44661 44662 44663 test -n "$BUILD_CXX" && break 44664 done 44665 44666 else 44667 # If it succeeded, then it was overridden by the user. We will use it 44668 # for the tool. 44669 44670 # First remove it from the list of overridden variables, so we can test 44671 # for unknown variables in the end. 44672 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 44673 44674 # Check if we try to supply an empty value 44675 if test "x$BUILD_CXX" = x; then 44676 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool BUILD_CXX= (no value)" >&5 44677 $as_echo "$as_me: Setting user supplied tool BUILD_CXX= (no value)" >&6;} 44678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BUILD_CXX" >&5 44679 $as_echo_n "checking for BUILD_CXX... " >&6; } 44680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 44681 $as_echo "disabled" >&6; } 44682 else 44683 # Check if the provided tool contains a complete path. 44684 tool_specified="$BUILD_CXX" 44685 tool_basename="${tool_specified##*/}" 44686 if test "x$tool_basename" = "x$tool_specified"; then 44687 # A command without a complete path is provided, search $PATH. 44688 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool BUILD_CXX=$tool_basename" >&5 44689 $as_echo "$as_me: Will search for user supplied tool BUILD_CXX=$tool_basename" >&6;} 44690 # Extract the first word of "$tool_basename", so it can be a program name with args. 44691 set dummy $tool_basename; ac_word=$2 44692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 44693 $as_echo_n "checking for $ac_word... " >&6; } 44694 if ${ac_cv_path_BUILD_CXX+:} false; then : 44695 $as_echo_n "(cached) " >&6 44696 else 44697 case $BUILD_CXX in 44698 [\\/]* | ?:[\\/]*) 44699 ac_cv_path_BUILD_CXX="$BUILD_CXX" # Let the user override the test with a path. 44700 ;; 44701 *) 44702 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 44703 for as_dir in $PATH 44704 do 44705 IFS=$as_save_IFS 44706 test -z "$as_dir" && as_dir=. 44707 for ac_exec_ext in '' $ac_executable_extensions; do 44708 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 44709 ac_cv_path_BUILD_CXX="$as_dir/$ac_word$ac_exec_ext" 44710 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 44711 break 2 44712 fi 44713 done 44714 done 44715 IFS=$as_save_IFS 44716 44717 ;; 44718 esac 44719 fi 44720 BUILD_CXX=$ac_cv_path_BUILD_CXX 44721 if test -n "$BUILD_CXX"; then 44722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CXX" >&5 44723 $as_echo "$BUILD_CXX" >&6; } 44724 else 44725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 44726 $as_echo "no" >&6; } 44727 fi 44728 44729 44730 if test "x$BUILD_CXX" = x; then 44731 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 44732 fi 44733 else 44734 # Otherwise we believe it is a complete path. Use it as it is. 44735 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool BUILD_CXX=$tool_specified" >&5 44736 $as_echo "$as_me: Will use user supplied tool BUILD_CXX=$tool_specified" >&6;} 44737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BUILD_CXX" >&5 44738 $as_echo_n "checking for BUILD_CXX... " >&6; } 44739 if test ! -x "$tool_specified"; then 44740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 44741 $as_echo "not found" >&6; } 44742 as_fn_error $? "User supplied tool BUILD_CXX=$tool_specified does not exist or is not executable" "$LINENO" 5 44743 fi 44744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 44745 $as_echo "$tool_specified" >&6; } 44746 fi 44747 fi 44748 fi 44749 44750 fi 44751 44752 44753 44754 if test "x$BUILD_CXX" = x; then 44755 as_fn_error $? "Could not find required tool for BUILD_CXX" "$LINENO" 5 44756 fi 44757 44758 44759 44760 # Only process if variable expands to non-empty 44761 44762 if test "x$BUILD_CXX" != x; then 44763 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 44764 44765 # First separate the path from the arguments. This will split at the first 44766 # space. 44767 complete="$BUILD_CXX" 44768 path="${complete%% *}" 44769 tmp="$complete EOL" 44770 arguments="${tmp#* }" 44771 44772 # Input might be given as Windows format, start by converting to 44773 # unix format. 44774 new_path=`$CYGPATH -u "$path"` 44775 44776 # Now try to locate executable using which 44777 new_path=`$WHICH "$new_path" 2> /dev/null` 44778 # bat and cmd files are not always considered executable in cygwin causing which 44779 # to not find them 44780 if test "x$new_path" = x \ 44781 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 44782 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 44783 new_path=`$CYGPATH -u "$path"` 44784 fi 44785 if test "x$new_path" = x; then 44786 # Oops. Which didn't find the executable. 44787 # The splitting of arguments from the executable at a space might have been incorrect, 44788 # since paths with space are more likely in Windows. Give it another try with the whole 44789 # argument. 44790 path="$complete" 44791 arguments="EOL" 44792 new_path=`$CYGPATH -u "$path"` 44793 new_path=`$WHICH "$new_path" 2> /dev/null` 44794 # bat and cmd files are not always considered executable in cygwin causing which 44795 # to not find them 44796 if test "x$new_path" = x \ 44797 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 44798 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 44799 new_path=`$CYGPATH -u "$path"` 44800 fi 44801 if test "x$new_path" = x; then 44802 # It's still not found. Now this is an unrecoverable error. 44803 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_CXX, which resolves as \"$complete\", is not found." >&5 44804 $as_echo "$as_me: The path of BUILD_CXX, which resolves as \"$complete\", is not found." >&6;} 44805 has_space=`$ECHO "$complete" | $GREP " "` 44806 if test "x$has_space" != x; then 44807 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 44808 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 44809 fi 44810 as_fn_error $? "Cannot locate the the path of BUILD_CXX" "$LINENO" 5 44811 fi 44812 fi 44813 44814 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 44815 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 44816 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 44817 # "foo.exe" is OK but "foo" is an error. 44818 # 44819 # This test is therefore slightly more accurate than "test -f" to check for file presence. 44820 # It is also a way to make sure we got the proper file name for the real test later on. 44821 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 44822 if test "x$test_shortpath" = x; then 44823 # Short path failed, file does not exist as specified. 44824 # Try adding .exe or .cmd 44825 if test -f "${new_path}.exe"; then 44826 input_to_shortpath="${new_path}.exe" 44827 elif test -f "${new_path}.cmd"; then 44828 input_to_shortpath="${new_path}.cmd" 44829 else 44830 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_CXX, which resolves as \"$new_path\", is invalid." >&5 44831 $as_echo "$as_me: The path of BUILD_CXX, which resolves as \"$new_path\", is invalid." >&6;} 44832 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 44833 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 44834 as_fn_error $? "Cannot locate the the path of BUILD_CXX" "$LINENO" 5 44835 fi 44836 else 44837 input_to_shortpath="$new_path" 44838 fi 44839 44840 # Call helper function which possibly converts this using DOS-style short mode. 44841 # If so, the updated path is stored in $new_path. 44842 new_path="$input_to_shortpath" 44843 44844 input_path="$input_to_shortpath" 44845 # Check if we need to convert this using DOS-style short mode. If the path 44846 # contains just simple characters, use it. Otherwise (spaces, weird characters), 44847 # take no chances and rewrite it. 44848 # Note: m4 eats our [], so we need to use [ and ] instead. 44849 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 44850 if test "x$has_forbidden_chars" != x; then 44851 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 44852 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 44853 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 44854 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 44855 # Going to short mode and back again did indeed matter. Since short mode is 44856 # case insensitive, let's make it lowercase to improve readability. 44857 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 44858 # Now convert it back to Unix-style (cygpath) 44859 input_path=`$CYGPATH -u "$shortmode_path"` 44860 new_path="$input_path" 44861 fi 44862 fi 44863 44864 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 44865 if test "x$test_cygdrive_prefix" = x; then 44866 # As a simple fix, exclude /usr/bin since it's not a real path. 44867 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 44868 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 44869 # a path prefixed by /cygdrive for fixpath to work. 44870 new_path="$CYGWIN_ROOT_PATH$input_path" 44871 fi 44872 fi 44873 44874 # remove trailing .exe if any 44875 new_path="${new_path/%.exe/}" 44876 44877 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 44878 44879 # First separate the path from the arguments. This will split at the first 44880 # space. 44881 complete="$BUILD_CXX" 44882 path="${complete%% *}" 44883 tmp="$complete EOL" 44884 arguments="${tmp#* }" 44885 44886 # Input might be given as Windows format, start by converting to 44887 # unix format. 44888 new_path="$path" 44889 44890 windows_path="$new_path" 44891 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 44892 unix_path=`$CYGPATH -u "$windows_path"` 44893 new_path="$unix_path" 44894 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 44895 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 44896 new_path="$unix_path" 44897 fi 44898 44899 44900 # Now try to locate executable using which 44901 new_path=`$WHICH "$new_path" 2> /dev/null` 44902 44903 if test "x$new_path" = x; then 44904 # Oops. Which didn't find the executable. 44905 # The splitting of arguments from the executable at a space might have been incorrect, 44906 # since paths with space are more likely in Windows. Give it another try with the whole 44907 # argument. 44908 path="$complete" 44909 arguments="EOL" 44910 new_path="$path" 44911 44912 windows_path="$new_path" 44913 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 44914 unix_path=`$CYGPATH -u "$windows_path"` 44915 new_path="$unix_path" 44916 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 44917 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 44918 new_path="$unix_path" 44919 fi 44920 44921 44922 new_path=`$WHICH "$new_path" 2> /dev/null` 44923 # bat and cmd files are not always considered executable in MSYS causing which 44924 # to not find them 44925 if test "x$new_path" = x \ 44926 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 44927 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 44928 new_path="$path" 44929 44930 windows_path="$new_path" 44931 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 44932 unix_path=`$CYGPATH -u "$windows_path"` 44933 new_path="$unix_path" 44934 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 44935 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 44936 new_path="$unix_path" 44937 fi 44938 44939 fi 44940 44941 if test "x$new_path" = x; then 44942 # It's still not found. Now this is an unrecoverable error. 44943 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_CXX, which resolves as \"$complete\", is not found." >&5 44944 $as_echo "$as_me: The path of BUILD_CXX, which resolves as \"$complete\", is not found." >&6;} 44945 has_space=`$ECHO "$complete" | $GREP " "` 44946 if test "x$has_space" != x; then 44947 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 44948 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 44949 fi 44950 as_fn_error $? "Cannot locate the the path of BUILD_CXX" "$LINENO" 5 44951 fi 44952 fi 44953 44954 # Now new_path has a complete unix path to the binary 44955 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 44956 # Keep paths in /bin as-is, but remove trailing .exe if any 44957 new_path="${new_path/%.exe/}" 44958 # Do not save /bin paths to all_fixpath_prefixes! 44959 else 44960 # Not in mixed or Windows style, start by that. 44961 new_path=`cmd //c echo $new_path` 44962 44963 input_path="$new_path" 44964 # Check if we need to convert this using DOS-style short mode. If the path 44965 # contains just simple characters, use it. Otherwise (spaces, weird characters), 44966 # take no chances and rewrite it. 44967 # Note: m4 eats our [], so we need to use [ and ] instead. 44968 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 44969 if test "x$has_forbidden_chars" != x; then 44970 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 44971 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 44972 fi 44973 44974 # Output is in $new_path 44975 44976 windows_path="$new_path" 44977 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 44978 unix_path=`$CYGPATH -u "$windows_path"` 44979 new_path="$unix_path" 44980 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 44981 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 44982 new_path="$unix_path" 44983 fi 44984 44985 # remove trailing .exe if any 44986 new_path="${new_path/%.exe/}" 44987 44988 # Save the first 10 bytes of this path to the storage, so fixpath can work. 44989 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 44990 fi 44991 44992 else 44993 # We're on a unix platform. Hooray! :) 44994 # First separate the path from the arguments. This will split at the first 44995 # space. 44996 complete="$BUILD_CXX" 44997 path="${complete%% *}" 44998 tmp="$complete EOL" 44999 arguments="${tmp#* }" 45000 45001 # Cannot rely on the command "which" here since it doesn't always work. 45002 is_absolute_path=`$ECHO "$path" | $GREP ^/` 45003 if test -z "$is_absolute_path"; then 45004 # Path to executable is not absolute. Find it. 45005 IFS_save="$IFS" 45006 IFS=: 45007 for p in $PATH; do 45008 if test -f "$p/$path" && test -x "$p/$path"; then 45009 new_path="$p/$path" 45010 break 45011 fi 45012 done 45013 IFS="$IFS_save" 45014 else 45015 # This is an absolute path, we can use it without further modifications. 45016 new_path="$path" 45017 fi 45018 45019 if test "x$new_path" = x; then 45020 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_CXX, which resolves as \"$complete\", is not found." >&5 45021 $as_echo "$as_me: The path of BUILD_CXX, which resolves as \"$complete\", is not found." >&6;} 45022 has_space=`$ECHO "$complete" | $GREP " "` 45023 if test "x$has_space" != x; then 45024 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 45025 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 45026 fi 45027 as_fn_error $? "Cannot locate the the path of BUILD_CXX" "$LINENO" 5 45028 fi 45029 fi 45030 45031 # Now join together the path and the arguments once again 45032 if test "x$arguments" != xEOL; then 45033 new_complete="$new_path ${arguments% *}" 45034 else 45035 new_complete="$new_path" 45036 fi 45037 45038 if test "x$complete" != "x$new_complete"; then 45039 BUILD_CXX="$new_complete" 45040 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BUILD_CXX to \"$new_complete\"" >&5 45041 $as_echo "$as_me: Rewriting BUILD_CXX to \"$new_complete\"" >&6;} 45042 fi 45043 fi 45044 45045 45046 45047 # Publish this variable in the help. 45048 45049 45050 if [ -z "${BUILD_NM+x}" ]; then 45051 # The variable is not set by user, try to locate tool using the code snippet 45052 for ac_prog in nm gcc-nm 45053 do 45054 # Extract the first word of "$ac_prog", so it can be a program name with args. 45055 set dummy $ac_prog; ac_word=$2 45056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 45057 $as_echo_n "checking for $ac_word... " >&6; } 45058 if ${ac_cv_path_BUILD_NM+:} false; then : 45059 $as_echo_n "(cached) " >&6 45060 else 45061 case $BUILD_NM in 45062 [\\/]* | ?:[\\/]*) 45063 ac_cv_path_BUILD_NM="$BUILD_NM" # Let the user override the test with a path. 45064 ;; 45065 *) 45066 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 45067 for as_dir in $PATH 45068 do 45069 IFS=$as_save_IFS 45070 test -z "$as_dir" && as_dir=. 45071 for ac_exec_ext in '' $ac_executable_extensions; do 45072 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 45073 ac_cv_path_BUILD_NM="$as_dir/$ac_word$ac_exec_ext" 45074 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 45075 break 2 45076 fi 45077 done 45078 done 45079 IFS=$as_save_IFS 45080 45081 ;; 45082 esac 45083 fi 45084 BUILD_NM=$ac_cv_path_BUILD_NM 45085 if test -n "$BUILD_NM"; then 45086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_NM" >&5 45087 $as_echo "$BUILD_NM" >&6; } 45088 else 45089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 45090 $as_echo "no" >&6; } 45091 fi 45092 45093 45094 test -n "$BUILD_NM" && break 45095 done 45096 45097 else 45098 # The variable is set, but is it from the command line or the environment? 45099 45100 # Try to remove the string !BUILD_NM! from our list. 45101 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!BUILD_NM!/} 45102 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 45103 # If it failed, the variable was not from the command line. Ignore it, 45104 # but warn the user (except for BASH, which is always set by the calling BASH). 45105 if test "xBUILD_NM" != xBASH; then 45106 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of BUILD_NM from the environment. Use command line variables instead." >&5 45107 $as_echo "$as_me: WARNING: Ignoring value of BUILD_NM from the environment. Use command line variables instead." >&2;} 45108 fi 45109 # Try to locate tool using the code snippet 45110 for ac_prog in nm gcc-nm 45111 do 45112 # Extract the first word of "$ac_prog", so it can be a program name with args. 45113 set dummy $ac_prog; ac_word=$2 45114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 45115 $as_echo_n "checking for $ac_word... " >&6; } 45116 if ${ac_cv_path_BUILD_NM+:} false; then : 45117 $as_echo_n "(cached) " >&6 45118 else 45119 case $BUILD_NM in 45120 [\\/]* | ?:[\\/]*) 45121 ac_cv_path_BUILD_NM="$BUILD_NM" # Let the user override the test with a path. 45122 ;; 45123 *) 45124 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 45125 for as_dir in $PATH 45126 do 45127 IFS=$as_save_IFS 45128 test -z "$as_dir" && as_dir=. 45129 for ac_exec_ext in '' $ac_executable_extensions; do 45130 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 45131 ac_cv_path_BUILD_NM="$as_dir/$ac_word$ac_exec_ext" 45132 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 45133 break 2 45134 fi 45135 done 45136 done 45137 IFS=$as_save_IFS 45138 45139 ;; 45140 esac 45141 fi 45142 BUILD_NM=$ac_cv_path_BUILD_NM 45143 if test -n "$BUILD_NM"; then 45144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_NM" >&5 45145 $as_echo "$BUILD_NM" >&6; } 45146 else 45147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 45148 $as_echo "no" >&6; } 45149 fi 45150 45151 45152 test -n "$BUILD_NM" && break 45153 done 45154 45155 else 45156 # If it succeeded, then it was overridden by the user. We will use it 45157 # for the tool. 45158 45159 # First remove it from the list of overridden variables, so we can test 45160 # for unknown variables in the end. 45161 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 45162 45163 # Check if we try to supply an empty value 45164 if test "x$BUILD_NM" = x; then 45165 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool BUILD_NM= (no value)" >&5 45166 $as_echo "$as_me: Setting user supplied tool BUILD_NM= (no value)" >&6;} 45167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BUILD_NM" >&5 45168 $as_echo_n "checking for BUILD_NM... " >&6; } 45169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 45170 $as_echo "disabled" >&6; } 45171 else 45172 # Check if the provided tool contains a complete path. 45173 tool_specified="$BUILD_NM" 45174 tool_basename="${tool_specified##*/}" 45175 if test "x$tool_basename" = "x$tool_specified"; then 45176 # A command without a complete path is provided, search $PATH. 45177 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool BUILD_NM=$tool_basename" >&5 45178 $as_echo "$as_me: Will search for user supplied tool BUILD_NM=$tool_basename" >&6;} 45179 # Extract the first word of "$tool_basename", so it can be a program name with args. 45180 set dummy $tool_basename; ac_word=$2 45181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 45182 $as_echo_n "checking for $ac_word... " >&6; } 45183 if ${ac_cv_path_BUILD_NM+:} false; then : 45184 $as_echo_n "(cached) " >&6 45185 else 45186 case $BUILD_NM in 45187 [\\/]* | ?:[\\/]*) 45188 ac_cv_path_BUILD_NM="$BUILD_NM" # Let the user override the test with a path. 45189 ;; 45190 *) 45191 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 45192 for as_dir in $PATH 45193 do 45194 IFS=$as_save_IFS 45195 test -z "$as_dir" && as_dir=. 45196 for ac_exec_ext in '' $ac_executable_extensions; do 45197 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 45198 ac_cv_path_BUILD_NM="$as_dir/$ac_word$ac_exec_ext" 45199 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 45200 break 2 45201 fi 45202 done 45203 done 45204 IFS=$as_save_IFS 45205 45206 ;; 45207 esac 45208 fi 45209 BUILD_NM=$ac_cv_path_BUILD_NM 45210 if test -n "$BUILD_NM"; then 45211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_NM" >&5 45212 $as_echo "$BUILD_NM" >&6; } 45213 else 45214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 45215 $as_echo "no" >&6; } 45216 fi 45217 45218 45219 if test "x$BUILD_NM" = x; then 45220 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 45221 fi 45222 else 45223 # Otherwise we believe it is a complete path. Use it as it is. 45224 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool BUILD_NM=$tool_specified" >&5 45225 $as_echo "$as_me: Will use user supplied tool BUILD_NM=$tool_specified" >&6;} 45226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BUILD_NM" >&5 45227 $as_echo_n "checking for BUILD_NM... " >&6; } 45228 if test ! -x "$tool_specified"; then 45229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 45230 $as_echo "not found" >&6; } 45231 as_fn_error $? "User supplied tool BUILD_NM=$tool_specified does not exist or is not executable" "$LINENO" 5 45232 fi 45233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 45234 $as_echo "$tool_specified" >&6; } 45235 fi 45236 fi 45237 fi 45238 45239 fi 45240 45241 45242 45243 # Only process if variable expands to non-empty 45244 45245 if test "x$BUILD_NM" != x; then 45246 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 45247 45248 # First separate the path from the arguments. This will split at the first 45249 # space. 45250 complete="$BUILD_NM" 45251 path="${complete%% *}" 45252 tmp="$complete EOL" 45253 arguments="${tmp#* }" 45254 45255 # Input might be given as Windows format, start by converting to 45256 # unix format. 45257 new_path=`$CYGPATH -u "$path"` 45258 45259 # Now try to locate executable using which 45260 new_path=`$WHICH "$new_path" 2> /dev/null` 45261 # bat and cmd files are not always considered executable in cygwin causing which 45262 # to not find them 45263 if test "x$new_path" = x \ 45264 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 45265 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 45266 new_path=`$CYGPATH -u "$path"` 45267 fi 45268 if test "x$new_path" = x; then 45269 # Oops. Which didn't find the executable. 45270 # The splitting of arguments from the executable at a space might have been incorrect, 45271 # since paths with space are more likely in Windows. Give it another try with the whole 45272 # argument. 45273 path="$complete" 45274 arguments="EOL" 45275 new_path=`$CYGPATH -u "$path"` 45276 new_path=`$WHICH "$new_path" 2> /dev/null` 45277 # bat and cmd files are not always considered executable in cygwin causing which 45278 # to not find them 45279 if test "x$new_path" = x \ 45280 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 45281 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 45282 new_path=`$CYGPATH -u "$path"` 45283 fi 45284 if test "x$new_path" = x; then 45285 # It's still not found. Now this is an unrecoverable error. 45286 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_NM, which resolves as \"$complete\", is not found." >&5 45287 $as_echo "$as_me: The path of BUILD_NM, which resolves as \"$complete\", is not found." >&6;} 45288 has_space=`$ECHO "$complete" | $GREP " "` 45289 if test "x$has_space" != x; then 45290 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 45291 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 45292 fi 45293 as_fn_error $? "Cannot locate the the path of BUILD_NM" "$LINENO" 5 45294 fi 45295 fi 45296 45297 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 45298 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 45299 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 45300 # "foo.exe" is OK but "foo" is an error. 45301 # 45302 # This test is therefore slightly more accurate than "test -f" to check for file presence. 45303 # It is also a way to make sure we got the proper file name for the real test later on. 45304 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 45305 if test "x$test_shortpath" = x; then 45306 # Short path failed, file does not exist as specified. 45307 # Try adding .exe or .cmd 45308 if test -f "${new_path}.exe"; then 45309 input_to_shortpath="${new_path}.exe" 45310 elif test -f "${new_path}.cmd"; then 45311 input_to_shortpath="${new_path}.cmd" 45312 else 45313 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_NM, which resolves as \"$new_path\", is invalid." >&5 45314 $as_echo "$as_me: The path of BUILD_NM, which resolves as \"$new_path\", is invalid." >&6;} 45315 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 45316 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 45317 as_fn_error $? "Cannot locate the the path of BUILD_NM" "$LINENO" 5 45318 fi 45319 else 45320 input_to_shortpath="$new_path" 45321 fi 45322 45323 # Call helper function which possibly converts this using DOS-style short mode. 45324 # If so, the updated path is stored in $new_path. 45325 new_path="$input_to_shortpath" 45326 45327 input_path="$input_to_shortpath" 45328 # Check if we need to convert this using DOS-style short mode. If the path 45329 # contains just simple characters, use it. Otherwise (spaces, weird characters), 45330 # take no chances and rewrite it. 45331 # Note: m4 eats our [], so we need to use [ and ] instead. 45332 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 45333 if test "x$has_forbidden_chars" != x; then 45334 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 45335 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 45336 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 45337 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 45338 # Going to short mode and back again did indeed matter. Since short mode is 45339 # case insensitive, let's make it lowercase to improve readability. 45340 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 45341 # Now convert it back to Unix-style (cygpath) 45342 input_path=`$CYGPATH -u "$shortmode_path"` 45343 new_path="$input_path" 45344 fi 45345 fi 45346 45347 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 45348 if test "x$test_cygdrive_prefix" = x; then 45349 # As a simple fix, exclude /usr/bin since it's not a real path. 45350 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 45351 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 45352 # a path prefixed by /cygdrive for fixpath to work. 45353 new_path="$CYGWIN_ROOT_PATH$input_path" 45354 fi 45355 fi 45356 45357 # remove trailing .exe if any 45358 new_path="${new_path/%.exe/}" 45359 45360 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 45361 45362 # First separate the path from the arguments. This will split at the first 45363 # space. 45364 complete="$BUILD_NM" 45365 path="${complete%% *}" 45366 tmp="$complete EOL" 45367 arguments="${tmp#* }" 45368 45369 # Input might be given as Windows format, start by converting to 45370 # unix format. 45371 new_path="$path" 45372 45373 windows_path="$new_path" 45374 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 45375 unix_path=`$CYGPATH -u "$windows_path"` 45376 new_path="$unix_path" 45377 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 45378 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 45379 new_path="$unix_path" 45380 fi 45381 45382 45383 # Now try to locate executable using which 45384 new_path=`$WHICH "$new_path" 2> /dev/null` 45385 45386 if test "x$new_path" = x; then 45387 # Oops. Which didn't find the executable. 45388 # The splitting of arguments from the executable at a space might have been incorrect, 45389 # since paths with space are more likely in Windows. Give it another try with the whole 45390 # argument. 45391 path="$complete" 45392 arguments="EOL" 45393 new_path="$path" 45394 45395 windows_path="$new_path" 45396 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 45397 unix_path=`$CYGPATH -u "$windows_path"` 45398 new_path="$unix_path" 45399 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 45400 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 45401 new_path="$unix_path" 45402 fi 45403 45404 45405 new_path=`$WHICH "$new_path" 2> /dev/null` 45406 # bat and cmd files are not always considered executable in MSYS causing which 45407 # to not find them 45408 if test "x$new_path" = x \ 45409 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 45410 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 45411 new_path="$path" 45412 45413 windows_path="$new_path" 45414 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 45415 unix_path=`$CYGPATH -u "$windows_path"` 45416 new_path="$unix_path" 45417 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 45418 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 45419 new_path="$unix_path" 45420 fi 45421 45422 fi 45423 45424 if test "x$new_path" = x; then 45425 # It's still not found. Now this is an unrecoverable error. 45426 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_NM, which resolves as \"$complete\", is not found." >&5 45427 $as_echo "$as_me: The path of BUILD_NM, which resolves as \"$complete\", is not found." >&6;} 45428 has_space=`$ECHO "$complete" | $GREP " "` 45429 if test "x$has_space" != x; then 45430 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 45431 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 45432 fi 45433 as_fn_error $? "Cannot locate the the path of BUILD_NM" "$LINENO" 5 45434 fi 45435 fi 45436 45437 # Now new_path has a complete unix path to the binary 45438 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 45439 # Keep paths in /bin as-is, but remove trailing .exe if any 45440 new_path="${new_path/%.exe/}" 45441 # Do not save /bin paths to all_fixpath_prefixes! 45442 else 45443 # Not in mixed or Windows style, start by that. 45444 new_path=`cmd //c echo $new_path` 45445 45446 input_path="$new_path" 45447 # Check if we need to convert this using DOS-style short mode. If the path 45448 # contains just simple characters, use it. Otherwise (spaces, weird characters), 45449 # take no chances and rewrite it. 45450 # Note: m4 eats our [], so we need to use [ and ] instead. 45451 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 45452 if test "x$has_forbidden_chars" != x; then 45453 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 45454 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 45455 fi 45456 45457 # Output is in $new_path 45458 45459 windows_path="$new_path" 45460 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 45461 unix_path=`$CYGPATH -u "$windows_path"` 45462 new_path="$unix_path" 45463 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 45464 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 45465 new_path="$unix_path" 45466 fi 45467 45468 # remove trailing .exe if any 45469 new_path="${new_path/%.exe/}" 45470 45471 # Save the first 10 bytes of this path to the storage, so fixpath can work. 45472 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 45473 fi 45474 45475 else 45476 # We're on a unix platform. Hooray! :) 45477 # First separate the path from the arguments. This will split at the first 45478 # space. 45479 complete="$BUILD_NM" 45480 path="${complete%% *}" 45481 tmp="$complete EOL" 45482 arguments="${tmp#* }" 45483 45484 # Cannot rely on the command "which" here since it doesn't always work. 45485 is_absolute_path=`$ECHO "$path" | $GREP ^/` 45486 if test -z "$is_absolute_path"; then 45487 # Path to executable is not absolute. Find it. 45488 IFS_save="$IFS" 45489 IFS=: 45490 for p in $PATH; do 45491 if test -f "$p/$path" && test -x "$p/$path"; then 45492 new_path="$p/$path" 45493 break 45494 fi 45495 done 45496 IFS="$IFS_save" 45497 else 45498 # This is an absolute path, we can use it without further modifications. 45499 new_path="$path" 45500 fi 45501 45502 if test "x$new_path" = x; then 45503 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_NM, which resolves as \"$complete\", is not found." >&5 45504 $as_echo "$as_me: The path of BUILD_NM, which resolves as \"$complete\", is not found." >&6;} 45505 has_space=`$ECHO "$complete" | $GREP " "` 45506 if test "x$has_space" != x; then 45507 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 45508 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 45509 fi 45510 as_fn_error $? "Cannot locate the the path of BUILD_NM" "$LINENO" 5 45511 fi 45512 fi 45513 45514 # Now join together the path and the arguments once again 45515 if test "x$arguments" != xEOL; then 45516 new_complete="$new_path ${arguments% *}" 45517 else 45518 new_complete="$new_path" 45519 fi 45520 45521 if test "x$complete" != "x$new_complete"; then 45522 BUILD_NM="$new_complete" 45523 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BUILD_NM to \"$new_complete\"" >&5 45524 $as_echo "$as_me: Rewriting BUILD_NM to \"$new_complete\"" >&6;} 45525 fi 45526 fi 45527 45528 45529 45530 # Publish this variable in the help. 45531 45532 45533 if [ -z "${BUILD_AR+x}" ]; then 45534 # The variable is not set by user, try to locate tool using the code snippet 45535 for ac_prog in ar gcc-ar 45536 do 45537 # Extract the first word of "$ac_prog", so it can be a program name with args. 45538 set dummy $ac_prog; ac_word=$2 45539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 45540 $as_echo_n "checking for $ac_word... " >&6; } 45541 if ${ac_cv_path_BUILD_AR+:} false; then : 45542 $as_echo_n "(cached) " >&6 45543 else 45544 case $BUILD_AR in 45545 [\\/]* | ?:[\\/]*) 45546 ac_cv_path_BUILD_AR="$BUILD_AR" # Let the user override the test with a path. 45547 ;; 45548 *) 45549 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 45550 for as_dir in $PATH 45551 do 45552 IFS=$as_save_IFS 45553 test -z "$as_dir" && as_dir=. 45554 for ac_exec_ext in '' $ac_executable_extensions; do 45555 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 45556 ac_cv_path_BUILD_AR="$as_dir/$ac_word$ac_exec_ext" 45557 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 45558 break 2 45559 fi 45560 done 45561 done 45562 IFS=$as_save_IFS 45563 45564 ;; 45565 esac 45566 fi 45567 BUILD_AR=$ac_cv_path_BUILD_AR 45568 if test -n "$BUILD_AR"; then 45569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_AR" >&5 45570 $as_echo "$BUILD_AR" >&6; } 45571 else 45572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 45573 $as_echo "no" >&6; } 45574 fi 45575 45576 45577 test -n "$BUILD_AR" && break 45578 done 45579 45580 else 45581 # The variable is set, but is it from the command line or the environment? 45582 45583 # Try to remove the string !BUILD_AR! from our list. 45584 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!BUILD_AR!/} 45585 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 45586 # If it failed, the variable was not from the command line. Ignore it, 45587 # but warn the user (except for BASH, which is always set by the calling BASH). 45588 if test "xBUILD_AR" != xBASH; then 45589 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of BUILD_AR from the environment. Use command line variables instead." >&5 45590 $as_echo "$as_me: WARNING: Ignoring value of BUILD_AR from the environment. Use command line variables instead." >&2;} 45591 fi 45592 # Try to locate tool using the code snippet 45593 for ac_prog in ar gcc-ar 45594 do 45595 # Extract the first word of "$ac_prog", so it can be a program name with args. 45596 set dummy $ac_prog; ac_word=$2 45597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 45598 $as_echo_n "checking for $ac_word... " >&6; } 45599 if ${ac_cv_path_BUILD_AR+:} false; then : 45600 $as_echo_n "(cached) " >&6 45601 else 45602 case $BUILD_AR in 45603 [\\/]* | ?:[\\/]*) 45604 ac_cv_path_BUILD_AR="$BUILD_AR" # Let the user override the test with a path. 45605 ;; 45606 *) 45607 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 45608 for as_dir in $PATH 45609 do 45610 IFS=$as_save_IFS 45611 test -z "$as_dir" && as_dir=. 45612 for ac_exec_ext in '' $ac_executable_extensions; do 45613 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 45614 ac_cv_path_BUILD_AR="$as_dir/$ac_word$ac_exec_ext" 45615 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 45616 break 2 45617 fi 45618 done 45619 done 45620 IFS=$as_save_IFS 45621 45622 ;; 45623 esac 45624 fi 45625 BUILD_AR=$ac_cv_path_BUILD_AR 45626 if test -n "$BUILD_AR"; then 45627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_AR" >&5 45628 $as_echo "$BUILD_AR" >&6; } 45629 else 45630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 45631 $as_echo "no" >&6; } 45632 fi 45633 45634 45635 test -n "$BUILD_AR" && break 45636 done 45637 45638 else 45639 # If it succeeded, then it was overridden by the user. We will use it 45640 # for the tool. 45641 45642 # First remove it from the list of overridden variables, so we can test 45643 # for unknown variables in the end. 45644 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 45645 45646 # Check if we try to supply an empty value 45647 if test "x$BUILD_AR" = x; then 45648 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool BUILD_AR= (no value)" >&5 45649 $as_echo "$as_me: Setting user supplied tool BUILD_AR= (no value)" >&6;} 45650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BUILD_AR" >&5 45651 $as_echo_n "checking for BUILD_AR... " >&6; } 45652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 45653 $as_echo "disabled" >&6; } 45654 else 45655 # Check if the provided tool contains a complete path. 45656 tool_specified="$BUILD_AR" 45657 tool_basename="${tool_specified##*/}" 45658 if test "x$tool_basename" = "x$tool_specified"; then 45659 # A command without a complete path is provided, search $PATH. 45660 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool BUILD_AR=$tool_basename" >&5 45661 $as_echo "$as_me: Will search for user supplied tool BUILD_AR=$tool_basename" >&6;} 45662 # Extract the first word of "$tool_basename", so it can be a program name with args. 45663 set dummy $tool_basename; ac_word=$2 45664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 45665 $as_echo_n "checking for $ac_word... " >&6; } 45666 if ${ac_cv_path_BUILD_AR+:} false; then : 45667 $as_echo_n "(cached) " >&6 45668 else 45669 case $BUILD_AR in 45670 [\\/]* | ?:[\\/]*) 45671 ac_cv_path_BUILD_AR="$BUILD_AR" # Let the user override the test with a path. 45672 ;; 45673 *) 45674 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 45675 for as_dir in $PATH 45676 do 45677 IFS=$as_save_IFS 45678 test -z "$as_dir" && as_dir=. 45679 for ac_exec_ext in '' $ac_executable_extensions; do 45680 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 45681 ac_cv_path_BUILD_AR="$as_dir/$ac_word$ac_exec_ext" 45682 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 45683 break 2 45684 fi 45685 done 45686 done 45687 IFS=$as_save_IFS 45688 45689 ;; 45690 esac 45691 fi 45692 BUILD_AR=$ac_cv_path_BUILD_AR 45693 if test -n "$BUILD_AR"; then 45694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_AR" >&5 45695 $as_echo "$BUILD_AR" >&6; } 45696 else 45697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 45698 $as_echo "no" >&6; } 45699 fi 45700 45701 45702 if test "x$BUILD_AR" = x; then 45703 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 45704 fi 45705 else 45706 # Otherwise we believe it is a complete path. Use it as it is. 45707 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool BUILD_AR=$tool_specified" >&5 45708 $as_echo "$as_me: Will use user supplied tool BUILD_AR=$tool_specified" >&6;} 45709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BUILD_AR" >&5 45710 $as_echo_n "checking for BUILD_AR... " >&6; } 45711 if test ! -x "$tool_specified"; then 45712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 45713 $as_echo "not found" >&6; } 45714 as_fn_error $? "User supplied tool BUILD_AR=$tool_specified does not exist or is not executable" "$LINENO" 5 45715 fi 45716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 45717 $as_echo "$tool_specified" >&6; } 45718 fi 45719 fi 45720 fi 45721 45722 fi 45723 45724 45725 45726 # Only process if variable expands to non-empty 45727 45728 if test "x$BUILD_AR" != x; then 45729 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 45730 45731 # First separate the path from the arguments. This will split at the first 45732 # space. 45733 complete="$BUILD_AR" 45734 path="${complete%% *}" 45735 tmp="$complete EOL" 45736 arguments="${tmp#* }" 45737 45738 # Input might be given as Windows format, start by converting to 45739 # unix format. 45740 new_path=`$CYGPATH -u "$path"` 45741 45742 # Now try to locate executable using which 45743 new_path=`$WHICH "$new_path" 2> /dev/null` 45744 # bat and cmd files are not always considered executable in cygwin causing which 45745 # to not find them 45746 if test "x$new_path" = x \ 45747 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 45748 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 45749 new_path=`$CYGPATH -u "$path"` 45750 fi 45751 if test "x$new_path" = x; then 45752 # Oops. Which didn't find the executable. 45753 # The splitting of arguments from the executable at a space might have been incorrect, 45754 # since paths with space are more likely in Windows. Give it another try with the whole 45755 # argument. 45756 path="$complete" 45757 arguments="EOL" 45758 new_path=`$CYGPATH -u "$path"` 45759 new_path=`$WHICH "$new_path" 2> /dev/null` 45760 # bat and cmd files are not always considered executable in cygwin causing which 45761 # to not find them 45762 if test "x$new_path" = x \ 45763 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 45764 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 45765 new_path=`$CYGPATH -u "$path"` 45766 fi 45767 if test "x$new_path" = x; then 45768 # It's still not found. Now this is an unrecoverable error. 45769 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_AR, which resolves as \"$complete\", is not found." >&5 45770 $as_echo "$as_me: The path of BUILD_AR, which resolves as \"$complete\", is not found." >&6;} 45771 has_space=`$ECHO "$complete" | $GREP " "` 45772 if test "x$has_space" != x; then 45773 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 45774 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 45775 fi 45776 as_fn_error $? "Cannot locate the the path of BUILD_AR" "$LINENO" 5 45777 fi 45778 fi 45779 45780 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 45781 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 45782 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 45783 # "foo.exe" is OK but "foo" is an error. 45784 # 45785 # This test is therefore slightly more accurate than "test -f" to check for file presence. 45786 # It is also a way to make sure we got the proper file name for the real test later on. 45787 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 45788 if test "x$test_shortpath" = x; then 45789 # Short path failed, file does not exist as specified. 45790 # Try adding .exe or .cmd 45791 if test -f "${new_path}.exe"; then 45792 input_to_shortpath="${new_path}.exe" 45793 elif test -f "${new_path}.cmd"; then 45794 input_to_shortpath="${new_path}.cmd" 45795 else 45796 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_AR, which resolves as \"$new_path\", is invalid." >&5 45797 $as_echo "$as_me: The path of BUILD_AR, which resolves as \"$new_path\", is invalid." >&6;} 45798 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 45799 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 45800 as_fn_error $? "Cannot locate the the path of BUILD_AR" "$LINENO" 5 45801 fi 45802 else 45803 input_to_shortpath="$new_path" 45804 fi 45805 45806 # Call helper function which possibly converts this using DOS-style short mode. 45807 # If so, the updated path is stored in $new_path. 45808 new_path="$input_to_shortpath" 45809 45810 input_path="$input_to_shortpath" 45811 # Check if we need to convert this using DOS-style short mode. If the path 45812 # contains just simple characters, use it. Otherwise (spaces, weird characters), 45813 # take no chances and rewrite it. 45814 # Note: m4 eats our [], so we need to use [ and ] instead. 45815 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 45816 if test "x$has_forbidden_chars" != x; then 45817 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 45818 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 45819 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 45820 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 45821 # Going to short mode and back again did indeed matter. Since short mode is 45822 # case insensitive, let's make it lowercase to improve readability. 45823 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 45824 # Now convert it back to Unix-style (cygpath) 45825 input_path=`$CYGPATH -u "$shortmode_path"` 45826 new_path="$input_path" 45827 fi 45828 fi 45829 45830 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 45831 if test "x$test_cygdrive_prefix" = x; then 45832 # As a simple fix, exclude /usr/bin since it's not a real path. 45833 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 45834 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 45835 # a path prefixed by /cygdrive for fixpath to work. 45836 new_path="$CYGWIN_ROOT_PATH$input_path" 45837 fi 45838 fi 45839 45840 # remove trailing .exe if any 45841 new_path="${new_path/%.exe/}" 45842 45843 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 45844 45845 # First separate the path from the arguments. This will split at the first 45846 # space. 45847 complete="$BUILD_AR" 45848 path="${complete%% *}" 45849 tmp="$complete EOL" 45850 arguments="${tmp#* }" 45851 45852 # Input might be given as Windows format, start by converting to 45853 # unix format. 45854 new_path="$path" 45855 45856 windows_path="$new_path" 45857 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 45858 unix_path=`$CYGPATH -u "$windows_path"` 45859 new_path="$unix_path" 45860 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 45861 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 45862 new_path="$unix_path" 45863 fi 45864 45865 45866 # Now try to locate executable using which 45867 new_path=`$WHICH "$new_path" 2> /dev/null` 45868 45869 if test "x$new_path" = x; then 45870 # Oops. Which didn't find the executable. 45871 # The splitting of arguments from the executable at a space might have been incorrect, 45872 # since paths with space are more likely in Windows. Give it another try with the whole 45873 # argument. 45874 path="$complete" 45875 arguments="EOL" 45876 new_path="$path" 45877 45878 windows_path="$new_path" 45879 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 45880 unix_path=`$CYGPATH -u "$windows_path"` 45881 new_path="$unix_path" 45882 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 45883 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 45884 new_path="$unix_path" 45885 fi 45886 45887 45888 new_path=`$WHICH "$new_path" 2> /dev/null` 45889 # bat and cmd files are not always considered executable in MSYS causing which 45890 # to not find them 45891 if test "x$new_path" = x \ 45892 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 45893 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 45894 new_path="$path" 45895 45896 windows_path="$new_path" 45897 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 45898 unix_path=`$CYGPATH -u "$windows_path"` 45899 new_path="$unix_path" 45900 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 45901 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 45902 new_path="$unix_path" 45903 fi 45904 45905 fi 45906 45907 if test "x$new_path" = x; then 45908 # It's still not found. Now this is an unrecoverable error. 45909 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_AR, which resolves as \"$complete\", is not found." >&5 45910 $as_echo "$as_me: The path of BUILD_AR, which resolves as \"$complete\", is not found." >&6;} 45911 has_space=`$ECHO "$complete" | $GREP " "` 45912 if test "x$has_space" != x; then 45913 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 45914 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 45915 fi 45916 as_fn_error $? "Cannot locate the the path of BUILD_AR" "$LINENO" 5 45917 fi 45918 fi 45919 45920 # Now new_path has a complete unix path to the binary 45921 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 45922 # Keep paths in /bin as-is, but remove trailing .exe if any 45923 new_path="${new_path/%.exe/}" 45924 # Do not save /bin paths to all_fixpath_prefixes! 45925 else 45926 # Not in mixed or Windows style, start by that. 45927 new_path=`cmd //c echo $new_path` 45928 45929 input_path="$new_path" 45930 # Check if we need to convert this using DOS-style short mode. If the path 45931 # contains just simple characters, use it. Otherwise (spaces, weird characters), 45932 # take no chances and rewrite it. 45933 # Note: m4 eats our [], so we need to use [ and ] instead. 45934 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 45935 if test "x$has_forbidden_chars" != x; then 45936 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 45937 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 45938 fi 45939 45940 # Output is in $new_path 45941 45942 windows_path="$new_path" 45943 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 45944 unix_path=`$CYGPATH -u "$windows_path"` 45945 new_path="$unix_path" 45946 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 45947 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 45948 new_path="$unix_path" 45949 fi 45950 45951 # remove trailing .exe if any 45952 new_path="${new_path/%.exe/}" 45953 45954 # Save the first 10 bytes of this path to the storage, so fixpath can work. 45955 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 45956 fi 45957 45958 else 45959 # We're on a unix platform. Hooray! :) 45960 # First separate the path from the arguments. This will split at the first 45961 # space. 45962 complete="$BUILD_AR" 45963 path="${complete%% *}" 45964 tmp="$complete EOL" 45965 arguments="${tmp#* }" 45966 45967 # Cannot rely on the command "which" here since it doesn't always work. 45968 is_absolute_path=`$ECHO "$path" | $GREP ^/` 45969 if test -z "$is_absolute_path"; then 45970 # Path to executable is not absolute. Find it. 45971 IFS_save="$IFS" 45972 IFS=: 45973 for p in $PATH; do 45974 if test -f "$p/$path" && test -x "$p/$path"; then 45975 new_path="$p/$path" 45976 break 45977 fi 45978 done 45979 IFS="$IFS_save" 45980 else 45981 # This is an absolute path, we can use it without further modifications. 45982 new_path="$path" 45983 fi 45984 45985 if test "x$new_path" = x; then 45986 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_AR, which resolves as \"$complete\", is not found." >&5 45987 $as_echo "$as_me: The path of BUILD_AR, which resolves as \"$complete\", is not found." >&6;} 45988 has_space=`$ECHO "$complete" | $GREP " "` 45989 if test "x$has_space" != x; then 45990 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 45991 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 45992 fi 45993 as_fn_error $? "Cannot locate the the path of BUILD_AR" "$LINENO" 5 45994 fi 45995 fi 45996 45997 # Now join together the path and the arguments once again 45998 if test "x$arguments" != xEOL; then 45999 new_complete="$new_path ${arguments% *}" 46000 else 46001 new_complete="$new_path" 46002 fi 46003 46004 if test "x$complete" != "x$new_complete"; then 46005 BUILD_AR="$new_complete" 46006 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BUILD_AR to \"$new_complete\"" >&5 46007 $as_echo "$as_me: Rewriting BUILD_AR to \"$new_complete\"" >&6;} 46008 fi 46009 fi 46010 46011 46012 46013 # Publish this variable in the help. 46014 46015 46016 if [ -z "${BUILD_OBJCOPY+x}" ]; then 46017 # The variable is not set by user, try to locate tool using the code snippet 46018 for ac_prog in objcopy 46019 do 46020 # Extract the first word of "$ac_prog", so it can be a program name with args. 46021 set dummy $ac_prog; ac_word=$2 46022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 46023 $as_echo_n "checking for $ac_word... " >&6; } 46024 if ${ac_cv_path_BUILD_OBJCOPY+:} false; then : 46025 $as_echo_n "(cached) " >&6 46026 else 46027 case $BUILD_OBJCOPY in 46028 [\\/]* | ?:[\\/]*) 46029 ac_cv_path_BUILD_OBJCOPY="$BUILD_OBJCOPY" # Let the user override the test with a path. 46030 ;; 46031 *) 46032 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 46033 for as_dir in $PATH 46034 do 46035 IFS=$as_save_IFS 46036 test -z "$as_dir" && as_dir=. 46037 for ac_exec_ext in '' $ac_executable_extensions; do 46038 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 46039 ac_cv_path_BUILD_OBJCOPY="$as_dir/$ac_word$ac_exec_ext" 46040 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 46041 break 2 46042 fi 46043 done 46044 done 46045 IFS=$as_save_IFS 46046 46047 ;; 46048 esac 46049 fi 46050 BUILD_OBJCOPY=$ac_cv_path_BUILD_OBJCOPY 46051 if test -n "$BUILD_OBJCOPY"; then 46052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_OBJCOPY" >&5 46053 $as_echo "$BUILD_OBJCOPY" >&6; } 46054 else 46055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 46056 $as_echo "no" >&6; } 46057 fi 46058 46059 46060 test -n "$BUILD_OBJCOPY" && break 46061 done 46062 46063 else 46064 # The variable is set, but is it from the command line or the environment? 46065 46066 # Try to remove the string !BUILD_OBJCOPY! from our list. 46067 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!BUILD_OBJCOPY!/} 46068 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 46069 # If it failed, the variable was not from the command line. Ignore it, 46070 # but warn the user (except for BASH, which is always set by the calling BASH). 46071 if test "xBUILD_OBJCOPY" != xBASH; then 46072 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of BUILD_OBJCOPY from the environment. Use command line variables instead." >&5 46073 $as_echo "$as_me: WARNING: Ignoring value of BUILD_OBJCOPY from the environment. Use command line variables instead." >&2;} 46074 fi 46075 # Try to locate tool using the code snippet 46076 for ac_prog in objcopy 46077 do 46078 # Extract the first word of "$ac_prog", so it can be a program name with args. 46079 set dummy $ac_prog; ac_word=$2 46080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 46081 $as_echo_n "checking for $ac_word... " >&6; } 46082 if ${ac_cv_path_BUILD_OBJCOPY+:} false; then : 46083 $as_echo_n "(cached) " >&6 46084 else 46085 case $BUILD_OBJCOPY in 46086 [\\/]* | ?:[\\/]*) 46087 ac_cv_path_BUILD_OBJCOPY="$BUILD_OBJCOPY" # Let the user override the test with a path. 46088 ;; 46089 *) 46090 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 46091 for as_dir in $PATH 46092 do 46093 IFS=$as_save_IFS 46094 test -z "$as_dir" && as_dir=. 46095 for ac_exec_ext in '' $ac_executable_extensions; do 46096 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 46097 ac_cv_path_BUILD_OBJCOPY="$as_dir/$ac_word$ac_exec_ext" 46098 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 46099 break 2 46100 fi 46101 done 46102 done 46103 IFS=$as_save_IFS 46104 46105 ;; 46106 esac 46107 fi 46108 BUILD_OBJCOPY=$ac_cv_path_BUILD_OBJCOPY 46109 if test -n "$BUILD_OBJCOPY"; then 46110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_OBJCOPY" >&5 46111 $as_echo "$BUILD_OBJCOPY" >&6; } 46112 else 46113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 46114 $as_echo "no" >&6; } 46115 fi 46116 46117 46118 test -n "$BUILD_OBJCOPY" && break 46119 done 46120 46121 else 46122 # If it succeeded, then it was overridden by the user. We will use it 46123 # for the tool. 46124 46125 # First remove it from the list of overridden variables, so we can test 46126 # for unknown variables in the end. 46127 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 46128 46129 # Check if we try to supply an empty value 46130 if test "x$BUILD_OBJCOPY" = x; then 46131 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool BUILD_OBJCOPY= (no value)" >&5 46132 $as_echo "$as_me: Setting user supplied tool BUILD_OBJCOPY= (no value)" >&6;} 46133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BUILD_OBJCOPY" >&5 46134 $as_echo_n "checking for BUILD_OBJCOPY... " >&6; } 46135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 46136 $as_echo "disabled" >&6; } 46137 else 46138 # Check if the provided tool contains a complete path. 46139 tool_specified="$BUILD_OBJCOPY" 46140 tool_basename="${tool_specified##*/}" 46141 if test "x$tool_basename" = "x$tool_specified"; then 46142 # A command without a complete path is provided, search $PATH. 46143 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool BUILD_OBJCOPY=$tool_basename" >&5 46144 $as_echo "$as_me: Will search for user supplied tool BUILD_OBJCOPY=$tool_basename" >&6;} 46145 # Extract the first word of "$tool_basename", so it can be a program name with args. 46146 set dummy $tool_basename; ac_word=$2 46147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 46148 $as_echo_n "checking for $ac_word... " >&6; } 46149 if ${ac_cv_path_BUILD_OBJCOPY+:} false; then : 46150 $as_echo_n "(cached) " >&6 46151 else 46152 case $BUILD_OBJCOPY in 46153 [\\/]* | ?:[\\/]*) 46154 ac_cv_path_BUILD_OBJCOPY="$BUILD_OBJCOPY" # Let the user override the test with a path. 46155 ;; 46156 *) 46157 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 46158 for as_dir in $PATH 46159 do 46160 IFS=$as_save_IFS 46161 test -z "$as_dir" && as_dir=. 46162 for ac_exec_ext in '' $ac_executable_extensions; do 46163 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 46164 ac_cv_path_BUILD_OBJCOPY="$as_dir/$ac_word$ac_exec_ext" 46165 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 46166 break 2 46167 fi 46168 done 46169 done 46170 IFS=$as_save_IFS 46171 46172 ;; 46173 esac 46174 fi 46175 BUILD_OBJCOPY=$ac_cv_path_BUILD_OBJCOPY 46176 if test -n "$BUILD_OBJCOPY"; then 46177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_OBJCOPY" >&5 46178 $as_echo "$BUILD_OBJCOPY" >&6; } 46179 else 46180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 46181 $as_echo "no" >&6; } 46182 fi 46183 46184 46185 if test "x$BUILD_OBJCOPY" = x; then 46186 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 46187 fi 46188 else 46189 # Otherwise we believe it is a complete path. Use it as it is. 46190 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool BUILD_OBJCOPY=$tool_specified" >&5 46191 $as_echo "$as_me: Will use user supplied tool BUILD_OBJCOPY=$tool_specified" >&6;} 46192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BUILD_OBJCOPY" >&5 46193 $as_echo_n "checking for BUILD_OBJCOPY... " >&6; } 46194 if test ! -x "$tool_specified"; then 46195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 46196 $as_echo "not found" >&6; } 46197 as_fn_error $? "User supplied tool BUILD_OBJCOPY=$tool_specified does not exist or is not executable" "$LINENO" 5 46198 fi 46199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 46200 $as_echo "$tool_specified" >&6; } 46201 fi 46202 fi 46203 fi 46204 46205 fi 46206 46207 46208 46209 # Only process if variable expands to non-empty 46210 46211 if test "x$BUILD_OBJCOPY" != x; then 46212 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 46213 46214 # First separate the path from the arguments. This will split at the first 46215 # space. 46216 complete="$BUILD_OBJCOPY" 46217 path="${complete%% *}" 46218 tmp="$complete EOL" 46219 arguments="${tmp#* }" 46220 46221 # Input might be given as Windows format, start by converting to 46222 # unix format. 46223 new_path=`$CYGPATH -u "$path"` 46224 46225 # Now try to locate executable using which 46226 new_path=`$WHICH "$new_path" 2> /dev/null` 46227 # bat and cmd files are not always considered executable in cygwin causing which 46228 # to not find them 46229 if test "x$new_path" = x \ 46230 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 46231 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 46232 new_path=`$CYGPATH -u "$path"` 46233 fi 46234 if test "x$new_path" = x; then 46235 # Oops. Which didn't find the executable. 46236 # The splitting of arguments from the executable at a space might have been incorrect, 46237 # since paths with space are more likely in Windows. Give it another try with the whole 46238 # argument. 46239 path="$complete" 46240 arguments="EOL" 46241 new_path=`$CYGPATH -u "$path"` 46242 new_path=`$WHICH "$new_path" 2> /dev/null` 46243 # bat and cmd files are not always considered executable in cygwin causing which 46244 # to not find them 46245 if test "x$new_path" = x \ 46246 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 46247 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 46248 new_path=`$CYGPATH -u "$path"` 46249 fi 46250 if test "x$new_path" = x; then 46251 # It's still not found. Now this is an unrecoverable error. 46252 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_OBJCOPY, which resolves as \"$complete\", is not found." >&5 46253 $as_echo "$as_me: The path of BUILD_OBJCOPY, which resolves as \"$complete\", is not found." >&6;} 46254 has_space=`$ECHO "$complete" | $GREP " "` 46255 if test "x$has_space" != x; then 46256 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 46257 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 46258 fi 46259 as_fn_error $? "Cannot locate the the path of BUILD_OBJCOPY" "$LINENO" 5 46260 fi 46261 fi 46262 46263 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 46264 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 46265 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 46266 # "foo.exe" is OK but "foo" is an error. 46267 # 46268 # This test is therefore slightly more accurate than "test -f" to check for file presence. 46269 # It is also a way to make sure we got the proper file name for the real test later on. 46270 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 46271 if test "x$test_shortpath" = x; then 46272 # Short path failed, file does not exist as specified. 46273 # Try adding .exe or .cmd 46274 if test -f "${new_path}.exe"; then 46275 input_to_shortpath="${new_path}.exe" 46276 elif test -f "${new_path}.cmd"; then 46277 input_to_shortpath="${new_path}.cmd" 46278 else 46279 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_OBJCOPY, which resolves as \"$new_path\", is invalid." >&5 46280 $as_echo "$as_me: The path of BUILD_OBJCOPY, which resolves as \"$new_path\", is invalid." >&6;} 46281 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 46282 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 46283 as_fn_error $? "Cannot locate the the path of BUILD_OBJCOPY" "$LINENO" 5 46284 fi 46285 else 46286 input_to_shortpath="$new_path" 46287 fi 46288 46289 # Call helper function which possibly converts this using DOS-style short mode. 46290 # If so, the updated path is stored in $new_path. 46291 new_path="$input_to_shortpath" 46292 46293 input_path="$input_to_shortpath" 46294 # Check if we need to convert this using DOS-style short mode. If the path 46295 # contains just simple characters, use it. Otherwise (spaces, weird characters), 46296 # take no chances and rewrite it. 46297 # Note: m4 eats our [], so we need to use [ and ] instead. 46298 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 46299 if test "x$has_forbidden_chars" != x; then 46300 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 46301 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 46302 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 46303 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 46304 # Going to short mode and back again did indeed matter. Since short mode is 46305 # case insensitive, let's make it lowercase to improve readability. 46306 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 46307 # Now convert it back to Unix-style (cygpath) 46308 input_path=`$CYGPATH -u "$shortmode_path"` 46309 new_path="$input_path" 46310 fi 46311 fi 46312 46313 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 46314 if test "x$test_cygdrive_prefix" = x; then 46315 # As a simple fix, exclude /usr/bin since it's not a real path. 46316 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 46317 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 46318 # a path prefixed by /cygdrive for fixpath to work. 46319 new_path="$CYGWIN_ROOT_PATH$input_path" 46320 fi 46321 fi 46322 46323 # remove trailing .exe if any 46324 new_path="${new_path/%.exe/}" 46325 46326 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 46327 46328 # First separate the path from the arguments. This will split at the first 46329 # space. 46330 complete="$BUILD_OBJCOPY" 46331 path="${complete%% *}" 46332 tmp="$complete EOL" 46333 arguments="${tmp#* }" 46334 46335 # Input might be given as Windows format, start by converting to 46336 # unix format. 46337 new_path="$path" 46338 46339 windows_path="$new_path" 46340 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 46341 unix_path=`$CYGPATH -u "$windows_path"` 46342 new_path="$unix_path" 46343 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 46344 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 46345 new_path="$unix_path" 46346 fi 46347 46348 46349 # Now try to locate executable using which 46350 new_path=`$WHICH "$new_path" 2> /dev/null` 46351 46352 if test "x$new_path" = x; then 46353 # Oops. Which didn't find the executable. 46354 # The splitting of arguments from the executable at a space might have been incorrect, 46355 # since paths with space are more likely in Windows. Give it another try with the whole 46356 # argument. 46357 path="$complete" 46358 arguments="EOL" 46359 new_path="$path" 46360 46361 windows_path="$new_path" 46362 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 46363 unix_path=`$CYGPATH -u "$windows_path"` 46364 new_path="$unix_path" 46365 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 46366 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 46367 new_path="$unix_path" 46368 fi 46369 46370 46371 new_path=`$WHICH "$new_path" 2> /dev/null` 46372 # bat and cmd files are not always considered executable in MSYS causing which 46373 # to not find them 46374 if test "x$new_path" = x \ 46375 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 46376 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 46377 new_path="$path" 46378 46379 windows_path="$new_path" 46380 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 46381 unix_path=`$CYGPATH -u "$windows_path"` 46382 new_path="$unix_path" 46383 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 46384 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 46385 new_path="$unix_path" 46386 fi 46387 46388 fi 46389 46390 if test "x$new_path" = x; then 46391 # It's still not found. Now this is an unrecoverable error. 46392 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_OBJCOPY, which resolves as \"$complete\", is not found." >&5 46393 $as_echo "$as_me: The path of BUILD_OBJCOPY, which resolves as \"$complete\", is not found." >&6;} 46394 has_space=`$ECHO "$complete" | $GREP " "` 46395 if test "x$has_space" != x; then 46396 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 46397 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 46398 fi 46399 as_fn_error $? "Cannot locate the the path of BUILD_OBJCOPY" "$LINENO" 5 46400 fi 46401 fi 46402 46403 # Now new_path has a complete unix path to the binary 46404 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 46405 # Keep paths in /bin as-is, but remove trailing .exe if any 46406 new_path="${new_path/%.exe/}" 46407 # Do not save /bin paths to all_fixpath_prefixes! 46408 else 46409 # Not in mixed or Windows style, start by that. 46410 new_path=`cmd //c echo $new_path` 46411 46412 input_path="$new_path" 46413 # Check if we need to convert this using DOS-style short mode. If the path 46414 # contains just simple characters, use it. Otherwise (spaces, weird characters), 46415 # take no chances and rewrite it. 46416 # Note: m4 eats our [], so we need to use [ and ] instead. 46417 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 46418 if test "x$has_forbidden_chars" != x; then 46419 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 46420 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 46421 fi 46422 46423 # Output is in $new_path 46424 46425 windows_path="$new_path" 46426 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 46427 unix_path=`$CYGPATH -u "$windows_path"` 46428 new_path="$unix_path" 46429 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 46430 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 46431 new_path="$unix_path" 46432 fi 46433 46434 # remove trailing .exe if any 46435 new_path="${new_path/%.exe/}" 46436 46437 # Save the first 10 bytes of this path to the storage, so fixpath can work. 46438 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 46439 fi 46440 46441 else 46442 # We're on a unix platform. Hooray! :) 46443 # First separate the path from the arguments. This will split at the first 46444 # space. 46445 complete="$BUILD_OBJCOPY" 46446 path="${complete%% *}" 46447 tmp="$complete EOL" 46448 arguments="${tmp#* }" 46449 46450 # Cannot rely on the command "which" here since it doesn't always work. 46451 is_absolute_path=`$ECHO "$path" | $GREP ^/` 46452 if test -z "$is_absolute_path"; then 46453 # Path to executable is not absolute. Find it. 46454 IFS_save="$IFS" 46455 IFS=: 46456 for p in $PATH; do 46457 if test -f "$p/$path" && test -x "$p/$path"; then 46458 new_path="$p/$path" 46459 break 46460 fi 46461 done 46462 IFS="$IFS_save" 46463 else 46464 # This is an absolute path, we can use it without further modifications. 46465 new_path="$path" 46466 fi 46467 46468 if test "x$new_path" = x; then 46469 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_OBJCOPY, which resolves as \"$complete\", is not found." >&5 46470 $as_echo "$as_me: The path of BUILD_OBJCOPY, which resolves as \"$complete\", is not found." >&6;} 46471 has_space=`$ECHO "$complete" | $GREP " "` 46472 if test "x$has_space" != x; then 46473 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 46474 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 46475 fi 46476 as_fn_error $? "Cannot locate the the path of BUILD_OBJCOPY" "$LINENO" 5 46477 fi 46478 fi 46479 46480 # Now join together the path and the arguments once again 46481 if test "x$arguments" != xEOL; then 46482 new_complete="$new_path ${arguments% *}" 46483 else 46484 new_complete="$new_path" 46485 fi 46486 46487 if test "x$complete" != "x$new_complete"; then 46488 BUILD_OBJCOPY="$new_complete" 46489 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BUILD_OBJCOPY to \"$new_complete\"" >&5 46490 $as_echo "$as_me: Rewriting BUILD_OBJCOPY to \"$new_complete\"" >&6;} 46491 fi 46492 fi 46493 46494 46495 46496 # Publish this variable in the help. 46497 46498 46499 if [ -z "${BUILD_STRIP+x}" ]; then 46500 # The variable is not set by user, try to locate tool using the code snippet 46501 for ac_prog in strip 46502 do 46503 # Extract the first word of "$ac_prog", so it can be a program name with args. 46504 set dummy $ac_prog; ac_word=$2 46505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 46506 $as_echo_n "checking for $ac_word... " >&6; } 46507 if ${ac_cv_path_BUILD_STRIP+:} false; then : 46508 $as_echo_n "(cached) " >&6 46509 else 46510 case $BUILD_STRIP in 46511 [\\/]* | ?:[\\/]*) 46512 ac_cv_path_BUILD_STRIP="$BUILD_STRIP" # Let the user override the test with a path. 46513 ;; 46514 *) 46515 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 46516 for as_dir in $PATH 46517 do 46518 IFS=$as_save_IFS 46519 test -z "$as_dir" && as_dir=. 46520 for ac_exec_ext in '' $ac_executable_extensions; do 46521 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 46522 ac_cv_path_BUILD_STRIP="$as_dir/$ac_word$ac_exec_ext" 46523 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 46524 break 2 46525 fi 46526 done 46527 done 46528 IFS=$as_save_IFS 46529 46530 ;; 46531 esac 46532 fi 46533 BUILD_STRIP=$ac_cv_path_BUILD_STRIP 46534 if test -n "$BUILD_STRIP"; then 46535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_STRIP" >&5 46536 $as_echo "$BUILD_STRIP" >&6; } 46537 else 46538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 46539 $as_echo "no" >&6; } 46540 fi 46541 46542 46543 test -n "$BUILD_STRIP" && break 46544 done 46545 46546 else 46547 # The variable is set, but is it from the command line or the environment? 46548 46549 # Try to remove the string !BUILD_STRIP! from our list. 46550 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!BUILD_STRIP!/} 46551 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 46552 # If it failed, the variable was not from the command line. Ignore it, 46553 # but warn the user (except for BASH, which is always set by the calling BASH). 46554 if test "xBUILD_STRIP" != xBASH; then 46555 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of BUILD_STRIP from the environment. Use command line variables instead." >&5 46556 $as_echo "$as_me: WARNING: Ignoring value of BUILD_STRIP from the environment. Use command line variables instead." >&2;} 46557 fi 46558 # Try to locate tool using the code snippet 46559 for ac_prog in strip 46560 do 46561 # Extract the first word of "$ac_prog", so it can be a program name with args. 46562 set dummy $ac_prog; ac_word=$2 46563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 46564 $as_echo_n "checking for $ac_word... " >&6; } 46565 if ${ac_cv_path_BUILD_STRIP+:} false; then : 46566 $as_echo_n "(cached) " >&6 46567 else 46568 case $BUILD_STRIP in 46569 [\\/]* | ?:[\\/]*) 46570 ac_cv_path_BUILD_STRIP="$BUILD_STRIP" # Let the user override the test with a path. 46571 ;; 46572 *) 46573 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 46574 for as_dir in $PATH 46575 do 46576 IFS=$as_save_IFS 46577 test -z "$as_dir" && as_dir=. 46578 for ac_exec_ext in '' $ac_executable_extensions; do 46579 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 46580 ac_cv_path_BUILD_STRIP="$as_dir/$ac_word$ac_exec_ext" 46581 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 46582 break 2 46583 fi 46584 done 46585 done 46586 IFS=$as_save_IFS 46587 46588 ;; 46589 esac 46590 fi 46591 BUILD_STRIP=$ac_cv_path_BUILD_STRIP 46592 if test -n "$BUILD_STRIP"; then 46593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_STRIP" >&5 46594 $as_echo "$BUILD_STRIP" >&6; } 46595 else 46596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 46597 $as_echo "no" >&6; } 46598 fi 46599 46600 46601 test -n "$BUILD_STRIP" && break 46602 done 46603 46604 else 46605 # If it succeeded, then it was overridden by the user. We will use it 46606 # for the tool. 46607 46608 # First remove it from the list of overridden variables, so we can test 46609 # for unknown variables in the end. 46610 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 46611 46612 # Check if we try to supply an empty value 46613 if test "x$BUILD_STRIP" = x; then 46614 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool BUILD_STRIP= (no value)" >&5 46615 $as_echo "$as_me: Setting user supplied tool BUILD_STRIP= (no value)" >&6;} 46616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BUILD_STRIP" >&5 46617 $as_echo_n "checking for BUILD_STRIP... " >&6; } 46618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 46619 $as_echo "disabled" >&6; } 46620 else 46621 # Check if the provided tool contains a complete path. 46622 tool_specified="$BUILD_STRIP" 46623 tool_basename="${tool_specified##*/}" 46624 if test "x$tool_basename" = "x$tool_specified"; then 46625 # A command without a complete path is provided, search $PATH. 46626 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool BUILD_STRIP=$tool_basename" >&5 46627 $as_echo "$as_me: Will search for user supplied tool BUILD_STRIP=$tool_basename" >&6;} 46628 # Extract the first word of "$tool_basename", so it can be a program name with args. 46629 set dummy $tool_basename; ac_word=$2 46630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 46631 $as_echo_n "checking for $ac_word... " >&6; } 46632 if ${ac_cv_path_BUILD_STRIP+:} false; then : 46633 $as_echo_n "(cached) " >&6 46634 else 46635 case $BUILD_STRIP in 46636 [\\/]* | ?:[\\/]*) 46637 ac_cv_path_BUILD_STRIP="$BUILD_STRIP" # Let the user override the test with a path. 46638 ;; 46639 *) 46640 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 46641 for as_dir in $PATH 46642 do 46643 IFS=$as_save_IFS 46644 test -z "$as_dir" && as_dir=. 46645 for ac_exec_ext in '' $ac_executable_extensions; do 46646 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 46647 ac_cv_path_BUILD_STRIP="$as_dir/$ac_word$ac_exec_ext" 46648 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 46649 break 2 46650 fi 46651 done 46652 done 46653 IFS=$as_save_IFS 46654 46655 ;; 46656 esac 46657 fi 46658 BUILD_STRIP=$ac_cv_path_BUILD_STRIP 46659 if test -n "$BUILD_STRIP"; then 46660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_STRIP" >&5 46661 $as_echo "$BUILD_STRIP" >&6; } 46662 else 46663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 46664 $as_echo "no" >&6; } 46665 fi 46666 46667 46668 if test "x$BUILD_STRIP" = x; then 46669 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 46670 fi 46671 else 46672 # Otherwise we believe it is a complete path. Use it as it is. 46673 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool BUILD_STRIP=$tool_specified" >&5 46674 $as_echo "$as_me: Will use user supplied tool BUILD_STRIP=$tool_specified" >&6;} 46675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BUILD_STRIP" >&5 46676 $as_echo_n "checking for BUILD_STRIP... " >&6; } 46677 if test ! -x "$tool_specified"; then 46678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 46679 $as_echo "not found" >&6; } 46680 as_fn_error $? "User supplied tool BUILD_STRIP=$tool_specified does not exist or is not executable" "$LINENO" 5 46681 fi 46682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 46683 $as_echo "$tool_specified" >&6; } 46684 fi 46685 fi 46686 fi 46687 46688 fi 46689 46690 46691 46692 # Only process if variable expands to non-empty 46693 46694 if test "x$BUILD_STRIP" != x; then 46695 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 46696 46697 # First separate the path from the arguments. This will split at the first 46698 # space. 46699 complete="$BUILD_STRIP" 46700 path="${complete%% *}" 46701 tmp="$complete EOL" 46702 arguments="${tmp#* }" 46703 46704 # Input might be given as Windows format, start by converting to 46705 # unix format. 46706 new_path=`$CYGPATH -u "$path"` 46707 46708 # Now try to locate executable using which 46709 new_path=`$WHICH "$new_path" 2> /dev/null` 46710 # bat and cmd files are not always considered executable in cygwin causing which 46711 # to not find them 46712 if test "x$new_path" = x \ 46713 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 46714 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 46715 new_path=`$CYGPATH -u "$path"` 46716 fi 46717 if test "x$new_path" = x; then 46718 # Oops. Which didn't find the executable. 46719 # The splitting of arguments from the executable at a space might have been incorrect, 46720 # since paths with space are more likely in Windows. Give it another try with the whole 46721 # argument. 46722 path="$complete" 46723 arguments="EOL" 46724 new_path=`$CYGPATH -u "$path"` 46725 new_path=`$WHICH "$new_path" 2> /dev/null` 46726 # bat and cmd files are not always considered executable in cygwin causing which 46727 # to not find them 46728 if test "x$new_path" = x \ 46729 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 46730 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 46731 new_path=`$CYGPATH -u "$path"` 46732 fi 46733 if test "x$new_path" = x; then 46734 # It's still not found. Now this is an unrecoverable error. 46735 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_STRIP, which resolves as \"$complete\", is not found." >&5 46736 $as_echo "$as_me: The path of BUILD_STRIP, which resolves as \"$complete\", is not found." >&6;} 46737 has_space=`$ECHO "$complete" | $GREP " "` 46738 if test "x$has_space" != x; then 46739 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 46740 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 46741 fi 46742 as_fn_error $? "Cannot locate the the path of BUILD_STRIP" "$LINENO" 5 46743 fi 46744 fi 46745 46746 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 46747 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 46748 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 46749 # "foo.exe" is OK but "foo" is an error. 46750 # 46751 # This test is therefore slightly more accurate than "test -f" to check for file presence. 46752 # It is also a way to make sure we got the proper file name for the real test later on. 46753 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 46754 if test "x$test_shortpath" = x; then 46755 # Short path failed, file does not exist as specified. 46756 # Try adding .exe or .cmd 46757 if test -f "${new_path}.exe"; then 46758 input_to_shortpath="${new_path}.exe" 46759 elif test -f "${new_path}.cmd"; then 46760 input_to_shortpath="${new_path}.cmd" 46761 else 46762 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_STRIP, which resolves as \"$new_path\", is invalid." >&5 46763 $as_echo "$as_me: The path of BUILD_STRIP, which resolves as \"$new_path\", is invalid." >&6;} 46764 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 46765 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 46766 as_fn_error $? "Cannot locate the the path of BUILD_STRIP" "$LINENO" 5 46767 fi 46768 else 46769 input_to_shortpath="$new_path" 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 new_path="$input_to_shortpath" 46775 46776 input_path="$input_to_shortpath" 46777 # Check if we need to convert this using DOS-style short mode. If the path 46778 # contains just simple characters, use it. Otherwise (spaces, weird characters), 46779 # take no chances and rewrite it. 46780 # Note: m4 eats our [], so we need to use [ and ] instead. 46781 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 46782 if test "x$has_forbidden_chars" != x; then 46783 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 46784 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 46785 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 46786 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 46787 # Going to short mode and back again did indeed matter. Since short mode is 46788 # case insensitive, let's make it lowercase to improve readability. 46789 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 46790 # Now convert it back to Unix-style (cygpath) 46791 input_path=`$CYGPATH -u "$shortmode_path"` 46792 new_path="$input_path" 46793 fi 46794 fi 46795 46796 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 46797 if test "x$test_cygdrive_prefix" = x; then 46798 # As a simple fix, exclude /usr/bin since it's not a real path. 46799 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 46800 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 46801 # a path prefixed by /cygdrive for fixpath to work. 46802 new_path="$CYGWIN_ROOT_PATH$input_path" 46803 fi 46804 fi 46805 46806 # remove trailing .exe if any 46807 new_path="${new_path/%.exe/}" 46808 46809 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 46810 46811 # First separate the path from the arguments. This will split at the first 46812 # space. 46813 complete="$BUILD_STRIP" 46814 path="${complete%% *}" 46815 tmp="$complete EOL" 46816 arguments="${tmp#* }" 46817 46818 # Input might be given as Windows format, start by converting to 46819 # unix format. 46820 new_path="$path" 46821 46822 windows_path="$new_path" 46823 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 46824 unix_path=`$CYGPATH -u "$windows_path"` 46825 new_path="$unix_path" 46826 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 46827 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 46828 new_path="$unix_path" 46829 fi 46830 46831 46832 # Now try to locate executable using which 46833 new_path=`$WHICH "$new_path" 2> /dev/null` 46834 46835 if test "x$new_path" = x; then 46836 # Oops. Which didn't find the executable. 46837 # The splitting of arguments from the executable at a space might have been incorrect, 46838 # since paths with space are more likely in Windows. Give it another try with the whole 46839 # argument. 46840 path="$complete" 46841 arguments="EOL" 46842 new_path="$path" 46843 46844 windows_path="$new_path" 46845 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 46846 unix_path=`$CYGPATH -u "$windows_path"` 46847 new_path="$unix_path" 46848 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 46849 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 46850 new_path="$unix_path" 46851 fi 46852 46853 46854 new_path=`$WHICH "$new_path" 2> /dev/null` 46855 # bat and cmd files are not always considered executable in MSYS causing which 46856 # to not find them 46857 if test "x$new_path" = x \ 46858 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 46859 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 46860 new_path="$path" 46861 46862 windows_path="$new_path" 46863 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 46864 unix_path=`$CYGPATH -u "$windows_path"` 46865 new_path="$unix_path" 46866 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 46867 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 46868 new_path="$unix_path" 46869 fi 46870 46871 fi 46872 46873 if test "x$new_path" = x; then 46874 # It's still not found. Now this is an unrecoverable error. 46875 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_STRIP, which resolves as \"$complete\", is not found." >&5 46876 $as_echo "$as_me: The path of BUILD_STRIP, which resolves as \"$complete\", is not found." >&6;} 46877 has_space=`$ECHO "$complete" | $GREP " "` 46878 if test "x$has_space" != x; then 46879 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 46880 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 46881 fi 46882 as_fn_error $? "Cannot locate the the path of BUILD_STRIP" "$LINENO" 5 46883 fi 46884 fi 46885 46886 # Now new_path has a complete unix path to the binary 46887 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 46888 # Keep paths in /bin as-is, but remove trailing .exe if any 46889 new_path="${new_path/%.exe/}" 46890 # Do not save /bin paths to all_fixpath_prefixes! 46891 else 46892 # Not in mixed or Windows style, start by that. 46893 new_path=`cmd //c echo $new_path` 46894 46895 input_path="$new_path" 46896 # Check if we need to convert this using DOS-style short mode. If the path 46897 # contains just simple characters, use it. Otherwise (spaces, weird characters), 46898 # take no chances and rewrite it. 46899 # Note: m4 eats our [], so we need to use [ and ] instead. 46900 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 46901 if test "x$has_forbidden_chars" != x; then 46902 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 46903 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 46904 fi 46905 46906 # Output is in $new_path 46907 46908 windows_path="$new_path" 46909 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 46910 unix_path=`$CYGPATH -u "$windows_path"` 46911 new_path="$unix_path" 46912 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 46913 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 46914 new_path="$unix_path" 46915 fi 46916 46917 # remove trailing .exe if any 46918 new_path="${new_path/%.exe/}" 46919 46920 # Save the first 10 bytes of this path to the storage, so fixpath can work. 46921 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 46922 fi 46923 46924 else 46925 # We're on a unix platform. Hooray! :) 46926 # First separate the path from the arguments. This will split at the first 46927 # space. 46928 complete="$BUILD_STRIP" 46929 path="${complete%% *}" 46930 tmp="$complete EOL" 46931 arguments="${tmp#* }" 46932 46933 # Cannot rely on the command "which" here since it doesn't always work. 46934 is_absolute_path=`$ECHO "$path" | $GREP ^/` 46935 if test -z "$is_absolute_path"; then 46936 # Path to executable is not absolute. Find it. 46937 IFS_save="$IFS" 46938 IFS=: 46939 for p in $PATH; do 46940 if test -f "$p/$path" && test -x "$p/$path"; then 46941 new_path="$p/$path" 46942 break 46943 fi 46944 done 46945 IFS="$IFS_save" 46946 else 46947 # This is an absolute path, we can use it without further modifications. 46948 new_path="$path" 46949 fi 46950 46951 if test "x$new_path" = x; then 46952 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_STRIP, which resolves as \"$complete\", is not found." >&5 46953 $as_echo "$as_me: The path of BUILD_STRIP, which resolves as \"$complete\", is not found." >&6;} 46954 has_space=`$ECHO "$complete" | $GREP " "` 46955 if test "x$has_space" != x; then 46956 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 46957 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 46958 fi 46959 as_fn_error $? "Cannot locate the the path of BUILD_STRIP" "$LINENO" 5 46960 fi 46961 fi 46962 46963 # Now join together the path and the arguments once again 46964 if test "x$arguments" != xEOL; then 46965 new_complete="$new_path ${arguments% *}" 46966 else 46967 new_complete="$new_path" 46968 fi 46969 46970 if test "x$complete" != "x$new_complete"; then 46971 BUILD_STRIP="$new_complete" 46972 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BUILD_STRIP to \"$new_complete\"" >&5 46973 $as_echo "$as_me: Rewriting BUILD_STRIP to \"$new_complete\"" >&6;} 46974 fi 46975 fi 46976 46977 # Assume the C compiler is the assembler 46978 BUILD_AS="$BUILD_CC -c" 46979 # Just like for the target compiler, use the compiler as linker 46980 BUILD_LD="$BUILD_CC" 46981 BUILD_LDCXX="$BUILD_CXX" 46982 46983 PATH="$OLDPATH" 46984 46985 46986 COMPILER=$BUILD_CC 46987 COMPILER_NAME=BuildC 46988 46989 if test "x$TOOLCHAIN_TYPE" = xsolstudio; then 46990 # cc -V output typically looks like 46991 # cc: Sun C 5.12 Linux_i386 2011/11/16 46992 COMPILER_VERSION_OUTPUT=`$COMPILER -V 2>&1` 46993 # Check that this is likely to be the Solaris Studio cc. 46994 $ECHO "$COMPILER_VERSION_OUTPUT" | $GREP "^.*: Sun $COMPILER_NAME" > /dev/null 46995 if test $? -ne 0; then 46996 ALT_VERSION_OUTPUT=`$COMPILER --version 2>&1` 46997 { $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 46998 $as_echo "$as_me: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required $TOOLCHAIN_TYPE compiler." >&6;} 46999 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with -V was: \"$COMPILER_VERSION_OUTPUT\"" >&5 47000 $as_echo "$as_me: The result from running with -V was: \"$COMPILER_VERSION_OUTPUT\"" >&6;} 47001 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with --version was: \"$ALT_VERSION_OUTPUT\"" >&5 47002 $as_echo "$as_me: The result from running with --version was: \"$ALT_VERSION_OUTPUT\"" >&6;} 47003 as_fn_error $? "A $TOOLCHAIN_TYPE compiler is required. Try setting --with-tools-dir." "$LINENO" 5 47004 fi 47005 # Remove usage instructions (if present), and 47006 # collapse compiler output into a single line 47007 COMPILER_VERSION_STRING=`$ECHO $COMPILER_VERSION_OUTPUT | \ 47008 $SED -e 's/ *[Uu]sage:.*//'` 47009 COMPILER_VERSION_NUMBER=`$ECHO $COMPILER_VERSION_OUTPUT | \ 47010 $SED -e "s/^.*[ ,\t]$COMPILER_NAME[ ,\t]\([1-9]\.[0-9][0-9]*\).*/\1/"` 47011 elif test "x$TOOLCHAIN_TYPE" = xxlc; then 47012 # xlc -qversion output typically looks like 47013 # IBM XL C/C++ for AIX, V11.1 (5724-X13) 47014 # Version: 11.01.0000.0015 47015 COMPILER_VERSION_OUTPUT=`$COMPILER -qversion 2>&1` 47016 # Check that this is likely to be the IBM XL C compiler. 47017 $ECHO "$COMPILER_VERSION_OUTPUT" | $GREP "IBM XL C" > /dev/null 47018 if test $? -ne 0; then 47019 ALT_VERSION_OUTPUT=`$COMPILER --version 2>&1` 47020 { $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 47021 $as_echo "$as_me: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required $TOOLCHAIN_TYPE compiler." >&6;} 47022 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with -qversion was: \"$COMPILER_VERSION_OUTPUT\"" >&5 47023 $as_echo "$as_me: The result from running with -qversion was: \"$COMPILER_VERSION_OUTPUT\"" >&6;} 47024 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with --version was: \"$ALT_VERSION_OUTPUT\"" >&5 47025 $as_echo "$as_me: The result from running with --version was: \"$ALT_VERSION_OUTPUT\"" >&6;} 47026 as_fn_error $? "A $TOOLCHAIN_TYPE compiler is required. Try setting --with-tools-dir." "$LINENO" 5 47027 fi 47028 # Collapse compiler output into a single line 47029 COMPILER_VERSION_STRING=`$ECHO $COMPILER_VERSION_OUTPUT` 47030 COMPILER_VERSION_NUMBER=`$ECHO $COMPILER_VERSION_OUTPUT | \ 47031 $SED -e 's/^.*, V\([1-9][0-9.]*\).*$/\1/'` 47032 elif test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 47033 # There is no specific version flag, but all output starts with a version string. 47034 # First line typically looks something like: 47035 # Microsoft (R) 32-bit C/C++ Optimizing Compiler Version 16.00.40219.01 for 80x86 47036 COMPILER_VERSION_OUTPUT=`$COMPILER 2>&1 | $HEAD -n 1 | $TR -d '\r'` 47037 # Check that this is likely to be Microsoft CL.EXE. 47038 $ECHO "$COMPILER_VERSION_OUTPUT" | $GREP "Microsoft.*Compiler" > /dev/null 47039 if test $? -ne 0; then 47040 { $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 47041 $as_echo "$as_me: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required $TOOLCHAIN_TYPE compiler." >&6;} 47042 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running it was: \"$COMPILER_VERSION_OUTPUT\"" >&5 47043 $as_echo "$as_me: The result from running it was: \"$COMPILER_VERSION_OUTPUT\"" >&6;} 47044 as_fn_error $? "A $TOOLCHAIN_TYPE compiler is required. Try setting --with-tools-dir." "$LINENO" 5 47045 fi 47046 # Collapse compiler output into a single line 47047 COMPILER_VERSION_STRING=`$ECHO $COMPILER_VERSION_OUTPUT` 47048 COMPILER_VERSION_NUMBER=`$ECHO $COMPILER_VERSION_OUTPUT | \ 47049 $SED -e 's/^.*ersion.\([1-9][0-9.]*\) .*$/\1/'` 47050 elif test "x$TOOLCHAIN_TYPE" = xgcc; then 47051 # gcc --version output typically looks like 47052 # gcc (Ubuntu/Linaro 4.8.1-10ubuntu9) 4.8.1 47053 # Copyright (C) 2013 Free Software Foundation, Inc. 47054 # This is free software; see the source for copying conditions. There is NO 47055 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 47056 COMPILER_VERSION_OUTPUT=`$COMPILER --version 2>&1` 47057 # Check that this is likely to be GCC. 47058 $ECHO "$COMPILER_VERSION_OUTPUT" | $GREP "Free Software Foundation" > /dev/null 47059 if test $? -ne 0; then 47060 { $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 47061 $as_echo "$as_me: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required $TOOLCHAIN_TYPE compiler." >&6;} 47062 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with --version was: \"$COMPILER_VERSION\"" >&5 47063 $as_echo "$as_me: The result from running with --version was: \"$COMPILER_VERSION\"" >&6;} 47064 as_fn_error $? "A $TOOLCHAIN_TYPE compiler is required. Try setting --with-tools-dir." "$LINENO" 5 47065 fi 47066 # Remove Copyright and legalese from version string, and 47067 # collapse into a single line 47068 COMPILER_VERSION_STRING=`$ECHO $COMPILER_VERSION_OUTPUT | \ 47069 $SED -e 's/ *Copyright .*//'` 47070 COMPILER_VERSION_NUMBER=`$ECHO $COMPILER_VERSION_OUTPUT | \ 47071 $SED -e 's/^.* \([1-9]\.[0-9.]*\)[^0-9.].*$/\1/'` 47072 elif test "x$TOOLCHAIN_TYPE" = xclang; then 47073 # clang --version output typically looks like 47074 # Apple LLVM version 5.0 (clang-500.2.79) (based on LLVM 3.3svn) 47075 # clang version 3.3 (tags/RELEASE_33/final) 47076 # or 47077 # Debian clang version 3.2-7ubuntu1 (tags/RELEASE_32/final) (based on LLVM 3.2) 47078 # Target: x86_64-pc-linux-gnu 47079 # Thread model: posix 47080 COMPILER_VERSION_OUTPUT=`$COMPILER --version 2>&1` 47081 # Check that this is likely to be clang 47082 $ECHO "$COMPILER_VERSION_OUTPUT" | $GREP "clang" > /dev/null 47083 if test $? -ne 0; then 47084 { $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 47085 $as_echo "$as_me: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required $TOOLCHAIN_TYPE compiler." >&6;} 47086 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with --version was: \"$COMPILER_VERSION_OUTPUT\"" >&5 47087 $as_echo "$as_me: The result from running with --version was: \"$COMPILER_VERSION_OUTPUT\"" >&6;} 47088 as_fn_error $? "A $TOOLCHAIN_TYPE compiler is required. Try setting --with-tools-dir." "$LINENO" 5 47089 fi 47090 # Collapse compiler output into a single line 47091 COMPILER_VERSION_STRING=`$ECHO $COMPILER_VERSION_OUTPUT` 47092 COMPILER_VERSION_NUMBER=`$ECHO $COMPILER_VERSION_OUTPUT | \ 47093 $SED -e 's/^.* version \([1-9][0-9.]*\).*$/\1/'` 47094 else 47095 as_fn_error $? "Unknown toolchain type $TOOLCHAIN_TYPE." "$LINENO" 5 47096 fi 47097 # This sets CC_VERSION_NUMBER or CXX_VERSION_NUMBER. (This comment is a grep marker) 47098 BUILD_CC_VERSION_NUMBER="$COMPILER_VERSION_NUMBER" 47099 # This sets CC_VERSION_STRING or CXX_VERSION_STRING. (This comment is a grep marker) 47100 BUILD_CC_VERSION_STRING="$COMPILER_VERSION_STRING" 47101 47102 { $as_echo "$as_me:${as_lineno-$LINENO}: Using $TOOLCHAIN_TYPE $COMPILER_NAME compiler version $COMPILER_VERSION_NUMBER [$COMPILER_VERSION_STRING]" >&5 47103 $as_echo "$as_me: Using $TOOLCHAIN_TYPE $COMPILER_NAME compiler version $COMPILER_VERSION_NUMBER [$COMPILER_VERSION_STRING]" >&6;} 47104 47105 47106 COMPILER=$BUILD_CXX 47107 COMPILER_NAME=BuildC++ 47108 47109 if test "x$TOOLCHAIN_TYPE" = xsolstudio; then 47110 # cc -V output typically looks like 47111 # cc: Sun C 5.12 Linux_i386 2011/11/16 47112 COMPILER_VERSION_OUTPUT=`$COMPILER -V 2>&1` 47113 # Check that this is likely to be the Solaris Studio cc. 47114 $ECHO "$COMPILER_VERSION_OUTPUT" | $GREP "^.*: Sun $COMPILER_NAME" > /dev/null 47115 if test $? -ne 0; then 47116 ALT_VERSION_OUTPUT=`$COMPILER --version 2>&1` 47117 { $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 47118 $as_echo "$as_me: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required $TOOLCHAIN_TYPE compiler." >&6;} 47119 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with -V was: \"$COMPILER_VERSION_OUTPUT\"" >&5 47120 $as_echo "$as_me: The result from running with -V was: \"$COMPILER_VERSION_OUTPUT\"" >&6;} 47121 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with --version was: \"$ALT_VERSION_OUTPUT\"" >&5 47122 $as_echo "$as_me: The result from running with --version was: \"$ALT_VERSION_OUTPUT\"" >&6;} 47123 as_fn_error $? "A $TOOLCHAIN_TYPE compiler is required. Try setting --with-tools-dir." "$LINENO" 5 47124 fi 47125 # Remove usage instructions (if present), and 47126 # collapse compiler output into a single line 47127 COMPILER_VERSION_STRING=`$ECHO $COMPILER_VERSION_OUTPUT | \ 47128 $SED -e 's/ *[Uu]sage:.*//'` 47129 COMPILER_VERSION_NUMBER=`$ECHO $COMPILER_VERSION_OUTPUT | \ 47130 $SED -e "s/^.*[ ,\t]$COMPILER_NAME[ ,\t]\([1-9]\.[0-9][0-9]*\).*/\1/"` 47131 elif test "x$TOOLCHAIN_TYPE" = xxlc; then 47132 # xlc -qversion output typically looks like 47133 # IBM XL C/C++ for AIX, V11.1 (5724-X13) 47134 # Version: 11.01.0000.0015 47135 COMPILER_VERSION_OUTPUT=`$COMPILER -qversion 2>&1` 47136 # Check that this is likely to be the IBM XL C compiler. 47137 $ECHO "$COMPILER_VERSION_OUTPUT" | $GREP "IBM XL C" > /dev/null 47138 if test $? -ne 0; then 47139 ALT_VERSION_OUTPUT=`$COMPILER --version 2>&1` 47140 { $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 47141 $as_echo "$as_me: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required $TOOLCHAIN_TYPE compiler." >&6;} 47142 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with -qversion was: \"$COMPILER_VERSION_OUTPUT\"" >&5 47143 $as_echo "$as_me: The result from running with -qversion was: \"$COMPILER_VERSION_OUTPUT\"" >&6;} 47144 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with --version was: \"$ALT_VERSION_OUTPUT\"" >&5 47145 $as_echo "$as_me: The result from running with --version was: \"$ALT_VERSION_OUTPUT\"" >&6;} 47146 as_fn_error $? "A $TOOLCHAIN_TYPE compiler is required. Try setting --with-tools-dir." "$LINENO" 5 47147 fi 47148 # Collapse compiler output into a single line 47149 COMPILER_VERSION_STRING=`$ECHO $COMPILER_VERSION_OUTPUT` 47150 COMPILER_VERSION_NUMBER=`$ECHO $COMPILER_VERSION_OUTPUT | \ 47151 $SED -e 's/^.*, V\([1-9][0-9.]*\).*$/\1/'` 47152 elif test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 47153 # There is no specific version flag, but all output starts with a version string. 47154 # First line typically looks something like: 47155 # Microsoft (R) 32-bit C/C++ Optimizing Compiler Version 16.00.40219.01 for 80x86 47156 COMPILER_VERSION_OUTPUT=`$COMPILER 2>&1 | $HEAD -n 1 | $TR -d '\r'` 47157 # Check that this is likely to be Microsoft CL.EXE. 47158 $ECHO "$COMPILER_VERSION_OUTPUT" | $GREP "Microsoft.*Compiler" > /dev/null 47159 if test $? -ne 0; then 47160 { $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 47161 $as_echo "$as_me: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required $TOOLCHAIN_TYPE compiler." >&6;} 47162 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running it was: \"$COMPILER_VERSION_OUTPUT\"" >&5 47163 $as_echo "$as_me: The result from running it was: \"$COMPILER_VERSION_OUTPUT\"" >&6;} 47164 as_fn_error $? "A $TOOLCHAIN_TYPE compiler is required. Try setting --with-tools-dir." "$LINENO" 5 47165 fi 47166 # Collapse compiler output into a single line 47167 COMPILER_VERSION_STRING=`$ECHO $COMPILER_VERSION_OUTPUT` 47168 COMPILER_VERSION_NUMBER=`$ECHO $COMPILER_VERSION_OUTPUT | \ 47169 $SED -e 's/^.*ersion.\([1-9][0-9.]*\) .*$/\1/'` 47170 elif test "x$TOOLCHAIN_TYPE" = xgcc; then 47171 # gcc --version output typically looks like 47172 # gcc (Ubuntu/Linaro 4.8.1-10ubuntu9) 4.8.1 47173 # Copyright (C) 2013 Free Software Foundation, Inc. 47174 # This is free software; see the source for copying conditions. There is NO 47175 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 47176 COMPILER_VERSION_OUTPUT=`$COMPILER --version 2>&1` 47177 # Check that this is likely to be GCC. 47178 $ECHO "$COMPILER_VERSION_OUTPUT" | $GREP "Free Software Foundation" > /dev/null 47179 if test $? -ne 0; then 47180 { $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 47181 $as_echo "$as_me: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required $TOOLCHAIN_TYPE compiler." >&6;} 47182 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with --version was: \"$COMPILER_VERSION\"" >&5 47183 $as_echo "$as_me: The result from running with --version was: \"$COMPILER_VERSION\"" >&6;} 47184 as_fn_error $? "A $TOOLCHAIN_TYPE compiler is required. Try setting --with-tools-dir." "$LINENO" 5 47185 fi 47186 # Remove Copyright and legalese from version string, and 47187 # collapse into a single line 47188 COMPILER_VERSION_STRING=`$ECHO $COMPILER_VERSION_OUTPUT | \ 47189 $SED -e 's/ *Copyright .*//'` 47190 COMPILER_VERSION_NUMBER=`$ECHO $COMPILER_VERSION_OUTPUT | \ 47191 $SED -e 's/^.* \([1-9]\.[0-9.]*\)[^0-9.].*$/\1/'` 47192 elif test "x$TOOLCHAIN_TYPE" = xclang; then 47193 # clang --version output typically looks like 47194 # Apple LLVM version 5.0 (clang-500.2.79) (based on LLVM 3.3svn) 47195 # clang version 3.3 (tags/RELEASE_33/final) 47196 # or 47197 # Debian clang version 3.2-7ubuntu1 (tags/RELEASE_32/final) (based on LLVM 3.2) 47198 # Target: x86_64-pc-linux-gnu 47199 # Thread model: posix 47200 COMPILER_VERSION_OUTPUT=`$COMPILER --version 2>&1` 47201 # Check that this is likely to be clang 47202 $ECHO "$COMPILER_VERSION_OUTPUT" | $GREP "clang" > /dev/null 47203 if test $? -ne 0; then 47204 { $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 47205 $as_echo "$as_me: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required $TOOLCHAIN_TYPE compiler." >&6;} 47206 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with --version was: \"$COMPILER_VERSION_OUTPUT\"" >&5 47207 $as_echo "$as_me: The result from running with --version was: \"$COMPILER_VERSION_OUTPUT\"" >&6;} 47208 as_fn_error $? "A $TOOLCHAIN_TYPE compiler is required. Try setting --with-tools-dir." "$LINENO" 5 47209 fi 47210 # Collapse compiler output into a single line 47211 COMPILER_VERSION_STRING=`$ECHO $COMPILER_VERSION_OUTPUT` 47212 COMPILER_VERSION_NUMBER=`$ECHO $COMPILER_VERSION_OUTPUT | \ 47213 $SED -e 's/^.* version \([1-9][0-9.]*\).*$/\1/'` 47214 else 47215 as_fn_error $? "Unknown toolchain type $TOOLCHAIN_TYPE." "$LINENO" 5 47216 fi 47217 # This sets CC_VERSION_NUMBER or CXX_VERSION_NUMBER. (This comment is a grep marker) 47218 BUILD_CXX_VERSION_NUMBER="$COMPILER_VERSION_NUMBER" 47219 # This sets CC_VERSION_STRING or CXX_VERSION_STRING. (This comment is a grep marker) 47220 BUILD_CXX_VERSION_STRING="$COMPILER_VERSION_STRING" 47221 47222 { $as_echo "$as_me:${as_lineno-$LINENO}: Using $TOOLCHAIN_TYPE $COMPILER_NAME compiler version $COMPILER_VERSION_NUMBER [$COMPILER_VERSION_STRING]" >&5 47223 $as_echo "$as_me: Using $TOOLCHAIN_TYPE $COMPILER_NAME compiler version $COMPILER_VERSION_NUMBER [$COMPILER_VERSION_STRING]" >&6;} 47224 47225 47226 if test "x$BUILD_CC_VERSION_NUMBER" != "x$BUILD_CXX_VERSION_NUMBER"; then 47227 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: C and C++ compiler have different version numbers, $BUILD_CC_VERSION_NUMBER vs $BUILD_CXX_VERSION_NUMBER." >&5 47228 $as_echo "$as_me: WARNING: C and C++ compiler have different version numbers, $BUILD_CC_VERSION_NUMBER vs $BUILD_CXX_VERSION_NUMBER." >&2;} 47229 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This typically indicates a broken setup, and is not supported" >&5 47230 $as_echo "$as_me: WARNING: This typically indicates a broken setup, and is not supported" >&2;} 47231 fi 47232 47233 # We only check CC_VERSION_NUMBER since we assume CXX_VERSION_NUMBER is equal. 47234 if [[ "[$]BUILD_CC_VERSION_NUMBER" =~ (.*\.){3} ]] ; then 47235 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: C compiler version number has more than three parts (X.Y.Z): $BUILD_CC_VERSION_NUMBER. Comparisons might be wrong." >&5 47236 $as_echo "$as_me: WARNING: C compiler version number has more than three parts (X.Y.Z): $BUILD_CC_VERSION_NUMBER. Comparisons might be wrong." >&2;} 47237 fi 47238 47239 if [[ "[$]BUILD_CC_VERSION_NUMBER" =~ [0-9]{6} ]] ; then 47240 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: C compiler version number has a part larger than 99999: $BUILD_CC_VERSION_NUMBER. Comparisons might be wrong." >&5 47241 $as_echo "$as_me: WARNING: C compiler version number has a part larger than 99999: $BUILD_CC_VERSION_NUMBER. Comparisons might be wrong." >&2;} 47242 fi 47243 47244 OPENJDK_BUILD_COMPARABLE_ACTUAL_VERSION=`$AWK -F. '{ printf("%05d%05d%05d\n", $1, $2, $3) }' <<< "$BUILD_CC_VERSION_NUMBER"` 47245 47246 else 47247 # If we are not cross compiling, use the normal target compilers for 47248 # building the build platform executables. 47249 BUILD_CC="$CC" 47250 BUILD_CXX="$CXX" 47251 BUILD_LD="$LD" 47252 BUILD_LDCXX="$LDCXX" 47253 BUILD_NM="$NM" 47254 BUILD_AS="$AS" 47255 BUILD_OBJCOPY="$OBJCOPY" 47256 BUILD_STRIP="$STRIP" 47257 BUILD_SYSROOT_CFLAGS="$SYSROOT_CFLAGS" 47258 BUILD_SYSROOT_LDFLAGS="$SYSROOT_LDFLAGS" 47259 BUILD_AR="$AR" 47260 fi 47261 47262 47263 47264 47265 47266 47267 47268 47269 47270 47271 47272 47273 if test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 47274 # For hotspot, we need these in Windows mixed path, 47275 # so rewrite them all. Need added .exe suffix. 47276 HOTSPOT_CXX="$CXX.exe" 47277 HOTSPOT_LD="$LD.exe" 47278 HOTSPOT_MT="$MT.exe" 47279 HOTSPOT_RC="$RC.exe" 47280 47281 unix_path="$HOTSPOT_CXX" 47282 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 47283 windows_path=`$CYGPATH -m "$unix_path"` 47284 HOTSPOT_CXX="$windows_path" 47285 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 47286 windows_path=`cmd //c echo $unix_path` 47287 HOTSPOT_CXX="$windows_path" 47288 fi 47289 47290 47291 unix_path="$HOTSPOT_LD" 47292 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 47293 windows_path=`$CYGPATH -m "$unix_path"` 47294 HOTSPOT_LD="$windows_path" 47295 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 47296 windows_path=`cmd //c echo $unix_path` 47297 HOTSPOT_LD="$windows_path" 47298 fi 47299 47300 47301 unix_path="$HOTSPOT_MT" 47302 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 47303 windows_path=`$CYGPATH -m "$unix_path"` 47304 HOTSPOT_MT="$windows_path" 47305 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 47306 windows_path=`cmd //c echo $unix_path` 47307 HOTSPOT_MT="$windows_path" 47308 fi 47309 47310 47311 unix_path="$HOTSPOT_RC" 47312 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 47313 windows_path=`$CYGPATH -m "$unix_path"` 47314 HOTSPOT_RC="$windows_path" 47315 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 47316 windows_path=`cmd //c echo $unix_path` 47317 HOTSPOT_RC="$windows_path" 47318 fi 47319 47320 47321 47322 else 47323 HOTSPOT_CXX="$CXX" 47324 HOTSPOT_LD="$LD" 47325 fi 47326 47327 47328 47329 if test "x$TOOLCHAIN_TYPE" = xclang; then 47330 USE_CLANG=true 47331 fi 47332 47333 47334 47335 47336 47337 # The package path is used only on macosx? 47338 # FIXME: clean this up, and/or move it elsewhere. 47339 PACKAGE_PATH=/opt/local 47340 47341 47342 # Check for extra potential brokenness. 47343 if test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 47344 # On Windows, double-check that we got the right compiler. 47345 CC_VERSION_OUTPUT=`$CC 2>&1 | $HEAD -n 1 | $TR -d '\r'` 47346 COMPILER_CPU_TEST=`$ECHO $CC_VERSION_OUTPUT | $SED -n "s/^.* \(.*\)$/\1/p"` 47347 if test "x$OPENJDK_TARGET_CPU" = "xx86"; then 47348 if test "x$COMPILER_CPU_TEST" != "x80x86" -a "x$COMPILER_CPU_TEST" != "xx86"; then 47349 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 47350 fi 47351 elif test "x$OPENJDK_TARGET_CPU" = "xx86_64"; then 47352 if test "x$COMPILER_CPU_TEST" != "xx64"; then 47353 as_fn_error $? "Target CPU mismatch. We are building for $OPENJDK_TARGET_CPU but CL is for \"$COMPILER_CPU_TEST\"; expected \"x64\"." "$LINENO" 5 47354 fi 47355 fi 47356 fi 47357 47358 if test "x$TOOLCHAIN_TYPE" = xgcc; then 47359 # If this is a --hash-style=gnu system, use --hash-style=both, why? 47360 HAS_GNU_HASH=`$CC -dumpspecs 2>/dev/null | $GREP 'hash-style=gnu'` 47361 # This is later checked when setting flags. 47362 47363 # "-Og" suppported for GCC 4.8 and later 47364 CFLAG_OPTIMIZE_DEBUG_FLAG="-Og" 47365 47366 47367 47368 47369 47370 47371 47372 47373 47374 47375 47376 47377 47378 47379 47380 47381 47382 47383 47384 47385 47386 47387 47388 47389 47390 47391 47392 47393 47394 47395 47396 47397 47398 47399 47400 47401 47402 47403 47404 47405 47406 47407 47408 47409 47410 47411 47412 # Execute function body 47413 47414 47415 47416 47417 47418 47419 47420 47421 47422 47423 47424 47425 47426 47427 47428 47429 47430 47431 47432 47433 47434 47435 47436 47437 47438 47439 47440 47441 47442 47443 47444 47445 47446 47447 47448 47449 47450 47451 47452 47453 47454 47455 47456 47457 47458 47459 47460 47461 # Execute function body 47462 47463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the C compiler supports \"$CFLAG_OPTIMIZE_DEBUG_FLAG\"" >&5 47464 $as_echo_n "checking if the C compiler supports \"$CFLAG_OPTIMIZE_DEBUG_FLAG\"... " >&6; } 47465 supports=yes 47466 47467 saved_cflags="$CFLAGS" 47468 CFLAGS="$CFLAGS $CFLAG_OPTIMIZE_DEBUG_FLAG" 47469 ac_ext=c 47470 ac_cpp='$CPP $CPPFLAGS' 47471 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 47472 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 47473 ac_compiler_gnu=$ac_cv_c_compiler_gnu 47474 47475 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 47476 /* end confdefs.h. */ 47477 int i; 47478 _ACEOF 47479 if ac_fn_c_try_compile "$LINENO"; then : 47480 47481 else 47482 supports=no 47483 fi 47484 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 47485 ac_ext=cpp 47486 ac_cpp='$CXXCPP $CPPFLAGS' 47487 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 47488 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 47489 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 47490 47491 CFLAGS="$saved_cflags" 47492 47493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supports" >&5 47494 $as_echo "$supports" >&6; } 47495 if test "x$supports" = "xyes" ; then 47496 : 47497 C_COMP_SUPPORTS="yes" 47498 else 47499 : 47500 C_COMP_SUPPORTS="no" 47501 fi 47502 47503 47504 47505 47506 47507 47508 47509 47510 47511 47512 47513 47514 47515 47516 47517 47518 47519 47520 47521 47522 47523 47524 47525 47526 47527 47528 47529 47530 47531 47532 47533 47534 47535 47536 47537 47538 47539 47540 47541 47542 47543 47544 47545 47546 47547 47548 47549 47550 47551 47552 47553 47554 47555 47556 47557 47558 47559 47560 47561 # Execute function body 47562 47563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the C++ compiler supports \"$CFLAG_OPTIMIZE_DEBUG_FLAG\"" >&5 47564 $as_echo_n "checking if the C++ compiler supports \"$CFLAG_OPTIMIZE_DEBUG_FLAG\"... " >&6; } 47565 supports=yes 47566 47567 saved_cxxflags="$CXXFLAGS" 47568 CXXFLAGS="$CXXFLAG $CFLAG_OPTIMIZE_DEBUG_FLAG" 47569 ac_ext=cpp 47570 ac_cpp='$CXXCPP $CPPFLAGS' 47571 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 47572 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 47573 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 47574 47575 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 47576 /* end confdefs.h. */ 47577 int i; 47578 _ACEOF 47579 if ac_fn_cxx_try_compile "$LINENO"; then : 47580 47581 else 47582 supports=no 47583 fi 47584 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 47585 ac_ext=cpp 47586 ac_cpp='$CXXCPP $CPPFLAGS' 47587 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 47588 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 47589 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 47590 47591 CXXFLAGS="$saved_cxxflags" 47592 47593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supports" >&5 47594 $as_echo "$supports" >&6; } 47595 if test "x$supports" = "xyes" ; then 47596 : 47597 CXX_COMP_SUPPORTS="yes" 47598 else 47599 : 47600 CXX_COMP_SUPPORTS="no" 47601 fi 47602 47603 47604 47605 47606 47607 47608 47609 47610 47611 47612 47613 47614 47615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if both compilers support \"$CFLAG_OPTIMIZE_DEBUG_FLAG\"" >&5 47616 $as_echo_n "checking if both compilers support \"$CFLAG_OPTIMIZE_DEBUG_FLAG\"... " >&6; } 47617 supports=no 47618 if test "x$C_COMP_SUPPORTS" = "xyes" -a "x$CXX_COMP_SUPPORTS" = "xyes"; then supports=yes; fi 47619 47620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supports" >&5 47621 $as_echo "$supports" >&6; } 47622 if test "x$supports" = "xyes" ; then 47623 : 47624 HAS_CFLAG_OPTIMIZE_DEBUG=true 47625 else 47626 : 47627 HAS_CFLAG_OPTIMIZE_DEBUG=false 47628 fi 47629 47630 47631 47632 47633 47634 47635 47636 # "-z relro" supported in GNU binutils 2.17 and later 47637 LINKER_RELRO_FLAG="-Wl,-z,relro" 47638 47639 47640 47641 47642 47643 47644 47645 47646 47647 47648 47649 47650 47651 47652 47653 47654 47655 47656 47657 47658 47659 47660 47661 47662 47663 47664 47665 47666 47667 47668 47669 47670 47671 47672 47673 47674 47675 47676 47677 47678 47679 47680 47681 47682 47683 47684 47685 # Execute function body 47686 47687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if linker supports \"$LINKER_RELRO_FLAG\"" >&5 47688 $as_echo_n "checking if linker supports \"$LINKER_RELRO_FLAG\"... " >&6; } 47689 supports=yes 47690 47691 saved_ldflags="$LDFLAGS" 47692 LDFLAGS="$LDFLAGS $LINKER_RELRO_FLAG" 47693 ac_ext=c 47694 ac_cpp='$CPP $CPPFLAGS' 47695 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 47696 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 47697 ac_compiler_gnu=$ac_cv_c_compiler_gnu 47698 47699 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 47700 /* end confdefs.h. */ 47701 47702 int 47703 main () 47704 { 47705 47706 ; 47707 return 0; 47708 } 47709 _ACEOF 47710 if ac_fn_c_try_link "$LINENO"; then : 47711 47712 else 47713 supports=no 47714 fi 47715 rm -f core conftest.err conftest.$ac_objext \ 47716 conftest$ac_exeext conftest.$ac_ext 47717 ac_ext=cpp 47718 ac_cpp='$CXXCPP $CPPFLAGS' 47719 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 47720 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 47721 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 47722 47723 LDFLAGS="$saved_ldflags" 47724 47725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supports" >&5 47726 $as_echo "$supports" >&6; } 47727 if test "x$supports" = "xyes" ; then 47728 : 47729 HAS_LINKER_RELRO=true 47730 else 47731 : 47732 HAS_LINKER_RELRO=false 47733 fi 47734 47735 47736 47737 47738 47739 47740 47741 47742 47743 47744 47745 47746 47747 # "-z now" supported in GNU binutils 2.11 and later 47748 LINKER_NOW_FLAG="-Wl,-z,now" 47749 47750 47751 47752 47753 47754 47755 47756 47757 47758 47759 47760 47761 47762 47763 47764 47765 47766 47767 47768 47769 47770 47771 47772 47773 47774 47775 47776 47777 47778 47779 47780 47781 47782 47783 47784 47785 47786 47787 47788 47789 47790 47791 47792 47793 47794 47795 47796 # Execute function body 47797 47798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if linker supports \"$LINKER_NOW_FLAG\"" >&5 47799 $as_echo_n "checking if linker supports \"$LINKER_NOW_FLAG\"... " >&6; } 47800 supports=yes 47801 47802 saved_ldflags="$LDFLAGS" 47803 LDFLAGS="$LDFLAGS $LINKER_NOW_FLAG" 47804 ac_ext=c 47805 ac_cpp='$CPP $CPPFLAGS' 47806 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 47807 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 47808 ac_compiler_gnu=$ac_cv_c_compiler_gnu 47809 47810 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 47811 /* end confdefs.h. */ 47812 47813 int 47814 main () 47815 { 47816 47817 ; 47818 return 0; 47819 } 47820 _ACEOF 47821 if ac_fn_c_try_link "$LINENO"; then : 47822 47823 else 47824 supports=no 47825 fi 47826 rm -f core conftest.err conftest.$ac_objext \ 47827 conftest$ac_exeext conftest.$ac_ext 47828 ac_ext=cpp 47829 ac_cpp='$CXXCPP $CPPFLAGS' 47830 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 47831 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 47832 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 47833 47834 LDFLAGS="$saved_ldflags" 47835 47836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supports" >&5 47837 $as_echo "$supports" >&6; } 47838 if test "x$supports" = "xyes" ; then 47839 : 47840 HAS_LINKER_NOW=true 47841 else 47842 : 47843 HAS_LINKER_NOW=false 47844 fi 47845 47846 47847 47848 47849 47850 47851 47852 47853 47854 47855 47856 47857 fi 47858 47859 # Check for broken SuSE 'ld' for which 'Only anonymous version tag is allowed 47860 # in executable.' 47861 USING_BROKEN_SUSE_LD=no 47862 if test "x$OPENJDK_TARGET_OS" = xlinux && test "x$TOOLCHAIN_TYPE" = xgcc; then 47863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken SuSE 'ld' which only understands anonymous version tags in executables" >&5 47864 $as_echo_n "checking for broken SuSE 'ld' which only understands anonymous version tags in executables... " >&6; } 47865 $ECHO "SUNWprivate_1.1 { local: *; };" > version-script.map 47866 $ECHO "int main() { }" > main.c 47867 if $CXX -Wl,-version-script=version-script.map main.c 2>&5 >&5; then 47868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 47869 $as_echo "no" >&6; } 47870 USING_BROKEN_SUSE_LD=no 47871 else 47872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 47873 $as_echo "yes" >&6; } 47874 USING_BROKEN_SUSE_LD=yes 47875 fi 47876 $RM version-script.map main.c a.out 47877 fi 47878 47879 47880 # Setup hotspot lecagy names for toolchains 47881 HOTSPOT_TOOLCHAIN_TYPE=$TOOLCHAIN_TYPE 47882 if test "x$TOOLCHAIN_TYPE" = xclang; then 47883 HOTSPOT_TOOLCHAIN_TYPE=gcc 47884 elif test "x$TOOLCHAIN_TYPE" = xsolstudio; then 47885 HOTSPOT_TOOLCHAIN_TYPE=sparcWorks 47886 elif test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 47887 HOTSPOT_TOOLCHAIN_TYPE=visCPP 47888 fi 47889 47890 47891 47892 # Setup the JTReg Regression Test Harness. 47893 47894 47895 # Check whether --with-jtreg was given. 47896 if test "${with_jtreg+set}" = set; then : 47897 withval=$with_jtreg; 47898 else 47899 with_jtreg=no 47900 fi 47901 47902 47903 if test "x$with_jtreg" = xno; then 47904 # jtreg disabled 47905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jtreg" >&5 47906 $as_echo_n "checking for jtreg... " >&6; } 47907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 47908 $as_echo "no" >&6; } 47909 else 47910 if test "x$with_jtreg" != xyes; then 47911 # with path specified. 47912 JT_HOME="$with_jtreg" 47913 fi 47914 47915 if test "x$JT_HOME" != x; then 47916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jtreg" >&5 47917 $as_echo_n "checking for jtreg... " >&6; } 47918 47919 # use JT_HOME enviroment var. 47920 47921 # Only process if variable expands to non-empty 47922 47923 if test "x$JT_HOME" != x; then 47924 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 47925 47926 # Input might be given as Windows format, start by converting to 47927 # unix format. 47928 path="$JT_HOME" 47929 new_path=`$CYGPATH -u "$path"` 47930 47931 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 47932 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 47933 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 47934 # "foo.exe" is OK but "foo" is an error. 47935 # 47936 # This test is therefore slightly more accurate than "test -f" to check for file precense. 47937 # It is also a way to make sure we got the proper file name for the real test later on. 47938 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 47939 if test "x$test_shortpath" = x; then 47940 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of JT_HOME, which resolves as \"$path\", is invalid." >&5 47941 $as_echo "$as_me: The path of JT_HOME, which resolves as \"$path\", is invalid." >&6;} 47942 as_fn_error $? "Cannot locate the the path of JT_HOME" "$LINENO" 5 47943 fi 47944 47945 # Call helper function which possibly converts this using DOS-style short mode. 47946 # If so, the updated path is stored in $new_path. 47947 47948 input_path="$new_path" 47949 # Check if we need to convert this using DOS-style short mode. If the path 47950 # contains just simple characters, use it. Otherwise (spaces, weird characters), 47951 # take no chances and rewrite it. 47952 # Note: m4 eats our [], so we need to use [ and ] instead. 47953 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 47954 if test "x$has_forbidden_chars" != x; then 47955 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 47956 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 47957 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 47958 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 47959 # Going to short mode and back again did indeed matter. Since short mode is 47960 # case insensitive, let's make it lowercase to improve readability. 47961 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 47962 # Now convert it back to Unix-style (cygpath) 47963 input_path=`$CYGPATH -u "$shortmode_path"` 47964 new_path="$input_path" 47965 fi 47966 fi 47967 47968 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 47969 if test "x$test_cygdrive_prefix" = x; then 47970 # As a simple fix, exclude /usr/bin since it's not a real path. 47971 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 47972 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 47973 # a path prefixed by /cygdrive for fixpath to work. 47974 new_path="$CYGWIN_ROOT_PATH$input_path" 47975 fi 47976 fi 47977 47978 47979 if test "x$path" != "x$new_path"; then 47980 JT_HOME="$new_path" 47981 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting JT_HOME to \"$new_path\"" >&5 47982 $as_echo "$as_me: Rewriting JT_HOME to \"$new_path\"" >&6;} 47983 fi 47984 47985 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 47986 47987 path="$JT_HOME" 47988 has_colon=`$ECHO $path | $GREP ^.:` 47989 new_path="$path" 47990 if test "x$has_colon" = x; then 47991 # Not in mixed or Windows style, start by that. 47992 new_path=`cmd //c echo $path` 47993 fi 47994 47995 47996 input_path="$new_path" 47997 # Check if we need to convert this using DOS-style short mode. If the path 47998 # contains just simple characters, use it. Otherwise (spaces, weird characters), 47999 # take no chances and rewrite it. 48000 # Note: m4 eats our [], so we need to use [ and ] instead. 48001 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 48002 if test "x$has_forbidden_chars" != x; then 48003 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 48004 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 48005 fi 48006 48007 48008 windows_path="$new_path" 48009 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 48010 unix_path=`$CYGPATH -u "$windows_path"` 48011 new_path="$unix_path" 48012 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 48013 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 48014 new_path="$unix_path" 48015 fi 48016 48017 if test "x$path" != "x$new_path"; then 48018 JT_HOME="$new_path" 48019 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting JT_HOME to \"$new_path\"" >&5 48020 $as_echo "$as_me: Rewriting JT_HOME to \"$new_path\"" >&6;} 48021 fi 48022 48023 # Save the first 10 bytes of this path to the storage, so fixpath can work. 48024 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 48025 48026 else 48027 # We're on a unix platform. Hooray! :) 48028 path="$JT_HOME" 48029 has_space=`$ECHO "$path" | $GREP " "` 48030 if test "x$has_space" != x; then 48031 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of JT_HOME, which resolves as \"$path\", is invalid." >&5 48032 $as_echo "$as_me: The path of JT_HOME, which resolves as \"$path\", is invalid." >&6;} 48033 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 48034 fi 48035 48036 # Use eval to expand a potential ~ 48037 eval path="$path" 48038 if test ! -f "$path" && test ! -d "$path"; then 48039 as_fn_error $? "The path of JT_HOME, which resolves as \"$path\", is not found." "$LINENO" 5 48040 fi 48041 48042 if test -d "$path"; then 48043 JT_HOME="`cd "$path"; $THEPWDCMD -L`" 48044 else 48045 dir="`$DIRNAME "$path"`" 48046 base="`$BASENAME "$path"`" 48047 JT_HOME="`cd "$dir"; $THEPWDCMD -L`/$base" 48048 fi 48049 fi 48050 fi 48051 48052 48053 # jtreg win32 script works for everybody 48054 JTREGEXE="$JT_HOME/bin/jtreg" 48055 48056 if test ! -f "$JTREGEXE"; then 48057 as_fn_error $? "JTReg executable does not exist: $JTREGEXE" "$LINENO" 5 48058 fi 48059 48060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JTREGEXE" >&5 48061 $as_echo "$JTREGEXE" >&6; } 48062 else 48063 # try to find jtreg on path 48064 48065 48066 48067 # Publish this variable in the help. 48068 48069 48070 if [ -z "${JTREGEXE+x}" ]; then 48071 # The variable is not set by user, try to locate tool using the code snippet 48072 for ac_prog in jtreg 48073 do 48074 # Extract the first word of "$ac_prog", so it can be a program name with args. 48075 set dummy $ac_prog; ac_word=$2 48076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 48077 $as_echo_n "checking for $ac_word... " >&6; } 48078 if ${ac_cv_path_JTREGEXE+:} false; then : 48079 $as_echo_n "(cached) " >&6 48080 else 48081 case $JTREGEXE in 48082 [\\/]* | ?:[\\/]*) 48083 ac_cv_path_JTREGEXE="$JTREGEXE" # Let the user override the test with a path. 48084 ;; 48085 *) 48086 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 48087 for as_dir in $PATH 48088 do 48089 IFS=$as_save_IFS 48090 test -z "$as_dir" && as_dir=. 48091 for ac_exec_ext in '' $ac_executable_extensions; do 48092 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 48093 ac_cv_path_JTREGEXE="$as_dir/$ac_word$ac_exec_ext" 48094 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 48095 break 2 48096 fi 48097 done 48098 done 48099 IFS=$as_save_IFS 48100 48101 ;; 48102 esac 48103 fi 48104 JTREGEXE=$ac_cv_path_JTREGEXE 48105 if test -n "$JTREGEXE"; then 48106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JTREGEXE" >&5 48107 $as_echo "$JTREGEXE" >&6; } 48108 else 48109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 48110 $as_echo "no" >&6; } 48111 fi 48112 48113 48114 test -n "$JTREGEXE" && break 48115 done 48116 48117 else 48118 # The variable is set, but is it from the command line or the environment? 48119 48120 # Try to remove the string !JTREGEXE! from our list. 48121 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!JTREGEXE!/} 48122 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 48123 # If it failed, the variable was not from the command line. Ignore it, 48124 # but warn the user (except for BASH, which is always set by the calling BASH). 48125 if test "xJTREGEXE" != xBASH; then 48126 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of JTREGEXE from the environment. Use command line variables instead." >&5 48127 $as_echo "$as_me: WARNING: Ignoring value of JTREGEXE from the environment. Use command line variables instead." >&2;} 48128 fi 48129 # Try to locate tool using the code snippet 48130 for ac_prog in jtreg 48131 do 48132 # Extract the first word of "$ac_prog", so it can be a program name with args. 48133 set dummy $ac_prog; ac_word=$2 48134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 48135 $as_echo_n "checking for $ac_word... " >&6; } 48136 if ${ac_cv_path_JTREGEXE+:} false; then : 48137 $as_echo_n "(cached) " >&6 48138 else 48139 case $JTREGEXE in 48140 [\\/]* | ?:[\\/]*) 48141 ac_cv_path_JTREGEXE="$JTREGEXE" # Let the user override the test with a path. 48142 ;; 48143 *) 48144 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 48145 for as_dir in $PATH 48146 do 48147 IFS=$as_save_IFS 48148 test -z "$as_dir" && as_dir=. 48149 for ac_exec_ext in '' $ac_executable_extensions; do 48150 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 48151 ac_cv_path_JTREGEXE="$as_dir/$ac_word$ac_exec_ext" 48152 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 48153 break 2 48154 fi 48155 done 48156 done 48157 IFS=$as_save_IFS 48158 48159 ;; 48160 esac 48161 fi 48162 JTREGEXE=$ac_cv_path_JTREGEXE 48163 if test -n "$JTREGEXE"; then 48164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JTREGEXE" >&5 48165 $as_echo "$JTREGEXE" >&6; } 48166 else 48167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 48168 $as_echo "no" >&6; } 48169 fi 48170 48171 48172 test -n "$JTREGEXE" && break 48173 done 48174 48175 else 48176 # If it succeeded, then it was overridden by the user. We will use it 48177 # for the tool. 48178 48179 # First remove it from the list of overridden variables, so we can test 48180 # for unknown variables in the end. 48181 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 48182 48183 # Check if we try to supply an empty value 48184 if test "x$JTREGEXE" = x; then 48185 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool JTREGEXE= (no value)" >&5 48186 $as_echo "$as_me: Setting user supplied tool JTREGEXE= (no value)" >&6;} 48187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JTREGEXE" >&5 48188 $as_echo_n "checking for JTREGEXE... " >&6; } 48189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 48190 $as_echo "disabled" >&6; } 48191 else 48192 # Check if the provided tool contains a complete path. 48193 tool_specified="$JTREGEXE" 48194 tool_basename="${tool_specified##*/}" 48195 if test "x$tool_basename" = "x$tool_specified"; then 48196 # A command without a complete path is provided, search $PATH. 48197 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool JTREGEXE=$tool_basename" >&5 48198 $as_echo "$as_me: Will search for user supplied tool JTREGEXE=$tool_basename" >&6;} 48199 # Extract the first word of "$tool_basename", so it can be a program name with args. 48200 set dummy $tool_basename; ac_word=$2 48201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 48202 $as_echo_n "checking for $ac_word... " >&6; } 48203 if ${ac_cv_path_JTREGEXE+:} false; then : 48204 $as_echo_n "(cached) " >&6 48205 else 48206 case $JTREGEXE in 48207 [\\/]* | ?:[\\/]*) 48208 ac_cv_path_JTREGEXE="$JTREGEXE" # Let the user override the test with a path. 48209 ;; 48210 *) 48211 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 48212 for as_dir in $PATH 48213 do 48214 IFS=$as_save_IFS 48215 test -z "$as_dir" && as_dir=. 48216 for ac_exec_ext in '' $ac_executable_extensions; do 48217 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 48218 ac_cv_path_JTREGEXE="$as_dir/$ac_word$ac_exec_ext" 48219 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 48220 break 2 48221 fi 48222 done 48223 done 48224 IFS=$as_save_IFS 48225 48226 ;; 48227 esac 48228 fi 48229 JTREGEXE=$ac_cv_path_JTREGEXE 48230 if test -n "$JTREGEXE"; then 48231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JTREGEXE" >&5 48232 $as_echo "$JTREGEXE" >&6; } 48233 else 48234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 48235 $as_echo "no" >&6; } 48236 fi 48237 48238 48239 if test "x$JTREGEXE" = x; then 48240 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 48241 fi 48242 else 48243 # Otherwise we believe it is a complete path. Use it as it is. 48244 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool JTREGEXE=$tool_specified" >&5 48245 $as_echo "$as_me: Will use user supplied tool JTREGEXE=$tool_specified" >&6;} 48246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JTREGEXE" >&5 48247 $as_echo_n "checking for JTREGEXE... " >&6; } 48248 if test ! -x "$tool_specified"; then 48249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 48250 $as_echo "not found" >&6; } 48251 as_fn_error $? "User supplied tool JTREGEXE=$tool_specified does not exist or is not executable" "$LINENO" 5 48252 fi 48253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 48254 $as_echo "$tool_specified" >&6; } 48255 fi 48256 fi 48257 fi 48258 48259 fi 48260 48261 48262 48263 if test "x$JTREGEXE" = x; then 48264 as_fn_error $? "Could not find required tool for JTREGEXE" "$LINENO" 5 48265 fi 48266 48267 48268 JT_HOME="`$DIRNAME $JTREGEXE`" 48269 fi 48270 fi 48271 48272 48273 48274 48275 48276 48277 # COMPILER_TARGET_BITS_FLAG : option for selecting 32- or 64-bit output 48278 # COMPILER_COMMAND_FILE_FLAG : option for passing a command file to the compiler 48279 # COMPILER_BINDCMD_FILE_FLAG : option for specifying a file which saves the binder 48280 # commands produced by the link step (currently AIX only) 48281 if test "x$TOOLCHAIN_TYPE" = xxlc; then 48282 COMPILER_TARGET_BITS_FLAG="-q" 48283 COMPILER_COMMAND_FILE_FLAG="-f" 48284 COMPILER_BINDCMD_FILE_FLAG="-bloadmap:" 48285 else 48286 COMPILER_TARGET_BITS_FLAG="-m" 48287 COMPILER_COMMAND_FILE_FLAG="@" 48288 COMPILER_BINDCMD_FILE_FLAG="" 48289 48290 # The solstudio linker does not support @-files. 48291 if test "x$TOOLCHAIN_TYPE" = xsolstudio; then 48292 COMPILER_COMMAND_FILE_FLAG= 48293 fi 48294 48295 # Check if @file is supported by gcc 48296 if test "x$TOOLCHAIN_TYPE" = xgcc; then 48297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if @file is supported by gcc" >&5 48298 $as_echo_n "checking if @file is supported by gcc... " >&6; } 48299 # Extra emtpy "" to prevent ECHO from interpreting '--version' as argument 48300 $ECHO "" "--version" > command.file 48301 if $CXX @command.file 2>&5 >&5; then 48302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 48303 $as_echo "yes" >&6; } 48304 COMPILER_COMMAND_FILE_FLAG="@" 48305 else 48306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 48307 $as_echo "no" >&6; } 48308 COMPILER_COMMAND_FILE_FLAG= 48309 fi 48310 $RM command.file 48311 fi 48312 fi 48313 48314 48315 48316 48317 # FIXME: figure out if we should select AR flags depending on OS or toolchain. 48318 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 48319 ARFLAGS="-r" 48320 elif test "x$OPENJDK_TARGET_OS" = xaix; then 48321 ARFLAGS="-X64" 48322 elif test "x$OPENJDK_TARGET_OS" = xwindows; then 48323 # lib.exe is used as AR to create static libraries. 48324 ARFLAGS="-nologo -NODEFAULTLIB:MSVCRT" 48325 else 48326 ARFLAGS="" 48327 fi 48328 48329 48330 ## Setup strip. 48331 # FIXME: should this really be per platform, or should it be per toolchain type? 48332 # strip is not provided by clang or solstudio; so guessing platform makes most sense. 48333 # FIXME: we should really only export STRIPFLAGS from here, not POST_STRIP_CMD. 48334 if test "x$OPENJDK_TARGET_OS" = xlinux; then 48335 STRIPFLAGS="-g" 48336 elif test "x$OPENJDK_TARGET_OS" = xsolaris; then 48337 STRIPFLAGS="-x" 48338 elif test "x$OPENJDK_TARGET_OS" = xmacosx; then 48339 STRIPFLAGS="-S" 48340 elif test "x$OPENJDK_TARGET_OS" = xaix; then 48341 STRIPFLAGS="-X32_64" 48342 fi 48343 48344 48345 48346 if test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 48347 CC_OUT_OPTION=-Fo 48348 EXE_OUT_OPTION=-out: 48349 LD_OUT_OPTION=-out: 48350 AR_OUT_OPTION=-out: 48351 else 48352 # The option used to specify the target .o,.a or .so file. 48353 # When compiling, how to specify the to be created object file. 48354 CC_OUT_OPTION='-o$(SPACE)' 48355 # When linking, how to specify the to be created executable. 48356 EXE_OUT_OPTION='-o$(SPACE)' 48357 # When linking, how to specify the to be created dynamically linkable library. 48358 LD_OUT_OPTION='-o$(SPACE)' 48359 # When archiving, how to specify the to be create static archive for object files. 48360 AR_OUT_OPTION='rcs$(SPACE)' 48361 fi 48362 48363 48364 48365 48366 48367 # On Windows, we need to set RC flags. 48368 if test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 48369 RC_FLAGS="-nologo -l0x409" 48370 JVM_RCFLAGS="-nologo" 48371 if test "x$DEBUG_LEVEL" = xrelease; then 48372 RC_FLAGS="$RC_FLAGS -DNDEBUG" 48373 JVM_RCFLAGS="$JVM_RCFLAGS -DNDEBUG" 48374 fi 48375 48376 # The version variables used to create RC_FLAGS may be overridden 48377 # in a custom configure script, or possibly the command line. 48378 # Let those variables be expanded at make time in spec.gmk. 48379 # The \$ are escaped to the shell, and the $(...) variables 48380 # are evaluated by make. 48381 RC_FLAGS="$RC_FLAGS \ 48382 -D\"JDK_VERSION_STRING=\$(VERSION_STRING)\" \ 48383 -D\"JDK_COMPANY=\$(COMPANY_NAME)\" \ 48384 -D\"JDK_COMPONENT=\$(PRODUCT_NAME) \$(JDK_RC_PLATFORM_NAME) binary\" \ 48385 -D\"JDK_VER=\$(VERSION_NUMBER)\" \ 48386 -D\"JDK_COPYRIGHT=Copyright \xA9 $COPYRIGHT_YEAR\" \ 48387 -D\"JDK_NAME=\$(PRODUCT_NAME) \$(JDK_RC_PLATFORM_NAME) \$(VERSION_MAJOR)\" \ 48388 -D\"JDK_FVER=\$(subst .,\$(COMMA),\$(VERSION_NUMBER_FOUR_POSITIONS))\"" 48389 48390 JVM_RCFLAGS="$JVM_RCFLAGS \ 48391 -D\"HS_BUILD_ID=\$(VERSION_STRING)\" \ 48392 -D\"HS_COMPANY=\$(COMPANY_NAME)\" \ 48393 -D\"JDK_DOTVER=\$(VERSION_NUMBER_FOUR_POSITIONS)\" \ 48394 -D\"HS_COPYRIGHT=Copyright $COPYRIGHT_YEAR\" \ 48395 -D\"HS_NAME=\$(PRODUCT_NAME) \$(VERSION_SHORT)\" \ 48396 -D\"JDK_VER=\$(subst .,\$(COMMA),\$(VERSION_NUMBER_FOUR_POSITIONS))\" \ 48397 -D\"HS_FNAME=jvm.dll\" \ 48398 -D\"HS_INTERNAL_NAME=jvm\"" 48399 fi 48400 48401 48402 48403 if test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 48404 # silence copyright notice and other headers. 48405 COMMON_CCXXFLAGS="$COMMON_CCXXFLAGS -nologo" 48406 fi 48407 48408 48409 # Now we can test some aspects on the target using configure macros. 48410 48411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 48412 $as_echo_n "checking for ANSI C header files... " >&6; } 48413 if ${ac_cv_header_stdc+:} false; then : 48414 $as_echo_n "(cached) " >&6 48415 else 48416 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 48417 /* end confdefs.h. */ 48418 #include <stdlib.h> 48419 #include <stdarg.h> 48420 #include <string.h> 48421 #include <float.h> 48422 48423 int 48424 main () 48425 { 48426 48427 ; 48428 return 0; 48429 } 48430 _ACEOF 48431 if ac_fn_cxx_try_compile "$LINENO"; then : 48432 ac_cv_header_stdc=yes 48433 else 48434 ac_cv_header_stdc=no 48435 fi 48436 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 48437 48438 if test $ac_cv_header_stdc = yes; then 48439 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 48440 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 48441 /* end confdefs.h. */ 48442 #include <string.h> 48443 48444 _ACEOF 48445 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 48446 $EGREP "memchr" >/dev/null 2>&1; then : 48447 48448 else 48449 ac_cv_header_stdc=no 48450 fi 48451 rm -f conftest* 48452 48453 fi 48454 48455 if test $ac_cv_header_stdc = yes; then 48456 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 48457 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 48458 /* end confdefs.h. */ 48459 #include <stdlib.h> 48460 48461 _ACEOF 48462 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 48463 $EGREP "free" >/dev/null 2>&1; then : 48464 48465 else 48466 ac_cv_header_stdc=no 48467 fi 48468 rm -f conftest* 48469 48470 fi 48471 48472 if test $ac_cv_header_stdc = yes; then 48473 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 48474 if test "$cross_compiling" = yes; then : 48475 : 48476 else 48477 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 48478 /* end confdefs.h. */ 48479 #include <ctype.h> 48480 #include <stdlib.h> 48481 #if ((' ' & 0x0FF) == 0x020) 48482 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 48483 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 48484 #else 48485 # define ISLOWER(c) \ 48486 (('a' <= (c) && (c) <= 'i') \ 48487 || ('j' <= (c) && (c) <= 'r') \ 48488 || ('s' <= (c) && (c) <= 'z')) 48489 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 48490 #endif 48491 48492 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 48493 int 48494 main () 48495 { 48496 int i; 48497 for (i = 0; i < 256; i++) 48498 if (XOR (islower (i), ISLOWER (i)) 48499 || toupper (i) != TOUPPER (i)) 48500 return 2; 48501 return 0; 48502 } 48503 _ACEOF 48504 if ac_fn_cxx_try_run "$LINENO"; then : 48505 48506 else 48507 ac_cv_header_stdc=no 48508 fi 48509 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 48510 conftest.$ac_objext conftest.beam conftest.$ac_ext 48511 fi 48512 48513 fi 48514 fi 48515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 48516 $as_echo "$ac_cv_header_stdc" >&6; } 48517 if test $ac_cv_header_stdc = yes; then 48518 48519 $as_echo "#define STDC_HEADERS 1" >>confdefs.h 48520 48521 fi 48522 48523 # On IRIX 5.3, sys/types and inttypes.h are conflicting. 48524 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 48525 inttypes.h stdint.h unistd.h 48526 do : 48527 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 48528 ac_fn_cxx_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 48529 " 48530 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 48531 cat >>confdefs.h <<_ACEOF 48532 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 48533 _ACEOF 48534 48535 fi 48536 48537 done 48538 48539 48540 48541 ############################################################################### 48542 # 48543 # Now we check if libjvm.so will use 32 or 64 bit pointers for the C/C++ code. 48544 # (The JVM can use 32 or 64 bit Java pointers but that decision 48545 # is made at runtime.) 48546 # 48547 48548 if test "x$OPENJDK_TARGET_OS" = xsolaris || test "x$OPENJDK_TARGET_OS" = xaix; then 48549 # Always specify -m flag on Solaris 48550 # And -q on AIX because otherwise the compiler produces 32-bit objects by default 48551 48552 # When we add flags to the "official" CFLAGS etc, we need to 48553 # keep track of these additions in ADDED_CFLAGS etc. These 48554 # will later be checked to make sure only controlled additions 48555 # have been made to CFLAGS etc. 48556 ADDED_CFLAGS=" ${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}" 48557 ADDED_CXXFLAGS=" ${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}" 48558 ADDED_LDFLAGS=" ${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}" 48559 48560 CFLAGS="${CFLAGS}${ADDED_CFLAGS}" 48561 CXXFLAGS="${CXXFLAGS}${ADDED_CXXFLAGS}" 48562 LDFLAGS="${LDFLAGS}${ADDED_LDFLAGS}" 48563 48564 CFLAGS_JDK="${CFLAGS_JDK}${ADDED_CFLAGS}" 48565 CXXFLAGS_JDK="${CXXFLAGS_JDK}${ADDED_CXXFLAGS}" 48566 LDFLAGS_JDK="${LDFLAGS_JDK}${ADDED_LDFLAGS}" 48567 48568 JVM_CFLAGS="$JVM_CFLAGS $ADDED_CFLAGS" 48569 JVM_LDFLAGS="$JVM_LDFLAGS $ADDED_LDFLAGS" 48570 JVM_ASFLAGS="$JVM_ASFLAGS $ADDED_CFLAGS" 48571 48572 elif test "x$COMPILE_TYPE" = xreduced; then 48573 if test "x$OPENJDK_TARGET_OS_TYPE" = xunix; then 48574 # Specify -m if running reduced on unix platforms 48575 48576 # When we add flags to the "official" CFLAGS etc, we need to 48577 # keep track of these additions in ADDED_CFLAGS etc. These 48578 # will later be checked to make sure only controlled additions 48579 # have been made to CFLAGS etc. 48580 ADDED_CFLAGS=" ${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}" 48581 ADDED_CXXFLAGS=" ${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}" 48582 ADDED_LDFLAGS=" ${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}" 48583 48584 CFLAGS="${CFLAGS}${ADDED_CFLAGS}" 48585 CXXFLAGS="${CXXFLAGS}${ADDED_CXXFLAGS}" 48586 LDFLAGS="${LDFLAGS}${ADDED_LDFLAGS}" 48587 48588 CFLAGS_JDK="${CFLAGS_JDK}${ADDED_CFLAGS}" 48589 CXXFLAGS_JDK="${CXXFLAGS_JDK}${ADDED_CXXFLAGS}" 48590 LDFLAGS_JDK="${LDFLAGS_JDK}${ADDED_LDFLAGS}" 48591 48592 JVM_CFLAGS="$JVM_CFLAGS $ADDED_CFLAGS" 48593 JVM_LDFLAGS="$JVM_LDFLAGS $ADDED_LDFLAGS" 48594 JVM_ASFLAGS="$JVM_ASFLAGS $ADDED_CFLAGS" 48595 48596 fi 48597 fi 48598 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 48599 JVM_CFLAGS="$JVM_CFLAGS ${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}" 48600 JVM_LDFLAGS="$JVM_LDFLAGS ${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}" 48601 JVM_ASFLAGS="$JVM_ASFLAGS ${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}" 48602 fi 48603 48604 # Make compilation sanity check 48605 for ac_header in stdio.h 48606 do : 48607 ac_fn_cxx_check_header_mongrel "$LINENO" "stdio.h" "ac_cv_header_stdio_h" "$ac_includes_default" 48608 if test "x$ac_cv_header_stdio_h" = xyes; then : 48609 cat >>confdefs.h <<_ACEOF 48610 #define HAVE_STDIO_H 1 48611 _ACEOF 48612 48613 else 48614 48615 { $as_echo "$as_me:${as_lineno-$LINENO}: Failed to compile stdio.h. This likely implies missing compile dependencies." >&5 48616 $as_echo "$as_me: Failed to compile stdio.h. This likely implies missing compile dependencies." >&6;} 48617 if test "x$COMPILE_TYPE" = xreduced; then 48618 48619 # Print a helpful message on how to acquire the necessary build dependency. 48620 # reduced is the help tag: freetype, cups, alsa etc 48621 MISSING_DEPENDENCY=reduced 48622 48623 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 48624 cygwin_help $MISSING_DEPENDENCY 48625 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 48626 msys_help $MISSING_DEPENDENCY 48627 else 48628 PKGHANDLER_COMMAND= 48629 48630 case $PKGHANDLER in 48631 apt-get) 48632 apt_help $MISSING_DEPENDENCY ;; 48633 yum) 48634 yum_help $MISSING_DEPENDENCY ;; 48635 port) 48636 port_help $MISSING_DEPENDENCY ;; 48637 pkgutil) 48638 pkgutil_help $MISSING_DEPENDENCY ;; 48639 pkgadd) 48640 pkgadd_help $MISSING_DEPENDENCY ;; 48641 esac 48642 48643 if test "x$PKGHANDLER_COMMAND" != x; then 48644 HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'." 48645 fi 48646 fi 48647 48648 { $as_echo "$as_me:${as_lineno-$LINENO}: You are doing a reduced build. Check that you have 32-bit libraries installed. $HELP_MSG" >&5 48649 $as_echo "$as_me: You are doing a reduced build. Check that you have 32-bit libraries installed. $HELP_MSG" >&6;} 48650 elif test "x$COMPILE_TYPE" = xcross; then 48651 { $as_echo "$as_me:${as_lineno-$LINENO}: You are doing a cross-compilation. Check that you have all target platform libraries installed." >&5 48652 $as_echo "$as_me: You are doing a cross-compilation. Check that you have all target platform libraries installed." >&6;} 48653 fi 48654 as_fn_error $? "Cannot continue." "$LINENO" 5 48655 48656 fi 48657 48658 done 48659 48660 48661 # The cast to long int works around a bug in the HP C Compiler 48662 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 48663 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 48664 # This bug is HP SR number 8606223364. 48665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int *" >&5 48666 $as_echo_n "checking size of int *... " >&6; } 48667 if ${ac_cv_sizeof_int_p+:} false; then : 48668 $as_echo_n "(cached) " >&6 48669 else 48670 if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (int *))" "ac_cv_sizeof_int_p" "$ac_includes_default"; then : 48671 48672 else 48673 if test "$ac_cv_type_int_p" = yes; then 48674 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 48675 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 48676 as_fn_error 77 "cannot compute sizeof (int *) 48677 See \`config.log' for more details" "$LINENO" 5; } 48678 else 48679 ac_cv_sizeof_int_p=0 48680 fi 48681 fi 48682 48683 fi 48684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int_p" >&5 48685 $as_echo "$ac_cv_sizeof_int_p" >&6; } 48686 48687 48688 48689 cat >>confdefs.h <<_ACEOF 48690 #define SIZEOF_INT_P $ac_cv_sizeof_int_p 48691 _ACEOF 48692 48693 48694 48695 # AC_CHECK_SIZEOF defines 'ac_cv_sizeof_int_p' to hold the number of bytes used by an 'int*' 48696 if test "x$ac_cv_sizeof_int_p" = x; then 48697 # The test failed, lets stick to the assumed value. 48698 { $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 48699 $as_echo "$as_me: WARNING: The number of bits in the target could not be determined, using $OPENJDK_TARGET_CPU_BITS." >&2;} 48700 else 48701 TESTED_TARGET_CPU_BITS=`expr 8 \* $ac_cv_sizeof_int_p` 48702 48703 if test "x$TESTED_TARGET_CPU_BITS" != "x$OPENJDK_TARGET_CPU_BITS"; then 48704 # This situation may happen on 64-bit platforms where the compiler by default only generates 32-bit objects 48705 # Let's try to implicitely set the compilers target architecture and retry the test 48706 { $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 48707 $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;} 48708 { $as_echo "$as_me:${as_lineno-$LINENO}: Retrying with platforms compiler target bits flag to ${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}" >&5 48709 $as_echo "$as_me: Retrying with platforms compiler target bits flag to ${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}" >&6;} 48710 48711 # When we add flags to the "official" CFLAGS etc, we need to 48712 # keep track of these additions in ADDED_CFLAGS etc. These 48713 # will later be checked to make sure only controlled additions 48714 # have been made to CFLAGS etc. 48715 ADDED_CFLAGS=" ${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}" 48716 ADDED_CXXFLAGS=" ${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}" 48717 ADDED_LDFLAGS=" ${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}" 48718 48719 CFLAGS="${CFLAGS}${ADDED_CFLAGS}" 48720 CXXFLAGS="${CXXFLAGS}${ADDED_CXXFLAGS}" 48721 LDFLAGS="${LDFLAGS}${ADDED_LDFLAGS}" 48722 48723 CFLAGS_JDK="${CFLAGS_JDK}${ADDED_CFLAGS}" 48724 CXXFLAGS_JDK="${CXXFLAGS_JDK}${ADDED_CXXFLAGS}" 48725 LDFLAGS_JDK="${LDFLAGS_JDK}${ADDED_LDFLAGS}" 48726 48727 JVM_CFLAGS="$JVM_CFLAGS $ADDED_CFLAGS" 48728 JVM_LDFLAGS="$JVM_LDFLAGS $ADDED_LDFLAGS" 48729 JVM_ASFLAGS="$JVM_ASFLAGS $ADDED_CFLAGS" 48730 48731 48732 # We have to unset 'ac_cv_sizeof_int_p' first, otherwise AC_CHECK_SIZEOF will use the previously cached value! 48733 unset ac_cv_sizeof_int_p 48734 # And we have to undef the definition of SIZEOF_INT_P in confdefs.h by the previous invocation of AC_CHECK_SIZEOF 48735 cat >>confdefs.h <<_ACEOF 48736 #undef SIZEOF_INT_P 48737 _ACEOF 48738 48739 # The cast to long int works around a bug in the HP C Compiler 48740 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 48741 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 48742 # This bug is HP SR number 8606223364. 48743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int *" >&5 48744 $as_echo_n "checking size of int *... " >&6; } 48745 if ${ac_cv_sizeof_int_p+:} false; then : 48746 $as_echo_n "(cached) " >&6 48747 else 48748 if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (int *))" "ac_cv_sizeof_int_p" "$ac_includes_default"; then : 48749 48750 else 48751 if test "$ac_cv_type_int_p" = yes; then 48752 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 48753 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 48754 as_fn_error 77 "cannot compute sizeof (int *) 48755 See \`config.log' for more details" "$LINENO" 5; } 48756 else 48757 ac_cv_sizeof_int_p=0 48758 fi 48759 fi 48760 48761 fi 48762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int_p" >&5 48763 $as_echo "$ac_cv_sizeof_int_p" >&6; } 48764 48765 48766 48767 cat >>confdefs.h <<_ACEOF 48768 #define SIZEOF_INT_P $ac_cv_sizeof_int_p 48769 _ACEOF 48770 48771 48772 48773 TESTED_TARGET_CPU_BITS=`expr 8 \* $ac_cv_sizeof_int_p` 48774 48775 if test "x$TESTED_TARGET_CPU_BITS" != "x$OPENJDK_TARGET_CPU_BITS"; then 48776 { $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 48777 $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;} 48778 if test "x$COMPILE_TYPE" = xreduced; then 48779 48780 # Print a helpful message on how to acquire the necessary build dependency. 48781 # reduced is the help tag: freetype, cups, alsa etc 48782 MISSING_DEPENDENCY=reduced 48783 48784 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 48785 cygwin_help $MISSING_DEPENDENCY 48786 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 48787 msys_help $MISSING_DEPENDENCY 48788 else 48789 PKGHANDLER_COMMAND= 48790 48791 case $PKGHANDLER in 48792 apt-get) 48793 apt_help $MISSING_DEPENDENCY ;; 48794 yum) 48795 yum_help $MISSING_DEPENDENCY ;; 48796 port) 48797 port_help $MISSING_DEPENDENCY ;; 48798 pkgutil) 48799 pkgutil_help $MISSING_DEPENDENCY ;; 48800 pkgadd) 48801 pkgadd_help $MISSING_DEPENDENCY ;; 48802 esac 48803 48804 if test "x$PKGHANDLER_COMMAND" != x; then 48805 HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'." 48806 fi 48807 fi 48808 48809 { $as_echo "$as_me:${as_lineno-$LINENO}: You are doing a reduced build. Check that you have 32-bit libraries installed. $HELP_MSG" >&5 48810 $as_echo "$as_me: You are doing a reduced build. Check that you have 32-bit libraries installed. $HELP_MSG" >&6;} 48811 elif test "x$COMPILE_TYPE" = xcross; then 48812 { $as_echo "$as_me:${as_lineno-$LINENO}: You are doing a cross-compilation. Check that you have all target platform libraries installed." >&5 48813 $as_echo "$as_me: You are doing a cross-compilation. Check that you have all target platform libraries installed." >&6;} 48814 fi 48815 as_fn_error $? "Cannot continue." "$LINENO" 5 48816 fi 48817 fi 48818 fi 48819 48820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for target address size" >&5 48821 $as_echo_n "checking for target address size... " >&6; } 48822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OPENJDK_TARGET_CPU_BITS bits" >&5 48823 $as_echo "$OPENJDK_TARGET_CPU_BITS bits" >&6; } 48824 48825 48826 ############################################################################### 48827 # 48828 # Is the target little of big endian? 48829 # 48830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5 48831 $as_echo_n "checking whether byte ordering is bigendian... " >&6; } 48832 if ${ac_cv_c_bigendian+:} false; then : 48833 $as_echo_n "(cached) " >&6 48834 else 48835 ac_cv_c_bigendian=unknown 48836 # See if we're dealing with a universal compiler. 48837 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 48838 /* end confdefs.h. */ 48839 #ifndef __APPLE_CC__ 48840 not a universal capable compiler 48841 #endif 48842 typedef int dummy; 48843 48844 _ACEOF 48845 if ac_fn_cxx_try_compile "$LINENO"; then : 48846 48847 # Check for potential -arch flags. It is not universal unless 48848 # there are at least two -arch flags with different values. 48849 ac_arch= 48850 ac_prev= 48851 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do 48852 if test -n "$ac_prev"; then 48853 case $ac_word in 48854 i?86 | x86_64 | ppc | ppc64) 48855 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then 48856 ac_arch=$ac_word 48857 else 48858 ac_cv_c_bigendian=universal 48859 break 48860 fi 48861 ;; 48862 esac 48863 ac_prev= 48864 elif test "x$ac_word" = "x-arch"; then 48865 ac_prev=arch 48866 fi 48867 done 48868 fi 48869 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 48870 if test $ac_cv_c_bigendian = unknown; then 48871 # See if sys/param.h defines the BYTE_ORDER macro. 48872 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 48873 /* end confdefs.h. */ 48874 #include <sys/types.h> 48875 #include <sys/param.h> 48876 48877 int 48878 main () 48879 { 48880 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \ 48881 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \ 48882 && LITTLE_ENDIAN) 48883 bogus endian macros 48884 #endif 48885 48886 ; 48887 return 0; 48888 } 48889 _ACEOF 48890 if ac_fn_cxx_try_compile "$LINENO"; then : 48891 # It does; now see whether it defined to BIG_ENDIAN or not. 48892 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 48893 /* end confdefs.h. */ 48894 #include <sys/types.h> 48895 #include <sys/param.h> 48896 48897 int 48898 main () 48899 { 48900 #if BYTE_ORDER != BIG_ENDIAN 48901 not big endian 48902 #endif 48903 48904 ; 48905 return 0; 48906 } 48907 _ACEOF 48908 if ac_fn_cxx_try_compile "$LINENO"; then : 48909 ac_cv_c_bigendian=yes 48910 else 48911 ac_cv_c_bigendian=no 48912 fi 48913 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 48914 fi 48915 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 48916 fi 48917 if test $ac_cv_c_bigendian = unknown; then 48918 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris). 48919 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 48920 /* end confdefs.h. */ 48921 #include <limits.h> 48922 48923 int 48924 main () 48925 { 48926 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN) 48927 bogus endian macros 48928 #endif 48929 48930 ; 48931 return 0; 48932 } 48933 _ACEOF 48934 if ac_fn_cxx_try_compile "$LINENO"; then : 48935 # It does; now see whether it defined to _BIG_ENDIAN or not. 48936 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 48937 /* end confdefs.h. */ 48938 #include <limits.h> 48939 48940 int 48941 main () 48942 { 48943 #ifndef _BIG_ENDIAN 48944 not big endian 48945 #endif 48946 48947 ; 48948 return 0; 48949 } 48950 _ACEOF 48951 if ac_fn_cxx_try_compile "$LINENO"; then : 48952 ac_cv_c_bigendian=yes 48953 else 48954 ac_cv_c_bigendian=no 48955 fi 48956 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 48957 fi 48958 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 48959 fi 48960 if test $ac_cv_c_bigendian = unknown; then 48961 # Compile a test program. 48962 if test "$cross_compiling" = yes; then : 48963 # Try to guess by grepping values from an object file. 48964 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 48965 /* end confdefs.h. */ 48966 short int ascii_mm[] = 48967 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; 48968 short int ascii_ii[] = 48969 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; 48970 int use_ascii (int i) { 48971 return ascii_mm[i] + ascii_ii[i]; 48972 } 48973 short int ebcdic_ii[] = 48974 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; 48975 short int ebcdic_mm[] = 48976 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; 48977 int use_ebcdic (int i) { 48978 return ebcdic_mm[i] + ebcdic_ii[i]; 48979 } 48980 extern int foo; 48981 48982 int 48983 main () 48984 { 48985 return use_ascii (foo) == use_ebcdic (foo); 48986 ; 48987 return 0; 48988 } 48989 _ACEOF 48990 if ac_fn_cxx_try_compile "$LINENO"; then : 48991 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then 48992 ac_cv_c_bigendian=yes 48993 fi 48994 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then 48995 if test "$ac_cv_c_bigendian" = unknown; then 48996 ac_cv_c_bigendian=no 48997 else 48998 # finding both strings is unlikely to happen, but who knows? 48999 ac_cv_c_bigendian=unknown 49000 fi 49001 fi 49002 fi 49003 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 49004 else 49005 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 49006 /* end confdefs.h. */ 49007 $ac_includes_default 49008 int 49009 main () 49010 { 49011 49012 /* Are we little or big endian? From Harbison&Steele. */ 49013 union 49014 { 49015 long int l; 49016 char c[sizeof (long int)]; 49017 } u; 49018 u.l = 1; 49019 return u.c[sizeof (long int) - 1] == 1; 49020 49021 ; 49022 return 0; 49023 } 49024 _ACEOF 49025 if ac_fn_cxx_try_run "$LINENO"; then : 49026 ac_cv_c_bigendian=no 49027 else 49028 ac_cv_c_bigendian=yes 49029 fi 49030 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 49031 conftest.$ac_objext conftest.beam conftest.$ac_ext 49032 fi 49033 49034 fi 49035 fi 49036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5 49037 $as_echo "$ac_cv_c_bigendian" >&6; } 49038 case $ac_cv_c_bigendian in #( 49039 yes) 49040 ENDIAN="big";; #( 49041 no) 49042 ENDIAN="little" ;; #( 49043 universal) 49044 ENDIAN="universal_endianness" 49045 ;; #( 49046 *) 49047 ENDIAN="unknown" ;; 49048 esac 49049 49050 49051 if test "x$ENDIAN" = xuniversal_endianness; then 49052 as_fn_error $? "Building with both big and little endianness is not supported" "$LINENO" 5 49053 fi 49054 if test "x$ENDIAN" != "x$OPENJDK_TARGET_CPU_ENDIAN"; then 49055 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 49056 fi 49057 49058 49059 # Configure flags for the tools 49060 49061 ############################################################################### 49062 # 49063 # How to compile shared libraries. 49064 # 49065 49066 if test "x$TOOLCHAIN_TYPE" = xgcc; then 49067 PICFLAG="-fPIC" 49068 C_FLAG_REORDER='' 49069 CXX_FLAG_REORDER='' 49070 49071 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 49072 # Linking is different on MacOSX 49073 if test "x$STATIC_BUILD" = xtrue; then 49074 SHARED_LIBRARY_FLAGS ='-undefined dynamic_lookup' 49075 else 49076 SHARED_LIBRARY_FLAGS="-dynamiclib -compatibility_version 1.0.0 -current_version 1.0.0 $PICFLAG" 49077 JVM_CFLAGS="$JVM_CFLAGS $PICFLAG" 49078 fi 49079 SET_EXECUTABLE_ORIGIN='-Wl,-rpath,@loader_path/.' 49080 SET_SHARED_LIBRARY_ORIGIN="$SET_EXECUTABLE_ORIGIN" 49081 SET_SHARED_LIBRARY_NAME='-Wl,-install_name,@rpath/$1' 49082 SET_SHARED_LIBRARY_MAPFILE='-Wl,-exported_symbols_list,$1' 49083 else 49084 # Default works for linux, might work on other platforms as well. 49085 SHARED_LIBRARY_FLAGS='-shared' 49086 SET_EXECUTABLE_ORIGIN='-Wl,-rpath,\$$$$ORIGIN$1' 49087 SET_SHARED_LIBRARY_ORIGIN="-Wl,-z,origin $SET_EXECUTABLE_ORIGIN" 49088 SET_SHARED_LIBRARY_NAME='-Wl,-soname=$1' 49089 SET_SHARED_LIBRARY_MAPFILE='-Wl,-version-script=$1' 49090 fi 49091 elif test "x$TOOLCHAIN_TYPE" = xclang; then 49092 C_FLAG_REORDER='' 49093 CXX_FLAG_REORDER='' 49094 49095 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 49096 # Linking is different on MacOSX 49097 PICFLAG='' 49098 SHARED_LIBRARY_FLAGS="-dynamiclib -compatibility_version 1.0.0 -current_version 1.0.0 $PICFLAG" 49099 SET_EXECUTABLE_ORIGIN='-Wl,-rpath,@loader_path/.' 49100 SET_SHARED_LIBRARY_ORIGIN="$SET_EXECUTABLE_ORIGIN" 49101 SET_SHARED_LIBRARY_NAME='-Wl,-install_name,@rpath/$1' 49102 SET_SHARED_LIBRARY_MAPFILE='-Wl,-exported_symbols_list,$1' 49103 49104 if test "x$STATIC_BUILD" = xfalse; then 49105 JVM_CFLAGS="$JVM_CFLAGS -fPIC" 49106 fi 49107 else 49108 # Default works for linux, might work on other platforms as well. 49109 PICFLAG='-fPIC' 49110 SHARED_LIBRARY_FLAGS='-shared' 49111 SET_EXECUTABLE_ORIGIN='-Wl,-rpath,\$$$$ORIGIN$1' 49112 SET_SHARED_LIBRARY_ORIGIN="-Wl,-z,origin $SET_EXECUTABLE_ORIGIN" 49113 SET_SHARED_LIBRARY_NAME='-Wl,-soname=$1' 49114 SET_SHARED_LIBRARY_MAPFILE='-Wl,-version-script=$1' 49115 fi 49116 elif test "x$TOOLCHAIN_TYPE" = xsolstudio; then 49117 PICFLAG="-KPIC" 49118 C_FLAG_REORDER='-xF' 49119 CXX_FLAG_REORDER='-xF' 49120 SHARED_LIBRARY_FLAGS="-G" 49121 SET_EXECUTABLE_ORIGIN='-R\$$$$ORIGIN$1' 49122 SET_SHARED_LIBRARY_ORIGIN="$SET_EXECUTABLE_ORIGIN" 49123 SET_SHARED_LIBRARY_NAME='-h $1' 49124 SET_SHARED_LIBRARY_MAPFILE='-M$1' 49125 elif test "x$TOOLCHAIN_TYPE" = xxlc; then 49126 # '-qpic' defaults to 'qpic=small'. This means that the compiler generates only 49127 # one instruction for accessing the TOC. If the TOC grows larger than 64K, the linker 49128 # will have to patch this single instruction with a call to some out-of-order code which 49129 # does the load from the TOC. This is of course slow. But in that case we also would have 49130 # to use '-bbigtoc' for linking anyway so we could also change the PICFLAG to 'qpic=large'. 49131 # With 'qpic=large' the compiler will by default generate a two-instruction sequence which 49132 # can be patched directly by the linker and does not require a jump to out-of-order code. 49133 # Another alternative instead of using 'qpic=large -bbigtoc' may be to use '-qminimaltoc' 49134 # instead. This creates a distinct TOC for every compilation unit (and thus requires two 49135 # loads for accessing a global variable). But there are rumors that this may be seen as a 49136 # 'performance feature' because of improved code locality of the symbols used in a 49137 # compilation unit. 49138 PICFLAG="-qpic" 49139 JVM_CFLAGS="$JVM_CFLAGS $PICFLAG" 49140 C_FLAG_REORDER='' 49141 CXX_FLAG_REORDER='' 49142 SHARED_LIBRARY_FLAGS="-qmkshrobj -bM:SRE -bnoentry" 49143 SET_EXECUTABLE_ORIGIN="" 49144 SET_SHARED_LIBRARY_ORIGIN='' 49145 SET_SHARED_LIBRARY_NAME='' 49146 SET_SHARED_LIBRARY_MAPFILE='' 49147 elif test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 49148 PICFLAG="" 49149 C_FLAG_REORDER='' 49150 CXX_FLAG_REORDER='' 49151 SHARED_LIBRARY_FLAGS="-dll" 49152 SET_EXECUTABLE_ORIGIN='' 49153 SET_SHARED_LIBRARY_ORIGIN='' 49154 SET_SHARED_LIBRARY_NAME='' 49155 SET_SHARED_LIBRARY_MAPFILE='-def:$1' 49156 fi 49157 49158 49159 49160 49161 49162 49163 49164 49165 49166 # The (cross) compiler is now configured, we can now test capabilities 49167 # of the target platform. 49168 49169 49170 49171 ############################################################################### 49172 # 49173 # Setup the opt flags for different compilers 49174 # and different operating systems. 49175 # 49176 49177 # FIXME: this was indirectly the old default, but just inherited. 49178 # if test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 49179 # C_FLAG_DEPS="-MMD -MF" 49180 # fi 49181 49182 # Generate make dependency files 49183 if test "x$TOOLCHAIN_TYPE" = xgcc; then 49184 C_FLAG_DEPS="-MMD -MF" 49185 elif test "x$TOOLCHAIN_TYPE" = xclang; then 49186 C_FLAG_DEPS="-MMD -MF" 49187 elif test "x$TOOLCHAIN_TYPE" = xsolstudio; then 49188 C_FLAG_DEPS="-xMMD -xMF" 49189 elif test "x$TOOLCHAIN_TYPE" = xxlc; then 49190 C_FLAG_DEPS="-qmakedep=gcc -MF" 49191 fi 49192 CXX_FLAG_DEPS="$C_FLAG_DEPS" 49193 49194 49195 49196 # Debug symbols 49197 if test "x$TOOLCHAIN_TYPE" = xgcc; then 49198 if test "x$OPENJDK_TARGET_CPU_BITS" = "x64" && test "x$DEBUG_LEVEL" = "xfastdebug"; then 49199 # reduce from default "-g2" option to save space 49200 CFLAGS_DEBUG_SYMBOLS="-g1" 49201 CXXFLAGS_DEBUG_SYMBOLS="-g1" 49202 else 49203 CFLAGS_DEBUG_SYMBOLS="-g" 49204 CXXFLAGS_DEBUG_SYMBOLS="-g" 49205 fi 49206 elif test "x$TOOLCHAIN_TYPE" = xclang; then 49207 CFLAGS_DEBUG_SYMBOLS="-g" 49208 CXXFLAGS_DEBUG_SYMBOLS="-g" 49209 elif test "x$TOOLCHAIN_TYPE" = xsolstudio; then 49210 CFLAGS_DEBUG_SYMBOLS="-g -xs" 49211 # -g0 enables debug symbols without disabling inlining. 49212 CXXFLAGS_DEBUG_SYMBOLS="-g0 -xs" 49213 elif test "x$TOOLCHAIN_TYPE" = xxlc; then 49214 CFLAGS_DEBUG_SYMBOLS="-g" 49215 CXXFLAGS_DEBUG_SYMBOLS="-g" 49216 elif test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 49217 CFLAGS_DEBUG_SYMBOLS="-Zi" 49218 CXXFLAGS_DEBUG_SYMBOLS="-Zi" 49219 fi 49220 49221 49222 49223 # Debug symbols for JVM_CFLAGS 49224 if test "x$TOOLCHAIN_TYPE" = xsolstudio; then 49225 JVM_CFLAGS_SYMBOLS="$JVM_CFLAGS_SYMBOLS -xs" 49226 if test "x$DEBUG_LEVEL" = xslowdebug; then 49227 JVM_CFLAGS_SYMBOLS="$JVM_CFLAGS_SYMBOLS -g" 49228 else 49229 # -g0 does not disable inlining, which -g does. 49230 JVM_CFLAGS_SYMBOLS="$JVM_CFLAGS_SYMBOLS -g0" 49231 fi 49232 elif test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 49233 JVM_CFLAGS_SYMBOLS="$JVM_CFLAGS_SYMBOLS -Z7 -d2Zi+" 49234 else 49235 JVM_CFLAGS_SYMBOLS="$JVM_CFLAGS_SYMBOLS -g" 49236 fi 49237 49238 49239 # bounds, memory and behavior checking options 49240 if test "x$TOOLCHAIN_TYPE" = xgcc; then 49241 case $DEBUG_LEVEL in 49242 release ) 49243 # no adjustment 49244 ;; 49245 fastdebug ) 49246 # no adjustment 49247 ;; 49248 slowdebug ) 49249 # FIXME: By adding this to C(XX)FLAGS_DEBUG_OPTIONS/JVM_CFLAGS_SYMBOLS it 49250 # get's added conditionally on whether we produce debug symbols or not. 49251 # This is most likely not really correct. 49252 49253 # Add runtime stack smashing and undefined behavior checks. 49254 # Not all versions of gcc support -fstack-protector 49255 STACK_PROTECTOR_CFLAG="-fstack-protector-all" 49256 49257 49258 49259 49260 49261 49262 49263 49264 49265 49266 49267 49268 49269 49270 49271 49272 49273 49274 49275 49276 49277 49278 49279 49280 49281 49282 49283 49284 49285 49286 49287 49288 49289 49290 49291 49292 49293 49294 49295 49296 49297 49298 # Execute function body 49299 49300 49301 49302 49303 49304 49305 49306 49307 49308 49309 49310 49311 49312 49313 49314 49315 49316 49317 49318 49319 49320 49321 49322 49323 49324 49325 49326 49327 49328 49329 49330 49331 49332 49333 49334 49335 49336 49337 49338 49339 49340 49341 49342 49343 49344 49345 49346 49347 # Execute function body 49348 49349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the C compiler supports \"$STACK_PROTECTOR_CFLAG -Werror\"" >&5 49350 $as_echo_n "checking if the C compiler supports \"$STACK_PROTECTOR_CFLAG -Werror\"... " >&6; } 49351 supports=yes 49352 49353 saved_cflags="$CFLAGS" 49354 CFLAGS="$CFLAGS $STACK_PROTECTOR_CFLAG -Werror" 49355 ac_ext=c 49356 ac_cpp='$CPP $CPPFLAGS' 49357 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 49358 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 49359 ac_compiler_gnu=$ac_cv_c_compiler_gnu 49360 49361 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 49362 /* end confdefs.h. */ 49363 int i; 49364 _ACEOF 49365 if ac_fn_c_try_compile "$LINENO"; then : 49366 49367 else 49368 supports=no 49369 fi 49370 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 49371 ac_ext=cpp 49372 ac_cpp='$CXXCPP $CPPFLAGS' 49373 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 49374 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 49375 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 49376 49377 CFLAGS="$saved_cflags" 49378 49379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supports" >&5 49380 $as_echo "$supports" >&6; } 49381 if test "x$supports" = "xyes" ; then 49382 : 49383 C_COMP_SUPPORTS="yes" 49384 else 49385 : 49386 C_COMP_SUPPORTS="no" 49387 fi 49388 49389 49390 49391 49392 49393 49394 49395 49396 49397 49398 49399 49400 49401 49402 49403 49404 49405 49406 49407 49408 49409 49410 49411 49412 49413 49414 49415 49416 49417 49418 49419 49420 49421 49422 49423 49424 49425 49426 49427 49428 49429 49430 49431 49432 49433 49434 49435 49436 49437 49438 49439 49440 49441 49442 49443 49444 49445 49446 49447 # Execute function body 49448 49449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the C++ compiler supports \"$STACK_PROTECTOR_CFLAG -Werror\"" >&5 49450 $as_echo_n "checking if the C++ compiler supports \"$STACK_PROTECTOR_CFLAG -Werror\"... " >&6; } 49451 supports=yes 49452 49453 saved_cxxflags="$CXXFLAGS" 49454 CXXFLAGS="$CXXFLAG $STACK_PROTECTOR_CFLAG -Werror" 49455 ac_ext=cpp 49456 ac_cpp='$CXXCPP $CPPFLAGS' 49457 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 49458 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 49459 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 49460 49461 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 49462 /* end confdefs.h. */ 49463 int i; 49464 _ACEOF 49465 if ac_fn_cxx_try_compile "$LINENO"; then : 49466 49467 else 49468 supports=no 49469 fi 49470 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 49471 ac_ext=cpp 49472 ac_cpp='$CXXCPP $CPPFLAGS' 49473 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 49474 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 49475 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 49476 49477 CXXFLAGS="$saved_cxxflags" 49478 49479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supports" >&5 49480 $as_echo "$supports" >&6; } 49481 if test "x$supports" = "xyes" ; then 49482 : 49483 CXX_COMP_SUPPORTS="yes" 49484 else 49485 : 49486 CXX_COMP_SUPPORTS="no" 49487 fi 49488 49489 49490 49491 49492 49493 49494 49495 49496 49497 49498 49499 49500 49501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if both compilers support \"$STACK_PROTECTOR_CFLAG -Werror\"" >&5 49502 $as_echo_n "checking if both compilers support \"$STACK_PROTECTOR_CFLAG -Werror\"... " >&6; } 49503 supports=no 49504 if test "x$C_COMP_SUPPORTS" = "xyes" -a "x$CXX_COMP_SUPPORTS" = "xyes"; then supports=yes; fi 49505 49506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supports" >&5 49507 $as_echo "$supports" >&6; } 49508 if test "x$supports" = "xyes" ; then 49509 : 49510 49511 else 49512 : 49513 STACK_PROTECTOR_CFLAG="" 49514 fi 49515 49516 49517 49518 49519 49520 49521 49522 CFLAGS_DEBUG_OPTIONS="$STACK_PROTECTOR_CFLAG --param ssp-buffer-size=1" 49523 CXXFLAGS_DEBUG_OPTIONS="$STACK_PROTECTOR_CFLAG --param ssp-buffer-size=1" 49524 if test "x$STACK_PROTECTOR_CFLAG" != x; then 49525 JVM_CFLAGS_SYMBOLS="$JVM_CFLAGS_SYMBOLS $STACK_PROTECTOR_CFLAG --param ssp-buffer-size=1" 49526 fi 49527 ;; 49528 esac 49529 fi 49530 49531 if test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 49532 if test "x$DEBUG_LEVEL" != xrelease; then 49533 if test "x$OPENJDK_TARGET_CPU" = xx86_64; then 49534 JVM_CFLAGS="$JVM_CFLAGS -homeparams" 49535 fi 49536 fi 49537 fi 49538 49539 # Optimization levels 49540 if test "x$TOOLCHAIN_TYPE" = xsolstudio; then 49541 CC_HIGHEST="$CC_HIGHEST -fns -fsimple -fsingle -xbuiltin=%all -xdepend -xrestrict -xlibmil" 49542 49543 if test "x$OPENJDK_TARGET_CPU_ARCH" = "xx86"; then 49544 # FIXME: seems we always set -xregs=no%frameptr; put it elsewhere more global? 49545 C_O_FLAG_HIGHEST_JVM="-xO4" 49546 C_O_FLAG_HIGHEST="-xO4 -Wu,-O4~yz $CC_HIGHEST -xalias_level=basic -xregs=no%frameptr" 49547 C_O_FLAG_HI="-xO4 -Wu,-O4~yz -xregs=no%frameptr" 49548 C_O_FLAG_NORM="-xO2 -Wu,-O2~yz -xregs=no%frameptr" 49549 C_O_FLAG_DEBUG="-xregs=no%frameptr" 49550 C_O_FLAG_DEBUG_JVM="" 49551 C_O_FLAG_NONE="-xregs=no%frameptr" 49552 CXX_O_FLAG_HIGHEST_JVM="-xO4" 49553 CXX_O_FLAG_HIGHEST="-xO4 -Qoption ube -O4~yz $CC_HIGHEST -xregs=no%frameptr" 49554 CXX_O_FLAG_HI="-xO4 -Qoption ube -O4~yz -xregs=no%frameptr" 49555 CXX_O_FLAG_NORM="-xO2 -Qoption ube -O2~yz -xregs=no%frameptr" 49556 CXX_O_FLAG_DEBUG="-xregs=no%frameptr" 49557 CXX_O_FLAG_DEBUG_JVM="" 49558 CXX_O_FLAG_NONE="-xregs=no%frameptr" 49559 if test "x$OPENJDK_TARGET_CPU_BITS" = "x32"; then 49560 C_O_FLAG_HIGHEST="$C_O_FLAG_HIGHEST -xchip=pentium" 49561 CXX_O_FLAG_HIGHEST="$CXX_O_FLAG_HIGHEST -xchip=pentium" 49562 fi 49563 elif test "x$OPENJDK_TARGET_CPU_ARCH" = "xsparc"; then 49564 C_O_FLAG_HIGHEST_JVM="-xO4" 49565 C_O_FLAG_HIGHEST="-xO4 -Wc,-Qrm-s -Wc,-Qiselect-T0 $CC_HIGHEST -xalias_level=basic -xprefetch=auto,explicit -xchip=ultra" 49566 C_O_FLAG_HI="-xO4 -Wc,-Qrm-s -Wc,-Qiselect-T0" 49567 C_O_FLAG_NORM="-xO2 -Wc,-Qrm-s -Wc,-Qiselect-T0" 49568 C_O_FLAG_DEBUG="" 49569 C_O_FLAG_DEBUG_JVM="" 49570 C_O_FLAG_NONE="" 49571 CXX_O_FLAG_HIGHEST_JVM="-xO4" 49572 CXX_O_FLAG_HIGHEST="-xO4 -Qoption cg -Qrm-s -Qoption cg -Qiselect-T0 $CC_HIGHEST -xprefetch=auto,explicit -xchip=ultra" 49573 CXX_O_FLAG_HI="-xO4 -Qoption cg -Qrm-s -Qoption cg -Qiselect-T0" 49574 CXX_O_FLAG_NORM="-xO2 -Qoption cg -Qrm-s -Qoption cg -Qiselect-T0" 49575 CXX_O_FLAG_DEBUG="" 49576 CXX_O_FLAG_DEBUG_JVM="" 49577 CXX_O_FLAG_NONE="" 49578 fi 49579 else 49580 # The remaining toolchains share opt flags between CC and CXX; 49581 # setup for C and duplicate afterwards. 49582 if test "x$TOOLCHAIN_TYPE" = xgcc; then 49583 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 49584 # On MacOSX we optimize for size, something 49585 # we should do for all platforms? 49586 C_O_FLAG_HIGHEST_JVM="-Os" 49587 C_O_FLAG_HIGHEST="-Os" 49588 C_O_FLAG_HI="-Os" 49589 C_O_FLAG_NORM="-Os" 49590 C_O_FLAG_SIZE="-Os" 49591 else 49592 C_O_FLAG_HIGHEST_JVM="-O3" 49593 C_O_FLAG_HIGHEST="-O3" 49594 C_O_FLAG_HI="-O3" 49595 C_O_FLAG_NORM="-O2" 49596 C_O_FLAG_SIZE="-Os" 49597 fi 49598 C_O_FLAG_DEBUG="-O0" 49599 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 49600 C_O_FLAG_DEBUG_JVM="" 49601 elif test "x$OPENJDK_TARGET_OS" = xlinux; then 49602 C_O_FLAG_DEBUG_JVM="-O0" 49603 fi 49604 C_O_FLAG_NONE="-O0" 49605 elif test "x$TOOLCHAIN_TYPE" = xclang; then 49606 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 49607 # On MacOSX we optimize for size, something 49608 # we should do for all platforms? 49609 C_O_FLAG_HIGHEST_JVM="-Os" 49610 C_O_FLAG_HIGHEST="-Os" 49611 C_O_FLAG_HI="-Os" 49612 C_O_FLAG_NORM="-Os" 49613 C_O_FLAG_SIZE="-Os" 49614 else 49615 C_O_FLAG_HIGHEST_JVM="-O3" 49616 C_O_FLAG_HIGHEST="-O3" 49617 C_O_FLAG_HI="-O3" 49618 C_O_FLAG_NORM="-O2" 49619 C_O_FLAG_SIZE="-Os" 49620 fi 49621 C_O_FLAG_DEBUG="-O0" 49622 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 49623 C_O_FLAG_DEBUG_JVM="" 49624 elif test "x$OPENJDK_TARGET_OS" = xlinux; then 49625 C_O_FLAG_DEBUG_JVM="-O0" 49626 fi 49627 C_O_FLAG_NONE="-O0" 49628 elif test "x$TOOLCHAIN_TYPE" = xxlc; then 49629 C_O_FLAG_HIGHEST_JVM="-O3 -qhot=level=1 -qinline -qinlglue" 49630 C_O_FLAG_HIGHEST="-O3 -qhot=level=1 -qinline -qinlglue" 49631 C_O_FLAG_HI="-O3 -qinline -qinlglue" 49632 C_O_FLAG_NORM="-O2" 49633 C_O_FLAG_DEBUG="-qnoopt" 49634 # FIXME: Value below not verified. 49635 C_O_FLAG_DEBUG_JVM="" 49636 C_O_FLAG_NONE="-qnoopt" 49637 elif test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 49638 C_O_FLAG_HIGHEST_JVM="-O2 -Oy-" 49639 C_O_FLAG_HIGHEST="-O2" 49640 C_O_FLAG_HI="-O1" 49641 C_O_FLAG_NORM="-O1" 49642 C_O_FLAG_DEBUG="-Od" 49643 C_O_FLAG_DEBUG_JVM="" 49644 C_O_FLAG_NONE="-Od" 49645 C_O_FLAG_SIZE="-Os" 49646 fi 49647 CXX_O_FLAG_HIGHEST_JVM="$C_O_FLAG_HIGHEST_JVM" 49648 CXX_O_FLAG_HIGHEST="$C_O_FLAG_HIGHEST" 49649 CXX_O_FLAG_HI="$C_O_FLAG_HI" 49650 CXX_O_FLAG_NORM="$C_O_FLAG_NORM" 49651 CXX_O_FLAG_DEBUG="$C_O_FLAG_DEBUG" 49652 CXX_O_FLAG_DEBUG_JVM="$C_O_FLAG_DEBUG_JVM" 49653 CXX_O_FLAG_NONE="$C_O_FLAG_NONE" 49654 CXX_O_FLAG_SIZE="$C_O_FLAG_SIZE" 49655 fi 49656 49657 # Adjust optimization flags according to debug level. 49658 case $DEBUG_LEVEL in 49659 release ) 49660 # no adjustment 49661 ;; 49662 fastdebug ) 49663 # Not quite so much optimization 49664 C_O_FLAG_HI="$C_O_FLAG_NORM" 49665 CXX_O_FLAG_HI="$CXX_O_FLAG_NORM" 49666 ;; 49667 slowdebug ) 49668 # Disable optimization 49669 C_O_FLAG_HIGHEST_JVM="$C_O_FLAG_DEBUG_JVM" 49670 C_O_FLAG_HIGHEST="$C_O_FLAG_DEBUG" 49671 C_O_FLAG_HI="$C_O_FLAG_DEBUG" 49672 C_O_FLAG_NORM="$C_O_FLAG_DEBUG" 49673 C_O_FLAG_SIZE="$C_O_FLAG_DEBUG" 49674 CXX_O_FLAG_HIGHEST_JVM="$CXX_O_FLAG_DEBUG_JVM" 49675 CXX_O_FLAG_HIGHEST="$CXX_O_FLAG_DEBUG" 49676 CXX_O_FLAG_HI="$CXX_O_FLAG_DEBUG" 49677 CXX_O_FLAG_NORM="$CXX_O_FLAG_DEBUG" 49678 CXX_O_FLAG_SIZE="$CXX_O_FLAG_DEBUG" 49679 ;; 49680 esac 49681 49682 49683 49684 49685 49686 49687 49688 49689 49690 49691 49692 49693 49694 49695 49696 49697 49698 49699 49700 # Special extras... 49701 if test "x$TOOLCHAIN_TYPE" = xsolstudio; then 49702 if test "x$OPENJDK_TARGET_CPU_ARCH" = "xsparc"; then 49703 CFLAGS_JDKLIB_EXTRA="${CFLAGS_JDKLIB_EXTRA} -xregs=no%appl" 49704 CXXFLAGS_JDKLIB_EXTRA="${CXXFLAGS_JDKLIB_EXTRA} -xregs=no%appl" 49705 fi 49706 CFLAGS_JDKLIB_EXTRA="${CFLAGS_JDKLIB_EXTRA} -errtags=yes -errfmt" 49707 CXXFLAGS_JDKLIB_EXTRA="${CXXFLAGS_JDKLIB_EXTRA} -errtags=yes -errfmt" 49708 elif test "x$TOOLCHAIN_TYPE" = xxlc; then 49709 CFLAGS_JDK="${CFLAGS_JDK} -qchars=signed -qfullpath -qsaveopt" 49710 CXXFLAGS_JDK="${CXXFLAGS_JDK} -qchars=signed -qfullpath -qsaveopt" 49711 elif test "x$TOOLCHAIN_TYPE" = xgcc; then 49712 CXXSTD_CXXFLAG="-std=gnu++98" 49713 49714 49715 49716 49717 49718 49719 49720 49721 49722 49723 49724 49725 49726 49727 49728 49729 49730 49731 49732 49733 49734 49735 49736 49737 49738 49739 49740 49741 49742 49743 49744 49745 49746 49747 49748 49749 49750 49751 49752 49753 49754 49755 # Execute function body 49756 49757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the C++ compiler supports \"$CXXSTD_CXXFLAG -Werror\"" >&5 49758 $as_echo_n "checking if the C++ compiler supports \"$CXXSTD_CXXFLAG -Werror\"... " >&6; } 49759 supports=yes 49760 49761 saved_cxxflags="$CXXFLAGS" 49762 CXXFLAGS="$CXXFLAG $CXXSTD_CXXFLAG -Werror" 49763 ac_ext=cpp 49764 ac_cpp='$CXXCPP $CPPFLAGS' 49765 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 49766 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 49767 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 49768 49769 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 49770 /* end confdefs.h. */ 49771 int i; 49772 _ACEOF 49773 if ac_fn_cxx_try_compile "$LINENO"; then : 49774 49775 else 49776 supports=no 49777 fi 49778 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 49779 ac_ext=cpp 49780 ac_cpp='$CXXCPP $CPPFLAGS' 49781 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 49782 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 49783 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 49784 49785 CXXFLAGS="$saved_cxxflags" 49786 49787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supports" >&5 49788 $as_echo "$supports" >&6; } 49789 if test "x$supports" = "xyes" ; then 49790 : 49791 49792 else 49793 : 49794 CXXSTD_CXXFLAG="" 49795 fi 49796 49797 49798 49799 49800 49801 49802 49803 49804 49805 49806 49807 49808 CXXFLAGS_JDK="${CXXFLAGS_JDK} ${CXXSTD_CXXFLAG}" 49809 49810 fi 49811 if test "x$OPENJDK_TARGET_OS" = xsolaris; then 49812 CFLAGS_JDK="${CFLAGS_JDK} -D__solaris__" 49813 CXXFLAGS_JDK="${CXXFLAGS_JDK} -D__solaris__" 49814 CFLAGS_JDKLIB_EXTRA='-xstrconst' 49815 CFLAGS_JDK="${CFLAGS_JDK} -qchars=signed -qfullpath -qsaveopt" 49816 CXXFLAGS_JDK="${CXXFLAGS_JDK} -qchars=signed -qfullpath -qsaveopt" 49817 fi 49818 49819 if test "x$OPENJDK_TARGET_OS" = xsolaris; then 49820 CFLAGS_JDK="${CFLAGS_JDK} -D__solaris__" 49821 CXXFLAGS_JDK="${CXXFLAGS_JDK} -D__solaris__" 49822 CFLAGS_JDKLIB_EXTRA='-xstrconst' 49823 fi 49824 49825 CFLAGS_JDK="${CFLAGS_JDK} ${EXTRA_CFLAGS}" 49826 CXXFLAGS_JDK="${CXXFLAGS_JDK} ${EXTRA_CXXFLAGS}" 49827 LDFLAGS_JDK="${LDFLAGS_JDK} ${EXTRA_LDFLAGS}" 49828 49829 ############################################################################### 49830 # 49831 # Now setup the CFLAGS and LDFLAGS for the JDK build. 49832 # Later we will also have CFLAGS and LDFLAGS for the hotspot subrepo build. 49833 # 49834 49835 # Setup compiler/platform specific flags into 49836 # CFLAGS_JDK - C Compiler flags 49837 # CXXFLAGS_JDK - C++ Compiler flags 49838 # COMMON_CCXXFLAGS_JDK - common to C and C++ 49839 if test "x$TOOLCHAIN_TYPE" = xgcc; then 49840 JVM_CFLAGS="$JVM_CFLAGS -D_GNU_SOURCE" 49841 JVM_CFLAGS="$JVM_CFLAGS -D_REENTRANT" 49842 JVM_CFLAGS="$JVM_CFLAGS -fcheck-new" 49843 if test "x$OPENJDK_TARGET_CPU" = xx86; then 49844 # Force compatibility with i586 on 32 bit intel platforms. 49845 COMMON_CCXXFLAGS="${COMMON_CCXXFLAGS} -march=i586" 49846 JVM_CFLAGS="$JVM_CFLAGS -march=i586" 49847 fi 49848 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS $COMMON_CCXXFLAGS_JDK -Wall -Wextra -Wno-unused -Wno-unused-parameter -Wformat=2 \ 49849 -pipe -D_GNU_SOURCE -D_REENTRANT -D_LARGEFILE64_SOURCE" 49850 case $OPENJDK_TARGET_CPU_ARCH in 49851 arm ) 49852 # on arm we don't prevent gcc to omit frame pointer but do prevent strict aliasing 49853 CFLAGS_JDK="${CFLAGS_JDK} -fno-strict-aliasing" 49854 ;; 49855 ppc ) 49856 # on ppc we don't prevent gcc to omit frame pointer but do prevent strict aliasing 49857 CFLAGS_JDK="${CFLAGS_JDK} -fno-strict-aliasing" 49858 ;; 49859 * ) 49860 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK -fno-omit-frame-pointer" 49861 CFLAGS_JDK="${CFLAGS_JDK} -fno-strict-aliasing" 49862 ;; 49863 esac 49864 49865 49866 49867 49868 49869 49870 49871 49872 49873 49874 49875 49876 49877 49878 49879 49880 49881 49882 49883 49884 49885 49886 49887 49888 49889 49890 49891 49892 49893 49894 49895 49896 49897 49898 49899 49900 49901 49902 49903 49904 49905 49906 49907 49908 49909 49910 49911 49912 49913 49914 49915 49916 49917 49918 # Execute function body 49919 49920 # Need to assign to a variable since m4 is blocked from modifying parts in []. 49921 REFERENCE_VERSION=6 49922 49923 if [[ "$REFERENCE_VERSION" =~ (.*\.){3} ]] ; then 49924 as_fn_error $? "Internal error: Cannot compare to 6, only three parts (X.Y.Z) is supported" "$LINENO" 5 49925 fi 49926 49927 if [[ "$REFERENCE_VERSION" =~ [0-9]{6} ]] ; then 49928 as_fn_error $? "Internal error: Cannot compare to 6, only parts < 99999 is supported" "$LINENO" 5 49929 fi 49930 49931 # Version comparison method inspired by http://stackoverflow.com/a/24067243 49932 COMPARABLE_REFERENCE_VERSION=`$AWK -F. '{ printf("%05d%05d%05d\n", $1, $2, $3) }' <<< "$REFERENCE_VERSION"` 49933 49934 if test $COMPARABLE_ACTUAL_VERSION -ge $COMPARABLE_REFERENCE_VERSION ; then 49935 : 49936 49937 # These flags are required for GCC 6 builds as undefined behaviour in OpenJDK code 49938 # runs afoul of the more aggressive versions of these optimisations. 49939 # Notably, value range propagation now assumes that the this pointer of C++ 49940 # member functions is non-null. 49941 NO_NULL_POINTER_CHECK_CFLAG="-fno-delete-null-pointer-checks" 49942 49943 49944 49945 49946 49947 49948 49949 49950 49951 49952 49953 49954 49955 49956 49957 49958 49959 49960 49961 49962 49963 49964 49965 49966 49967 49968 49969 49970 49971 49972 49973 49974 49975 49976 49977 49978 49979 49980 49981 49982 49983 49984 # Execute function body 49985 49986 49987 49988 49989 49990 49991 49992 49993 49994 49995 49996 49997 49998 49999 50000 50001 50002 50003 50004 50005 50006 50007 50008 50009 50010 50011 50012 50013 50014 50015 50016 50017 50018 50019 50020 50021 50022 50023 50024 50025 50026 50027 50028 50029 50030 50031 50032 50033 # Execute function body 50034 50035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the C compiler supports \"$NO_NULL_POINTER_CHECK_CFLAG -Werror\"" >&5 50036 $as_echo_n "checking if the C compiler supports \"$NO_NULL_POINTER_CHECK_CFLAG -Werror\"... " >&6; } 50037 supports=yes 50038 50039 saved_cflags="$CFLAGS" 50040 CFLAGS="$CFLAGS $NO_NULL_POINTER_CHECK_CFLAG -Werror" 50041 ac_ext=c 50042 ac_cpp='$CPP $CPPFLAGS' 50043 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 50044 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 50045 ac_compiler_gnu=$ac_cv_c_compiler_gnu 50046 50047 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 50048 /* end confdefs.h. */ 50049 int i; 50050 _ACEOF 50051 if ac_fn_c_try_compile "$LINENO"; then : 50052 50053 else 50054 supports=no 50055 fi 50056 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 50057 ac_ext=cpp 50058 ac_cpp='$CXXCPP $CPPFLAGS' 50059 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 50060 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 50061 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 50062 50063 CFLAGS="$saved_cflags" 50064 50065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supports" >&5 50066 $as_echo "$supports" >&6; } 50067 if test "x$supports" = "xyes" ; then 50068 : 50069 C_COMP_SUPPORTS="yes" 50070 else 50071 : 50072 C_COMP_SUPPORTS="no" 50073 fi 50074 50075 50076 50077 50078 50079 50080 50081 50082 50083 50084 50085 50086 50087 50088 50089 50090 50091 50092 50093 50094 50095 50096 50097 50098 50099 50100 50101 50102 50103 50104 50105 50106 50107 50108 50109 50110 50111 50112 50113 50114 50115 50116 50117 50118 50119 50120 50121 50122 50123 50124 50125 50126 50127 50128 50129 50130 50131 50132 50133 # Execute function body 50134 50135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the C++ compiler supports \"$NO_NULL_POINTER_CHECK_CFLAG -Werror\"" >&5 50136 $as_echo_n "checking if the C++ compiler supports \"$NO_NULL_POINTER_CHECK_CFLAG -Werror\"... " >&6; } 50137 supports=yes 50138 50139 saved_cxxflags="$CXXFLAGS" 50140 CXXFLAGS="$CXXFLAG $NO_NULL_POINTER_CHECK_CFLAG -Werror" 50141 ac_ext=cpp 50142 ac_cpp='$CXXCPP $CPPFLAGS' 50143 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 50144 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 50145 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 50146 50147 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 50148 /* end confdefs.h. */ 50149 int i; 50150 _ACEOF 50151 if ac_fn_cxx_try_compile "$LINENO"; then : 50152 50153 else 50154 supports=no 50155 fi 50156 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 50157 ac_ext=cpp 50158 ac_cpp='$CXXCPP $CPPFLAGS' 50159 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 50160 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 50161 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 50162 50163 CXXFLAGS="$saved_cxxflags" 50164 50165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supports" >&5 50166 $as_echo "$supports" >&6; } 50167 if test "x$supports" = "xyes" ; then 50168 : 50169 CXX_COMP_SUPPORTS="yes" 50170 else 50171 : 50172 CXX_COMP_SUPPORTS="no" 50173 fi 50174 50175 50176 50177 50178 50179 50180 50181 50182 50183 50184 50185 50186 50187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if both compilers support \"$NO_NULL_POINTER_CHECK_CFLAG -Werror\"" >&5 50188 $as_echo_n "checking if both compilers support \"$NO_NULL_POINTER_CHECK_CFLAG -Werror\"... " >&6; } 50189 supports=no 50190 if test "x$C_COMP_SUPPORTS" = "xyes" -a "x$CXX_COMP_SUPPORTS" = "xyes"; then supports=yes; fi 50191 50192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supports" >&5 50193 $as_echo "$supports" >&6; } 50194 if test "x$supports" = "xyes" ; then 50195 : 50196 50197 else 50198 : 50199 NO_NULL_POINTER_CHECK_CFLAG="" 50200 fi 50201 50202 50203 50204 50205 50206 50207 50208 NO_LIFETIME_DSE_CFLAG="-fno-lifetime-dse" 50209 50210 50211 50212 50213 50214 50215 50216 50217 50218 50219 50220 50221 50222 50223 50224 50225 50226 50227 50228 50229 50230 50231 50232 50233 50234 50235 50236 50237 50238 50239 50240 50241 50242 50243 50244 50245 50246 50247 50248 50249 50250 50251 # Execute function body 50252 50253 50254 50255 50256 50257 50258 50259 50260 50261 50262 50263 50264 50265 50266 50267 50268 50269 50270 50271 50272 50273 50274 50275 50276 50277 50278 50279 50280 50281 50282 50283 50284 50285 50286 50287 50288 50289 50290 50291 50292 50293 50294 50295 50296 50297 50298 50299 50300 # Execute function body 50301 50302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the C compiler supports \"$NO_LIFETIME_DSE_CFLAG -Werror\"" >&5 50303 $as_echo_n "checking if the C compiler supports \"$NO_LIFETIME_DSE_CFLAG -Werror\"... " >&6; } 50304 supports=yes 50305 50306 saved_cflags="$CFLAGS" 50307 CFLAGS="$CFLAGS $NO_LIFETIME_DSE_CFLAG -Werror" 50308 ac_ext=c 50309 ac_cpp='$CPP $CPPFLAGS' 50310 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 50311 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 50312 ac_compiler_gnu=$ac_cv_c_compiler_gnu 50313 50314 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 50315 /* end confdefs.h. */ 50316 int i; 50317 _ACEOF 50318 if ac_fn_c_try_compile "$LINENO"; then : 50319 50320 else 50321 supports=no 50322 fi 50323 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 50324 ac_ext=cpp 50325 ac_cpp='$CXXCPP $CPPFLAGS' 50326 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 50327 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 50328 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 50329 50330 CFLAGS="$saved_cflags" 50331 50332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supports" >&5 50333 $as_echo "$supports" >&6; } 50334 if test "x$supports" = "xyes" ; then 50335 : 50336 C_COMP_SUPPORTS="yes" 50337 else 50338 : 50339 C_COMP_SUPPORTS="no" 50340 fi 50341 50342 50343 50344 50345 50346 50347 50348 50349 50350 50351 50352 50353 50354 50355 50356 50357 50358 50359 50360 50361 50362 50363 50364 50365 50366 50367 50368 50369 50370 50371 50372 50373 50374 50375 50376 50377 50378 50379 50380 50381 50382 50383 50384 50385 50386 50387 50388 50389 50390 50391 50392 50393 50394 50395 50396 50397 50398 50399 50400 # Execute function body 50401 50402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the C++ compiler supports \"$NO_LIFETIME_DSE_CFLAG -Werror\"" >&5 50403 $as_echo_n "checking if the C++ compiler supports \"$NO_LIFETIME_DSE_CFLAG -Werror\"... " >&6; } 50404 supports=yes 50405 50406 saved_cxxflags="$CXXFLAGS" 50407 CXXFLAGS="$CXXFLAG $NO_LIFETIME_DSE_CFLAG -Werror" 50408 ac_ext=cpp 50409 ac_cpp='$CXXCPP $CPPFLAGS' 50410 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 50411 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 50412 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 50413 50414 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 50415 /* end confdefs.h. */ 50416 int i; 50417 _ACEOF 50418 if ac_fn_cxx_try_compile "$LINENO"; then : 50419 50420 else 50421 supports=no 50422 fi 50423 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 50424 ac_ext=cpp 50425 ac_cpp='$CXXCPP $CPPFLAGS' 50426 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 50427 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 50428 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 50429 50430 CXXFLAGS="$saved_cxxflags" 50431 50432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supports" >&5 50433 $as_echo "$supports" >&6; } 50434 if test "x$supports" = "xyes" ; then 50435 : 50436 CXX_COMP_SUPPORTS="yes" 50437 else 50438 : 50439 CXX_COMP_SUPPORTS="no" 50440 fi 50441 50442 50443 50444 50445 50446 50447 50448 50449 50450 50451 50452 50453 50454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if both compilers support \"$NO_LIFETIME_DSE_CFLAG -Werror\"" >&5 50455 $as_echo_n "checking if both compilers support \"$NO_LIFETIME_DSE_CFLAG -Werror\"... " >&6; } 50456 supports=no 50457 if test "x$C_COMP_SUPPORTS" = "xyes" -a "x$CXX_COMP_SUPPORTS" = "xyes"; then supports=yes; fi 50458 50459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supports" >&5 50460 $as_echo "$supports" >&6; } 50461 if test "x$supports" = "xyes" ; then 50462 : 50463 50464 else 50465 : 50466 NO_LIFETIME_DSE_CFLAG="" 50467 fi 50468 50469 50470 50471 50472 50473 50474 CFLAGS_JDK="${CFLAGS_JDK} ${NO_NULL_POINTER_CHECK_CFLAG} ${NO_LIFETIME_DSE_CFLAG}" 50475 50476 50477 50478 else 50479 : 50480 50481 fi 50482 50483 50484 50485 50486 50487 50488 50489 50490 50491 50492 50493 50494 50495 50496 elif test "x$TOOLCHAIN_TYPE" = xclang; then 50497 JVM_CFLAGS="$JVM_CFLAGS -D_GNU_SOURCE" 50498 50499 # Restrict the debug information created by Clang to avoid 50500 # too big object files and speed the build up a little bit 50501 # (see http://llvm.org/bugs/show_bug.cgi?id=7554) 50502 JVM_CFLAGS="$JVM_CFLAGS -flimit-debug-info" 50503 if test "x$OPENJDK_TARGET_OS" = xlinux; then 50504 if test "x$OPENJDK_TARGET_CPU" = xx86; then 50505 # Force compatibility with i586 on 32 bit intel platforms. 50506 COMMON_CCXXFLAGS="${COMMON_CCXXFLAGS} -march=i586" 50507 JVM_CFLAGS="$JVM_CFLAGS -march=i586" 50508 fi 50509 JVM_CFLAGS="$JVM_CFLAGS -Wno-sometimes-uninitialized" 50510 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS $COMMON_CCXXFLAGS_JDK -Wall -Wextra -Wno-unused -Wno-unused-parameter -Wformat=2 \ 50511 -pipe -D_GNU_SOURCE -D_REENTRANT -D_LARGEFILE64_SOURCE" 50512 case $OPENJDK_TARGET_CPU_ARCH in 50513 ppc ) 50514 # on ppc we don't prevent gcc to omit frame pointer but do prevent strict aliasing 50515 CFLAGS_JDK="${CFLAGS_JDK} -fno-strict-aliasing" 50516 ;; 50517 * ) 50518 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK -fno-omit-frame-pointer" 50519 CFLAGS_JDK="${CFLAGS_JDK} -fno-strict-aliasing" 50520 ;; 50521 esac 50522 fi 50523 elif test "x$TOOLCHAIN_TYPE" = xsolstudio; then 50524 JVM_CFLAGS="$JVM_CFLAGS -DSPARC_WORKS" 50525 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS $COMMON_CCXXFLAGS_JDK -DTRACING -DMACRO_MEMSYS_OPS -DBREAKPTS" 50526 if test "x$OPENJDK_TARGET_CPU_ARCH" = xx86; then 50527 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK -DcpuIntel -Di586 -D$OPENJDK_TARGET_CPU_LEGACY_LIB" 50528 fi 50529 50530 CFLAGS_JDK="$CFLAGS_JDK -xc99=%none -xCC -errshort=tags -Xa -v -mt -W0,-noglobal" 50531 CXXFLAGS_JDK="$CXXFLAGS_JDK -errtags=yes +w -mt -features=no%except -DCC_NOEX -norunpath -xnolib" 50532 elif test "x$TOOLCHAIN_TYPE" = xxlc; then 50533 JVM_CFLAGS="$JVM_CFLAGS -D_REENTRANT -D__STDC_FORMAT_MACROS" 50534 CFLAGS_JDK="$CFLAGS_JDK -D_GNU_SOURCE -D_REENTRANT -D_LARGEFILE64_SOURCE -DSTDC" 50535 CXXFLAGS_JDK="$CXXFLAGS_JDK -D_GNU_SOURCE -D_REENTRANT -D_LARGEFILE64_SOURCE -DSTDC" 50536 elif test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 50537 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS $COMMON_CCXXFLAGS_JDK \ 50538 -MD -Zc:wchar_t- -W3 -wd4800 \ 50539 -DWIN32_LEAN_AND_MEAN \ 50540 -D_CRT_SECURE_NO_DEPRECATE -D_CRT_NONSTDC_NO_DEPRECATE \ 50541 -D_WINSOCK_DEPRECATED_NO_WARNINGS \ 50542 -DWIN32 -DIAL" 50543 if test "x$OPENJDK_TARGET_CPU" = xx86_64; then 50544 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK -D_AMD64_ -Damd64" 50545 else 50546 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK -D_X86_ -Dx86" 50547 fi 50548 # If building with Visual Studio 2010, we can still use _STATIC_CPPLIB to 50549 # avoid bundling msvcpNNN.dll. Doesn't work with newer versions of visual 50550 # studio. 50551 if test "x$TOOLCHAIN_VERSION" = "x2010"; then 50552 STATIC_CPPLIB_FLAGS="-D_STATIC_CPPLIB -D_DISABLE_DEPRECATE_STATIC_CPPLIB" 50553 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK $STATIC_CPPLIB_FLAGS" 50554 JVM_CFLAGS="$JVM_CFLAGS $STATIC_CPPLIB_FLAGS" 50555 fi 50556 fi 50557 50558 ############################################################################### 50559 50560 # Adjust flags according to debug level. 50561 case $DEBUG_LEVEL in 50562 fastdebug | slowdebug ) 50563 CFLAGS_JDK="$CFLAGS_JDK $CFLAGS_DEBUG_SYMBOLS $CFLAGS_DEBUG_OPTIONS" 50564 CXXFLAGS_JDK="$CXXFLAGS_JDK $CXXFLAGS_DEBUG_SYMBOLS $CXXFLAGS_DEBUG_OPTIONS" 50565 JAVAC_FLAGS="$JAVAC_FLAGS -g" 50566 ;; 50567 release ) 50568 ;; 50569 * ) 50570 as_fn_error $? "Unrecognized \$DEBUG_LEVEL: $DEBUG_LEVEL" "$LINENO" 5 50571 ;; 50572 esac 50573 50574 # Set some common defines. These works for all compilers, but assume 50575 # -D is universally accepted. 50576 50577 # Setup endianness 50578 if test "x$OPENJDK_TARGET_CPU_ENDIAN" = xlittle; then 50579 # The macro _LITTLE_ENDIAN needs to be defined the same to avoid the 50580 # Sun C compiler warning message: warning: macro redefined: _LITTLE_ENDIAN 50581 # (The Solaris X86 system defines this in file /usr/include/sys/isa_defs.h). 50582 # Note: -Dmacro is the same as #define macro 1 50583 # -Dmacro= is the same as #define macro 50584 if test "x$OPENJDK_TARGET_OS" = xsolaris; then 50585 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK -D_LITTLE_ENDIAN=" 50586 else 50587 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK -D_LITTLE_ENDIAN" 50588 fi 50589 else 50590 # Same goes for _BIG_ENDIAN. Do we really need to set *ENDIAN on Solaris if they 50591 # are defined in the system? 50592 if test "x$OPENJDK_TARGET_OS" = xsolaris; then 50593 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK -D_BIG_ENDIAN=" 50594 else 50595 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK -D_BIG_ENDIAN" 50596 fi 50597 fi 50598 50599 # Setup target OS define. Use OS target name but in upper case. 50600 OPENJDK_TARGET_OS_UPPERCASE=`$ECHO $OPENJDK_TARGET_OS | $TR 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` 50601 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK -D$OPENJDK_TARGET_OS_UPPERCASE" 50602 50603 # Setup target CPU 50604 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK \ 50605 $OPENJDK_TARGET_ADD_LP64 \ 50606 -DARCH='\"$OPENJDK_TARGET_CPU_LEGACY\"' -D$OPENJDK_TARGET_CPU_LEGACY" 50607 50608 # Setup debug/release defines 50609 if test "x$DEBUG_LEVEL" = xrelease; then 50610 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK -DNDEBUG" 50611 if test "x$OPENJDK_TARGET_OS" = xsolaris; then 50612 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK -DTRIMMED" 50613 fi 50614 else 50615 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK -DDEBUG" 50616 fi 50617 50618 # Set some additional per-OS defines. 50619 if test "x$OPENJDK_TARGET_OS" = xlinux; then 50620 JVM_CFLAGS="$JVM_CFLAGS -DLINUX" 50621 JVM_CFLAGS="$JVM_CFLAGS -pipe -fPIC -fno-rtti -fno-exceptions \ 50622 -fvisibility=hidden -fno-strict-aliasing -fno-omit-frame-pointer" 50623 elif test "x$OPENJDK_TARGET_OS" = xsolaris; then 50624 JVM_CFLAGS="$JVM_CFLAGS -DSOLARIS" 50625 JVM_CFLAGS="$JVM_CFLAGS -template=no%extdef -features=no%split_init \ 50626 -D_Crun_inline_placement -library=%none -KPIC -mt -xwe -features=no%except" 50627 elif test "x$OPENJDK_TARGET_OS" = xmacosx; then 50628 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK -D_ALLBSD_SOURCE -D_DARWIN_UNLIMITED_SELECT" 50629 JVM_CFLAGS="$JVM_CFLAGS -D_ALLBSD_SOURCE" 50630 JVM_CFLAGS="$JVM_CFLAGS -D_DARWIN_C_SOURCE -D_XOPEN_SOURCE" 50631 JVM_CFLAGS="$JVM_CFLAGS -fno-rtti -fno-exceptions -fvisibility=hidden \ 50632 -mno-omit-leaf-frame-pointer -mstack-alignment=16 -pipe -fno-strict-aliasing \ 50633 -DMAC_OS_X_VERSION_MAX_ALLOWED=1070 -mmacosx-version-min=10.7.0 \ 50634 -fno-omit-frame-pointer" 50635 elif test "x$OPENJDK_TARGET_OS" = xaix; then 50636 JVM_CFLAGS="$JVM_CFLAGS -DAIX" 50637 # We may need '-qminimaltoc' or '-qpic=large -bbigtoc' if the TOC overflows. 50638 JVM_CFLAGS="$JVM_CFLAGS -qtune=balanced \ 50639 -qalias=noansi -qstrict -qtls=default -qlanglvl=c99vla \ 50640 -qlanglvl=noredefmac -qnortti -qnoeh -qignerrno" 50641 elif test "x$OPENJDK_TARGET_OS" = xbsd; then 50642 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK -D_ALLBSD_SOURCE" 50643 elif test "x$OPENJDK_TARGET_OS" = xwindows; then 50644 JVM_CFLAGS="$JVM_CFLAGS -D_WINDOWS -DWIN32 -D_JNI_IMPLEMENTATION_" 50645 JVM_CFLAGS="$JVM_CFLAGS -nologo -W3 -MD -MP" 50646 fi 50647 50648 # Set some additional per-CPU defines. 50649 if test "x$OPENJDK_TARGET_OS-$OPENJDK_TARGET_CPU" = xwindows-x86; then 50650 JVM_CFLAGS="$JVM_CFLAGS -arch:IA32" 50651 elif test "x$OPENJDK_TARGET_CPU" = xsparcv9; then 50652 JVM_CFLAGS="$JVM_CFLAGS -xarch=sparc" 50653 elif test "x$OPENJDK_TARGET_CPU" = xppc64; then 50654 if test "x$OPENJDK_TARGET_OS" = xlinux; then 50655 JVM_CFLAGS="$JVM_CFLAGS -minsert-sched-nops=regroup_exact -mno-multiple -mno-string" 50656 # fixes `relocation truncated to fit' error for gcc 4.1. 50657 JVM_CFLAGS="$JVM_CFLAGS -mminimal-toc" 50658 # Use ppc64 instructions, but schedule for power5 50659 JVM_CFLAGS="$JVM_CFLAGS -mcpu=powerpc64 -mtune=power5" 50660 elif test "x$OPENJDK_TARGET_OS" = xaix; then 50661 JVM_CFLAGS="$JVM_CFLAGS -qarch=ppc64" 50662 fi 50663 elif test "x$OPENJDK_TARGET_CPU" = xppc64le; then 50664 if test "x$OPENJDK_TARGET_OS" = xlinux; then 50665 JVM_CFLAGS="$JVM_CFLAGS -minsert-sched-nops=regroup_exact -mno-multiple -mno-string" 50666 # Little endian machine uses ELFv2 ABI. 50667 JVM_CFLAGS="$JVM_CFLAGS -DABI_ELFv2" 50668 # Use Power8, this is the first CPU to support PPC64 LE with ELFv2 ABI. 50669 JVM_CFLAGS="$JVM_CFLAGS -mcpu=power7 -mtune=power8" 50670 fi 50671 fi 50672 50673 if test "x$OPENJDK_TARGET_CPU_ENDIAN" = xlittle; then 50674 JVM_CFLAGS="$JVM_CFLAGS -DVM_LITTLE_ENDIAN" 50675 fi 50676 50677 if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then 50678 if test "x$OPENJDK_TARGET_OS" != xsolaris && test "x$OPENJDK_TARGET_OS" != xaix; then 50679 # Solaris does not have _LP64=1 in the old build. 50680 # xlc on AIX defines _LP64=1 by default and issues a warning if we redefine it. 50681 JVM_CFLAGS="$JVM_CFLAGS -D_LP64=1" 50682 fi 50683 fi 50684 50685 # Set JVM_CFLAGS warning handling 50686 if test "x$OPENJDK_TARGET_OS" = xlinux; then 50687 JVM_CFLAGS="$JVM_CFLAGS -Wpointer-arith -Wsign-compare -Wunused-function \ 50688 -Wunused-value -Woverloaded-virtual" 50689 50690 if test "x$TOOLCHAIN_TYPE" = xgcc; then 50691 50692 50693 50694 50695 50696 50697 50698 50699 50700 50701 50702 50703 50704 50705 50706 50707 50708 50709 50710 50711 50712 50713 50714 50715 50716 50717 50718 50719 50720 50721 50722 50723 50724 50725 50726 50727 50728 50729 50730 50731 50732 50733 50734 50735 50736 50737 50738 50739 50740 50741 50742 50743 50744 50745 # Execute function body 50746 50747 # Need to assign to a variable since m4 is blocked from modifying parts in []. 50748 REFERENCE_VERSION=4.8 50749 50750 if [[ "$REFERENCE_VERSION" =~ (.*\.){3} ]] ; then 50751 as_fn_error $? "Internal error: Cannot compare to 4.8, only three parts (X.Y.Z) is supported" "$LINENO" 5 50752 fi 50753 50754 if [[ "$REFERENCE_VERSION" =~ [0-9]{6} ]] ; then 50755 as_fn_error $? "Internal error: Cannot compare to 4.8, only parts < 99999 is supported" "$LINENO" 5 50756 fi 50757 50758 # Version comparison method inspired by http://stackoverflow.com/a/24067243 50759 COMPARABLE_REFERENCE_VERSION=`$AWK -F. '{ printf("%05d%05d%05d\n", $1, $2, $3) }' <<< "$REFERENCE_VERSION"` 50760 50761 if test $COMPARABLE_ACTUAL_VERSION -ge $COMPARABLE_REFERENCE_VERSION ; then 50762 : 50763 50764 # These flags either do not work or give spurious warnings prior to gcc 4.8. 50765 JVM_CFLAGS="$JVM_CFLAGS -Wno-format-zero-length -Wtype-limits -Wuninitialized" 50766 50767 50768 else 50769 : 50770 50771 fi 50772 50773 50774 50775 50776 50777 50778 50779 50780 50781 50782 50783 50784 50785 50786 fi 50787 if ! [[ " $JVM_VARIANTS " =~ " zero " ]] && ! [[ " $JVM_VARIANTS " =~ " zeroshark " ]] ; then 50788 # Non-zero builds have stricter warnings 50789 JVM_CFLAGS="$JVM_CFLAGS -Wreturn-type -Wundef -Wformat=2" 50790 else 50791 if test "x$TOOLCHAIN_TYPE" = xclang; then 50792 # Some versions of llvm do not like -Wundef 50793 JVM_CFLAGS="$JVM_CFLAGS -Wno-undef" 50794 fi 50795 fi 50796 elif test "x$OPENJDK_TARGET_OS" = xmacosx; then 50797 JVM_CFLAGS="$JVM_CFLAGS -Wno-deprecated -Wpointer-arith \ 50798 -Wsign-compare -Wundef -Wunused-function -Wformat=2" 50799 fi 50800 50801 # Additional macosx handling 50802 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 50803 # Setting these parameters makes it an error to link to macosx APIs that are 50804 # newer than the given OS version and makes the linked binaries compatible 50805 # even if built on a newer version of the OS. 50806 # The expected format is X.Y.Z 50807 MACOSX_VERSION_MIN=10.7.0 50808 50809 50810 # The macro takes the version with no dots, ex: 1070 50811 # Let the flags variables get resolved in make for easier override on make 50812 # command line. 50813 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK -DMAC_OS_X_VERSION_MAX_ALLOWED=\$(subst .,,\$(MACOSX_VERSION_MIN)) -mmacosx-version-min=\$(MACOSX_VERSION_MIN)" 50814 LDFLAGS_JDK="$LDFLAGS_JDK -mmacosx-version-min=\$(MACOSX_VERSION_MIN)" 50815 fi 50816 50817 # Setup some hard coded includes 50818 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK \ 50819 -I${JDK_TOPDIR}/src/java.base/share/native/include \ 50820 -I${JDK_TOPDIR}/src/java.base/$OPENJDK_TARGET_OS/native/include \ 50821 -I${JDK_TOPDIR}/src/java.base/$OPENJDK_TARGET_OS_TYPE/native/include \ 50822 -I${JDK_TOPDIR}/src/java.base/share/native/libjava \ 50823 -I${JDK_TOPDIR}/src/java.base/$OPENJDK_TARGET_OS_TYPE/native/libjava" 50824 50825 # The shared libraries are compiled using the picflag. 50826 CFLAGS_JDKLIB="$COMMON_CCXXFLAGS_JDK \ 50827 $CFLAGS_JDK $EXTRA_CFLAGS_JDK $PICFLAG $CFLAGS_JDKLIB_EXTRA" 50828 CXXFLAGS_JDKLIB="$COMMON_CCXXFLAGS_JDK \ 50829 $CXXFLAGS_JDK $EXTRA_CXXFLAGS_JDK $PICFLAG $CXXFLAGS_JDKLIB_EXTRA" 50830 50831 # Executable flags 50832 CFLAGS_JDKEXE="$COMMON_CCXXFLAGS_JDK $CFLAGS_JDK $EXTRA_CFLAGS_JDK" 50833 CXXFLAGS_JDKEXE="$COMMON_CCXXFLAGS_JDK $CXXFLAGS_JDK $EXTRA_CXXFLAGS_JDK" 50834 50835 50836 50837 50838 50839 50840 # Setup LDFLAGS et al. 50841 # 50842 50843 if test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 50844 LDFLAGS_MICROSOFT="-nologo -opt:ref" 50845 LDFLAGS_JDK="$LDFLAGS_JDK $LDFLAGS_MICROSOFT -incremental:no" 50846 JVM_LDFLAGS="$JVM_LDFLAGS $LDFLAGS_MICROSOFT -opt:icf,8 -subsystem:windows -base:0x8000000" 50847 if test "x$OPENJDK_TARGET_CPU_BITS" = "x32"; then 50848 LDFLAGS_SAFESH="-safeseh" 50849 LDFLAGS_JDK="$LDFLAGS_JDK $LDFLAGS_SAFESH" 50850 JVM_LDFLAGS="$JVM_LDFLAGS $LDFLAGS_SAFESH" 50851 # NOTE: Old build added -machine. Probably not needed. 50852 JVM_LDFLAGS="$JVM_LDFLAGS -machine:I386" 50853 else 50854 JVM_LDFLAGS="$JVM_LDFLAGS -machine:AMD64" 50855 fi 50856 elif test "x$TOOLCHAIN_TYPE" = xclang; then 50857 JVM_LDFLAGS="$JVM_LDFLAGS -mno-omit-leaf-frame-pointer -mstack-alignment=16 -stdlib=libstdc++ -fPIC" 50858 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 50859 # FIXME: We should really generalize SET_SHARED_LIBRARY_ORIGIN instead. 50860 JVM_LDFLAGS="$JVM_LDFLAGS -Wl,-rpath,@loader_path/. -Wl,-rpath,@loader_path/.." 50861 fi 50862 elif test "x$TOOLCHAIN_TYPE" = xgcc; then 50863 # If this is a --hash-style=gnu system, use --hash-style=both, why? 50864 # We have previously set HAS_GNU_HASH if this is the case 50865 if test -n "$HAS_GNU_HASH"; then 50866 LDFLAGS_HASH_STYLE="-Wl,--hash-style=both" 50867 LDFLAGS_JDK="${LDFLAGS_JDK} $LDFLAGS_HASH_STYLE" 50868 JVM_LDFLAGS="$JVM_LDFLAGS $LDFLAGS_HASH_STYLE" 50869 fi 50870 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 50871 JVM_LDFLAGS="$JVM_LDFLAGS -Wl,-rpath,@loader_path/. -Wl,-rpath,@loader_path/.." 50872 fi 50873 if test "x$OPENJDK_TARGET_OS" = xlinux; then 50874 # And since we now know that the linker is gnu, then add -z defs, to forbid 50875 # undefined symbols in object files. 50876 LDFLAGS_NO_UNDEF_SYM="-Wl,-z,defs" 50877 LDFLAGS_JDK="${LDFLAGS_JDK} $LDFLAGS_NO_UNDEF_SYM" 50878 JVM_LDFLAGS="$JVM_LDFLAGS $LDFLAGS_NO_UNDEF_SYM" 50879 LDFLAGS_NO_EXEC_STACK="-Wl,-z,noexecstack" 50880 JVM_LDFLAGS="$JVM_LDFLAGS $LDFLAGS_NO_EXEC_STACK" 50881 if test "x$OPENJDK_TARGET_CPU" = xx86; then 50882 JVM_LDFLAGS="$JVM_LDFLAGS -march=i586" 50883 fi 50884 case $DEBUG_LEVEL in 50885 release ) 50886 # tell linker to optimize libraries. 50887 # Should this be supplied to the OSS linker as well? 50888 LDFLAGS_DEBUGLEVEL_release="-Wl,-O1" 50889 LDFLAGS_JDK="${LDFLAGS_JDK} $LDFLAGS_DEBUGLEVEL_release" 50890 JVM_LDFLAGS="$JVM_LDFLAGS $LDFLAGS_DEBUGLEVEL_release" 50891 if test "x$HAS_LINKER_RELRO" = "xtrue"; then 50892 JVM_LDFLAGS="$JVM_LDFLAGS $LINKER_RELRO_FLAG" 50893 fi 50894 ;; 50895 slowdebug ) 50896 # Hotspot always let the linker optimize 50897 JVM_LDFLAGS="$JVM_LDFLAGS -Wl,-O1" 50898 if test "x$HAS_LINKER_NOW" = "xtrue"; then 50899 # do relocations at load 50900 LDFLAGS_JDK="$LDFLAGS_JDK $LINKER_NOW_FLAG" 50901 LDFLAGS_CXX_JDK="$LDFLAGS_CXX_JDK $LINKER_NOW_FLAG" 50902 JVM_LDFLAGS="$JVM_LDFLAGS $LINKER_NOW_FLAG" 50903 fi 50904 if test "x$HAS_LINKER_RELRO" = "xtrue"; then 50905 # mark relocations read only 50906 LDFLAGS_JDK="$LDFLAGS_JDK $LINKER_RELRO_FLAG" 50907 LDFLAGS_CXX_JDK="$LDFLAGS_CXX_JDK $LINKER_RELRO_FLAG" 50908 JVM_LDFLAGS="$JVM_LDFLAGS $LINKER_RELRO_FLAG" 50909 fi 50910 ;; 50911 fastdebug ) 50912 # Hotspot always let the linker optimize 50913 JVM_LDFLAGS="$JVM_LDFLAGS -Wl,-O1" 50914 if test "x$HAS_LINKER_RELRO" = "xtrue"; then 50915 # mark relocations read only 50916 LDFLAGS_JDK="$LDFLAGS_JDK $LINKER_RELRO_FLAG" 50917 LDFLAGS_CXX_JDK="$LDFLAGS_CXX_JDK $LINKER_RELRO_FLAG" 50918 JVM_LDFLAGS="$JVM_LDFLAGS $LINKER_RELRO_FLAG" 50919 fi 50920 ;; 50921 * ) 50922 as_fn_error $? "Unrecognized \$DEBUG_LEVEL: $DEBUG_LEVEL" "$LINENO" 5 50923 ;; 50924 esac 50925 fi 50926 elif test "x$TOOLCHAIN_TYPE" = xsolstudio; then 50927 LDFLAGS_SOLSTUDIO="-Wl,-z,defs" 50928 LDFLAGS_JDK="$LDFLAGS_JDK $LDFLAGS_SOLSTUDIO -xildoff -ztext" 50929 LDFLAGS_CXX_SOLSTUDIO="-norunpath" 50930 LDFLAGS_CXX_JDK="$LDFLAGS_CXX_JDK $LDFLAGS_CXX_SOLSTUDIO -xnolib" 50931 JVM_LDFLAGS="$JVM_LDFLAGS $LDFLAGS_SOLSTUDIO -library=%none -mt $LDFLAGS_CXX_SOLSTUDIO -z noversion" 50932 if test "x$OPENJDK_TARGET_CPU_ARCH" = "xsparc"; then 50933 JVM_LDFLAGS="$JVM_LDFLAGS -xarch=sparc" 50934 fi 50935 elif test "x$TOOLCHAIN_TYPE" = xxlc; then 50936 LDFLAGS_XLC="-b64 -brtl -bnolibpath -bexpall -bernotok" 50937 LDFLAGS_JDK="${LDFLAGS_JDK} $LDFLAGS_XLC" 50938 JVM_LDFLAGS="$JVM_LDFLAGS $LDFLAGS_XLC" 50939 fi 50940 50941 # Customize LDFLAGS for executables 50942 50943 LDFLAGS_JDKEXE="${LDFLAGS_JDK}" 50944 50945 if test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 50946 if test "x$OPENJDK_TARGET_CPU_BITS" = "x64"; then 50947 LDFLAGS_STACK_SIZE=1048576 50948 else 50949 LDFLAGS_STACK_SIZE=327680 50950 fi 50951 LDFLAGS_JDKEXE="${LDFLAGS_JDKEXE} /STACK:$LDFLAGS_STACK_SIZE" 50952 elif test "x$OPENJDK_TARGET_OS" = xlinux; then 50953 LDFLAGS_JDKEXE="$LDFLAGS_JDKEXE -Wl,--allow-shlib-undefined" 50954 fi 50955 50956 LDFLAGS_JDKEXE="${LDFLAGS_JDKEXE} ${EXTRA_LDFLAGS_JDK}" 50957 50958 # Customize LDFLAGS for libs 50959 LDFLAGS_JDKLIB="${LDFLAGS_JDK}" 50960 50961 LDFLAGS_JDKLIB="${LDFLAGS_JDKLIB} ${SHARED_LIBRARY_FLAGS}" 50962 if test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 50963 LDFLAGS_JDKLIB="${LDFLAGS_JDKLIB} \ 50964 -libpath:${OUTPUT_ROOT}/support/modules_libs/java.base" 50965 JDKLIB_LIBS="" 50966 else 50967 LDFLAGS_JDKLIB="${LDFLAGS_JDKLIB} \ 50968 -L\$(SUPPORT_OUTPUTDIR)/modules_libs/java.base\$(OPENJDK_TARGET_CPU_LIBDIR)" 50969 50970 if test "xTARGET" = "xTARGET"; then 50971 # On some platforms (mac) the linker warns about non existing -L dirs. 50972 # Add server first if available. Linking aginst client does not always produce the same results. 50973 # Only add client/minimal dir if client/minimal is being built. 50974 # Default to server for other variants. 50975 if [[ " $JVM_VARIANTS " =~ " server " ]] ; then 50976 LDFLAGS_JDKLIB="${LDFLAGS_JDKLIB} -L\$(SUPPORT_OUTPUTDIR)/modules_libs/java.base\$(OPENJDK_TARGET_CPU_LIBDIR)/server" 50977 elif [[ " $JVM_VARIANTS " =~ " client " ]] ; then 50978 LDFLAGS_JDKLIB="${LDFLAGS_JDKLIB} -L\$(SUPPORT_OUTPUTDIR)/modules_libs/java.base\$(OPENJDK_TARGET_CPU_LIBDIR)/client" 50979 elif [[ " $JVM_VARIANTS " =~ " minimal " ]] ; then 50980 LDFLAGS_JDKLIB="${LDFLAGS_JDKLIB} -L\$(SUPPORT_OUTPUTDIR)/modules_libs/java.base\$(OPENJDK_TARGET_CPU_LIBDIR)/minimal" 50981 else 50982 LDFLAGS_JDKLIB="${LDFLAGS_JDKLIB} -L\$(SUPPORT_OUTPUTDIR)/modules_libs/java.base\$(OPENJDK_TARGET_CPU_LIBDIR)/server" 50983 fi 50984 elif test "xTARGET" = "xBUILD"; then 50985 # When building a buildjdk, it's always only the server variant 50986 LDFLAGS_JDKLIB="${LDFLAGS_JDKLIB} \ 50987 -L\$(SUPPORT_OUTPUTDIR)/modules_libs/java.base\$(OPENJDK_TARGET_CPU_LIBDIR)/server" 50988 fi 50989 50990 JDKLIB_LIBS="-ljava -ljvm" 50991 if test "x$TOOLCHAIN_TYPE" = xsolstudio; then 50992 JDKLIB_LIBS="$JDKLIB_LIBS -lc" 50993 fi 50994 50995 fi 50996 50997 # Set JVM_LIBS (per os) 50998 if test "x$OPENJDK_TARGET_OS" = xlinux; then 50999 JVM_LIBS="$JVM_LIBS -lm -ldl -lpthread" 51000 elif test "x$OPENJDK_TARGET_OS" = xsolaris; then 51001 # FIXME: This hard-coded path is not really proper. 51002 if test "x$OPENJDK_TARGET_CPU" = xx86_64; then 51003 SOLARIS_LIBM_LIBS="/usr/lib/amd64/libm.so.1" 51004 elif test "x$OPENJDK_TARGET_CPU" = xsparcv9; then 51005 SOLARIS_LIBM_LIBS="/usr/lib/sparcv9/libm.so.1" 51006 fi 51007 JVM_LIBS="$JVM_LIBS -lsocket -lsched -ldl $SOLARIS_LIBM_LIBS -lCrun \ 51008 -lthread -ldoor -lc -ldemangle -lnsl -lkstat -lrt" 51009 elif test "x$OPENJDK_TARGET_OS" = xmacosx; then 51010 JVM_LIBS="$JVM_LIBS -lm" 51011 elif test "x$OPENJDK_TARGET_OS" = xaix; then 51012 JVM_LIBS="$JVM_LIBS -Wl,-lC_r -lm -ldl -lpthread" 51013 elif test "x$OPENJDK_TARGET_OS" = xbsd; then 51014 JVM_LIBS="$JVM_LIBS -lm" 51015 elif test "x$OPENJDK_TARGET_OS" = xwindows; then 51016 JVM_LIBS="$JVM_LIBS kernel32.lib user32.lib gdi32.lib winspool.lib \ 51017 comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib \ 51018 wsock32.lib winmm.lib version.lib psapi.lib" 51019 fi 51020 51021 # Set JVM_ASFLAGS 51022 if test "x$OPENJDK_TARGET_OS" = xlinux; then 51023 if test "x$OPENJDK_TARGET_CPU" = xx86; then 51024 JVM_ASFLAGS="$JVM_ASFLAGS -march=i586" 51025 fi 51026 elif test "x$OPENJDK_TARGET_OS" = xmacosx; then 51027 JVM_ASFLAGS="$JVM_ASFLAGS -x assembler-with-cpp -mno-omit-leaf-frame-pointer -mstack-alignment=16" 51028 fi 51029 51030 LDFLAGS_JDKLIB="${LDFLAGS_JDKLIB} ${EXTRA_LDFLAGS_JDK}" 51031 51032 51033 51034 51035 51036 51037 51038 51039 51040 51041 51042 51043 51044 51045 51046 # Special extras... 51047 if test "x$TOOLCHAIN_TYPE" = xsolstudio; then 51048 if test "x$OPENJDK_BUILD_CPU_ARCH" = "xsparc"; then 51049 OPENJDK_BUILD_CFLAGS_JDKLIB_EXTRA="${OPENJDK_BUILD_CFLAGS_JDKLIB_EXTRA} -xregs=no%appl" 51050 OPENJDK_BUILD_CXXFLAGS_JDKLIB_EXTRA="${OPENJDK_BUILD_CXXFLAGS_JDKLIB_EXTRA} -xregs=no%appl" 51051 fi 51052 OPENJDK_BUILD_CFLAGS_JDKLIB_EXTRA="${OPENJDK_BUILD_CFLAGS_JDKLIB_EXTRA} -errtags=yes -errfmt" 51053 OPENJDK_BUILD_CXXFLAGS_JDKLIB_EXTRA="${OPENJDK_BUILD_CXXFLAGS_JDKLIB_EXTRA} -errtags=yes -errfmt" 51054 elif test "x$TOOLCHAIN_TYPE" = xxlc; then 51055 OPENJDK_BUILD_CFLAGS_JDK="${OPENJDK_BUILD_CFLAGS_JDK} -qchars=signed -qfullpath -qsaveopt" 51056 OPENJDK_BUILD_CXXFLAGS_JDK="${OPENJDK_BUILD_CXXFLAGS_JDK} -qchars=signed -qfullpath -qsaveopt" 51057 elif test "x$TOOLCHAIN_TYPE" = xgcc; then 51058 OPENJDK_BUILD_CXXSTD_CXXFLAG="-std=gnu++98" 51059 51060 51061 51062 51063 51064 51065 51066 51067 51068 51069 51070 51071 51072 51073 51074 51075 51076 51077 51078 51079 51080 51081 51082 51083 51084 51085 51086 51087 51088 51089 51090 51091 51092 51093 51094 51095 51096 51097 51098 51099 51100 51101 # Execute function body 51102 51103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the C++ compiler supports \"$OPENJDK_BUILD_CXXSTD_CXXFLAG -Werror\"" >&5 51104 $as_echo_n "checking if the C++ compiler supports \"$OPENJDK_BUILD_CXXSTD_CXXFLAG -Werror\"... " >&6; } 51105 supports=yes 51106 51107 saved_cxxflags="$CXXFLAGS" 51108 CXXFLAGS="$CXXFLAG $OPENJDK_BUILD_CXXSTD_CXXFLAG -Werror" 51109 ac_ext=cpp 51110 ac_cpp='$CXXCPP $CPPFLAGS' 51111 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 51112 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 51113 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 51114 51115 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 51116 /* end confdefs.h. */ 51117 int i; 51118 _ACEOF 51119 if ac_fn_cxx_try_compile "$LINENO"; then : 51120 51121 else 51122 supports=no 51123 fi 51124 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 51125 ac_ext=cpp 51126 ac_cpp='$CXXCPP $CPPFLAGS' 51127 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 51128 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 51129 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 51130 51131 CXXFLAGS="$saved_cxxflags" 51132 51133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supports" >&5 51134 $as_echo "$supports" >&6; } 51135 if test "x$supports" = "xyes" ; then 51136 : 51137 51138 else 51139 : 51140 OPENJDK_BUILD_CXXSTD_CXXFLAG="" 51141 fi 51142 51143 51144 51145 51146 51147 51148 51149 51150 51151 51152 51153 51154 OPENJDK_BUILD_CXXFLAGS_JDK="${OPENJDK_BUILD_CXXFLAGS_JDK} ${OPENJDK_BUILD_CXXSTD_CXXFLAG}" 51155 51156 fi 51157 if test "x$OPENJDK_TARGET_OS" = xsolaris; then 51158 OPENJDK_BUILD_CFLAGS_JDK="${OPENJDK_BUILD_CFLAGS_JDK} -D__solaris__" 51159 OPENJDK_BUILD_CXXFLAGS_JDK="${OPENJDK_BUILD_CXXFLAGS_JDK} -D__solaris__" 51160 OPENJDK_BUILD_CFLAGS_JDKLIB_EXTRA='-xstrconst' 51161 CFLAGS_JDK="${CFLAGS_JDK} -qchars=signed -qfullpath -qsaveopt" 51162 CXXFLAGS_JDK="${CXXFLAGS_JDK} -qchars=signed -qfullpath -qsaveopt" 51163 fi 51164 51165 if test "x$OPENJDK_TARGET_OS" = xsolaris; then 51166 OPENJDK_BUILD_CFLAGS_JDK="${OPENJDK_BUILD_CFLAGS_JDK} -D__solaris__" 51167 OPENJDK_BUILD_CXXFLAGS_JDK="${OPENJDK_BUILD_CXXFLAGS_JDK} -D__solaris__" 51168 OPENJDK_BUILD_CFLAGS_JDKLIB_EXTRA='-xstrconst' 51169 fi 51170 51171 OPENJDK_BUILD_CFLAGS_JDK="${OPENJDK_BUILD_CFLAGS_JDK} ${OPENJDK_BUILD_EXTRA_CFLAGS}" 51172 OPENJDK_BUILD_CXXFLAGS_JDK="${OPENJDK_BUILD_CXXFLAGS_JDK} ${OPENJDK_BUILD_EXTRA_CXXFLAGS}" 51173 OPENJDK_BUILD_LDFLAGS_JDK="${OPENJDK_BUILD_LDFLAGS_JDK} ${OPENJDK_BUILD_EXTRA_LDFLAGS}" 51174 51175 ############################################################################### 51176 # 51177 # Now setup the CFLAGS and LDFLAGS for the JDK build. 51178 # Later we will also have CFLAGS and LDFLAGS for the hotspot subrepo build. 51179 # 51180 51181 # Setup compiler/platform specific flags into 51182 # OPENJDK_BUILD_CFLAGS_JDK - C Compiler flags 51183 # OPENJDK_BUILD_CXXFLAGS_JDK - C++ Compiler flags 51184 # OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK - common to C and C++ 51185 if test "x$TOOLCHAIN_TYPE" = xgcc; then 51186 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS -D_GNU_SOURCE" 51187 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS -D_REENTRANT" 51188 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS -fcheck-new" 51189 if test "x$OPENJDK_BUILD_CPU" = xx86; then 51190 # Force compatibility with i586 on 32 bit intel platforms. 51191 OPENJDK_BUILD_COMMON_CCXXFLAGS="${OPENJDK_BUILD_COMMON_CCXXFLAGS} -march=i586" 51192 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS -march=i586" 51193 fi 51194 OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK="$OPENJDK_BUILD_COMMON_CCXXFLAGS $OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK -Wall -Wextra -Wno-unused -Wno-unused-parameter -Wformat=2 \ 51195 -pipe -D_GNU_SOURCE -D_REENTRANT -D_LARGEFILE64_SOURCE" 51196 case $OPENJDK_BUILD_CPU_ARCH in 51197 arm ) 51198 # on arm we don't prevent gcc to omit frame pointer but do prevent strict aliasing 51199 OPENJDK_BUILD_CFLAGS_JDK="${OPENJDK_BUILD_CFLAGS_JDK} -fno-strict-aliasing" 51200 ;; 51201 ppc ) 51202 # on ppc we don't prevent gcc to omit frame pointer but do prevent strict aliasing 51203 OPENJDK_BUILD_CFLAGS_JDK="${OPENJDK_BUILD_CFLAGS_JDK} -fno-strict-aliasing" 51204 ;; 51205 * ) 51206 OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK="$OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK -fno-omit-frame-pointer" 51207 OPENJDK_BUILD_CFLAGS_JDK="${OPENJDK_BUILD_CFLAGS_JDK} -fno-strict-aliasing" 51208 ;; 51209 esac 51210 51211 51212 51213 51214 51215 51216 51217 51218 51219 51220 51221 51222 51223 51224 51225 51226 51227 51228 51229 51230 51231 51232 51233 51234 51235 51236 51237 51238 51239 51240 51241 51242 51243 51244 51245 51246 51247 51248 51249 51250 51251 51252 51253 51254 51255 51256 51257 51258 51259 51260 51261 51262 51263 51264 # Execute function body 51265 51266 # Need to assign to a variable since m4 is blocked from modifying parts in []. 51267 REFERENCE_VERSION=6 51268 51269 if [[ "$REFERENCE_VERSION" =~ (.*\.){3} ]] ; then 51270 as_fn_error $? "Internal error: Cannot compare to 6, only three parts (X.Y.Z) is supported" "$LINENO" 5 51271 fi 51272 51273 if [[ "$REFERENCE_VERSION" =~ [0-9]{6} ]] ; then 51274 as_fn_error $? "Internal error: Cannot compare to 6, only parts < 99999 is supported" "$LINENO" 5 51275 fi 51276 51277 # Version comparison method inspired by http://stackoverflow.com/a/24067243 51278 COMPARABLE_REFERENCE_VERSION=`$AWK -F. '{ printf("%05d%05d%05d\n", $1, $2, $3) }' <<< "$REFERENCE_VERSION"` 51279 51280 if test $OPENJDK_BUILD_COMPARABLE_ACTUAL_VERSION -ge $COMPARABLE_REFERENCE_VERSION ; then 51281 : 51282 51283 else 51284 : 51285 51286 fi 51287 51288 51289 51290 51291 51292 51293 51294 51295 51296 51297 51298 51299 51300 51301 elif test "x$TOOLCHAIN_TYPE" = xclang; then 51302 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS -D_GNU_SOURCE" 51303 51304 # Restrict the debug information created by Clang to avoid 51305 # too big object files and speed the build up a little bit 51306 # (see http://llvm.org/bugs/show_bug.cgi?id=7554) 51307 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS -flimit-debug-info" 51308 if test "x$OPENJDK_BUILD_OS" = xlinux; then 51309 if test "x$OPENJDK_BUILD_CPU" = xx86; then 51310 # Force compatibility with i586 on 32 bit intel platforms. 51311 OPENJDK_BUILD_COMMON_CCXXFLAGS="${OPENJDK_BUILD_COMMON_CCXXFLAGS} -march=i586" 51312 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS -march=i586" 51313 fi 51314 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS -Wno-sometimes-uninitialized" 51315 OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK="$OPENJDK_BUILD_COMMON_CCXXFLAGS $OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK -Wall -Wextra -Wno-unused -Wno-unused-parameter -Wformat=2 \ 51316 -pipe -D_GNU_SOURCE -D_REENTRANT -D_LARGEFILE64_SOURCE" 51317 case $OPENJDK_BUILD_CPU_ARCH in 51318 ppc ) 51319 # on ppc we don't prevent gcc to omit frame pointer but do prevent strict aliasing 51320 OPENJDK_BUILD_CFLAGS_JDK="${OPENJDK_BUILD_CFLAGS_JDK} -fno-strict-aliasing" 51321 ;; 51322 * ) 51323 OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK="$OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK -fno-omit-frame-pointer" 51324 OPENJDK_BUILD_CFLAGS_JDK="${OPENJDK_BUILD_CFLAGS_JDK} -fno-strict-aliasing" 51325 ;; 51326 esac 51327 fi 51328 elif test "x$TOOLCHAIN_TYPE" = xsolstudio; then 51329 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS -DSPARC_WORKS" 51330 OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK="$OPENJDK_BUILD_COMMON_CCXXFLAGS $OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK -DTRACING -DMACRO_MEMSYS_OPS -DBREAKPTS" 51331 if test "x$OPENJDK_BUILD_CPU_ARCH" = xx86; then 51332 OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK="$OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK -DcpuIntel -Di586 -D$OPENJDK_BUILD_CPU_LEGACY_LIB" 51333 fi 51334 51335 OPENJDK_BUILD_CFLAGS_JDK="$OPENJDK_BUILD_CFLAGS_JDK -xc99=%none -xCC -errshort=tags -Xa -v -mt -W0,-noglobal" 51336 OPENJDK_BUILD_CXXFLAGS_JDK="$OPENJDK_BUILD_CXXFLAGS_JDK -errtags=yes +w -mt -features=no%except -DCC_NOEX -norunpath -xnolib" 51337 elif test "x$TOOLCHAIN_TYPE" = xxlc; then 51338 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS -D_REENTRANT -D__STDC_FORMAT_MACROS" 51339 OPENJDK_BUILD_CFLAGS_JDK="$OPENJDK_BUILD_CFLAGS_JDK -D_GNU_SOURCE -D_REENTRANT -D_LARGEFILE64_SOURCE -DSTDC" 51340 OPENJDK_BUILD_CXXFLAGS_JDK="$OPENJDK_BUILD_CXXFLAGS_JDK -D_GNU_SOURCE -D_REENTRANT -D_LARGEFILE64_SOURCE -DSTDC" 51341 elif test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 51342 OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK="$OPENJDK_BUILD_COMMON_CCXXFLAGS $OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK \ 51343 -MD -Zc:wchar_t- -W3 -wd4800 \ 51344 -DWIN32_LEAN_AND_MEAN \ 51345 -D_CRT_SECURE_NO_DEPRECATE -D_CRT_NONSTDC_NO_DEPRECATE \ 51346 -D_WINSOCK_DEPRECATED_NO_WARNINGS \ 51347 -DWIN32 -DIAL" 51348 if test "x$OPENJDK_BUILD_CPU" = xx86_64; then 51349 OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK="$OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK -D_AMD64_ -Damd64" 51350 else 51351 OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK="$OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK -D_X86_ -Dx86" 51352 fi 51353 # If building with Visual Studio 2010, we can still use _STATIC_CPPLIB to 51354 # avoid bundling msvcpNNN.dll. Doesn't work with newer versions of visual 51355 # studio. 51356 if test "x$TOOLCHAIN_VERSION" = "x2010"; then 51357 STATIC_CPPLIB_FLAGS="-D_STATIC_CPPLIB -D_DISABLE_DEPRECATE_STATIC_CPPLIB" 51358 OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK="$OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK $STATIC_CPPLIB_FLAGS" 51359 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS $STATIC_CPPLIB_FLAGS" 51360 fi 51361 fi 51362 51363 ############################################################################### 51364 51365 # Adjust flags according to debug level. 51366 case $DEBUG_LEVEL in 51367 fastdebug | slowdebug ) 51368 OPENJDK_BUILD_CFLAGS_JDK="$OPENJDK_BUILD_CFLAGS_JDK $CFLAGS_DEBUG_SYMBOLS $CFLAGS_DEBUG_OPTIONS" 51369 OPENJDK_BUILD_CXXFLAGS_JDK="$OPENJDK_BUILD_CXXFLAGS_JDK $CXXFLAGS_DEBUG_SYMBOLS $CXXFLAGS_DEBUG_OPTIONS" 51370 JAVAC_FLAGS="$JAVAC_FLAGS -g" 51371 ;; 51372 release ) 51373 ;; 51374 * ) 51375 as_fn_error $? "Unrecognized \$DEBUG_LEVEL: $DEBUG_LEVEL" "$LINENO" 5 51376 ;; 51377 esac 51378 51379 # Set some common defines. These works for all compilers, but assume 51380 # -D is universally accepted. 51381 51382 # Setup endianness 51383 if test "x$OPENJDK_BUILD_CPU_ENDIAN" = xlittle; then 51384 # The macro _LITTLE_ENDIAN needs to be defined the same to avoid the 51385 # Sun C compiler warning message: warning: macro redefined: _LITTLE_ENDIAN 51386 # (The Solaris X86 system defines this in file /usr/include/sys/isa_defs.h). 51387 # Note: -Dmacro is the same as #define macro 1 51388 # -Dmacro= is the same as #define macro 51389 if test "x$OPENJDK_BUILD_OS" = xsolaris; then 51390 OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK="$OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK -D_LITTLE_ENDIAN=" 51391 else 51392 OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK="$OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK -D_LITTLE_ENDIAN" 51393 fi 51394 else 51395 # Same goes for _BIG_ENDIAN. Do we really need to set *ENDIAN on Solaris if they 51396 # are defined in the system? 51397 if test "x$OPENJDK_BUILD_OS" = xsolaris; then 51398 OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK="$OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK -D_BIG_ENDIAN=" 51399 else 51400 OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK="$OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK -D_BIG_ENDIAN" 51401 fi 51402 fi 51403 51404 # Setup target OS define. Use OS target name but in upper case. 51405 OPENJDK_BUILD_OS_UPPERCASE=`$ECHO $OPENJDK_BUILD_OS | $TR 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` 51406 OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK="$OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK -D$OPENJDK_BUILD_OS_UPPERCASE" 51407 51408 # Setup target CPU 51409 OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK="$OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK \ 51410 $OPENJDK_BUILD_ADD_LP64 \ 51411 -DARCH='\"$OPENJDK_BUILD_CPU_LEGACY\"' -D$OPENJDK_BUILD_CPU_LEGACY" 51412 51413 # Setup debug/release defines 51414 if test "x$DEBUG_LEVEL" = xrelease; then 51415 OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK="$OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK -DNDEBUG" 51416 if test "x$OPENJDK_BUILD_OS" = xsolaris; then 51417 OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK="$OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK -DTRIMMED" 51418 fi 51419 else 51420 OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK="$OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK -DDEBUG" 51421 fi 51422 51423 # Set some additional per-OS defines. 51424 if test "x$OPENJDK_BUILD_OS" = xlinux; then 51425 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS -DLINUX" 51426 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS -pipe -fPIC -fno-rtti -fno-exceptions \ 51427 -fvisibility=hidden -fno-strict-aliasing -fno-omit-frame-pointer" 51428 elif test "x$OPENJDK_BUILD_OS" = xsolaris; then 51429 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS -DSOLARIS" 51430 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS -template=no%extdef -features=no%split_init \ 51431 -D_Crun_inline_placement -library=%none -KPIC -mt -xwe -features=no%except" 51432 elif test "x$OPENJDK_BUILD_OS" = xmacosx; then 51433 OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK="$OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK -D_ALLBSD_SOURCE -D_DARWIN_UNLIMITED_SELECT" 51434 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS -D_ALLBSD_SOURCE" 51435 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS -D_DARWIN_C_SOURCE -D_XOPEN_SOURCE" 51436 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS -fno-rtti -fno-exceptions -fvisibility=hidden \ 51437 -mno-omit-leaf-frame-pointer -mstack-alignment=16 -pipe -fno-strict-aliasing \ 51438 -DMAC_OS_X_VERSION_MAX_ALLOWED=1070 -mmacosx-version-min=10.7.0 \ 51439 -fno-omit-frame-pointer" 51440 elif test "x$OPENJDK_BUILD_OS" = xaix; then 51441 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS -DAIX" 51442 # We may need '-qminimaltoc' or '-qpic=large -bbigtoc' if the TOC overflows. 51443 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS -qtune=balanced \ 51444 -qalias=noansi -qstrict -qtls=default -qlanglvl=c99vla \ 51445 -qlanglvl=noredefmac -qnortti -qnoeh -qignerrno" 51446 elif test "x$OPENJDK_BUILD_OS" = xbsd; then 51447 OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK="$OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK -D_ALLBSD_SOURCE" 51448 elif test "x$OPENJDK_BUILD_OS" = xwindows; then 51449 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS -D_WINDOWS -DWIN32 -D_JNI_IMPLEMENTATION_" 51450 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS -nologo -W3 -MD -MP" 51451 fi 51452 51453 # Set some additional per-CPU defines. 51454 if test "x$OPENJDK_BUILD_OS-$OPENJDK_BUILD_CPU" = xwindows-x86; then 51455 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS -arch:IA32" 51456 elif test "x$OPENJDK_BUILD_CPU" = xsparcv9; then 51457 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS -xarch=sparc" 51458 elif test "x$OPENJDK_BUILD_CPU" = xppc64; then 51459 if test "x$OPENJDK_BUILD_OS" = xlinux; then 51460 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS -minsert-sched-nops=regroup_exact -mno-multiple -mno-string" 51461 # fixes `relocation truncated to fit' error for gcc 4.1. 51462 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS -mminimal-toc" 51463 # Use ppc64 instructions, but schedule for power5 51464 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS -mcpu=powerpc64 -mtune=power5" 51465 elif test "x$OPENJDK_BUILD_OS" = xaix; then 51466 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS -qarch=ppc64" 51467 fi 51468 elif test "x$OPENJDK_BUILD_CPU" = xppc64le; then 51469 if test "x$OPENJDK_BUILD_OS" = xlinux; then 51470 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS -minsert-sched-nops=regroup_exact -mno-multiple -mno-string" 51471 # Little endian machine uses ELFv2 ABI. 51472 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS -DABI_ELFv2" 51473 # Use Power8, this is the first CPU to support PPC64 LE with ELFv2 ABI. 51474 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS -mcpu=power7 -mtune=power8" 51475 fi 51476 fi 51477 51478 if test "x$OPENJDK_BUILD_CPU_ENDIAN" = xlittle; then 51479 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS -DVM_LITTLE_ENDIAN" 51480 fi 51481 51482 if test "x$OPENJDK_BUILD_CPU_BITS" = x64; then 51483 if test "x$OPENJDK_BUILD_OS" != xsolaris && test "x$OPENJDK_BUILD_OS" != xaix; then 51484 # Solaris does not have _LP64=1 in the old build. 51485 # xlc on AIX defines _LP64=1 by default and issues a warning if we redefine it. 51486 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS -D_LP64=1" 51487 fi 51488 fi 51489 51490 # Set OPENJDK_BUILD_JVM_CFLAGS warning handling 51491 if test "x$OPENJDK_BUILD_OS" = xlinux; then 51492 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS -Wpointer-arith -Wsign-compare -Wunused-function \ 51493 -Wunused-value -Woverloaded-virtual" 51494 51495 if test "x$TOOLCHAIN_TYPE" = xgcc; then 51496 51497 51498 51499 51500 51501 51502 51503 51504 51505 51506 51507 51508 51509 51510 51511 51512 51513 51514 51515 51516 51517 51518 51519 51520 51521 51522 51523 51524 51525 51526 51527 51528 51529 51530 51531 51532 51533 51534 51535 51536 51537 51538 51539 51540 51541 51542 51543 51544 51545 51546 51547 51548 51549 51550 # Execute function body 51551 51552 # Need to assign to a variable since m4 is blocked from modifying parts in []. 51553 REFERENCE_VERSION=4.8 51554 51555 if [[ "$REFERENCE_VERSION" =~ (.*\.){3} ]] ; then 51556 as_fn_error $? "Internal error: Cannot compare to 4.8, only three parts (X.Y.Z) is supported" "$LINENO" 5 51557 fi 51558 51559 if [[ "$REFERENCE_VERSION" =~ [0-9]{6} ]] ; then 51560 as_fn_error $? "Internal error: Cannot compare to 4.8, only parts < 99999 is supported" "$LINENO" 5 51561 fi 51562 51563 # Version comparison method inspired by http://stackoverflow.com/a/24067243 51564 COMPARABLE_REFERENCE_VERSION=`$AWK -F. '{ printf("%05d%05d%05d\n", $1, $2, $3) }' <<< "$REFERENCE_VERSION"` 51565 51566 if test $OPENJDK_BUILD_COMPARABLE_ACTUAL_VERSION -ge $COMPARABLE_REFERENCE_VERSION ; then 51567 : 51568 51569 # These flags either do not work or give spurious warnings prior to gcc 4.8. 51570 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS -Wno-format-zero-length -Wtype-limits -Wuninitialized" 51571 51572 51573 else 51574 : 51575 51576 fi 51577 51578 51579 51580 51581 51582 51583 51584 51585 51586 51587 51588 51589 51590 51591 fi 51592 if ! [[ " $JVM_VARIANTS " =~ " zero " ]] && ! [[ " $JVM_VARIANTS " =~ " zeroshark " ]] ; then 51593 # Non-zero builds have stricter warnings 51594 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS -Wreturn-type -Wundef -Wformat=2" 51595 else 51596 if test "x$TOOLCHAIN_TYPE" = xclang; then 51597 # Some versions of llvm do not like -Wundef 51598 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS -Wno-undef" 51599 fi 51600 fi 51601 elif test "x$OPENJDK_BUILD_OS" = xmacosx; then 51602 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS -Wno-deprecated -Wpointer-arith \ 51603 -Wsign-compare -Wundef -Wunused-function -Wformat=2" 51604 fi 51605 51606 # Additional macosx handling 51607 if test "x$OPENJDK_BUILD_OS" = xmacosx; then 51608 # Setting these parameters makes it an error to link to macosx APIs that are 51609 # newer than the given OS version and makes the linked binaries compatible 51610 # even if built on a newer version of the OS. 51611 # The expected format is X.Y.Z 51612 MACOSX_VERSION_MIN=10.7.0 51613 51614 51615 # The macro takes the version with no dots, ex: 1070 51616 # Let the flags variables get resolved in make for easier override on make 51617 # command line. 51618 OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK="$OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK -DMAC_OS_X_VERSION_MAX_ALLOWED=\$(subst .,,\$(MACOSX_VERSION_MIN)) -mmacosx-version-min=\$(MACOSX_VERSION_MIN)" 51619 OPENJDK_BUILD_LDFLAGS_JDK="$OPENJDK_BUILD_LDFLAGS_JDK -mmacosx-version-min=\$(MACOSX_VERSION_MIN)" 51620 fi 51621 51622 # Setup some hard coded includes 51623 OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK="$OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK \ 51624 -I${JDK_TOPDIR}/src/java.base/share/native/include \ 51625 -I${JDK_TOPDIR}/src/java.base/$OPENJDK_BUILD_OS/native/include \ 51626 -I${JDK_TOPDIR}/src/java.base/$OPENJDK_BUILD_OS_TYPE/native/include \ 51627 -I${JDK_TOPDIR}/src/java.base/share/native/libjava \ 51628 -I${JDK_TOPDIR}/src/java.base/$OPENJDK_BUILD_OS_TYPE/native/libjava" 51629 51630 # The shared libraries are compiled using the picflag. 51631 OPENJDK_BUILD_CFLAGS_JDKLIB="$OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK \ 51632 $OPENJDK_BUILD_CFLAGS_JDK $OPENJDK_BUILD_EXTRA_CFLAGS_JDK $PICFLAG $OPENJDK_BUILD_CFLAGS_JDKLIB_EXTRA" 51633 OPENJDK_BUILD_CXXFLAGS_JDKLIB="$OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK \ 51634 $OPENJDK_BUILD_CXXFLAGS_JDK $OPENJDK_BUILD_EXTRA_CXXFLAGS_JDK $PICFLAG $OPENJDK_BUILD_CXXFLAGS_JDKLIB_EXTRA" 51635 51636 # Executable flags 51637 OPENJDK_BUILD_CFLAGS_JDKEXE="$OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK $OPENJDK_BUILD_CFLAGS_JDK $OPENJDK_BUILD_EXTRA_CFLAGS_JDK" 51638 OPENJDK_BUILD_CXXFLAGS_JDKEXE="$OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK $OPENJDK_BUILD_CXXFLAGS_JDK $OPENJDK_BUILD_EXTRA_CXXFLAGS_JDK" 51639 51640 51641 51642 51643 51644 51645 # Setup LDFLAGS et al. 51646 # 51647 51648 if test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 51649 LDFLAGS_MICROSOFT="-nologo -opt:ref" 51650 OPENJDK_BUILD_LDFLAGS_JDK="$OPENJDK_BUILD_LDFLAGS_JDK $LDFLAGS_MICROSOFT -incremental:no" 51651 OPENJDK_BUILD_JVM_LDFLAGS="$OPENJDK_BUILD_JVM_LDFLAGS $LDFLAGS_MICROSOFT -opt:icf,8 -subsystem:windows -base:0x8000000" 51652 if test "x$OPENJDK_BUILD_CPU_BITS" = "x32"; then 51653 LDFLAGS_SAFESH="-safeseh" 51654 OPENJDK_BUILD_LDFLAGS_JDK="$OPENJDK_BUILD_LDFLAGS_JDK $LDFLAGS_SAFESH" 51655 OPENJDK_BUILD_JVM_LDFLAGS="$OPENJDK_BUILD_JVM_LDFLAGS $LDFLAGS_SAFESH" 51656 # NOTE: Old build added -machine. Probably not needed. 51657 OPENJDK_BUILD_JVM_LDFLAGS="$OPENJDK_BUILD_JVM_LDFLAGS -machine:I386" 51658 else 51659 OPENJDK_BUILD_JVM_LDFLAGS="$OPENJDK_BUILD_JVM_LDFLAGS -machine:AMD64" 51660 fi 51661 elif test "x$TOOLCHAIN_TYPE" = xclang; then 51662 OPENJDK_BUILD_JVM_LDFLAGS="$OPENJDK_BUILD_JVM_LDFLAGS -mno-omit-leaf-frame-pointer -mstack-alignment=16 -stdlib=libstdc++ -fPIC" 51663 if test "x$OPENJDK_BUILD_OS" = xmacosx; then 51664 # FIXME: We should really generalize SET_SHARED_LIBRARY_ORIGIN instead. 51665 OPENJDK_BUILD_JVM_LDFLAGS="$OPENJDK_BUILD_JVM_LDFLAGS -Wl,-rpath,@loader_path/. -Wl,-rpath,@loader_path/.." 51666 fi 51667 elif test "x$TOOLCHAIN_TYPE" = xgcc; then 51668 # If this is a --hash-style=gnu system, use --hash-style=both, why? 51669 # We have previously set HAS_GNU_HASH if this is the case 51670 if test -n "$HAS_GNU_HASH"; then 51671 OPENJDK_BUILD_LDFLAGS_HASH_STYLE="-Wl,--hash-style=both" 51672 OPENJDK_BUILD_LDFLAGS_JDK="${OPENJDK_BUILD_LDFLAGS_JDK} $OPENJDK_BUILD_LDFLAGS_HASH_STYLE" 51673 OPENJDK_BUILD_JVM_LDFLAGS="$OPENJDK_BUILD_JVM_LDFLAGS $OPENJDK_BUILD_LDFLAGS_HASH_STYLE" 51674 fi 51675 if test "x$OPENJDK_BUILD_OS" = xmacosx; then 51676 OPENJDK_BUILD_JVM_LDFLAGS="$OPENJDK_BUILD_JVM_LDFLAGS -Wl,-rpath,@loader_path/. -Wl,-rpath,@loader_path/.." 51677 fi 51678 if test "x$OPENJDK_BUILD_OS" = xlinux; then 51679 # And since we now know that the linker is gnu, then add -z defs, to forbid 51680 # undefined symbols in object files. 51681 LDFLAGS_NO_UNDEF_SYM="-Wl,-z,defs" 51682 OPENJDK_BUILD_LDFLAGS_JDK="${OPENJDK_BUILD_LDFLAGS_JDK} $LDFLAGS_NO_UNDEF_SYM" 51683 OPENJDK_BUILD_JVM_LDFLAGS="$OPENJDK_BUILD_JVM_LDFLAGS $LDFLAGS_NO_UNDEF_SYM" 51684 LDFLAGS_NO_EXEC_STACK="-Wl,-z,noexecstack" 51685 OPENJDK_BUILD_JVM_LDFLAGS="$OPENJDK_BUILD_JVM_LDFLAGS $LDFLAGS_NO_EXEC_STACK" 51686 if test "x$OPENJDK_BUILD_CPU" = xx86; then 51687 OPENJDK_BUILD_JVM_LDFLAGS="$OPENJDK_BUILD_JVM_LDFLAGS -march=i586" 51688 fi 51689 case $DEBUG_LEVEL in 51690 release ) 51691 # tell linker to optimize libraries. 51692 # Should this be supplied to the OSS linker as well? 51693 LDFLAGS_DEBUGLEVEL_release="-Wl,-O1" 51694 OPENJDK_BUILD_LDFLAGS_JDK="${OPENJDK_BUILD_LDFLAGS_JDK} $LDFLAGS_DEBUGLEVEL_release" 51695 OPENJDK_BUILD_JVM_LDFLAGS="$OPENJDK_BUILD_JVM_LDFLAGS $LDFLAGS_DEBUGLEVEL_release" 51696 if test "x$HAS_LINKER_RELRO" = "xtrue"; then 51697 OPENJDK_BUILD_JVM_LDFLAGS="$OPENJDK_BUILD_JVM_LDFLAGS $LINKER_RELRO_FLAG" 51698 fi 51699 ;; 51700 slowdebug ) 51701 # Hotspot always let the linker optimize 51702 OPENJDK_BUILD_JVM_LDFLAGS="$OPENJDK_BUILD_JVM_LDFLAGS -Wl,-O1" 51703 if test "x$HAS_LINKER_NOW" = "xtrue"; then 51704 # do relocations at load 51705 OPENJDK_BUILD_LDFLAGS_JDK="$OPENJDK_BUILD_LDFLAGS_JDK $LINKER_NOW_FLAG" 51706 OPENJDK_BUILD_LDFLAGS_CXX_JDK="$OPENJDK_BUILD_LDFLAGS_CXX_JDK $LINKER_NOW_FLAG" 51707 OPENJDK_BUILD_JVM_LDFLAGS="$OPENJDK_BUILD_JVM_LDFLAGS $LINKER_NOW_FLAG" 51708 fi 51709 if test "x$HAS_LINKER_RELRO" = "xtrue"; then 51710 # mark relocations read only 51711 OPENJDK_BUILD_LDFLAGS_JDK="$OPENJDK_BUILD_LDFLAGS_JDK $LINKER_RELRO_FLAG" 51712 OPENJDK_BUILD_LDFLAGS_CXX_JDK="$OPENJDK_BUILD_LDFLAGS_CXX_JDK $LINKER_RELRO_FLAG" 51713 OPENJDK_BUILD_JVM_LDFLAGS="$OPENJDK_BUILD_JVM_LDFLAGS $LINKER_RELRO_FLAG" 51714 fi 51715 ;; 51716 fastdebug ) 51717 # Hotspot always let the linker optimize 51718 OPENJDK_BUILD_JVM_LDFLAGS="$OPENJDK_BUILD_JVM_LDFLAGS -Wl,-O1" 51719 if test "x$HAS_LINKER_RELRO" = "xtrue"; then 51720 # mark relocations read only 51721 OPENJDK_BUILD_LDFLAGS_JDK="$OPENJDK_BUILD_LDFLAGS_JDK $LINKER_RELRO_FLAG" 51722 OPENJDK_BUILD_LDFLAGS_CXX_JDK="$OPENJDK_BUILD_LDFLAGS_CXX_JDK $LINKER_RELRO_FLAG" 51723 OPENJDK_BUILD_JVM_LDFLAGS="$OPENJDK_BUILD_JVM_LDFLAGS $LINKER_RELRO_FLAG" 51724 fi 51725 ;; 51726 * ) 51727 as_fn_error $? "Unrecognized \$DEBUG_LEVEL: $DEBUG_LEVEL" "$LINENO" 5 51728 ;; 51729 esac 51730 fi 51731 elif test "x$TOOLCHAIN_TYPE" = xsolstudio; then 51732 LDFLAGS_SOLSTUDIO="-Wl,-z,defs" 51733 OPENJDK_BUILD_LDFLAGS_JDK="$OPENJDK_BUILD_LDFLAGS_JDK $LDFLAGS_SOLSTUDIO -xildoff -ztext" 51734 LDFLAGS_CXX_SOLSTUDIO="-norunpath" 51735 OPENJDK_BUILD_LDFLAGS_CXX_JDK="$OPENJDK_BUILD_LDFLAGS_CXX_JDK $LDFLAGS_CXX_SOLSTUDIO -xnolib" 51736 OPENJDK_BUILD_JVM_LDFLAGS="$OPENJDK_BUILD_JVM_LDFLAGS $LDFLAGS_SOLSTUDIO -library=%none -mt $LDFLAGS_CXX_SOLSTUDIO -z noversion" 51737 if test "x$OPENJDK_BUILD_CPU_ARCH" = "xsparc"; then 51738 OPENJDK_BUILD_JVM_LDFLAGS="$OPENJDK_BUILD_JVM_LDFLAGS -xarch=sparc" 51739 fi 51740 elif test "x$TOOLCHAIN_TYPE" = xxlc; then 51741 LDFLAGS_XLC="-b64 -brtl -bnolibpath -bexpall -bernotok" 51742 OPENJDK_BUILD_LDFLAGS_JDK="${OPENJDK_BUILD_LDFLAGS_JDK} $LDFLAGS_XLC" 51743 OPENJDK_BUILD_JVM_LDFLAGS="$OPENJDK_BUILD_JVM_LDFLAGS $LDFLAGS_XLC" 51744 fi 51745 51746 # Customize LDFLAGS for executables 51747 51748 OPENJDK_BUILD_LDFLAGS_JDKEXE="${OPENJDK_BUILD_LDFLAGS_JDK}" 51749 51750 if test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 51751 if test "x$OPENJDK_BUILD_CPU_BITS" = "x64"; then 51752 LDFLAGS_STACK_SIZE=1048576 51753 else 51754 LDFLAGS_STACK_SIZE=327680 51755 fi 51756 OPENJDK_BUILD_LDFLAGS_JDKEXE="${OPENJDK_BUILD_LDFLAGS_JDKEXE} /STACK:$LDFLAGS_STACK_SIZE" 51757 elif test "x$OPENJDK_BUILD_OS" = xlinux; then 51758 OPENJDK_BUILD_LDFLAGS_JDKEXE="$OPENJDK_BUILD_LDFLAGS_JDKEXE -Wl,--allow-shlib-undefined" 51759 fi 51760 51761 OPENJDK_BUILD_LDFLAGS_JDKEXE="${OPENJDK_BUILD_LDFLAGS_JDKEXE} ${OPENJDK_BUILD_EXTRA_LDFLAGS_JDK}" 51762 51763 # Customize LDFLAGS for libs 51764 OPENJDK_BUILD_LDFLAGS_JDKLIB="${OPENJDK_BUILD_LDFLAGS_JDK}" 51765 51766 OPENJDK_BUILD_LDFLAGS_JDKLIB="${OPENJDK_BUILD_LDFLAGS_JDKLIB} ${SHARED_LIBRARY_FLAGS}" 51767 if test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 51768 OPENJDK_BUILD_LDFLAGS_JDKLIB="${OPENJDK_BUILD_LDFLAGS_JDKLIB} \ 51769 -libpath:${OUTPUT_ROOT}/support/modules_libs/java.base" 51770 OPENJDK_BUILD_JDKLIB_LIBS="" 51771 else 51772 OPENJDK_BUILD_LDFLAGS_JDKLIB="${OPENJDK_BUILD_LDFLAGS_JDKLIB} \ 51773 -L\$(SUPPORT_OUTPUTDIR)/modules_libs/java.base\$(OPENJDK_BUILD_CPU_LIBDIR)" 51774 51775 if test "xBUILD" = "xTARGET"; then 51776 # On some platforms (mac) the linker warns about non existing -L dirs. 51777 # Add server first if available. Linking aginst client does not always produce the same results. 51778 # Only add client/minimal dir if client/minimal is being built. 51779 # Default to server for other variants. 51780 if [[ " $JVM_VARIANTS " =~ " server " ]] ; then 51781 OPENJDK_BUILD_LDFLAGS_JDKLIB="${OPENJDK_BUILD_LDFLAGS_JDKLIB} -L\$(SUPPORT_OUTPUTDIR)/modules_libs/java.base\$(OPENJDK_BUILD_CPU_LIBDIR)/server" 51782 elif [[ " $JVM_VARIANTS " =~ " client " ]] ; then 51783 OPENJDK_BUILD_LDFLAGS_JDKLIB="${OPENJDK_BUILD_LDFLAGS_JDKLIB} -L\$(SUPPORT_OUTPUTDIR)/modules_libs/java.base\$(OPENJDK_BUILD_CPU_LIBDIR)/client" 51784 elif [[ " $JVM_VARIANTS " =~ " minimal " ]] ; then 51785 OPENJDK_BUILD_LDFLAGS_JDKLIB="${OPENJDK_BUILD_LDFLAGS_JDKLIB} -L\$(SUPPORT_OUTPUTDIR)/modules_libs/java.base\$(OPENJDK_BUILD_CPU_LIBDIR)/minimal" 51786 else 51787 OPENJDK_BUILD_LDFLAGS_JDKLIB="${OPENJDK_BUILD_LDFLAGS_JDKLIB} -L\$(SUPPORT_OUTPUTDIR)/modules_libs/java.base\$(OPENJDK_BUILD_CPU_LIBDIR)/server" 51788 fi 51789 elif test "xBUILD" = "xBUILD"; then 51790 # When building a buildjdk, it's always only the server variant 51791 OPENJDK_BUILD_LDFLAGS_JDKLIB="${OPENJDK_BUILD_LDFLAGS_JDKLIB} \ 51792 -L\$(SUPPORT_OUTPUTDIR)/modules_libs/java.base\$(OPENJDK_BUILD_CPU_LIBDIR)/server" 51793 fi 51794 51795 OPENJDK_BUILD_JDKLIB_LIBS="-ljava -ljvm" 51796 if test "x$TOOLCHAIN_TYPE" = xsolstudio; then 51797 OPENJDK_BUILD_JDKLIB_LIBS="$OPENJDK_BUILD_JDKLIB_LIBS -lc" 51798 fi 51799 51800 fi 51801 51802 # Set OPENJDK_BUILD_JVM_LIBS (per os) 51803 if test "x$OPENJDK_BUILD_OS" = xlinux; then 51804 OPENJDK_BUILD_JVM_LIBS="$OPENJDK_BUILD_JVM_LIBS -lm -ldl -lpthread" 51805 elif test "x$OPENJDK_BUILD_OS" = xsolaris; then 51806 # FIXME: This hard-coded path is not really proper. 51807 if test "x$OPENJDK_BUILD_CPU" = xx86_64; then 51808 OPENJDK_BUILD_SOLARIS_LIBM_LIBS="/usr/lib/amd64/libm.so.1" 51809 elif test "x$OPENJDK_BUILD_CPU" = xsparcv9; then 51810 OPENJDK_BUILD_SOLARIS_LIBM_LIBS="/usr/lib/sparcv9/libm.so.1" 51811 fi 51812 OPENJDK_BUILD_JVM_LIBS="$OPENJDK_BUILD_JVM_LIBS -lsocket -lsched -ldl $SOLARIS_LIBM_LIBS -lCrun \ 51813 -lthread -ldoor -lc -ldemangle -lnsl -lkstat -lrt" 51814 elif test "x$OPENJDK_BUILD_OS" = xmacosx; then 51815 OPENJDK_BUILD_JVM_LIBS="$OPENJDK_BUILD_JVM_LIBS -lm" 51816 elif test "x$OPENJDK_BUILD_OS" = xaix; then 51817 OPENJDK_BUILD_JVM_LIBS="$OPENJDK_BUILD_JVM_LIBS -Wl,-lC_r -lm -ldl -lpthread" 51818 elif test "x$OPENJDK_BUILD_OS" = xbsd; then 51819 OPENJDK_BUILD_JVM_LIBS="$OPENJDK_BUILD_JVM_LIBS -lm" 51820 elif test "x$OPENJDK_BUILD_OS" = xwindows; then 51821 OPENJDK_BUILD_JVM_LIBS="$OPENJDK_BUILD_JVM_LIBS kernel32.lib user32.lib gdi32.lib winspool.lib \ 51822 comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib \ 51823 wsock32.lib winmm.lib version.lib psapi.lib" 51824 fi 51825 51826 # Set OPENJDK_BUILD_JVM_ASFLAGS 51827 if test "x$OPENJDK_BUILD_OS" = xlinux; then 51828 if test "x$OPENJDK_BUILD_CPU" = xx86; then 51829 OPENJDK_BUILD_JVM_ASFLAGS="$OPENJDK_BUILD_JVM_ASFLAGS -march=i586" 51830 fi 51831 elif test "x$OPENJDK_BUILD_OS" = xmacosx; then 51832 OPENJDK_BUILD_JVM_ASFLAGS="$OPENJDK_BUILD_JVM_ASFLAGS -x assembler-with-cpp -mno-omit-leaf-frame-pointer -mstack-alignment=16" 51833 fi 51834 51835 OPENJDK_BUILD_LDFLAGS_JDKLIB="${OPENJDK_BUILD_LDFLAGS_JDKLIB} ${OPENJDK_BUILD_EXTRA_LDFLAGS_JDK}" 51836 51837 51838 51839 51840 51841 51842 51843 51844 51845 51846 51847 51848 51849 51850 51851 # Tests are only ever compiled for TARGET 51852 # Flags for compiling test libraries 51853 CFLAGS_TESTLIB="$COMMON_CCXXFLAGS_JDK $CFLAGS_JDK $PICFLAG $CFLAGS_JDKLIB_EXTRA" 51854 CXXFLAGS_TESTLIB="$COMMON_CCXXFLAGS_JDK $CXXFLAGS_JDK $PICFLAG $CXXFLAGS_JDKLIB_EXTRA" 51855 51856 # Flags for compiling test executables 51857 CFLAGS_TESTEXE="$COMMON_CCXXFLAGS_JDK $CFLAGS_JDK" 51858 CXXFLAGS_TESTEXE="$COMMON_CCXXFLAGS_JDK $CXXFLAGS_JDK" 51859 51860 51861 51862 51863 51864 51865 LDFLAGS_TESTLIB="$LDFLAGS_JDKLIB" 51866 LDFLAGS_TESTEXE="$LDFLAGS_JDKEXE" 51867 51868 51869 51870 51871 51872 51873 # Some Zero and Shark settings. 51874 # ZERO_ARCHFLAG tells the compiler which mode to build for 51875 case "${OPENJDK_TARGET_CPU}" in 51876 s390) 51877 ZERO_ARCHFLAG="${COMPILER_TARGET_BITS_FLAG}31" 51878 ;; 51879 *) 51880 ZERO_ARCHFLAG="${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}" 51881 esac 51882 51883 51884 51885 51886 51887 51888 51889 51890 51891 51892 51893 51894 51895 51896 51897 51898 51899 51900 51901 51902 51903 51904 51905 51906 51907 51908 51909 51910 51911 51912 51913 51914 51915 51916 51917 51918 51919 51920 51921 51922 51923 51924 # Execute function body 51925 51926 51927 51928 51929 51930 51931 51932 51933 51934 51935 51936 51937 51938 51939 51940 51941 51942 51943 51944 51945 51946 51947 51948 51949 51950 51951 51952 51953 51954 51955 51956 51957 51958 51959 51960 51961 51962 51963 51964 51965 51966 51967 51968 51969 51970 51971 51972 51973 # Execute function body 51974 51975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the C compiler supports \"$ZERO_ARCHFLAG\"" >&5 51976 $as_echo_n "checking if the C compiler supports \"$ZERO_ARCHFLAG\"... " >&6; } 51977 supports=yes 51978 51979 saved_cflags="$CFLAGS" 51980 CFLAGS="$CFLAGS $ZERO_ARCHFLAG" 51981 ac_ext=c 51982 ac_cpp='$CPP $CPPFLAGS' 51983 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 51984 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 51985 ac_compiler_gnu=$ac_cv_c_compiler_gnu 51986 51987 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 51988 /* end confdefs.h. */ 51989 int i; 51990 _ACEOF 51991 if ac_fn_c_try_compile "$LINENO"; then : 51992 51993 else 51994 supports=no 51995 fi 51996 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 51997 ac_ext=cpp 51998 ac_cpp='$CXXCPP $CPPFLAGS' 51999 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 52000 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 52001 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 52002 52003 CFLAGS="$saved_cflags" 52004 52005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supports" >&5 52006 $as_echo "$supports" >&6; } 52007 if test "x$supports" = "xyes" ; then 52008 : 52009 C_COMP_SUPPORTS="yes" 52010 else 52011 : 52012 C_COMP_SUPPORTS="no" 52013 fi 52014 52015 52016 52017 52018 52019 52020 52021 52022 52023 52024 52025 52026 52027 52028 52029 52030 52031 52032 52033 52034 52035 52036 52037 52038 52039 52040 52041 52042 52043 52044 52045 52046 52047 52048 52049 52050 52051 52052 52053 52054 52055 52056 52057 52058 52059 52060 52061 52062 52063 52064 52065 52066 52067 52068 52069 52070 52071 52072 52073 # Execute function body 52074 52075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the C++ compiler supports \"$ZERO_ARCHFLAG\"" >&5 52076 $as_echo_n "checking if the C++ compiler supports \"$ZERO_ARCHFLAG\"... " >&6; } 52077 supports=yes 52078 52079 saved_cxxflags="$CXXFLAGS" 52080 CXXFLAGS="$CXXFLAG $ZERO_ARCHFLAG" 52081 ac_ext=cpp 52082 ac_cpp='$CXXCPP $CPPFLAGS' 52083 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 52084 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 52085 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 52086 52087 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 52088 /* end confdefs.h. */ 52089 int i; 52090 _ACEOF 52091 if ac_fn_cxx_try_compile "$LINENO"; then : 52092 52093 else 52094 supports=no 52095 fi 52096 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 52097 ac_ext=cpp 52098 ac_cpp='$CXXCPP $CPPFLAGS' 52099 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 52100 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 52101 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 52102 52103 CXXFLAGS="$saved_cxxflags" 52104 52105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supports" >&5 52106 $as_echo "$supports" >&6; } 52107 if test "x$supports" = "xyes" ; then 52108 : 52109 CXX_COMP_SUPPORTS="yes" 52110 else 52111 : 52112 CXX_COMP_SUPPORTS="no" 52113 fi 52114 52115 52116 52117 52118 52119 52120 52121 52122 52123 52124 52125 52126 52127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if both compilers support \"$ZERO_ARCHFLAG\"" >&5 52128 $as_echo_n "checking if both compilers support \"$ZERO_ARCHFLAG\"... " >&6; } 52129 supports=no 52130 if test "x$C_COMP_SUPPORTS" = "xyes" -a "x$CXX_COMP_SUPPORTS" = "xyes"; then supports=yes; fi 52131 52132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supports" >&5 52133 $as_echo "$supports" >&6; } 52134 if test "x$supports" = "xyes" ; then 52135 : 52136 52137 else 52138 : 52139 ZERO_ARCHFLAG="" 52140 fi 52141 52142 52143 52144 52145 52146 52147 52148 52149 # Check that the compiler supports -mX (or -qX on AIX) flags 52150 # Set COMPILER_SUPPORTS_TARGET_BITS_FLAG to 'true' if it does 52151 52152 52153 52154 52155 52156 52157 52158 52159 52160 52161 52162 52163 52164 52165 52166 52167 52168 52169 52170 52171 52172 52173 52174 52175 52176 52177 52178 52179 52180 52181 52182 52183 52184 52185 52186 52187 52188 52189 52190 52191 52192 52193 52194 52195 52196 52197 52198 # Execute function body 52199 52200 52201 52202 52203 52204 52205 52206 52207 52208 52209 52210 52211 52212 52213 52214 52215 52216 52217 52218 52219 52220 52221 52222 52223 52224 52225 52226 52227 52228 52229 52230 52231 52232 52233 52234 52235 52236 52237 52238 52239 52240 52241 52242 52243 52244 52245 52246 52247 # Execute function body 52248 52249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the C compiler supports \"${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}\"" >&5 52250 $as_echo_n "checking if the C compiler supports \"${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}\"... " >&6; } 52251 supports=yes 52252 52253 saved_cflags="$CFLAGS" 52254 CFLAGS="$CFLAGS ${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}" 52255 ac_ext=c 52256 ac_cpp='$CPP $CPPFLAGS' 52257 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 52258 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 52259 ac_compiler_gnu=$ac_cv_c_compiler_gnu 52260 52261 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 52262 /* end confdefs.h. */ 52263 int i; 52264 _ACEOF 52265 if ac_fn_c_try_compile "$LINENO"; then : 52266 52267 else 52268 supports=no 52269 fi 52270 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 52271 ac_ext=cpp 52272 ac_cpp='$CXXCPP $CPPFLAGS' 52273 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 52274 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 52275 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 52276 52277 CFLAGS="$saved_cflags" 52278 52279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supports" >&5 52280 $as_echo "$supports" >&6; } 52281 if test "x$supports" = "xyes" ; then 52282 : 52283 C_COMP_SUPPORTS="yes" 52284 else 52285 : 52286 C_COMP_SUPPORTS="no" 52287 fi 52288 52289 52290 52291 52292 52293 52294 52295 52296 52297 52298 52299 52300 52301 52302 52303 52304 52305 52306 52307 52308 52309 52310 52311 52312 52313 52314 52315 52316 52317 52318 52319 52320 52321 52322 52323 52324 52325 52326 52327 52328 52329 52330 52331 52332 52333 52334 52335 52336 52337 52338 52339 52340 52341 52342 52343 52344 52345 52346 52347 # Execute function body 52348 52349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the C++ compiler supports \"${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}\"" >&5 52350 $as_echo_n "checking if the C++ compiler supports \"${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}\"... " >&6; } 52351 supports=yes 52352 52353 saved_cxxflags="$CXXFLAGS" 52354 CXXFLAGS="$CXXFLAG ${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}" 52355 ac_ext=cpp 52356 ac_cpp='$CXXCPP $CPPFLAGS' 52357 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 52358 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 52359 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 52360 52361 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 52362 /* end confdefs.h. */ 52363 int i; 52364 _ACEOF 52365 if ac_fn_cxx_try_compile "$LINENO"; then : 52366 52367 else 52368 supports=no 52369 fi 52370 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 52371 ac_ext=cpp 52372 ac_cpp='$CXXCPP $CPPFLAGS' 52373 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 52374 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 52375 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 52376 52377 CXXFLAGS="$saved_cxxflags" 52378 52379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supports" >&5 52380 $as_echo "$supports" >&6; } 52381 if test "x$supports" = "xyes" ; then 52382 : 52383 CXX_COMP_SUPPORTS="yes" 52384 else 52385 : 52386 CXX_COMP_SUPPORTS="no" 52387 fi 52388 52389 52390 52391 52392 52393 52394 52395 52396 52397 52398 52399 52400 52401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if both compilers support \"${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}\"" >&5 52402 $as_echo_n "checking if both compilers support \"${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}\"... " >&6; } 52403 supports=no 52404 if test "x$C_COMP_SUPPORTS" = "xyes" -a "x$CXX_COMP_SUPPORTS" = "xyes"; then supports=yes; fi 52405 52406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supports" >&5 52407 $as_echo "$supports" >&6; } 52408 if test "x$supports" = "xyes" ; then 52409 : 52410 COMPILER_SUPPORTS_TARGET_BITS_FLAG=true 52411 else 52412 : 52413 COMPILER_SUPPORTS_TARGET_BITS_FLAG=false 52414 fi 52415 52416 52417 52418 52419 52420 52421 52422 52423 # Check whether --enable-warnings-as-errors was given. 52424 if test "${enable_warnings_as_errors+set}" = set; then : 52425 enableval=$enable_warnings_as_errors; 52426 fi 52427 52428 52429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if native warnings are errors" >&5 52430 $as_echo_n "checking if native warnings are errors... " >&6; } 52431 if test "x$enable_warnings_as_errors" = "xyes"; then 52432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (explicitely set)" >&5 52433 $as_echo "yes (explicitely set)" >&6; } 52434 WARNINGS_AS_ERRORS=true 52435 elif test "x$enable_warnings_as_errors" = "xno"; then 52436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 52437 $as_echo "no" >&6; } 52438 WARNINGS_AS_ERRORS=false 52439 elif test "x$enable_warnings_as_errors" = "x"; then 52440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (default)" >&5 52441 $as_echo "yes (default)" >&6; } 52442 WARNINGS_AS_ERRORS=true 52443 else 52444 as_fn_error $? "--enable-warnings-as-errors accepts no argument" "$LINENO" 5 52445 fi 52446 52447 if test "x$WARNINGS_AS_ERRORS" = "xfalse"; then 52448 # Set legacy hotspot variable 52449 HOTSPOT_SET_WARNINGS_AS_ERRORS="WARNINGS_ARE_ERRORS=" 52450 else 52451 HOTSPOT_SET_WARNINGS_AS_ERRORS="" 52452 fi 52453 52454 52455 52456 52457 case "${TOOLCHAIN_TYPE}" in 52458 microsoft) 52459 DISABLE_WARNING_PREFIX="-wd" 52460 CFLAGS_WARNINGS_ARE_ERRORS="-WX" 52461 ;; 52462 solstudio) 52463 DISABLE_WARNING_PREFIX="-erroff=" 52464 CFLAGS_WARNINGS_ARE_ERRORS="-errtags -errwarn=%all" 52465 ;; 52466 gcc) 52467 # Prior to gcc 4.4, a -Wno-X where X is unknown for that version of gcc will cause an error 52468 52469 52470 52471 52472 52473 52474 52475 52476 52477 52478 52479 52480 52481 52482 52483 52484 52485 52486 52487 52488 52489 52490 52491 52492 52493 52494 52495 52496 52497 52498 52499 52500 52501 52502 52503 52504 52505 52506 52507 52508 52509 52510 52511 52512 52513 52514 52515 # Execute function body 52516 52517 52518 52519 52520 52521 52522 52523 52524 52525 52526 52527 52528 52529 52530 52531 52532 52533 52534 52535 52536 52537 52538 52539 52540 52541 52542 52543 52544 52545 52546 52547 52548 52549 52550 52551 52552 52553 52554 52555 52556 52557 52558 52559 52560 52561 52562 52563 52564 # Execute function body 52565 52566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the C compiler supports \"-Wno-this-is-a-warning-that-do-not-exist\"" >&5 52567 $as_echo_n "checking if the C compiler supports \"-Wno-this-is-a-warning-that-do-not-exist\"... " >&6; } 52568 supports=yes 52569 52570 saved_cflags="$CFLAGS" 52571 CFLAGS="$CFLAGS -Wno-this-is-a-warning-that-do-not-exist" 52572 ac_ext=c 52573 ac_cpp='$CPP $CPPFLAGS' 52574 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 52575 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 52576 ac_compiler_gnu=$ac_cv_c_compiler_gnu 52577 52578 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 52579 /* end confdefs.h. */ 52580 int i; 52581 _ACEOF 52582 if ac_fn_c_try_compile "$LINENO"; then : 52583 52584 else 52585 supports=no 52586 fi 52587 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 52588 ac_ext=cpp 52589 ac_cpp='$CXXCPP $CPPFLAGS' 52590 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 52591 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 52592 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 52593 52594 CFLAGS="$saved_cflags" 52595 52596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supports" >&5 52597 $as_echo "$supports" >&6; } 52598 if test "x$supports" = "xyes" ; then 52599 : 52600 C_COMP_SUPPORTS="yes" 52601 else 52602 : 52603 C_COMP_SUPPORTS="no" 52604 fi 52605 52606 52607 52608 52609 52610 52611 52612 52613 52614 52615 52616 52617 52618 52619 52620 52621 52622 52623 52624 52625 52626 52627 52628 52629 52630 52631 52632 52633 52634 52635 52636 52637 52638 52639 52640 52641 52642 52643 52644 52645 52646 52647 52648 52649 52650 52651 52652 52653 52654 52655 52656 52657 52658 52659 52660 52661 52662 52663 52664 # Execute function body 52665 52666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the C++ compiler supports \"-Wno-this-is-a-warning-that-do-not-exist\"" >&5 52667 $as_echo_n "checking if the C++ compiler supports \"-Wno-this-is-a-warning-that-do-not-exist\"... " >&6; } 52668 supports=yes 52669 52670 saved_cxxflags="$CXXFLAGS" 52671 CXXFLAGS="$CXXFLAG -Wno-this-is-a-warning-that-do-not-exist" 52672 ac_ext=cpp 52673 ac_cpp='$CXXCPP $CPPFLAGS' 52674 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 52675 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 52676 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 52677 52678 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 52679 /* end confdefs.h. */ 52680 int i; 52681 _ACEOF 52682 if ac_fn_cxx_try_compile "$LINENO"; then : 52683 52684 else 52685 supports=no 52686 fi 52687 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 52688 ac_ext=cpp 52689 ac_cpp='$CXXCPP $CPPFLAGS' 52690 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 52691 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 52692 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 52693 52694 CXXFLAGS="$saved_cxxflags" 52695 52696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supports" >&5 52697 $as_echo "$supports" >&6; } 52698 if test "x$supports" = "xyes" ; then 52699 : 52700 CXX_COMP_SUPPORTS="yes" 52701 else 52702 : 52703 CXX_COMP_SUPPORTS="no" 52704 fi 52705 52706 52707 52708 52709 52710 52711 52712 52713 52714 52715 52716 52717 52718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if both compilers support \"-Wno-this-is-a-warning-that-do-not-exist\"" >&5 52719 $as_echo_n "checking if both compilers support \"-Wno-this-is-a-warning-that-do-not-exist\"... " >&6; } 52720 supports=no 52721 if test "x$C_COMP_SUPPORTS" = "xyes" -a "x$CXX_COMP_SUPPORTS" = "xyes"; then supports=yes; fi 52722 52723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supports" >&5 52724 $as_echo "$supports" >&6; } 52725 if test "x$supports" = "xyes" ; then 52726 : 52727 GCC_CAN_DISABLE_WARNINGS=true 52728 else 52729 : 52730 GCC_CAN_DISABLE_WARNINGS=false 52731 52732 fi 52733 52734 52735 52736 52737 52738 52739 if test "x$GCC_CAN_DISABLE_WARNINGS" = "xtrue"; then 52740 DISABLE_WARNING_PREFIX="-Wno-" 52741 else 52742 DISABLE_WARNING_PREFIX= 52743 fi 52744 CFLAGS_WARNINGS_ARE_ERRORS="-Werror" 52745 # Repeate the check for the BUILD_CC and BUILD_CXX. Need to also reset 52746 # CFLAGS since any target specific flags will likely not work with the 52747 # build compiler 52748 CC_OLD="$CC" 52749 CXX_OLD="$CXX" 52750 CC="$BUILD_CC" 52751 CXX="$BUILD_CXX" 52752 CFLAGS_OLD="$CFLAGS" 52753 CFLAGS="" 52754 52755 52756 52757 52758 52759 52760 52761 52762 52763 52764 52765 52766 52767 52768 52769 52770 52771 52772 52773 52774 52775 52776 52777 52778 52779 52780 52781 52782 52783 52784 52785 52786 52787 52788 52789 52790 52791 52792 52793 52794 52795 52796 52797 52798 52799 52800 52801 # Execute function body 52802 52803 52804 52805 52806 52807 52808 52809 52810 52811 52812 52813 52814 52815 52816 52817 52818 52819 52820 52821 52822 52823 52824 52825 52826 52827 52828 52829 52830 52831 52832 52833 52834 52835 52836 52837 52838 52839 52840 52841 52842 52843 52844 52845 52846 52847 52848 52849 52850 # Execute function body 52851 52852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the C compiler supports \"-Wno-this-is-a-warning-that-do-not-exist\"" >&5 52853 $as_echo_n "checking if the C compiler supports \"-Wno-this-is-a-warning-that-do-not-exist\"... " >&6; } 52854 supports=yes 52855 52856 saved_cflags="$CFLAGS" 52857 CFLAGS="$CFLAGS -Wno-this-is-a-warning-that-do-not-exist" 52858 ac_ext=c 52859 ac_cpp='$CPP $CPPFLAGS' 52860 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 52861 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 52862 ac_compiler_gnu=$ac_cv_c_compiler_gnu 52863 52864 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 52865 /* end confdefs.h. */ 52866 int i; 52867 _ACEOF 52868 if ac_fn_c_try_compile "$LINENO"; then : 52869 52870 else 52871 supports=no 52872 fi 52873 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 52874 ac_ext=cpp 52875 ac_cpp='$CXXCPP $CPPFLAGS' 52876 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 52877 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 52878 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 52879 52880 CFLAGS="$saved_cflags" 52881 52882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supports" >&5 52883 $as_echo "$supports" >&6; } 52884 if test "x$supports" = "xyes" ; then 52885 : 52886 C_COMP_SUPPORTS="yes" 52887 else 52888 : 52889 C_COMP_SUPPORTS="no" 52890 fi 52891 52892 52893 52894 52895 52896 52897 52898 52899 52900 52901 52902 52903 52904 52905 52906 52907 52908 52909 52910 52911 52912 52913 52914 52915 52916 52917 52918 52919 52920 52921 52922 52923 52924 52925 52926 52927 52928 52929 52930 52931 52932 52933 52934 52935 52936 52937 52938 52939 52940 52941 52942 52943 52944 52945 52946 52947 52948 52949 52950 # Execute function body 52951 52952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the C++ compiler supports \"-Wno-this-is-a-warning-that-do-not-exist\"" >&5 52953 $as_echo_n "checking if the C++ compiler supports \"-Wno-this-is-a-warning-that-do-not-exist\"... " >&6; } 52954 supports=yes 52955 52956 saved_cxxflags="$CXXFLAGS" 52957 CXXFLAGS="$CXXFLAG -Wno-this-is-a-warning-that-do-not-exist" 52958 ac_ext=cpp 52959 ac_cpp='$CXXCPP $CPPFLAGS' 52960 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 52961 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 52962 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 52963 52964 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 52965 /* end confdefs.h. */ 52966 int i; 52967 _ACEOF 52968 if ac_fn_cxx_try_compile "$LINENO"; then : 52969 52970 else 52971 supports=no 52972 fi 52973 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 52974 ac_ext=cpp 52975 ac_cpp='$CXXCPP $CPPFLAGS' 52976 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 52977 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 52978 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 52979 52980 CXXFLAGS="$saved_cxxflags" 52981 52982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supports" >&5 52983 $as_echo "$supports" >&6; } 52984 if test "x$supports" = "xyes" ; then 52985 : 52986 CXX_COMP_SUPPORTS="yes" 52987 else 52988 : 52989 CXX_COMP_SUPPORTS="no" 52990 fi 52991 52992 52993 52994 52995 52996 52997 52998 52999 53000 53001 53002 53003 53004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if both compilers support \"-Wno-this-is-a-warning-that-do-not-exist\"" >&5 53005 $as_echo_n "checking if both compilers support \"-Wno-this-is-a-warning-that-do-not-exist\"... " >&6; } 53006 supports=no 53007 if test "x$C_COMP_SUPPORTS" = "xyes" -a "x$CXX_COMP_SUPPORTS" = "xyes"; then supports=yes; fi 53008 53009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supports" >&5 53010 $as_echo "$supports" >&6; } 53011 if test "x$supports" = "xyes" ; then 53012 : 53013 BUILD_CC_CAN_DISABLE_WARNINGS=true 53014 else 53015 : 53016 BUILD_CC_CAN_DISABLE_WARNINGS=false 53017 53018 fi 53019 53020 53021 53022 53023 53024 53025 if test "x$BUILD_CC_CAN_DISABLE_WARNINGS" = "xtrue"; then 53026 BUILD_CC_DISABLE_WARNING_PREFIX="-Wno-" 53027 else 53028 BUILD_CC_DISABLE_WARNING_PREFIX= 53029 fi 53030 CC="$CC_OLD" 53031 CXX="$CXX_OLD" 53032 CFLAGS="$CFLAGS_OLD" 53033 ;; 53034 clang) 53035 DISABLE_WARNING_PREFIX="-Wno-" 53036 CFLAGS_WARNINGS_ARE_ERRORS="-Werror" 53037 ;; 53038 xlc) 53039 DISABLE_WARNING_PREFIX="-qsuppress=" 53040 CFLAGS_WARNINGS_ARE_ERRORS="-qhalt=w" 53041 ;; 53042 esac 53043 53044 53045 53046 53047 53048 # Setup debug symbols (need objcopy from the toolchain for that) 53049 53050 # 53051 # NATIVE_DEBUG_SYMBOLS 53052 # This must be done after the toolchain is setup, since we're looking at objcopy. 53053 # 53054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what type of native debug symbols to use" >&5 53055 $as_echo_n "checking what type of native debug symbols to use... " >&6; } 53056 53057 # Check whether --with-native-debug-symbols was given. 53058 if test "${with_native_debug_symbols+set}" = set; then : 53059 withval=$with_native_debug_symbols; 53060 if test "x$OPENJDK_TARGET_OS" = xaix; then 53061 if test "x$withval" = xexternal || test "x$withval" = xzipped; then 53062 as_fn_error $? "AIX only supports the parameters 'none' and 'internal' for --with-native-debug-symbols" "$LINENO" 5 53063 fi 53064 fi 53065 53066 else 53067 53068 if test "x$OPENJDK_TARGET_OS" = xaix; then 53069 # AIX doesn't support 'zipped' so use 'internal' as default 53070 with_native_debug_symbols="internal" 53071 else 53072 if test "x$STATIC_BUILD" = xtrue; then 53073 with_native_debug_symbols="none" 53074 else 53075 with_native_debug_symbols="zipped" 53076 fi 53077 fi 53078 53079 fi 53080 53081 NATIVE_DEBUG_SYMBOLS=$with_native_debug_symbols 53082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NATIVE_DEBUG_SYMBOLS" >&5 53083 $as_echo "$NATIVE_DEBUG_SYMBOLS" >&6; } 53084 53085 if test "x$NATIVE_DEBUG_SYMBOLS" = xzipped; then 53086 53087 if test "x$OPENJDK_TARGET_OS" = xsolaris || test "x$OPENJDK_TARGET_OS" = xlinux; then 53088 if test "x$OBJCOPY" = x; then 53089 # enabling of enable-debug-symbols and can't find objcopy 53090 # this is an error 53091 as_fn_error $? "Unable to find objcopy, cannot enable native debug symbols" "$LINENO" 5 53092 fi 53093 fi 53094 53095 COMPILE_WITH_DEBUG_SYMBOLS=true 53096 COPY_DEBUG_SYMBOLS=true 53097 ZIP_EXTERNAL_DEBUG_SYMBOLS=true 53098 53099 # Hotspot legacy support, not relevant with COPY_DEBUG_SYMBOLS=true 53100 DEBUG_BINARIES=false 53101 STRIP_POLICY=min_strip 53102 53103 elif test "x$NATIVE_DEBUG_SYMBOLS" = xnone; then 53104 COMPILE_WITH_DEBUG_SYMBOLS=false 53105 COPY_DEBUG_SYMBOLS=false 53106 ZIP_EXTERNAL_DEBUG_SYMBOLS=false 53107 53108 DEBUG_BINARIES=false 53109 STRIP_POLICY=no_strip 53110 elif test "x$NATIVE_DEBUG_SYMBOLS" = xinternal; then 53111 COMPILE_WITH_DEBUG_SYMBOLS=true 53112 COPY_DEBUG_SYMBOLS=false 53113 ZIP_EXTERNAL_DEBUG_SYMBOLS=false 53114 53115 # Hotspot legacy support, will turn on -g when COPY_DEBUG_SYMBOLS=false 53116 DEBUG_BINARIES=true 53117 STRIP_POLICY=no_strip 53118 STRIP="" 53119 53120 elif test "x$NATIVE_DEBUG_SYMBOLS" = xexternal; then 53121 53122 if test "x$OPENJDK_TARGET_OS" = xsolaris || test "x$OPENJDK_TARGET_OS" = xlinux; then 53123 if test "x$OBJCOPY" = x; then 53124 # enabling of enable-debug-symbols and can't find objcopy 53125 # this is an error 53126 as_fn_error $? "Unable to find objcopy, cannot enable native debug symbols" "$LINENO" 5 53127 fi 53128 fi 53129 53130 COMPILE_WITH_DEBUG_SYMBOLS=true 53131 COPY_DEBUG_SYMBOLS=true 53132 ZIP_EXTERNAL_DEBUG_SYMBOLS=false 53133 53134 # Hotspot legacy support, not relevant with COPY_DEBUG_SYMBOLS=true 53135 DEBUG_BINARIES=false 53136 STRIP_POLICY=min_strip 53137 else 53138 as_fn_error $? "Allowed native debug symbols are: none, internal, external, zipped" "$LINENO" 5 53139 fi 53140 53141 # --enable-debug-symbols is deprecated. 53142 # Please use --with-native-debug-symbols=[internal,external,zipped] . 53143 53144 # Check whether --enable-debug-symbols was given. 53145 if test "${enable_debug_symbols+set}" = set; then : 53146 enableval=$enable_debug_symbols; 53147 fi 53148 53149 if test "x$enable_debug_symbols" != x; then 53150 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Option --enable-debug-symbols is deprecated and will be ignored." >&5 53151 $as_echo "$as_me: WARNING: Option --enable-debug-symbols is deprecated and will be ignored." >&2;} 53152 53153 if test "xPlease use --with-native-debug-symbols=[internal,external,zipped] ." != x; then 53154 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Please use --with-native-debug-symbols=[internal,external,zipped] ." >&5 53155 $as_echo "$as_me: WARNING: Please use --with-native-debug-symbols=[internal,external,zipped] ." >&2;} 53156 fi 53157 53158 fi 53159 53160 53161 # --enable-zip-debug-info is deprecated. 53162 # Please use --with-native-debug-symbols=zipped . 53163 53164 # Check whether --enable-zip-debug-info was given. 53165 if test "${enable_zip_debug_info+set}" = set; then : 53166 enableval=$enable_zip_debug_info; 53167 fi 53168 53169 if test "x$enable_zip_debug_info" != x; then 53170 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Option --enable-zip-debug-info is deprecated and will be ignored." >&5 53171 $as_echo "$as_me: WARNING: Option --enable-zip-debug-info is deprecated and will be ignored." >&2;} 53172 53173 if test "xPlease use --with-native-debug-symbols=zipped ." != x; then 53174 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Please use --with-native-debug-symbols=zipped ." >&5 53175 $as_echo "$as_me: WARNING: Please use --with-native-debug-symbols=zipped ." >&2;} 53176 fi 53177 53178 fi 53179 53180 53181 53182 53183 53184 53185 # Legacy values 53186 53187 53188 53189 53190 # Check whether --enable-native-coverage was given. 53191 if test "${enable_native_coverage+set}" = set; then : 53192 enableval=$enable_native_coverage; 53193 fi 53194 53195 GCOV_ENABLED="false" 53196 if test "x$enable_native_coverage" = "xyes"; then 53197 if test "x$TOOLCHAIN_TYPE" = "xgcc"; then 53198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if native coverage is enabled" >&5 53199 $as_echo_n "checking if native coverage is enabled... " >&6; } 53200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 53201 $as_echo "yes" >&6; } 53202 GCOV_CFLAGS="-fprofile-arcs -ftest-coverage -fno-inline" 53203 GCOV_LDFLAGS="-fprofile-arcs" 53204 LEGACY_EXTRA_CFLAGS="$LEGACY_EXTRA_CFLAGS $GCOV_CFLAGS" 53205 LEGACY_EXTRA_CXXFLAGS="$LEGACY_EXTRA_CXXFLAGS $GCOV_CFLAGS" 53206 LEGACY_EXTRA_LDFLAGS="$LEGACY_EXTRA_LDFLAGS $GCOV_LDFLAGS" 53207 CFLAGS_JDKLIB="$CFLAGS_JDKLIB $GCOV_CFLAGS" 53208 CFLAGS_JDKEXE="$CFLAGS_JDKEXE $GCOV_CFLAGS" 53209 CXXFLAGS_JDKLIB="$CXXFLAGS_JDKLIB $GCOV_CFLAGS" 53210 CXXFLAGS_JDKEXE="$CXXFLAGS_JDKEXE $GCOV_CFLAGS" 53211 LDFLAGS_JDKLIB="$LDFLAGS_JDKLIB $GCOV_LDFLAGS" 53212 LDFLAGS_JDKEXE="$LDFLAGS_JDKEXE $GCOV_LDFLAGS" 53213 GCOV_ENABLED="true" 53214 else 53215 as_fn_error $? "--enable-native-coverage only works with toolchain type gcc" "$LINENO" 5 53216 fi 53217 elif test "x$enable_native_coverage" = "xno"; then 53218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if native coverage is enabled" >&5 53219 $as_echo_n "checking if native coverage is enabled... " >&6; } 53220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 53221 $as_echo "no" >&6; } 53222 elif test "x$enable_native_coverage" != "x"; then 53223 as_fn_error $? "--enable-native-coverage can only be assigned \"yes\" or \"no\"" "$LINENO" 5 53224 fi 53225 53226 53227 53228 53229 # Need toolchain to setup dtrace 53230 53231 # Test for dtrace dependencies 53232 # Check whether --enable-dtrace was given. 53233 if test "${enable_dtrace+set}" = set; then : 53234 enableval=$enable_dtrace; 53235 fi 53236 53237 53238 DTRACE_DEP_MISSING=false 53239 53240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dtrace tool" >&5 53241 $as_echo_n "checking for dtrace tool... " >&6; } 53242 if test "x$DTRACE" != "x" && test -x "$DTRACE"; then 53243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DTRACE" >&5 53244 $as_echo "$DTRACE" >&6; } 53245 else 53246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found, cannot build dtrace" >&5 53247 $as_echo "not found, cannot build dtrace" >&6; } 53248 DTRACE_DEP_MISSING=true 53249 fi 53250 53251 for ac_header in sys/sdt.h 53252 do : 53253 ac_fn_cxx_check_header_mongrel "$LINENO" "sys/sdt.h" "ac_cv_header_sys_sdt_h" "$ac_includes_default" 53254 if test "x$ac_cv_header_sys_sdt_h" = xyes; then : 53255 cat >>confdefs.h <<_ACEOF 53256 #define HAVE_SYS_SDT_H 1 53257 _ACEOF 53258 DTRACE_HEADERS_OK=yes 53259 else 53260 DTRACE_HEADERS_OK=no 53261 fi 53262 53263 done 53264 53265 if test "x$DTRACE_HEADERS_OK" != "xyes"; then 53266 DTRACE_DEP_MISSING=true 53267 fi 53268 53269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if dtrace should be built" >&5 53270 $as_echo_n "checking if dtrace should be built... " >&6; } 53271 if test "x$enable_dtrace" = "xyes"; then 53272 if test "x$DTRACE_DEP_MISSING" = "xtrue"; then 53273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, missing dependencies" >&5 53274 $as_echo "no, missing dependencies" >&6; } 53275 53276 # Print a helpful message on how to acquire the necessary build dependency. 53277 # dtrace is the help tag: freetype, cups, alsa etc 53278 MISSING_DEPENDENCY=dtrace 53279 53280 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 53281 cygwin_help $MISSING_DEPENDENCY 53282 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 53283 msys_help $MISSING_DEPENDENCY 53284 else 53285 PKGHANDLER_COMMAND= 53286 53287 case $PKGHANDLER in 53288 apt-get) 53289 apt_help $MISSING_DEPENDENCY ;; 53290 yum) 53291 yum_help $MISSING_DEPENDENCY ;; 53292 port) 53293 port_help $MISSING_DEPENDENCY ;; 53294 pkgutil) 53295 pkgutil_help $MISSING_DEPENDENCY ;; 53296 pkgadd) 53297 pkgadd_help $MISSING_DEPENDENCY ;; 53298 esac 53299 53300 if test "x$PKGHANDLER_COMMAND" != x; then 53301 HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'." 53302 fi 53303 fi 53304 53305 as_fn_error $? "Cannot enable dtrace with missing dependencies. See above. $HELP_MSG" "$LINENO" 5 53306 else 53307 INCLUDE_DTRACE=true 53308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, forced" >&5 53309 $as_echo "yes, forced" >&6; } 53310 fi 53311 elif test "x$enable_dtrace" = "xno"; then 53312 INCLUDE_DTRACE=false 53313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, forced" >&5 53314 $as_echo "no, forced" >&6; } 53315 elif test "x$enable_dtrace" = "xauto" || test "x$enable_dtrace" = "x"; then 53316 if test "x$OPENJDK_TARGET_OS" = "xlinux" && test "x$OPENJDK" != "xtrue"; then 53317 INCLUDE_DTRACE=false 53318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, non-open linux build" >&5 53319 $as_echo "no, non-open linux build" >&6; } 53320 elif test "x$DTRACE_DEP_MISSING" = "xtrue"; then 53321 INCLUDE_DTRACE=false 53322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, missing dependencies" >&5 53323 $as_echo "no, missing dependencies" >&6; } 53324 else 53325 INCLUDE_DTRACE=true 53326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, dependencies present" >&5 53327 $as_echo "yes, dependencies present" >&6; } 53328 fi 53329 else 53330 as_fn_error $? "Invalid value for --enable-dtrace: $enable_dtrace" "$LINENO" 5 53331 fi 53332 53333 53334 53335 # The user can in some cases supply additional jvm features. For the custom 53336 # variant, this defines the entire variant. 53337 53338 # Check whether --with-jvm-features was given. 53339 if test "${with_jvm_features+set}" = set; then : 53340 withval=$with_jvm_features; 53341 fi 53342 53343 if test "x$with_jvm_features" != x; then 53344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking additional JVM features" >&5 53345 $as_echo_n "checking additional JVM features... " >&6; } 53346 JVM_FEATURES=`$ECHO $with_jvm_features | $SED -e 's/,/ /g'` 53347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JVM_FEATURES" >&5 53348 $as_echo "$JVM_FEATURES" >&6; } 53349 fi 53350 53351 # Verify that dependencies are met for explicitly set features. 53352 if [[ " $JVM_FEATURES " =~ " jvmti " ]] && ! [[ " $JVM_FEATURES " =~ " services " ]] ; then 53353 as_fn_error $? "Specified JVM feature 'jvmti' requires feature 'services'" "$LINENO" 5 53354 fi 53355 53356 if [[ " $JVM_FEATURES " =~ " management " ]] && ! [[ " $JVM_FEATURES " =~ " nmt " ]] ; then 53357 as_fn_error $? "Specified JVM feature 'management' requires feature 'nmt'" "$LINENO" 5 53358 fi 53359 53360 if [[ " $JVM_FEATURES " =~ " jvmci " ]] && ! [[ " $JVM_FEATURES " =~ " compiler2 " ]] ; then 53361 as_fn_error $? "Specified JVM feature 'jvmci' requires feature 'compiler2'" "$LINENO" 5 53362 fi 53363 53364 if [[ " $JVM_FEATURES " =~ " compiler2 " ]] && ! [[ " $JVM_FEATURES " =~ " all-gcs " ]] ; then 53365 as_fn_error $? "Specified JVM feature 'compiler2' requires feature 'all-gcs'" "$LINENO" 5 53366 fi 53367 53368 if [[ " $JVM_FEATURES " =~ " vm-structs " ]] && ! [[ " $JVM_FEATURES " =~ " all-gcs " ]] ; then 53369 as_fn_error $? "Specified JVM feature 'vm-structs' requires feature 'all-gcs'" "$LINENO" 5 53370 fi 53371 53372 # Turn on additional features based on other parts of configure 53373 if test "x$INCLUDE_DTRACE" = "xtrue"; then 53374 JVM_FEATURES="$JVM_FEATURES dtrace" 53375 else 53376 if [[ " $JVM_FEATURES " =~ " dtrace " ]] ; then 53377 as_fn_error $? "To enable dtrace, you must use --enable-dtrace" "$LINENO" 5 53378 fi 53379 fi 53380 53381 if test "x$STATIC_BUILD" = "xtrue"; then 53382 JVM_FEATURES="$JVM_FEATURES static-build" 53383 else 53384 if [[ " $JVM_FEATURES " =~ " static-build " ]] ; then 53385 as_fn_error $? "To enable static-build, you must use --enable-static-build" "$LINENO" 5 53386 fi 53387 fi 53388 53389 if ! [[ " $JVM_VARIANTS " =~ " zero " ]] && ! [[ " $JVM_VARIANTS " =~ " zeroshark " ]] ; then 53390 if [[ " $JVM_FEATURES " =~ " zero " ]] ; then 53391 as_fn_error $? "To enable zero/zeroshark, you must use --with-jvm-variants=zero/zeroshark" "$LINENO" 5 53392 fi 53393 fi 53394 53395 if ! [[ " $JVM_VARIANTS " =~ " zeroshark " ]] ; then 53396 if [[ " $JVM_FEATURES " =~ " shark " ]] ; then 53397 as_fn_error $? "To enable shark, you must use --with-jvm-variants=zeroshark" "$LINENO" 5 53398 fi 53399 fi 53400 53401 # Only enable jvmci on x86_64, sparcv9 and aarch64, and only on server. 53402 if test "x$OPENJDK_TARGET_CPU" = "xx86_64" || \ 53403 test "x$OPENJDK_TARGET_CPU" = "xsparcv9" || \ 53404 test "x$OPENJDK_TARGET_CPU" = "xaarch64" ; then 53405 JVM_FEATURES_jvmci="jvmci" 53406 else 53407 JVM_FEATURES_jvmci="" 53408 fi 53409 53410 # All variants but minimal (and custom) get these features 53411 NON_MINIMAL_FEATURES="$NON_MINIMAL_FEATURES jvmti fprof vm-structs jni-check services management all-gcs nmt cds" 53412 53413 # Enable features depending on variant. 53414 JVM_FEATURES_server="compiler1 compiler2 $NON_MINIMAL_FEATURES $JVM_FEATURES $JVM_FEATURES_jvmci" 53415 JVM_FEATURES_client="compiler1 $NON_MINIMAL_FEATURES $JVM_FEATURES" 53416 JVM_FEATURES_core="$NON_MINIMAL_FEATURES $JVM_FEATURES" 53417 JVM_FEATURES_minimal="compiler1 minimal $JVM_FEATURES" 53418 JVM_FEATURES_zero="zero $NON_MINIMAL_FEATURES $JVM_FEATURES" 53419 JVM_FEATURES_zeroshark="zero shark $NON_MINIMAL_FEATURES $JVM_FEATURES" 53420 JVM_FEATURES_custom="$JVM_FEATURES" 53421 53422 53423 53424 53425 53426 53427 53428 53429 53430 # Used for verification of Makefiles by check-jvm-feature 53431 53432 53433 # We don't support --with-jvm-interpreter anymore, use zero instead. 53434 53435 53436 # Check whether --with-jvm-interpreter was given. 53437 if test "${with_jvm_interpreter+set}" = set; then : 53438 withval=$with_jvm_interpreter; { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Option --with-jvm-interpreter is deprecated and will be ignored." >&5 53439 $as_echo "$as_me: WARNING: Option --with-jvm-interpreter is deprecated and will be ignored." >&2;} 53440 fi 53441 53442 53443 53444 53445 # Check whether --enable-hotspot-gtest was given. 53446 if test "${enable_hotspot_gtest+set}" = set; then : 53447 enableval=$enable_hotspot_gtest; 53448 fi 53449 53450 53451 if test -e "$HOTSPOT_TOPDIR/test/native"; then 53452 GTEST_DIR_EXISTS="true" 53453 else 53454 GTEST_DIR_EXISTS="false" 53455 fi 53456 53457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Hotspot gtest unit tests should be built" >&5 53458 $as_echo_n "checking if Hotspot gtest unit tests should be built... " >&6; } 53459 if test "x$enable_hotspot_gtest" = "xyes"; then 53460 if test "x$GTEST_DIR_EXISTS" = "xtrue"; then 53461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, forced" >&5 53462 $as_echo "yes, forced" >&6; } 53463 BUILD_GTEST="true" 53464 else 53465 as_fn_error $? "Cannot build gtest without the test source" "$LINENO" 5 53466 fi 53467 elif test "x$enable_hotspot_gtest" = "xno"; then 53468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, forced" >&5 53469 $as_echo "no, forced" >&6; } 53470 BUILD_GTEST="false" 53471 elif test "x$enable_hotspot_gtest" = "x"; then 53472 if test "x$GTEST_DIR_EXISTS" = "xtrue" && test "x$OPENJDK_TARGET_OS" != "xaix"; then 53473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 53474 $as_echo "yes" >&6; } 53475 BUILD_GTEST="true" 53476 else 53477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 53478 $as_echo "no" >&6; } 53479 BUILD_GTEST="false" 53480 fi 53481 else 53482 as_fn_error $? "--enable-gtest must be either yes or no" "$LINENO" 5 53483 fi 53484 53485 53486 53487 53488 ############################################################################### 53489 # 53490 # Check dependencies for external and internal libraries. 53491 # 53492 ############################################################################### 53493 53494 # After we have toolchain, we can compile fixpath. It's needed by the lib checks. 53495 53496 # When using cygwin or msys, we need a wrapper binary that renames 53497 # /cygdrive/c/ arguments into c:/ arguments and peeks into 53498 # @files and rewrites these too! This wrapper binary is 53499 # called fixpath. 53500 FIXPATH= 53501 if test "x$OPENJDK_BUILD_OS" = xwindows; then 53502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fixpath can be created" >&5 53503 $as_echo_n "checking if fixpath can be created... " >&6; } 53504 FIXPATH_SRC="$SRC_ROOT/common/src/fixpath.c" 53505 FIXPATH_BIN="$CONFIGURESUPPORT_OUTPUTDIR/bin/fixpath.exe" 53506 FIXPATH_DIR="$CONFIGURESUPPORT_OUTPUTDIR/fixpath" 53507 if test "x$OPENJDK_BUILD_OS_ENV" = xwindows.cygwin; then 53508 # Important to keep the .exe suffix on Cygwin for Hotspot makefiles 53509 FIXPATH="$FIXPATH_BIN -c" 53510 elif test "x$OPENJDK_BUILD_OS_ENV" = xwindows.msys; then 53511 # Take all collected prefixes and turn them into a -m/c/foo@/c/bar@... command line 53512 # @ was chosen as separator to minimize risk of other tools messing around with it 53513 all_unique_prefixes=`echo "${all_fixpath_prefixes[@]}" \ 53514 | tr ' ' '\n' | $GREP '^/./' | $SORT | $UNIQ` 53515 fixpath_argument_list=`echo $all_unique_prefixes | tr ' ' '@'` 53516 FIXPATH="$FIXPATH_BIN -m$fixpath_argument_list" 53517 fi 53518 FIXPATH_SRC_W="$FIXPATH_SRC" 53519 FIXPATH_BIN_W="$FIXPATH_BIN" 53520 53521 unix_path="$FIXPATH_SRC_W" 53522 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 53523 windows_path=`$CYGPATH -m "$unix_path"` 53524 FIXPATH_SRC_W="$windows_path" 53525 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 53526 windows_path=`cmd //c echo $unix_path` 53527 FIXPATH_SRC_W="$windows_path" 53528 fi 53529 53530 53531 unix_path="$FIXPATH_BIN_W" 53532 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 53533 windows_path=`$CYGPATH -m "$unix_path"` 53534 FIXPATH_BIN_W="$windows_path" 53535 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 53536 windows_path=`cmd //c echo $unix_path` 53537 FIXPATH_BIN_W="$windows_path" 53538 fi 53539 53540 $RM -rf $FIXPATH_BIN $FIXPATH_DIR 53541 $MKDIR -p $FIXPATH_DIR $CONFIGURESUPPORT_OUTPUTDIR/bin 53542 cd $FIXPATH_DIR 53543 $CC $FIXPATH_SRC_W -Fe$FIXPATH_BIN_W > $FIXPATH_DIR/fixpath1.log 2>&1 53544 cd $CURDIR 53545 53546 if test ! -x $FIXPATH_BIN; then 53547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 53548 $as_echo "no" >&6; } 53549 cat $FIXPATH_DIR/fixpath1.log 53550 as_fn_error $? "Could not create $FIXPATH_BIN" "$LINENO" 5 53551 fi 53552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 53553 $as_echo "yes" >&6; } 53554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fixpath.exe works" >&5 53555 $as_echo_n "checking if fixpath.exe works... " >&6; } 53556 cd $FIXPATH_DIR 53557 $FIXPATH $CC $FIXPATH_SRC -Fe$FIXPATH_DIR/fixpath2.exe \ 53558 > $FIXPATH_DIR/fixpath2.log 2>&1 53559 cd $CURDIR 53560 if test ! -x $FIXPATH_DIR/fixpath2.exe; then 53561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 53562 $as_echo "no" >&6; } 53563 cat $FIXPATH_DIR/fixpath2.log 53564 as_fn_error $? "fixpath did not work!" "$LINENO" 5 53565 fi 53566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 53567 $as_echo "yes" >&6; } 53568 53569 FIXPATH_DETACH_FLAG="--detach" 53570 fi 53571 53572 53573 53574 53575 53576 53577 # Check if X11 is needed 53578 if test "x$OPENJDK_TARGET_OS" = xwindows || test "x$OPENJDK_TARGET_OS" = xmacosx; then 53579 # No X11 support on windows or macosx 53580 NEEDS_LIB_X11=false 53581 else 53582 if test "x$SUPPORT_HEADFUL" = xno; then 53583 # No X11 support if building headless-only 53584 NEEDS_LIB_X11=false 53585 else 53586 # All other instances need X11 53587 NEEDS_LIB_X11=true 53588 fi 53589 fi 53590 53591 # Check if cups is needed 53592 if test "x$OPENJDK_TARGET_OS" = xwindows; then 53593 # Windows have a separate print system 53594 NEEDS_LIB_CUPS=false 53595 else 53596 NEEDS_LIB_CUPS=true 53597 fi 53598 53599 # Check if freetype is needed 53600 if test "x$OPENJDK" = "xtrue"; then 53601 NEEDS_LIB_FREETYPE=true 53602 else 53603 NEEDS_LIB_FREETYPE=false 53604 fi 53605 53606 # Check if alsa is needed 53607 if test "x$OPENJDK_TARGET_OS" = xlinux; then 53608 NEEDS_LIB_ALSA=true 53609 else 53610 NEEDS_LIB_ALSA=false 53611 fi 53612 53613 # Check if ffi is needed 53614 if [[ " $JVM_VARIANTS " =~ " zero " ]] || [[ " $JVM_VARIANTS " =~ " zeroshark " ]] ; then 53615 NEEDS_LIB_FFI=true 53616 else 53617 NEEDS_LIB_FFI=false 53618 fi 53619 53620 53621 # statically link libstdc++ before C++ ABI is stablized on Linux unless 53622 # dynamic build is configured on command line. 53623 53624 # Check whether --with-stdc++lib was given. 53625 if test "${with_stdc__lib+set}" = set; then : 53626 withval=$with_stdc__lib; 53627 if test "x$with_stdc__lib" != xdynamic && test "x$with_stdc__lib" != xstatic \ 53628 && test "x$with_stdc__lib" != xdefault; then 53629 as_fn_error $? "Bad parameter value --with-stdc++lib=$with_stdc__lib!" "$LINENO" 5 53630 fi 53631 53632 else 53633 with_stdc__lib=default 53634 53635 fi 53636 53637 53638 if test "x$OPENJDK_TARGET_OS" = xlinux; then 53639 # Test if -lstdc++ works. 53640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if dynamic link of stdc++ is possible" >&5 53641 $as_echo_n "checking if dynamic link of stdc++ is possible... " >&6; } 53642 ac_ext=cpp 53643 ac_cpp='$CXXCPP $CPPFLAGS' 53644 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 53645 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 53646 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 53647 53648 OLD_CXXFLAGS="$CXXFLAGS" 53649 CXXFLAGS="$CXXFLAGS -lstdc++" 53650 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 53651 /* end confdefs.h. */ 53652 53653 int 53654 main () 53655 { 53656 return 0; 53657 ; 53658 return 0; 53659 } 53660 _ACEOF 53661 if ac_fn_cxx_try_link "$LINENO"; then : 53662 has_dynamic_libstdcxx=yes 53663 else 53664 has_dynamic_libstdcxx=no 53665 fi 53666 rm -f core conftest.err conftest.$ac_objext \ 53667 conftest$ac_exeext conftest.$ac_ext 53668 CXXFLAGS="$OLD_CXXFLAGS" 53669 ac_ext=cpp 53670 ac_cpp='$CXXCPP $CPPFLAGS' 53671 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 53672 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 53673 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 53674 53675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_dynamic_libstdcxx" >&5 53676 $as_echo "$has_dynamic_libstdcxx" >&6; } 53677 53678 # Test if stdc++ can be linked statically. 53679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if static link of stdc++ is possible" >&5 53680 $as_echo_n "checking if static link of stdc++ is possible... " >&6; } 53681 STATIC_STDCXX_FLAGS="-Wl,-Bstatic -lstdc++ -lgcc -Wl,-Bdynamic" 53682 ac_ext=cpp 53683 ac_cpp='$CXXCPP $CPPFLAGS' 53684 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 53685 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 53686 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 53687 53688 OLD_LIBS="$LIBS" 53689 OLD_CXX="$CXX" 53690 LIBS="$STATIC_STDCXX_FLAGS" 53691 CXX="$CC" 53692 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 53693 /* end confdefs.h. */ 53694 53695 int 53696 main () 53697 { 53698 return 0; 53699 ; 53700 return 0; 53701 } 53702 _ACEOF 53703 if ac_fn_cxx_try_link "$LINENO"; then : 53704 has_static_libstdcxx=yes 53705 else 53706 has_static_libstdcxx=no 53707 fi 53708 rm -f core conftest.err conftest.$ac_objext \ 53709 conftest$ac_exeext conftest.$ac_ext 53710 LIBS="$OLD_LIBS" 53711 CXX="$OLD_CXX" 53712 ac_ext=cpp 53713 ac_cpp='$CXXCPP $CPPFLAGS' 53714 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 53715 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 53716 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 53717 53718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_static_libstdcxx" >&5 53719 $as_echo "$has_static_libstdcxx" >&6; } 53720 53721 if test "x$has_static_libstdcxx" = xno && test "x$has_dynamic_libstdcxx" = xno; then 53722 as_fn_error $? "Cannot link to stdc++, neither dynamically nor statically!" "$LINENO" 5 53723 fi 53724 53725 if test "x$with_stdc__lib" = xstatic && test "x$has_static_libstdcxx" = xno; then 53726 as_fn_error $? "Static linking of libstdc++ was not possible!" "$LINENO" 5 53727 fi 53728 53729 if test "x$with_stdc__lib" = xdynamic && test "x$has_dynamic_libstdcxx" = xno; then 53730 as_fn_error $? "Dynamic linking of libstdc++ was not possible!" "$LINENO" 5 53731 fi 53732 53733 # If dynamic was requested, it's available since it would fail above otherwise. 53734 # If dynamic wasn't requested, go with static unless it isn't available. 53735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libstdc++" >&5 53736 $as_echo_n "checking how to link with libstdc++... " >&6; } 53737 if test "x$with_stdc__lib" = xdynamic || test "x$has_static_libstdcxx" = xno || [[ " $JVM_VARIANTS " =~ " zeroshark " ]] ; then 53738 LIBCXX="$LIBCXX -lstdc++" 53739 # To help comparisons with old build, put stdc++ first in JVM_LIBS 53740 JVM_LIBS="-lstdc++ $JVM_LIBS" 53741 # Ideally, we should test stdc++ for the BUILD toolchain separately. For now 53742 # just use the same setting as for the TARGET toolchain. 53743 OPENJDK_BUILD_JVM_LIBS="-lstdc++ $OPENJDK_BUILD_JVM_LIBS" 53744 LDCXX="$CXX" 53745 STATIC_CXX_SETTING="STATIC_CXX=false" 53746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: dynamic" >&5 53747 $as_echo "dynamic" >&6; } 53748 else 53749 LIBCXX="$LIBCXX $STATIC_STDCXX_FLAGS" 53750 JVM_LDFLAGS="$JVM_LDFLAGS -static-libgcc" 53751 # To help comparisons with old build, put stdc++ first in JVM_LIBS 53752 JVM_LIBS="-Wl,-Bstatic -lstdc++ -Wl,-Bdynamic $JVM_LIBS" 53753 # Ideally, we should test stdc++ for the BUILD toolchain separately. For now 53754 # just use the same setting as for the TARGET toolchain. 53755 OPENJDK_BUILD_JVM_LDFLAGS="$OPENJDK_BUILD_JVM_LDFLAGS -static-libgcc" 53756 OPENJDK_BUILD_JVM_LIBS="-Wl,-Bstatic -lstdc++ -Wl,-Bdynamic $OPENJDK_BUILD_JVM_LIBS" 53757 LDCXX="$CC" 53758 STATIC_CXX_SETTING="STATIC_CXX=true" 53759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: static" >&5 53760 $as_echo "static" >&6; } 53761 fi 53762 fi 53763 53764 53765 # libCrun is the c++ runtime-library with SunStudio (roughly the equivalent of gcc's libstdc++.so) 53766 if test "x$TOOLCHAIN_TYPE" = xsolstudio && test "x$LIBCXX" = x; then 53767 LIBCXX="${SYSROOT}/usr/lib${OPENJDK_TARGET_CPU_ISADIR}/libCrun.so.1" 53768 fi 53769 53770 # TODO better (platform agnostic) test 53771 if test "x$OPENJDK_TARGET_OS" = xmacosx && test "x$LIBCXX" = x && test "x$TOOLCHAIN_TYPE" = xgcc; then 53772 LIBCXX="-lstdc++" 53773 fi 53774 53775 53776 # Setup Windows runtime dlls 53777 if test "x$OPENJDK_TARGET_OS" = "xwindows"; then 53778 53779 53780 # Check whether --with-msvcr-dll was given. 53781 if test "${with_msvcr_dll+set}" = set; then : 53782 withval=$with_msvcr_dll; 53783 fi 53784 53785 53786 if test "x$with_msvcr_dll" != x; then 53787 # If given explicitely by user, do not probe. If not present, fail directly. 53788 53789 DLL_NAME="$MSVCR_NAME" 53790 POSSIBLE_MSVC_DLL="$with_msvcr_dll" 53791 METHOD="--with-msvcr-dll" 53792 if test -n "$POSSIBLE_MSVC_DLL" -a -e "$POSSIBLE_MSVC_DLL"; then 53793 { $as_echo "$as_me:${as_lineno-$LINENO}: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&5 53794 $as_echo "$as_me: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&6;} 53795 53796 # Need to check if the found msvcr is correct architecture 53797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking found $DLL_NAME architecture" >&5 53798 $as_echo_n "checking found $DLL_NAME architecture... " >&6; } 53799 MSVC_DLL_FILETYPE=`$FILE -b "$POSSIBLE_MSVC_DLL"` 53800 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 53801 # The MSYS 'file' command returns "PE32 executable for MS Windows (DLL) (GUI) Intel 80386 32-bit" 53802 # on x32 and "PE32+ executable for MS Windows (DLL) (GUI) Mono/.Net assembly" on x64 systems. 53803 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 53804 CORRECT_MSVCR_ARCH="PE32 executable" 53805 else 53806 CORRECT_MSVCR_ARCH="PE32+ executable" 53807 fi 53808 else 53809 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 53810 CORRECT_MSVCR_ARCH=386 53811 else 53812 CORRECT_MSVCR_ARCH=x86-64 53813 fi 53814 fi 53815 if $ECHO "$MSVC_DLL_FILETYPE" | $GREP "$CORRECT_MSVCR_ARCH" 2>&1 > /dev/null; then 53816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 53817 $as_echo "ok" >&6; } 53818 MSVC_DLL="$POSSIBLE_MSVC_DLL" 53819 53820 # Only process if variable expands to non-empty 53821 53822 if test "x$MSVC_DLL" != x; then 53823 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 53824 53825 # Input might be given as Windows format, start by converting to 53826 # unix format. 53827 path="$MSVC_DLL" 53828 new_path=`$CYGPATH -u "$path"` 53829 53830 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 53831 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 53832 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 53833 # "foo.exe" is OK but "foo" is an error. 53834 # 53835 # This test is therefore slightly more accurate than "test -f" to check for file precense. 53836 # It is also a way to make sure we got the proper file name for the real test later on. 53837 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 53838 if test "x$test_shortpath" = x; then 53839 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&5 53840 $as_echo "$as_me: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&6;} 53841 as_fn_error $? "Cannot locate the the path of MSVC_DLL" "$LINENO" 5 53842 fi 53843 53844 # Call helper function which possibly converts this using DOS-style short mode. 53845 # If so, the updated path is stored in $new_path. 53846 53847 input_path="$new_path" 53848 # Check if we need to convert this using DOS-style short mode. If the path 53849 # contains just simple characters, use it. Otherwise (spaces, weird characters), 53850 # take no chances and rewrite it. 53851 # Note: m4 eats our [], so we need to use [ and ] instead. 53852 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 53853 if test "x$has_forbidden_chars" != x; then 53854 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 53855 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 53856 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 53857 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 53858 # Going to short mode and back again did indeed matter. Since short mode is 53859 # case insensitive, let's make it lowercase to improve readability. 53860 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 53861 # Now convert it back to Unix-style (cygpath) 53862 input_path=`$CYGPATH -u "$shortmode_path"` 53863 new_path="$input_path" 53864 fi 53865 fi 53866 53867 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 53868 if test "x$test_cygdrive_prefix" = x; then 53869 # As a simple fix, exclude /usr/bin since it's not a real path. 53870 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 53871 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 53872 # a path prefixed by /cygdrive for fixpath to work. 53873 new_path="$CYGWIN_ROOT_PATH$input_path" 53874 fi 53875 fi 53876 53877 53878 if test "x$path" != "x$new_path"; then 53879 MSVC_DLL="$new_path" 53880 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVC_DLL to \"$new_path\"" >&5 53881 $as_echo "$as_me: Rewriting MSVC_DLL to \"$new_path\"" >&6;} 53882 fi 53883 53884 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 53885 53886 path="$MSVC_DLL" 53887 has_colon=`$ECHO $path | $GREP ^.:` 53888 new_path="$path" 53889 if test "x$has_colon" = x; then 53890 # Not in mixed or Windows style, start by that. 53891 new_path=`cmd //c echo $path` 53892 fi 53893 53894 53895 input_path="$new_path" 53896 # Check if we need to convert this using DOS-style short mode. If the path 53897 # contains just simple characters, use it. Otherwise (spaces, weird characters), 53898 # take no chances and rewrite it. 53899 # Note: m4 eats our [], so we need to use [ and ] instead. 53900 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 53901 if test "x$has_forbidden_chars" != x; then 53902 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 53903 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 53904 fi 53905 53906 53907 windows_path="$new_path" 53908 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 53909 unix_path=`$CYGPATH -u "$windows_path"` 53910 new_path="$unix_path" 53911 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 53912 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 53913 new_path="$unix_path" 53914 fi 53915 53916 if test "x$path" != "x$new_path"; then 53917 MSVC_DLL="$new_path" 53918 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVC_DLL to \"$new_path\"" >&5 53919 $as_echo "$as_me: Rewriting MSVC_DLL to \"$new_path\"" >&6;} 53920 fi 53921 53922 # Save the first 10 bytes of this path to the storage, so fixpath can work. 53923 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 53924 53925 else 53926 # We're on a unix platform. Hooray! :) 53927 path="$MSVC_DLL" 53928 has_space=`$ECHO "$path" | $GREP " "` 53929 if test "x$has_space" != x; then 53930 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&5 53931 $as_echo "$as_me: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&6;} 53932 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 53933 fi 53934 53935 # Use eval to expand a potential ~ 53936 eval path="$path" 53937 if test ! -f "$path" && test ! -d "$path"; then 53938 as_fn_error $? "The path of MSVC_DLL, which resolves as \"$path\", is not found." "$LINENO" 5 53939 fi 53940 53941 if test -d "$path"; then 53942 MSVC_DLL="`cd "$path"; $THEPWDCMD -L`" 53943 else 53944 dir="`$DIRNAME "$path"`" 53945 base="`$BASENAME "$path"`" 53946 MSVC_DLL="`cd "$dir"; $THEPWDCMD -L`/$base" 53947 fi 53948 fi 53949 fi 53950 53951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $DLL_NAME" >&5 53952 $as_echo_n "checking for $DLL_NAME... " >&6; } 53953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSVC_DLL" >&5 53954 $as_echo "$MSVC_DLL" >&6; } 53955 else 53956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: incorrect, ignoring" >&5 53957 $as_echo "incorrect, ignoring" >&6; } 53958 { $as_echo "$as_me:${as_lineno-$LINENO}: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&5 53959 $as_echo "$as_me: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&6;} 53960 fi 53961 fi 53962 53963 if test "x$MSVC_DLL" = x; then 53964 as_fn_error $? "Could not find a proper $MSVCR_NAME as specified by --with-msvcr-dll" "$LINENO" 5 53965 fi 53966 MSVCR_DLL="$MSVC_DLL" 53967 elif test "x$DEVKIT_MSVCR_DLL" != x; then 53968 53969 DLL_NAME="$MSVCR_NAME" 53970 POSSIBLE_MSVC_DLL="$DEVKIT_MSVCR_DLL" 53971 METHOD="devkit" 53972 if test -n "$POSSIBLE_MSVC_DLL" -a -e "$POSSIBLE_MSVC_DLL"; then 53973 { $as_echo "$as_me:${as_lineno-$LINENO}: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&5 53974 $as_echo "$as_me: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&6;} 53975 53976 # Need to check if the found msvcr is correct architecture 53977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking found $DLL_NAME architecture" >&5 53978 $as_echo_n "checking found $DLL_NAME architecture... " >&6; } 53979 MSVC_DLL_FILETYPE=`$FILE -b "$POSSIBLE_MSVC_DLL"` 53980 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 53981 # The MSYS 'file' command returns "PE32 executable for MS Windows (DLL) (GUI) Intel 80386 32-bit" 53982 # on x32 and "PE32+ executable for MS Windows (DLL) (GUI) Mono/.Net assembly" on x64 systems. 53983 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 53984 CORRECT_MSVCR_ARCH="PE32 executable" 53985 else 53986 CORRECT_MSVCR_ARCH="PE32+ executable" 53987 fi 53988 else 53989 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 53990 CORRECT_MSVCR_ARCH=386 53991 else 53992 CORRECT_MSVCR_ARCH=x86-64 53993 fi 53994 fi 53995 if $ECHO "$MSVC_DLL_FILETYPE" | $GREP "$CORRECT_MSVCR_ARCH" 2>&1 > /dev/null; then 53996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 53997 $as_echo "ok" >&6; } 53998 MSVC_DLL="$POSSIBLE_MSVC_DLL" 53999 54000 # Only process if variable expands to non-empty 54001 54002 if test "x$MSVC_DLL" != x; then 54003 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 54004 54005 # Input might be given as Windows format, start by converting to 54006 # unix format. 54007 path="$MSVC_DLL" 54008 new_path=`$CYGPATH -u "$path"` 54009 54010 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 54011 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 54012 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 54013 # "foo.exe" is OK but "foo" is an error. 54014 # 54015 # This test is therefore slightly more accurate than "test -f" to check for file precense. 54016 # It is also a way to make sure we got the proper file name for the real test later on. 54017 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 54018 if test "x$test_shortpath" = x; then 54019 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&5 54020 $as_echo "$as_me: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&6;} 54021 as_fn_error $? "Cannot locate the the path of MSVC_DLL" "$LINENO" 5 54022 fi 54023 54024 # Call helper function which possibly converts this using DOS-style short mode. 54025 # If so, the updated path is stored in $new_path. 54026 54027 input_path="$new_path" 54028 # Check if we need to convert this using DOS-style short mode. If the path 54029 # contains just simple characters, use it. Otherwise (spaces, weird characters), 54030 # take no chances and rewrite it. 54031 # Note: m4 eats our [], so we need to use [ and ] instead. 54032 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 54033 if test "x$has_forbidden_chars" != x; then 54034 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 54035 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 54036 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 54037 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 54038 # Going to short mode and back again did indeed matter. Since short mode is 54039 # case insensitive, let's make it lowercase to improve readability. 54040 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 54041 # Now convert it back to Unix-style (cygpath) 54042 input_path=`$CYGPATH -u "$shortmode_path"` 54043 new_path="$input_path" 54044 fi 54045 fi 54046 54047 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 54048 if test "x$test_cygdrive_prefix" = x; then 54049 # As a simple fix, exclude /usr/bin since it's not a real path. 54050 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 54051 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 54052 # a path prefixed by /cygdrive for fixpath to work. 54053 new_path="$CYGWIN_ROOT_PATH$input_path" 54054 fi 54055 fi 54056 54057 54058 if test "x$path" != "x$new_path"; then 54059 MSVC_DLL="$new_path" 54060 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVC_DLL to \"$new_path\"" >&5 54061 $as_echo "$as_me: Rewriting MSVC_DLL to \"$new_path\"" >&6;} 54062 fi 54063 54064 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 54065 54066 path="$MSVC_DLL" 54067 has_colon=`$ECHO $path | $GREP ^.:` 54068 new_path="$path" 54069 if test "x$has_colon" = x; then 54070 # Not in mixed or Windows style, start by that. 54071 new_path=`cmd //c echo $path` 54072 fi 54073 54074 54075 input_path="$new_path" 54076 # Check if we need to convert this using DOS-style short mode. If the path 54077 # contains just simple characters, use it. Otherwise (spaces, weird characters), 54078 # take no chances and rewrite it. 54079 # Note: m4 eats our [], so we need to use [ and ] instead. 54080 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 54081 if test "x$has_forbidden_chars" != x; then 54082 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 54083 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 54084 fi 54085 54086 54087 windows_path="$new_path" 54088 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 54089 unix_path=`$CYGPATH -u "$windows_path"` 54090 new_path="$unix_path" 54091 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 54092 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 54093 new_path="$unix_path" 54094 fi 54095 54096 if test "x$path" != "x$new_path"; then 54097 MSVC_DLL="$new_path" 54098 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVC_DLL to \"$new_path\"" >&5 54099 $as_echo "$as_me: Rewriting MSVC_DLL to \"$new_path\"" >&6;} 54100 fi 54101 54102 # Save the first 10 bytes of this path to the storage, so fixpath can work. 54103 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 54104 54105 else 54106 # We're on a unix platform. Hooray! :) 54107 path="$MSVC_DLL" 54108 has_space=`$ECHO "$path" | $GREP " "` 54109 if test "x$has_space" != x; then 54110 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&5 54111 $as_echo "$as_me: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&6;} 54112 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 54113 fi 54114 54115 # Use eval to expand a potential ~ 54116 eval path="$path" 54117 if test ! -f "$path" && test ! -d "$path"; then 54118 as_fn_error $? "The path of MSVC_DLL, which resolves as \"$path\", is not found." "$LINENO" 5 54119 fi 54120 54121 if test -d "$path"; then 54122 MSVC_DLL="`cd "$path"; $THEPWDCMD -L`" 54123 else 54124 dir="`$DIRNAME "$path"`" 54125 base="`$BASENAME "$path"`" 54126 MSVC_DLL="`cd "$dir"; $THEPWDCMD -L`/$base" 54127 fi 54128 fi 54129 fi 54130 54131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $DLL_NAME" >&5 54132 $as_echo_n "checking for $DLL_NAME... " >&6; } 54133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSVC_DLL" >&5 54134 $as_echo "$MSVC_DLL" >&6; } 54135 else 54136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: incorrect, ignoring" >&5 54137 $as_echo "incorrect, ignoring" >&6; } 54138 { $as_echo "$as_me:${as_lineno-$LINENO}: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&5 54139 $as_echo "$as_me: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&6;} 54140 fi 54141 fi 54142 54143 if test "x$MSVC_DLL" = x; then 54144 as_fn_error $? "Could not find a proper $MSVCR_NAME as specified by devkit" "$LINENO" 5 54145 fi 54146 MSVCR_DLL="$MSVC_DLL" 54147 else 54148 54149 DLL_NAME="${MSVCR_NAME}" 54150 MSVC_DLL= 54151 54152 if test "x$MSVC_DLL" = x; then 54153 # Probe: Using well-known location from Visual Studio 10.0 54154 if test "x$VCINSTALLDIR" != x; then 54155 CYGWIN_VC_INSTALL_DIR="$VCINSTALLDIR" 54156 54157 windows_path="$CYGWIN_VC_INSTALL_DIR" 54158 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 54159 unix_path=`$CYGPATH -u "$windows_path"` 54160 CYGWIN_VC_INSTALL_DIR="$unix_path" 54161 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 54162 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 54163 CYGWIN_VC_INSTALL_DIR="$unix_path" 54164 fi 54165 54166 if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then 54167 POSSIBLE_MSVC_DLL="$CYGWIN_VC_INSTALL_DIR/redist/x64/Microsoft.VC${VS_VERSION_INTERNAL}.CRT/$DLL_NAME" 54168 else 54169 POSSIBLE_MSVC_DLL="$CYGWIN_VC_INSTALL_DIR/redist/x86/Microsoft.VC${VS_VERSION_INTERNAL}.CRT/$DLL_NAME" 54170 fi 54171 $ECHO "POSSIBLE_MSVC_DLL $POSSIBLEMSVC_DLL" 54172 54173 DLL_NAME="$DLL_NAME" 54174 POSSIBLE_MSVC_DLL="$POSSIBLE_MSVC_DLL" 54175 METHOD="well-known location in VCINSTALLDIR" 54176 if test -n "$POSSIBLE_MSVC_DLL" -a -e "$POSSIBLE_MSVC_DLL"; then 54177 { $as_echo "$as_me:${as_lineno-$LINENO}: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&5 54178 $as_echo "$as_me: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&6;} 54179 54180 # Need to check if the found msvcr is correct architecture 54181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking found $DLL_NAME architecture" >&5 54182 $as_echo_n "checking found $DLL_NAME architecture... " >&6; } 54183 MSVC_DLL_FILETYPE=`$FILE -b "$POSSIBLE_MSVC_DLL"` 54184 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 54185 # The MSYS 'file' command returns "PE32 executable for MS Windows (DLL) (GUI) Intel 80386 32-bit" 54186 # on x32 and "PE32+ executable for MS Windows (DLL) (GUI) Mono/.Net assembly" on x64 systems. 54187 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 54188 CORRECT_MSVCR_ARCH="PE32 executable" 54189 else 54190 CORRECT_MSVCR_ARCH="PE32+ executable" 54191 fi 54192 else 54193 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 54194 CORRECT_MSVCR_ARCH=386 54195 else 54196 CORRECT_MSVCR_ARCH=x86-64 54197 fi 54198 fi 54199 if $ECHO "$MSVC_DLL_FILETYPE" | $GREP "$CORRECT_MSVCR_ARCH" 2>&1 > /dev/null; then 54200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 54201 $as_echo "ok" >&6; } 54202 MSVC_DLL="$POSSIBLE_MSVC_DLL" 54203 54204 # Only process if variable expands to non-empty 54205 54206 if test "x$MSVC_DLL" != x; then 54207 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 54208 54209 # Input might be given as Windows format, start by converting to 54210 # unix format. 54211 path="$MSVC_DLL" 54212 new_path=`$CYGPATH -u "$path"` 54213 54214 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 54215 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 54216 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 54217 # "foo.exe" is OK but "foo" is an error. 54218 # 54219 # This test is therefore slightly more accurate than "test -f" to check for file precense. 54220 # It is also a way to make sure we got the proper file name for the real test later on. 54221 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 54222 if test "x$test_shortpath" = x; then 54223 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&5 54224 $as_echo "$as_me: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&6;} 54225 as_fn_error $? "Cannot locate the the path of MSVC_DLL" "$LINENO" 5 54226 fi 54227 54228 # Call helper function which possibly converts this using DOS-style short mode. 54229 # If so, the updated path is stored in $new_path. 54230 54231 input_path="$new_path" 54232 # Check if we need to convert this using DOS-style short mode. If the path 54233 # contains just simple characters, use it. Otherwise (spaces, weird characters), 54234 # take no chances and rewrite it. 54235 # Note: m4 eats our [], so we need to use [ and ] instead. 54236 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 54237 if test "x$has_forbidden_chars" != x; then 54238 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 54239 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 54240 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 54241 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 54242 # Going to short mode and back again did indeed matter. Since short mode is 54243 # case insensitive, let's make it lowercase to improve readability. 54244 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 54245 # Now convert it back to Unix-style (cygpath) 54246 input_path=`$CYGPATH -u "$shortmode_path"` 54247 new_path="$input_path" 54248 fi 54249 fi 54250 54251 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 54252 if test "x$test_cygdrive_prefix" = x; then 54253 # As a simple fix, exclude /usr/bin since it's not a real path. 54254 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 54255 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 54256 # a path prefixed by /cygdrive for fixpath to work. 54257 new_path="$CYGWIN_ROOT_PATH$input_path" 54258 fi 54259 fi 54260 54261 54262 if test "x$path" != "x$new_path"; then 54263 MSVC_DLL="$new_path" 54264 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVC_DLL to \"$new_path\"" >&5 54265 $as_echo "$as_me: Rewriting MSVC_DLL to \"$new_path\"" >&6;} 54266 fi 54267 54268 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 54269 54270 path="$MSVC_DLL" 54271 has_colon=`$ECHO $path | $GREP ^.:` 54272 new_path="$path" 54273 if test "x$has_colon" = x; then 54274 # Not in mixed or Windows style, start by that. 54275 new_path=`cmd //c echo $path` 54276 fi 54277 54278 54279 input_path="$new_path" 54280 # Check if we need to convert this using DOS-style short mode. If the path 54281 # contains just simple characters, use it. Otherwise (spaces, weird characters), 54282 # take no chances and rewrite it. 54283 # Note: m4 eats our [], so we need to use [ and ] instead. 54284 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 54285 if test "x$has_forbidden_chars" != x; then 54286 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 54287 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 54288 fi 54289 54290 54291 windows_path="$new_path" 54292 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 54293 unix_path=`$CYGPATH -u "$windows_path"` 54294 new_path="$unix_path" 54295 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 54296 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 54297 new_path="$unix_path" 54298 fi 54299 54300 if test "x$path" != "x$new_path"; then 54301 MSVC_DLL="$new_path" 54302 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVC_DLL to \"$new_path\"" >&5 54303 $as_echo "$as_me: Rewriting MSVC_DLL to \"$new_path\"" >&6;} 54304 fi 54305 54306 # Save the first 10 bytes of this path to the storage, so fixpath can work. 54307 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 54308 54309 else 54310 # We're on a unix platform. Hooray! :) 54311 path="$MSVC_DLL" 54312 has_space=`$ECHO "$path" | $GREP " "` 54313 if test "x$has_space" != x; then 54314 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&5 54315 $as_echo "$as_me: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&6;} 54316 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 54317 fi 54318 54319 # Use eval to expand a potential ~ 54320 eval path="$path" 54321 if test ! -f "$path" && test ! -d "$path"; then 54322 as_fn_error $? "The path of MSVC_DLL, which resolves as \"$path\", is not found." "$LINENO" 5 54323 fi 54324 54325 if test -d "$path"; then 54326 MSVC_DLL="`cd "$path"; $THEPWDCMD -L`" 54327 else 54328 dir="`$DIRNAME "$path"`" 54329 base="`$BASENAME "$path"`" 54330 MSVC_DLL="`cd "$dir"; $THEPWDCMD -L`/$base" 54331 fi 54332 fi 54333 fi 54334 54335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $DLL_NAME" >&5 54336 $as_echo_n "checking for $DLL_NAME... " >&6; } 54337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSVC_DLL" >&5 54338 $as_echo "$MSVC_DLL" >&6; } 54339 else 54340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: incorrect, ignoring" >&5 54341 $as_echo "incorrect, ignoring" >&6; } 54342 { $as_echo "$as_me:${as_lineno-$LINENO}: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&5 54343 $as_echo "$as_me: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&6;} 54344 fi 54345 fi 54346 54347 fi 54348 fi 54349 54350 if test "x$MSVC_DLL" = x; then 54351 # Probe: Check in the Boot JDK directory. 54352 POSSIBLE_MSVC_DLL="$BOOT_JDK/bin/$DLL_NAME" 54353 54354 DLL_NAME="$DLL_NAME" 54355 POSSIBLE_MSVC_DLL="$POSSIBLE_MSVC_DLL" 54356 METHOD="well-known location in Boot JDK" 54357 if test -n "$POSSIBLE_MSVC_DLL" -a -e "$POSSIBLE_MSVC_DLL"; then 54358 { $as_echo "$as_me:${as_lineno-$LINENO}: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&5 54359 $as_echo "$as_me: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&6;} 54360 54361 # Need to check if the found msvcr is correct architecture 54362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking found $DLL_NAME architecture" >&5 54363 $as_echo_n "checking found $DLL_NAME architecture... " >&6; } 54364 MSVC_DLL_FILETYPE=`$FILE -b "$POSSIBLE_MSVC_DLL"` 54365 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 54366 # The MSYS 'file' command returns "PE32 executable for MS Windows (DLL) (GUI) Intel 80386 32-bit" 54367 # on x32 and "PE32+ executable for MS Windows (DLL) (GUI) Mono/.Net assembly" on x64 systems. 54368 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 54369 CORRECT_MSVCR_ARCH="PE32 executable" 54370 else 54371 CORRECT_MSVCR_ARCH="PE32+ executable" 54372 fi 54373 else 54374 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 54375 CORRECT_MSVCR_ARCH=386 54376 else 54377 CORRECT_MSVCR_ARCH=x86-64 54378 fi 54379 fi 54380 if $ECHO "$MSVC_DLL_FILETYPE" | $GREP "$CORRECT_MSVCR_ARCH" 2>&1 > /dev/null; then 54381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 54382 $as_echo "ok" >&6; } 54383 MSVC_DLL="$POSSIBLE_MSVC_DLL" 54384 54385 # Only process if variable expands to non-empty 54386 54387 if test "x$MSVC_DLL" != x; then 54388 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 54389 54390 # Input might be given as Windows format, start by converting to 54391 # unix format. 54392 path="$MSVC_DLL" 54393 new_path=`$CYGPATH -u "$path"` 54394 54395 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 54396 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 54397 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 54398 # "foo.exe" is OK but "foo" is an error. 54399 # 54400 # This test is therefore slightly more accurate than "test -f" to check for file precense. 54401 # It is also a way to make sure we got the proper file name for the real test later on. 54402 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 54403 if test "x$test_shortpath" = x; then 54404 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&5 54405 $as_echo "$as_me: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&6;} 54406 as_fn_error $? "Cannot locate the the path of MSVC_DLL" "$LINENO" 5 54407 fi 54408 54409 # Call helper function which possibly converts this using DOS-style short mode. 54410 # If so, the updated path is stored in $new_path. 54411 54412 input_path="$new_path" 54413 # Check if we need to convert this using DOS-style short mode. If the path 54414 # contains just simple characters, use it. Otherwise (spaces, weird characters), 54415 # take no chances and rewrite it. 54416 # Note: m4 eats our [], so we need to use [ and ] instead. 54417 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 54418 if test "x$has_forbidden_chars" != x; then 54419 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 54420 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 54421 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 54422 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 54423 # Going to short mode and back again did indeed matter. Since short mode is 54424 # case insensitive, let's make it lowercase to improve readability. 54425 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 54426 # Now convert it back to Unix-style (cygpath) 54427 input_path=`$CYGPATH -u "$shortmode_path"` 54428 new_path="$input_path" 54429 fi 54430 fi 54431 54432 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 54433 if test "x$test_cygdrive_prefix" = x; then 54434 # As a simple fix, exclude /usr/bin since it's not a real path. 54435 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 54436 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 54437 # a path prefixed by /cygdrive for fixpath to work. 54438 new_path="$CYGWIN_ROOT_PATH$input_path" 54439 fi 54440 fi 54441 54442 54443 if test "x$path" != "x$new_path"; then 54444 MSVC_DLL="$new_path" 54445 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVC_DLL to \"$new_path\"" >&5 54446 $as_echo "$as_me: Rewriting MSVC_DLL to \"$new_path\"" >&6;} 54447 fi 54448 54449 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 54450 54451 path="$MSVC_DLL" 54452 has_colon=`$ECHO $path | $GREP ^.:` 54453 new_path="$path" 54454 if test "x$has_colon" = x; then 54455 # Not in mixed or Windows style, start by that. 54456 new_path=`cmd //c echo $path` 54457 fi 54458 54459 54460 input_path="$new_path" 54461 # Check if we need to convert this using DOS-style short mode. If the path 54462 # contains just simple characters, use it. Otherwise (spaces, weird characters), 54463 # take no chances and rewrite it. 54464 # Note: m4 eats our [], so we need to use [ and ] instead. 54465 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 54466 if test "x$has_forbidden_chars" != x; then 54467 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 54468 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 54469 fi 54470 54471 54472 windows_path="$new_path" 54473 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 54474 unix_path=`$CYGPATH -u "$windows_path"` 54475 new_path="$unix_path" 54476 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 54477 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 54478 new_path="$unix_path" 54479 fi 54480 54481 if test "x$path" != "x$new_path"; then 54482 MSVC_DLL="$new_path" 54483 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVC_DLL to \"$new_path\"" >&5 54484 $as_echo "$as_me: Rewriting MSVC_DLL to \"$new_path\"" >&6;} 54485 fi 54486 54487 # Save the first 10 bytes of this path to the storage, so fixpath can work. 54488 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 54489 54490 else 54491 # We're on a unix platform. Hooray! :) 54492 path="$MSVC_DLL" 54493 has_space=`$ECHO "$path" | $GREP " "` 54494 if test "x$has_space" != x; then 54495 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&5 54496 $as_echo "$as_me: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&6;} 54497 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 54498 fi 54499 54500 # Use eval to expand a potential ~ 54501 eval path="$path" 54502 if test ! -f "$path" && test ! -d "$path"; then 54503 as_fn_error $? "The path of MSVC_DLL, which resolves as \"$path\", is not found." "$LINENO" 5 54504 fi 54505 54506 if test -d "$path"; then 54507 MSVC_DLL="`cd "$path"; $THEPWDCMD -L`" 54508 else 54509 dir="`$DIRNAME "$path"`" 54510 base="`$BASENAME "$path"`" 54511 MSVC_DLL="`cd "$dir"; $THEPWDCMD -L`/$base" 54512 fi 54513 fi 54514 fi 54515 54516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $DLL_NAME" >&5 54517 $as_echo_n "checking for $DLL_NAME... " >&6; } 54518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSVC_DLL" >&5 54519 $as_echo "$MSVC_DLL" >&6; } 54520 else 54521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: incorrect, ignoring" >&5 54522 $as_echo "incorrect, ignoring" >&6; } 54523 { $as_echo "$as_me:${as_lineno-$LINENO}: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&5 54524 $as_echo "$as_me: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&6;} 54525 fi 54526 fi 54527 54528 fi 54529 54530 if test "x$MSVC_DLL" = x; then 54531 # Probe: Look in the Windows system32 directory 54532 CYGWIN_SYSTEMROOT="$SYSTEMROOT" 54533 54534 windows_path="$CYGWIN_SYSTEMROOT" 54535 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 54536 unix_path=`$CYGPATH -u "$windows_path"` 54537 CYGWIN_SYSTEMROOT="$unix_path" 54538 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 54539 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 54540 CYGWIN_SYSTEMROOT="$unix_path" 54541 fi 54542 54543 POSSIBLE_MSVC_DLL="$CYGWIN_SYSTEMROOT/system32/$DLL_NAME" 54544 54545 DLL_NAME="$DLL_NAME" 54546 POSSIBLE_MSVC_DLL="$POSSIBLE_MSVC_DLL" 54547 METHOD="well-known location in SYSTEMROOT" 54548 if test -n "$POSSIBLE_MSVC_DLL" -a -e "$POSSIBLE_MSVC_DLL"; then 54549 { $as_echo "$as_me:${as_lineno-$LINENO}: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&5 54550 $as_echo "$as_me: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&6;} 54551 54552 # Need to check if the found msvcr is correct architecture 54553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking found $DLL_NAME architecture" >&5 54554 $as_echo_n "checking found $DLL_NAME architecture... " >&6; } 54555 MSVC_DLL_FILETYPE=`$FILE -b "$POSSIBLE_MSVC_DLL"` 54556 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 54557 # The MSYS 'file' command returns "PE32 executable for MS Windows (DLL) (GUI) Intel 80386 32-bit" 54558 # on x32 and "PE32+ executable for MS Windows (DLL) (GUI) Mono/.Net assembly" on x64 systems. 54559 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 54560 CORRECT_MSVCR_ARCH="PE32 executable" 54561 else 54562 CORRECT_MSVCR_ARCH="PE32+ executable" 54563 fi 54564 else 54565 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 54566 CORRECT_MSVCR_ARCH=386 54567 else 54568 CORRECT_MSVCR_ARCH=x86-64 54569 fi 54570 fi 54571 if $ECHO "$MSVC_DLL_FILETYPE" | $GREP "$CORRECT_MSVCR_ARCH" 2>&1 > /dev/null; then 54572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 54573 $as_echo "ok" >&6; } 54574 MSVC_DLL="$POSSIBLE_MSVC_DLL" 54575 54576 # Only process if variable expands to non-empty 54577 54578 if test "x$MSVC_DLL" != x; then 54579 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 54580 54581 # Input might be given as Windows format, start by converting to 54582 # unix format. 54583 path="$MSVC_DLL" 54584 new_path=`$CYGPATH -u "$path"` 54585 54586 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 54587 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 54588 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 54589 # "foo.exe" is OK but "foo" is an error. 54590 # 54591 # This test is therefore slightly more accurate than "test -f" to check for file precense. 54592 # It is also a way to make sure we got the proper file name for the real test later on. 54593 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 54594 if test "x$test_shortpath" = x; then 54595 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&5 54596 $as_echo "$as_me: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&6;} 54597 as_fn_error $? "Cannot locate the the path of MSVC_DLL" "$LINENO" 5 54598 fi 54599 54600 # Call helper function which possibly converts this using DOS-style short mode. 54601 # If so, the updated path is stored in $new_path. 54602 54603 input_path="$new_path" 54604 # Check if we need to convert this using DOS-style short mode. If the path 54605 # contains just simple characters, use it. Otherwise (spaces, weird characters), 54606 # take no chances and rewrite it. 54607 # Note: m4 eats our [], so we need to use [ and ] instead. 54608 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 54609 if test "x$has_forbidden_chars" != x; then 54610 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 54611 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 54612 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 54613 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 54614 # Going to short mode and back again did indeed matter. Since short mode is 54615 # case insensitive, let's make it lowercase to improve readability. 54616 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 54617 # Now convert it back to Unix-style (cygpath) 54618 input_path=`$CYGPATH -u "$shortmode_path"` 54619 new_path="$input_path" 54620 fi 54621 fi 54622 54623 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 54624 if test "x$test_cygdrive_prefix" = x; then 54625 # As a simple fix, exclude /usr/bin since it's not a real path. 54626 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 54627 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 54628 # a path prefixed by /cygdrive for fixpath to work. 54629 new_path="$CYGWIN_ROOT_PATH$input_path" 54630 fi 54631 fi 54632 54633 54634 if test "x$path" != "x$new_path"; then 54635 MSVC_DLL="$new_path" 54636 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVC_DLL to \"$new_path\"" >&5 54637 $as_echo "$as_me: Rewriting MSVC_DLL to \"$new_path\"" >&6;} 54638 fi 54639 54640 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 54641 54642 path="$MSVC_DLL" 54643 has_colon=`$ECHO $path | $GREP ^.:` 54644 new_path="$path" 54645 if test "x$has_colon" = x; then 54646 # Not in mixed or Windows style, start by that. 54647 new_path=`cmd //c echo $path` 54648 fi 54649 54650 54651 input_path="$new_path" 54652 # Check if we need to convert this using DOS-style short mode. If the path 54653 # contains just simple characters, use it. Otherwise (spaces, weird characters), 54654 # take no chances and rewrite it. 54655 # Note: m4 eats our [], so we need to use [ and ] instead. 54656 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 54657 if test "x$has_forbidden_chars" != x; then 54658 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 54659 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 54660 fi 54661 54662 54663 windows_path="$new_path" 54664 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 54665 unix_path=`$CYGPATH -u "$windows_path"` 54666 new_path="$unix_path" 54667 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 54668 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 54669 new_path="$unix_path" 54670 fi 54671 54672 if test "x$path" != "x$new_path"; then 54673 MSVC_DLL="$new_path" 54674 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVC_DLL to \"$new_path\"" >&5 54675 $as_echo "$as_me: Rewriting MSVC_DLL to \"$new_path\"" >&6;} 54676 fi 54677 54678 # Save the first 10 bytes of this path to the storage, so fixpath can work. 54679 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 54680 54681 else 54682 # We're on a unix platform. Hooray! :) 54683 path="$MSVC_DLL" 54684 has_space=`$ECHO "$path" | $GREP " "` 54685 if test "x$has_space" != x; then 54686 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&5 54687 $as_echo "$as_me: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&6;} 54688 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 54689 fi 54690 54691 # Use eval to expand a potential ~ 54692 eval path="$path" 54693 if test ! -f "$path" && test ! -d "$path"; then 54694 as_fn_error $? "The path of MSVC_DLL, which resolves as \"$path\", is not found." "$LINENO" 5 54695 fi 54696 54697 if test -d "$path"; then 54698 MSVC_DLL="`cd "$path"; $THEPWDCMD -L`" 54699 else 54700 dir="`$DIRNAME "$path"`" 54701 base="`$BASENAME "$path"`" 54702 MSVC_DLL="`cd "$dir"; $THEPWDCMD -L`/$base" 54703 fi 54704 fi 54705 fi 54706 54707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $DLL_NAME" >&5 54708 $as_echo_n "checking for $DLL_NAME... " >&6; } 54709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSVC_DLL" >&5 54710 $as_echo "$MSVC_DLL" >&6; } 54711 else 54712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: incorrect, ignoring" >&5 54713 $as_echo "incorrect, ignoring" >&6; } 54714 { $as_echo "$as_me:${as_lineno-$LINENO}: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&5 54715 $as_echo "$as_me: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&6;} 54716 fi 54717 fi 54718 54719 fi 54720 54721 if test "x$MSVC_DLL" = x; then 54722 # Probe: If Visual Studio Express is installed, there is usually one with the debugger 54723 if test "x$VS100COMNTOOLS" != x; then 54724 CYGWIN_VS_TOOLS_DIR="$VS100COMNTOOLS/.." 54725 54726 windows_path="$CYGWIN_VS_TOOLS_DIR" 54727 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 54728 unix_path=`$CYGPATH -u "$windows_path"` 54729 CYGWIN_VS_TOOLS_DIR="$unix_path" 54730 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 54731 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 54732 CYGWIN_VS_TOOLS_DIR="$unix_path" 54733 fi 54734 54735 if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then 54736 POSSIBLE_MSVC_DLL=`$FIND "$CYGWIN_VS_TOOLS_DIR" -name $DLL_NAME \ 54737 | $GREP -i /x64/ | $HEAD --lines 1` 54738 else 54739 POSSIBLE_MSVC_DLL=`$FIND "$CYGWIN_VS_TOOLS_DIR" -name $DLL_NAME \ 54740 | $GREP -i /x86/ | $HEAD --lines 1` 54741 fi 54742 54743 DLL_NAME="$DLL_NAME" 54744 POSSIBLE_MSVC_DLL="$POSSIBLE_MSVC_DLL" 54745 METHOD="search of VS100COMNTOOLS" 54746 if test -n "$POSSIBLE_MSVC_DLL" -a -e "$POSSIBLE_MSVC_DLL"; then 54747 { $as_echo "$as_me:${as_lineno-$LINENO}: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&5 54748 $as_echo "$as_me: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&6;} 54749 54750 # Need to check if the found msvcr is correct architecture 54751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking found $DLL_NAME architecture" >&5 54752 $as_echo_n "checking found $DLL_NAME architecture... " >&6; } 54753 MSVC_DLL_FILETYPE=`$FILE -b "$POSSIBLE_MSVC_DLL"` 54754 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 54755 # The MSYS 'file' command returns "PE32 executable for MS Windows (DLL) (GUI) Intel 80386 32-bit" 54756 # on x32 and "PE32+ executable for MS Windows (DLL) (GUI) Mono/.Net assembly" on x64 systems. 54757 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 54758 CORRECT_MSVCR_ARCH="PE32 executable" 54759 else 54760 CORRECT_MSVCR_ARCH="PE32+ executable" 54761 fi 54762 else 54763 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 54764 CORRECT_MSVCR_ARCH=386 54765 else 54766 CORRECT_MSVCR_ARCH=x86-64 54767 fi 54768 fi 54769 if $ECHO "$MSVC_DLL_FILETYPE" | $GREP "$CORRECT_MSVCR_ARCH" 2>&1 > /dev/null; then 54770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 54771 $as_echo "ok" >&6; } 54772 MSVC_DLL="$POSSIBLE_MSVC_DLL" 54773 54774 # Only process if variable expands to non-empty 54775 54776 if test "x$MSVC_DLL" != x; then 54777 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 54778 54779 # Input might be given as Windows format, start by converting to 54780 # unix format. 54781 path="$MSVC_DLL" 54782 new_path=`$CYGPATH -u "$path"` 54783 54784 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 54785 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 54786 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 54787 # "foo.exe" is OK but "foo" is an error. 54788 # 54789 # This test is therefore slightly more accurate than "test -f" to check for file precense. 54790 # It is also a way to make sure we got the proper file name for the real test later on. 54791 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 54792 if test "x$test_shortpath" = x; then 54793 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&5 54794 $as_echo "$as_me: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&6;} 54795 as_fn_error $? "Cannot locate the the path of MSVC_DLL" "$LINENO" 5 54796 fi 54797 54798 # Call helper function which possibly converts this using DOS-style short mode. 54799 # If so, the updated path is stored in $new_path. 54800 54801 input_path="$new_path" 54802 # Check if we need to convert this using DOS-style short mode. If the path 54803 # contains just simple characters, use it. Otherwise (spaces, weird characters), 54804 # take no chances and rewrite it. 54805 # Note: m4 eats our [], so we need to use [ and ] instead. 54806 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 54807 if test "x$has_forbidden_chars" != x; then 54808 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 54809 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 54810 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 54811 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 54812 # Going to short mode and back again did indeed matter. Since short mode is 54813 # case insensitive, let's make it lowercase to improve readability. 54814 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 54815 # Now convert it back to Unix-style (cygpath) 54816 input_path=`$CYGPATH -u "$shortmode_path"` 54817 new_path="$input_path" 54818 fi 54819 fi 54820 54821 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 54822 if test "x$test_cygdrive_prefix" = x; then 54823 # As a simple fix, exclude /usr/bin since it's not a real path. 54824 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 54825 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 54826 # a path prefixed by /cygdrive for fixpath to work. 54827 new_path="$CYGWIN_ROOT_PATH$input_path" 54828 fi 54829 fi 54830 54831 54832 if test "x$path" != "x$new_path"; then 54833 MSVC_DLL="$new_path" 54834 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVC_DLL to \"$new_path\"" >&5 54835 $as_echo "$as_me: Rewriting MSVC_DLL to \"$new_path\"" >&6;} 54836 fi 54837 54838 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 54839 54840 path="$MSVC_DLL" 54841 has_colon=`$ECHO $path | $GREP ^.:` 54842 new_path="$path" 54843 if test "x$has_colon" = x; then 54844 # Not in mixed or Windows style, start by that. 54845 new_path=`cmd //c echo $path` 54846 fi 54847 54848 54849 input_path="$new_path" 54850 # Check if we need to convert this using DOS-style short mode. If the path 54851 # contains just simple characters, use it. Otherwise (spaces, weird characters), 54852 # take no chances and rewrite it. 54853 # Note: m4 eats our [], so we need to use [ and ] instead. 54854 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 54855 if test "x$has_forbidden_chars" != x; then 54856 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 54857 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 54858 fi 54859 54860 54861 windows_path="$new_path" 54862 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 54863 unix_path=`$CYGPATH -u "$windows_path"` 54864 new_path="$unix_path" 54865 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 54866 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 54867 new_path="$unix_path" 54868 fi 54869 54870 if test "x$path" != "x$new_path"; then 54871 MSVC_DLL="$new_path" 54872 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVC_DLL to \"$new_path\"" >&5 54873 $as_echo "$as_me: Rewriting MSVC_DLL to \"$new_path\"" >&6;} 54874 fi 54875 54876 # Save the first 10 bytes of this path to the storage, so fixpath can work. 54877 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 54878 54879 else 54880 # We're on a unix platform. Hooray! :) 54881 path="$MSVC_DLL" 54882 has_space=`$ECHO "$path" | $GREP " "` 54883 if test "x$has_space" != x; then 54884 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&5 54885 $as_echo "$as_me: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&6;} 54886 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 54887 fi 54888 54889 # Use eval to expand a potential ~ 54890 eval path="$path" 54891 if test ! -f "$path" && test ! -d "$path"; then 54892 as_fn_error $? "The path of MSVC_DLL, which resolves as \"$path\", is not found." "$LINENO" 5 54893 fi 54894 54895 if test -d "$path"; then 54896 MSVC_DLL="`cd "$path"; $THEPWDCMD -L`" 54897 else 54898 dir="`$DIRNAME "$path"`" 54899 base="`$BASENAME "$path"`" 54900 MSVC_DLL="`cd "$dir"; $THEPWDCMD -L`/$base" 54901 fi 54902 fi 54903 fi 54904 54905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $DLL_NAME" >&5 54906 $as_echo_n "checking for $DLL_NAME... " >&6; } 54907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSVC_DLL" >&5 54908 $as_echo "$MSVC_DLL" >&6; } 54909 else 54910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: incorrect, ignoring" >&5 54911 $as_echo "incorrect, ignoring" >&6; } 54912 { $as_echo "$as_me:${as_lineno-$LINENO}: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&5 54913 $as_echo "$as_me: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&6;} 54914 fi 54915 fi 54916 54917 fi 54918 fi 54919 54920 if test "x$MSVC_DLL" = x; then 54921 # Probe: Search wildly in the VCINSTALLDIR. We've probably lost by now. 54922 # (This was the original behaviour; kept since it might turn something up) 54923 if test "x$CYGWIN_VC_INSTALL_DIR" != x; then 54924 if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then 54925 POSSIBLE_MSVC_DLL=`$FIND "$CYGWIN_VC_INSTALL_DIR" -name $DLL_NAME \ 54926 | $GREP x64 | $HEAD --lines 1` 54927 else 54928 POSSIBLE_MSVC_DLL=`$FIND "$CYGWIN_VC_INSTALL_DIR" -name $DLL_NAME \ 54929 | $GREP x86 | $GREP -v ia64 | $GREP -v x64 | $HEAD --lines 1` 54930 if test "x$POSSIBLE_MSVC_DLL" = x; then 54931 # We're grasping at straws now... 54932 POSSIBLE_MSVC_DLL=`$FIND "$CYGWIN_VC_INSTALL_DIR" -name $DLL_NAME \ 54933 | $HEAD --lines 1` 54934 fi 54935 fi 54936 54937 54938 DLL_NAME="$DLL_NAME" 54939 POSSIBLE_MSVC_DLL="$POSSIBLE_MSVC_DLL" 54940 METHOD="search of VCINSTALLDIR" 54941 if test -n "$POSSIBLE_MSVC_DLL" -a -e "$POSSIBLE_MSVC_DLL"; then 54942 { $as_echo "$as_me:${as_lineno-$LINENO}: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&5 54943 $as_echo "$as_me: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&6;} 54944 54945 # Need to check if the found msvcr is correct architecture 54946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking found $DLL_NAME architecture" >&5 54947 $as_echo_n "checking found $DLL_NAME architecture... " >&6; } 54948 MSVC_DLL_FILETYPE=`$FILE -b "$POSSIBLE_MSVC_DLL"` 54949 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 54950 # The MSYS 'file' command returns "PE32 executable for MS Windows (DLL) (GUI) Intel 80386 32-bit" 54951 # on x32 and "PE32+ executable for MS Windows (DLL) (GUI) Mono/.Net assembly" on x64 systems. 54952 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 54953 CORRECT_MSVCR_ARCH="PE32 executable" 54954 else 54955 CORRECT_MSVCR_ARCH="PE32+ executable" 54956 fi 54957 else 54958 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 54959 CORRECT_MSVCR_ARCH=386 54960 else 54961 CORRECT_MSVCR_ARCH=x86-64 54962 fi 54963 fi 54964 if $ECHO "$MSVC_DLL_FILETYPE" | $GREP "$CORRECT_MSVCR_ARCH" 2>&1 > /dev/null; then 54965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 54966 $as_echo "ok" >&6; } 54967 MSVC_DLL="$POSSIBLE_MSVC_DLL" 54968 54969 # Only process if variable expands to non-empty 54970 54971 if test "x$MSVC_DLL" != x; then 54972 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 54973 54974 # Input might be given as Windows format, start by converting to 54975 # unix format. 54976 path="$MSVC_DLL" 54977 new_path=`$CYGPATH -u "$path"` 54978 54979 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 54980 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 54981 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 54982 # "foo.exe" is OK but "foo" is an error. 54983 # 54984 # This test is therefore slightly more accurate than "test -f" to check for file precense. 54985 # It is also a way to make sure we got the proper file name for the real test later on. 54986 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 54987 if test "x$test_shortpath" = x; then 54988 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&5 54989 $as_echo "$as_me: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&6;} 54990 as_fn_error $? "Cannot locate the the path of MSVC_DLL" "$LINENO" 5 54991 fi 54992 54993 # Call helper function which possibly converts this using DOS-style short mode. 54994 # If so, the updated path is stored in $new_path. 54995 54996 input_path="$new_path" 54997 # Check if we need to convert this using DOS-style short mode. If the path 54998 # contains just simple characters, use it. Otherwise (spaces, weird characters), 54999 # take no chances and rewrite it. 55000 # Note: m4 eats our [], so we need to use [ and ] instead. 55001 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 55002 if test "x$has_forbidden_chars" != x; then 55003 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 55004 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 55005 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 55006 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 55007 # Going to short mode and back again did indeed matter. Since short mode is 55008 # case insensitive, let's make it lowercase to improve readability. 55009 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 55010 # Now convert it back to Unix-style (cygpath) 55011 input_path=`$CYGPATH -u "$shortmode_path"` 55012 new_path="$input_path" 55013 fi 55014 fi 55015 55016 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 55017 if test "x$test_cygdrive_prefix" = x; then 55018 # As a simple fix, exclude /usr/bin since it's not a real path. 55019 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 55020 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 55021 # a path prefixed by /cygdrive for fixpath to work. 55022 new_path="$CYGWIN_ROOT_PATH$input_path" 55023 fi 55024 fi 55025 55026 55027 if test "x$path" != "x$new_path"; then 55028 MSVC_DLL="$new_path" 55029 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVC_DLL to \"$new_path\"" >&5 55030 $as_echo "$as_me: Rewriting MSVC_DLL to \"$new_path\"" >&6;} 55031 fi 55032 55033 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 55034 55035 path="$MSVC_DLL" 55036 has_colon=`$ECHO $path | $GREP ^.:` 55037 new_path="$path" 55038 if test "x$has_colon" = x; then 55039 # Not in mixed or Windows style, start by that. 55040 new_path=`cmd //c echo $path` 55041 fi 55042 55043 55044 input_path="$new_path" 55045 # Check if we need to convert this using DOS-style short mode. If the path 55046 # contains just simple characters, use it. Otherwise (spaces, weird characters), 55047 # take no chances and rewrite it. 55048 # Note: m4 eats our [], so we need to use [ and ] instead. 55049 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 55050 if test "x$has_forbidden_chars" != x; then 55051 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 55052 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 55053 fi 55054 55055 55056 windows_path="$new_path" 55057 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 55058 unix_path=`$CYGPATH -u "$windows_path"` 55059 new_path="$unix_path" 55060 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 55061 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 55062 new_path="$unix_path" 55063 fi 55064 55065 if test "x$path" != "x$new_path"; then 55066 MSVC_DLL="$new_path" 55067 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVC_DLL to \"$new_path\"" >&5 55068 $as_echo "$as_me: Rewriting MSVC_DLL to \"$new_path\"" >&6;} 55069 fi 55070 55071 # Save the first 10 bytes of this path to the storage, so fixpath can work. 55072 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 55073 55074 else 55075 # We're on a unix platform. Hooray! :) 55076 path="$MSVC_DLL" 55077 has_space=`$ECHO "$path" | $GREP " "` 55078 if test "x$has_space" != x; then 55079 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&5 55080 $as_echo "$as_me: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&6;} 55081 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 55082 fi 55083 55084 # Use eval to expand a potential ~ 55085 eval path="$path" 55086 if test ! -f "$path" && test ! -d "$path"; then 55087 as_fn_error $? "The path of MSVC_DLL, which resolves as \"$path\", is not found." "$LINENO" 5 55088 fi 55089 55090 if test -d "$path"; then 55091 MSVC_DLL="`cd "$path"; $THEPWDCMD -L`" 55092 else 55093 dir="`$DIRNAME "$path"`" 55094 base="`$BASENAME "$path"`" 55095 MSVC_DLL="`cd "$dir"; $THEPWDCMD -L`/$base" 55096 fi 55097 fi 55098 fi 55099 55100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $DLL_NAME" >&5 55101 $as_echo_n "checking for $DLL_NAME... " >&6; } 55102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSVC_DLL" >&5 55103 $as_echo "$MSVC_DLL" >&6; } 55104 else 55105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: incorrect, ignoring" >&5 55106 $as_echo "incorrect, ignoring" >&6; } 55107 { $as_echo "$as_me:${as_lineno-$LINENO}: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&5 55108 $as_echo "$as_me: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&6;} 55109 fi 55110 fi 55111 55112 fi 55113 fi 55114 55115 if test "x$MSVC_DLL" = x; then 55116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $DLL_NAME" >&5 55117 $as_echo_n "checking for $DLL_NAME... " >&6; } 55118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 55119 $as_echo "no" >&6; } 55120 as_fn_error $? "Could not find $DLL_NAME. Please specify using --with-msvcr-dll." "$LINENO" 5 55121 fi 55122 55123 MSVCR_DLL="$MSVC_DLL" 55124 fi 55125 55126 55127 55128 # Check whether --with-msvcp-dll was given. 55129 if test "${with_msvcp_dll+set}" = set; then : 55130 withval=$with_msvcp_dll; 55131 fi 55132 55133 55134 if test "x$MSVCP_NAME" != "x"; then 55135 if test "x$with_msvcp_dll" != x; then 55136 # If given explicitely by user, do not probe. If not present, fail directly. 55137 55138 DLL_NAME="$MSVCP_NAME" 55139 POSSIBLE_MSVC_DLL="$with_msvcp_dll" 55140 METHOD="--with-msvcp-dll" 55141 if test -n "$POSSIBLE_MSVC_DLL" -a -e "$POSSIBLE_MSVC_DLL"; then 55142 { $as_echo "$as_me:${as_lineno-$LINENO}: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&5 55143 $as_echo "$as_me: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&6;} 55144 55145 # Need to check if the found msvcr is correct architecture 55146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking found $DLL_NAME architecture" >&5 55147 $as_echo_n "checking found $DLL_NAME architecture... " >&6; } 55148 MSVC_DLL_FILETYPE=`$FILE -b "$POSSIBLE_MSVC_DLL"` 55149 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 55150 # The MSYS 'file' command returns "PE32 executable for MS Windows (DLL) (GUI) Intel 80386 32-bit" 55151 # on x32 and "PE32+ executable for MS Windows (DLL) (GUI) Mono/.Net assembly" on x64 systems. 55152 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 55153 CORRECT_MSVCR_ARCH="PE32 executable" 55154 else 55155 CORRECT_MSVCR_ARCH="PE32+ executable" 55156 fi 55157 else 55158 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 55159 CORRECT_MSVCR_ARCH=386 55160 else 55161 CORRECT_MSVCR_ARCH=x86-64 55162 fi 55163 fi 55164 if $ECHO "$MSVC_DLL_FILETYPE" | $GREP "$CORRECT_MSVCR_ARCH" 2>&1 > /dev/null; then 55165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 55166 $as_echo "ok" >&6; } 55167 MSVC_DLL="$POSSIBLE_MSVC_DLL" 55168 55169 # Only process if variable expands to non-empty 55170 55171 if test "x$MSVC_DLL" != x; then 55172 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 55173 55174 # Input might be given as Windows format, start by converting to 55175 # unix format. 55176 path="$MSVC_DLL" 55177 new_path=`$CYGPATH -u "$path"` 55178 55179 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 55180 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 55181 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 55182 # "foo.exe" is OK but "foo" is an error. 55183 # 55184 # This test is therefore slightly more accurate than "test -f" to check for file precense. 55185 # It is also a way to make sure we got the proper file name for the real test later on. 55186 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 55187 if test "x$test_shortpath" = x; then 55188 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&5 55189 $as_echo "$as_me: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&6;} 55190 as_fn_error $? "Cannot locate the the path of MSVC_DLL" "$LINENO" 5 55191 fi 55192 55193 # Call helper function which possibly converts this using DOS-style short mode. 55194 # If so, the updated path is stored in $new_path. 55195 55196 input_path="$new_path" 55197 # Check if we need to convert this using DOS-style short mode. If the path 55198 # contains just simple characters, use it. Otherwise (spaces, weird characters), 55199 # take no chances and rewrite it. 55200 # Note: m4 eats our [], so we need to use [ and ] instead. 55201 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 55202 if test "x$has_forbidden_chars" != x; then 55203 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 55204 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 55205 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 55206 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 55207 # Going to short mode and back again did indeed matter. Since short mode is 55208 # case insensitive, let's make it lowercase to improve readability. 55209 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 55210 # Now convert it back to Unix-style (cygpath) 55211 input_path=`$CYGPATH -u "$shortmode_path"` 55212 new_path="$input_path" 55213 fi 55214 fi 55215 55216 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 55217 if test "x$test_cygdrive_prefix" = x; then 55218 # As a simple fix, exclude /usr/bin since it's not a real path. 55219 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 55220 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 55221 # a path prefixed by /cygdrive for fixpath to work. 55222 new_path="$CYGWIN_ROOT_PATH$input_path" 55223 fi 55224 fi 55225 55226 55227 if test "x$path" != "x$new_path"; then 55228 MSVC_DLL="$new_path" 55229 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVC_DLL to \"$new_path\"" >&5 55230 $as_echo "$as_me: Rewriting MSVC_DLL to \"$new_path\"" >&6;} 55231 fi 55232 55233 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 55234 55235 path="$MSVC_DLL" 55236 has_colon=`$ECHO $path | $GREP ^.:` 55237 new_path="$path" 55238 if test "x$has_colon" = x; then 55239 # Not in mixed or Windows style, start by that. 55240 new_path=`cmd //c echo $path` 55241 fi 55242 55243 55244 input_path="$new_path" 55245 # Check if we need to convert this using DOS-style short mode. If the path 55246 # contains just simple characters, use it. Otherwise (spaces, weird characters), 55247 # take no chances and rewrite it. 55248 # Note: m4 eats our [], so we need to use [ and ] instead. 55249 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 55250 if test "x$has_forbidden_chars" != x; then 55251 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 55252 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 55253 fi 55254 55255 55256 windows_path="$new_path" 55257 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 55258 unix_path=`$CYGPATH -u "$windows_path"` 55259 new_path="$unix_path" 55260 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 55261 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 55262 new_path="$unix_path" 55263 fi 55264 55265 if test "x$path" != "x$new_path"; then 55266 MSVC_DLL="$new_path" 55267 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVC_DLL to \"$new_path\"" >&5 55268 $as_echo "$as_me: Rewriting MSVC_DLL to \"$new_path\"" >&6;} 55269 fi 55270 55271 # Save the first 10 bytes of this path to the storage, so fixpath can work. 55272 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 55273 55274 else 55275 # We're on a unix platform. Hooray! :) 55276 path="$MSVC_DLL" 55277 has_space=`$ECHO "$path" | $GREP " "` 55278 if test "x$has_space" != x; then 55279 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&5 55280 $as_echo "$as_me: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&6;} 55281 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 55282 fi 55283 55284 # Use eval to expand a potential ~ 55285 eval path="$path" 55286 if test ! -f "$path" && test ! -d "$path"; then 55287 as_fn_error $? "The path of MSVC_DLL, which resolves as \"$path\", is not found." "$LINENO" 5 55288 fi 55289 55290 if test -d "$path"; then 55291 MSVC_DLL="`cd "$path"; $THEPWDCMD -L`" 55292 else 55293 dir="`$DIRNAME "$path"`" 55294 base="`$BASENAME "$path"`" 55295 MSVC_DLL="`cd "$dir"; $THEPWDCMD -L`/$base" 55296 fi 55297 fi 55298 fi 55299 55300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $DLL_NAME" >&5 55301 $as_echo_n "checking for $DLL_NAME... " >&6; } 55302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSVC_DLL" >&5 55303 $as_echo "$MSVC_DLL" >&6; } 55304 else 55305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: incorrect, ignoring" >&5 55306 $as_echo "incorrect, ignoring" >&6; } 55307 { $as_echo "$as_me:${as_lineno-$LINENO}: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&5 55308 $as_echo "$as_me: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&6;} 55309 fi 55310 fi 55311 55312 if test "x$MSVC_DLL" = x; then 55313 as_fn_error $? "Could not find a proper $MSVCP_NAME as specified by --with-msvcp-dll" "$LINENO" 5 55314 fi 55315 MSVCP_DLL="$MSVC_DLL" 55316 elif test "x$DEVKIT_MSVCP_DLL" != x; then 55317 55318 DLL_NAME="$MSVCP_NAME" 55319 POSSIBLE_MSVC_DLL="$DEVKIT_MSVCP_DLL" 55320 METHOD="devkit" 55321 if test -n "$POSSIBLE_MSVC_DLL" -a -e "$POSSIBLE_MSVC_DLL"; then 55322 { $as_echo "$as_me:${as_lineno-$LINENO}: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&5 55323 $as_echo "$as_me: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&6;} 55324 55325 # Need to check if the found msvcr is correct architecture 55326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking found $DLL_NAME architecture" >&5 55327 $as_echo_n "checking found $DLL_NAME architecture... " >&6; } 55328 MSVC_DLL_FILETYPE=`$FILE -b "$POSSIBLE_MSVC_DLL"` 55329 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 55330 # The MSYS 'file' command returns "PE32 executable for MS Windows (DLL) (GUI) Intel 80386 32-bit" 55331 # on x32 and "PE32+ executable for MS Windows (DLL) (GUI) Mono/.Net assembly" on x64 systems. 55332 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 55333 CORRECT_MSVCR_ARCH="PE32 executable" 55334 else 55335 CORRECT_MSVCR_ARCH="PE32+ executable" 55336 fi 55337 else 55338 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 55339 CORRECT_MSVCR_ARCH=386 55340 else 55341 CORRECT_MSVCR_ARCH=x86-64 55342 fi 55343 fi 55344 if $ECHO "$MSVC_DLL_FILETYPE" | $GREP "$CORRECT_MSVCR_ARCH" 2>&1 > /dev/null; then 55345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 55346 $as_echo "ok" >&6; } 55347 MSVC_DLL="$POSSIBLE_MSVC_DLL" 55348 55349 # Only process if variable expands to non-empty 55350 55351 if test "x$MSVC_DLL" != x; then 55352 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 55353 55354 # Input might be given as Windows format, start by converting to 55355 # unix format. 55356 path="$MSVC_DLL" 55357 new_path=`$CYGPATH -u "$path"` 55358 55359 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 55360 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 55361 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 55362 # "foo.exe" is OK but "foo" is an error. 55363 # 55364 # This test is therefore slightly more accurate than "test -f" to check for file precense. 55365 # It is also a way to make sure we got the proper file name for the real test later on. 55366 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 55367 if test "x$test_shortpath" = x; then 55368 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&5 55369 $as_echo "$as_me: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&6;} 55370 as_fn_error $? "Cannot locate the the path of MSVC_DLL" "$LINENO" 5 55371 fi 55372 55373 # Call helper function which possibly converts this using DOS-style short mode. 55374 # If so, the updated path is stored in $new_path. 55375 55376 input_path="$new_path" 55377 # Check if we need to convert this using DOS-style short mode. If the path 55378 # contains just simple characters, use it. Otherwise (spaces, weird characters), 55379 # take no chances and rewrite it. 55380 # Note: m4 eats our [], so we need to use [ and ] instead. 55381 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 55382 if test "x$has_forbidden_chars" != x; then 55383 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 55384 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 55385 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 55386 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 55387 # Going to short mode and back again did indeed matter. Since short mode is 55388 # case insensitive, let's make it lowercase to improve readability. 55389 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 55390 # Now convert it back to Unix-style (cygpath) 55391 input_path=`$CYGPATH -u "$shortmode_path"` 55392 new_path="$input_path" 55393 fi 55394 fi 55395 55396 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 55397 if test "x$test_cygdrive_prefix" = x; then 55398 # As a simple fix, exclude /usr/bin since it's not a real path. 55399 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 55400 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 55401 # a path prefixed by /cygdrive for fixpath to work. 55402 new_path="$CYGWIN_ROOT_PATH$input_path" 55403 fi 55404 fi 55405 55406 55407 if test "x$path" != "x$new_path"; then 55408 MSVC_DLL="$new_path" 55409 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVC_DLL to \"$new_path\"" >&5 55410 $as_echo "$as_me: Rewriting MSVC_DLL to \"$new_path\"" >&6;} 55411 fi 55412 55413 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 55414 55415 path="$MSVC_DLL" 55416 has_colon=`$ECHO $path | $GREP ^.:` 55417 new_path="$path" 55418 if test "x$has_colon" = x; then 55419 # Not in mixed or Windows style, start by that. 55420 new_path=`cmd //c echo $path` 55421 fi 55422 55423 55424 input_path="$new_path" 55425 # Check if we need to convert this using DOS-style short mode. If the path 55426 # contains just simple characters, use it. Otherwise (spaces, weird characters), 55427 # take no chances and rewrite it. 55428 # Note: m4 eats our [], so we need to use [ and ] instead. 55429 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 55430 if test "x$has_forbidden_chars" != x; then 55431 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 55432 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 55433 fi 55434 55435 55436 windows_path="$new_path" 55437 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 55438 unix_path=`$CYGPATH -u "$windows_path"` 55439 new_path="$unix_path" 55440 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 55441 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 55442 new_path="$unix_path" 55443 fi 55444 55445 if test "x$path" != "x$new_path"; then 55446 MSVC_DLL="$new_path" 55447 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVC_DLL to \"$new_path\"" >&5 55448 $as_echo "$as_me: Rewriting MSVC_DLL to \"$new_path\"" >&6;} 55449 fi 55450 55451 # Save the first 10 bytes of this path to the storage, so fixpath can work. 55452 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 55453 55454 else 55455 # We're on a unix platform. Hooray! :) 55456 path="$MSVC_DLL" 55457 has_space=`$ECHO "$path" | $GREP " "` 55458 if test "x$has_space" != x; then 55459 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&5 55460 $as_echo "$as_me: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&6;} 55461 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 55462 fi 55463 55464 # Use eval to expand a potential ~ 55465 eval path="$path" 55466 if test ! -f "$path" && test ! -d "$path"; then 55467 as_fn_error $? "The path of MSVC_DLL, which resolves as \"$path\", is not found." "$LINENO" 5 55468 fi 55469 55470 if test -d "$path"; then 55471 MSVC_DLL="`cd "$path"; $THEPWDCMD -L`" 55472 else 55473 dir="`$DIRNAME "$path"`" 55474 base="`$BASENAME "$path"`" 55475 MSVC_DLL="`cd "$dir"; $THEPWDCMD -L`/$base" 55476 fi 55477 fi 55478 fi 55479 55480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $DLL_NAME" >&5 55481 $as_echo_n "checking for $DLL_NAME... " >&6; } 55482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSVC_DLL" >&5 55483 $as_echo "$MSVC_DLL" >&6; } 55484 else 55485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: incorrect, ignoring" >&5 55486 $as_echo "incorrect, ignoring" >&6; } 55487 { $as_echo "$as_me:${as_lineno-$LINENO}: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&5 55488 $as_echo "$as_me: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&6;} 55489 fi 55490 fi 55491 55492 if test "x$MSVC_DLL" = x; then 55493 as_fn_error $? "Could not find a proper $MSVCP_NAME as specified by devkit" "$LINENO" 5 55494 fi 55495 MSVCP_DLL="$MSVC_DLL" 55496 else 55497 55498 DLL_NAME="${MSVCP_NAME}" 55499 MSVC_DLL= 55500 55501 if test "x$MSVC_DLL" = x; then 55502 # Probe: Using well-known location from Visual Studio 10.0 55503 if test "x$VCINSTALLDIR" != x; then 55504 CYGWIN_VC_INSTALL_DIR="$VCINSTALLDIR" 55505 55506 windows_path="$CYGWIN_VC_INSTALL_DIR" 55507 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 55508 unix_path=`$CYGPATH -u "$windows_path"` 55509 CYGWIN_VC_INSTALL_DIR="$unix_path" 55510 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 55511 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 55512 CYGWIN_VC_INSTALL_DIR="$unix_path" 55513 fi 55514 55515 if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then 55516 POSSIBLE_MSVC_DLL="$CYGWIN_VC_INSTALL_DIR/redist/x64/Microsoft.VC${VS_VERSION_INTERNAL}.CRT/$DLL_NAME" 55517 else 55518 POSSIBLE_MSVC_DLL="$CYGWIN_VC_INSTALL_DIR/redist/x86/Microsoft.VC${VS_VERSION_INTERNAL}.CRT/$DLL_NAME" 55519 fi 55520 $ECHO "POSSIBLE_MSVC_DLL $POSSIBLEMSVC_DLL" 55521 55522 DLL_NAME="$DLL_NAME" 55523 POSSIBLE_MSVC_DLL="$POSSIBLE_MSVC_DLL" 55524 METHOD="well-known location in VCINSTALLDIR" 55525 if test -n "$POSSIBLE_MSVC_DLL" -a -e "$POSSIBLE_MSVC_DLL"; then 55526 { $as_echo "$as_me:${as_lineno-$LINENO}: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&5 55527 $as_echo "$as_me: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&6;} 55528 55529 # Need to check if the found msvcr is correct architecture 55530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking found $DLL_NAME architecture" >&5 55531 $as_echo_n "checking found $DLL_NAME architecture... " >&6; } 55532 MSVC_DLL_FILETYPE=`$FILE -b "$POSSIBLE_MSVC_DLL"` 55533 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 55534 # The MSYS 'file' command returns "PE32 executable for MS Windows (DLL) (GUI) Intel 80386 32-bit" 55535 # on x32 and "PE32+ executable for MS Windows (DLL) (GUI) Mono/.Net assembly" on x64 systems. 55536 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 55537 CORRECT_MSVCR_ARCH="PE32 executable" 55538 else 55539 CORRECT_MSVCR_ARCH="PE32+ executable" 55540 fi 55541 else 55542 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 55543 CORRECT_MSVCR_ARCH=386 55544 else 55545 CORRECT_MSVCR_ARCH=x86-64 55546 fi 55547 fi 55548 if $ECHO "$MSVC_DLL_FILETYPE" | $GREP "$CORRECT_MSVCR_ARCH" 2>&1 > /dev/null; then 55549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 55550 $as_echo "ok" >&6; } 55551 MSVC_DLL="$POSSIBLE_MSVC_DLL" 55552 55553 # Only process if variable expands to non-empty 55554 55555 if test "x$MSVC_DLL" != x; then 55556 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 55557 55558 # Input might be given as Windows format, start by converting to 55559 # unix format. 55560 path="$MSVC_DLL" 55561 new_path=`$CYGPATH -u "$path"` 55562 55563 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 55564 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 55565 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 55566 # "foo.exe" is OK but "foo" is an error. 55567 # 55568 # This test is therefore slightly more accurate than "test -f" to check for file precense. 55569 # It is also a way to make sure we got the proper file name for the real test later on. 55570 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 55571 if test "x$test_shortpath" = x; then 55572 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&5 55573 $as_echo "$as_me: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&6;} 55574 as_fn_error $? "Cannot locate the the path of MSVC_DLL" "$LINENO" 5 55575 fi 55576 55577 # Call helper function which possibly converts this using DOS-style short mode. 55578 # If so, the updated path is stored in $new_path. 55579 55580 input_path="$new_path" 55581 # Check if we need to convert this using DOS-style short mode. If the path 55582 # contains just simple characters, use it. Otherwise (spaces, weird characters), 55583 # take no chances and rewrite it. 55584 # Note: m4 eats our [], so we need to use [ and ] instead. 55585 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 55586 if test "x$has_forbidden_chars" != x; then 55587 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 55588 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 55589 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 55590 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 55591 # Going to short mode and back again did indeed matter. Since short mode is 55592 # case insensitive, let's make it lowercase to improve readability. 55593 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 55594 # Now convert it back to Unix-style (cygpath) 55595 input_path=`$CYGPATH -u "$shortmode_path"` 55596 new_path="$input_path" 55597 fi 55598 fi 55599 55600 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 55601 if test "x$test_cygdrive_prefix" = x; then 55602 # As a simple fix, exclude /usr/bin since it's not a real path. 55603 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 55604 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 55605 # a path prefixed by /cygdrive for fixpath to work. 55606 new_path="$CYGWIN_ROOT_PATH$input_path" 55607 fi 55608 fi 55609 55610 55611 if test "x$path" != "x$new_path"; then 55612 MSVC_DLL="$new_path" 55613 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVC_DLL to \"$new_path\"" >&5 55614 $as_echo "$as_me: Rewriting MSVC_DLL to \"$new_path\"" >&6;} 55615 fi 55616 55617 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 55618 55619 path="$MSVC_DLL" 55620 has_colon=`$ECHO $path | $GREP ^.:` 55621 new_path="$path" 55622 if test "x$has_colon" = x; then 55623 # Not in mixed or Windows style, start by that. 55624 new_path=`cmd //c echo $path` 55625 fi 55626 55627 55628 input_path="$new_path" 55629 # Check if we need to convert this using DOS-style short mode. If the path 55630 # contains just simple characters, use it. Otherwise (spaces, weird characters), 55631 # take no chances and rewrite it. 55632 # Note: m4 eats our [], so we need to use [ and ] instead. 55633 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 55634 if test "x$has_forbidden_chars" != x; then 55635 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 55636 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 55637 fi 55638 55639 55640 windows_path="$new_path" 55641 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 55642 unix_path=`$CYGPATH -u "$windows_path"` 55643 new_path="$unix_path" 55644 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 55645 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 55646 new_path="$unix_path" 55647 fi 55648 55649 if test "x$path" != "x$new_path"; then 55650 MSVC_DLL="$new_path" 55651 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVC_DLL to \"$new_path\"" >&5 55652 $as_echo "$as_me: Rewriting MSVC_DLL to \"$new_path\"" >&6;} 55653 fi 55654 55655 # Save the first 10 bytes of this path to the storage, so fixpath can work. 55656 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 55657 55658 else 55659 # We're on a unix platform. Hooray! :) 55660 path="$MSVC_DLL" 55661 has_space=`$ECHO "$path" | $GREP " "` 55662 if test "x$has_space" != x; then 55663 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&5 55664 $as_echo "$as_me: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&6;} 55665 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 55666 fi 55667 55668 # Use eval to expand a potential ~ 55669 eval path="$path" 55670 if test ! -f "$path" && test ! -d "$path"; then 55671 as_fn_error $? "The path of MSVC_DLL, which resolves as \"$path\", is not found." "$LINENO" 5 55672 fi 55673 55674 if test -d "$path"; then 55675 MSVC_DLL="`cd "$path"; $THEPWDCMD -L`" 55676 else 55677 dir="`$DIRNAME "$path"`" 55678 base="`$BASENAME "$path"`" 55679 MSVC_DLL="`cd "$dir"; $THEPWDCMD -L`/$base" 55680 fi 55681 fi 55682 fi 55683 55684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $DLL_NAME" >&5 55685 $as_echo_n "checking for $DLL_NAME... " >&6; } 55686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSVC_DLL" >&5 55687 $as_echo "$MSVC_DLL" >&6; } 55688 else 55689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: incorrect, ignoring" >&5 55690 $as_echo "incorrect, ignoring" >&6; } 55691 { $as_echo "$as_me:${as_lineno-$LINENO}: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&5 55692 $as_echo "$as_me: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&6;} 55693 fi 55694 fi 55695 55696 fi 55697 fi 55698 55699 if test "x$MSVC_DLL" = x; then 55700 # Probe: Check in the Boot JDK directory. 55701 POSSIBLE_MSVC_DLL="$BOOT_JDK/bin/$DLL_NAME" 55702 55703 DLL_NAME="$DLL_NAME" 55704 POSSIBLE_MSVC_DLL="$POSSIBLE_MSVC_DLL" 55705 METHOD="well-known location in Boot JDK" 55706 if test -n "$POSSIBLE_MSVC_DLL" -a -e "$POSSIBLE_MSVC_DLL"; then 55707 { $as_echo "$as_me:${as_lineno-$LINENO}: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&5 55708 $as_echo "$as_me: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&6;} 55709 55710 # Need to check if the found msvcr is correct architecture 55711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking found $DLL_NAME architecture" >&5 55712 $as_echo_n "checking found $DLL_NAME architecture... " >&6; } 55713 MSVC_DLL_FILETYPE=`$FILE -b "$POSSIBLE_MSVC_DLL"` 55714 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 55715 # The MSYS 'file' command returns "PE32 executable for MS Windows (DLL) (GUI) Intel 80386 32-bit" 55716 # on x32 and "PE32+ executable for MS Windows (DLL) (GUI) Mono/.Net assembly" on x64 systems. 55717 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 55718 CORRECT_MSVCR_ARCH="PE32 executable" 55719 else 55720 CORRECT_MSVCR_ARCH="PE32+ executable" 55721 fi 55722 else 55723 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 55724 CORRECT_MSVCR_ARCH=386 55725 else 55726 CORRECT_MSVCR_ARCH=x86-64 55727 fi 55728 fi 55729 if $ECHO "$MSVC_DLL_FILETYPE" | $GREP "$CORRECT_MSVCR_ARCH" 2>&1 > /dev/null; then 55730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 55731 $as_echo "ok" >&6; } 55732 MSVC_DLL="$POSSIBLE_MSVC_DLL" 55733 55734 # Only process if variable expands to non-empty 55735 55736 if test "x$MSVC_DLL" != x; then 55737 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 55738 55739 # Input might be given as Windows format, start by converting to 55740 # unix format. 55741 path="$MSVC_DLL" 55742 new_path=`$CYGPATH -u "$path"` 55743 55744 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 55745 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 55746 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 55747 # "foo.exe" is OK but "foo" is an error. 55748 # 55749 # This test is therefore slightly more accurate than "test -f" to check for file precense. 55750 # It is also a way to make sure we got the proper file name for the real test later on. 55751 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 55752 if test "x$test_shortpath" = x; then 55753 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&5 55754 $as_echo "$as_me: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&6;} 55755 as_fn_error $? "Cannot locate the the path of MSVC_DLL" "$LINENO" 5 55756 fi 55757 55758 # Call helper function which possibly converts this using DOS-style short mode. 55759 # If so, the updated path is stored in $new_path. 55760 55761 input_path="$new_path" 55762 # Check if we need to convert this using DOS-style short mode. If the path 55763 # contains just simple characters, use it. Otherwise (spaces, weird characters), 55764 # take no chances and rewrite it. 55765 # Note: m4 eats our [], so we need to use [ and ] instead. 55766 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 55767 if test "x$has_forbidden_chars" != x; then 55768 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 55769 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 55770 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 55771 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 55772 # Going to short mode and back again did indeed matter. Since short mode is 55773 # case insensitive, let's make it lowercase to improve readability. 55774 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 55775 # Now convert it back to Unix-style (cygpath) 55776 input_path=`$CYGPATH -u "$shortmode_path"` 55777 new_path="$input_path" 55778 fi 55779 fi 55780 55781 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 55782 if test "x$test_cygdrive_prefix" = x; then 55783 # As a simple fix, exclude /usr/bin since it's not a real path. 55784 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 55785 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 55786 # a path prefixed by /cygdrive for fixpath to work. 55787 new_path="$CYGWIN_ROOT_PATH$input_path" 55788 fi 55789 fi 55790 55791 55792 if test "x$path" != "x$new_path"; then 55793 MSVC_DLL="$new_path" 55794 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVC_DLL to \"$new_path\"" >&5 55795 $as_echo "$as_me: Rewriting MSVC_DLL to \"$new_path\"" >&6;} 55796 fi 55797 55798 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 55799 55800 path="$MSVC_DLL" 55801 has_colon=`$ECHO $path | $GREP ^.:` 55802 new_path="$path" 55803 if test "x$has_colon" = x; then 55804 # Not in mixed or Windows style, start by that. 55805 new_path=`cmd //c echo $path` 55806 fi 55807 55808 55809 input_path="$new_path" 55810 # Check if we need to convert this using DOS-style short mode. If the path 55811 # contains just simple characters, use it. Otherwise (spaces, weird characters), 55812 # take no chances and rewrite it. 55813 # Note: m4 eats our [], so we need to use [ and ] instead. 55814 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 55815 if test "x$has_forbidden_chars" != x; then 55816 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 55817 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 55818 fi 55819 55820 55821 windows_path="$new_path" 55822 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 55823 unix_path=`$CYGPATH -u "$windows_path"` 55824 new_path="$unix_path" 55825 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 55826 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 55827 new_path="$unix_path" 55828 fi 55829 55830 if test "x$path" != "x$new_path"; then 55831 MSVC_DLL="$new_path" 55832 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVC_DLL to \"$new_path\"" >&5 55833 $as_echo "$as_me: Rewriting MSVC_DLL to \"$new_path\"" >&6;} 55834 fi 55835 55836 # Save the first 10 bytes of this path to the storage, so fixpath can work. 55837 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 55838 55839 else 55840 # We're on a unix platform. Hooray! :) 55841 path="$MSVC_DLL" 55842 has_space=`$ECHO "$path" | $GREP " "` 55843 if test "x$has_space" != x; then 55844 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&5 55845 $as_echo "$as_me: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&6;} 55846 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 55847 fi 55848 55849 # Use eval to expand a potential ~ 55850 eval path="$path" 55851 if test ! -f "$path" && test ! -d "$path"; then 55852 as_fn_error $? "The path of MSVC_DLL, which resolves as \"$path\", is not found." "$LINENO" 5 55853 fi 55854 55855 if test -d "$path"; then 55856 MSVC_DLL="`cd "$path"; $THEPWDCMD -L`" 55857 else 55858 dir="`$DIRNAME "$path"`" 55859 base="`$BASENAME "$path"`" 55860 MSVC_DLL="`cd "$dir"; $THEPWDCMD -L`/$base" 55861 fi 55862 fi 55863 fi 55864 55865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $DLL_NAME" >&5 55866 $as_echo_n "checking for $DLL_NAME... " >&6; } 55867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSVC_DLL" >&5 55868 $as_echo "$MSVC_DLL" >&6; } 55869 else 55870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: incorrect, ignoring" >&5 55871 $as_echo "incorrect, ignoring" >&6; } 55872 { $as_echo "$as_me:${as_lineno-$LINENO}: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&5 55873 $as_echo "$as_me: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&6;} 55874 fi 55875 fi 55876 55877 fi 55878 55879 if test "x$MSVC_DLL" = x; then 55880 # Probe: Look in the Windows system32 directory 55881 CYGWIN_SYSTEMROOT="$SYSTEMROOT" 55882 55883 windows_path="$CYGWIN_SYSTEMROOT" 55884 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 55885 unix_path=`$CYGPATH -u "$windows_path"` 55886 CYGWIN_SYSTEMROOT="$unix_path" 55887 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 55888 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 55889 CYGWIN_SYSTEMROOT="$unix_path" 55890 fi 55891 55892 POSSIBLE_MSVC_DLL="$CYGWIN_SYSTEMROOT/system32/$DLL_NAME" 55893 55894 DLL_NAME="$DLL_NAME" 55895 POSSIBLE_MSVC_DLL="$POSSIBLE_MSVC_DLL" 55896 METHOD="well-known location in SYSTEMROOT" 55897 if test -n "$POSSIBLE_MSVC_DLL" -a -e "$POSSIBLE_MSVC_DLL"; then 55898 { $as_echo "$as_me:${as_lineno-$LINENO}: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&5 55899 $as_echo "$as_me: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&6;} 55900 55901 # Need to check if the found msvcr is correct architecture 55902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking found $DLL_NAME architecture" >&5 55903 $as_echo_n "checking found $DLL_NAME architecture... " >&6; } 55904 MSVC_DLL_FILETYPE=`$FILE -b "$POSSIBLE_MSVC_DLL"` 55905 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 55906 # The MSYS 'file' command returns "PE32 executable for MS Windows (DLL) (GUI) Intel 80386 32-bit" 55907 # on x32 and "PE32+ executable for MS Windows (DLL) (GUI) Mono/.Net assembly" on x64 systems. 55908 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 55909 CORRECT_MSVCR_ARCH="PE32 executable" 55910 else 55911 CORRECT_MSVCR_ARCH="PE32+ executable" 55912 fi 55913 else 55914 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 55915 CORRECT_MSVCR_ARCH=386 55916 else 55917 CORRECT_MSVCR_ARCH=x86-64 55918 fi 55919 fi 55920 if $ECHO "$MSVC_DLL_FILETYPE" | $GREP "$CORRECT_MSVCR_ARCH" 2>&1 > /dev/null; then 55921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 55922 $as_echo "ok" >&6; } 55923 MSVC_DLL="$POSSIBLE_MSVC_DLL" 55924 55925 # Only process if variable expands to non-empty 55926 55927 if test "x$MSVC_DLL" != x; then 55928 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 55929 55930 # Input might be given as Windows format, start by converting to 55931 # unix format. 55932 path="$MSVC_DLL" 55933 new_path=`$CYGPATH -u "$path"` 55934 55935 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 55936 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 55937 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 55938 # "foo.exe" is OK but "foo" is an error. 55939 # 55940 # This test is therefore slightly more accurate than "test -f" to check for file precense. 55941 # It is also a way to make sure we got the proper file name for the real test later on. 55942 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 55943 if test "x$test_shortpath" = x; then 55944 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&5 55945 $as_echo "$as_me: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&6;} 55946 as_fn_error $? "Cannot locate the the path of MSVC_DLL" "$LINENO" 5 55947 fi 55948 55949 # Call helper function which possibly converts this using DOS-style short mode. 55950 # If so, the updated path is stored in $new_path. 55951 55952 input_path="$new_path" 55953 # Check if we need to convert this using DOS-style short mode. If the path 55954 # contains just simple characters, use it. Otherwise (spaces, weird characters), 55955 # take no chances and rewrite it. 55956 # Note: m4 eats our [], so we need to use [ and ] instead. 55957 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 55958 if test "x$has_forbidden_chars" != x; then 55959 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 55960 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 55961 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 55962 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 55963 # Going to short mode and back again did indeed matter. Since short mode is 55964 # case insensitive, let's make it lowercase to improve readability. 55965 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 55966 # Now convert it back to Unix-style (cygpath) 55967 input_path=`$CYGPATH -u "$shortmode_path"` 55968 new_path="$input_path" 55969 fi 55970 fi 55971 55972 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 55973 if test "x$test_cygdrive_prefix" = x; then 55974 # As a simple fix, exclude /usr/bin since it's not a real path. 55975 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 55976 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 55977 # a path prefixed by /cygdrive for fixpath to work. 55978 new_path="$CYGWIN_ROOT_PATH$input_path" 55979 fi 55980 fi 55981 55982 55983 if test "x$path" != "x$new_path"; then 55984 MSVC_DLL="$new_path" 55985 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVC_DLL to \"$new_path\"" >&5 55986 $as_echo "$as_me: Rewriting MSVC_DLL to \"$new_path\"" >&6;} 55987 fi 55988 55989 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 55990 55991 path="$MSVC_DLL" 55992 has_colon=`$ECHO $path | $GREP ^.:` 55993 new_path="$path" 55994 if test "x$has_colon" = x; then 55995 # Not in mixed or Windows style, start by that. 55996 new_path=`cmd //c echo $path` 55997 fi 55998 55999 56000 input_path="$new_path" 56001 # Check if we need to convert this using DOS-style short mode. If the path 56002 # contains just simple characters, use it. Otherwise (spaces, weird characters), 56003 # take no chances and rewrite it. 56004 # Note: m4 eats our [], so we need to use [ and ] instead. 56005 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 56006 if test "x$has_forbidden_chars" != x; then 56007 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 56008 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 56009 fi 56010 56011 56012 windows_path="$new_path" 56013 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 56014 unix_path=`$CYGPATH -u "$windows_path"` 56015 new_path="$unix_path" 56016 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 56017 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 56018 new_path="$unix_path" 56019 fi 56020 56021 if test "x$path" != "x$new_path"; then 56022 MSVC_DLL="$new_path" 56023 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVC_DLL to \"$new_path\"" >&5 56024 $as_echo "$as_me: Rewriting MSVC_DLL to \"$new_path\"" >&6;} 56025 fi 56026 56027 # Save the first 10 bytes of this path to the storage, so fixpath can work. 56028 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 56029 56030 else 56031 # We're on a unix platform. Hooray! :) 56032 path="$MSVC_DLL" 56033 has_space=`$ECHO "$path" | $GREP " "` 56034 if test "x$has_space" != x; then 56035 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&5 56036 $as_echo "$as_me: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&6;} 56037 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 56038 fi 56039 56040 # Use eval to expand a potential ~ 56041 eval path="$path" 56042 if test ! -f "$path" && test ! -d "$path"; then 56043 as_fn_error $? "The path of MSVC_DLL, which resolves as \"$path\", is not found." "$LINENO" 5 56044 fi 56045 56046 if test -d "$path"; then 56047 MSVC_DLL="`cd "$path"; $THEPWDCMD -L`" 56048 else 56049 dir="`$DIRNAME "$path"`" 56050 base="`$BASENAME "$path"`" 56051 MSVC_DLL="`cd "$dir"; $THEPWDCMD -L`/$base" 56052 fi 56053 fi 56054 fi 56055 56056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $DLL_NAME" >&5 56057 $as_echo_n "checking for $DLL_NAME... " >&6; } 56058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSVC_DLL" >&5 56059 $as_echo "$MSVC_DLL" >&6; } 56060 else 56061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: incorrect, ignoring" >&5 56062 $as_echo "incorrect, ignoring" >&6; } 56063 { $as_echo "$as_me:${as_lineno-$LINENO}: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&5 56064 $as_echo "$as_me: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&6;} 56065 fi 56066 fi 56067 56068 fi 56069 56070 if test "x$MSVC_DLL" = x; then 56071 # Probe: If Visual Studio Express is installed, there is usually one with the debugger 56072 if test "x$VS100COMNTOOLS" != x; then 56073 CYGWIN_VS_TOOLS_DIR="$VS100COMNTOOLS/.." 56074 56075 windows_path="$CYGWIN_VS_TOOLS_DIR" 56076 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 56077 unix_path=`$CYGPATH -u "$windows_path"` 56078 CYGWIN_VS_TOOLS_DIR="$unix_path" 56079 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 56080 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 56081 CYGWIN_VS_TOOLS_DIR="$unix_path" 56082 fi 56083 56084 if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then 56085 POSSIBLE_MSVC_DLL=`$FIND "$CYGWIN_VS_TOOLS_DIR" -name $DLL_NAME \ 56086 | $GREP -i /x64/ | $HEAD --lines 1` 56087 else 56088 POSSIBLE_MSVC_DLL=`$FIND "$CYGWIN_VS_TOOLS_DIR" -name $DLL_NAME \ 56089 | $GREP -i /x86/ | $HEAD --lines 1` 56090 fi 56091 56092 DLL_NAME="$DLL_NAME" 56093 POSSIBLE_MSVC_DLL="$POSSIBLE_MSVC_DLL" 56094 METHOD="search of VS100COMNTOOLS" 56095 if test -n "$POSSIBLE_MSVC_DLL" -a -e "$POSSIBLE_MSVC_DLL"; then 56096 { $as_echo "$as_me:${as_lineno-$LINENO}: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&5 56097 $as_echo "$as_me: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&6;} 56098 56099 # Need to check if the found msvcr is correct architecture 56100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking found $DLL_NAME architecture" >&5 56101 $as_echo_n "checking found $DLL_NAME architecture... " >&6; } 56102 MSVC_DLL_FILETYPE=`$FILE -b "$POSSIBLE_MSVC_DLL"` 56103 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 56104 # The MSYS 'file' command returns "PE32 executable for MS Windows (DLL) (GUI) Intel 80386 32-bit" 56105 # on x32 and "PE32+ executable for MS Windows (DLL) (GUI) Mono/.Net assembly" on x64 systems. 56106 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 56107 CORRECT_MSVCR_ARCH="PE32 executable" 56108 else 56109 CORRECT_MSVCR_ARCH="PE32+ executable" 56110 fi 56111 else 56112 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 56113 CORRECT_MSVCR_ARCH=386 56114 else 56115 CORRECT_MSVCR_ARCH=x86-64 56116 fi 56117 fi 56118 if $ECHO "$MSVC_DLL_FILETYPE" | $GREP "$CORRECT_MSVCR_ARCH" 2>&1 > /dev/null; then 56119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 56120 $as_echo "ok" >&6; } 56121 MSVC_DLL="$POSSIBLE_MSVC_DLL" 56122 56123 # Only process if variable expands to non-empty 56124 56125 if test "x$MSVC_DLL" != x; then 56126 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 56127 56128 # Input might be given as Windows format, start by converting to 56129 # unix format. 56130 path="$MSVC_DLL" 56131 new_path=`$CYGPATH -u "$path"` 56132 56133 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 56134 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 56135 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 56136 # "foo.exe" is OK but "foo" is an error. 56137 # 56138 # This test is therefore slightly more accurate than "test -f" to check for file precense. 56139 # It is also a way to make sure we got the proper file name for the real test later on. 56140 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 56141 if test "x$test_shortpath" = x; then 56142 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&5 56143 $as_echo "$as_me: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&6;} 56144 as_fn_error $? "Cannot locate the the path of MSVC_DLL" "$LINENO" 5 56145 fi 56146 56147 # Call helper function which possibly converts this using DOS-style short mode. 56148 # If so, the updated path is stored in $new_path. 56149 56150 input_path="$new_path" 56151 # Check if we need to convert this using DOS-style short mode. If the path 56152 # contains just simple characters, use it. Otherwise (spaces, weird characters), 56153 # take no chances and rewrite it. 56154 # Note: m4 eats our [], so we need to use [ and ] instead. 56155 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 56156 if test "x$has_forbidden_chars" != x; then 56157 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 56158 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 56159 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 56160 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 56161 # Going to short mode and back again did indeed matter. Since short mode is 56162 # case insensitive, let's make it lowercase to improve readability. 56163 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 56164 # Now convert it back to Unix-style (cygpath) 56165 input_path=`$CYGPATH -u "$shortmode_path"` 56166 new_path="$input_path" 56167 fi 56168 fi 56169 56170 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 56171 if test "x$test_cygdrive_prefix" = x; then 56172 # As a simple fix, exclude /usr/bin since it's not a real path. 56173 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 56174 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 56175 # a path prefixed by /cygdrive for fixpath to work. 56176 new_path="$CYGWIN_ROOT_PATH$input_path" 56177 fi 56178 fi 56179 56180 56181 if test "x$path" != "x$new_path"; then 56182 MSVC_DLL="$new_path" 56183 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVC_DLL to \"$new_path\"" >&5 56184 $as_echo "$as_me: Rewriting MSVC_DLL to \"$new_path\"" >&6;} 56185 fi 56186 56187 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 56188 56189 path="$MSVC_DLL" 56190 has_colon=`$ECHO $path | $GREP ^.:` 56191 new_path="$path" 56192 if test "x$has_colon" = x; then 56193 # Not in mixed or Windows style, start by that. 56194 new_path=`cmd //c echo $path` 56195 fi 56196 56197 56198 input_path="$new_path" 56199 # Check if we need to convert this using DOS-style short mode. If the path 56200 # contains just simple characters, use it. Otherwise (spaces, weird characters), 56201 # take no chances and rewrite it. 56202 # Note: m4 eats our [], so we need to use [ and ] instead. 56203 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 56204 if test "x$has_forbidden_chars" != x; then 56205 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 56206 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 56207 fi 56208 56209 56210 windows_path="$new_path" 56211 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 56212 unix_path=`$CYGPATH -u "$windows_path"` 56213 new_path="$unix_path" 56214 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 56215 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 56216 new_path="$unix_path" 56217 fi 56218 56219 if test "x$path" != "x$new_path"; then 56220 MSVC_DLL="$new_path" 56221 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVC_DLL to \"$new_path\"" >&5 56222 $as_echo "$as_me: Rewriting MSVC_DLL to \"$new_path\"" >&6;} 56223 fi 56224 56225 # Save the first 10 bytes of this path to the storage, so fixpath can work. 56226 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 56227 56228 else 56229 # We're on a unix platform. Hooray! :) 56230 path="$MSVC_DLL" 56231 has_space=`$ECHO "$path" | $GREP " "` 56232 if test "x$has_space" != x; then 56233 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&5 56234 $as_echo "$as_me: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&6;} 56235 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 56236 fi 56237 56238 # Use eval to expand a potential ~ 56239 eval path="$path" 56240 if test ! -f "$path" && test ! -d "$path"; then 56241 as_fn_error $? "The path of MSVC_DLL, which resolves as \"$path\", is not found." "$LINENO" 5 56242 fi 56243 56244 if test -d "$path"; then 56245 MSVC_DLL="`cd "$path"; $THEPWDCMD -L`" 56246 else 56247 dir="`$DIRNAME "$path"`" 56248 base="`$BASENAME "$path"`" 56249 MSVC_DLL="`cd "$dir"; $THEPWDCMD -L`/$base" 56250 fi 56251 fi 56252 fi 56253 56254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $DLL_NAME" >&5 56255 $as_echo_n "checking for $DLL_NAME... " >&6; } 56256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSVC_DLL" >&5 56257 $as_echo "$MSVC_DLL" >&6; } 56258 else 56259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: incorrect, ignoring" >&5 56260 $as_echo "incorrect, ignoring" >&6; } 56261 { $as_echo "$as_me:${as_lineno-$LINENO}: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&5 56262 $as_echo "$as_me: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&6;} 56263 fi 56264 fi 56265 56266 fi 56267 fi 56268 56269 if test "x$MSVC_DLL" = x; then 56270 # Probe: Search wildly in the VCINSTALLDIR. We've probably lost by now. 56271 # (This was the original behaviour; kept since it might turn something up) 56272 if test "x$CYGWIN_VC_INSTALL_DIR" != x; then 56273 if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then 56274 POSSIBLE_MSVC_DLL=`$FIND "$CYGWIN_VC_INSTALL_DIR" -name $DLL_NAME \ 56275 | $GREP x64 | $HEAD --lines 1` 56276 else 56277 POSSIBLE_MSVC_DLL=`$FIND "$CYGWIN_VC_INSTALL_DIR" -name $DLL_NAME \ 56278 | $GREP x86 | $GREP -v ia64 | $GREP -v x64 | $HEAD --lines 1` 56279 if test "x$POSSIBLE_MSVC_DLL" = x; then 56280 # We're grasping at straws now... 56281 POSSIBLE_MSVC_DLL=`$FIND "$CYGWIN_VC_INSTALL_DIR" -name $DLL_NAME \ 56282 | $HEAD --lines 1` 56283 fi 56284 fi 56285 56286 56287 DLL_NAME="$DLL_NAME" 56288 POSSIBLE_MSVC_DLL="$POSSIBLE_MSVC_DLL" 56289 METHOD="search of VCINSTALLDIR" 56290 if test -n "$POSSIBLE_MSVC_DLL" -a -e "$POSSIBLE_MSVC_DLL"; then 56291 { $as_echo "$as_me:${as_lineno-$LINENO}: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&5 56292 $as_echo "$as_me: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&6;} 56293 56294 # Need to check if the found msvcr is correct architecture 56295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking found $DLL_NAME architecture" >&5 56296 $as_echo_n "checking found $DLL_NAME architecture... " >&6; } 56297 MSVC_DLL_FILETYPE=`$FILE -b "$POSSIBLE_MSVC_DLL"` 56298 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 56299 # The MSYS 'file' command returns "PE32 executable for MS Windows (DLL) (GUI) Intel 80386 32-bit" 56300 # on x32 and "PE32+ executable for MS Windows (DLL) (GUI) Mono/.Net assembly" on x64 systems. 56301 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 56302 CORRECT_MSVCR_ARCH="PE32 executable" 56303 else 56304 CORRECT_MSVCR_ARCH="PE32+ executable" 56305 fi 56306 else 56307 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 56308 CORRECT_MSVCR_ARCH=386 56309 else 56310 CORRECT_MSVCR_ARCH=x86-64 56311 fi 56312 fi 56313 if $ECHO "$MSVC_DLL_FILETYPE" | $GREP "$CORRECT_MSVCR_ARCH" 2>&1 > /dev/null; then 56314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 56315 $as_echo "ok" >&6; } 56316 MSVC_DLL="$POSSIBLE_MSVC_DLL" 56317 56318 # Only process if variable expands to non-empty 56319 56320 if test "x$MSVC_DLL" != x; then 56321 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 56322 56323 # Input might be given as Windows format, start by converting to 56324 # unix format. 56325 path="$MSVC_DLL" 56326 new_path=`$CYGPATH -u "$path"` 56327 56328 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 56329 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 56330 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 56331 # "foo.exe" is OK but "foo" is an error. 56332 # 56333 # This test is therefore slightly more accurate than "test -f" to check for file precense. 56334 # It is also a way to make sure we got the proper file name for the real test later on. 56335 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 56336 if test "x$test_shortpath" = x; then 56337 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&5 56338 $as_echo "$as_me: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&6;} 56339 as_fn_error $? "Cannot locate the the path of MSVC_DLL" "$LINENO" 5 56340 fi 56341 56342 # Call helper function which possibly converts this using DOS-style short mode. 56343 # If so, the updated path is stored in $new_path. 56344 56345 input_path="$new_path" 56346 # Check if we need to convert this using DOS-style short mode. If the path 56347 # contains just simple characters, use it. Otherwise (spaces, weird characters), 56348 # take no chances and rewrite it. 56349 # Note: m4 eats our [], so we need to use [ and ] instead. 56350 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 56351 if test "x$has_forbidden_chars" != x; then 56352 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 56353 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 56354 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 56355 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 56356 # Going to short mode and back again did indeed matter. Since short mode is 56357 # case insensitive, let's make it lowercase to improve readability. 56358 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 56359 # Now convert it back to Unix-style (cygpath) 56360 input_path=`$CYGPATH -u "$shortmode_path"` 56361 new_path="$input_path" 56362 fi 56363 fi 56364 56365 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 56366 if test "x$test_cygdrive_prefix" = x; then 56367 # As a simple fix, exclude /usr/bin since it's not a real path. 56368 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 56369 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 56370 # a path prefixed by /cygdrive for fixpath to work. 56371 new_path="$CYGWIN_ROOT_PATH$input_path" 56372 fi 56373 fi 56374 56375 56376 if test "x$path" != "x$new_path"; then 56377 MSVC_DLL="$new_path" 56378 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVC_DLL to \"$new_path\"" >&5 56379 $as_echo "$as_me: Rewriting MSVC_DLL to \"$new_path\"" >&6;} 56380 fi 56381 56382 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 56383 56384 path="$MSVC_DLL" 56385 has_colon=`$ECHO $path | $GREP ^.:` 56386 new_path="$path" 56387 if test "x$has_colon" = x; then 56388 # Not in mixed or Windows style, start by that. 56389 new_path=`cmd //c echo $path` 56390 fi 56391 56392 56393 input_path="$new_path" 56394 # Check if we need to convert this using DOS-style short mode. If the path 56395 # contains just simple characters, use it. Otherwise (spaces, weird characters), 56396 # take no chances and rewrite it. 56397 # Note: m4 eats our [], so we need to use [ and ] instead. 56398 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 56399 if test "x$has_forbidden_chars" != x; then 56400 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 56401 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 56402 fi 56403 56404 56405 windows_path="$new_path" 56406 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 56407 unix_path=`$CYGPATH -u "$windows_path"` 56408 new_path="$unix_path" 56409 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 56410 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 56411 new_path="$unix_path" 56412 fi 56413 56414 if test "x$path" != "x$new_path"; then 56415 MSVC_DLL="$new_path" 56416 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVC_DLL to \"$new_path\"" >&5 56417 $as_echo "$as_me: Rewriting MSVC_DLL to \"$new_path\"" >&6;} 56418 fi 56419 56420 # Save the first 10 bytes of this path to the storage, so fixpath can work. 56421 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 56422 56423 else 56424 # We're on a unix platform. Hooray! :) 56425 path="$MSVC_DLL" 56426 has_space=`$ECHO "$path" | $GREP " "` 56427 if test "x$has_space" != x; then 56428 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&5 56429 $as_echo "$as_me: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&6;} 56430 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 56431 fi 56432 56433 # Use eval to expand a potential ~ 56434 eval path="$path" 56435 if test ! -f "$path" && test ! -d "$path"; then 56436 as_fn_error $? "The path of MSVC_DLL, which resolves as \"$path\", is not found." "$LINENO" 5 56437 fi 56438 56439 if test -d "$path"; then 56440 MSVC_DLL="`cd "$path"; $THEPWDCMD -L`" 56441 else 56442 dir="`$DIRNAME "$path"`" 56443 base="`$BASENAME "$path"`" 56444 MSVC_DLL="`cd "$dir"; $THEPWDCMD -L`/$base" 56445 fi 56446 fi 56447 fi 56448 56449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $DLL_NAME" >&5 56450 $as_echo_n "checking for $DLL_NAME... " >&6; } 56451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSVC_DLL" >&5 56452 $as_echo "$MSVC_DLL" >&6; } 56453 else 56454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: incorrect, ignoring" >&5 56455 $as_echo "incorrect, ignoring" >&6; } 56456 { $as_echo "$as_me:${as_lineno-$LINENO}: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&5 56457 $as_echo "$as_me: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&6;} 56458 fi 56459 fi 56460 56461 fi 56462 fi 56463 56464 if test "x$MSVC_DLL" = x; then 56465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $DLL_NAME" >&5 56466 $as_echo_n "checking for $DLL_NAME... " >&6; } 56467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 56468 $as_echo "no" >&6; } 56469 as_fn_error $? "Could not find $DLL_NAME. Please specify using --with-msvcr-dll." "$LINENO" 5 56470 fi 56471 56472 MSVCP_DLL="$MSVC_DLL" 56473 fi 56474 56475 fi 56476 56477 fi 56478 56479 56480 if test "x$NEEDS_LIB_X11" = xfalse; then 56481 if (test "x${with_x}" != x && test "x${with_x}" != xno); then 56482 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: X11 is not used, so --with-x is ignored" >&5 56483 $as_echo "$as_me: WARNING: X11 is not used, so --with-x is ignored" >&2;} 56484 fi 56485 X_CFLAGS= 56486 X_LIBS= 56487 else 56488 56489 if test "x${with_x}" = xno; then 56490 as_fn_error $? "It is not possible to disable the use of X11. Remove the --without-x option." "$LINENO" 5 56491 fi 56492 56493 if test "x${with_x}" != x && test "x${with_x}" != xyes; then 56494 # The user has specified a X11 base directory. Use it for includes and 56495 # libraries, unless explicitely overridden. 56496 if test "x$x_includes" = xNONE; then 56497 x_includes="${with_x}/include" 56498 fi 56499 if test "x$x_libraries" = xNONE; then 56500 x_libraries="${with_x}/lib" 56501 fi 56502 else 56503 # Check if the user has specified sysroot, but not --with-x, --x-includes or --x-libraries. 56504 # Make a simple check for the libraries at the sysroot, and setup --x-includes and 56505 # --x-libraries for the sysroot, if that seems to be correct. 56506 if test "x$SYSROOT" != "x"; then 56507 if test "x$x_includes" = xNONE; then 56508 if test -f "$SYSROOT/usr/X11R6/include/X11/Xlib.h"; then 56509 x_includes="$SYSROOT/usr/X11R6/include" 56510 elif test -f "$SYSROOT/usr/include/X11/Xlib.h"; then 56511 x_includes="$SYSROOT/usr/include" 56512 fi 56513 fi 56514 if test "x$x_libraries" = xNONE; then 56515 if test -f "$SYSROOT/usr/X11R6/lib/libX11.so"; then 56516 x_libraries="$SYSROOT/usr/X11R6/lib" 56517 elif test -f "$SYSROOT/usr/lib64/libX11.so" && test "x$OPENJDK_TARGET_CPU_BITS" = x64; then 56518 x_libraries="$SYSROOT/usr/lib64" 56519 elif test -f "$SYSROOT/usr/lib/libX11.so"; then 56520 x_libraries="$SYSROOT/usr/lib" 56521 fi 56522 fi 56523 fi 56524 fi 56525 56526 # Now let autoconf do it's magic 56527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5 56528 $as_echo_n "checking for X... " >&6; } 56529 56530 56531 # Check whether --with-x was given. 56532 if test "${with_x+set}" = set; then : 56533 withval=$with_x; 56534 fi 56535 56536 # $have_x is `yes', `no', `disabled', or empty when we do not yet know. 56537 if test "x$with_x" = xno; then 56538 # The user explicitly disabled X. 56539 have_x=disabled 56540 else 56541 case $x_includes,$x_libraries in #( 56542 *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #( 56543 *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then : 56544 $as_echo_n "(cached) " >&6 56545 else 56546 # One or both of the vars are not set, and there is no cached value. 56547 ac_x_includes=no ac_x_libraries=no 56548 rm -f -r conftest.dir 56549 if mkdir conftest.dir; then 56550 cd conftest.dir 56551 cat >Imakefile <<'_ACEOF' 56552 incroot: 56553 @echo incroot='${INCROOT}' 56554 usrlibdir: 56555 @echo usrlibdir='${USRLIBDIR}' 56556 libdir: 56557 @echo libdir='${LIBDIR}' 56558 _ACEOF 56559 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then 56560 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 56561 for ac_var in incroot usrlibdir libdir; do 56562 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`" 56563 done 56564 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR. 56565 for ac_extension in a so sl dylib la dll; do 56566 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" && 56567 test -f "$ac_im_libdir/libX11.$ac_extension"; then 56568 ac_im_usrlibdir=$ac_im_libdir; break 56569 fi 56570 done 56571 # Screen out bogus values from the imake configuration. They are 56572 # bogus both because they are the default anyway, and because 56573 # using them would break gcc on systems where it needs fixed includes. 56574 case $ac_im_incroot in 56575 /usr/include) ac_x_includes= ;; 56576 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;; 56577 esac 56578 case $ac_im_usrlibdir in 56579 /usr/lib | /usr/lib64 | /lib | /lib64) ;; 56580 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;; 56581 esac 56582 fi 56583 cd .. 56584 rm -f -r conftest.dir 56585 fi 56586 56587 # Standard set of common directories for X headers. 56588 # Check X11 before X11Rn because it is often a symlink to the current release. 56589 ac_x_header_dirs=' 56590 /usr/X11/include 56591 /usr/X11R7/include 56592 /usr/X11R6/include 56593 /usr/X11R5/include 56594 /usr/X11R4/include 56595 56596 /usr/include/X11 56597 /usr/include/X11R7 56598 /usr/include/X11R6 56599 /usr/include/X11R5 56600 /usr/include/X11R4 56601 56602 /usr/local/X11/include 56603 /usr/local/X11R7/include 56604 /usr/local/X11R6/include 56605 /usr/local/X11R5/include 56606 /usr/local/X11R4/include 56607 56608 /usr/local/include/X11 56609 /usr/local/include/X11R7 56610 /usr/local/include/X11R6 56611 /usr/local/include/X11R5 56612 /usr/local/include/X11R4 56613 56614 /usr/X386/include 56615 /usr/x386/include 56616 /usr/XFree86/include/X11 56617 56618 /usr/include 56619 /usr/local/include 56620 /usr/unsupported/include 56621 /usr/athena/include 56622 /usr/local/x11r5/include 56623 /usr/lpp/Xamples/include 56624 56625 /usr/openwin/include 56626 /usr/openwin/share/include' 56627 56628 if test "$ac_x_includes" = no; then 56629 # Guess where to find include files, by looking for Xlib.h. 56630 # First, try using that file with no special directory specified. 56631 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 56632 /* end confdefs.h. */ 56633 #include <X11/Xlib.h> 56634 _ACEOF 56635 if ac_fn_cxx_try_cpp "$LINENO"; then : 56636 # We can compile using X headers with no special include directory. 56637 ac_x_includes= 56638 else 56639 for ac_dir in $ac_x_header_dirs; do 56640 if test -r "$ac_dir/X11/Xlib.h"; then 56641 ac_x_includes=$ac_dir 56642 break 56643 fi 56644 done 56645 fi 56646 rm -f conftest.err conftest.i conftest.$ac_ext 56647 fi # $ac_x_includes = no 56648 56649 if test "$ac_x_libraries" = no; then 56650 # Check for the libraries. 56651 # See if we find them without any special options. 56652 # Don't add to $LIBS permanently. 56653 ac_save_LIBS=$LIBS 56654 LIBS="-lX11 $LIBS" 56655 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 56656 /* end confdefs.h. */ 56657 #include <X11/Xlib.h> 56658 int 56659 main () 56660 { 56661 XrmInitialize () 56662 ; 56663 return 0; 56664 } 56665 _ACEOF 56666 if ac_fn_cxx_try_link "$LINENO"; then : 56667 LIBS=$ac_save_LIBS 56668 # We can link X programs with no special library path. 56669 ac_x_libraries= 56670 else 56671 LIBS=$ac_save_LIBS 56672 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g` 56673 do 56674 # Don't even attempt the hair of trying to link an X program! 56675 for ac_extension in a so sl dylib la dll; do 56676 if test -r "$ac_dir/libX11.$ac_extension"; then 56677 ac_x_libraries=$ac_dir 56678 break 2 56679 fi 56680 done 56681 done 56682 fi 56683 rm -f core conftest.err conftest.$ac_objext \ 56684 conftest$ac_exeext conftest.$ac_ext 56685 fi # $ac_x_libraries = no 56686 56687 case $ac_x_includes,$ac_x_libraries in #( 56688 no,* | *,no | *\'*) 56689 # Didn't find X, or a directory has "'" in its name. 56690 ac_cv_have_x="have_x=no";; #( 56691 *) 56692 # Record where we found X for the cache. 56693 ac_cv_have_x="have_x=yes\ 56694 ac_x_includes='$ac_x_includes'\ 56695 ac_x_libraries='$ac_x_libraries'" 56696 esac 56697 fi 56698 ;; #( 56699 *) have_x=yes;; 56700 esac 56701 eval "$ac_cv_have_x" 56702 fi # $with_x != no 56703 56704 if test "$have_x" != yes; then 56705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5 56706 $as_echo "$have_x" >&6; } 56707 no_x=yes 56708 else 56709 # If each of the values was on the command line, it overrides each guess. 56710 test "x$x_includes" = xNONE && x_includes=$ac_x_includes 56711 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries 56712 # Update the cache value to reflect the command line values. 56713 ac_cv_have_x="have_x=yes\ 56714 ac_x_includes='$x_includes'\ 56715 ac_x_libraries='$x_libraries'" 56716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5 56717 $as_echo "libraries $x_libraries, headers $x_includes" >&6; } 56718 fi 56719 56720 if test "$no_x" = yes; then 56721 # Not all programs may use this symbol, but it does not hurt to define it. 56722 56723 $as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h 56724 56725 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS= 56726 else 56727 if test -n "$x_includes"; then 56728 X_CFLAGS="$X_CFLAGS -I$x_includes" 56729 fi 56730 56731 # It would also be nice to do this for all -L options, not just this one. 56732 if test -n "$x_libraries"; then 56733 X_LIBS="$X_LIBS -L$x_libraries" 56734 # For Solaris; some versions of Sun CC require a space after -R and 56735 # others require no space. Words are not sufficient . . . . 56736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5 56737 $as_echo_n "checking whether -R must be followed by a space... " >&6; } 56738 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries" 56739 ac_xsave_cxx_werror_flag=$ac_cxx_werror_flag 56740 ac_cxx_werror_flag=yes 56741 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 56742 /* end confdefs.h. */ 56743 56744 int 56745 main () 56746 { 56747 56748 ; 56749 return 0; 56750 } 56751 _ACEOF 56752 if ac_fn_cxx_try_link "$LINENO"; then : 56753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 56754 $as_echo "no" >&6; } 56755 X_LIBS="$X_LIBS -R$x_libraries" 56756 else 56757 LIBS="$ac_xsave_LIBS -R $x_libraries" 56758 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 56759 /* end confdefs.h. */ 56760 56761 int 56762 main () 56763 { 56764 56765 ; 56766 return 0; 56767 } 56768 _ACEOF 56769 if ac_fn_cxx_try_link "$LINENO"; then : 56770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 56771 $as_echo "yes" >&6; } 56772 X_LIBS="$X_LIBS -R $x_libraries" 56773 else 56774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5 56775 $as_echo "neither works" >&6; } 56776 fi 56777 rm -f core conftest.err conftest.$ac_objext \ 56778 conftest$ac_exeext conftest.$ac_ext 56779 fi 56780 rm -f core conftest.err conftest.$ac_objext \ 56781 conftest$ac_exeext conftest.$ac_ext 56782 ac_cxx_werror_flag=$ac_xsave_cxx_werror_flag 56783 LIBS=$ac_xsave_LIBS 56784 fi 56785 56786 # Check for system-dependent libraries X programs must link with. 56787 # Do this before checking for the system-independent R6 libraries 56788 # (-lICE), since we may need -lsocket or whatever for X linking. 56789 56790 if test "$ISC" = yes; then 56791 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet" 56792 else 56793 # Martyn Johnson says this is needed for Ultrix, if the X 56794 # libraries were built with DECnet support. And Karl Berry says 56795 # the Alpha needs dnet_stub (dnet does not exist). 56796 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11" 56797 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 56798 /* end confdefs.h. */ 56799 56800 /* Override any GCC internal prototype to avoid an error. 56801 Use char because int might match the return type of a GCC 56802 builtin and then its argument prototype would still apply. */ 56803 #ifdef __cplusplus 56804 extern "C" 56805 #endif 56806 char XOpenDisplay (); 56807 int 56808 main () 56809 { 56810 return XOpenDisplay (); 56811 ; 56812 return 0; 56813 } 56814 _ACEOF 56815 if ac_fn_cxx_try_link "$LINENO"; then : 56816 56817 else 56818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5 56819 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; } 56820 if ${ac_cv_lib_dnet_dnet_ntoa+:} false; then : 56821 $as_echo_n "(cached) " >&6 56822 else 56823 ac_check_lib_save_LIBS=$LIBS 56824 LIBS="-ldnet $LIBS" 56825 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 56826 /* end confdefs.h. */ 56827 56828 /* Override any GCC internal prototype to avoid an error. 56829 Use char because int might match the return type of a GCC 56830 builtin and then its argument prototype would still apply. */ 56831 #ifdef __cplusplus 56832 extern "C" 56833 #endif 56834 char dnet_ntoa (); 56835 int 56836 main () 56837 { 56838 return dnet_ntoa (); 56839 ; 56840 return 0; 56841 } 56842 _ACEOF 56843 if ac_fn_cxx_try_link "$LINENO"; then : 56844 ac_cv_lib_dnet_dnet_ntoa=yes 56845 else 56846 ac_cv_lib_dnet_dnet_ntoa=no 56847 fi 56848 rm -f core conftest.err conftest.$ac_objext \ 56849 conftest$ac_exeext conftest.$ac_ext 56850 LIBS=$ac_check_lib_save_LIBS 56851 fi 56852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5 56853 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; } 56854 if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes; then : 56855 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet" 56856 fi 56857 56858 if test $ac_cv_lib_dnet_dnet_ntoa = no; then 56859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5 56860 $as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; } 56861 if ${ac_cv_lib_dnet_stub_dnet_ntoa+:} false; then : 56862 $as_echo_n "(cached) " >&6 56863 else 56864 ac_check_lib_save_LIBS=$LIBS 56865 LIBS="-ldnet_stub $LIBS" 56866 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 56867 /* end confdefs.h. */ 56868 56869 /* Override any GCC internal prototype to avoid an error. 56870 Use char because int might match the return type of a GCC 56871 builtin and then its argument prototype would still apply. */ 56872 #ifdef __cplusplus 56873 extern "C" 56874 #endif 56875 char dnet_ntoa (); 56876 int 56877 main () 56878 { 56879 return dnet_ntoa (); 56880 ; 56881 return 0; 56882 } 56883 _ACEOF 56884 if ac_fn_cxx_try_link "$LINENO"; then : 56885 ac_cv_lib_dnet_stub_dnet_ntoa=yes 56886 else 56887 ac_cv_lib_dnet_stub_dnet_ntoa=no 56888 fi 56889 rm -f core conftest.err conftest.$ac_objext \ 56890 conftest$ac_exeext conftest.$ac_ext 56891 LIBS=$ac_check_lib_save_LIBS 56892 fi 56893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5 56894 $as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; } 56895 if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes; then : 56896 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub" 56897 fi 56898 56899 fi 56900 fi 56901 rm -f core conftest.err conftest.$ac_objext \ 56902 conftest$ac_exeext conftest.$ac_ext 56903 LIBS="$ac_xsave_LIBS" 56904 56905 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT, 56906 # to get the SysV transport functions. 56907 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4) 56908 # needs -lnsl. 56909 # The nsl library prevents programs from opening the X display 56910 # on Irix 5.2, according to T.E. Dickey. 56911 # The functions gethostbyname, getservbyname, and inet_addr are 56912 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking. 56913 ac_fn_cxx_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname" 56914 if test "x$ac_cv_func_gethostbyname" = xyes; then : 56915 56916 fi 56917 56918 if test $ac_cv_func_gethostbyname = no; then 56919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5 56920 $as_echo_n "checking for gethostbyname in -lnsl... " >&6; } 56921 if ${ac_cv_lib_nsl_gethostbyname+:} false; then : 56922 $as_echo_n "(cached) " >&6 56923 else 56924 ac_check_lib_save_LIBS=$LIBS 56925 LIBS="-lnsl $LIBS" 56926 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 56927 /* end confdefs.h. */ 56928 56929 /* Override any GCC internal prototype to avoid an error. 56930 Use char because int might match the return type of a GCC 56931 builtin and then its argument prototype would still apply. */ 56932 #ifdef __cplusplus 56933 extern "C" 56934 #endif 56935 char gethostbyname (); 56936 int 56937 main () 56938 { 56939 return gethostbyname (); 56940 ; 56941 return 0; 56942 } 56943 _ACEOF 56944 if ac_fn_cxx_try_link "$LINENO"; then : 56945 ac_cv_lib_nsl_gethostbyname=yes 56946 else 56947 ac_cv_lib_nsl_gethostbyname=no 56948 fi 56949 rm -f core conftest.err conftest.$ac_objext \ 56950 conftest$ac_exeext conftest.$ac_ext 56951 LIBS=$ac_check_lib_save_LIBS 56952 fi 56953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5 56954 $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; } 56955 if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then : 56956 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl" 56957 fi 56958 56959 if test $ac_cv_lib_nsl_gethostbyname = no; then 56960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5 56961 $as_echo_n "checking for gethostbyname in -lbsd... " >&6; } 56962 if ${ac_cv_lib_bsd_gethostbyname+:} false; then : 56963 $as_echo_n "(cached) " >&6 56964 else 56965 ac_check_lib_save_LIBS=$LIBS 56966 LIBS="-lbsd $LIBS" 56967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 56968 /* end confdefs.h. */ 56969 56970 /* Override any GCC internal prototype to avoid an error. 56971 Use char because int might match the return type of a GCC 56972 builtin and then its argument prototype would still apply. */ 56973 #ifdef __cplusplus 56974 extern "C" 56975 #endif 56976 char gethostbyname (); 56977 int 56978 main () 56979 { 56980 return gethostbyname (); 56981 ; 56982 return 0; 56983 } 56984 _ACEOF 56985 if ac_fn_cxx_try_link "$LINENO"; then : 56986 ac_cv_lib_bsd_gethostbyname=yes 56987 else 56988 ac_cv_lib_bsd_gethostbyname=no 56989 fi 56990 rm -f core conftest.err conftest.$ac_objext \ 56991 conftest$ac_exeext conftest.$ac_ext 56992 LIBS=$ac_check_lib_save_LIBS 56993 fi 56994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5 56995 $as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; } 56996 if test "x$ac_cv_lib_bsd_gethostbyname" = xyes; then : 56997 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd" 56998 fi 56999 57000 fi 57001 fi 57002 57003 # lieder@skyler.mavd.honeywell.com says without -lsocket, 57004 # socket/setsockopt and other routines are undefined under SCO ODT 57005 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary 57006 # on later versions), says Simon Leinen: it contains gethostby* 57007 # variants that don't use the name server (or something). -lsocket 57008 # must be given before -lnsl if both are needed. We assume that 57009 # if connect needs -lnsl, so does gethostbyname. 57010 ac_fn_cxx_check_func "$LINENO" "connect" "ac_cv_func_connect" 57011 if test "x$ac_cv_func_connect" = xyes; then : 57012 57013 fi 57014 57015 if test $ac_cv_func_connect = no; then 57016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5 57017 $as_echo_n "checking for connect in -lsocket... " >&6; } 57018 if ${ac_cv_lib_socket_connect+:} false; then : 57019 $as_echo_n "(cached) " >&6 57020 else 57021 ac_check_lib_save_LIBS=$LIBS 57022 LIBS="-lsocket $X_EXTRA_LIBS $LIBS" 57023 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 57024 /* end confdefs.h. */ 57025 57026 /* Override any GCC internal prototype to avoid an error. 57027 Use char because int might match the return type of a GCC 57028 builtin and then its argument prototype would still apply. */ 57029 #ifdef __cplusplus 57030 extern "C" 57031 #endif 57032 char connect (); 57033 int 57034 main () 57035 { 57036 return connect (); 57037 ; 57038 return 0; 57039 } 57040 _ACEOF 57041 if ac_fn_cxx_try_link "$LINENO"; then : 57042 ac_cv_lib_socket_connect=yes 57043 else 57044 ac_cv_lib_socket_connect=no 57045 fi 57046 rm -f core conftest.err conftest.$ac_objext \ 57047 conftest$ac_exeext conftest.$ac_ext 57048 LIBS=$ac_check_lib_save_LIBS 57049 fi 57050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5 57051 $as_echo "$ac_cv_lib_socket_connect" >&6; } 57052 if test "x$ac_cv_lib_socket_connect" = xyes; then : 57053 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS" 57054 fi 57055 57056 fi 57057 57058 # Guillermo Gomez says -lposix is necessary on A/UX. 57059 ac_fn_cxx_check_func "$LINENO" "remove" "ac_cv_func_remove" 57060 if test "x$ac_cv_func_remove" = xyes; then : 57061 57062 fi 57063 57064 if test $ac_cv_func_remove = no; then 57065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5 57066 $as_echo_n "checking for remove in -lposix... " >&6; } 57067 if ${ac_cv_lib_posix_remove+:} false; then : 57068 $as_echo_n "(cached) " >&6 57069 else 57070 ac_check_lib_save_LIBS=$LIBS 57071 LIBS="-lposix $LIBS" 57072 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 57073 /* end confdefs.h. */ 57074 57075 /* Override any GCC internal prototype to avoid an error. 57076 Use char because int might match the return type of a GCC 57077 builtin and then its argument prototype would still apply. */ 57078 #ifdef __cplusplus 57079 extern "C" 57080 #endif 57081 char remove (); 57082 int 57083 main () 57084 { 57085 return remove (); 57086 ; 57087 return 0; 57088 } 57089 _ACEOF 57090 if ac_fn_cxx_try_link "$LINENO"; then : 57091 ac_cv_lib_posix_remove=yes 57092 else 57093 ac_cv_lib_posix_remove=no 57094 fi 57095 rm -f core conftest.err conftest.$ac_objext \ 57096 conftest$ac_exeext conftest.$ac_ext 57097 LIBS=$ac_check_lib_save_LIBS 57098 fi 57099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5 57100 $as_echo "$ac_cv_lib_posix_remove" >&6; } 57101 if test "x$ac_cv_lib_posix_remove" = xyes; then : 57102 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix" 57103 fi 57104 57105 fi 57106 57107 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay. 57108 ac_fn_cxx_check_func "$LINENO" "shmat" "ac_cv_func_shmat" 57109 if test "x$ac_cv_func_shmat" = xyes; then : 57110 57111 fi 57112 57113 if test $ac_cv_func_shmat = no; then 57114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5 57115 $as_echo_n "checking for shmat in -lipc... " >&6; } 57116 if ${ac_cv_lib_ipc_shmat+:} false; then : 57117 $as_echo_n "(cached) " >&6 57118 else 57119 ac_check_lib_save_LIBS=$LIBS 57120 LIBS="-lipc $LIBS" 57121 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 57122 /* end confdefs.h. */ 57123 57124 /* Override any GCC internal prototype to avoid an error. 57125 Use char because int might match the return type of a GCC 57126 builtin and then its argument prototype would still apply. */ 57127 #ifdef __cplusplus 57128 extern "C" 57129 #endif 57130 char shmat (); 57131 int 57132 main () 57133 { 57134 return shmat (); 57135 ; 57136 return 0; 57137 } 57138 _ACEOF 57139 if ac_fn_cxx_try_link "$LINENO"; then : 57140 ac_cv_lib_ipc_shmat=yes 57141 else 57142 ac_cv_lib_ipc_shmat=no 57143 fi 57144 rm -f core conftest.err conftest.$ac_objext \ 57145 conftest$ac_exeext conftest.$ac_ext 57146 LIBS=$ac_check_lib_save_LIBS 57147 fi 57148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5 57149 $as_echo "$ac_cv_lib_ipc_shmat" >&6; } 57150 if test "x$ac_cv_lib_ipc_shmat" = xyes; then : 57151 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc" 57152 fi 57153 57154 fi 57155 fi 57156 57157 # Check for libraries that X11R6 Xt/Xaw programs need. 57158 ac_save_LDFLAGS=$LDFLAGS 57159 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries" 57160 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to 57161 # check for ICE first), but we must link in the order -lSM -lICE or 57162 # we get undefined symbols. So assume we have SM if we have ICE. 57163 # These have to be linked with before -lX11, unlike the other 57164 # libraries we check for below, so use a different variable. 57165 # John Interrante, Karl Berry 57166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5 57167 $as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; } 57168 if ${ac_cv_lib_ICE_IceConnectionNumber+:} false; then : 57169 $as_echo_n "(cached) " >&6 57170 else 57171 ac_check_lib_save_LIBS=$LIBS 57172 LIBS="-lICE $X_EXTRA_LIBS $LIBS" 57173 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 57174 /* end confdefs.h. */ 57175 57176 /* Override any GCC internal prototype to avoid an error. 57177 Use char because int might match the return type of a GCC 57178 builtin and then its argument prototype would still apply. */ 57179 #ifdef __cplusplus 57180 extern "C" 57181 #endif 57182 char IceConnectionNumber (); 57183 int 57184 main () 57185 { 57186 return IceConnectionNumber (); 57187 ; 57188 return 0; 57189 } 57190 _ACEOF 57191 if ac_fn_cxx_try_link "$LINENO"; then : 57192 ac_cv_lib_ICE_IceConnectionNumber=yes 57193 else 57194 ac_cv_lib_ICE_IceConnectionNumber=no 57195 fi 57196 rm -f core conftest.err conftest.$ac_objext \ 57197 conftest$ac_exeext conftest.$ac_ext 57198 LIBS=$ac_check_lib_save_LIBS 57199 fi 57200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5 57201 $as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; } 57202 if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes; then : 57203 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE" 57204 fi 57205 57206 LDFLAGS=$ac_save_LDFLAGS 57207 57208 fi 57209 57210 57211 # AC_PATH_XTRA creates X_LIBS and sometimes adds -R flags. When cross compiling 57212 # this doesn't make sense so we remove it. 57213 if test "x$COMPILE_TYPE" = xcross; then 57214 X_LIBS=`$ECHO $X_LIBS | $SED 's/-R \{0,1\}[^ ]*//g'` 57215 fi 57216 57217 if test "x$no_x" = xyes; then 57218 57219 # Print a helpful message on how to acquire the necessary build dependency. 57220 # x11 is the help tag: freetype, cups, alsa etc 57221 MISSING_DEPENDENCY=x11 57222 57223 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 57224 cygwin_help $MISSING_DEPENDENCY 57225 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 57226 msys_help $MISSING_DEPENDENCY 57227 else 57228 PKGHANDLER_COMMAND= 57229 57230 case $PKGHANDLER in 57231 apt-get) 57232 apt_help $MISSING_DEPENDENCY ;; 57233 yum) 57234 yum_help $MISSING_DEPENDENCY ;; 57235 port) 57236 port_help $MISSING_DEPENDENCY ;; 57237 pkgutil) 57238 pkgutil_help $MISSING_DEPENDENCY ;; 57239 pkgadd) 57240 pkgadd_help $MISSING_DEPENDENCY ;; 57241 esac 57242 57243 if test "x$PKGHANDLER_COMMAND" != x; then 57244 HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'." 57245 fi 57246 fi 57247 57248 as_fn_error $? "Could not find X11 libraries. $HELP_MSG" "$LINENO" 5 57249 fi 57250 57251 if test "x$OPENJDK_TARGET_OS" = xsolaris; then 57252 OPENWIN_HOME="/usr/openwin" 57253 X_CFLAGS="-I$SYSROOT$OPENWIN_HOME/include -I$SYSROOT$OPENWIN_HOME/include/X11/extensions" 57254 X_LIBS="-L$SYSROOT$OPENWIN_HOME/sfw/lib$OPENJDK_TARGET_CPU_ISADIR \ 57255 -L$SYSROOT$OPENWIN_HOME/lib$OPENJDK_TARGET_CPU_ISADIR \ 57256 -R$OPENWIN_HOME/sfw/lib$OPENJDK_TARGET_CPU_ISADIR \ 57257 -R$OPENWIN_HOME/lib$OPENJDK_TARGET_CPU_ISADIR" 57258 fi 57259 57260 ac_ext=c 57261 ac_cpp='$CPP $CPPFLAGS' 57262 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 57263 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 57264 ac_compiler_gnu=$ac_cv_c_compiler_gnu 57265 57266 OLD_CFLAGS="$CFLAGS" 57267 CFLAGS="$CFLAGS $SYSROOT_CFLAGS $X_CFLAGS" 57268 57269 # Need to include Xlib.h and Xutil.h to avoid "present but cannot be compiled" warnings on Solaris 10 57270 for ac_header in X11/extensions/shape.h X11/extensions/Xrender.h X11/extensions/XTest.h X11/Intrinsic.h 57271 do : 57272 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 57273 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" " 57274 # include <X11/Xlib.h> 57275 # include <X11/Xutil.h> 57276 57277 57278 " 57279 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 57280 cat >>confdefs.h <<_ACEOF 57281 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 57282 _ACEOF 57283 X11_HEADERS_OK=yes 57284 else 57285 X11_HEADERS_OK=no; break 57286 fi 57287 57288 done 57289 57290 57291 if test "x$X11_HEADERS_OK" = xno; then 57292 57293 # Print a helpful message on how to acquire the necessary build dependency. 57294 # x11 is the help tag: freetype, cups, alsa etc 57295 MISSING_DEPENDENCY=x11 57296 57297 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 57298 cygwin_help $MISSING_DEPENDENCY 57299 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 57300 msys_help $MISSING_DEPENDENCY 57301 else 57302 PKGHANDLER_COMMAND= 57303 57304 case $PKGHANDLER in 57305 apt-get) 57306 apt_help $MISSING_DEPENDENCY ;; 57307 yum) 57308 yum_help $MISSING_DEPENDENCY ;; 57309 port) 57310 port_help $MISSING_DEPENDENCY ;; 57311 pkgutil) 57312 pkgutil_help $MISSING_DEPENDENCY ;; 57313 pkgadd) 57314 pkgadd_help $MISSING_DEPENDENCY ;; 57315 esac 57316 57317 if test "x$PKGHANDLER_COMMAND" != x; then 57318 HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'." 57319 fi 57320 fi 57321 57322 as_fn_error $? "Could not find all X11 headers (shape.h Xrender.h XTest.h Intrinsic.h). $HELP_MSG" "$LINENO" 5 57323 fi 57324 57325 # If XLinearGradient isn't available in Xrender.h, signal that it needs to be 57326 # defined in libawt_xawt. 57327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if XlinearGradient is defined in Xrender.h" >&5 57328 $as_echo_n "checking if XlinearGradient is defined in Xrender.h... " >&6; } 57329 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 57330 /* end confdefs.h. */ 57331 #include <X11/extensions/Xrender.h> 57332 int 57333 main () 57334 { 57335 XLinearGradient x; 57336 ; 57337 return 0; 57338 } 57339 _ACEOF 57340 if ac_fn_c_try_compile "$LINENO"; then : 57341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 57342 $as_echo "yes" >&6; } 57343 else 57344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 57345 $as_echo "no" >&6; } 57346 X_CFLAGS="$X_CFLAGS -DSOLARIS10_NO_XRENDER_STRUCTS" 57347 fi 57348 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 57349 57350 CFLAGS="$OLD_CFLAGS" 57351 ac_ext=cpp 57352 ac_cpp='$CXXCPP $CPPFLAGS' 57353 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 57354 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 57355 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 57356 57357 fi # NEEDS_LIB_X11 57358 57359 57360 57361 57362 57363 57364 # Check whether --with-cups was given. 57365 if test "${with_cups+set}" = set; then : 57366 withval=$with_cups; 57367 fi 57368 57369 57370 # Check whether --with-cups-include was given. 57371 if test "${with_cups_include+set}" = set; then : 57372 withval=$with_cups_include; 57373 fi 57374 57375 57376 if test "x$NEEDS_LIB_CUPS" = xfalse; then 57377 if (test "x${with_cups}" != x && test "x${with_cups}" != xno) || \ 57378 (test "x${with_cups_include}" != x && test "x${with_cups_include}" != xno); then 57379 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cups not used, so --with-cups[-*] is ignored" >&5 57380 $as_echo "$as_me: WARNING: cups not used, so --with-cups[-*] is ignored" >&2;} 57381 fi 57382 CUPS_CFLAGS= 57383 else 57384 CUPS_FOUND=no 57385 57386 if test "x${with_cups}" = xno || test "x${with_cups_include}" = xno; then 57387 as_fn_error $? "It is not possible to disable the use of cups. Remove the --without-cups option." "$LINENO" 5 57388 fi 57389 57390 if test "x${with_cups}" != x; then 57391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cups headers" >&5 57392 $as_echo_n "checking for cups headers... " >&6; } 57393 if test -s "${with_cups}/include/cups/cups.h"; then 57394 CUPS_CFLAGS="-I${with_cups}/include" 57395 CUPS_FOUND=yes 57396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CUPS_FOUND" >&5 57397 $as_echo "$CUPS_FOUND" >&6; } 57398 else 57399 as_fn_error $? "Can't find 'include/cups/cups.h' under ${with_cups} given with the --with-cups option." "$LINENO" 5 57400 fi 57401 fi 57402 if test "x${with_cups_include}" != x; then 57403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cups headers" >&5 57404 $as_echo_n "checking for cups headers... " >&6; } 57405 if test -s "${with_cups_include}/cups/cups.h"; then 57406 CUPS_CFLAGS="-I${with_cups_include}" 57407 CUPS_FOUND=yes 57408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CUPS_FOUND" >&5 57409 $as_echo "$CUPS_FOUND" >&6; } 57410 else 57411 as_fn_error $? "Can't find 'cups/cups.h' under ${with_cups_include} given with the --with-cups-include option." "$LINENO" 5 57412 fi 57413 fi 57414 if test "x$CUPS_FOUND" = xno; then 57415 # Are the cups headers installed in the default /usr/include location? 57416 for ac_header in cups/cups.h cups/ppd.h 57417 do : 57418 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 57419 ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 57420 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 57421 cat >>confdefs.h <<_ACEOF 57422 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 57423 _ACEOF 57424 57425 CUPS_FOUND=yes 57426 CUPS_CFLAGS= 57427 DEFAULT_CUPS=yes 57428 57429 fi 57430 57431 done 57432 57433 fi 57434 if test "x$CUPS_FOUND" = xno; then 57435 # Getting nervous now? Lets poke around for standard Solaris third-party 57436 # package installation locations. 57437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cups headers" >&5 57438 $as_echo_n "checking for cups headers... " >&6; } 57439 if test -s $SYSROOT/opt/sfw/cups/include/cups/cups.h; then 57440 # An SFW package seems to be installed! 57441 CUPS_FOUND=yes 57442 CUPS_CFLAGS="-I$SYSROOT/opt/sfw/cups/include" 57443 elif test -s $SYSROOT/opt/csw/include/cups/cups.h; then 57444 # A CSW package seems to be installed! 57445 CUPS_FOUND=yes 57446 CUPS_CFLAGS="-I$SYSROOT/opt/csw/include" 57447 fi 57448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CUPS_FOUND" >&5 57449 $as_echo "$CUPS_FOUND" >&6; } 57450 fi 57451 if test "x$CUPS_FOUND" = xno; then 57452 57453 # Print a helpful message on how to acquire the necessary build dependency. 57454 # cups is the help tag: freetype, cups, alsa etc 57455 MISSING_DEPENDENCY=cups 57456 57457 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 57458 cygwin_help $MISSING_DEPENDENCY 57459 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 57460 msys_help $MISSING_DEPENDENCY 57461 else 57462 PKGHANDLER_COMMAND= 57463 57464 case $PKGHANDLER in 57465 apt-get) 57466 apt_help $MISSING_DEPENDENCY ;; 57467 yum) 57468 yum_help $MISSING_DEPENDENCY ;; 57469 port) 57470 port_help $MISSING_DEPENDENCY ;; 57471 pkgutil) 57472 pkgutil_help $MISSING_DEPENDENCY ;; 57473 pkgadd) 57474 pkgadd_help $MISSING_DEPENDENCY ;; 57475 esac 57476 57477 if test "x$PKGHANDLER_COMMAND" != x; then 57478 HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'." 57479 fi 57480 fi 57481 57482 as_fn_error $? "Could not find cups! $HELP_MSG " "$LINENO" 5 57483 fi 57484 fi 57485 57486 57487 57488 57489 57490 # Check whether --with-freetype was given. 57491 if test "${with_freetype+set}" = set; then : 57492 withval=$with_freetype; 57493 fi 57494 57495 57496 # Check whether --with-freetype-include was given. 57497 if test "${with_freetype_include+set}" = set; then : 57498 withval=$with_freetype_include; 57499 fi 57500 57501 57502 # Check whether --with-freetype-lib was given. 57503 if test "${with_freetype_lib+set}" = set; then : 57504 withval=$with_freetype_lib; 57505 fi 57506 57507 57508 # Check whether --with-freetype-src was given. 57509 if test "${with_freetype_src+set}" = set; then : 57510 withval=$with_freetype_src; 57511 fi 57512 57513 # Check whether --enable-freetype-bundling was given. 57514 if test "${enable_freetype_bundling+set}" = set; then : 57515 enableval=$enable_freetype_bundling; 57516 fi 57517 57518 57519 # Need to specify explicitly since it needs to be overridden on some versions of macosx 57520 FREETYPE_BASE_NAME=freetype 57521 FREETYPE_CFLAGS= 57522 FREETYPE_LIBS= 57523 FREETYPE_BUNDLE_LIB_PATH= 57524 57525 if test "x$NEEDS_LIB_FREETYPE" = xfalse; then 57526 if (test "x$with_freetype" != x && test "x$with_freetype" != xno) || \ 57527 (test "x$with_freetype_include" != x && test "x$with_freetype_include" != xno) || \ 57528 (test "x$with_freetype_lib" != x && test "x$with_freetype_lib" != xno) || \ 57529 (test "x$with_freetype_src" != x && test "x$with_freetype_src" != xno); then 57530 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: freetype not used, so --with-freetype[-*] is ignored" >&5 57531 $as_echo "$as_me: WARNING: freetype not used, so --with-freetype[-*] is ignored" >&2;} 57532 fi 57533 if (test "x$enable_freetype_bundling" != x && test "x$enable_freetype_bundling" != xno); then 57534 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: freetype not used, so --enable-freetype-bundling is ignored" >&5 57535 $as_echo "$as_me: WARNING: freetype not used, so --enable-freetype-bundling is ignored" >&2;} 57536 fi 57537 else 57538 # freetype is needed to build; go get it! 57539 57540 BUNDLE_FREETYPE="$enable_freetype_bundling" 57541 57542 if test "x$with_freetype_src" != x; then 57543 if test "x$OPENJDK_TARGET_OS" = xwindows; then 57544 # Try to build freetype if --with-freetype-src was given on Windows 57545 57546 FREETYPE_SRC_PATH="$with_freetype_src" 57547 BUILD_FREETYPE=yes 57548 57549 # Check if the freetype sources are acessible.. 57550 if ! test -d $FREETYPE_SRC_PATH; then 57551 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --with-freetype-src specified, but can not find path \"$FREETYPE_SRC_PATH\" - ignoring --with-freetype-src" >&5 57552 $as_echo "$as_me: WARNING: --with-freetype-src specified, but can not find path \"$FREETYPE_SRC_PATH\" - ignoring --with-freetype-src" >&2;} 57553 BUILD_FREETYPE=no 57554 fi 57555 # ..and contain a vc2010 project file 57556 vcxproj_path="$FREETYPE_SRC_PATH/builds/windows/vc2010/freetype.vcxproj" 57557 if test "x$BUILD_FREETYPE" = xyes && ! test -s $vcxproj_path; then 57558 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Can not find project file $vcxproj_path (you may try a newer freetype version) - ignoring --with-freetype-src" >&5 57559 $as_echo "$as_me: WARNING: Can not find project file $vcxproj_path (you may try a newer freetype version) - ignoring --with-freetype-src" >&2;} 57560 BUILD_FREETYPE=no 57561 fi 57562 # Now check if configure found a version of 'msbuild.exe' 57563 if test "x$BUILD_FREETYPE" = xyes && test "x$MSBUILD" == x ; then 57564 { $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 57565 $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;} 57566 BUILD_FREETYPE=no 57567 fi 57568 57569 # Ready to go.. 57570 if test "x$BUILD_FREETYPE" = xyes; then 57571 # msbuild requires trailing slashes for output directories 57572 freetype_lib_path="$FREETYPE_SRC_PATH/lib$OPENJDK_TARGET_CPU_BITS/" 57573 freetype_lib_path_unix="$freetype_lib_path" 57574 freetype_obj_path="$FREETYPE_SRC_PATH/obj$OPENJDK_TARGET_CPU_BITS/" 57575 57576 unix_path="$vcxproj_path" 57577 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 57578 windows_path=`$CYGPATH -m "$unix_path"` 57579 vcxproj_path="$windows_path" 57580 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 57581 windows_path=`cmd //c echo $unix_path` 57582 vcxproj_path="$windows_path" 57583 fi 57584 57585 57586 unix_path="$freetype_lib_path" 57587 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 57588 windows_path=`$CYGPATH -m "$unix_path"` 57589 freetype_lib_path="$windows_path" 57590 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 57591 windows_path=`cmd //c echo $unix_path` 57592 freetype_lib_path="$windows_path" 57593 fi 57594 57595 57596 unix_path="$freetype_obj_path" 57597 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 57598 windows_path=`$CYGPATH -m "$unix_path"` 57599 freetype_obj_path="$windows_path" 57600 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 57601 windows_path=`cmd //c echo $unix_path` 57602 freetype_obj_path="$windows_path" 57603 fi 57604 57605 if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then 57606 freetype_platform=x64 57607 else 57608 freetype_platform=win32 57609 fi 57610 57611 # The original freetype project file is for VS 2010 (i.e. 'v100'), 57612 # so we have to adapt the toolset if building with any other toolsed (i.e. SDK). 57613 # Currently 'PLATFORM_TOOLSET' is set in 'TOOLCHAIN_CHECK_POSSIBLE_VISUAL_STUDIO_ROOT'/ 57614 # 'TOOLCHAIN_CHECK_POSSIBLE_WIN_SDK_ROOT' in toolchain_windows.m4 57615 { $as_echo "$as_me:${as_lineno-$LINENO}: Trying to compile freetype sources with PlatformToolset=$PLATFORM_TOOLSET to $freetype_lib_path_unix ..." >&5 57616 $as_echo "$as_me: Trying to compile freetype sources with PlatformToolset=$PLATFORM_TOOLSET to $freetype_lib_path_unix ..." >&6;} 57617 57618 # First we try to build the freetype.dll 57619 $ECHO -e "@echo off\n"\ 57620 "$MSBUILD $vcxproj_path "\ 57621 "/p:PlatformToolset=$PLATFORM_TOOLSET "\ 57622 "/p:Configuration=\"Release Multithreaded\" "\ 57623 "/p:Platform=$freetype_platform "\ 57624 "/p:ConfigurationType=DynamicLibrary "\ 57625 "/p:TargetName=freetype "\ 57626 "/p:OutDir=\"$freetype_lib_path\" "\ 57627 "/p:IntDir=\"$freetype_obj_path\" > freetype.log" > freetype.bat 57628 cmd /c freetype.bat 57629 57630 if test -s "$freetype_lib_path_unix/freetype.dll"; then 57631 # If that succeeds we also build freetype.lib 57632 $ECHO -e "@echo off\n"\ 57633 "$MSBUILD $vcxproj_path "\ 57634 "/p:PlatformToolset=$PLATFORM_TOOLSET "\ 57635 "/p:Configuration=\"Release Multithreaded\" "\ 57636 "/p:Platform=$freetype_platform "\ 57637 "/p:ConfigurationType=StaticLibrary "\ 57638 "/p:TargetName=freetype "\ 57639 "/p:OutDir=\"$freetype_lib_path\" "\ 57640 "/p:IntDir=\"$freetype_obj_path\" >> freetype.log" > freetype.bat 57641 cmd /c freetype.bat 57642 57643 if test -s "$freetype_lib_path_unix/freetype.lib"; then 57644 # Once we build both, lib and dll, set freetype lib and include path appropriately 57645 POTENTIAL_FREETYPE_INCLUDE_PATH="$FREETYPE_SRC_PATH/include" 57646 POTENTIAL_FREETYPE_LIB_PATH="$freetype_lib_path_unix" 57647 { $as_echo "$as_me:${as_lineno-$LINENO}: Compiling freetype sources succeeded! (see freetype.log for build results)" >&5 57648 $as_echo "$as_me: Compiling freetype sources succeeded! (see freetype.log for build results)" >&6;} 57649 else 57650 BUILD_FREETYPE=no 57651 fi 57652 else 57653 BUILD_FREETYPE=no 57654 fi 57655 fi 57656 57657 if test "x$BUILD_FREETYPE" = xyes; then 57658 # Okay, we built it. Check that it works. 57659 57660 POTENTIAL_FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH" 57661 POTENTIAL_FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH" 57662 METHOD="--with-freetype-src" 57663 57664 # Let's start with an optimistic view of the world :-) 57665 FOUND_FREETYPE=yes 57666 57667 # First look for the canonical freetype main include file ft2build.h. 57668 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 57669 # Oh no! Let's try in the freetype2 directory. This is needed at least at Mac OS X Yosemite. 57670 POTENTIAL_FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH/freetype2" 57671 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 57672 # Fail. 57673 FOUND_FREETYPE=no 57674 fi 57675 fi 57676 57677 if test "x$FOUND_FREETYPE" = xyes; then 57678 # Include file found, let's continue the sanity check. 57679 { $as_echo "$as_me:${as_lineno-$LINENO}: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&5 57680 $as_echo "$as_me: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&6;} 57681 57682 # Reset to default value 57683 FREETYPE_BASE_NAME=freetype 57684 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 57685 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME"; then 57686 if test "x$OPENJDK_TARGET_OS" = xmacosx \ 57687 && test -s "$POTENTIAL_FREETYPE_LIB_PATH/${LIBRARY_PREFIX}freetype.6${SHARED_LIBRARY_SUFFIX}"; then 57688 # On Mac OS X Yosemite, the symlink from libfreetype.dylib to libfreetype.6.dylib disappeared. Check 57689 # for the .6 version explicitly. 57690 FREETYPE_BASE_NAME=freetype.6 57691 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 57692 { $as_echo "$as_me:${as_lineno-$LINENO}: Compensating for missing symlink by using version 6 explicitly" >&5 57693 $as_echo "$as_me: Compensating for missing symlink by using version 6 explicitly" >&6;} 57694 else 57695 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&5 57696 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&6;} 57697 FOUND_FREETYPE=no 57698 fi 57699 else 57700 if test "x$OPENJDK_TARGET_OS" = xwindows; then 57701 # On Windows, we will need both .lib and .dll file. 57702 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib"; then 57703 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&5 57704 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&6;} 57705 FOUND_FREETYPE=no 57706 fi 57707 elif test "x$OPENJDK_TARGET_OS" = xsolaris \ 57708 && test -s "$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR/$FREETYPE_LIB_NAME"; then 57709 # Found lib in isa dir, use that instead. 57710 POTENTIAL_FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR" 57711 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&5 57712 $as_echo "$as_me: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&6;} 57713 fi 57714 fi 57715 fi 57716 57717 if test "x$FOUND_FREETYPE" = xyes; then 57718 57719 # Only process if variable expands to non-empty 57720 57721 if test "x$POTENTIAL_FREETYPE_INCLUDE_PATH" != x; then 57722 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 57723 57724 # Input might be given as Windows format, start by converting to 57725 # unix format. 57726 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 57727 new_path=`$CYGPATH -u "$path"` 57728 57729 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 57730 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 57731 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 57732 # "foo.exe" is OK but "foo" is an error. 57733 # 57734 # This test is therefore slightly more accurate than "test -f" to check for file precense. 57735 # It is also a way to make sure we got the proper file name for the real test later on. 57736 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 57737 if test "x$test_shortpath" = x; then 57738 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 57739 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 57740 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_INCLUDE_PATH" "$LINENO" 5 57741 fi 57742 57743 # Call helper function which possibly converts this using DOS-style short mode. 57744 # If so, the updated path is stored in $new_path. 57745 57746 input_path="$new_path" 57747 # Check if we need to convert this using DOS-style short mode. If the path 57748 # contains just simple characters, use it. Otherwise (spaces, weird characters), 57749 # take no chances and rewrite it. 57750 # Note: m4 eats our [], so we need to use [ and ] instead. 57751 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 57752 if test "x$has_forbidden_chars" != x; then 57753 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 57754 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 57755 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 57756 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 57757 # Going to short mode and back again did indeed matter. Since short mode is 57758 # case insensitive, let's make it lowercase to improve readability. 57759 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 57760 # Now convert it back to Unix-style (cygpath) 57761 input_path=`$CYGPATH -u "$shortmode_path"` 57762 new_path="$input_path" 57763 fi 57764 fi 57765 57766 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 57767 if test "x$test_cygdrive_prefix" = x; then 57768 # As a simple fix, exclude /usr/bin since it's not a real path. 57769 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 57770 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 57771 # a path prefixed by /cygdrive for fixpath to work. 57772 new_path="$CYGWIN_ROOT_PATH$input_path" 57773 fi 57774 fi 57775 57776 57777 if test "x$path" != "x$new_path"; then 57778 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 57779 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 57780 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 57781 fi 57782 57783 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 57784 57785 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 57786 has_colon=`$ECHO $path | $GREP ^.:` 57787 new_path="$path" 57788 if test "x$has_colon" = x; then 57789 # Not in mixed or Windows style, start by that. 57790 new_path=`cmd //c echo $path` 57791 fi 57792 57793 57794 input_path="$new_path" 57795 # Check if we need to convert this using DOS-style short mode. If the path 57796 # contains just simple characters, use it. Otherwise (spaces, weird characters), 57797 # take no chances and rewrite it. 57798 # Note: m4 eats our [], so we need to use [ and ] instead. 57799 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 57800 if test "x$has_forbidden_chars" != x; then 57801 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 57802 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 57803 fi 57804 57805 57806 windows_path="$new_path" 57807 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 57808 unix_path=`$CYGPATH -u "$windows_path"` 57809 new_path="$unix_path" 57810 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 57811 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 57812 new_path="$unix_path" 57813 fi 57814 57815 if test "x$path" != "x$new_path"; then 57816 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 57817 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 57818 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 57819 fi 57820 57821 # Save the first 10 bytes of this path to the storage, so fixpath can work. 57822 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 57823 57824 else 57825 # We're on a unix platform. Hooray! :) 57826 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 57827 has_space=`$ECHO "$path" | $GREP " "` 57828 if test "x$has_space" != x; then 57829 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 57830 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 57831 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 57832 fi 57833 57834 # Use eval to expand a potential ~ 57835 eval path="$path" 57836 if test ! -f "$path" && test ! -d "$path"; then 57837 as_fn_error $? "The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 57838 fi 57839 57840 if test -d "$path"; then 57841 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$path"; $THEPWDCMD -L`" 57842 else 57843 dir="`$DIRNAME "$path"`" 57844 base="`$BASENAME "$path"`" 57845 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$dir"; $THEPWDCMD -L`/$base" 57846 fi 57847 fi 57848 fi 57849 57850 57851 # Only process if variable expands to non-empty 57852 57853 if test "x$POTENTIAL_FREETYPE_LIB_PATH" != x; then 57854 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 57855 57856 # Input might be given as Windows format, start by converting to 57857 # unix format. 57858 path="$POTENTIAL_FREETYPE_LIB_PATH" 57859 new_path=`$CYGPATH -u "$path"` 57860 57861 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 57862 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 57863 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 57864 # "foo.exe" is OK but "foo" is an error. 57865 # 57866 # This test is therefore slightly more accurate than "test -f" to check for file precense. 57867 # It is also a way to make sure we got the proper file name for the real test later on. 57868 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 57869 if test "x$test_shortpath" = x; then 57870 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 57871 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 57872 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_LIB_PATH" "$LINENO" 5 57873 fi 57874 57875 # Call helper function which possibly converts this using DOS-style short mode. 57876 # If so, the updated path is stored in $new_path. 57877 57878 input_path="$new_path" 57879 # Check if we need to convert this using DOS-style short mode. If the path 57880 # contains just simple characters, use it. Otherwise (spaces, weird characters), 57881 # take no chances and rewrite it. 57882 # Note: m4 eats our [], so we need to use [ and ] instead. 57883 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 57884 if test "x$has_forbidden_chars" != x; then 57885 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 57886 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 57887 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 57888 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 57889 # Going to short mode and back again did indeed matter. Since short mode is 57890 # case insensitive, let's make it lowercase to improve readability. 57891 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 57892 # Now convert it back to Unix-style (cygpath) 57893 input_path=`$CYGPATH -u "$shortmode_path"` 57894 new_path="$input_path" 57895 fi 57896 fi 57897 57898 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 57899 if test "x$test_cygdrive_prefix" = x; then 57900 # As a simple fix, exclude /usr/bin since it's not a real path. 57901 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 57902 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 57903 # a path prefixed by /cygdrive for fixpath to work. 57904 new_path="$CYGWIN_ROOT_PATH$input_path" 57905 fi 57906 fi 57907 57908 57909 if test "x$path" != "x$new_path"; then 57910 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 57911 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 57912 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 57913 fi 57914 57915 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 57916 57917 path="$POTENTIAL_FREETYPE_LIB_PATH" 57918 has_colon=`$ECHO $path | $GREP ^.:` 57919 new_path="$path" 57920 if test "x$has_colon" = x; then 57921 # Not in mixed or Windows style, start by that. 57922 new_path=`cmd //c echo $path` 57923 fi 57924 57925 57926 input_path="$new_path" 57927 # Check if we need to convert this using DOS-style short mode. If the path 57928 # contains just simple characters, use it. Otherwise (spaces, weird characters), 57929 # take no chances and rewrite it. 57930 # Note: m4 eats our [], so we need to use [ and ] instead. 57931 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 57932 if test "x$has_forbidden_chars" != x; then 57933 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 57934 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 57935 fi 57936 57937 57938 windows_path="$new_path" 57939 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 57940 unix_path=`$CYGPATH -u "$windows_path"` 57941 new_path="$unix_path" 57942 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 57943 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 57944 new_path="$unix_path" 57945 fi 57946 57947 if test "x$path" != "x$new_path"; then 57948 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 57949 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 57950 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 57951 fi 57952 57953 # Save the first 10 bytes of this path to the storage, so fixpath can work. 57954 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 57955 57956 else 57957 # We're on a unix platform. Hooray! :) 57958 path="$POTENTIAL_FREETYPE_LIB_PATH" 57959 has_space=`$ECHO "$path" | $GREP " "` 57960 if test "x$has_space" != x; then 57961 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 57962 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 57963 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 57964 fi 57965 57966 # Use eval to expand a potential ~ 57967 eval path="$path" 57968 if test ! -f "$path" && test ! -d "$path"; then 57969 as_fn_error $? "The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 57970 fi 57971 57972 if test -d "$path"; then 57973 POTENTIAL_FREETYPE_LIB_PATH="`cd "$path"; $THEPWDCMD -L`" 57974 else 57975 dir="`$DIRNAME "$path"`" 57976 base="`$BASENAME "$path"`" 57977 POTENTIAL_FREETYPE_LIB_PATH="`cd "$dir"; $THEPWDCMD -L`/$base" 57978 fi 57979 fi 57980 fi 57981 57982 57983 FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH" 57984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype includes" >&5 57985 $as_echo_n "checking for freetype includes... " >&6; } 57986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_INCLUDE_PATH" >&5 57987 $as_echo "$FREETYPE_INCLUDE_PATH" >&6; } 57988 FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH" 57989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype libraries" >&5 57990 $as_echo_n "checking for freetype libraries... " >&6; } 57991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_LIB_PATH" >&5 57992 $as_echo "$FREETYPE_LIB_PATH" >&6; } 57993 fi 57994 57995 if test "x$FOUND_FREETYPE" != xyes; then 57996 as_fn_error $? "Can not use the built freetype at location given by --with-freetype-src" "$LINENO" 5 57997 fi 57998 else 57999 { $as_echo "$as_me:${as_lineno-$LINENO}: User specified --with-freetype-src but building freetype failed. (see freetype.log for build results)" >&5 58000 $as_echo "$as_me: User specified --with-freetype-src but building freetype failed. (see freetype.log for build results)" >&6;} 58001 as_fn_error $? "Consider building freetype manually and using --with-freetype instead." "$LINENO" 5 58002 fi 58003 else 58004 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --with-freetype-src is currently only supported on Windows - ignoring" >&5 58005 $as_echo "$as_me: WARNING: --with-freetype-src is currently only supported on Windows - ignoring" >&2;} 58006 fi 58007 fi 58008 58009 if test "x$with_freetype" != x || test "x$with_freetype_include" != x || test "x$with_freetype_lib" != x; then 58010 # User has specified settings 58011 58012 if test "x$BUNDLE_FREETYPE" = x; then 58013 # If not specified, default is to bundle freetype 58014 BUNDLE_FREETYPE=yes 58015 fi 58016 58017 if test "x$with_freetype" != x; then 58018 POTENTIAL_FREETYPE_INCLUDE_PATH="$with_freetype/include" 58019 POTENTIAL_FREETYPE_LIB_PATH="$with_freetype/lib" 58020 fi 58021 58022 # Allow --with-freetype-lib and --with-freetype-include to override 58023 if test "x$with_freetype_include" != x; then 58024 POTENTIAL_FREETYPE_INCLUDE_PATH="$with_freetype_include" 58025 fi 58026 if test "x$with_freetype_lib" != x; then 58027 POTENTIAL_FREETYPE_LIB_PATH="$with_freetype_lib" 58028 fi 58029 58030 if test "x$POTENTIAL_FREETYPE_INCLUDE_PATH" != x && test "x$POTENTIAL_FREETYPE_LIB_PATH" != x; then 58031 # Okay, we got it. Check that it works. 58032 58033 POTENTIAL_FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH" 58034 POTENTIAL_FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH" 58035 METHOD="--with-freetype" 58036 58037 # Let's start with an optimistic view of the world :-) 58038 FOUND_FREETYPE=yes 58039 58040 # First look for the canonical freetype main include file ft2build.h. 58041 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 58042 # Oh no! Let's try in the freetype2 directory. This is needed at least at Mac OS X Yosemite. 58043 POTENTIAL_FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH/freetype2" 58044 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 58045 # Fail. 58046 FOUND_FREETYPE=no 58047 fi 58048 fi 58049 58050 if test "x$FOUND_FREETYPE" = xyes; then 58051 # Include file found, let's continue the sanity check. 58052 { $as_echo "$as_me:${as_lineno-$LINENO}: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&5 58053 $as_echo "$as_me: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&6;} 58054 58055 # Reset to default value 58056 FREETYPE_BASE_NAME=freetype 58057 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 58058 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME"; then 58059 if test "x$OPENJDK_TARGET_OS" = xmacosx \ 58060 && test -s "$POTENTIAL_FREETYPE_LIB_PATH/${LIBRARY_PREFIX}freetype.6${SHARED_LIBRARY_SUFFIX}"; then 58061 # On Mac OS X Yosemite, the symlink from libfreetype.dylib to libfreetype.6.dylib disappeared. Check 58062 # for the .6 version explicitly. 58063 FREETYPE_BASE_NAME=freetype.6 58064 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 58065 { $as_echo "$as_me:${as_lineno-$LINENO}: Compensating for missing symlink by using version 6 explicitly" >&5 58066 $as_echo "$as_me: Compensating for missing symlink by using version 6 explicitly" >&6;} 58067 else 58068 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&5 58069 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&6;} 58070 FOUND_FREETYPE=no 58071 fi 58072 else 58073 if test "x$OPENJDK_TARGET_OS" = xwindows; then 58074 # On Windows, we will need both .lib and .dll file. 58075 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib"; then 58076 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&5 58077 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&6;} 58078 FOUND_FREETYPE=no 58079 fi 58080 elif test "x$OPENJDK_TARGET_OS" = xsolaris \ 58081 && test -s "$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR/$FREETYPE_LIB_NAME"; then 58082 # Found lib in isa dir, use that instead. 58083 POTENTIAL_FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR" 58084 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&5 58085 $as_echo "$as_me: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&6;} 58086 fi 58087 fi 58088 fi 58089 58090 if test "x$FOUND_FREETYPE" = xyes; then 58091 58092 # Only process if variable expands to non-empty 58093 58094 if test "x$POTENTIAL_FREETYPE_INCLUDE_PATH" != x; then 58095 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 58096 58097 # Input might be given as Windows format, start by converting to 58098 # unix format. 58099 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 58100 new_path=`$CYGPATH -u "$path"` 58101 58102 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 58103 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 58104 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 58105 # "foo.exe" is OK but "foo" is an error. 58106 # 58107 # This test is therefore slightly more accurate than "test -f" to check for file precense. 58108 # It is also a way to make sure we got the proper file name for the real test later on. 58109 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 58110 if test "x$test_shortpath" = x; then 58111 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 58112 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 58113 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_INCLUDE_PATH" "$LINENO" 5 58114 fi 58115 58116 # Call helper function which possibly converts this using DOS-style short mode. 58117 # If so, the updated path is stored in $new_path. 58118 58119 input_path="$new_path" 58120 # Check if we need to convert this using DOS-style short mode. If the path 58121 # contains just simple characters, use it. Otherwise (spaces, weird characters), 58122 # take no chances and rewrite it. 58123 # Note: m4 eats our [], so we need to use [ and ] instead. 58124 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 58125 if test "x$has_forbidden_chars" != x; then 58126 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 58127 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 58128 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 58129 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 58130 # Going to short mode and back again did indeed matter. Since short mode is 58131 # case insensitive, let's make it lowercase to improve readability. 58132 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 58133 # Now convert it back to Unix-style (cygpath) 58134 input_path=`$CYGPATH -u "$shortmode_path"` 58135 new_path="$input_path" 58136 fi 58137 fi 58138 58139 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 58140 if test "x$test_cygdrive_prefix" = x; then 58141 # As a simple fix, exclude /usr/bin since it's not a real path. 58142 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 58143 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 58144 # a path prefixed by /cygdrive for fixpath to work. 58145 new_path="$CYGWIN_ROOT_PATH$input_path" 58146 fi 58147 fi 58148 58149 58150 if test "x$path" != "x$new_path"; then 58151 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 58152 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 58153 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 58154 fi 58155 58156 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 58157 58158 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 58159 has_colon=`$ECHO $path | $GREP ^.:` 58160 new_path="$path" 58161 if test "x$has_colon" = x; then 58162 # Not in mixed or Windows style, start by that. 58163 new_path=`cmd //c echo $path` 58164 fi 58165 58166 58167 input_path="$new_path" 58168 # Check if we need to convert this using DOS-style short mode. If the path 58169 # contains just simple characters, use it. Otherwise (spaces, weird characters), 58170 # take no chances and rewrite it. 58171 # Note: m4 eats our [], so we need to use [ and ] instead. 58172 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 58173 if test "x$has_forbidden_chars" != x; then 58174 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 58175 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 58176 fi 58177 58178 58179 windows_path="$new_path" 58180 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 58181 unix_path=`$CYGPATH -u "$windows_path"` 58182 new_path="$unix_path" 58183 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 58184 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 58185 new_path="$unix_path" 58186 fi 58187 58188 if test "x$path" != "x$new_path"; then 58189 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 58190 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 58191 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 58192 fi 58193 58194 # Save the first 10 bytes of this path to the storage, so fixpath can work. 58195 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 58196 58197 else 58198 # We're on a unix platform. Hooray! :) 58199 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 58200 has_space=`$ECHO "$path" | $GREP " "` 58201 if test "x$has_space" != x; then 58202 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 58203 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 58204 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 58205 fi 58206 58207 # Use eval to expand a potential ~ 58208 eval path="$path" 58209 if test ! -f "$path" && test ! -d "$path"; then 58210 as_fn_error $? "The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 58211 fi 58212 58213 if test -d "$path"; then 58214 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$path"; $THEPWDCMD -L`" 58215 else 58216 dir="`$DIRNAME "$path"`" 58217 base="`$BASENAME "$path"`" 58218 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$dir"; $THEPWDCMD -L`/$base" 58219 fi 58220 fi 58221 fi 58222 58223 58224 # Only process if variable expands to non-empty 58225 58226 if test "x$POTENTIAL_FREETYPE_LIB_PATH" != x; then 58227 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 58228 58229 # Input might be given as Windows format, start by converting to 58230 # unix format. 58231 path="$POTENTIAL_FREETYPE_LIB_PATH" 58232 new_path=`$CYGPATH -u "$path"` 58233 58234 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 58235 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 58236 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 58237 # "foo.exe" is OK but "foo" is an error. 58238 # 58239 # This test is therefore slightly more accurate than "test -f" to check for file precense. 58240 # It is also a way to make sure we got the proper file name for the real test later on. 58241 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 58242 if test "x$test_shortpath" = x; then 58243 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 58244 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 58245 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_LIB_PATH" "$LINENO" 5 58246 fi 58247 58248 # Call helper function which possibly converts this using DOS-style short mode. 58249 # If so, the updated path is stored in $new_path. 58250 58251 input_path="$new_path" 58252 # Check if we need to convert this using DOS-style short mode. If the path 58253 # contains just simple characters, use it. Otherwise (spaces, weird characters), 58254 # take no chances and rewrite it. 58255 # Note: m4 eats our [], so we need to use [ and ] instead. 58256 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 58257 if test "x$has_forbidden_chars" != x; then 58258 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 58259 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 58260 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 58261 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 58262 # Going to short mode and back again did indeed matter. Since short mode is 58263 # case insensitive, let's make it lowercase to improve readability. 58264 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 58265 # Now convert it back to Unix-style (cygpath) 58266 input_path=`$CYGPATH -u "$shortmode_path"` 58267 new_path="$input_path" 58268 fi 58269 fi 58270 58271 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 58272 if test "x$test_cygdrive_prefix" = x; then 58273 # As a simple fix, exclude /usr/bin since it's not a real path. 58274 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 58275 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 58276 # a path prefixed by /cygdrive for fixpath to work. 58277 new_path="$CYGWIN_ROOT_PATH$input_path" 58278 fi 58279 fi 58280 58281 58282 if test "x$path" != "x$new_path"; then 58283 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 58284 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 58285 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 58286 fi 58287 58288 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 58289 58290 path="$POTENTIAL_FREETYPE_LIB_PATH" 58291 has_colon=`$ECHO $path | $GREP ^.:` 58292 new_path="$path" 58293 if test "x$has_colon" = x; then 58294 # Not in mixed or Windows style, start by that. 58295 new_path=`cmd //c echo $path` 58296 fi 58297 58298 58299 input_path="$new_path" 58300 # Check if we need to convert this using DOS-style short mode. If the path 58301 # contains just simple characters, use it. Otherwise (spaces, weird characters), 58302 # take no chances and rewrite it. 58303 # Note: m4 eats our [], so we need to use [ and ] instead. 58304 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 58305 if test "x$has_forbidden_chars" != x; then 58306 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 58307 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 58308 fi 58309 58310 58311 windows_path="$new_path" 58312 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 58313 unix_path=`$CYGPATH -u "$windows_path"` 58314 new_path="$unix_path" 58315 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 58316 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 58317 new_path="$unix_path" 58318 fi 58319 58320 if test "x$path" != "x$new_path"; then 58321 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 58322 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 58323 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 58324 fi 58325 58326 # Save the first 10 bytes of this path to the storage, so fixpath can work. 58327 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 58328 58329 else 58330 # We're on a unix platform. Hooray! :) 58331 path="$POTENTIAL_FREETYPE_LIB_PATH" 58332 has_space=`$ECHO "$path" | $GREP " "` 58333 if test "x$has_space" != x; then 58334 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 58335 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 58336 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 58337 fi 58338 58339 # Use eval to expand a potential ~ 58340 eval path="$path" 58341 if test ! -f "$path" && test ! -d "$path"; then 58342 as_fn_error $? "The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 58343 fi 58344 58345 if test -d "$path"; then 58346 POTENTIAL_FREETYPE_LIB_PATH="`cd "$path"; $THEPWDCMD -L`" 58347 else 58348 dir="`$DIRNAME "$path"`" 58349 base="`$BASENAME "$path"`" 58350 POTENTIAL_FREETYPE_LIB_PATH="`cd "$dir"; $THEPWDCMD -L`/$base" 58351 fi 58352 fi 58353 fi 58354 58355 58356 FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH" 58357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype includes" >&5 58358 $as_echo_n "checking for freetype includes... " >&6; } 58359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_INCLUDE_PATH" >&5 58360 $as_echo "$FREETYPE_INCLUDE_PATH" >&6; } 58361 FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH" 58362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype libraries" >&5 58363 $as_echo_n "checking for freetype libraries... " >&6; } 58364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_LIB_PATH" >&5 58365 $as_echo "$FREETYPE_LIB_PATH" >&6; } 58366 fi 58367 58368 if test "x$FOUND_FREETYPE" != xyes; then 58369 as_fn_error $? "Can not find or use freetype at location given by --with-freetype" "$LINENO" 5 58370 fi 58371 else 58372 # User specified only one of lib or include. This is an error. 58373 if test "x$POTENTIAL_FREETYPE_INCLUDE_PATH" = x ; then 58374 { $as_echo "$as_me:${as_lineno-$LINENO}: User specified --with-freetype-lib but not --with-freetype-include" >&5 58375 $as_echo "$as_me: User specified --with-freetype-lib but not --with-freetype-include" >&6;} 58376 as_fn_error $? "Need both freetype lib and include paths. Consider using --with-freetype instead." "$LINENO" 5 58377 else 58378 { $as_echo "$as_me:${as_lineno-$LINENO}: User specified --with-freetype-include but not --with-freetype-lib" >&5 58379 $as_echo "$as_me: User specified --with-freetype-include but not --with-freetype-lib" >&6;} 58380 as_fn_error $? "Need both freetype lib and include paths. Consider using --with-freetype instead." "$LINENO" 5 58381 fi 58382 fi 58383 else 58384 # User did not specify settings, but we need freetype. Try to locate it. 58385 58386 if test "x$BUNDLE_FREETYPE" = x; then 58387 # If not specified, default is to bundle freetype only on windows 58388 if test "x$OPENJDK_TARGET_OS" = xwindows; then 58389 BUNDLE_FREETYPE=yes 58390 else 58391 BUNDLE_FREETYPE=no 58392 fi 58393 fi 58394 58395 # If we have a sysroot, assume that's where we are supposed to look and skip pkg-config. 58396 if test "x$SYSROOT" = x; then 58397 if test "x$FOUND_FREETYPE" != xyes; then 58398 # Check modules using pkg-config, but only if we have it (ugly output results otherwise) 58399 if test "x$PKG_CONFIG" != x; then 58400 58401 pkg_failed=no 58402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FREETYPE" >&5 58403 $as_echo_n "checking for FREETYPE... " >&6; } 58404 58405 if test -n "$FREETYPE_CFLAGS"; then 58406 pkg_cv_FREETYPE_CFLAGS="$FREETYPE_CFLAGS" 58407 elif test -n "$PKG_CONFIG"; then 58408 if test -n "$PKG_CONFIG" && \ 58409 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"freetype2\""; } >&5 58410 ($PKG_CONFIG --exists --print-errors "freetype2") 2>&5 58411 ac_status=$? 58412 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 58413 test $ac_status = 0; }; then 58414 pkg_cv_FREETYPE_CFLAGS=`$PKG_CONFIG --cflags "freetype2" 2>/dev/null` 58415 else 58416 pkg_failed=yes 58417 fi 58418 else 58419 pkg_failed=untried 58420 fi 58421 if test -n "$FREETYPE_LIBS"; then 58422 pkg_cv_FREETYPE_LIBS="$FREETYPE_LIBS" 58423 elif test -n "$PKG_CONFIG"; then 58424 if test -n "$PKG_CONFIG" && \ 58425 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"freetype2\""; } >&5 58426 ($PKG_CONFIG --exists --print-errors "freetype2") 2>&5 58427 ac_status=$? 58428 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 58429 test $ac_status = 0; }; then 58430 pkg_cv_FREETYPE_LIBS=`$PKG_CONFIG --libs "freetype2" 2>/dev/null` 58431 else 58432 pkg_failed=yes 58433 fi 58434 else 58435 pkg_failed=untried 58436 fi 58437 58438 58439 58440 if test $pkg_failed = yes; then 58441 58442 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 58443 _pkg_short_errors_supported=yes 58444 else 58445 _pkg_short_errors_supported=no 58446 fi 58447 if test $_pkg_short_errors_supported = yes; then 58448 FREETYPE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "freetype2" 2>&1` 58449 else 58450 FREETYPE_PKG_ERRORS=`$PKG_CONFIG --print-errors "freetype2" 2>&1` 58451 fi 58452 # Put the nasty error message in config.log where it belongs 58453 echo "$FREETYPE_PKG_ERRORS" >&5 58454 58455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 58456 $as_echo "no" >&6; } 58457 FOUND_FREETYPE=no 58458 elif test $pkg_failed = untried; then 58459 FOUND_FREETYPE=no 58460 else 58461 FREETYPE_CFLAGS=$pkg_cv_FREETYPE_CFLAGS 58462 FREETYPE_LIBS=$pkg_cv_FREETYPE_LIBS 58463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 58464 $as_echo "yes" >&6; } 58465 FOUND_FREETYPE=yes 58466 fi 58467 if test "x$FOUND_FREETYPE" = xyes; then 58468 # On solaris, pkg_check adds -lz to freetype libs, which isn't necessary for us. 58469 FREETYPE_LIBS=`$ECHO $FREETYPE_LIBS | $SED 's/-lz//g'` 58470 # 64-bit libs for Solaris x86 are installed in the amd64 subdirectory, change lib to lib/amd64 58471 if test "x$OPENJDK_TARGET_OS" = xsolaris && test "x$OPENJDK_TARGET_CPU" = xx86_64; then 58472 FREETYPE_LIBS=`$ECHO $FREETYPE_LIBS | $SED 's?/lib?/lib/amd64?g'` 58473 fi 58474 # PKG_CHECK_MODULES will set FREETYPE_CFLAGS and _LIBS, but we don't get a lib path for bundling. 58475 if test "x$BUNDLE_FREETYPE" = xyes; then 58476 { $as_echo "$as_me:${as_lineno-$LINENO}: Found freetype using pkg-config, but ignoring since we can not bundle that" >&5 58477 $as_echo "$as_me: Found freetype using pkg-config, but ignoring since we can not bundle that" >&6;} 58478 FOUND_FREETYPE=no 58479 else 58480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype" >&5 58481 $as_echo_n "checking for freetype... " >&6; } 58482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (using pkg-config)" >&5 58483 $as_echo "yes (using pkg-config)" >&6; } 58484 fi 58485 fi 58486 fi 58487 fi 58488 fi 58489 58490 if test "x$FOUND_FREETYPE" != xyes; then 58491 # Check in well-known locations 58492 if test "x$OPENJDK_TARGET_OS" = xwindows; then 58493 FREETYPE_BASE_DIR="$PROGRAMFILES/GnuWin32" 58494 58495 windows_path="$FREETYPE_BASE_DIR" 58496 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 58497 unix_path=`$CYGPATH -u "$windows_path"` 58498 FREETYPE_BASE_DIR="$unix_path" 58499 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 58500 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 58501 FREETYPE_BASE_DIR="$unix_path" 58502 fi 58503 58504 58505 POTENTIAL_FREETYPE_INCLUDE_PATH="$FREETYPE_BASE_DIR/include" 58506 POTENTIAL_FREETYPE_LIB_PATH="$FREETYPE_BASE_DIR/lib" 58507 METHOD="well-known location" 58508 58509 # Let's start with an optimistic view of the world :-) 58510 FOUND_FREETYPE=yes 58511 58512 # First look for the canonical freetype main include file ft2build.h. 58513 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 58514 # Oh no! Let's try in the freetype2 directory. This is needed at least at Mac OS X Yosemite. 58515 POTENTIAL_FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH/freetype2" 58516 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 58517 # Fail. 58518 FOUND_FREETYPE=no 58519 fi 58520 fi 58521 58522 if test "x$FOUND_FREETYPE" = xyes; then 58523 # Include file found, let's continue the sanity check. 58524 { $as_echo "$as_me:${as_lineno-$LINENO}: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&5 58525 $as_echo "$as_me: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&6;} 58526 58527 # Reset to default value 58528 FREETYPE_BASE_NAME=freetype 58529 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 58530 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME"; then 58531 if test "x$OPENJDK_TARGET_OS" = xmacosx \ 58532 && test -s "$POTENTIAL_FREETYPE_LIB_PATH/${LIBRARY_PREFIX}freetype.6${SHARED_LIBRARY_SUFFIX}"; then 58533 # On Mac OS X Yosemite, the symlink from libfreetype.dylib to libfreetype.6.dylib disappeared. Check 58534 # for the .6 version explicitly. 58535 FREETYPE_BASE_NAME=freetype.6 58536 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 58537 { $as_echo "$as_me:${as_lineno-$LINENO}: Compensating for missing symlink by using version 6 explicitly" >&5 58538 $as_echo "$as_me: Compensating for missing symlink by using version 6 explicitly" >&6;} 58539 else 58540 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&5 58541 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&6;} 58542 FOUND_FREETYPE=no 58543 fi 58544 else 58545 if test "x$OPENJDK_TARGET_OS" = xwindows; then 58546 # On Windows, we will need both .lib and .dll file. 58547 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib"; then 58548 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&5 58549 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&6;} 58550 FOUND_FREETYPE=no 58551 fi 58552 elif test "x$OPENJDK_TARGET_OS" = xsolaris \ 58553 && test -s "$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR/$FREETYPE_LIB_NAME"; then 58554 # Found lib in isa dir, use that instead. 58555 POTENTIAL_FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR" 58556 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&5 58557 $as_echo "$as_me: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&6;} 58558 fi 58559 fi 58560 fi 58561 58562 if test "x$FOUND_FREETYPE" = xyes; then 58563 58564 # Only process if variable expands to non-empty 58565 58566 if test "x$POTENTIAL_FREETYPE_INCLUDE_PATH" != x; then 58567 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 58568 58569 # Input might be given as Windows format, start by converting to 58570 # unix format. 58571 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 58572 new_path=`$CYGPATH -u "$path"` 58573 58574 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 58575 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 58576 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 58577 # "foo.exe" is OK but "foo" is an error. 58578 # 58579 # This test is therefore slightly more accurate than "test -f" to check for file precense. 58580 # It is also a way to make sure we got the proper file name for the real test later on. 58581 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 58582 if test "x$test_shortpath" = x; then 58583 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 58584 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 58585 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_INCLUDE_PATH" "$LINENO" 5 58586 fi 58587 58588 # Call helper function which possibly converts this using DOS-style short mode. 58589 # If so, the updated path is stored in $new_path. 58590 58591 input_path="$new_path" 58592 # Check if we need to convert this using DOS-style short mode. If the path 58593 # contains just simple characters, use it. Otherwise (spaces, weird characters), 58594 # take no chances and rewrite it. 58595 # Note: m4 eats our [], so we need to use [ and ] instead. 58596 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 58597 if test "x$has_forbidden_chars" != x; then 58598 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 58599 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 58600 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 58601 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 58602 # Going to short mode and back again did indeed matter. Since short mode is 58603 # case insensitive, let's make it lowercase to improve readability. 58604 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 58605 # Now convert it back to Unix-style (cygpath) 58606 input_path=`$CYGPATH -u "$shortmode_path"` 58607 new_path="$input_path" 58608 fi 58609 fi 58610 58611 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 58612 if test "x$test_cygdrive_prefix" = x; then 58613 # As a simple fix, exclude /usr/bin since it's not a real path. 58614 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 58615 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 58616 # a path prefixed by /cygdrive for fixpath to work. 58617 new_path="$CYGWIN_ROOT_PATH$input_path" 58618 fi 58619 fi 58620 58621 58622 if test "x$path" != "x$new_path"; then 58623 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 58624 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 58625 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 58626 fi 58627 58628 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 58629 58630 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 58631 has_colon=`$ECHO $path | $GREP ^.:` 58632 new_path="$path" 58633 if test "x$has_colon" = x; then 58634 # Not in mixed or Windows style, start by that. 58635 new_path=`cmd //c echo $path` 58636 fi 58637 58638 58639 input_path="$new_path" 58640 # Check if we need to convert this using DOS-style short mode. If the path 58641 # contains just simple characters, use it. Otherwise (spaces, weird characters), 58642 # take no chances and rewrite it. 58643 # Note: m4 eats our [], so we need to use [ and ] instead. 58644 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 58645 if test "x$has_forbidden_chars" != x; then 58646 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 58647 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 58648 fi 58649 58650 58651 windows_path="$new_path" 58652 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 58653 unix_path=`$CYGPATH -u "$windows_path"` 58654 new_path="$unix_path" 58655 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 58656 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 58657 new_path="$unix_path" 58658 fi 58659 58660 if test "x$path" != "x$new_path"; then 58661 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 58662 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 58663 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 58664 fi 58665 58666 # Save the first 10 bytes of this path to the storage, so fixpath can work. 58667 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 58668 58669 else 58670 # We're on a unix platform. Hooray! :) 58671 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 58672 has_space=`$ECHO "$path" | $GREP " "` 58673 if test "x$has_space" != x; then 58674 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 58675 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 58676 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 58677 fi 58678 58679 # Use eval to expand a potential ~ 58680 eval path="$path" 58681 if test ! -f "$path" && test ! -d "$path"; then 58682 as_fn_error $? "The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 58683 fi 58684 58685 if test -d "$path"; then 58686 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$path"; $THEPWDCMD -L`" 58687 else 58688 dir="`$DIRNAME "$path"`" 58689 base="`$BASENAME "$path"`" 58690 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$dir"; $THEPWDCMD -L`/$base" 58691 fi 58692 fi 58693 fi 58694 58695 58696 # Only process if variable expands to non-empty 58697 58698 if test "x$POTENTIAL_FREETYPE_LIB_PATH" != x; then 58699 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 58700 58701 # Input might be given as Windows format, start by converting to 58702 # unix format. 58703 path="$POTENTIAL_FREETYPE_LIB_PATH" 58704 new_path=`$CYGPATH -u "$path"` 58705 58706 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 58707 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 58708 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 58709 # "foo.exe" is OK but "foo" is an error. 58710 # 58711 # This test is therefore slightly more accurate than "test -f" to check for file precense. 58712 # It is also a way to make sure we got the proper file name for the real test later on. 58713 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 58714 if test "x$test_shortpath" = x; then 58715 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 58716 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 58717 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_LIB_PATH" "$LINENO" 5 58718 fi 58719 58720 # Call helper function which possibly converts this using DOS-style short mode. 58721 # If so, the updated path is stored in $new_path. 58722 58723 input_path="$new_path" 58724 # Check if we need to convert this using DOS-style short mode. If the path 58725 # contains just simple characters, use it. Otherwise (spaces, weird characters), 58726 # take no chances and rewrite it. 58727 # Note: m4 eats our [], so we need to use [ and ] instead. 58728 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 58729 if test "x$has_forbidden_chars" != x; then 58730 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 58731 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 58732 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 58733 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 58734 # Going to short mode and back again did indeed matter. Since short mode is 58735 # case insensitive, let's make it lowercase to improve readability. 58736 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 58737 # Now convert it back to Unix-style (cygpath) 58738 input_path=`$CYGPATH -u "$shortmode_path"` 58739 new_path="$input_path" 58740 fi 58741 fi 58742 58743 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 58744 if test "x$test_cygdrive_prefix" = x; then 58745 # As a simple fix, exclude /usr/bin since it's not a real path. 58746 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 58747 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 58748 # a path prefixed by /cygdrive for fixpath to work. 58749 new_path="$CYGWIN_ROOT_PATH$input_path" 58750 fi 58751 fi 58752 58753 58754 if test "x$path" != "x$new_path"; then 58755 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 58756 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 58757 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 58758 fi 58759 58760 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 58761 58762 path="$POTENTIAL_FREETYPE_LIB_PATH" 58763 has_colon=`$ECHO $path | $GREP ^.:` 58764 new_path="$path" 58765 if test "x$has_colon" = x; then 58766 # Not in mixed or Windows style, start by that. 58767 new_path=`cmd //c echo $path` 58768 fi 58769 58770 58771 input_path="$new_path" 58772 # Check if we need to convert this using DOS-style short mode. If the path 58773 # contains just simple characters, use it. Otherwise (spaces, weird characters), 58774 # take no chances and rewrite it. 58775 # Note: m4 eats our [], so we need to use [ and ] instead. 58776 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 58777 if test "x$has_forbidden_chars" != x; then 58778 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 58779 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 58780 fi 58781 58782 58783 windows_path="$new_path" 58784 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 58785 unix_path=`$CYGPATH -u "$windows_path"` 58786 new_path="$unix_path" 58787 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 58788 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 58789 new_path="$unix_path" 58790 fi 58791 58792 if test "x$path" != "x$new_path"; then 58793 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 58794 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 58795 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 58796 fi 58797 58798 # Save the first 10 bytes of this path to the storage, so fixpath can work. 58799 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 58800 58801 else 58802 # We're on a unix platform. Hooray! :) 58803 path="$POTENTIAL_FREETYPE_LIB_PATH" 58804 has_space=`$ECHO "$path" | $GREP " "` 58805 if test "x$has_space" != x; then 58806 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 58807 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 58808 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 58809 fi 58810 58811 # Use eval to expand a potential ~ 58812 eval path="$path" 58813 if test ! -f "$path" && test ! -d "$path"; then 58814 as_fn_error $? "The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 58815 fi 58816 58817 if test -d "$path"; then 58818 POTENTIAL_FREETYPE_LIB_PATH="`cd "$path"; $THEPWDCMD -L`" 58819 else 58820 dir="`$DIRNAME "$path"`" 58821 base="`$BASENAME "$path"`" 58822 POTENTIAL_FREETYPE_LIB_PATH="`cd "$dir"; $THEPWDCMD -L`/$base" 58823 fi 58824 fi 58825 fi 58826 58827 58828 FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH" 58829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype includes" >&5 58830 $as_echo_n "checking for freetype includes... " >&6; } 58831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_INCLUDE_PATH" >&5 58832 $as_echo "$FREETYPE_INCLUDE_PATH" >&6; } 58833 FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH" 58834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype libraries" >&5 58835 $as_echo_n "checking for freetype libraries... " >&6; } 58836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_LIB_PATH" >&5 58837 $as_echo "$FREETYPE_LIB_PATH" >&6; } 58838 fi 58839 58840 if test "x$FOUND_FREETYPE" != xyes; then 58841 FREETYPE_BASE_DIR="$ProgramW6432/GnuWin32" 58842 58843 windows_path="$FREETYPE_BASE_DIR" 58844 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 58845 unix_path=`$CYGPATH -u "$windows_path"` 58846 FREETYPE_BASE_DIR="$unix_path" 58847 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 58848 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 58849 FREETYPE_BASE_DIR="$unix_path" 58850 fi 58851 58852 58853 POTENTIAL_FREETYPE_INCLUDE_PATH="$FREETYPE_BASE_DIR/include" 58854 POTENTIAL_FREETYPE_LIB_PATH="$FREETYPE_BASE_DIR/lib" 58855 METHOD="well-known location" 58856 58857 # Let's start with an optimistic view of the world :-) 58858 FOUND_FREETYPE=yes 58859 58860 # First look for the canonical freetype main include file ft2build.h. 58861 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 58862 # Oh no! Let's try in the freetype2 directory. This is needed at least at Mac OS X Yosemite. 58863 POTENTIAL_FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH/freetype2" 58864 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 58865 # Fail. 58866 FOUND_FREETYPE=no 58867 fi 58868 fi 58869 58870 if test "x$FOUND_FREETYPE" = xyes; then 58871 # Include file found, let's continue the sanity check. 58872 { $as_echo "$as_me:${as_lineno-$LINENO}: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&5 58873 $as_echo "$as_me: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&6;} 58874 58875 # Reset to default value 58876 FREETYPE_BASE_NAME=freetype 58877 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 58878 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME"; then 58879 if test "x$OPENJDK_TARGET_OS" = xmacosx \ 58880 && test -s "$POTENTIAL_FREETYPE_LIB_PATH/${LIBRARY_PREFIX}freetype.6${SHARED_LIBRARY_SUFFIX}"; then 58881 # On Mac OS X Yosemite, the symlink from libfreetype.dylib to libfreetype.6.dylib disappeared. Check 58882 # for the .6 version explicitly. 58883 FREETYPE_BASE_NAME=freetype.6 58884 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 58885 { $as_echo "$as_me:${as_lineno-$LINENO}: Compensating for missing symlink by using version 6 explicitly" >&5 58886 $as_echo "$as_me: Compensating for missing symlink by using version 6 explicitly" >&6;} 58887 else 58888 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&5 58889 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&6;} 58890 FOUND_FREETYPE=no 58891 fi 58892 else 58893 if test "x$OPENJDK_TARGET_OS" = xwindows; then 58894 # On Windows, we will need both .lib and .dll file. 58895 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib"; then 58896 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&5 58897 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&6;} 58898 FOUND_FREETYPE=no 58899 fi 58900 elif test "x$OPENJDK_TARGET_OS" = xsolaris \ 58901 && test -s "$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR/$FREETYPE_LIB_NAME"; then 58902 # Found lib in isa dir, use that instead. 58903 POTENTIAL_FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR" 58904 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&5 58905 $as_echo "$as_me: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&6;} 58906 fi 58907 fi 58908 fi 58909 58910 if test "x$FOUND_FREETYPE" = xyes; then 58911 58912 # Only process if variable expands to non-empty 58913 58914 if test "x$POTENTIAL_FREETYPE_INCLUDE_PATH" != x; then 58915 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 58916 58917 # Input might be given as Windows format, start by converting to 58918 # unix format. 58919 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 58920 new_path=`$CYGPATH -u "$path"` 58921 58922 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 58923 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 58924 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 58925 # "foo.exe" is OK but "foo" is an error. 58926 # 58927 # This test is therefore slightly more accurate than "test -f" to check for file precense. 58928 # It is also a way to make sure we got the proper file name for the real test later on. 58929 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 58930 if test "x$test_shortpath" = x; then 58931 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 58932 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 58933 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_INCLUDE_PATH" "$LINENO" 5 58934 fi 58935 58936 # Call helper function which possibly converts this using DOS-style short mode. 58937 # If so, the updated path is stored in $new_path. 58938 58939 input_path="$new_path" 58940 # Check if we need to convert this using DOS-style short mode. If the path 58941 # contains just simple characters, use it. Otherwise (spaces, weird characters), 58942 # take no chances and rewrite it. 58943 # Note: m4 eats our [], so we need to use [ and ] instead. 58944 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 58945 if test "x$has_forbidden_chars" != x; then 58946 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 58947 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 58948 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 58949 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 58950 # Going to short mode and back again did indeed matter. Since short mode is 58951 # case insensitive, let's make it lowercase to improve readability. 58952 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 58953 # Now convert it back to Unix-style (cygpath) 58954 input_path=`$CYGPATH -u "$shortmode_path"` 58955 new_path="$input_path" 58956 fi 58957 fi 58958 58959 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 58960 if test "x$test_cygdrive_prefix" = x; then 58961 # As a simple fix, exclude /usr/bin since it's not a real path. 58962 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 58963 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 58964 # a path prefixed by /cygdrive for fixpath to work. 58965 new_path="$CYGWIN_ROOT_PATH$input_path" 58966 fi 58967 fi 58968 58969 58970 if test "x$path" != "x$new_path"; then 58971 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 58972 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 58973 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 58974 fi 58975 58976 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 58977 58978 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 58979 has_colon=`$ECHO $path | $GREP ^.:` 58980 new_path="$path" 58981 if test "x$has_colon" = x; then 58982 # Not in mixed or Windows style, start by that. 58983 new_path=`cmd //c echo $path` 58984 fi 58985 58986 58987 input_path="$new_path" 58988 # Check if we need to convert this using DOS-style short mode. If the path 58989 # contains just simple characters, use it. Otherwise (spaces, weird characters), 58990 # take no chances and rewrite it. 58991 # Note: m4 eats our [], so we need to use [ and ] instead. 58992 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 58993 if test "x$has_forbidden_chars" != x; then 58994 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 58995 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 58996 fi 58997 58998 58999 windows_path="$new_path" 59000 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 59001 unix_path=`$CYGPATH -u "$windows_path"` 59002 new_path="$unix_path" 59003 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 59004 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 59005 new_path="$unix_path" 59006 fi 59007 59008 if test "x$path" != "x$new_path"; then 59009 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 59010 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 59011 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 59012 fi 59013 59014 # Save the first 10 bytes of this path to the storage, so fixpath can work. 59015 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 59016 59017 else 59018 # We're on a unix platform. Hooray! :) 59019 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 59020 has_space=`$ECHO "$path" | $GREP " "` 59021 if test "x$has_space" != x; then 59022 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 59023 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 59024 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 59025 fi 59026 59027 # Use eval to expand a potential ~ 59028 eval path="$path" 59029 if test ! -f "$path" && test ! -d "$path"; then 59030 as_fn_error $? "The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 59031 fi 59032 59033 if test -d "$path"; then 59034 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$path"; $THEPWDCMD -L`" 59035 else 59036 dir="`$DIRNAME "$path"`" 59037 base="`$BASENAME "$path"`" 59038 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$dir"; $THEPWDCMD -L`/$base" 59039 fi 59040 fi 59041 fi 59042 59043 59044 # Only process if variable expands to non-empty 59045 59046 if test "x$POTENTIAL_FREETYPE_LIB_PATH" != x; then 59047 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 59048 59049 # Input might be given as Windows format, start by converting to 59050 # unix format. 59051 path="$POTENTIAL_FREETYPE_LIB_PATH" 59052 new_path=`$CYGPATH -u "$path"` 59053 59054 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 59055 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 59056 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 59057 # "foo.exe" is OK but "foo" is an error. 59058 # 59059 # This test is therefore slightly more accurate than "test -f" to check for file precense. 59060 # It is also a way to make sure we got the proper file name for the real test later on. 59061 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 59062 if test "x$test_shortpath" = x; then 59063 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 59064 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 59065 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_LIB_PATH" "$LINENO" 5 59066 fi 59067 59068 # Call helper function which possibly converts this using DOS-style short mode. 59069 # If so, the updated path is stored in $new_path. 59070 59071 input_path="$new_path" 59072 # Check if we need to convert this using DOS-style short mode. If the path 59073 # contains just simple characters, use it. Otherwise (spaces, weird characters), 59074 # take no chances and rewrite it. 59075 # Note: m4 eats our [], so we need to use [ and ] instead. 59076 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 59077 if test "x$has_forbidden_chars" != x; then 59078 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 59079 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 59080 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 59081 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 59082 # Going to short mode and back again did indeed matter. Since short mode is 59083 # case insensitive, let's make it lowercase to improve readability. 59084 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 59085 # Now convert it back to Unix-style (cygpath) 59086 input_path=`$CYGPATH -u "$shortmode_path"` 59087 new_path="$input_path" 59088 fi 59089 fi 59090 59091 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 59092 if test "x$test_cygdrive_prefix" = x; then 59093 # As a simple fix, exclude /usr/bin since it's not a real path. 59094 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 59095 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 59096 # a path prefixed by /cygdrive for fixpath to work. 59097 new_path="$CYGWIN_ROOT_PATH$input_path" 59098 fi 59099 fi 59100 59101 59102 if test "x$path" != "x$new_path"; then 59103 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 59104 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 59105 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 59106 fi 59107 59108 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 59109 59110 path="$POTENTIAL_FREETYPE_LIB_PATH" 59111 has_colon=`$ECHO $path | $GREP ^.:` 59112 new_path="$path" 59113 if test "x$has_colon" = x; then 59114 # Not in mixed or Windows style, start by that. 59115 new_path=`cmd //c echo $path` 59116 fi 59117 59118 59119 input_path="$new_path" 59120 # Check if we need to convert this using DOS-style short mode. If the path 59121 # contains just simple characters, use it. Otherwise (spaces, weird characters), 59122 # take no chances and rewrite it. 59123 # Note: m4 eats our [], so we need to use [ and ] instead. 59124 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 59125 if test "x$has_forbidden_chars" != x; then 59126 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 59127 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 59128 fi 59129 59130 59131 windows_path="$new_path" 59132 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 59133 unix_path=`$CYGPATH -u "$windows_path"` 59134 new_path="$unix_path" 59135 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 59136 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 59137 new_path="$unix_path" 59138 fi 59139 59140 if test "x$path" != "x$new_path"; then 59141 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 59142 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 59143 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 59144 fi 59145 59146 # Save the first 10 bytes of this path to the storage, so fixpath can work. 59147 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 59148 59149 else 59150 # We're on a unix platform. Hooray! :) 59151 path="$POTENTIAL_FREETYPE_LIB_PATH" 59152 has_space=`$ECHO "$path" | $GREP " "` 59153 if test "x$has_space" != x; then 59154 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 59155 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 59156 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 59157 fi 59158 59159 # Use eval to expand a potential ~ 59160 eval path="$path" 59161 if test ! -f "$path" && test ! -d "$path"; then 59162 as_fn_error $? "The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 59163 fi 59164 59165 if test -d "$path"; then 59166 POTENTIAL_FREETYPE_LIB_PATH="`cd "$path"; $THEPWDCMD -L`" 59167 else 59168 dir="`$DIRNAME "$path"`" 59169 base="`$BASENAME "$path"`" 59170 POTENTIAL_FREETYPE_LIB_PATH="`cd "$dir"; $THEPWDCMD -L`/$base" 59171 fi 59172 fi 59173 fi 59174 59175 59176 FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH" 59177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype includes" >&5 59178 $as_echo_n "checking for freetype includes... " >&6; } 59179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_INCLUDE_PATH" >&5 59180 $as_echo "$FREETYPE_INCLUDE_PATH" >&6; } 59181 FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH" 59182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype libraries" >&5 59183 $as_echo_n "checking for freetype libraries... " >&6; } 59184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_LIB_PATH" >&5 59185 $as_echo "$FREETYPE_LIB_PATH" >&6; } 59186 fi 59187 59188 fi 59189 if test "x$FOUND_FREETYPE" != xyes; then 59190 FREETYPE_BASE_DIR="$HOME/freetype" 59191 59192 windows_path="$FREETYPE_BASE_DIR" 59193 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 59194 unix_path=`$CYGPATH -u "$windows_path"` 59195 FREETYPE_BASE_DIR="$unix_path" 59196 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 59197 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 59198 FREETYPE_BASE_DIR="$unix_path" 59199 fi 59200 59201 if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then 59202 59203 POTENTIAL_FREETYPE_INCLUDE_PATH="$FREETYPE_BASE_DIR/include" 59204 POTENTIAL_FREETYPE_LIB_PATH="$FREETYPE_BASE_DIR/lib64" 59205 METHOD="well-known location" 59206 59207 # Let's start with an optimistic view of the world :-) 59208 FOUND_FREETYPE=yes 59209 59210 # First look for the canonical freetype main include file ft2build.h. 59211 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 59212 # Oh no! Let's try in the freetype2 directory. This is needed at least at Mac OS X Yosemite. 59213 POTENTIAL_FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH/freetype2" 59214 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 59215 # Fail. 59216 FOUND_FREETYPE=no 59217 fi 59218 fi 59219 59220 if test "x$FOUND_FREETYPE" = xyes; then 59221 # Include file found, let's continue the sanity check. 59222 { $as_echo "$as_me:${as_lineno-$LINENO}: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&5 59223 $as_echo "$as_me: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&6;} 59224 59225 # Reset to default value 59226 FREETYPE_BASE_NAME=freetype 59227 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 59228 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME"; then 59229 if test "x$OPENJDK_TARGET_OS" = xmacosx \ 59230 && test -s "$POTENTIAL_FREETYPE_LIB_PATH/${LIBRARY_PREFIX}freetype.6${SHARED_LIBRARY_SUFFIX}"; then 59231 # On Mac OS X Yosemite, the symlink from libfreetype.dylib to libfreetype.6.dylib disappeared. Check 59232 # for the .6 version explicitly. 59233 FREETYPE_BASE_NAME=freetype.6 59234 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 59235 { $as_echo "$as_me:${as_lineno-$LINENO}: Compensating for missing symlink by using version 6 explicitly" >&5 59236 $as_echo "$as_me: Compensating for missing symlink by using version 6 explicitly" >&6;} 59237 else 59238 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&5 59239 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&6;} 59240 FOUND_FREETYPE=no 59241 fi 59242 else 59243 if test "x$OPENJDK_TARGET_OS" = xwindows; then 59244 # On Windows, we will need both .lib and .dll file. 59245 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib"; then 59246 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&5 59247 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&6;} 59248 FOUND_FREETYPE=no 59249 fi 59250 elif test "x$OPENJDK_TARGET_OS" = xsolaris \ 59251 && test -s "$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR/$FREETYPE_LIB_NAME"; then 59252 # Found lib in isa dir, use that instead. 59253 POTENTIAL_FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR" 59254 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&5 59255 $as_echo "$as_me: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&6;} 59256 fi 59257 fi 59258 fi 59259 59260 if test "x$FOUND_FREETYPE" = xyes; then 59261 59262 # Only process if variable expands to non-empty 59263 59264 if test "x$POTENTIAL_FREETYPE_INCLUDE_PATH" != x; then 59265 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 59266 59267 # Input might be given as Windows format, start by converting to 59268 # unix format. 59269 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 59270 new_path=`$CYGPATH -u "$path"` 59271 59272 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 59273 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 59274 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 59275 # "foo.exe" is OK but "foo" is an error. 59276 # 59277 # This test is therefore slightly more accurate than "test -f" to check for file precense. 59278 # It is also a way to make sure we got the proper file name for the real test later on. 59279 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 59280 if test "x$test_shortpath" = x; then 59281 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 59282 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 59283 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_INCLUDE_PATH" "$LINENO" 5 59284 fi 59285 59286 # Call helper function which possibly converts this using DOS-style short mode. 59287 # If so, the updated path is stored in $new_path. 59288 59289 input_path="$new_path" 59290 # Check if we need to convert this using DOS-style short mode. If the path 59291 # contains just simple characters, use it. Otherwise (spaces, weird characters), 59292 # take no chances and rewrite it. 59293 # Note: m4 eats our [], so we need to use [ and ] instead. 59294 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 59295 if test "x$has_forbidden_chars" != x; then 59296 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 59297 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 59298 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 59299 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 59300 # Going to short mode and back again did indeed matter. Since short mode is 59301 # case insensitive, let's make it lowercase to improve readability. 59302 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 59303 # Now convert it back to Unix-style (cygpath) 59304 input_path=`$CYGPATH -u "$shortmode_path"` 59305 new_path="$input_path" 59306 fi 59307 fi 59308 59309 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 59310 if test "x$test_cygdrive_prefix" = x; then 59311 # As a simple fix, exclude /usr/bin since it's not a real path. 59312 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 59313 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 59314 # a path prefixed by /cygdrive for fixpath to work. 59315 new_path="$CYGWIN_ROOT_PATH$input_path" 59316 fi 59317 fi 59318 59319 59320 if test "x$path" != "x$new_path"; then 59321 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 59322 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 59323 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 59324 fi 59325 59326 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 59327 59328 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 59329 has_colon=`$ECHO $path | $GREP ^.:` 59330 new_path="$path" 59331 if test "x$has_colon" = x; then 59332 # Not in mixed or Windows style, start by that. 59333 new_path=`cmd //c echo $path` 59334 fi 59335 59336 59337 input_path="$new_path" 59338 # Check if we need to convert this using DOS-style short mode. If the path 59339 # contains just simple characters, use it. Otherwise (spaces, weird characters), 59340 # take no chances and rewrite it. 59341 # Note: m4 eats our [], so we need to use [ and ] instead. 59342 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 59343 if test "x$has_forbidden_chars" != x; then 59344 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 59345 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 59346 fi 59347 59348 59349 windows_path="$new_path" 59350 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 59351 unix_path=`$CYGPATH -u "$windows_path"` 59352 new_path="$unix_path" 59353 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 59354 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 59355 new_path="$unix_path" 59356 fi 59357 59358 if test "x$path" != "x$new_path"; then 59359 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 59360 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 59361 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 59362 fi 59363 59364 # Save the first 10 bytes of this path to the storage, so fixpath can work. 59365 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 59366 59367 else 59368 # We're on a unix platform. Hooray! :) 59369 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 59370 has_space=`$ECHO "$path" | $GREP " "` 59371 if test "x$has_space" != x; then 59372 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 59373 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 59374 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 59375 fi 59376 59377 # Use eval to expand a potential ~ 59378 eval path="$path" 59379 if test ! -f "$path" && test ! -d "$path"; then 59380 as_fn_error $? "The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 59381 fi 59382 59383 if test -d "$path"; then 59384 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$path"; $THEPWDCMD -L`" 59385 else 59386 dir="`$DIRNAME "$path"`" 59387 base="`$BASENAME "$path"`" 59388 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$dir"; $THEPWDCMD -L`/$base" 59389 fi 59390 fi 59391 fi 59392 59393 59394 # Only process if variable expands to non-empty 59395 59396 if test "x$POTENTIAL_FREETYPE_LIB_PATH" != x; then 59397 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 59398 59399 # Input might be given as Windows format, start by converting to 59400 # unix format. 59401 path="$POTENTIAL_FREETYPE_LIB_PATH" 59402 new_path=`$CYGPATH -u "$path"` 59403 59404 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 59405 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 59406 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 59407 # "foo.exe" is OK but "foo" is an error. 59408 # 59409 # This test is therefore slightly more accurate than "test -f" to check for file precense. 59410 # It is also a way to make sure we got the proper file name for the real test later on. 59411 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 59412 if test "x$test_shortpath" = x; then 59413 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 59414 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 59415 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_LIB_PATH" "$LINENO" 5 59416 fi 59417 59418 # Call helper function which possibly converts this using DOS-style short mode. 59419 # If so, the updated path is stored in $new_path. 59420 59421 input_path="$new_path" 59422 # Check if we need to convert this using DOS-style short mode. If the path 59423 # contains just simple characters, use it. Otherwise (spaces, weird characters), 59424 # take no chances and rewrite it. 59425 # Note: m4 eats our [], so we need to use [ and ] instead. 59426 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 59427 if test "x$has_forbidden_chars" != x; then 59428 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 59429 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 59430 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 59431 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 59432 # Going to short mode and back again did indeed matter. Since short mode is 59433 # case insensitive, let's make it lowercase to improve readability. 59434 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 59435 # Now convert it back to Unix-style (cygpath) 59436 input_path=`$CYGPATH -u "$shortmode_path"` 59437 new_path="$input_path" 59438 fi 59439 fi 59440 59441 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 59442 if test "x$test_cygdrive_prefix" = x; then 59443 # As a simple fix, exclude /usr/bin since it's not a real path. 59444 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 59445 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 59446 # a path prefixed by /cygdrive for fixpath to work. 59447 new_path="$CYGWIN_ROOT_PATH$input_path" 59448 fi 59449 fi 59450 59451 59452 if test "x$path" != "x$new_path"; then 59453 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 59454 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 59455 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 59456 fi 59457 59458 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 59459 59460 path="$POTENTIAL_FREETYPE_LIB_PATH" 59461 has_colon=`$ECHO $path | $GREP ^.:` 59462 new_path="$path" 59463 if test "x$has_colon" = x; then 59464 # Not in mixed or Windows style, start by that. 59465 new_path=`cmd //c echo $path` 59466 fi 59467 59468 59469 input_path="$new_path" 59470 # Check if we need to convert this using DOS-style short mode. If the path 59471 # contains just simple characters, use it. Otherwise (spaces, weird characters), 59472 # take no chances and rewrite it. 59473 # Note: m4 eats our [], so we need to use [ and ] instead. 59474 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 59475 if test "x$has_forbidden_chars" != x; then 59476 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 59477 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 59478 fi 59479 59480 59481 windows_path="$new_path" 59482 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 59483 unix_path=`$CYGPATH -u "$windows_path"` 59484 new_path="$unix_path" 59485 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 59486 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 59487 new_path="$unix_path" 59488 fi 59489 59490 if test "x$path" != "x$new_path"; then 59491 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 59492 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 59493 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 59494 fi 59495 59496 # Save the first 10 bytes of this path to the storage, so fixpath can work. 59497 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 59498 59499 else 59500 # We're on a unix platform. Hooray! :) 59501 path="$POTENTIAL_FREETYPE_LIB_PATH" 59502 has_space=`$ECHO "$path" | $GREP " "` 59503 if test "x$has_space" != x; then 59504 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 59505 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 59506 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 59507 fi 59508 59509 # Use eval to expand a potential ~ 59510 eval path="$path" 59511 if test ! -f "$path" && test ! -d "$path"; then 59512 as_fn_error $? "The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 59513 fi 59514 59515 if test -d "$path"; then 59516 POTENTIAL_FREETYPE_LIB_PATH="`cd "$path"; $THEPWDCMD -L`" 59517 else 59518 dir="`$DIRNAME "$path"`" 59519 base="`$BASENAME "$path"`" 59520 POTENTIAL_FREETYPE_LIB_PATH="`cd "$dir"; $THEPWDCMD -L`/$base" 59521 fi 59522 fi 59523 fi 59524 59525 59526 FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH" 59527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype includes" >&5 59528 $as_echo_n "checking for freetype includes... " >&6; } 59529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_INCLUDE_PATH" >&5 59530 $as_echo "$FREETYPE_INCLUDE_PATH" >&6; } 59531 FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH" 59532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype libraries" >&5 59533 $as_echo_n "checking for freetype libraries... " >&6; } 59534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_LIB_PATH" >&5 59535 $as_echo "$FREETYPE_LIB_PATH" >&6; } 59536 fi 59537 59538 else 59539 59540 POTENTIAL_FREETYPE_INCLUDE_PATH="$FREETYPE_BASE_DIR/include" 59541 POTENTIAL_FREETYPE_LIB_PATH="$FREETYPE_BASE_DIR/lib32" 59542 METHOD="well-known location" 59543 59544 # Let's start with an optimistic view of the world :-) 59545 FOUND_FREETYPE=yes 59546 59547 # First look for the canonical freetype main include file ft2build.h. 59548 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 59549 # Oh no! Let's try in the freetype2 directory. This is needed at least at Mac OS X Yosemite. 59550 POTENTIAL_FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH/freetype2" 59551 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 59552 # Fail. 59553 FOUND_FREETYPE=no 59554 fi 59555 fi 59556 59557 if test "x$FOUND_FREETYPE" = xyes; then 59558 # Include file found, let's continue the sanity check. 59559 { $as_echo "$as_me:${as_lineno-$LINENO}: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&5 59560 $as_echo "$as_me: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&6;} 59561 59562 # Reset to default value 59563 FREETYPE_BASE_NAME=freetype 59564 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 59565 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME"; then 59566 if test "x$OPENJDK_TARGET_OS" = xmacosx \ 59567 && test -s "$POTENTIAL_FREETYPE_LIB_PATH/${LIBRARY_PREFIX}freetype.6${SHARED_LIBRARY_SUFFIX}"; then 59568 # On Mac OS X Yosemite, the symlink from libfreetype.dylib to libfreetype.6.dylib disappeared. Check 59569 # for the .6 version explicitly. 59570 FREETYPE_BASE_NAME=freetype.6 59571 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 59572 { $as_echo "$as_me:${as_lineno-$LINENO}: Compensating for missing symlink by using version 6 explicitly" >&5 59573 $as_echo "$as_me: Compensating for missing symlink by using version 6 explicitly" >&6;} 59574 else 59575 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&5 59576 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&6;} 59577 FOUND_FREETYPE=no 59578 fi 59579 else 59580 if test "x$OPENJDK_TARGET_OS" = xwindows; then 59581 # On Windows, we will need both .lib and .dll file. 59582 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib"; then 59583 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&5 59584 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&6;} 59585 FOUND_FREETYPE=no 59586 fi 59587 elif test "x$OPENJDK_TARGET_OS" = xsolaris \ 59588 && test -s "$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR/$FREETYPE_LIB_NAME"; then 59589 # Found lib in isa dir, use that instead. 59590 POTENTIAL_FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR" 59591 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&5 59592 $as_echo "$as_me: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&6;} 59593 fi 59594 fi 59595 fi 59596 59597 if test "x$FOUND_FREETYPE" = xyes; then 59598 59599 # Only process if variable expands to non-empty 59600 59601 if test "x$POTENTIAL_FREETYPE_INCLUDE_PATH" != x; then 59602 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 59603 59604 # Input might be given as Windows format, start by converting to 59605 # unix format. 59606 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 59607 new_path=`$CYGPATH -u "$path"` 59608 59609 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 59610 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 59611 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 59612 # "foo.exe" is OK but "foo" is an error. 59613 # 59614 # This test is therefore slightly more accurate than "test -f" to check for file precense. 59615 # It is also a way to make sure we got the proper file name for the real test later on. 59616 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 59617 if test "x$test_shortpath" = x; then 59618 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 59619 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 59620 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_INCLUDE_PATH" "$LINENO" 5 59621 fi 59622 59623 # Call helper function which possibly converts this using DOS-style short mode. 59624 # If so, the updated path is stored in $new_path. 59625 59626 input_path="$new_path" 59627 # Check if we need to convert this using DOS-style short mode. If the path 59628 # contains just simple characters, use it. Otherwise (spaces, weird characters), 59629 # take no chances and rewrite it. 59630 # Note: m4 eats our [], so we need to use [ and ] instead. 59631 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 59632 if test "x$has_forbidden_chars" != x; then 59633 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 59634 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 59635 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 59636 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 59637 # Going to short mode and back again did indeed matter. Since short mode is 59638 # case insensitive, let's make it lowercase to improve readability. 59639 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 59640 # Now convert it back to Unix-style (cygpath) 59641 input_path=`$CYGPATH -u "$shortmode_path"` 59642 new_path="$input_path" 59643 fi 59644 fi 59645 59646 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 59647 if test "x$test_cygdrive_prefix" = x; then 59648 # As a simple fix, exclude /usr/bin since it's not a real path. 59649 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 59650 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 59651 # a path prefixed by /cygdrive for fixpath to work. 59652 new_path="$CYGWIN_ROOT_PATH$input_path" 59653 fi 59654 fi 59655 59656 59657 if test "x$path" != "x$new_path"; then 59658 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 59659 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 59660 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 59661 fi 59662 59663 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 59664 59665 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 59666 has_colon=`$ECHO $path | $GREP ^.:` 59667 new_path="$path" 59668 if test "x$has_colon" = x; then 59669 # Not in mixed or Windows style, start by that. 59670 new_path=`cmd //c echo $path` 59671 fi 59672 59673 59674 input_path="$new_path" 59675 # Check if we need to convert this using DOS-style short mode. If the path 59676 # contains just simple characters, use it. Otherwise (spaces, weird characters), 59677 # take no chances and rewrite it. 59678 # Note: m4 eats our [], so we need to use [ and ] instead. 59679 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 59680 if test "x$has_forbidden_chars" != x; then 59681 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 59682 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 59683 fi 59684 59685 59686 windows_path="$new_path" 59687 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 59688 unix_path=`$CYGPATH -u "$windows_path"` 59689 new_path="$unix_path" 59690 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 59691 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 59692 new_path="$unix_path" 59693 fi 59694 59695 if test "x$path" != "x$new_path"; then 59696 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 59697 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 59698 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 59699 fi 59700 59701 # Save the first 10 bytes of this path to the storage, so fixpath can work. 59702 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 59703 59704 else 59705 # We're on a unix platform. Hooray! :) 59706 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 59707 has_space=`$ECHO "$path" | $GREP " "` 59708 if test "x$has_space" != x; then 59709 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 59710 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 59711 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 59712 fi 59713 59714 # Use eval to expand a potential ~ 59715 eval path="$path" 59716 if test ! -f "$path" && test ! -d "$path"; then 59717 as_fn_error $? "The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 59718 fi 59719 59720 if test -d "$path"; then 59721 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$path"; $THEPWDCMD -L`" 59722 else 59723 dir="`$DIRNAME "$path"`" 59724 base="`$BASENAME "$path"`" 59725 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$dir"; $THEPWDCMD -L`/$base" 59726 fi 59727 fi 59728 fi 59729 59730 59731 # Only process if variable expands to non-empty 59732 59733 if test "x$POTENTIAL_FREETYPE_LIB_PATH" != x; then 59734 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 59735 59736 # Input might be given as Windows format, start by converting to 59737 # unix format. 59738 path="$POTENTIAL_FREETYPE_LIB_PATH" 59739 new_path=`$CYGPATH -u "$path"` 59740 59741 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 59742 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 59743 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 59744 # "foo.exe" is OK but "foo" is an error. 59745 # 59746 # This test is therefore slightly more accurate than "test -f" to check for file precense. 59747 # It is also a way to make sure we got the proper file name for the real test later on. 59748 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 59749 if test "x$test_shortpath" = x; then 59750 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 59751 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 59752 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_LIB_PATH" "$LINENO" 5 59753 fi 59754 59755 # Call helper function which possibly converts this using DOS-style short mode. 59756 # If so, the updated path is stored in $new_path. 59757 59758 input_path="$new_path" 59759 # Check if we need to convert this using DOS-style short mode. If the path 59760 # contains just simple characters, use it. Otherwise (spaces, weird characters), 59761 # take no chances and rewrite it. 59762 # Note: m4 eats our [], so we need to use [ and ] instead. 59763 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 59764 if test "x$has_forbidden_chars" != x; then 59765 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 59766 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 59767 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 59768 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 59769 # Going to short mode and back again did indeed matter. Since short mode is 59770 # case insensitive, let's make it lowercase to improve readability. 59771 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 59772 # Now convert it back to Unix-style (cygpath) 59773 input_path=`$CYGPATH -u "$shortmode_path"` 59774 new_path="$input_path" 59775 fi 59776 fi 59777 59778 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 59779 if test "x$test_cygdrive_prefix" = x; then 59780 # As a simple fix, exclude /usr/bin since it's not a real path. 59781 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 59782 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 59783 # a path prefixed by /cygdrive for fixpath to work. 59784 new_path="$CYGWIN_ROOT_PATH$input_path" 59785 fi 59786 fi 59787 59788 59789 if test "x$path" != "x$new_path"; then 59790 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 59791 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 59792 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 59793 fi 59794 59795 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 59796 59797 path="$POTENTIAL_FREETYPE_LIB_PATH" 59798 has_colon=`$ECHO $path | $GREP ^.:` 59799 new_path="$path" 59800 if test "x$has_colon" = x; then 59801 # Not in mixed or Windows style, start by that. 59802 new_path=`cmd //c echo $path` 59803 fi 59804 59805 59806 input_path="$new_path" 59807 # Check if we need to convert this using DOS-style short mode. If the path 59808 # contains just simple characters, use it. Otherwise (spaces, weird characters), 59809 # take no chances and rewrite it. 59810 # Note: m4 eats our [], so we need to use [ and ] instead. 59811 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 59812 if test "x$has_forbidden_chars" != x; then 59813 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 59814 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 59815 fi 59816 59817 59818 windows_path="$new_path" 59819 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 59820 unix_path=`$CYGPATH -u "$windows_path"` 59821 new_path="$unix_path" 59822 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 59823 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 59824 new_path="$unix_path" 59825 fi 59826 59827 if test "x$path" != "x$new_path"; then 59828 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 59829 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 59830 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 59831 fi 59832 59833 # Save the first 10 bytes of this path to the storage, so fixpath can work. 59834 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 59835 59836 else 59837 # We're on a unix platform. Hooray! :) 59838 path="$POTENTIAL_FREETYPE_LIB_PATH" 59839 has_space=`$ECHO "$path" | $GREP " "` 59840 if test "x$has_space" != x; then 59841 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 59842 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 59843 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 59844 fi 59845 59846 # Use eval to expand a potential ~ 59847 eval path="$path" 59848 if test ! -f "$path" && test ! -d "$path"; then 59849 as_fn_error $? "The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 59850 fi 59851 59852 if test -d "$path"; then 59853 POTENTIAL_FREETYPE_LIB_PATH="`cd "$path"; $THEPWDCMD -L`" 59854 else 59855 dir="`$DIRNAME "$path"`" 59856 base="`$BASENAME "$path"`" 59857 POTENTIAL_FREETYPE_LIB_PATH="`cd "$dir"; $THEPWDCMD -L`/$base" 59858 fi 59859 fi 59860 fi 59861 59862 59863 FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH" 59864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype includes" >&5 59865 $as_echo_n "checking for freetype includes... " >&6; } 59866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_INCLUDE_PATH" >&5 59867 $as_echo "$FREETYPE_INCLUDE_PATH" >&6; } 59868 FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH" 59869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype libraries" >&5 59870 $as_echo_n "checking for freetype libraries... " >&6; } 59871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_LIB_PATH" >&5 59872 $as_echo "$FREETYPE_LIB_PATH" >&6; } 59873 fi 59874 59875 fi 59876 if test "x$FOUND_FREETYPE" != xyes && test -d $FREETYPE_BASE_DIR \ 59877 && test -s "$FREETYPE_BASE_DIR/builds/windows/vc2010/freetype.vcxproj" && test "x$MSBUILD" != x; then 59878 # Source is available, as a last resort try to build freetype in default location 59879 59880 FREETYPE_SRC_PATH="$FREETYPE_BASE_DIR" 59881 BUILD_FREETYPE=yes 59882 59883 # Check if the freetype sources are acessible.. 59884 if ! test -d $FREETYPE_SRC_PATH; then 59885 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --with-freetype-src specified, but can not find path \"$FREETYPE_SRC_PATH\" - ignoring --with-freetype-src" >&5 59886 $as_echo "$as_me: WARNING: --with-freetype-src specified, but can not find path \"$FREETYPE_SRC_PATH\" - ignoring --with-freetype-src" >&2;} 59887 BUILD_FREETYPE=no 59888 fi 59889 # ..and contain a vc2010 project file 59890 vcxproj_path="$FREETYPE_SRC_PATH/builds/windows/vc2010/freetype.vcxproj" 59891 if test "x$BUILD_FREETYPE" = xyes && ! test -s $vcxproj_path; then 59892 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Can not find project file $vcxproj_path (you may try a newer freetype version) - ignoring --with-freetype-src" >&5 59893 $as_echo "$as_me: WARNING: Can not find project file $vcxproj_path (you may try a newer freetype version) - ignoring --with-freetype-src" >&2;} 59894 BUILD_FREETYPE=no 59895 fi 59896 # Now check if configure found a version of 'msbuild.exe' 59897 if test "x$BUILD_FREETYPE" = xyes && test "x$MSBUILD" == x ; then 59898 { $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 59899 $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;} 59900 BUILD_FREETYPE=no 59901 fi 59902 59903 # Ready to go.. 59904 if test "x$BUILD_FREETYPE" = xyes; then 59905 # msbuild requires trailing slashes for output directories 59906 freetype_lib_path="$FREETYPE_SRC_PATH/lib$OPENJDK_TARGET_CPU_BITS/" 59907 freetype_lib_path_unix="$freetype_lib_path" 59908 freetype_obj_path="$FREETYPE_SRC_PATH/obj$OPENJDK_TARGET_CPU_BITS/" 59909 59910 unix_path="$vcxproj_path" 59911 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 59912 windows_path=`$CYGPATH -m "$unix_path"` 59913 vcxproj_path="$windows_path" 59914 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 59915 windows_path=`cmd //c echo $unix_path` 59916 vcxproj_path="$windows_path" 59917 fi 59918 59919 59920 unix_path="$freetype_lib_path" 59921 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 59922 windows_path=`$CYGPATH -m "$unix_path"` 59923 freetype_lib_path="$windows_path" 59924 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 59925 windows_path=`cmd //c echo $unix_path` 59926 freetype_lib_path="$windows_path" 59927 fi 59928 59929 59930 unix_path="$freetype_obj_path" 59931 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 59932 windows_path=`$CYGPATH -m "$unix_path"` 59933 freetype_obj_path="$windows_path" 59934 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 59935 windows_path=`cmd //c echo $unix_path` 59936 freetype_obj_path="$windows_path" 59937 fi 59938 59939 if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then 59940 freetype_platform=x64 59941 else 59942 freetype_platform=win32 59943 fi 59944 59945 # The original freetype project file is for VS 2010 (i.e. 'v100'), 59946 # so we have to adapt the toolset if building with any other toolsed (i.e. SDK). 59947 # Currently 'PLATFORM_TOOLSET' is set in 'TOOLCHAIN_CHECK_POSSIBLE_VISUAL_STUDIO_ROOT'/ 59948 # 'TOOLCHAIN_CHECK_POSSIBLE_WIN_SDK_ROOT' in toolchain_windows.m4 59949 { $as_echo "$as_me:${as_lineno-$LINENO}: Trying to compile freetype sources with PlatformToolset=$PLATFORM_TOOLSET to $freetype_lib_path_unix ..." >&5 59950 $as_echo "$as_me: Trying to compile freetype sources with PlatformToolset=$PLATFORM_TOOLSET to $freetype_lib_path_unix ..." >&6;} 59951 59952 # First we try to build the freetype.dll 59953 $ECHO -e "@echo off\n"\ 59954 "$MSBUILD $vcxproj_path "\ 59955 "/p:PlatformToolset=$PLATFORM_TOOLSET "\ 59956 "/p:Configuration=\"Release Multithreaded\" "\ 59957 "/p:Platform=$freetype_platform "\ 59958 "/p:ConfigurationType=DynamicLibrary "\ 59959 "/p:TargetName=freetype "\ 59960 "/p:OutDir=\"$freetype_lib_path\" "\ 59961 "/p:IntDir=\"$freetype_obj_path\" > freetype.log" > freetype.bat 59962 cmd /c freetype.bat 59963 59964 if test -s "$freetype_lib_path_unix/freetype.dll"; then 59965 # If that succeeds we also build freetype.lib 59966 $ECHO -e "@echo off\n"\ 59967 "$MSBUILD $vcxproj_path "\ 59968 "/p:PlatformToolset=$PLATFORM_TOOLSET "\ 59969 "/p:Configuration=\"Release Multithreaded\" "\ 59970 "/p:Platform=$freetype_platform "\ 59971 "/p:ConfigurationType=StaticLibrary "\ 59972 "/p:TargetName=freetype "\ 59973 "/p:OutDir=\"$freetype_lib_path\" "\ 59974 "/p:IntDir=\"$freetype_obj_path\" >> freetype.log" > freetype.bat 59975 cmd /c freetype.bat 59976 59977 if test -s "$freetype_lib_path_unix/freetype.lib"; then 59978 # Once we build both, lib and dll, set freetype lib and include path appropriately 59979 POTENTIAL_FREETYPE_INCLUDE_PATH="$FREETYPE_SRC_PATH/include" 59980 POTENTIAL_FREETYPE_LIB_PATH="$freetype_lib_path_unix" 59981 { $as_echo "$as_me:${as_lineno-$LINENO}: Compiling freetype sources succeeded! (see freetype.log for build results)" >&5 59982 $as_echo "$as_me: Compiling freetype sources succeeded! (see freetype.log for build results)" >&6;} 59983 else 59984 BUILD_FREETYPE=no 59985 fi 59986 else 59987 BUILD_FREETYPE=no 59988 fi 59989 fi 59990 59991 if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then 59992 59993 POTENTIAL_FREETYPE_INCLUDE_PATH="$FREETYPE_BASE_DIR/include" 59994 POTENTIAL_FREETYPE_LIB_PATH="$FREETYPE_BASE_DIR/lib64" 59995 METHOD="well-known location" 59996 59997 # Let's start with an optimistic view of the world :-) 59998 FOUND_FREETYPE=yes 59999 60000 # First look for the canonical freetype main include file ft2build.h. 60001 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 60002 # Oh no! Let's try in the freetype2 directory. This is needed at least at Mac OS X Yosemite. 60003 POTENTIAL_FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH/freetype2" 60004 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 60005 # Fail. 60006 FOUND_FREETYPE=no 60007 fi 60008 fi 60009 60010 if test "x$FOUND_FREETYPE" = xyes; then 60011 # Include file found, let's continue the sanity check. 60012 { $as_echo "$as_me:${as_lineno-$LINENO}: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&5 60013 $as_echo "$as_me: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&6;} 60014 60015 # Reset to default value 60016 FREETYPE_BASE_NAME=freetype 60017 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 60018 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME"; then 60019 if test "x$OPENJDK_TARGET_OS" = xmacosx \ 60020 && test -s "$POTENTIAL_FREETYPE_LIB_PATH/${LIBRARY_PREFIX}freetype.6${SHARED_LIBRARY_SUFFIX}"; then 60021 # On Mac OS X Yosemite, the symlink from libfreetype.dylib to libfreetype.6.dylib disappeared. Check 60022 # for the .6 version explicitly. 60023 FREETYPE_BASE_NAME=freetype.6 60024 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 60025 { $as_echo "$as_me:${as_lineno-$LINENO}: Compensating for missing symlink by using version 6 explicitly" >&5 60026 $as_echo "$as_me: Compensating for missing symlink by using version 6 explicitly" >&6;} 60027 else 60028 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&5 60029 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&6;} 60030 FOUND_FREETYPE=no 60031 fi 60032 else 60033 if test "x$OPENJDK_TARGET_OS" = xwindows; then 60034 # On Windows, we will need both .lib and .dll file. 60035 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib"; then 60036 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&5 60037 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&6;} 60038 FOUND_FREETYPE=no 60039 fi 60040 elif test "x$OPENJDK_TARGET_OS" = xsolaris \ 60041 && test -s "$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR/$FREETYPE_LIB_NAME"; then 60042 # Found lib in isa dir, use that instead. 60043 POTENTIAL_FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR" 60044 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&5 60045 $as_echo "$as_me: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&6;} 60046 fi 60047 fi 60048 fi 60049 60050 if test "x$FOUND_FREETYPE" = xyes; then 60051 60052 # Only process if variable expands to non-empty 60053 60054 if test "x$POTENTIAL_FREETYPE_INCLUDE_PATH" != x; then 60055 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 60056 60057 # Input might be given as Windows format, start by converting to 60058 # unix format. 60059 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 60060 new_path=`$CYGPATH -u "$path"` 60061 60062 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 60063 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 60064 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 60065 # "foo.exe" is OK but "foo" is an error. 60066 # 60067 # This test is therefore slightly more accurate than "test -f" to check for file precense. 60068 # It is also a way to make sure we got the proper file name for the real test later on. 60069 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 60070 if test "x$test_shortpath" = x; then 60071 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 60072 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 60073 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_INCLUDE_PATH" "$LINENO" 5 60074 fi 60075 60076 # Call helper function which possibly converts this using DOS-style short mode. 60077 # If so, the updated path is stored in $new_path. 60078 60079 input_path="$new_path" 60080 # Check if we need to convert this using DOS-style short mode. If the path 60081 # contains just simple characters, use it. Otherwise (spaces, weird characters), 60082 # take no chances and rewrite it. 60083 # Note: m4 eats our [], so we need to use [ and ] instead. 60084 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 60085 if test "x$has_forbidden_chars" != x; then 60086 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 60087 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 60088 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 60089 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 60090 # Going to short mode and back again did indeed matter. Since short mode is 60091 # case insensitive, let's make it lowercase to improve readability. 60092 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 60093 # Now convert it back to Unix-style (cygpath) 60094 input_path=`$CYGPATH -u "$shortmode_path"` 60095 new_path="$input_path" 60096 fi 60097 fi 60098 60099 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 60100 if test "x$test_cygdrive_prefix" = x; then 60101 # As a simple fix, exclude /usr/bin since it's not a real path. 60102 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 60103 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 60104 # a path prefixed by /cygdrive for fixpath to work. 60105 new_path="$CYGWIN_ROOT_PATH$input_path" 60106 fi 60107 fi 60108 60109 60110 if test "x$path" != "x$new_path"; then 60111 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 60112 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 60113 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 60114 fi 60115 60116 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 60117 60118 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 60119 has_colon=`$ECHO $path | $GREP ^.:` 60120 new_path="$path" 60121 if test "x$has_colon" = x; then 60122 # Not in mixed or Windows style, start by that. 60123 new_path=`cmd //c echo $path` 60124 fi 60125 60126 60127 input_path="$new_path" 60128 # Check if we need to convert this using DOS-style short mode. If the path 60129 # contains just simple characters, use it. Otherwise (spaces, weird characters), 60130 # take no chances and rewrite it. 60131 # Note: m4 eats our [], so we need to use [ and ] instead. 60132 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 60133 if test "x$has_forbidden_chars" != x; then 60134 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 60135 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 60136 fi 60137 60138 60139 windows_path="$new_path" 60140 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 60141 unix_path=`$CYGPATH -u "$windows_path"` 60142 new_path="$unix_path" 60143 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 60144 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 60145 new_path="$unix_path" 60146 fi 60147 60148 if test "x$path" != "x$new_path"; then 60149 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 60150 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 60151 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 60152 fi 60153 60154 # Save the first 10 bytes of this path to the storage, so fixpath can work. 60155 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 60156 60157 else 60158 # We're on a unix platform. Hooray! :) 60159 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 60160 has_space=`$ECHO "$path" | $GREP " "` 60161 if test "x$has_space" != x; then 60162 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 60163 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 60164 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 60165 fi 60166 60167 # Use eval to expand a potential ~ 60168 eval path="$path" 60169 if test ! -f "$path" && test ! -d "$path"; then 60170 as_fn_error $? "The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 60171 fi 60172 60173 if test -d "$path"; then 60174 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$path"; $THEPWDCMD -L`" 60175 else 60176 dir="`$DIRNAME "$path"`" 60177 base="`$BASENAME "$path"`" 60178 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$dir"; $THEPWDCMD -L`/$base" 60179 fi 60180 fi 60181 fi 60182 60183 60184 # Only process if variable expands to non-empty 60185 60186 if test "x$POTENTIAL_FREETYPE_LIB_PATH" != x; then 60187 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 60188 60189 # Input might be given as Windows format, start by converting to 60190 # unix format. 60191 path="$POTENTIAL_FREETYPE_LIB_PATH" 60192 new_path=`$CYGPATH -u "$path"` 60193 60194 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 60195 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 60196 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 60197 # "foo.exe" is OK but "foo" is an error. 60198 # 60199 # This test is therefore slightly more accurate than "test -f" to check for file precense. 60200 # It is also a way to make sure we got the proper file name for the real test later on. 60201 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 60202 if test "x$test_shortpath" = x; then 60203 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 60204 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 60205 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_LIB_PATH" "$LINENO" 5 60206 fi 60207 60208 # Call helper function which possibly converts this using DOS-style short mode. 60209 # If so, the updated path is stored in $new_path. 60210 60211 input_path="$new_path" 60212 # Check if we need to convert this using DOS-style short mode. If the path 60213 # contains just simple characters, use it. Otherwise (spaces, weird characters), 60214 # take no chances and rewrite it. 60215 # Note: m4 eats our [], so we need to use [ and ] instead. 60216 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 60217 if test "x$has_forbidden_chars" != x; then 60218 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 60219 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 60220 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 60221 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 60222 # Going to short mode and back again did indeed matter. Since short mode is 60223 # case insensitive, let's make it lowercase to improve readability. 60224 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 60225 # Now convert it back to Unix-style (cygpath) 60226 input_path=`$CYGPATH -u "$shortmode_path"` 60227 new_path="$input_path" 60228 fi 60229 fi 60230 60231 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 60232 if test "x$test_cygdrive_prefix" = x; then 60233 # As a simple fix, exclude /usr/bin since it's not a real path. 60234 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 60235 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 60236 # a path prefixed by /cygdrive for fixpath to work. 60237 new_path="$CYGWIN_ROOT_PATH$input_path" 60238 fi 60239 fi 60240 60241 60242 if test "x$path" != "x$new_path"; then 60243 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 60244 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 60245 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 60246 fi 60247 60248 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 60249 60250 path="$POTENTIAL_FREETYPE_LIB_PATH" 60251 has_colon=`$ECHO $path | $GREP ^.:` 60252 new_path="$path" 60253 if test "x$has_colon" = x; then 60254 # Not in mixed or Windows style, start by that. 60255 new_path=`cmd //c echo $path` 60256 fi 60257 60258 60259 input_path="$new_path" 60260 # Check if we need to convert this using DOS-style short mode. If the path 60261 # contains just simple characters, use it. Otherwise (spaces, weird characters), 60262 # take no chances and rewrite it. 60263 # Note: m4 eats our [], so we need to use [ and ] instead. 60264 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 60265 if test "x$has_forbidden_chars" != x; then 60266 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 60267 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 60268 fi 60269 60270 60271 windows_path="$new_path" 60272 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 60273 unix_path=`$CYGPATH -u "$windows_path"` 60274 new_path="$unix_path" 60275 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 60276 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 60277 new_path="$unix_path" 60278 fi 60279 60280 if test "x$path" != "x$new_path"; then 60281 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 60282 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 60283 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 60284 fi 60285 60286 # Save the first 10 bytes of this path to the storage, so fixpath can work. 60287 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 60288 60289 else 60290 # We're on a unix platform. Hooray! :) 60291 path="$POTENTIAL_FREETYPE_LIB_PATH" 60292 has_space=`$ECHO "$path" | $GREP " "` 60293 if test "x$has_space" != x; then 60294 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 60295 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 60296 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 60297 fi 60298 60299 # Use eval to expand a potential ~ 60300 eval path="$path" 60301 if test ! -f "$path" && test ! -d "$path"; then 60302 as_fn_error $? "The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 60303 fi 60304 60305 if test -d "$path"; then 60306 POTENTIAL_FREETYPE_LIB_PATH="`cd "$path"; $THEPWDCMD -L`" 60307 else 60308 dir="`$DIRNAME "$path"`" 60309 base="`$BASENAME "$path"`" 60310 POTENTIAL_FREETYPE_LIB_PATH="`cd "$dir"; $THEPWDCMD -L`/$base" 60311 fi 60312 fi 60313 fi 60314 60315 60316 FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH" 60317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype includes" >&5 60318 $as_echo_n "checking for freetype includes... " >&6; } 60319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_INCLUDE_PATH" >&5 60320 $as_echo "$FREETYPE_INCLUDE_PATH" >&6; } 60321 FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH" 60322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype libraries" >&5 60323 $as_echo_n "checking for freetype libraries... " >&6; } 60324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_LIB_PATH" >&5 60325 $as_echo "$FREETYPE_LIB_PATH" >&6; } 60326 fi 60327 60328 else 60329 60330 POTENTIAL_FREETYPE_INCLUDE_PATH="$FREETYPE_BASE_DIR/include" 60331 POTENTIAL_FREETYPE_LIB_PATH="$FREETYPE_BASE_DIR/lib32" 60332 METHOD="well-known location" 60333 60334 # Let's start with an optimistic view of the world :-) 60335 FOUND_FREETYPE=yes 60336 60337 # First look for the canonical freetype main include file ft2build.h. 60338 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 60339 # Oh no! Let's try in the freetype2 directory. This is needed at least at Mac OS X Yosemite. 60340 POTENTIAL_FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH/freetype2" 60341 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 60342 # Fail. 60343 FOUND_FREETYPE=no 60344 fi 60345 fi 60346 60347 if test "x$FOUND_FREETYPE" = xyes; then 60348 # Include file found, let's continue the sanity check. 60349 { $as_echo "$as_me:${as_lineno-$LINENO}: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&5 60350 $as_echo "$as_me: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&6;} 60351 60352 # Reset to default value 60353 FREETYPE_BASE_NAME=freetype 60354 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 60355 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME"; then 60356 if test "x$OPENJDK_TARGET_OS" = xmacosx \ 60357 && test -s "$POTENTIAL_FREETYPE_LIB_PATH/${LIBRARY_PREFIX}freetype.6${SHARED_LIBRARY_SUFFIX}"; then 60358 # On Mac OS X Yosemite, the symlink from libfreetype.dylib to libfreetype.6.dylib disappeared. Check 60359 # for the .6 version explicitly. 60360 FREETYPE_BASE_NAME=freetype.6 60361 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 60362 { $as_echo "$as_me:${as_lineno-$LINENO}: Compensating for missing symlink by using version 6 explicitly" >&5 60363 $as_echo "$as_me: Compensating for missing symlink by using version 6 explicitly" >&6;} 60364 else 60365 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&5 60366 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&6;} 60367 FOUND_FREETYPE=no 60368 fi 60369 else 60370 if test "x$OPENJDK_TARGET_OS" = xwindows; then 60371 # On Windows, we will need both .lib and .dll file. 60372 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib"; then 60373 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&5 60374 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&6;} 60375 FOUND_FREETYPE=no 60376 fi 60377 elif test "x$OPENJDK_TARGET_OS" = xsolaris \ 60378 && test -s "$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR/$FREETYPE_LIB_NAME"; then 60379 # Found lib in isa dir, use that instead. 60380 POTENTIAL_FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR" 60381 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&5 60382 $as_echo "$as_me: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&6;} 60383 fi 60384 fi 60385 fi 60386 60387 if test "x$FOUND_FREETYPE" = xyes; then 60388 60389 # Only process if variable expands to non-empty 60390 60391 if test "x$POTENTIAL_FREETYPE_INCLUDE_PATH" != x; then 60392 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 60393 60394 # Input might be given as Windows format, start by converting to 60395 # unix format. 60396 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 60397 new_path=`$CYGPATH -u "$path"` 60398 60399 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 60400 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 60401 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 60402 # "foo.exe" is OK but "foo" is an error. 60403 # 60404 # This test is therefore slightly more accurate than "test -f" to check for file precense. 60405 # It is also a way to make sure we got the proper file name for the real test later on. 60406 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 60407 if test "x$test_shortpath" = x; then 60408 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 60409 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 60410 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_INCLUDE_PATH" "$LINENO" 5 60411 fi 60412 60413 # Call helper function which possibly converts this using DOS-style short mode. 60414 # If so, the updated path is stored in $new_path. 60415 60416 input_path="$new_path" 60417 # Check if we need to convert this using DOS-style short mode. If the path 60418 # contains just simple characters, use it. Otherwise (spaces, weird characters), 60419 # take no chances and rewrite it. 60420 # Note: m4 eats our [], so we need to use [ and ] instead. 60421 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 60422 if test "x$has_forbidden_chars" != x; then 60423 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 60424 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 60425 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 60426 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 60427 # Going to short mode and back again did indeed matter. Since short mode is 60428 # case insensitive, let's make it lowercase to improve readability. 60429 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 60430 # Now convert it back to Unix-style (cygpath) 60431 input_path=`$CYGPATH -u "$shortmode_path"` 60432 new_path="$input_path" 60433 fi 60434 fi 60435 60436 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 60437 if test "x$test_cygdrive_prefix" = x; then 60438 # As a simple fix, exclude /usr/bin since it's not a real path. 60439 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 60440 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 60441 # a path prefixed by /cygdrive for fixpath to work. 60442 new_path="$CYGWIN_ROOT_PATH$input_path" 60443 fi 60444 fi 60445 60446 60447 if test "x$path" != "x$new_path"; then 60448 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 60449 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 60450 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 60451 fi 60452 60453 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 60454 60455 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 60456 has_colon=`$ECHO $path | $GREP ^.:` 60457 new_path="$path" 60458 if test "x$has_colon" = x; then 60459 # Not in mixed or Windows style, start by that. 60460 new_path=`cmd //c echo $path` 60461 fi 60462 60463 60464 input_path="$new_path" 60465 # Check if we need to convert this using DOS-style short mode. If the path 60466 # contains just simple characters, use it. Otherwise (spaces, weird characters), 60467 # take no chances and rewrite it. 60468 # Note: m4 eats our [], so we need to use [ and ] instead. 60469 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 60470 if test "x$has_forbidden_chars" != x; then 60471 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 60472 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 60473 fi 60474 60475 60476 windows_path="$new_path" 60477 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 60478 unix_path=`$CYGPATH -u "$windows_path"` 60479 new_path="$unix_path" 60480 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 60481 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 60482 new_path="$unix_path" 60483 fi 60484 60485 if test "x$path" != "x$new_path"; then 60486 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 60487 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 60488 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 60489 fi 60490 60491 # Save the first 10 bytes of this path to the storage, so fixpath can work. 60492 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 60493 60494 else 60495 # We're on a unix platform. Hooray! :) 60496 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 60497 has_space=`$ECHO "$path" | $GREP " "` 60498 if test "x$has_space" != x; then 60499 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 60500 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 60501 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 60502 fi 60503 60504 # Use eval to expand a potential ~ 60505 eval path="$path" 60506 if test ! -f "$path" && test ! -d "$path"; then 60507 as_fn_error $? "The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 60508 fi 60509 60510 if test -d "$path"; then 60511 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$path"; $THEPWDCMD -L`" 60512 else 60513 dir="`$DIRNAME "$path"`" 60514 base="`$BASENAME "$path"`" 60515 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$dir"; $THEPWDCMD -L`/$base" 60516 fi 60517 fi 60518 fi 60519 60520 60521 # Only process if variable expands to non-empty 60522 60523 if test "x$POTENTIAL_FREETYPE_LIB_PATH" != x; then 60524 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 60525 60526 # Input might be given as Windows format, start by converting to 60527 # unix format. 60528 path="$POTENTIAL_FREETYPE_LIB_PATH" 60529 new_path=`$CYGPATH -u "$path"` 60530 60531 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 60532 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 60533 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 60534 # "foo.exe" is OK but "foo" is an error. 60535 # 60536 # This test is therefore slightly more accurate than "test -f" to check for file precense. 60537 # It is also a way to make sure we got the proper file name for the real test later on. 60538 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 60539 if test "x$test_shortpath" = x; then 60540 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 60541 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 60542 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_LIB_PATH" "$LINENO" 5 60543 fi 60544 60545 # Call helper function which possibly converts this using DOS-style short mode. 60546 # If so, the updated path is stored in $new_path. 60547 60548 input_path="$new_path" 60549 # Check if we need to convert this using DOS-style short mode. If the path 60550 # contains just simple characters, use it. Otherwise (spaces, weird characters), 60551 # take no chances and rewrite it. 60552 # Note: m4 eats our [], so we need to use [ and ] instead. 60553 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 60554 if test "x$has_forbidden_chars" != x; then 60555 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 60556 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 60557 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 60558 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 60559 # Going to short mode and back again did indeed matter. Since short mode is 60560 # case insensitive, let's make it lowercase to improve readability. 60561 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 60562 # Now convert it back to Unix-style (cygpath) 60563 input_path=`$CYGPATH -u "$shortmode_path"` 60564 new_path="$input_path" 60565 fi 60566 fi 60567 60568 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 60569 if test "x$test_cygdrive_prefix" = x; then 60570 # As a simple fix, exclude /usr/bin since it's not a real path. 60571 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 60572 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 60573 # a path prefixed by /cygdrive for fixpath to work. 60574 new_path="$CYGWIN_ROOT_PATH$input_path" 60575 fi 60576 fi 60577 60578 60579 if test "x$path" != "x$new_path"; then 60580 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 60581 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 60582 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 60583 fi 60584 60585 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 60586 60587 path="$POTENTIAL_FREETYPE_LIB_PATH" 60588 has_colon=`$ECHO $path | $GREP ^.:` 60589 new_path="$path" 60590 if test "x$has_colon" = x; then 60591 # Not in mixed or Windows style, start by that. 60592 new_path=`cmd //c echo $path` 60593 fi 60594 60595 60596 input_path="$new_path" 60597 # Check if we need to convert this using DOS-style short mode. If the path 60598 # contains just simple characters, use it. Otherwise (spaces, weird characters), 60599 # take no chances and rewrite it. 60600 # Note: m4 eats our [], so we need to use [ and ] instead. 60601 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 60602 if test "x$has_forbidden_chars" != x; then 60603 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 60604 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 60605 fi 60606 60607 60608 windows_path="$new_path" 60609 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 60610 unix_path=`$CYGPATH -u "$windows_path"` 60611 new_path="$unix_path" 60612 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 60613 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 60614 new_path="$unix_path" 60615 fi 60616 60617 if test "x$path" != "x$new_path"; then 60618 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 60619 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 60620 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 60621 fi 60622 60623 # Save the first 10 bytes of this path to the storage, so fixpath can work. 60624 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 60625 60626 else 60627 # We're on a unix platform. Hooray! :) 60628 path="$POTENTIAL_FREETYPE_LIB_PATH" 60629 has_space=`$ECHO "$path" | $GREP " "` 60630 if test "x$has_space" != x; then 60631 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 60632 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 60633 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 60634 fi 60635 60636 # Use eval to expand a potential ~ 60637 eval path="$path" 60638 if test ! -f "$path" && test ! -d "$path"; then 60639 as_fn_error $? "The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 60640 fi 60641 60642 if test -d "$path"; then 60643 POTENTIAL_FREETYPE_LIB_PATH="`cd "$path"; $THEPWDCMD -L`" 60644 else 60645 dir="`$DIRNAME "$path"`" 60646 base="`$BASENAME "$path"`" 60647 POTENTIAL_FREETYPE_LIB_PATH="`cd "$dir"; $THEPWDCMD -L`/$base" 60648 fi 60649 fi 60650 fi 60651 60652 60653 FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH" 60654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype includes" >&5 60655 $as_echo_n "checking for freetype includes... " >&6; } 60656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_INCLUDE_PATH" >&5 60657 $as_echo "$FREETYPE_INCLUDE_PATH" >&6; } 60658 FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH" 60659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype libraries" >&5 60660 $as_echo_n "checking for freetype libraries... " >&6; } 60661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_LIB_PATH" >&5 60662 $as_echo "$FREETYPE_LIB_PATH" >&6; } 60663 fi 60664 60665 fi 60666 fi 60667 fi 60668 else 60669 FREETYPE_BASE_DIR="$SYSROOT/usr" 60670 60671 POTENTIAL_FREETYPE_INCLUDE_PATH="$FREETYPE_BASE_DIR/include" 60672 POTENTIAL_FREETYPE_LIB_PATH="$FREETYPE_BASE_DIR/lib" 60673 METHOD="well-known location" 60674 60675 # Let's start with an optimistic view of the world :-) 60676 FOUND_FREETYPE=yes 60677 60678 # First look for the canonical freetype main include file ft2build.h. 60679 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 60680 # Oh no! Let's try in the freetype2 directory. This is needed at least at Mac OS X Yosemite. 60681 POTENTIAL_FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH/freetype2" 60682 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 60683 # Fail. 60684 FOUND_FREETYPE=no 60685 fi 60686 fi 60687 60688 if test "x$FOUND_FREETYPE" = xyes; then 60689 # Include file found, let's continue the sanity check. 60690 { $as_echo "$as_me:${as_lineno-$LINENO}: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&5 60691 $as_echo "$as_me: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&6;} 60692 60693 # Reset to default value 60694 FREETYPE_BASE_NAME=freetype 60695 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 60696 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME"; then 60697 if test "x$OPENJDK_TARGET_OS" = xmacosx \ 60698 && test -s "$POTENTIAL_FREETYPE_LIB_PATH/${LIBRARY_PREFIX}freetype.6${SHARED_LIBRARY_SUFFIX}"; then 60699 # On Mac OS X Yosemite, the symlink from libfreetype.dylib to libfreetype.6.dylib disappeared. Check 60700 # for the .6 version explicitly. 60701 FREETYPE_BASE_NAME=freetype.6 60702 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 60703 { $as_echo "$as_me:${as_lineno-$LINENO}: Compensating for missing symlink by using version 6 explicitly" >&5 60704 $as_echo "$as_me: Compensating for missing symlink by using version 6 explicitly" >&6;} 60705 else 60706 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&5 60707 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&6;} 60708 FOUND_FREETYPE=no 60709 fi 60710 else 60711 if test "x$OPENJDK_TARGET_OS" = xwindows; then 60712 # On Windows, we will need both .lib and .dll file. 60713 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib"; then 60714 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&5 60715 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&6;} 60716 FOUND_FREETYPE=no 60717 fi 60718 elif test "x$OPENJDK_TARGET_OS" = xsolaris \ 60719 && test -s "$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR/$FREETYPE_LIB_NAME"; then 60720 # Found lib in isa dir, use that instead. 60721 POTENTIAL_FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR" 60722 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&5 60723 $as_echo "$as_me: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&6;} 60724 fi 60725 fi 60726 fi 60727 60728 if test "x$FOUND_FREETYPE" = xyes; then 60729 60730 # Only process if variable expands to non-empty 60731 60732 if test "x$POTENTIAL_FREETYPE_INCLUDE_PATH" != x; then 60733 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 60734 60735 # Input might be given as Windows format, start by converting to 60736 # unix format. 60737 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 60738 new_path=`$CYGPATH -u "$path"` 60739 60740 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 60741 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 60742 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 60743 # "foo.exe" is OK but "foo" is an error. 60744 # 60745 # This test is therefore slightly more accurate than "test -f" to check for file precense. 60746 # It is also a way to make sure we got the proper file name for the real test later on. 60747 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 60748 if test "x$test_shortpath" = x; then 60749 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 60750 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 60751 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_INCLUDE_PATH" "$LINENO" 5 60752 fi 60753 60754 # Call helper function which possibly converts this using DOS-style short mode. 60755 # If so, the updated path is stored in $new_path. 60756 60757 input_path="$new_path" 60758 # Check if we need to convert this using DOS-style short mode. If the path 60759 # contains just simple characters, use it. Otherwise (spaces, weird characters), 60760 # take no chances and rewrite it. 60761 # Note: m4 eats our [], so we need to use [ and ] instead. 60762 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 60763 if test "x$has_forbidden_chars" != x; then 60764 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 60765 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 60766 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 60767 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 60768 # Going to short mode and back again did indeed matter. Since short mode is 60769 # case insensitive, let's make it lowercase to improve readability. 60770 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 60771 # Now convert it back to Unix-style (cygpath) 60772 input_path=`$CYGPATH -u "$shortmode_path"` 60773 new_path="$input_path" 60774 fi 60775 fi 60776 60777 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 60778 if test "x$test_cygdrive_prefix" = x; then 60779 # As a simple fix, exclude /usr/bin since it's not a real path. 60780 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 60781 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 60782 # a path prefixed by /cygdrive for fixpath to work. 60783 new_path="$CYGWIN_ROOT_PATH$input_path" 60784 fi 60785 fi 60786 60787 60788 if test "x$path" != "x$new_path"; then 60789 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 60790 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 60791 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 60792 fi 60793 60794 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 60795 60796 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 60797 has_colon=`$ECHO $path | $GREP ^.:` 60798 new_path="$path" 60799 if test "x$has_colon" = x; then 60800 # Not in mixed or Windows style, start by that. 60801 new_path=`cmd //c echo $path` 60802 fi 60803 60804 60805 input_path="$new_path" 60806 # Check if we need to convert this using DOS-style short mode. If the path 60807 # contains just simple characters, use it. Otherwise (spaces, weird characters), 60808 # take no chances and rewrite it. 60809 # Note: m4 eats our [], so we need to use [ and ] instead. 60810 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 60811 if test "x$has_forbidden_chars" != x; then 60812 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 60813 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 60814 fi 60815 60816 60817 windows_path="$new_path" 60818 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 60819 unix_path=`$CYGPATH -u "$windows_path"` 60820 new_path="$unix_path" 60821 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 60822 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 60823 new_path="$unix_path" 60824 fi 60825 60826 if test "x$path" != "x$new_path"; then 60827 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 60828 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 60829 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 60830 fi 60831 60832 # Save the first 10 bytes of this path to the storage, so fixpath can work. 60833 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 60834 60835 else 60836 # We're on a unix platform. Hooray! :) 60837 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 60838 has_space=`$ECHO "$path" | $GREP " "` 60839 if test "x$has_space" != x; then 60840 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 60841 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 60842 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 60843 fi 60844 60845 # Use eval to expand a potential ~ 60846 eval path="$path" 60847 if test ! -f "$path" && test ! -d "$path"; then 60848 as_fn_error $? "The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 60849 fi 60850 60851 if test -d "$path"; then 60852 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$path"; $THEPWDCMD -L`" 60853 else 60854 dir="`$DIRNAME "$path"`" 60855 base="`$BASENAME "$path"`" 60856 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$dir"; $THEPWDCMD -L`/$base" 60857 fi 60858 fi 60859 fi 60860 60861 60862 # Only process if variable expands to non-empty 60863 60864 if test "x$POTENTIAL_FREETYPE_LIB_PATH" != x; then 60865 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 60866 60867 # Input might be given as Windows format, start by converting to 60868 # unix format. 60869 path="$POTENTIAL_FREETYPE_LIB_PATH" 60870 new_path=`$CYGPATH -u "$path"` 60871 60872 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 60873 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 60874 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 60875 # "foo.exe" is OK but "foo" is an error. 60876 # 60877 # This test is therefore slightly more accurate than "test -f" to check for file precense. 60878 # It is also a way to make sure we got the proper file name for the real test later on. 60879 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 60880 if test "x$test_shortpath" = x; then 60881 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 60882 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 60883 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_LIB_PATH" "$LINENO" 5 60884 fi 60885 60886 # Call helper function which possibly converts this using DOS-style short mode. 60887 # If so, the updated path is stored in $new_path. 60888 60889 input_path="$new_path" 60890 # Check if we need to convert this using DOS-style short mode. If the path 60891 # contains just simple characters, use it. Otherwise (spaces, weird characters), 60892 # take no chances and rewrite it. 60893 # Note: m4 eats our [], so we need to use [ and ] instead. 60894 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 60895 if test "x$has_forbidden_chars" != x; then 60896 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 60897 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 60898 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 60899 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 60900 # Going to short mode and back again did indeed matter. Since short mode is 60901 # case insensitive, let's make it lowercase to improve readability. 60902 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 60903 # Now convert it back to Unix-style (cygpath) 60904 input_path=`$CYGPATH -u "$shortmode_path"` 60905 new_path="$input_path" 60906 fi 60907 fi 60908 60909 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 60910 if test "x$test_cygdrive_prefix" = x; then 60911 # As a simple fix, exclude /usr/bin since it's not a real path. 60912 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 60913 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 60914 # a path prefixed by /cygdrive for fixpath to work. 60915 new_path="$CYGWIN_ROOT_PATH$input_path" 60916 fi 60917 fi 60918 60919 60920 if test "x$path" != "x$new_path"; then 60921 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 60922 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 60923 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 60924 fi 60925 60926 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 60927 60928 path="$POTENTIAL_FREETYPE_LIB_PATH" 60929 has_colon=`$ECHO $path | $GREP ^.:` 60930 new_path="$path" 60931 if test "x$has_colon" = x; then 60932 # Not in mixed or Windows style, start by that. 60933 new_path=`cmd //c echo $path` 60934 fi 60935 60936 60937 input_path="$new_path" 60938 # Check if we need to convert this using DOS-style short mode. If the path 60939 # contains just simple characters, use it. Otherwise (spaces, weird characters), 60940 # take no chances and rewrite it. 60941 # Note: m4 eats our [], so we need to use [ and ] instead. 60942 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 60943 if test "x$has_forbidden_chars" != x; then 60944 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 60945 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 60946 fi 60947 60948 60949 windows_path="$new_path" 60950 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 60951 unix_path=`$CYGPATH -u "$windows_path"` 60952 new_path="$unix_path" 60953 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 60954 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 60955 new_path="$unix_path" 60956 fi 60957 60958 if test "x$path" != "x$new_path"; then 60959 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 60960 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 60961 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 60962 fi 60963 60964 # Save the first 10 bytes of this path to the storage, so fixpath can work. 60965 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 60966 60967 else 60968 # We're on a unix platform. Hooray! :) 60969 path="$POTENTIAL_FREETYPE_LIB_PATH" 60970 has_space=`$ECHO "$path" | $GREP " "` 60971 if test "x$has_space" != x; then 60972 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 60973 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 60974 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 60975 fi 60976 60977 # Use eval to expand a potential ~ 60978 eval path="$path" 60979 if test ! -f "$path" && test ! -d "$path"; then 60980 as_fn_error $? "The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 60981 fi 60982 60983 if test -d "$path"; then 60984 POTENTIAL_FREETYPE_LIB_PATH="`cd "$path"; $THEPWDCMD -L`" 60985 else 60986 dir="`$DIRNAME "$path"`" 60987 base="`$BASENAME "$path"`" 60988 POTENTIAL_FREETYPE_LIB_PATH="`cd "$dir"; $THEPWDCMD -L`/$base" 60989 fi 60990 fi 60991 fi 60992 60993 60994 FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH" 60995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype includes" >&5 60996 $as_echo_n "checking for freetype includes... " >&6; } 60997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_INCLUDE_PATH" >&5 60998 $as_echo "$FREETYPE_INCLUDE_PATH" >&6; } 60999 FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH" 61000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype libraries" >&5 61001 $as_echo_n "checking for freetype libraries... " >&6; } 61002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_LIB_PATH" >&5 61003 $as_echo "$FREETYPE_LIB_PATH" >&6; } 61004 fi 61005 61006 61007 if test "x$FOUND_FREETYPE" != xyes; then 61008 FREETYPE_BASE_DIR="$SYSROOT/usr/X11" 61009 61010 POTENTIAL_FREETYPE_INCLUDE_PATH="$FREETYPE_BASE_DIR/include" 61011 POTENTIAL_FREETYPE_LIB_PATH="$FREETYPE_BASE_DIR/lib" 61012 METHOD="well-known location" 61013 61014 # Let's start with an optimistic view of the world :-) 61015 FOUND_FREETYPE=yes 61016 61017 # First look for the canonical freetype main include file ft2build.h. 61018 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 61019 # Oh no! Let's try in the freetype2 directory. This is needed at least at Mac OS X Yosemite. 61020 POTENTIAL_FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH/freetype2" 61021 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 61022 # Fail. 61023 FOUND_FREETYPE=no 61024 fi 61025 fi 61026 61027 if test "x$FOUND_FREETYPE" = xyes; then 61028 # Include file found, let's continue the sanity check. 61029 { $as_echo "$as_me:${as_lineno-$LINENO}: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&5 61030 $as_echo "$as_me: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&6;} 61031 61032 # Reset to default value 61033 FREETYPE_BASE_NAME=freetype 61034 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 61035 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME"; then 61036 if test "x$OPENJDK_TARGET_OS" = xmacosx \ 61037 && test -s "$POTENTIAL_FREETYPE_LIB_PATH/${LIBRARY_PREFIX}freetype.6${SHARED_LIBRARY_SUFFIX}"; then 61038 # On Mac OS X Yosemite, the symlink from libfreetype.dylib to libfreetype.6.dylib disappeared. Check 61039 # for the .6 version explicitly. 61040 FREETYPE_BASE_NAME=freetype.6 61041 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 61042 { $as_echo "$as_me:${as_lineno-$LINENO}: Compensating for missing symlink by using version 6 explicitly" >&5 61043 $as_echo "$as_me: Compensating for missing symlink by using version 6 explicitly" >&6;} 61044 else 61045 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&5 61046 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&6;} 61047 FOUND_FREETYPE=no 61048 fi 61049 else 61050 if test "x$OPENJDK_TARGET_OS" = xwindows; then 61051 # On Windows, we will need both .lib and .dll file. 61052 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib"; then 61053 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&5 61054 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&6;} 61055 FOUND_FREETYPE=no 61056 fi 61057 elif test "x$OPENJDK_TARGET_OS" = xsolaris \ 61058 && test -s "$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR/$FREETYPE_LIB_NAME"; then 61059 # Found lib in isa dir, use that instead. 61060 POTENTIAL_FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR" 61061 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&5 61062 $as_echo "$as_me: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&6;} 61063 fi 61064 fi 61065 fi 61066 61067 if test "x$FOUND_FREETYPE" = xyes; then 61068 61069 # Only process if variable expands to non-empty 61070 61071 if test "x$POTENTIAL_FREETYPE_INCLUDE_PATH" != x; then 61072 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 61073 61074 # Input might be given as Windows format, start by converting to 61075 # unix format. 61076 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 61077 new_path=`$CYGPATH -u "$path"` 61078 61079 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 61080 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 61081 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 61082 # "foo.exe" is OK but "foo" is an error. 61083 # 61084 # This test is therefore slightly more accurate than "test -f" to check for file precense. 61085 # It is also a way to make sure we got the proper file name for the real test later on. 61086 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 61087 if test "x$test_shortpath" = x; then 61088 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 61089 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 61090 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_INCLUDE_PATH" "$LINENO" 5 61091 fi 61092 61093 # Call helper function which possibly converts this using DOS-style short mode. 61094 # If so, the updated path is stored in $new_path. 61095 61096 input_path="$new_path" 61097 # Check if we need to convert this using DOS-style short mode. If the path 61098 # contains just simple characters, use it. Otherwise (spaces, weird characters), 61099 # take no chances and rewrite it. 61100 # Note: m4 eats our [], so we need to use [ and ] instead. 61101 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 61102 if test "x$has_forbidden_chars" != x; then 61103 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 61104 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 61105 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 61106 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 61107 # Going to short mode and back again did indeed matter. Since short mode is 61108 # case insensitive, let's make it lowercase to improve readability. 61109 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 61110 # Now convert it back to Unix-style (cygpath) 61111 input_path=`$CYGPATH -u "$shortmode_path"` 61112 new_path="$input_path" 61113 fi 61114 fi 61115 61116 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 61117 if test "x$test_cygdrive_prefix" = x; then 61118 # As a simple fix, exclude /usr/bin since it's not a real path. 61119 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 61120 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 61121 # a path prefixed by /cygdrive for fixpath to work. 61122 new_path="$CYGWIN_ROOT_PATH$input_path" 61123 fi 61124 fi 61125 61126 61127 if test "x$path" != "x$new_path"; then 61128 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 61129 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 61130 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 61131 fi 61132 61133 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 61134 61135 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 61136 has_colon=`$ECHO $path | $GREP ^.:` 61137 new_path="$path" 61138 if test "x$has_colon" = x; then 61139 # Not in mixed or Windows style, start by that. 61140 new_path=`cmd //c echo $path` 61141 fi 61142 61143 61144 input_path="$new_path" 61145 # Check if we need to convert this using DOS-style short mode. If the path 61146 # contains just simple characters, use it. Otherwise (spaces, weird characters), 61147 # take no chances and rewrite it. 61148 # Note: m4 eats our [], so we need to use [ and ] instead. 61149 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 61150 if test "x$has_forbidden_chars" != x; then 61151 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 61152 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 61153 fi 61154 61155 61156 windows_path="$new_path" 61157 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 61158 unix_path=`$CYGPATH -u "$windows_path"` 61159 new_path="$unix_path" 61160 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 61161 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 61162 new_path="$unix_path" 61163 fi 61164 61165 if test "x$path" != "x$new_path"; then 61166 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 61167 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 61168 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 61169 fi 61170 61171 # Save the first 10 bytes of this path to the storage, so fixpath can work. 61172 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 61173 61174 else 61175 # We're on a unix platform. Hooray! :) 61176 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 61177 has_space=`$ECHO "$path" | $GREP " "` 61178 if test "x$has_space" != x; then 61179 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 61180 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 61181 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 61182 fi 61183 61184 # Use eval to expand a potential ~ 61185 eval path="$path" 61186 if test ! -f "$path" && test ! -d "$path"; then 61187 as_fn_error $? "The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 61188 fi 61189 61190 if test -d "$path"; then 61191 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$path"; $THEPWDCMD -L`" 61192 else 61193 dir="`$DIRNAME "$path"`" 61194 base="`$BASENAME "$path"`" 61195 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$dir"; $THEPWDCMD -L`/$base" 61196 fi 61197 fi 61198 fi 61199 61200 61201 # Only process if variable expands to non-empty 61202 61203 if test "x$POTENTIAL_FREETYPE_LIB_PATH" != x; then 61204 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 61205 61206 # Input might be given as Windows format, start by converting to 61207 # unix format. 61208 path="$POTENTIAL_FREETYPE_LIB_PATH" 61209 new_path=`$CYGPATH -u "$path"` 61210 61211 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 61212 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 61213 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 61214 # "foo.exe" is OK but "foo" is an error. 61215 # 61216 # This test is therefore slightly more accurate than "test -f" to check for file precense. 61217 # It is also a way to make sure we got the proper file name for the real test later on. 61218 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 61219 if test "x$test_shortpath" = x; then 61220 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 61221 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 61222 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_LIB_PATH" "$LINENO" 5 61223 fi 61224 61225 # Call helper function which possibly converts this using DOS-style short mode. 61226 # If so, the updated path is stored in $new_path. 61227 61228 input_path="$new_path" 61229 # Check if we need to convert this using DOS-style short mode. If the path 61230 # contains just simple characters, use it. Otherwise (spaces, weird characters), 61231 # take no chances and rewrite it. 61232 # Note: m4 eats our [], so we need to use [ and ] instead. 61233 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 61234 if test "x$has_forbidden_chars" != x; then 61235 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 61236 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 61237 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 61238 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 61239 # Going to short mode and back again did indeed matter. Since short mode is 61240 # case insensitive, let's make it lowercase to improve readability. 61241 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 61242 # Now convert it back to Unix-style (cygpath) 61243 input_path=`$CYGPATH -u "$shortmode_path"` 61244 new_path="$input_path" 61245 fi 61246 fi 61247 61248 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 61249 if test "x$test_cygdrive_prefix" = x; then 61250 # As a simple fix, exclude /usr/bin since it's not a real path. 61251 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 61252 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 61253 # a path prefixed by /cygdrive for fixpath to work. 61254 new_path="$CYGWIN_ROOT_PATH$input_path" 61255 fi 61256 fi 61257 61258 61259 if test "x$path" != "x$new_path"; then 61260 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 61261 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 61262 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 61263 fi 61264 61265 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 61266 61267 path="$POTENTIAL_FREETYPE_LIB_PATH" 61268 has_colon=`$ECHO $path | $GREP ^.:` 61269 new_path="$path" 61270 if test "x$has_colon" = x; then 61271 # Not in mixed or Windows style, start by that. 61272 new_path=`cmd //c echo $path` 61273 fi 61274 61275 61276 input_path="$new_path" 61277 # Check if we need to convert this using DOS-style short mode. If the path 61278 # contains just simple characters, use it. Otherwise (spaces, weird characters), 61279 # take no chances and rewrite it. 61280 # Note: m4 eats our [], so we need to use [ and ] instead. 61281 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 61282 if test "x$has_forbidden_chars" != x; then 61283 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 61284 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 61285 fi 61286 61287 61288 windows_path="$new_path" 61289 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 61290 unix_path=`$CYGPATH -u "$windows_path"` 61291 new_path="$unix_path" 61292 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 61293 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 61294 new_path="$unix_path" 61295 fi 61296 61297 if test "x$path" != "x$new_path"; then 61298 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 61299 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 61300 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 61301 fi 61302 61303 # Save the first 10 bytes of this path to the storage, so fixpath can work. 61304 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 61305 61306 else 61307 # We're on a unix platform. Hooray! :) 61308 path="$POTENTIAL_FREETYPE_LIB_PATH" 61309 has_space=`$ECHO "$path" | $GREP " "` 61310 if test "x$has_space" != x; then 61311 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 61312 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 61313 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 61314 fi 61315 61316 # Use eval to expand a potential ~ 61317 eval path="$path" 61318 if test ! -f "$path" && test ! -d "$path"; then 61319 as_fn_error $? "The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 61320 fi 61321 61322 if test -d "$path"; then 61323 POTENTIAL_FREETYPE_LIB_PATH="`cd "$path"; $THEPWDCMD -L`" 61324 else 61325 dir="`$DIRNAME "$path"`" 61326 base="`$BASENAME "$path"`" 61327 POTENTIAL_FREETYPE_LIB_PATH="`cd "$dir"; $THEPWDCMD -L`/$base" 61328 fi 61329 fi 61330 fi 61331 61332 61333 FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH" 61334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype includes" >&5 61335 $as_echo_n "checking for freetype includes... " >&6; } 61336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_INCLUDE_PATH" >&5 61337 $as_echo "$FREETYPE_INCLUDE_PATH" >&6; } 61338 FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH" 61339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype libraries" >&5 61340 $as_echo_n "checking for freetype libraries... " >&6; } 61341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_LIB_PATH" >&5 61342 $as_echo "$FREETYPE_LIB_PATH" >&6; } 61343 fi 61344 61345 fi 61346 61347 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 61348 if test "x$FOUND_FREETYPE" != xyes; then 61349 # Due to changes in OSX 10.11 XQuartz now installs to /opt/X11 61350 FREETYPE_BASE_DIR="$SYSROOT/opt/X11" 61351 61352 POTENTIAL_FREETYPE_INCLUDE_PATH="$FREETYPE_BASE_DIR/include" 61353 POTENTIAL_FREETYPE_LIB_PATH="$FREETYPE_BASE_DIR/lib" 61354 METHOD="well-known location" 61355 61356 # Let's start with an optimistic view of the world :-) 61357 FOUND_FREETYPE=yes 61358 61359 # First look for the canonical freetype main include file ft2build.h. 61360 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 61361 # Oh no! Let's try in the freetype2 directory. This is needed at least at Mac OS X Yosemite. 61362 POTENTIAL_FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH/freetype2" 61363 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 61364 # Fail. 61365 FOUND_FREETYPE=no 61366 fi 61367 fi 61368 61369 if test "x$FOUND_FREETYPE" = xyes; then 61370 # Include file found, let's continue the sanity check. 61371 { $as_echo "$as_me:${as_lineno-$LINENO}: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&5 61372 $as_echo "$as_me: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&6;} 61373 61374 # Reset to default value 61375 FREETYPE_BASE_NAME=freetype 61376 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 61377 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME"; then 61378 if test "x$OPENJDK_TARGET_OS" = xmacosx \ 61379 && test -s "$POTENTIAL_FREETYPE_LIB_PATH/${LIBRARY_PREFIX}freetype.6${SHARED_LIBRARY_SUFFIX}"; then 61380 # On Mac OS X Yosemite, the symlink from libfreetype.dylib to libfreetype.6.dylib disappeared. Check 61381 # for the .6 version explicitly. 61382 FREETYPE_BASE_NAME=freetype.6 61383 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 61384 { $as_echo "$as_me:${as_lineno-$LINENO}: Compensating for missing symlink by using version 6 explicitly" >&5 61385 $as_echo "$as_me: Compensating for missing symlink by using version 6 explicitly" >&6;} 61386 else 61387 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&5 61388 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&6;} 61389 FOUND_FREETYPE=no 61390 fi 61391 else 61392 if test "x$OPENJDK_TARGET_OS" = xwindows; then 61393 # On Windows, we will need both .lib and .dll file. 61394 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib"; then 61395 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&5 61396 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&6;} 61397 FOUND_FREETYPE=no 61398 fi 61399 elif test "x$OPENJDK_TARGET_OS" = xsolaris \ 61400 && test -s "$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR/$FREETYPE_LIB_NAME"; then 61401 # Found lib in isa dir, use that instead. 61402 POTENTIAL_FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR" 61403 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&5 61404 $as_echo "$as_me: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&6;} 61405 fi 61406 fi 61407 fi 61408 61409 if test "x$FOUND_FREETYPE" = xyes; then 61410 61411 # Only process if variable expands to non-empty 61412 61413 if test "x$POTENTIAL_FREETYPE_INCLUDE_PATH" != x; then 61414 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 61415 61416 # Input might be given as Windows format, start by converting to 61417 # unix format. 61418 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 61419 new_path=`$CYGPATH -u "$path"` 61420 61421 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 61422 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 61423 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 61424 # "foo.exe" is OK but "foo" is an error. 61425 # 61426 # This test is therefore slightly more accurate than "test -f" to check for file precense. 61427 # It is also a way to make sure we got the proper file name for the real test later on. 61428 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 61429 if test "x$test_shortpath" = x; then 61430 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 61431 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 61432 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_INCLUDE_PATH" "$LINENO" 5 61433 fi 61434 61435 # Call helper function which possibly converts this using DOS-style short mode. 61436 # If so, the updated path is stored in $new_path. 61437 61438 input_path="$new_path" 61439 # Check if we need to convert this using DOS-style short mode. If the path 61440 # contains just simple characters, use it. Otherwise (spaces, weird characters), 61441 # take no chances and rewrite it. 61442 # Note: m4 eats our [], so we need to use [ and ] instead. 61443 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 61444 if test "x$has_forbidden_chars" != x; then 61445 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 61446 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 61447 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 61448 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 61449 # Going to short mode and back again did indeed matter. Since short mode is 61450 # case insensitive, let's make it lowercase to improve readability. 61451 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 61452 # Now convert it back to Unix-style (cygpath) 61453 input_path=`$CYGPATH -u "$shortmode_path"` 61454 new_path="$input_path" 61455 fi 61456 fi 61457 61458 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 61459 if test "x$test_cygdrive_prefix" = x; then 61460 # As a simple fix, exclude /usr/bin since it's not a real path. 61461 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 61462 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 61463 # a path prefixed by /cygdrive for fixpath to work. 61464 new_path="$CYGWIN_ROOT_PATH$input_path" 61465 fi 61466 fi 61467 61468 61469 if test "x$path" != "x$new_path"; then 61470 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 61471 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 61472 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 61473 fi 61474 61475 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 61476 61477 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 61478 has_colon=`$ECHO $path | $GREP ^.:` 61479 new_path="$path" 61480 if test "x$has_colon" = x; then 61481 # Not in mixed or Windows style, start by that. 61482 new_path=`cmd //c echo $path` 61483 fi 61484 61485 61486 input_path="$new_path" 61487 # Check if we need to convert this using DOS-style short mode. If the path 61488 # contains just simple characters, use it. Otherwise (spaces, weird characters), 61489 # take no chances and rewrite it. 61490 # Note: m4 eats our [], so we need to use [ and ] instead. 61491 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 61492 if test "x$has_forbidden_chars" != x; then 61493 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 61494 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 61495 fi 61496 61497 61498 windows_path="$new_path" 61499 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 61500 unix_path=`$CYGPATH -u "$windows_path"` 61501 new_path="$unix_path" 61502 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 61503 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 61504 new_path="$unix_path" 61505 fi 61506 61507 if test "x$path" != "x$new_path"; then 61508 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 61509 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 61510 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 61511 fi 61512 61513 # Save the first 10 bytes of this path to the storage, so fixpath can work. 61514 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 61515 61516 else 61517 # We're on a unix platform. Hooray! :) 61518 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 61519 has_space=`$ECHO "$path" | $GREP " "` 61520 if test "x$has_space" != x; then 61521 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 61522 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 61523 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 61524 fi 61525 61526 # Use eval to expand a potential ~ 61527 eval path="$path" 61528 if test ! -f "$path" && test ! -d "$path"; then 61529 as_fn_error $? "The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 61530 fi 61531 61532 if test -d "$path"; then 61533 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$path"; $THEPWDCMD -L`" 61534 else 61535 dir="`$DIRNAME "$path"`" 61536 base="`$BASENAME "$path"`" 61537 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$dir"; $THEPWDCMD -L`/$base" 61538 fi 61539 fi 61540 fi 61541 61542 61543 # Only process if variable expands to non-empty 61544 61545 if test "x$POTENTIAL_FREETYPE_LIB_PATH" != x; then 61546 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 61547 61548 # Input might be given as Windows format, start by converting to 61549 # unix format. 61550 path="$POTENTIAL_FREETYPE_LIB_PATH" 61551 new_path=`$CYGPATH -u "$path"` 61552 61553 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 61554 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 61555 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 61556 # "foo.exe" is OK but "foo" is an error. 61557 # 61558 # This test is therefore slightly more accurate than "test -f" to check for file precense. 61559 # It is also a way to make sure we got the proper file name for the real test later on. 61560 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 61561 if test "x$test_shortpath" = x; then 61562 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 61563 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 61564 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_LIB_PATH" "$LINENO" 5 61565 fi 61566 61567 # Call helper function which possibly converts this using DOS-style short mode. 61568 # If so, the updated path is stored in $new_path. 61569 61570 input_path="$new_path" 61571 # Check if we need to convert this using DOS-style short mode. If the path 61572 # contains just simple characters, use it. Otherwise (spaces, weird characters), 61573 # take no chances and rewrite it. 61574 # Note: m4 eats our [], so we need to use [ and ] instead. 61575 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 61576 if test "x$has_forbidden_chars" != x; then 61577 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 61578 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 61579 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 61580 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 61581 # Going to short mode and back again did indeed matter. Since short mode is 61582 # case insensitive, let's make it lowercase to improve readability. 61583 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 61584 # Now convert it back to Unix-style (cygpath) 61585 input_path=`$CYGPATH -u "$shortmode_path"` 61586 new_path="$input_path" 61587 fi 61588 fi 61589 61590 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 61591 if test "x$test_cygdrive_prefix" = x; then 61592 # As a simple fix, exclude /usr/bin since it's not a real path. 61593 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 61594 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 61595 # a path prefixed by /cygdrive for fixpath to work. 61596 new_path="$CYGWIN_ROOT_PATH$input_path" 61597 fi 61598 fi 61599 61600 61601 if test "x$path" != "x$new_path"; then 61602 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 61603 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 61604 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 61605 fi 61606 61607 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 61608 61609 path="$POTENTIAL_FREETYPE_LIB_PATH" 61610 has_colon=`$ECHO $path | $GREP ^.:` 61611 new_path="$path" 61612 if test "x$has_colon" = x; then 61613 # Not in mixed or Windows style, start by that. 61614 new_path=`cmd //c echo $path` 61615 fi 61616 61617 61618 input_path="$new_path" 61619 # Check if we need to convert this using DOS-style short mode. If the path 61620 # contains just simple characters, use it. Otherwise (spaces, weird characters), 61621 # take no chances and rewrite it. 61622 # Note: m4 eats our [], so we need to use [ and ] instead. 61623 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 61624 if test "x$has_forbidden_chars" != x; then 61625 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 61626 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 61627 fi 61628 61629 61630 windows_path="$new_path" 61631 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 61632 unix_path=`$CYGPATH -u "$windows_path"` 61633 new_path="$unix_path" 61634 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 61635 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 61636 new_path="$unix_path" 61637 fi 61638 61639 if test "x$path" != "x$new_path"; then 61640 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 61641 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 61642 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 61643 fi 61644 61645 # Save the first 10 bytes of this path to the storage, so fixpath can work. 61646 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 61647 61648 else 61649 # We're on a unix platform. Hooray! :) 61650 path="$POTENTIAL_FREETYPE_LIB_PATH" 61651 has_space=`$ECHO "$path" | $GREP " "` 61652 if test "x$has_space" != x; then 61653 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 61654 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 61655 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 61656 fi 61657 61658 # Use eval to expand a potential ~ 61659 eval path="$path" 61660 if test ! -f "$path" && test ! -d "$path"; then 61661 as_fn_error $? "The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 61662 fi 61663 61664 if test -d "$path"; then 61665 POTENTIAL_FREETYPE_LIB_PATH="`cd "$path"; $THEPWDCMD -L`" 61666 else 61667 dir="`$DIRNAME "$path"`" 61668 base="`$BASENAME "$path"`" 61669 POTENTIAL_FREETYPE_LIB_PATH="`cd "$dir"; $THEPWDCMD -L`/$base" 61670 fi 61671 fi 61672 fi 61673 61674 61675 FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH" 61676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype includes" >&5 61677 $as_echo_n "checking for freetype includes... " >&6; } 61678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_INCLUDE_PATH" >&5 61679 $as_echo "$FREETYPE_INCLUDE_PATH" >&6; } 61680 FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH" 61681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype libraries" >&5 61682 $as_echo_n "checking for freetype libraries... " >&6; } 61683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_LIB_PATH" >&5 61684 $as_echo "$FREETYPE_LIB_PATH" >&6; } 61685 fi 61686 61687 fi 61688 fi 61689 61690 if test "x$FOUND_FREETYPE" != xyes; then 61691 FREETYPE_BASE_DIR="$SYSROOT/usr/sfw" 61692 61693 POTENTIAL_FREETYPE_INCLUDE_PATH="$FREETYPE_BASE_DIR/include" 61694 POTENTIAL_FREETYPE_LIB_PATH="$FREETYPE_BASE_DIR/lib" 61695 METHOD="well-known location" 61696 61697 # Let's start with an optimistic view of the world :-) 61698 FOUND_FREETYPE=yes 61699 61700 # First look for the canonical freetype main include file ft2build.h. 61701 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 61702 # Oh no! Let's try in the freetype2 directory. This is needed at least at Mac OS X Yosemite. 61703 POTENTIAL_FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH/freetype2" 61704 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 61705 # Fail. 61706 FOUND_FREETYPE=no 61707 fi 61708 fi 61709 61710 if test "x$FOUND_FREETYPE" = xyes; then 61711 # Include file found, let's continue the sanity check. 61712 { $as_echo "$as_me:${as_lineno-$LINENO}: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&5 61713 $as_echo "$as_me: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&6;} 61714 61715 # Reset to default value 61716 FREETYPE_BASE_NAME=freetype 61717 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 61718 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME"; then 61719 if test "x$OPENJDK_TARGET_OS" = xmacosx \ 61720 && test -s "$POTENTIAL_FREETYPE_LIB_PATH/${LIBRARY_PREFIX}freetype.6${SHARED_LIBRARY_SUFFIX}"; then 61721 # On Mac OS X Yosemite, the symlink from libfreetype.dylib to libfreetype.6.dylib disappeared. Check 61722 # for the .6 version explicitly. 61723 FREETYPE_BASE_NAME=freetype.6 61724 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 61725 { $as_echo "$as_me:${as_lineno-$LINENO}: Compensating for missing symlink by using version 6 explicitly" >&5 61726 $as_echo "$as_me: Compensating for missing symlink by using version 6 explicitly" >&6;} 61727 else 61728 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&5 61729 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&6;} 61730 FOUND_FREETYPE=no 61731 fi 61732 else 61733 if test "x$OPENJDK_TARGET_OS" = xwindows; then 61734 # On Windows, we will need both .lib and .dll file. 61735 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib"; then 61736 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&5 61737 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&6;} 61738 FOUND_FREETYPE=no 61739 fi 61740 elif test "x$OPENJDK_TARGET_OS" = xsolaris \ 61741 && test -s "$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR/$FREETYPE_LIB_NAME"; then 61742 # Found lib in isa dir, use that instead. 61743 POTENTIAL_FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR" 61744 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&5 61745 $as_echo "$as_me: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&6;} 61746 fi 61747 fi 61748 fi 61749 61750 if test "x$FOUND_FREETYPE" = xyes; then 61751 61752 # Only process if variable expands to non-empty 61753 61754 if test "x$POTENTIAL_FREETYPE_INCLUDE_PATH" != x; then 61755 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 61756 61757 # Input might be given as Windows format, start by converting to 61758 # unix format. 61759 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 61760 new_path=`$CYGPATH -u "$path"` 61761 61762 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 61763 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 61764 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 61765 # "foo.exe" is OK but "foo" is an error. 61766 # 61767 # This test is therefore slightly more accurate than "test -f" to check for file precense. 61768 # It is also a way to make sure we got the proper file name for the real test later on. 61769 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 61770 if test "x$test_shortpath" = x; then 61771 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 61772 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 61773 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_INCLUDE_PATH" "$LINENO" 5 61774 fi 61775 61776 # Call helper function which possibly converts this using DOS-style short mode. 61777 # If so, the updated path is stored in $new_path. 61778 61779 input_path="$new_path" 61780 # Check if we need to convert this using DOS-style short mode. If the path 61781 # contains just simple characters, use it. Otherwise (spaces, weird characters), 61782 # take no chances and rewrite it. 61783 # Note: m4 eats our [], so we need to use [ and ] instead. 61784 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 61785 if test "x$has_forbidden_chars" != x; then 61786 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 61787 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 61788 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 61789 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 61790 # Going to short mode and back again did indeed matter. Since short mode is 61791 # case insensitive, let's make it lowercase to improve readability. 61792 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 61793 # Now convert it back to Unix-style (cygpath) 61794 input_path=`$CYGPATH -u "$shortmode_path"` 61795 new_path="$input_path" 61796 fi 61797 fi 61798 61799 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 61800 if test "x$test_cygdrive_prefix" = x; then 61801 # As a simple fix, exclude /usr/bin since it's not a real path. 61802 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 61803 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 61804 # a path prefixed by /cygdrive for fixpath to work. 61805 new_path="$CYGWIN_ROOT_PATH$input_path" 61806 fi 61807 fi 61808 61809 61810 if test "x$path" != "x$new_path"; then 61811 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 61812 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 61813 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 61814 fi 61815 61816 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 61817 61818 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 61819 has_colon=`$ECHO $path | $GREP ^.:` 61820 new_path="$path" 61821 if test "x$has_colon" = x; then 61822 # Not in mixed or Windows style, start by that. 61823 new_path=`cmd //c echo $path` 61824 fi 61825 61826 61827 input_path="$new_path" 61828 # Check if we need to convert this using DOS-style short mode. If the path 61829 # contains just simple characters, use it. Otherwise (spaces, weird characters), 61830 # take no chances and rewrite it. 61831 # Note: m4 eats our [], so we need to use [ and ] instead. 61832 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 61833 if test "x$has_forbidden_chars" != x; then 61834 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 61835 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 61836 fi 61837 61838 61839 windows_path="$new_path" 61840 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 61841 unix_path=`$CYGPATH -u "$windows_path"` 61842 new_path="$unix_path" 61843 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 61844 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 61845 new_path="$unix_path" 61846 fi 61847 61848 if test "x$path" != "x$new_path"; then 61849 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 61850 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 61851 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 61852 fi 61853 61854 # Save the first 10 bytes of this path to the storage, so fixpath can work. 61855 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 61856 61857 else 61858 # We're on a unix platform. Hooray! :) 61859 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 61860 has_space=`$ECHO "$path" | $GREP " "` 61861 if test "x$has_space" != x; then 61862 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 61863 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 61864 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 61865 fi 61866 61867 # Use eval to expand a potential ~ 61868 eval path="$path" 61869 if test ! -f "$path" && test ! -d "$path"; then 61870 as_fn_error $? "The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 61871 fi 61872 61873 if test -d "$path"; then 61874 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$path"; $THEPWDCMD -L`" 61875 else 61876 dir="`$DIRNAME "$path"`" 61877 base="`$BASENAME "$path"`" 61878 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$dir"; $THEPWDCMD -L`/$base" 61879 fi 61880 fi 61881 fi 61882 61883 61884 # Only process if variable expands to non-empty 61885 61886 if test "x$POTENTIAL_FREETYPE_LIB_PATH" != x; then 61887 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 61888 61889 # Input might be given as Windows format, start by converting to 61890 # unix format. 61891 path="$POTENTIAL_FREETYPE_LIB_PATH" 61892 new_path=`$CYGPATH -u "$path"` 61893 61894 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 61895 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 61896 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 61897 # "foo.exe" is OK but "foo" is an error. 61898 # 61899 # This test is therefore slightly more accurate than "test -f" to check for file precense. 61900 # It is also a way to make sure we got the proper file name for the real test later on. 61901 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 61902 if test "x$test_shortpath" = x; then 61903 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 61904 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 61905 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_LIB_PATH" "$LINENO" 5 61906 fi 61907 61908 # Call helper function which possibly converts this using DOS-style short mode. 61909 # If so, the updated path is stored in $new_path. 61910 61911 input_path="$new_path" 61912 # Check if we need to convert this using DOS-style short mode. If the path 61913 # contains just simple characters, use it. Otherwise (spaces, weird characters), 61914 # take no chances and rewrite it. 61915 # Note: m4 eats our [], so we need to use [ and ] instead. 61916 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 61917 if test "x$has_forbidden_chars" != x; then 61918 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 61919 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 61920 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 61921 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 61922 # Going to short mode and back again did indeed matter. Since short mode is 61923 # case insensitive, let's make it lowercase to improve readability. 61924 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 61925 # Now convert it back to Unix-style (cygpath) 61926 input_path=`$CYGPATH -u "$shortmode_path"` 61927 new_path="$input_path" 61928 fi 61929 fi 61930 61931 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 61932 if test "x$test_cygdrive_prefix" = x; then 61933 # As a simple fix, exclude /usr/bin since it's not a real path. 61934 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 61935 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 61936 # a path prefixed by /cygdrive for fixpath to work. 61937 new_path="$CYGWIN_ROOT_PATH$input_path" 61938 fi 61939 fi 61940 61941 61942 if test "x$path" != "x$new_path"; then 61943 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 61944 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 61945 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 61946 fi 61947 61948 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 61949 61950 path="$POTENTIAL_FREETYPE_LIB_PATH" 61951 has_colon=`$ECHO $path | $GREP ^.:` 61952 new_path="$path" 61953 if test "x$has_colon" = x; then 61954 # Not in mixed or Windows style, start by that. 61955 new_path=`cmd //c echo $path` 61956 fi 61957 61958 61959 input_path="$new_path" 61960 # Check if we need to convert this using DOS-style short mode. If the path 61961 # contains just simple characters, use it. Otherwise (spaces, weird characters), 61962 # take no chances and rewrite it. 61963 # Note: m4 eats our [], so we need to use [ and ] instead. 61964 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 61965 if test "x$has_forbidden_chars" != x; then 61966 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 61967 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 61968 fi 61969 61970 61971 windows_path="$new_path" 61972 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 61973 unix_path=`$CYGPATH -u "$windows_path"` 61974 new_path="$unix_path" 61975 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 61976 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 61977 new_path="$unix_path" 61978 fi 61979 61980 if test "x$path" != "x$new_path"; then 61981 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 61982 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 61983 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 61984 fi 61985 61986 # Save the first 10 bytes of this path to the storage, so fixpath can work. 61987 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 61988 61989 else 61990 # We're on a unix platform. Hooray! :) 61991 path="$POTENTIAL_FREETYPE_LIB_PATH" 61992 has_space=`$ECHO "$path" | $GREP " "` 61993 if test "x$has_space" != x; then 61994 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 61995 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 61996 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 61997 fi 61998 61999 # Use eval to expand a potential ~ 62000 eval path="$path" 62001 if test ! -f "$path" && test ! -d "$path"; then 62002 as_fn_error $? "The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 62003 fi 62004 62005 if test -d "$path"; then 62006 POTENTIAL_FREETYPE_LIB_PATH="`cd "$path"; $THEPWDCMD -L`" 62007 else 62008 dir="`$DIRNAME "$path"`" 62009 base="`$BASENAME "$path"`" 62010 POTENTIAL_FREETYPE_LIB_PATH="`cd "$dir"; $THEPWDCMD -L`/$base" 62011 fi 62012 fi 62013 fi 62014 62015 62016 FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH" 62017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype includes" >&5 62018 $as_echo_n "checking for freetype includes... " >&6; } 62019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_INCLUDE_PATH" >&5 62020 $as_echo "$FREETYPE_INCLUDE_PATH" >&6; } 62021 FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH" 62022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype libraries" >&5 62023 $as_echo_n "checking for freetype libraries... " >&6; } 62024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_LIB_PATH" >&5 62025 $as_echo "$FREETYPE_LIB_PATH" >&6; } 62026 fi 62027 62028 fi 62029 62030 if test "x$FOUND_FREETYPE" != xyes; then 62031 FREETYPE_BASE_DIR="$SYSROOT/usr" 62032 if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then 62033 62034 POTENTIAL_FREETYPE_INCLUDE_PATH="$FREETYPE_BASE_DIR/include" 62035 POTENTIAL_FREETYPE_LIB_PATH="$FREETYPE_BASE_DIR/lib/x86_64-linux-gnu" 62036 METHOD="well-known location" 62037 62038 # Let's start with an optimistic view of the world :-) 62039 FOUND_FREETYPE=yes 62040 62041 # First look for the canonical freetype main include file ft2build.h. 62042 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 62043 # Oh no! Let's try in the freetype2 directory. This is needed at least at Mac OS X Yosemite. 62044 POTENTIAL_FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH/freetype2" 62045 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 62046 # Fail. 62047 FOUND_FREETYPE=no 62048 fi 62049 fi 62050 62051 if test "x$FOUND_FREETYPE" = xyes; then 62052 # Include file found, let's continue the sanity check. 62053 { $as_echo "$as_me:${as_lineno-$LINENO}: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&5 62054 $as_echo "$as_me: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&6;} 62055 62056 # Reset to default value 62057 FREETYPE_BASE_NAME=freetype 62058 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 62059 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME"; then 62060 if test "x$OPENJDK_TARGET_OS" = xmacosx \ 62061 && test -s "$POTENTIAL_FREETYPE_LIB_PATH/${LIBRARY_PREFIX}freetype.6${SHARED_LIBRARY_SUFFIX}"; then 62062 # On Mac OS X Yosemite, the symlink from libfreetype.dylib to libfreetype.6.dylib disappeared. Check 62063 # for the .6 version explicitly. 62064 FREETYPE_BASE_NAME=freetype.6 62065 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 62066 { $as_echo "$as_me:${as_lineno-$LINENO}: Compensating for missing symlink by using version 6 explicitly" >&5 62067 $as_echo "$as_me: Compensating for missing symlink by using version 6 explicitly" >&6;} 62068 else 62069 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&5 62070 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&6;} 62071 FOUND_FREETYPE=no 62072 fi 62073 else 62074 if test "x$OPENJDK_TARGET_OS" = xwindows; then 62075 # On Windows, we will need both .lib and .dll file. 62076 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib"; then 62077 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&5 62078 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&6;} 62079 FOUND_FREETYPE=no 62080 fi 62081 elif test "x$OPENJDK_TARGET_OS" = xsolaris \ 62082 && test -s "$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR/$FREETYPE_LIB_NAME"; then 62083 # Found lib in isa dir, use that instead. 62084 POTENTIAL_FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR" 62085 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&5 62086 $as_echo "$as_me: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&6;} 62087 fi 62088 fi 62089 fi 62090 62091 if test "x$FOUND_FREETYPE" = xyes; then 62092 62093 # Only process if variable expands to non-empty 62094 62095 if test "x$POTENTIAL_FREETYPE_INCLUDE_PATH" != x; then 62096 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 62097 62098 # Input might be given as Windows format, start by converting to 62099 # unix format. 62100 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 62101 new_path=`$CYGPATH -u "$path"` 62102 62103 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 62104 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 62105 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 62106 # "foo.exe" is OK but "foo" is an error. 62107 # 62108 # This test is therefore slightly more accurate than "test -f" to check for file precense. 62109 # It is also a way to make sure we got the proper file name for the real test later on. 62110 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 62111 if test "x$test_shortpath" = x; then 62112 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 62113 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 62114 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_INCLUDE_PATH" "$LINENO" 5 62115 fi 62116 62117 # Call helper function which possibly converts this using DOS-style short mode. 62118 # If so, the updated path is stored in $new_path. 62119 62120 input_path="$new_path" 62121 # Check if we need to convert this using DOS-style short mode. If the path 62122 # contains just simple characters, use it. Otherwise (spaces, weird characters), 62123 # take no chances and rewrite it. 62124 # Note: m4 eats our [], so we need to use [ and ] instead. 62125 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 62126 if test "x$has_forbidden_chars" != x; then 62127 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 62128 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 62129 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 62130 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 62131 # Going to short mode and back again did indeed matter. Since short mode is 62132 # case insensitive, let's make it lowercase to improve readability. 62133 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 62134 # Now convert it back to Unix-style (cygpath) 62135 input_path=`$CYGPATH -u "$shortmode_path"` 62136 new_path="$input_path" 62137 fi 62138 fi 62139 62140 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 62141 if test "x$test_cygdrive_prefix" = x; then 62142 # As a simple fix, exclude /usr/bin since it's not a real path. 62143 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 62144 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 62145 # a path prefixed by /cygdrive for fixpath to work. 62146 new_path="$CYGWIN_ROOT_PATH$input_path" 62147 fi 62148 fi 62149 62150 62151 if test "x$path" != "x$new_path"; then 62152 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 62153 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 62154 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 62155 fi 62156 62157 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 62158 62159 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 62160 has_colon=`$ECHO $path | $GREP ^.:` 62161 new_path="$path" 62162 if test "x$has_colon" = x; then 62163 # Not in mixed or Windows style, start by that. 62164 new_path=`cmd //c echo $path` 62165 fi 62166 62167 62168 input_path="$new_path" 62169 # Check if we need to convert this using DOS-style short mode. If the path 62170 # contains just simple characters, use it. Otherwise (spaces, weird characters), 62171 # take no chances and rewrite it. 62172 # Note: m4 eats our [], so we need to use [ and ] instead. 62173 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 62174 if test "x$has_forbidden_chars" != x; then 62175 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 62176 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 62177 fi 62178 62179 62180 windows_path="$new_path" 62181 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 62182 unix_path=`$CYGPATH -u "$windows_path"` 62183 new_path="$unix_path" 62184 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 62185 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 62186 new_path="$unix_path" 62187 fi 62188 62189 if test "x$path" != "x$new_path"; then 62190 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 62191 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 62192 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 62193 fi 62194 62195 # Save the first 10 bytes of this path to the storage, so fixpath can work. 62196 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 62197 62198 else 62199 # We're on a unix platform. Hooray! :) 62200 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 62201 has_space=`$ECHO "$path" | $GREP " "` 62202 if test "x$has_space" != x; then 62203 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 62204 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 62205 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 62206 fi 62207 62208 # Use eval to expand a potential ~ 62209 eval path="$path" 62210 if test ! -f "$path" && test ! -d "$path"; then 62211 as_fn_error $? "The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 62212 fi 62213 62214 if test -d "$path"; then 62215 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$path"; $THEPWDCMD -L`" 62216 else 62217 dir="`$DIRNAME "$path"`" 62218 base="`$BASENAME "$path"`" 62219 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$dir"; $THEPWDCMD -L`/$base" 62220 fi 62221 fi 62222 fi 62223 62224 62225 # Only process if variable expands to non-empty 62226 62227 if test "x$POTENTIAL_FREETYPE_LIB_PATH" != x; then 62228 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 62229 62230 # Input might be given as Windows format, start by converting to 62231 # unix format. 62232 path="$POTENTIAL_FREETYPE_LIB_PATH" 62233 new_path=`$CYGPATH -u "$path"` 62234 62235 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 62236 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 62237 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 62238 # "foo.exe" is OK but "foo" is an error. 62239 # 62240 # This test is therefore slightly more accurate than "test -f" to check for file precense. 62241 # It is also a way to make sure we got the proper file name for the real test later on. 62242 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 62243 if test "x$test_shortpath" = x; then 62244 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 62245 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 62246 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_LIB_PATH" "$LINENO" 5 62247 fi 62248 62249 # Call helper function which possibly converts this using DOS-style short mode. 62250 # If so, the updated path is stored in $new_path. 62251 62252 input_path="$new_path" 62253 # Check if we need to convert this using DOS-style short mode. If the path 62254 # contains just simple characters, use it. Otherwise (spaces, weird characters), 62255 # take no chances and rewrite it. 62256 # Note: m4 eats our [], so we need to use [ and ] instead. 62257 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 62258 if test "x$has_forbidden_chars" != x; then 62259 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 62260 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 62261 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 62262 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 62263 # Going to short mode and back again did indeed matter. Since short mode is 62264 # case insensitive, let's make it lowercase to improve readability. 62265 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 62266 # Now convert it back to Unix-style (cygpath) 62267 input_path=`$CYGPATH -u "$shortmode_path"` 62268 new_path="$input_path" 62269 fi 62270 fi 62271 62272 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 62273 if test "x$test_cygdrive_prefix" = x; then 62274 # As a simple fix, exclude /usr/bin since it's not a real path. 62275 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 62276 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 62277 # a path prefixed by /cygdrive for fixpath to work. 62278 new_path="$CYGWIN_ROOT_PATH$input_path" 62279 fi 62280 fi 62281 62282 62283 if test "x$path" != "x$new_path"; then 62284 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 62285 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 62286 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 62287 fi 62288 62289 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 62290 62291 path="$POTENTIAL_FREETYPE_LIB_PATH" 62292 has_colon=`$ECHO $path | $GREP ^.:` 62293 new_path="$path" 62294 if test "x$has_colon" = x; then 62295 # Not in mixed or Windows style, start by that. 62296 new_path=`cmd //c echo $path` 62297 fi 62298 62299 62300 input_path="$new_path" 62301 # Check if we need to convert this using DOS-style short mode. If the path 62302 # contains just simple characters, use it. Otherwise (spaces, weird characters), 62303 # take no chances and rewrite it. 62304 # Note: m4 eats our [], so we need to use [ and ] instead. 62305 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 62306 if test "x$has_forbidden_chars" != x; then 62307 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 62308 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 62309 fi 62310 62311 62312 windows_path="$new_path" 62313 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 62314 unix_path=`$CYGPATH -u "$windows_path"` 62315 new_path="$unix_path" 62316 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 62317 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 62318 new_path="$unix_path" 62319 fi 62320 62321 if test "x$path" != "x$new_path"; then 62322 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 62323 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 62324 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 62325 fi 62326 62327 # Save the first 10 bytes of this path to the storage, so fixpath can work. 62328 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 62329 62330 else 62331 # We're on a unix platform. Hooray! :) 62332 path="$POTENTIAL_FREETYPE_LIB_PATH" 62333 has_space=`$ECHO "$path" | $GREP " "` 62334 if test "x$has_space" != x; then 62335 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 62336 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 62337 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 62338 fi 62339 62340 # Use eval to expand a potential ~ 62341 eval path="$path" 62342 if test ! -f "$path" && test ! -d "$path"; then 62343 as_fn_error $? "The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 62344 fi 62345 62346 if test -d "$path"; then 62347 POTENTIAL_FREETYPE_LIB_PATH="`cd "$path"; $THEPWDCMD -L`" 62348 else 62349 dir="`$DIRNAME "$path"`" 62350 base="`$BASENAME "$path"`" 62351 POTENTIAL_FREETYPE_LIB_PATH="`cd "$dir"; $THEPWDCMD -L`/$base" 62352 fi 62353 fi 62354 fi 62355 62356 62357 FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH" 62358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype includes" >&5 62359 $as_echo_n "checking for freetype includes... " >&6; } 62360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_INCLUDE_PATH" >&5 62361 $as_echo "$FREETYPE_INCLUDE_PATH" >&6; } 62362 FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH" 62363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype libraries" >&5 62364 $as_echo_n "checking for freetype libraries... " >&6; } 62365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_LIB_PATH" >&5 62366 $as_echo "$FREETYPE_LIB_PATH" >&6; } 62367 fi 62368 62369 else 62370 62371 POTENTIAL_FREETYPE_INCLUDE_PATH="$FREETYPE_BASE_DIR/include" 62372 POTENTIAL_FREETYPE_LIB_PATH="$FREETYPE_BASE_DIR/lib/i386-linux-gnu" 62373 METHOD="well-known location" 62374 62375 # Let's start with an optimistic view of the world :-) 62376 FOUND_FREETYPE=yes 62377 62378 # First look for the canonical freetype main include file ft2build.h. 62379 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 62380 # Oh no! Let's try in the freetype2 directory. This is needed at least at Mac OS X Yosemite. 62381 POTENTIAL_FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH/freetype2" 62382 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 62383 # Fail. 62384 FOUND_FREETYPE=no 62385 fi 62386 fi 62387 62388 if test "x$FOUND_FREETYPE" = xyes; then 62389 # Include file found, let's continue the sanity check. 62390 { $as_echo "$as_me:${as_lineno-$LINENO}: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&5 62391 $as_echo "$as_me: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&6;} 62392 62393 # Reset to default value 62394 FREETYPE_BASE_NAME=freetype 62395 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 62396 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME"; then 62397 if test "x$OPENJDK_TARGET_OS" = xmacosx \ 62398 && test -s "$POTENTIAL_FREETYPE_LIB_PATH/${LIBRARY_PREFIX}freetype.6${SHARED_LIBRARY_SUFFIX}"; then 62399 # On Mac OS X Yosemite, the symlink from libfreetype.dylib to libfreetype.6.dylib disappeared. Check 62400 # for the .6 version explicitly. 62401 FREETYPE_BASE_NAME=freetype.6 62402 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 62403 { $as_echo "$as_me:${as_lineno-$LINENO}: Compensating for missing symlink by using version 6 explicitly" >&5 62404 $as_echo "$as_me: Compensating for missing symlink by using version 6 explicitly" >&6;} 62405 else 62406 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&5 62407 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&6;} 62408 FOUND_FREETYPE=no 62409 fi 62410 else 62411 if test "x$OPENJDK_TARGET_OS" = xwindows; then 62412 # On Windows, we will need both .lib and .dll file. 62413 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib"; then 62414 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&5 62415 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&6;} 62416 FOUND_FREETYPE=no 62417 fi 62418 elif test "x$OPENJDK_TARGET_OS" = xsolaris \ 62419 && test -s "$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR/$FREETYPE_LIB_NAME"; then 62420 # Found lib in isa dir, use that instead. 62421 POTENTIAL_FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR" 62422 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&5 62423 $as_echo "$as_me: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&6;} 62424 fi 62425 fi 62426 fi 62427 62428 if test "x$FOUND_FREETYPE" = xyes; then 62429 62430 # Only process if variable expands to non-empty 62431 62432 if test "x$POTENTIAL_FREETYPE_INCLUDE_PATH" != x; then 62433 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 62434 62435 # Input might be given as Windows format, start by converting to 62436 # unix format. 62437 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 62438 new_path=`$CYGPATH -u "$path"` 62439 62440 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 62441 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 62442 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 62443 # "foo.exe" is OK but "foo" is an error. 62444 # 62445 # This test is therefore slightly more accurate than "test -f" to check for file precense. 62446 # It is also a way to make sure we got the proper file name for the real test later on. 62447 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 62448 if test "x$test_shortpath" = x; then 62449 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 62450 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 62451 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_INCLUDE_PATH" "$LINENO" 5 62452 fi 62453 62454 # Call helper function which possibly converts this using DOS-style short mode. 62455 # If so, the updated path is stored in $new_path. 62456 62457 input_path="$new_path" 62458 # Check if we need to convert this using DOS-style short mode. If the path 62459 # contains just simple characters, use it. Otherwise (spaces, weird characters), 62460 # take no chances and rewrite it. 62461 # Note: m4 eats our [], so we need to use [ and ] instead. 62462 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 62463 if test "x$has_forbidden_chars" != x; then 62464 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 62465 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 62466 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 62467 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 62468 # Going to short mode and back again did indeed matter. Since short mode is 62469 # case insensitive, let's make it lowercase to improve readability. 62470 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 62471 # Now convert it back to Unix-style (cygpath) 62472 input_path=`$CYGPATH -u "$shortmode_path"` 62473 new_path="$input_path" 62474 fi 62475 fi 62476 62477 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 62478 if test "x$test_cygdrive_prefix" = x; then 62479 # As a simple fix, exclude /usr/bin since it's not a real path. 62480 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 62481 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 62482 # a path prefixed by /cygdrive for fixpath to work. 62483 new_path="$CYGWIN_ROOT_PATH$input_path" 62484 fi 62485 fi 62486 62487 62488 if test "x$path" != "x$new_path"; then 62489 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 62490 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 62491 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 62492 fi 62493 62494 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 62495 62496 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 62497 has_colon=`$ECHO $path | $GREP ^.:` 62498 new_path="$path" 62499 if test "x$has_colon" = x; then 62500 # Not in mixed or Windows style, start by that. 62501 new_path=`cmd //c echo $path` 62502 fi 62503 62504 62505 input_path="$new_path" 62506 # Check if we need to convert this using DOS-style short mode. If the path 62507 # contains just simple characters, use it. Otherwise (spaces, weird characters), 62508 # take no chances and rewrite it. 62509 # Note: m4 eats our [], so we need to use [ and ] instead. 62510 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 62511 if test "x$has_forbidden_chars" != x; then 62512 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 62513 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 62514 fi 62515 62516 62517 windows_path="$new_path" 62518 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 62519 unix_path=`$CYGPATH -u "$windows_path"` 62520 new_path="$unix_path" 62521 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 62522 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 62523 new_path="$unix_path" 62524 fi 62525 62526 if test "x$path" != "x$new_path"; then 62527 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 62528 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 62529 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 62530 fi 62531 62532 # Save the first 10 bytes of this path to the storage, so fixpath can work. 62533 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 62534 62535 else 62536 # We're on a unix platform. Hooray! :) 62537 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 62538 has_space=`$ECHO "$path" | $GREP " "` 62539 if test "x$has_space" != x; then 62540 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 62541 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 62542 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 62543 fi 62544 62545 # Use eval to expand a potential ~ 62546 eval path="$path" 62547 if test ! -f "$path" && test ! -d "$path"; then 62548 as_fn_error $? "The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 62549 fi 62550 62551 if test -d "$path"; then 62552 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$path"; $THEPWDCMD -L`" 62553 else 62554 dir="`$DIRNAME "$path"`" 62555 base="`$BASENAME "$path"`" 62556 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$dir"; $THEPWDCMD -L`/$base" 62557 fi 62558 fi 62559 fi 62560 62561 62562 # Only process if variable expands to non-empty 62563 62564 if test "x$POTENTIAL_FREETYPE_LIB_PATH" != x; then 62565 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 62566 62567 # Input might be given as Windows format, start by converting to 62568 # unix format. 62569 path="$POTENTIAL_FREETYPE_LIB_PATH" 62570 new_path=`$CYGPATH -u "$path"` 62571 62572 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 62573 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 62574 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 62575 # "foo.exe" is OK but "foo" is an error. 62576 # 62577 # This test is therefore slightly more accurate than "test -f" to check for file precense. 62578 # It is also a way to make sure we got the proper file name for the real test later on. 62579 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 62580 if test "x$test_shortpath" = x; then 62581 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 62582 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 62583 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_LIB_PATH" "$LINENO" 5 62584 fi 62585 62586 # Call helper function which possibly converts this using DOS-style short mode. 62587 # If so, the updated path is stored in $new_path. 62588 62589 input_path="$new_path" 62590 # Check if we need to convert this using DOS-style short mode. If the path 62591 # contains just simple characters, use it. Otherwise (spaces, weird characters), 62592 # take no chances and rewrite it. 62593 # Note: m4 eats our [], so we need to use [ and ] instead. 62594 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 62595 if test "x$has_forbidden_chars" != x; then 62596 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 62597 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 62598 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 62599 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 62600 # Going to short mode and back again did indeed matter. Since short mode is 62601 # case insensitive, let's make it lowercase to improve readability. 62602 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 62603 # Now convert it back to Unix-style (cygpath) 62604 input_path=`$CYGPATH -u "$shortmode_path"` 62605 new_path="$input_path" 62606 fi 62607 fi 62608 62609 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 62610 if test "x$test_cygdrive_prefix" = x; then 62611 # As a simple fix, exclude /usr/bin since it's not a real path. 62612 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 62613 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 62614 # a path prefixed by /cygdrive for fixpath to work. 62615 new_path="$CYGWIN_ROOT_PATH$input_path" 62616 fi 62617 fi 62618 62619 62620 if test "x$path" != "x$new_path"; then 62621 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 62622 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 62623 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 62624 fi 62625 62626 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 62627 62628 path="$POTENTIAL_FREETYPE_LIB_PATH" 62629 has_colon=`$ECHO $path | $GREP ^.:` 62630 new_path="$path" 62631 if test "x$has_colon" = x; then 62632 # Not in mixed or Windows style, start by that. 62633 new_path=`cmd //c echo $path` 62634 fi 62635 62636 62637 input_path="$new_path" 62638 # Check if we need to convert this using DOS-style short mode. If the path 62639 # contains just simple characters, use it. Otherwise (spaces, weird characters), 62640 # take no chances and rewrite it. 62641 # Note: m4 eats our [], so we need to use [ and ] instead. 62642 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 62643 if test "x$has_forbidden_chars" != x; then 62644 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 62645 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 62646 fi 62647 62648 62649 windows_path="$new_path" 62650 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 62651 unix_path=`$CYGPATH -u "$windows_path"` 62652 new_path="$unix_path" 62653 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 62654 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 62655 new_path="$unix_path" 62656 fi 62657 62658 if test "x$path" != "x$new_path"; then 62659 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 62660 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 62661 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 62662 fi 62663 62664 # Save the first 10 bytes of this path to the storage, so fixpath can work. 62665 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 62666 62667 else 62668 # We're on a unix platform. Hooray! :) 62669 path="$POTENTIAL_FREETYPE_LIB_PATH" 62670 has_space=`$ECHO "$path" | $GREP " "` 62671 if test "x$has_space" != x; then 62672 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 62673 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 62674 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 62675 fi 62676 62677 # Use eval to expand a potential ~ 62678 eval path="$path" 62679 if test ! -f "$path" && test ! -d "$path"; then 62680 as_fn_error $? "The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 62681 fi 62682 62683 if test -d "$path"; then 62684 POTENTIAL_FREETYPE_LIB_PATH="`cd "$path"; $THEPWDCMD -L`" 62685 else 62686 dir="`$DIRNAME "$path"`" 62687 base="`$BASENAME "$path"`" 62688 POTENTIAL_FREETYPE_LIB_PATH="`cd "$dir"; $THEPWDCMD -L`/$base" 62689 fi 62690 fi 62691 fi 62692 62693 62694 FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH" 62695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype includes" >&5 62696 $as_echo_n "checking for freetype includes... " >&6; } 62697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_INCLUDE_PATH" >&5 62698 $as_echo "$FREETYPE_INCLUDE_PATH" >&6; } 62699 FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH" 62700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype libraries" >&5 62701 $as_echo_n "checking for freetype libraries... " >&6; } 62702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_LIB_PATH" >&5 62703 $as_echo "$FREETYPE_LIB_PATH" >&6; } 62704 fi 62705 62706 if test "x$FOUND_FREETYPE" != xyes; then 62707 62708 POTENTIAL_FREETYPE_INCLUDE_PATH="$FREETYPE_BASE_DIR/include" 62709 POTENTIAL_FREETYPE_LIB_PATH="$FREETYPE_BASE_DIR/lib32" 62710 METHOD="well-known location" 62711 62712 # Let's start with an optimistic view of the world :-) 62713 FOUND_FREETYPE=yes 62714 62715 # First look for the canonical freetype main include file ft2build.h. 62716 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 62717 # Oh no! Let's try in the freetype2 directory. This is needed at least at Mac OS X Yosemite. 62718 POTENTIAL_FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH/freetype2" 62719 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 62720 # Fail. 62721 FOUND_FREETYPE=no 62722 fi 62723 fi 62724 62725 if test "x$FOUND_FREETYPE" = xyes; then 62726 # Include file found, let's continue the sanity check. 62727 { $as_echo "$as_me:${as_lineno-$LINENO}: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&5 62728 $as_echo "$as_me: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&6;} 62729 62730 # Reset to default value 62731 FREETYPE_BASE_NAME=freetype 62732 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 62733 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME"; then 62734 if test "x$OPENJDK_TARGET_OS" = xmacosx \ 62735 && test -s "$POTENTIAL_FREETYPE_LIB_PATH/${LIBRARY_PREFIX}freetype.6${SHARED_LIBRARY_SUFFIX}"; then 62736 # On Mac OS X Yosemite, the symlink from libfreetype.dylib to libfreetype.6.dylib disappeared. Check 62737 # for the .6 version explicitly. 62738 FREETYPE_BASE_NAME=freetype.6 62739 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 62740 { $as_echo "$as_me:${as_lineno-$LINENO}: Compensating for missing symlink by using version 6 explicitly" >&5 62741 $as_echo "$as_me: Compensating for missing symlink by using version 6 explicitly" >&6;} 62742 else 62743 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&5 62744 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&6;} 62745 FOUND_FREETYPE=no 62746 fi 62747 else 62748 if test "x$OPENJDK_TARGET_OS" = xwindows; then 62749 # On Windows, we will need both .lib and .dll file. 62750 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib"; then 62751 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&5 62752 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&6;} 62753 FOUND_FREETYPE=no 62754 fi 62755 elif test "x$OPENJDK_TARGET_OS" = xsolaris \ 62756 && test -s "$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR/$FREETYPE_LIB_NAME"; then 62757 # Found lib in isa dir, use that instead. 62758 POTENTIAL_FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR" 62759 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&5 62760 $as_echo "$as_me: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&6;} 62761 fi 62762 fi 62763 fi 62764 62765 if test "x$FOUND_FREETYPE" = xyes; then 62766 62767 # Only process if variable expands to non-empty 62768 62769 if test "x$POTENTIAL_FREETYPE_INCLUDE_PATH" != x; then 62770 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 62771 62772 # Input might be given as Windows format, start by converting to 62773 # unix format. 62774 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 62775 new_path=`$CYGPATH -u "$path"` 62776 62777 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 62778 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 62779 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 62780 # "foo.exe" is OK but "foo" is an error. 62781 # 62782 # This test is therefore slightly more accurate than "test -f" to check for file precense. 62783 # It is also a way to make sure we got the proper file name for the real test later on. 62784 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 62785 if test "x$test_shortpath" = x; then 62786 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 62787 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 62788 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_INCLUDE_PATH" "$LINENO" 5 62789 fi 62790 62791 # Call helper function which possibly converts this using DOS-style short mode. 62792 # If so, the updated path is stored in $new_path. 62793 62794 input_path="$new_path" 62795 # Check if we need to convert this using DOS-style short mode. If the path 62796 # contains just simple characters, use it. Otherwise (spaces, weird characters), 62797 # take no chances and rewrite it. 62798 # Note: m4 eats our [], so we need to use [ and ] instead. 62799 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 62800 if test "x$has_forbidden_chars" != x; then 62801 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 62802 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 62803 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 62804 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 62805 # Going to short mode and back again did indeed matter. Since short mode is 62806 # case insensitive, let's make it lowercase to improve readability. 62807 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 62808 # Now convert it back to Unix-style (cygpath) 62809 input_path=`$CYGPATH -u "$shortmode_path"` 62810 new_path="$input_path" 62811 fi 62812 fi 62813 62814 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 62815 if test "x$test_cygdrive_prefix" = x; then 62816 # As a simple fix, exclude /usr/bin since it's not a real path. 62817 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 62818 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 62819 # a path prefixed by /cygdrive for fixpath to work. 62820 new_path="$CYGWIN_ROOT_PATH$input_path" 62821 fi 62822 fi 62823 62824 62825 if test "x$path" != "x$new_path"; then 62826 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 62827 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 62828 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 62829 fi 62830 62831 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 62832 62833 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 62834 has_colon=`$ECHO $path | $GREP ^.:` 62835 new_path="$path" 62836 if test "x$has_colon" = x; then 62837 # Not in mixed or Windows style, start by that. 62838 new_path=`cmd //c echo $path` 62839 fi 62840 62841 62842 input_path="$new_path" 62843 # Check if we need to convert this using DOS-style short mode. If the path 62844 # contains just simple characters, use it. Otherwise (spaces, weird characters), 62845 # take no chances and rewrite it. 62846 # Note: m4 eats our [], so we need to use [ and ] instead. 62847 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 62848 if test "x$has_forbidden_chars" != x; then 62849 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 62850 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 62851 fi 62852 62853 62854 windows_path="$new_path" 62855 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 62856 unix_path=`$CYGPATH -u "$windows_path"` 62857 new_path="$unix_path" 62858 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 62859 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 62860 new_path="$unix_path" 62861 fi 62862 62863 if test "x$path" != "x$new_path"; then 62864 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 62865 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 62866 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 62867 fi 62868 62869 # Save the first 10 bytes of this path to the storage, so fixpath can work. 62870 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 62871 62872 else 62873 # We're on a unix platform. Hooray! :) 62874 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 62875 has_space=`$ECHO "$path" | $GREP " "` 62876 if test "x$has_space" != x; then 62877 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 62878 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 62879 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 62880 fi 62881 62882 # Use eval to expand a potential ~ 62883 eval path="$path" 62884 if test ! -f "$path" && test ! -d "$path"; then 62885 as_fn_error $? "The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 62886 fi 62887 62888 if test -d "$path"; then 62889 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$path"; $THEPWDCMD -L`" 62890 else 62891 dir="`$DIRNAME "$path"`" 62892 base="`$BASENAME "$path"`" 62893 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$dir"; $THEPWDCMD -L`/$base" 62894 fi 62895 fi 62896 fi 62897 62898 62899 # Only process if variable expands to non-empty 62900 62901 if test "x$POTENTIAL_FREETYPE_LIB_PATH" != x; then 62902 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 62903 62904 # Input might be given as Windows format, start by converting to 62905 # unix format. 62906 path="$POTENTIAL_FREETYPE_LIB_PATH" 62907 new_path=`$CYGPATH -u "$path"` 62908 62909 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 62910 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 62911 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 62912 # "foo.exe" is OK but "foo" is an error. 62913 # 62914 # This test is therefore slightly more accurate than "test -f" to check for file precense. 62915 # It is also a way to make sure we got the proper file name for the real test later on. 62916 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 62917 if test "x$test_shortpath" = x; then 62918 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 62919 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 62920 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_LIB_PATH" "$LINENO" 5 62921 fi 62922 62923 # Call helper function which possibly converts this using DOS-style short mode. 62924 # If so, the updated path is stored in $new_path. 62925 62926 input_path="$new_path" 62927 # Check if we need to convert this using DOS-style short mode. If the path 62928 # contains just simple characters, use it. Otherwise (spaces, weird characters), 62929 # take no chances and rewrite it. 62930 # Note: m4 eats our [], so we need to use [ and ] instead. 62931 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 62932 if test "x$has_forbidden_chars" != x; then 62933 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 62934 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 62935 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 62936 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 62937 # Going to short mode and back again did indeed matter. Since short mode is 62938 # case insensitive, let's make it lowercase to improve readability. 62939 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 62940 # Now convert it back to Unix-style (cygpath) 62941 input_path=`$CYGPATH -u "$shortmode_path"` 62942 new_path="$input_path" 62943 fi 62944 fi 62945 62946 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 62947 if test "x$test_cygdrive_prefix" = x; then 62948 # As a simple fix, exclude /usr/bin since it's not a real path. 62949 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 62950 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 62951 # a path prefixed by /cygdrive for fixpath to work. 62952 new_path="$CYGWIN_ROOT_PATH$input_path" 62953 fi 62954 fi 62955 62956 62957 if test "x$path" != "x$new_path"; then 62958 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 62959 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 62960 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 62961 fi 62962 62963 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 62964 62965 path="$POTENTIAL_FREETYPE_LIB_PATH" 62966 has_colon=`$ECHO $path | $GREP ^.:` 62967 new_path="$path" 62968 if test "x$has_colon" = x; then 62969 # Not in mixed or Windows style, start by that. 62970 new_path=`cmd //c echo $path` 62971 fi 62972 62973 62974 input_path="$new_path" 62975 # Check if we need to convert this using DOS-style short mode. If the path 62976 # contains just simple characters, use it. Otherwise (spaces, weird characters), 62977 # take no chances and rewrite it. 62978 # Note: m4 eats our [], so we need to use [ and ] instead. 62979 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 62980 if test "x$has_forbidden_chars" != x; then 62981 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 62982 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 62983 fi 62984 62985 62986 windows_path="$new_path" 62987 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 62988 unix_path=`$CYGPATH -u "$windows_path"` 62989 new_path="$unix_path" 62990 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 62991 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 62992 new_path="$unix_path" 62993 fi 62994 62995 if test "x$path" != "x$new_path"; then 62996 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 62997 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 62998 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 62999 fi 63000 63001 # Save the first 10 bytes of this path to the storage, so fixpath can work. 63002 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 63003 63004 else 63005 # We're on a unix platform. Hooray! :) 63006 path="$POTENTIAL_FREETYPE_LIB_PATH" 63007 has_space=`$ECHO "$path" | $GREP " "` 63008 if test "x$has_space" != x; then 63009 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 63010 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 63011 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 63012 fi 63013 63014 # Use eval to expand a potential ~ 63015 eval path="$path" 63016 if test ! -f "$path" && test ! -d "$path"; then 63017 as_fn_error $? "The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 63018 fi 63019 63020 if test -d "$path"; then 63021 POTENTIAL_FREETYPE_LIB_PATH="`cd "$path"; $THEPWDCMD -L`" 63022 else 63023 dir="`$DIRNAME "$path"`" 63024 base="`$BASENAME "$path"`" 63025 POTENTIAL_FREETYPE_LIB_PATH="`cd "$dir"; $THEPWDCMD -L`/$base" 63026 fi 63027 fi 63028 fi 63029 63030 63031 FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH" 63032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype includes" >&5 63033 $as_echo_n "checking for freetype includes... " >&6; } 63034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_INCLUDE_PATH" >&5 63035 $as_echo "$FREETYPE_INCLUDE_PATH" >&6; } 63036 FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH" 63037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype libraries" >&5 63038 $as_echo_n "checking for freetype libraries... " >&6; } 63039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_LIB_PATH" >&5 63040 $as_echo "$FREETYPE_LIB_PATH" >&6; } 63041 fi 63042 63043 fi 63044 fi 63045 fi 63046 fi 63047 fi # end check in well-known locations 63048 63049 if test "x$FOUND_FREETYPE" != xyes; then 63050 63051 # Print a helpful message on how to acquire the necessary build dependency. 63052 # freetype is the help tag: freetype, cups, alsa etc 63053 MISSING_DEPENDENCY=freetype 63054 63055 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 63056 cygwin_help $MISSING_DEPENDENCY 63057 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 63058 msys_help $MISSING_DEPENDENCY 63059 else 63060 PKGHANDLER_COMMAND= 63061 63062 case $PKGHANDLER in 63063 apt-get) 63064 apt_help $MISSING_DEPENDENCY ;; 63065 yum) 63066 yum_help $MISSING_DEPENDENCY ;; 63067 port) 63068 port_help $MISSING_DEPENDENCY ;; 63069 pkgutil) 63070 pkgutil_help $MISSING_DEPENDENCY ;; 63071 pkgadd) 63072 pkgadd_help $MISSING_DEPENDENCY ;; 63073 esac 63074 63075 if test "x$PKGHANDLER_COMMAND" != x; then 63076 HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'." 63077 fi 63078 fi 63079 63080 as_fn_error $? "Could not find freetype! $HELP_MSG " "$LINENO" 5 63081 fi 63082 fi # end user specified settings 63083 63084 # Set FREETYPE_CFLAGS, _LIBS and _LIB_PATH from include and lib dir. 63085 if test "x$FREETYPE_CFLAGS" = x; then 63086 63087 # Only process if variable expands to non-empty 63088 63089 if test "x$FREETYPE_INCLUDE_PATH" != x; then 63090 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 63091 63092 # Input might be given as Windows format, start by converting to 63093 # unix format. 63094 path="$FREETYPE_INCLUDE_PATH" 63095 new_path=`$CYGPATH -u "$path"` 63096 63097 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 63098 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 63099 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 63100 # "foo.exe" is OK but "foo" is an error. 63101 # 63102 # This test is therefore slightly more accurate than "test -f" to check for file precense. 63103 # It is also a way to make sure we got the proper file name for the real test later on. 63104 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 63105 if test "x$test_shortpath" = x; then 63106 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 63107 $as_echo "$as_me: The path of FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 63108 as_fn_error $? "Cannot locate the the path of FREETYPE_INCLUDE_PATH" "$LINENO" 5 63109 fi 63110 63111 # Call helper function which possibly converts this using DOS-style short mode. 63112 # If so, the updated path is stored in $new_path. 63113 63114 input_path="$new_path" 63115 # Check if we need to convert this using DOS-style short mode. If the path 63116 # contains just simple characters, use it. Otherwise (spaces, weird characters), 63117 # take no chances and rewrite it. 63118 # Note: m4 eats our [], so we need to use [ and ] instead. 63119 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 63120 if test "x$has_forbidden_chars" != x; then 63121 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 63122 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 63123 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 63124 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 63125 # Going to short mode and back again did indeed matter. Since short mode is 63126 # case insensitive, let's make it lowercase to improve readability. 63127 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 63128 # Now convert it back to Unix-style (cygpath) 63129 input_path=`$CYGPATH -u "$shortmode_path"` 63130 new_path="$input_path" 63131 fi 63132 fi 63133 63134 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 63135 if test "x$test_cygdrive_prefix" = x; then 63136 # As a simple fix, exclude /usr/bin since it's not a real path. 63137 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 63138 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 63139 # a path prefixed by /cygdrive for fixpath to work. 63140 new_path="$CYGWIN_ROOT_PATH$input_path" 63141 fi 63142 fi 63143 63144 63145 if test "x$path" != "x$new_path"; then 63146 FREETYPE_INCLUDE_PATH="$new_path" 63147 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 63148 $as_echo "$as_me: Rewriting FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 63149 fi 63150 63151 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 63152 63153 path="$FREETYPE_INCLUDE_PATH" 63154 has_colon=`$ECHO $path | $GREP ^.:` 63155 new_path="$path" 63156 if test "x$has_colon" = x; then 63157 # Not in mixed or Windows style, start by that. 63158 new_path=`cmd //c echo $path` 63159 fi 63160 63161 63162 input_path="$new_path" 63163 # Check if we need to convert this using DOS-style short mode. If the path 63164 # contains just simple characters, use it. Otherwise (spaces, weird characters), 63165 # take no chances and rewrite it. 63166 # Note: m4 eats our [], so we need to use [ and ] instead. 63167 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 63168 if test "x$has_forbidden_chars" != x; then 63169 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 63170 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 63171 fi 63172 63173 63174 windows_path="$new_path" 63175 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 63176 unix_path=`$CYGPATH -u "$windows_path"` 63177 new_path="$unix_path" 63178 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 63179 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 63180 new_path="$unix_path" 63181 fi 63182 63183 if test "x$path" != "x$new_path"; then 63184 FREETYPE_INCLUDE_PATH="$new_path" 63185 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 63186 $as_echo "$as_me: Rewriting FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 63187 fi 63188 63189 # Save the first 10 bytes of this path to the storage, so fixpath can work. 63190 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 63191 63192 else 63193 # We're on a unix platform. Hooray! :) 63194 path="$FREETYPE_INCLUDE_PATH" 63195 has_space=`$ECHO "$path" | $GREP " "` 63196 if test "x$has_space" != x; then 63197 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 63198 $as_echo "$as_me: The path of FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 63199 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 63200 fi 63201 63202 # Use eval to expand a potential ~ 63203 eval path="$path" 63204 if test ! -f "$path" && test ! -d "$path"; then 63205 as_fn_error $? "The path of FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 63206 fi 63207 63208 if test -d "$path"; then 63209 FREETYPE_INCLUDE_PATH="`cd "$path"; $THEPWDCMD -L`" 63210 else 63211 dir="`$DIRNAME "$path"`" 63212 base="`$BASENAME "$path"`" 63213 FREETYPE_INCLUDE_PATH="`cd "$dir"; $THEPWDCMD -L`/$base" 63214 fi 63215 fi 63216 fi 63217 63218 if test -d $FREETYPE_INCLUDE_PATH/freetype2/freetype; then 63219 FREETYPE_CFLAGS="-I$FREETYPE_INCLUDE_PATH/freetype2 -I$FREETYPE_INCLUDE_PATH" 63220 else 63221 FREETYPE_CFLAGS="-I$FREETYPE_INCLUDE_PATH" 63222 fi 63223 fi 63224 63225 if test "x$FREETYPE_LIBS" = x; then 63226 63227 # Only process if variable expands to non-empty 63228 63229 if test "x$FREETYPE_LIB_PATH" != x; then 63230 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 63231 63232 # Input might be given as Windows format, start by converting to 63233 # unix format. 63234 path="$FREETYPE_LIB_PATH" 63235 new_path=`$CYGPATH -u "$path"` 63236 63237 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 63238 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 63239 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 63240 # "foo.exe" is OK but "foo" is an error. 63241 # 63242 # This test is therefore slightly more accurate than "test -f" to check for file precense. 63243 # It is also a way to make sure we got the proper file name for the real test later on. 63244 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 63245 if test "x$test_shortpath" = x; then 63246 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 63247 $as_echo "$as_me: The path of FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 63248 as_fn_error $? "Cannot locate the the path of FREETYPE_LIB_PATH" "$LINENO" 5 63249 fi 63250 63251 # Call helper function which possibly converts this using DOS-style short mode. 63252 # If so, the updated path is stored in $new_path. 63253 63254 input_path="$new_path" 63255 # Check if we need to convert this using DOS-style short mode. If the path 63256 # contains just simple characters, use it. Otherwise (spaces, weird characters), 63257 # take no chances and rewrite it. 63258 # Note: m4 eats our [], so we need to use [ and ] instead. 63259 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 63260 if test "x$has_forbidden_chars" != x; then 63261 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 63262 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 63263 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 63264 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 63265 # Going to short mode and back again did indeed matter. Since short mode is 63266 # case insensitive, let's make it lowercase to improve readability. 63267 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 63268 # Now convert it back to Unix-style (cygpath) 63269 input_path=`$CYGPATH -u "$shortmode_path"` 63270 new_path="$input_path" 63271 fi 63272 fi 63273 63274 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 63275 if test "x$test_cygdrive_prefix" = x; then 63276 # As a simple fix, exclude /usr/bin since it's not a real path. 63277 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 63278 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 63279 # a path prefixed by /cygdrive for fixpath to work. 63280 new_path="$CYGWIN_ROOT_PATH$input_path" 63281 fi 63282 fi 63283 63284 63285 if test "x$path" != "x$new_path"; then 63286 FREETYPE_LIB_PATH="$new_path" 63287 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FREETYPE_LIB_PATH to \"$new_path\"" >&5 63288 $as_echo "$as_me: Rewriting FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 63289 fi 63290 63291 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 63292 63293 path="$FREETYPE_LIB_PATH" 63294 has_colon=`$ECHO $path | $GREP ^.:` 63295 new_path="$path" 63296 if test "x$has_colon" = x; then 63297 # Not in mixed or Windows style, start by that. 63298 new_path=`cmd //c echo $path` 63299 fi 63300 63301 63302 input_path="$new_path" 63303 # Check if we need to convert this using DOS-style short mode. If the path 63304 # contains just simple characters, use it. Otherwise (spaces, weird characters), 63305 # take no chances and rewrite it. 63306 # Note: m4 eats our [], so we need to use [ and ] instead. 63307 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 63308 if test "x$has_forbidden_chars" != x; then 63309 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 63310 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 63311 fi 63312 63313 63314 windows_path="$new_path" 63315 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 63316 unix_path=`$CYGPATH -u "$windows_path"` 63317 new_path="$unix_path" 63318 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 63319 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 63320 new_path="$unix_path" 63321 fi 63322 63323 if test "x$path" != "x$new_path"; then 63324 FREETYPE_LIB_PATH="$new_path" 63325 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FREETYPE_LIB_PATH to \"$new_path\"" >&5 63326 $as_echo "$as_me: Rewriting FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 63327 fi 63328 63329 # Save the first 10 bytes of this path to the storage, so fixpath can work. 63330 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 63331 63332 else 63333 # We're on a unix platform. Hooray! :) 63334 path="$FREETYPE_LIB_PATH" 63335 has_space=`$ECHO "$path" | $GREP " "` 63336 if test "x$has_space" != x; then 63337 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 63338 $as_echo "$as_me: The path of FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 63339 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 63340 fi 63341 63342 # Use eval to expand a potential ~ 63343 eval path="$path" 63344 if test ! -f "$path" && test ! -d "$path"; then 63345 as_fn_error $? "The path of FREETYPE_LIB_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 63346 fi 63347 63348 if test -d "$path"; then 63349 FREETYPE_LIB_PATH="`cd "$path"; $THEPWDCMD -L`" 63350 else 63351 dir="`$DIRNAME "$path"`" 63352 base="`$BASENAME "$path"`" 63353 FREETYPE_LIB_PATH="`cd "$dir"; $THEPWDCMD -L`/$base" 63354 fi 63355 fi 63356 fi 63357 63358 if test "x$OPENJDK_TARGET_OS" = xwindows; then 63359 FREETYPE_LIBS="$FREETYPE_LIB_PATH/$FREETYPE_BASE_NAME.lib" 63360 else 63361 FREETYPE_LIBS="-L$FREETYPE_LIB_PATH -l$FREETYPE_BASE_NAME" 63362 fi 63363 fi 63364 63365 # Try to compile it 63366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can compile and link with freetype" >&5 63367 $as_echo_n "checking if we can compile and link with freetype... " >&6; } 63368 ac_ext=cpp 63369 ac_cpp='$CXXCPP $CPPFLAGS' 63370 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 63371 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 63372 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 63373 63374 PREV_CXXCFLAGS="$CXXFLAGS" 63375 PREV_LIBS="$LIBS" 63376 PREV_CXX="$CXX" 63377 CXXFLAGS="$CXXFLAGS $FREETYPE_CFLAGS" 63378 LIBS="$LIBS $FREETYPE_LIBS" 63379 CXX="$FIXPATH $CXX" 63380 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 63381 /* end confdefs.h. */ 63382 63383 #include<ft2build.h> 63384 #include FT_FREETYPE_H 63385 int main () { 63386 FT_Init_FreeType(NULL); 63387 return 0; 63388 } 63389 63390 _ACEOF 63391 if ac_fn_cxx_try_link "$LINENO"; then : 63392 63393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 63394 $as_echo "yes" >&6; } 63395 63396 else 63397 63398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 63399 $as_echo "no" >&6; } 63400 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not compile and link with freetype. This might be a 32/64-bit mismatch." >&5 63401 $as_echo "$as_me: Could not compile and link with freetype. This might be a 32/64-bit mismatch." >&6;} 63402 { $as_echo "$as_me:${as_lineno-$LINENO}: Using FREETYPE_CFLAGS=$FREETYPE_CFLAGS and FREETYPE_LIBS=$FREETYPE_LIBS" >&5 63403 $as_echo "$as_me: Using FREETYPE_CFLAGS=$FREETYPE_CFLAGS and FREETYPE_LIBS=$FREETYPE_LIBS" >&6;} 63404 63405 63406 # Print a helpful message on how to acquire the necessary build dependency. 63407 # freetype is the help tag: freetype, cups, alsa etc 63408 MISSING_DEPENDENCY=freetype 63409 63410 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 63411 cygwin_help $MISSING_DEPENDENCY 63412 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 63413 msys_help $MISSING_DEPENDENCY 63414 else 63415 PKGHANDLER_COMMAND= 63416 63417 case $PKGHANDLER in 63418 apt-get) 63419 apt_help $MISSING_DEPENDENCY ;; 63420 yum) 63421 yum_help $MISSING_DEPENDENCY ;; 63422 port) 63423 port_help $MISSING_DEPENDENCY ;; 63424 pkgutil) 63425 pkgutil_help $MISSING_DEPENDENCY ;; 63426 pkgadd) 63427 pkgadd_help $MISSING_DEPENDENCY ;; 63428 esac 63429 63430 if test "x$PKGHANDLER_COMMAND" != x; then 63431 HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'." 63432 fi 63433 fi 63434 63435 63436 as_fn_error $? "Can not continue without freetype. $HELP_MSG" "$LINENO" 5 63437 63438 63439 fi 63440 rm -f core conftest.err conftest.$ac_objext \ 63441 conftest$ac_exeext conftest.$ac_ext 63442 CXXCFLAGS="$PREV_CXXFLAGS" 63443 LIBS="$PREV_LIBS" 63444 CXX="$PREV_CXX" 63445 ac_ext=cpp 63446 ac_cpp='$CXXCPP $CPPFLAGS' 63447 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 63448 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 63449 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 63450 63451 63452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we should bundle freetype" >&5 63453 $as_echo_n "checking if we should bundle freetype... " >&6; } 63454 if test "x$BUNDLE_FREETYPE" = xyes; then 63455 FREETYPE_BUNDLE_LIB_PATH="$FREETYPE_LIB_PATH" 63456 fi 63457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUNDLE_FREETYPE" >&5 63458 $as_echo "$BUNDLE_FREETYPE" >&6; } 63459 63460 fi # end freetype needed 63461 63462 63463 63464 63465 63466 63467 63468 # Check whether --with-alsa was given. 63469 if test "${with_alsa+set}" = set; then : 63470 withval=$with_alsa; 63471 fi 63472 63473 63474 # Check whether --with-alsa-include was given. 63475 if test "${with_alsa_include+set}" = set; then : 63476 withval=$with_alsa_include; 63477 fi 63478 63479 63480 # Check whether --with-alsa-lib was given. 63481 if test "${with_alsa_lib+set}" = set; then : 63482 withval=$with_alsa_lib; 63483 fi 63484 63485 63486 if test "x$NEEDS_LIB_ALSA" = xfalse; then 63487 if (test "x${with_alsa}" != x && test "x${with_alsa}" != xno) || \ 63488 (test "x${with_alsa_include}" != x && test "x${with_alsa_include}" != xno) || \ 63489 (test "x${with_alsa_lib}" != x && test "x${with_alsa_lib}" != xno); then 63490 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: alsa not used, so --with-alsa[-*] is ignored" >&5 63491 $as_echo "$as_me: WARNING: alsa not used, so --with-alsa[-*] is ignored" >&2;} 63492 fi 63493 ALSA_CFLAGS= 63494 ALSA_LIBS= 63495 else 63496 ALSA_FOUND=no 63497 63498 if test "x${with_alsa}" = xno || test "x${with_alsa_include}" = xno || test "x${with_alsa_lib}" = xno; then 63499 as_fn_error $? "It is not possible to disable the use of alsa. Remove the --without-alsa option." "$LINENO" 5 63500 fi 63501 63502 if test "x${with_alsa}" != x; then 63503 ALSA_LIBS="-L${with_alsa}/lib -lasound" 63504 ALSA_CFLAGS="-I${with_alsa}/include" 63505 ALSA_FOUND=yes 63506 fi 63507 if test "x${with_alsa_include}" != x; then 63508 ALSA_CFLAGS="-I${with_alsa_include}" 63509 ALSA_FOUND=yes 63510 fi 63511 if test "x${with_alsa_lib}" != x; then 63512 ALSA_LIBS="-L${with_alsa_lib} -lasound" 63513 ALSA_FOUND=yes 63514 fi 63515 # Do not try pkg-config if we have a sysroot set. 63516 if test "x$SYSROOT" = x; then 63517 if test "x$ALSA_FOUND" = xno; then 63518 63519 pkg_failed=no 63520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ALSA" >&5 63521 $as_echo_n "checking for ALSA... " >&6; } 63522 63523 if test -n "$ALSA_CFLAGS"; then 63524 pkg_cv_ALSA_CFLAGS="$ALSA_CFLAGS" 63525 elif test -n "$PKG_CONFIG"; then 63526 if test -n "$PKG_CONFIG" && \ 63527 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"alsa\""; } >&5 63528 ($PKG_CONFIG --exists --print-errors "alsa") 2>&5 63529 ac_status=$? 63530 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 63531 test $ac_status = 0; }; then 63532 pkg_cv_ALSA_CFLAGS=`$PKG_CONFIG --cflags "alsa" 2>/dev/null` 63533 else 63534 pkg_failed=yes 63535 fi 63536 else 63537 pkg_failed=untried 63538 fi 63539 if test -n "$ALSA_LIBS"; then 63540 pkg_cv_ALSA_LIBS="$ALSA_LIBS" 63541 elif test -n "$PKG_CONFIG"; then 63542 if test -n "$PKG_CONFIG" && \ 63543 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"alsa\""; } >&5 63544 ($PKG_CONFIG --exists --print-errors "alsa") 2>&5 63545 ac_status=$? 63546 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 63547 test $ac_status = 0; }; then 63548 pkg_cv_ALSA_LIBS=`$PKG_CONFIG --libs "alsa" 2>/dev/null` 63549 else 63550 pkg_failed=yes 63551 fi 63552 else 63553 pkg_failed=untried 63554 fi 63555 63556 63557 63558 if test $pkg_failed = yes; then 63559 63560 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 63561 _pkg_short_errors_supported=yes 63562 else 63563 _pkg_short_errors_supported=no 63564 fi 63565 if test $_pkg_short_errors_supported = yes; then 63566 ALSA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "alsa" 2>&1` 63567 else 63568 ALSA_PKG_ERRORS=`$PKG_CONFIG --print-errors "alsa" 2>&1` 63569 fi 63570 # Put the nasty error message in config.log where it belongs 63571 echo "$ALSA_PKG_ERRORS" >&5 63572 63573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 63574 $as_echo "no" >&6; } 63575 ALSA_FOUND=no 63576 elif test $pkg_failed = untried; then 63577 ALSA_FOUND=no 63578 else 63579 ALSA_CFLAGS=$pkg_cv_ALSA_CFLAGS 63580 ALSA_LIBS=$pkg_cv_ALSA_LIBS 63581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 63582 $as_echo "yes" >&6; } 63583 ALSA_FOUND=yes 63584 fi 63585 fi 63586 fi 63587 if test "x$ALSA_FOUND" = xno; then 63588 for ac_header in alsa/asoundlib.h 63589 do : 63590 ac_fn_cxx_check_header_mongrel "$LINENO" "alsa/asoundlib.h" "ac_cv_header_alsa_asoundlib_h" "$ac_includes_default" 63591 if test "x$ac_cv_header_alsa_asoundlib_h" = xyes; then : 63592 cat >>confdefs.h <<_ACEOF 63593 #define HAVE_ALSA_ASOUNDLIB_H 1 63594 _ACEOF 63595 63596 ALSA_FOUND=yes 63597 ALSA_CFLAGS=-Iignoreme 63598 ALSA_LIBS=-lasound 63599 DEFAULT_ALSA=yes 63600 63601 else 63602 ALSA_FOUND=no 63603 63604 fi 63605 63606 done 63607 63608 fi 63609 if test "x$ALSA_FOUND" = xno; then 63610 63611 # Print a helpful message on how to acquire the necessary build dependency. 63612 # alsa is the help tag: freetype, cups, alsa etc 63613 MISSING_DEPENDENCY=alsa 63614 63615 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 63616 cygwin_help $MISSING_DEPENDENCY 63617 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 63618 msys_help $MISSING_DEPENDENCY 63619 else 63620 PKGHANDLER_COMMAND= 63621 63622 case $PKGHANDLER in 63623 apt-get) 63624 apt_help $MISSING_DEPENDENCY ;; 63625 yum) 63626 yum_help $MISSING_DEPENDENCY ;; 63627 port) 63628 port_help $MISSING_DEPENDENCY ;; 63629 pkgutil) 63630 pkgutil_help $MISSING_DEPENDENCY ;; 63631 pkgadd) 63632 pkgadd_help $MISSING_DEPENDENCY ;; 63633 esac 63634 63635 if test "x$PKGHANDLER_COMMAND" != x; then 63636 HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'." 63637 fi 63638 fi 63639 63640 as_fn_error $? "Could not find alsa! $HELP_MSG" "$LINENO" 5 63641 fi 63642 fi 63643 63644 63645 63646 63647 63648 63649 # Check whether --with-libffi was given. 63650 if test "${with_libffi+set}" = set; then : 63651 withval=$with_libffi; 63652 fi 63653 63654 63655 # Check whether --with-libffi-include was given. 63656 if test "${with_libffi_include+set}" = set; then : 63657 withval=$with_libffi_include; 63658 fi 63659 63660 63661 # Check whether --with-libffi-lib was given. 63662 if test "${with_libffi_lib+set}" = set; then : 63663 withval=$with_libffi_lib; 63664 fi 63665 63666 63667 if test "x$NEEDS_LIB_FFI" = xfalse; then 63668 if (test "x${with_libffi}" != x && test "x${with_libffi}" != xno) || \ 63669 (test "x${with_libffi_include}" != x && test "x${with_libffi_include}" != xno) || \ 63670 (test "x${with_libffi_lib}" != x && test "x${with_libffi_lib}" != xno); then 63671 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libffi not used, so --with-libffi[-*] is ignored" >&5 63672 $as_echo "$as_me: WARNING: libffi not used, so --with-libffi[-*] is ignored" >&2;} 63673 fi 63674 LIBFFI_CFLAGS= 63675 LIBFFI_LIBS= 63676 else 63677 LIBFFI_FOUND=no 63678 63679 if test "x${with_libffi}" = xno || test "x${with_libffi_include}" = xno || test "x${with_libffi_lib}" = xno; then 63680 as_fn_error $? "It is not possible to disable the use of libffi. Remove the --without-libffi option." "$LINENO" 5 63681 fi 63682 63683 if test "x${with_libffi}" != x; then 63684 LIBFFI_LIBS="-L${with_libffi}/lib -lffi" 63685 LIBFFI_CFLAGS="-I${with_libffi}/include" 63686 LIBFFI_FOUND=yes 63687 fi 63688 if test "x${with_libffi_include}" != x; then 63689 LIBFFI_CFLAGS="-I${with_libffi_include}" 63690 LIBFFI_FOUND=yes 63691 fi 63692 if test "x${with_libffi_lib}" != x; then 63693 LIBFFI_LIBS="-L${with_libffi_lib} -lffi" 63694 LIBFFI_FOUND=yes 63695 fi 63696 # Do not try pkg-config if we have a sysroot set. 63697 if test "x$SYSROOT" = x; then 63698 if test "x$LIBFFI_FOUND" = xno; then 63699 # Figure out LIBFFI_CFLAGS and LIBFFI_LIBS 63700 63701 pkg_failed=no 63702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBFFI" >&5 63703 $as_echo_n "checking for LIBFFI... " >&6; } 63704 63705 if test -n "$LIBFFI_CFLAGS"; then 63706 pkg_cv_LIBFFI_CFLAGS="$LIBFFI_CFLAGS" 63707 elif test -n "$PKG_CONFIG"; then 63708 if test -n "$PKG_CONFIG" && \ 63709 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libffi\""; } >&5 63710 ($PKG_CONFIG --exists --print-errors "libffi") 2>&5 63711 ac_status=$? 63712 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 63713 test $ac_status = 0; }; then 63714 pkg_cv_LIBFFI_CFLAGS=`$PKG_CONFIG --cflags "libffi" 2>/dev/null` 63715 else 63716 pkg_failed=yes 63717 fi 63718 else 63719 pkg_failed=untried 63720 fi 63721 if test -n "$LIBFFI_LIBS"; then 63722 pkg_cv_LIBFFI_LIBS="$LIBFFI_LIBS" 63723 elif test -n "$PKG_CONFIG"; then 63724 if test -n "$PKG_CONFIG" && \ 63725 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libffi\""; } >&5 63726 ($PKG_CONFIG --exists --print-errors "libffi") 2>&5 63727 ac_status=$? 63728 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 63729 test $ac_status = 0; }; then 63730 pkg_cv_LIBFFI_LIBS=`$PKG_CONFIG --libs "libffi" 2>/dev/null` 63731 else 63732 pkg_failed=yes 63733 fi 63734 else 63735 pkg_failed=untried 63736 fi 63737 63738 63739 63740 if test $pkg_failed = yes; then 63741 63742 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 63743 _pkg_short_errors_supported=yes 63744 else 63745 _pkg_short_errors_supported=no 63746 fi 63747 if test $_pkg_short_errors_supported = yes; then 63748 LIBFFI_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libffi" 2>&1` 63749 else 63750 LIBFFI_PKG_ERRORS=`$PKG_CONFIG --print-errors "libffi" 2>&1` 63751 fi 63752 # Put the nasty error message in config.log where it belongs 63753 echo "$LIBFFI_PKG_ERRORS" >&5 63754 63755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 63756 $as_echo "no" >&6; } 63757 LIBFFI_FOUND=no 63758 elif test $pkg_failed = untried; then 63759 LIBFFI_FOUND=no 63760 else 63761 LIBFFI_CFLAGS=$pkg_cv_LIBFFI_CFLAGS 63762 LIBFFI_LIBS=$pkg_cv_LIBFFI_LIBS 63763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 63764 $as_echo "yes" >&6; } 63765 LIBFFI_FOUND=yes 63766 fi 63767 fi 63768 fi 63769 if test "x$LIBFFI_FOUND" = xno; then 63770 for ac_header in ffi.h 63771 do : 63772 ac_fn_cxx_check_header_mongrel "$LINENO" "ffi.h" "ac_cv_header_ffi_h" "$ac_includes_default" 63773 if test "x$ac_cv_header_ffi_h" = xyes; then : 63774 cat >>confdefs.h <<_ACEOF 63775 #define HAVE_FFI_H 1 63776 _ACEOF 63777 63778 LIBFFI_FOUND=yes 63779 LIBFFI_CFLAGS= 63780 LIBFFI_LIBS=-lffi 63781 63782 else 63783 LIBFFI_FOUND=no 63784 63785 fi 63786 63787 done 63788 63789 fi 63790 if test "x$LIBFFI_FOUND" = xno; then 63791 63792 # Print a helpful message on how to acquire the necessary build dependency. 63793 # ffi is the help tag: freetype, cups, alsa etc 63794 MISSING_DEPENDENCY=ffi 63795 63796 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 63797 cygwin_help $MISSING_DEPENDENCY 63798 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 63799 msys_help $MISSING_DEPENDENCY 63800 else 63801 PKGHANDLER_COMMAND= 63802 63803 case $PKGHANDLER in 63804 apt-get) 63805 apt_help $MISSING_DEPENDENCY ;; 63806 yum) 63807 yum_help $MISSING_DEPENDENCY ;; 63808 port) 63809 port_help $MISSING_DEPENDENCY ;; 63810 pkgutil) 63811 pkgutil_help $MISSING_DEPENDENCY ;; 63812 pkgadd) 63813 pkgadd_help $MISSING_DEPENDENCY ;; 63814 esac 63815 63816 if test "x$PKGHANDLER_COMMAND" != x; then 63817 HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'." 63818 fi 63819 fi 63820 63821 as_fn_error $? "Could not find libffi! $HELP_MSG" "$LINENO" 5 63822 fi 63823 63824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libffi works" >&5 63825 $as_echo_n "checking if libffi works... " >&6; } 63826 ac_ext=c 63827 ac_cpp='$CPP $CPPFLAGS' 63828 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 63829 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 63830 ac_compiler_gnu=$ac_cv_c_compiler_gnu 63831 63832 OLD_CFLAGS="$CFLAGS" 63833 CFLAGS="$CFLAGS $LIBFFI_CFLAGS" 63834 OLD_LIBS="$LIBS" 63835 LIBS="$LIBS $LIBFFI_LIBS" 63836 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 63837 /* end confdefs.h. */ 63838 #include <ffi.h> 63839 int 63840 main () 63841 { 63842 63843 ffi_call(NULL, NULL, NULL, NULL); 63844 return 0; 63845 63846 ; 63847 return 0; 63848 } 63849 _ACEOF 63850 if ac_fn_c_try_link "$LINENO"; then : 63851 LIBFFI_WORKS=yes 63852 else 63853 LIBFFI_WORKS=no 63854 63855 fi 63856 rm -f core conftest.err conftest.$ac_objext \ 63857 conftest$ac_exeext conftest.$ac_ext 63858 CFLAGS="$OLD_CFLAGS" 63859 LIBS="$OLD_LIBS" 63860 ac_ext=cpp 63861 ac_cpp='$CXXCPP $CPPFLAGS' 63862 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 63863 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 63864 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 63865 63866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBFFI_WORKS" >&5 63867 $as_echo "$LIBFFI_WORKS" >&6; } 63868 63869 if test "x$LIBFFI_WORKS" = xno; then 63870 63871 # Print a helpful message on how to acquire the necessary build dependency. 63872 # ffi is the help tag: freetype, cups, alsa etc 63873 MISSING_DEPENDENCY=ffi 63874 63875 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 63876 cygwin_help $MISSING_DEPENDENCY 63877 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 63878 msys_help $MISSING_DEPENDENCY 63879 else 63880 PKGHANDLER_COMMAND= 63881 63882 case $PKGHANDLER in 63883 apt-get) 63884 apt_help $MISSING_DEPENDENCY ;; 63885 yum) 63886 yum_help $MISSING_DEPENDENCY ;; 63887 port) 63888 port_help $MISSING_DEPENDENCY ;; 63889 pkgutil) 63890 pkgutil_help $MISSING_DEPENDENCY ;; 63891 pkgadd) 63892 pkgadd_help $MISSING_DEPENDENCY ;; 63893 esac 63894 63895 if test "x$PKGHANDLER_COMMAND" != x; then 63896 HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'." 63897 fi 63898 fi 63899 63900 as_fn_error $? "Found libffi but could not link and compile with it. $HELP_MSG" "$LINENO" 5 63901 fi 63902 fi 63903 63904 63905 63906 63907 63908 if [[ " $JVM_VARIANTS " =~ " zeroshark " ]] ; then 63909 # Extract the first word of "llvm-config", so it can be a program name with args. 63910 set dummy llvm-config; ac_word=$2 63911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 63912 $as_echo_n "checking for $ac_word... " >&6; } 63913 if ${ac_cv_prog_LLVM_CONFIG+:} false; then : 63914 $as_echo_n "(cached) " >&6 63915 else 63916 if test -n "$LLVM_CONFIG"; then 63917 ac_cv_prog_LLVM_CONFIG="$LLVM_CONFIG" # Let the user override the test. 63918 else 63919 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 63920 for as_dir in $PATH 63921 do 63922 IFS=$as_save_IFS 63923 test -z "$as_dir" && as_dir=. 63924 for ac_exec_ext in '' $ac_executable_extensions; do 63925 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 63926 ac_cv_prog_LLVM_CONFIG="llvm-config" 63927 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 63928 break 2 63929 fi 63930 done 63931 done 63932 IFS=$as_save_IFS 63933 63934 fi 63935 fi 63936 LLVM_CONFIG=$ac_cv_prog_LLVM_CONFIG 63937 if test -n "$LLVM_CONFIG"; then 63938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LLVM_CONFIG" >&5 63939 $as_echo "$LLVM_CONFIG" >&6; } 63940 else 63941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 63942 $as_echo "no" >&6; } 63943 fi 63944 63945 63946 63947 if test "x$LLVM_CONFIG" != xllvm-config; then 63948 as_fn_error $? "llvm-config not found in $PATH." "$LINENO" 5 63949 fi 63950 63951 llvm_components="jit mcjit engine nativecodegen native" 63952 unset LLVM_CFLAGS 63953 for flag in $("$LLVM_CONFIG" --cxxflags); do 63954 if echo "${flag}" | grep -q '^-[ID]'; then 63955 if test "${flag}" != "-D_DEBUG" ; then 63956 if test "${LLVM_CFLAGS}" != "" ; then 63957 LLVM_CFLAGS="${LLVM_CFLAGS} " 63958 fi 63959 LLVM_CFLAGS="${LLVM_CFLAGS}${flag}" 63960 fi 63961 fi 63962 done 63963 llvm_version=$("${LLVM_CONFIG}" --version | $SED 's/\.//; s/svn.*//') 63964 LLVM_CFLAGS="${LLVM_CFLAGS} -DSHARK_LLVM_VERSION=${llvm_version}" 63965 63966 unset LLVM_LDFLAGS 63967 for flag in $("${LLVM_CONFIG}" --ldflags); do 63968 if echo "${flag}" | grep -q '^-L'; then 63969 if test "${LLVM_LDFLAGS}" != ""; then 63970 LLVM_LDFLAGS="${LLVM_LDFLAGS} " 63971 fi 63972 LLVM_LDFLAGS="${LLVM_LDFLAGS}${flag}" 63973 fi 63974 done 63975 63976 unset LLVM_LIBS 63977 for flag in $("${LLVM_CONFIG}" --libs ${llvm_components}); do 63978 if echo "${flag}" | grep -q '^-l'; then 63979 if test "${LLVM_LIBS}" != ""; then 63980 LLVM_LIBS="${LLVM_LIBS} " 63981 fi 63982 LLVM_LIBS="${LLVM_LIBS}${flag}" 63983 fi 63984 done 63985 63986 # Due to https://llvm.org/bugs/show_bug.cgi?id=16902, llvm does not 63987 # always properly detect -ltinfo 63988 LLVM_LIBS="${LLVM_LIBS} -ltinfo" 63989 63990 63991 63992 63993 fi 63994 63995 63996 63997 # Check whether --with-libjpeg was given. 63998 if test "${with_libjpeg+set}" = set; then : 63999 withval=$with_libjpeg; 64000 fi 64001 64002 64003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for which libjpeg to use" >&5 64004 $as_echo_n "checking for which libjpeg to use... " >&6; } 64005 # default is bundled 64006 DEFAULT_LIBJPEG=bundled 64007 # if user didn't specify, use DEFAULT_LIBJPEG 64008 if test "x${with_libjpeg}" = "x"; then 64009 with_libjpeg=${DEFAULT_LIBJPEG} 64010 fi 64011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_libjpeg}" >&5 64012 $as_echo "${with_libjpeg}" >&6; } 64013 64014 if test "x${with_libjpeg}" = "xbundled"; then 64015 USE_EXTERNAL_LIBJPEG=false 64016 elif test "x${with_libjpeg}" = "xsystem"; then 64017 ac_fn_cxx_check_header_mongrel "$LINENO" "jpeglib.h" "ac_cv_header_jpeglib_h" "$ac_includes_default" 64018 if test "x$ac_cv_header_jpeglib_h" = xyes; then : 64019 64020 else 64021 as_fn_error $? "--with-libjpeg=system specified, but jpeglib.h not found!" "$LINENO" 5 64022 fi 64023 64024 64025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jpeg_CreateDecompress in -ljpeg" >&5 64026 $as_echo_n "checking for jpeg_CreateDecompress in -ljpeg... " >&6; } 64027 if ${ac_cv_lib_jpeg_jpeg_CreateDecompress+:} false; then : 64028 $as_echo_n "(cached) " >&6 64029 else 64030 ac_check_lib_save_LIBS=$LIBS 64031 LIBS="-ljpeg $LIBS" 64032 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 64033 /* end confdefs.h. */ 64034 64035 /* Override any GCC internal prototype to avoid an error. 64036 Use char because int might match the return type of a GCC 64037 builtin and then its argument prototype would still apply. */ 64038 #ifdef __cplusplus 64039 extern "C" 64040 #endif 64041 char jpeg_CreateDecompress (); 64042 int 64043 main () 64044 { 64045 return jpeg_CreateDecompress (); 64046 ; 64047 return 0; 64048 } 64049 _ACEOF 64050 if ac_fn_cxx_try_link "$LINENO"; then : 64051 ac_cv_lib_jpeg_jpeg_CreateDecompress=yes 64052 else 64053 ac_cv_lib_jpeg_jpeg_CreateDecompress=no 64054 fi 64055 rm -f core conftest.err conftest.$ac_objext \ 64056 conftest$ac_exeext conftest.$ac_ext 64057 LIBS=$ac_check_lib_save_LIBS 64058 fi 64059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jpeg_jpeg_CreateDecompress" >&5 64060 $as_echo "$ac_cv_lib_jpeg_jpeg_CreateDecompress" >&6; } 64061 if test "x$ac_cv_lib_jpeg_jpeg_CreateDecompress" = xyes; then : 64062 cat >>confdefs.h <<_ACEOF 64063 #define HAVE_LIBJPEG 1 64064 _ACEOF 64065 64066 LIBS="-ljpeg $LIBS" 64067 64068 else 64069 as_fn_error $? "--with-libjpeg=system specified, but no libjpeg found" "$LINENO" 5 64070 fi 64071 64072 64073 USE_EXTERNAL_LIBJPEG=true 64074 else 64075 as_fn_error $? "Invalid use of --with-libjpeg: ${with_libjpeg}, use 'system' or 'bundled'" "$LINENO" 5 64076 fi 64077 64078 64079 64080 64081 64082 # Check whether --with-giflib was given. 64083 if test "${with_giflib+set}" = set; then : 64084 withval=$with_giflib; 64085 fi 64086 64087 64088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for which giflib to use" >&5 64089 $as_echo_n "checking for which giflib to use... " >&6; } 64090 # default is bundled 64091 DEFAULT_GIFLIB=bundled 64092 # if user didn't specify, use DEFAULT_GIFLIB 64093 if test "x${with_giflib}" = "x"; then 64094 with_giflib=${DEFAULT_GIFLIB} 64095 fi 64096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_giflib}" >&5 64097 $as_echo "${with_giflib}" >&6; } 64098 64099 if test "x${with_giflib}" = "xbundled"; then 64100 USE_EXTERNAL_LIBGIF=false 64101 elif test "x${with_giflib}" = "xsystem"; then 64102 ac_fn_cxx_check_header_mongrel "$LINENO" "gif_lib.h" "ac_cv_header_gif_lib_h" "$ac_includes_default" 64103 if test "x$ac_cv_header_gif_lib_h" = xyes; then : 64104 64105 else 64106 as_fn_error $? "--with-giflib=system specified, but gif_lib.h not found!" "$LINENO" 5 64107 fi 64108 64109 64110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DGifGetCode in -lgif" >&5 64111 $as_echo_n "checking for DGifGetCode in -lgif... " >&6; } 64112 if ${ac_cv_lib_gif_DGifGetCode+:} false; then : 64113 $as_echo_n "(cached) " >&6 64114 else 64115 ac_check_lib_save_LIBS=$LIBS 64116 LIBS="-lgif $LIBS" 64117 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 64118 /* end confdefs.h. */ 64119 64120 /* Override any GCC internal prototype to avoid an error. 64121 Use char because int might match the return type of a GCC 64122 builtin and then its argument prototype would still apply. */ 64123 #ifdef __cplusplus 64124 extern "C" 64125 #endif 64126 char DGifGetCode (); 64127 int 64128 main () 64129 { 64130 return DGifGetCode (); 64131 ; 64132 return 0; 64133 } 64134 _ACEOF 64135 if ac_fn_cxx_try_link "$LINENO"; then : 64136 ac_cv_lib_gif_DGifGetCode=yes 64137 else 64138 ac_cv_lib_gif_DGifGetCode=no 64139 fi 64140 rm -f core conftest.err conftest.$ac_objext \ 64141 conftest$ac_exeext conftest.$ac_ext 64142 LIBS=$ac_check_lib_save_LIBS 64143 fi 64144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gif_DGifGetCode" >&5 64145 $as_echo "$ac_cv_lib_gif_DGifGetCode" >&6; } 64146 if test "x$ac_cv_lib_gif_DGifGetCode" = xyes; then : 64147 cat >>confdefs.h <<_ACEOF 64148 #define HAVE_LIBGIF 1 64149 _ACEOF 64150 64151 LIBS="-lgif $LIBS" 64152 64153 else 64154 as_fn_error $? "--with-giflib=system specified, but no giflib found!" "$LINENO" 5 64155 fi 64156 64157 64158 USE_EXTERNAL_LIBGIF=true 64159 else 64160 as_fn_error $? "Invalid value of --with-giflib: ${with_giflib}, use 'system' or 'bundled'" "$LINENO" 5 64161 fi 64162 64163 64164 64165 64166 64167 # Check whether --with-libpng was given. 64168 if test "${with_libpng+set}" = set; then : 64169 withval=$with_libpng; 64170 fi 64171 64172 64173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for which libpng to use" >&5 64174 $as_echo_n "checking for which libpng to use... " >&6; } 64175 64176 # default is bundled 64177 DEFAULT_LIBPNG=bundled 64178 # if user didn't specify, use DEFAULT_LIBPNG 64179 if test "x${with_libpng}" = "x"; then 64180 with_libpng=${DEFAULT_LIBPNG} 64181 fi 64182 64183 if test "x${with_libpng}" = "xbundled"; then 64184 USE_EXTERNAL_LIBPNG=false 64185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: bundled" >&5 64186 $as_echo "bundled" >&6; } 64187 elif test "x${with_libpng}" = "xsystem"; then 64188 64189 pkg_failed=no 64190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PNG" >&5 64191 $as_echo_n "checking for PNG... " >&6; } 64192 64193 if test -n "$PNG_CFLAGS"; then 64194 pkg_cv_PNG_CFLAGS="$PNG_CFLAGS" 64195 elif test -n "$PKG_CONFIG"; then 64196 if test -n "$PKG_CONFIG" && \ 64197 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpng\""; } >&5 64198 ($PKG_CONFIG --exists --print-errors "libpng") 2>&5 64199 ac_status=$? 64200 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 64201 test $ac_status = 0; }; then 64202 pkg_cv_PNG_CFLAGS=`$PKG_CONFIG --cflags "libpng" 2>/dev/null` 64203 else 64204 pkg_failed=yes 64205 fi 64206 else 64207 pkg_failed=untried 64208 fi 64209 if test -n "$PNG_LIBS"; then 64210 pkg_cv_PNG_LIBS="$PNG_LIBS" 64211 elif test -n "$PKG_CONFIG"; then 64212 if test -n "$PKG_CONFIG" && \ 64213 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpng\""; } >&5 64214 ($PKG_CONFIG --exists --print-errors "libpng") 2>&5 64215 ac_status=$? 64216 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 64217 test $ac_status = 0; }; then 64218 pkg_cv_PNG_LIBS=`$PKG_CONFIG --libs "libpng" 2>/dev/null` 64219 else 64220 pkg_failed=yes 64221 fi 64222 else 64223 pkg_failed=untried 64224 fi 64225 64226 64227 64228 if test $pkg_failed = yes; then 64229 64230 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 64231 _pkg_short_errors_supported=yes 64232 else 64233 _pkg_short_errors_supported=no 64234 fi 64235 if test $_pkg_short_errors_supported = yes; then 64236 PNG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libpng" 2>&1` 64237 else 64238 PNG_PKG_ERRORS=`$PKG_CONFIG --print-errors "libpng" 2>&1` 64239 fi 64240 # Put the nasty error message in config.log where it belongs 64241 echo "$PNG_PKG_ERRORS" >&5 64242 64243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 64244 $as_echo "no" >&6; } 64245 LIBPNG_FOUND=no 64246 elif test $pkg_failed = untried; then 64247 LIBPNG_FOUND=no 64248 else 64249 PNG_CFLAGS=$pkg_cv_PNG_CFLAGS 64250 PNG_LIBS=$pkg_cv_PNG_LIBS 64251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 64252 $as_echo "yes" >&6; } 64253 LIBPNG_FOUND=yes 64254 fi 64255 if test "x${LIBPNG_FOUND}" = "xyes"; then 64256 USE_EXTERNAL_LIBPNG=true 64257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: system" >&5 64258 $as_echo "system" >&6; } 64259 else 64260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: system not found" >&5 64261 $as_echo "system not found" >&6; } 64262 as_fn_error $? "--with-libpng=system specified, but no libpng found!" "$LINENO" 5 64263 fi 64264 else 64265 as_fn_error $? "Invalid value of --with-libpng: ${with_libpng}, use 'system' or 'bundled'" "$LINENO" 5 64266 fi 64267 64268 64269 64270 64271 64272 # Check whether --with-zlib was given. 64273 if test "${with_zlib+set}" = set; then : 64274 withval=$with_zlib; 64275 fi 64276 64277 64278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compress in -lz" >&5 64279 $as_echo_n "checking for compress in -lz... " >&6; } 64280 if ${ac_cv_lib_z_compress+:} false; then : 64281 $as_echo_n "(cached) " >&6 64282 else 64283 ac_check_lib_save_LIBS=$LIBS 64284 LIBS="-lz $LIBS" 64285 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 64286 /* end confdefs.h. */ 64287 64288 /* Override any GCC internal prototype to avoid an error. 64289 Use char because int might match the return type of a GCC 64290 builtin and then its argument prototype would still apply. */ 64291 #ifdef __cplusplus 64292 extern "C" 64293 #endif 64294 char compress (); 64295 int 64296 main () 64297 { 64298 return compress (); 64299 ; 64300 return 0; 64301 } 64302 _ACEOF 64303 if ac_fn_cxx_try_link "$LINENO"; then : 64304 ac_cv_lib_z_compress=yes 64305 else 64306 ac_cv_lib_z_compress=no 64307 fi 64308 rm -f core conftest.err conftest.$ac_objext \ 64309 conftest$ac_exeext conftest.$ac_ext 64310 LIBS=$ac_check_lib_save_LIBS 64311 fi 64312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_compress" >&5 64313 $as_echo "$ac_cv_lib_z_compress" >&6; } 64314 if test "x$ac_cv_lib_z_compress" = xyes; then : 64315 ZLIB_FOUND=yes 64316 else 64317 ZLIB_FOUND=no 64318 fi 64319 64320 64321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for which zlib to use" >&5 64322 $as_echo_n "checking for which zlib to use... " >&6; } 64323 64324 DEFAULT_ZLIB=system 64325 if test "x$OPENJDK_TARGET_OS" = xwindows; then 64326 # On windows default is bundled...on others default is system 64327 DEFAULT_ZLIB=bundled 64328 fi 64329 64330 if test "x${ZLIB_FOUND}" != "xyes"; then 64331 # If we don't find any system...set default to bundled 64332 DEFAULT_ZLIB=bundled 64333 fi 64334 64335 # If user didn't specify, use DEFAULT_ZLIB 64336 if test "x${with_zlib}" = "x"; then 64337 with_zlib=${DEFAULT_ZLIB} 64338 fi 64339 64340 if test "x${with_zlib}" = "xbundled"; then 64341 USE_EXTERNAL_LIBZ=false 64342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: bundled" >&5 64343 $as_echo "bundled" >&6; } 64344 elif test "x${with_zlib}" = "xsystem"; then 64345 if test "x${ZLIB_FOUND}" = "xyes"; then 64346 USE_EXTERNAL_LIBZ=true 64347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: system" >&5 64348 $as_echo "system" >&6; } 64349 else 64350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: system not found" >&5 64351 $as_echo "system not found" >&6; } 64352 as_fn_error $? "--with-zlib=system specified, but no zlib found!" "$LINENO" 5 64353 fi 64354 else 64355 as_fn_error $? "Invalid value for --with-zlib: ${with_zlib}, use 'system' or 'bundled'" "$LINENO" 5 64356 fi 64357 64358 64359 64360 64361 64362 # Check whether --with-lcms was given. 64363 if test "${with_lcms+set}" = set; then : 64364 withval=$with_lcms; 64365 fi 64366 64367 64368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for which lcms to use" >&5 64369 $as_echo_n "checking for which lcms to use... " >&6; } 64370 64371 DEFAULT_LCMS=bundled 64372 # If user didn't specify, use DEFAULT_LCMS 64373 if test "x${with_lcms}" = "x"; then 64374 with_lcms=${DEFAULT_LCMS} 64375 fi 64376 64377 if test "x${with_lcms}" = "xbundled"; then 64378 USE_EXTERNAL_LCMS=false 64379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: bundled" >&5 64380 $as_echo "bundled" >&6; } 64381 elif test "x${with_lcms}" = "xsystem"; then 64382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: system" >&5 64383 $as_echo "system" >&6; } 64384 64385 pkg_failed=no 64386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LCMS" >&5 64387 $as_echo_n "checking for LCMS... " >&6; } 64388 64389 if test -n "$LCMS_CFLAGS"; then 64390 pkg_cv_LCMS_CFLAGS="$LCMS_CFLAGS" 64391 elif test -n "$PKG_CONFIG"; then 64392 if test -n "$PKG_CONFIG" && \ 64393 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lcms2\""; } >&5 64394 ($PKG_CONFIG --exists --print-errors "lcms2") 2>&5 64395 ac_status=$? 64396 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 64397 test $ac_status = 0; }; then 64398 pkg_cv_LCMS_CFLAGS=`$PKG_CONFIG --cflags "lcms2" 2>/dev/null` 64399 else 64400 pkg_failed=yes 64401 fi 64402 else 64403 pkg_failed=untried 64404 fi 64405 if test -n "$LCMS_LIBS"; then 64406 pkg_cv_LCMS_LIBS="$LCMS_LIBS" 64407 elif test -n "$PKG_CONFIG"; then 64408 if test -n "$PKG_CONFIG" && \ 64409 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lcms2\""; } >&5 64410 ($PKG_CONFIG --exists --print-errors "lcms2") 2>&5 64411 ac_status=$? 64412 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 64413 test $ac_status = 0; }; then 64414 pkg_cv_LCMS_LIBS=`$PKG_CONFIG --libs "lcms2" 2>/dev/null` 64415 else 64416 pkg_failed=yes 64417 fi 64418 else 64419 pkg_failed=untried 64420 fi 64421 64422 64423 64424 if test $pkg_failed = yes; then 64425 64426 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 64427 _pkg_short_errors_supported=yes 64428 else 64429 _pkg_short_errors_supported=no 64430 fi 64431 if test $_pkg_short_errors_supported = yes; then 64432 LCMS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "lcms2" 2>&1` 64433 else 64434 LCMS_PKG_ERRORS=`$PKG_CONFIG --print-errors "lcms2" 2>&1` 64435 fi 64436 # Put the nasty error message in config.log where it belongs 64437 echo "$LCMS_PKG_ERRORS" >&5 64438 64439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 64440 $as_echo "no" >&6; } 64441 LCMS_FOUND=no 64442 elif test $pkg_failed = untried; then 64443 LCMS_FOUND=no 64444 else 64445 LCMS_CFLAGS=$pkg_cv_LCMS_CFLAGS 64446 LCMS_LIBS=$pkg_cv_LCMS_LIBS 64447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 64448 $as_echo "yes" >&6; } 64449 LCMS_FOUND=yes 64450 fi 64451 if test "x${LCMS_FOUND}" = "xyes"; then 64452 USE_EXTERNAL_LCMS=true 64453 else 64454 as_fn_error $? "--with-lcms=system specified, but no lcms found!" "$LINENO" 5 64455 fi 64456 else 64457 as_fn_error $? "Invalid value for --with-lcms: ${with_lcms}, use 'system' or 'bundled'" "$LINENO" 5 64458 fi 64459 64460 64461 64462 64463 64464 64465 64466 64467 64468 64469 64470 # Setup libm (the maths library) 64471 if test "x$OPENJDK_TARGET_OS" != "xwindows"; then 64472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cos in -lm" >&5 64473 $as_echo_n "checking for cos in -lm... " >&6; } 64474 if ${ac_cv_lib_m_cos+:} false; then : 64475 $as_echo_n "(cached) " >&6 64476 else 64477 ac_check_lib_save_LIBS=$LIBS 64478 LIBS="-lm $LIBS" 64479 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 64480 /* end confdefs.h. */ 64481 64482 /* Override any GCC internal prototype to avoid an error. 64483 Use char because int might match the return type of a GCC 64484 builtin and then its argument prototype would still apply. */ 64485 #ifdef __cplusplus 64486 extern "C" 64487 #endif 64488 char cos (); 64489 int 64490 main () 64491 { 64492 return cos (); 64493 ; 64494 return 0; 64495 } 64496 _ACEOF 64497 if ac_fn_cxx_try_link "$LINENO"; then : 64498 ac_cv_lib_m_cos=yes 64499 else 64500 ac_cv_lib_m_cos=no 64501 fi 64502 rm -f core conftest.err conftest.$ac_objext \ 64503 conftest$ac_exeext conftest.$ac_ext 64504 LIBS=$ac_check_lib_save_LIBS 64505 fi 64506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_cos" >&5 64507 $as_echo "$ac_cv_lib_m_cos" >&6; } 64508 if test "x$ac_cv_lib_m_cos" = xyes; then : 64509 cat >>confdefs.h <<_ACEOF 64510 #define HAVE_LIBM 1 64511 _ACEOF 64512 64513 LIBS="-lm $LIBS" 64514 64515 else 64516 64517 { $as_echo "$as_me:${as_lineno-$LINENO}: Maths library was not found" >&5 64518 $as_echo "$as_me: Maths library was not found" >&6;} 64519 64520 fi 64521 64522 LIBM="-lm" 64523 else 64524 LIBM="" 64525 fi 64526 64527 64528 # Setup libdl (for dynamic library loading) 64529 save_LIBS="$LIBS" 64530 LIBS="" 64531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 64532 $as_echo_n "checking for dlopen in -ldl... " >&6; } 64533 if ${ac_cv_lib_dl_dlopen+:} false; then : 64534 $as_echo_n "(cached) " >&6 64535 else 64536 ac_check_lib_save_LIBS=$LIBS 64537 LIBS="-ldl $LIBS" 64538 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 64539 /* end confdefs.h. */ 64540 64541 /* Override any GCC internal prototype to avoid an error. 64542 Use char because int might match the return type of a GCC 64543 builtin and then its argument prototype would still apply. */ 64544 #ifdef __cplusplus 64545 extern "C" 64546 #endif 64547 char dlopen (); 64548 int 64549 main () 64550 { 64551 return dlopen (); 64552 ; 64553 return 0; 64554 } 64555 _ACEOF 64556 if ac_fn_cxx_try_link "$LINENO"; then : 64557 ac_cv_lib_dl_dlopen=yes 64558 else 64559 ac_cv_lib_dl_dlopen=no 64560 fi 64561 rm -f core conftest.err conftest.$ac_objext \ 64562 conftest$ac_exeext conftest.$ac_ext 64563 LIBS=$ac_check_lib_save_LIBS 64564 fi 64565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 64566 $as_echo "$ac_cv_lib_dl_dlopen" >&6; } 64567 if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 64568 cat >>confdefs.h <<_ACEOF 64569 #define HAVE_LIBDL 1 64570 _ACEOF 64571 64572 LIBS="-ldl $LIBS" 64573 64574 fi 64575 64576 LIBDL="$LIBS" 64577 64578 LIBS="$save_LIBS" 64579 64580 # Deprecated libraries, keep the flags for backwards compatibility 64581 if test "x$OPENJDK_TARGET_OS" = "xwindows"; then 64582 64583 64584 # Check whether --with-dxsdk was given. 64585 if test "${with_dxsdk+set}" = set; then : 64586 withval=$with_dxsdk; { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Option --with-dxsdk is deprecated and will be ignored." >&5 64587 $as_echo "$as_me: WARNING: Option --with-dxsdk is deprecated and will be ignored." >&2;} 64588 fi 64589 64590 64591 64592 64593 # Check whether --with-dxsdk-lib was given. 64594 if test "${with_dxsdk_lib+set}" = set; then : 64595 withval=$with_dxsdk_lib; { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Option --with-dxsdk-lib is deprecated and will be ignored." >&5 64596 $as_echo "$as_me: WARNING: Option --with-dxsdk-lib is deprecated and will be ignored." >&2;} 64597 fi 64598 64599 64600 64601 64602 # Check whether --with-dxsdk-include was given. 64603 if test "${with_dxsdk_include+set}" = set; then : 64604 withval=$with_dxsdk_include; { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Option --with-dxsdk-include is deprecated and will be ignored." >&5 64605 $as_echo "$as_me: WARNING: Option --with-dxsdk-include is deprecated and will be ignored." >&2;} 64606 fi 64607 64608 64609 fi 64610 64611 # Control if libzip can use mmap. Available for purposes of overriding. 64612 LIBZIP_CAN_USE_MMAP=true 64613 64614 64615 64616 if test "$OPENJDK_TARGET_OS" = "solaris" && test "x$BUILD_GTEST" = "xtrue"; then 64617 # Find the root of the Solaris Studio installation from the compiler path 64618 SOLARIS_STUDIO_DIR="$(dirname $CC)/.." 64619 STLPORT_LIB="$SOLARIS_STUDIO_DIR/lib/stlport4$OPENJDK_TARGET_CPU_ISADIR/libstlport.so.1" 64620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libstlport.so.1" >&5 64621 $as_echo_n "checking for libstlport.so.1... " >&6; } 64622 if ! test -f "$STLPORT_LIB" && test "x$OPENJDK_TARGET_CPU_ISADIR" = "x/sparcv9"; then 64623 # SS12u3 has libstlport under 'stlport4/v9' instead of 'stlport4/sparcv9' 64624 STLPORT_LIB="$SOLARIS_STUDIO_DIR/lib/stlport4/v9/libstlport.so.1" 64625 fi 64626 if test -f "$STLPORT_LIB"; then 64627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, $STLPORT_LIB" >&5 64628 $as_echo "yes, $STLPORT_LIB" >&6; } 64629 64630 # Only process if variable expands to non-empty 64631 64632 if test "x$STLPORT_LIB" != x; then 64633 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 64634 64635 # Input might be given as Windows format, start by converting to 64636 # unix format. 64637 path="$STLPORT_LIB" 64638 new_path=`$CYGPATH -u "$path"` 64639 64640 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 64641 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 64642 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 64643 # "foo.exe" is OK but "foo" is an error. 64644 # 64645 # This test is therefore slightly more accurate than "test -f" to check for file precense. 64646 # It is also a way to make sure we got the proper file name for the real test later on. 64647 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 64648 if test "x$test_shortpath" = x; then 64649 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of STLPORT_LIB, which resolves as \"$path\", is invalid." >&5 64650 $as_echo "$as_me: The path of STLPORT_LIB, which resolves as \"$path\", is invalid." >&6;} 64651 as_fn_error $? "Cannot locate the the path of STLPORT_LIB" "$LINENO" 5 64652 fi 64653 64654 # Call helper function which possibly converts this using DOS-style short mode. 64655 # If so, the updated path is stored in $new_path. 64656 64657 input_path="$new_path" 64658 # Check if we need to convert this using DOS-style short mode. If the path 64659 # contains just simple characters, use it. Otherwise (spaces, weird characters), 64660 # take no chances and rewrite it. 64661 # Note: m4 eats our [], so we need to use [ and ] instead. 64662 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 64663 if test "x$has_forbidden_chars" != x; then 64664 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 64665 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 64666 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 64667 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 64668 # Going to short mode and back again did indeed matter. Since short mode is 64669 # case insensitive, let's make it lowercase to improve readability. 64670 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 64671 # Now convert it back to Unix-style (cygpath) 64672 input_path=`$CYGPATH -u "$shortmode_path"` 64673 new_path="$input_path" 64674 fi 64675 fi 64676 64677 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 64678 if test "x$test_cygdrive_prefix" = x; then 64679 # As a simple fix, exclude /usr/bin since it's not a real path. 64680 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 64681 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 64682 # a path prefixed by /cygdrive for fixpath to work. 64683 new_path="$CYGWIN_ROOT_PATH$input_path" 64684 fi 64685 fi 64686 64687 64688 if test "x$path" != "x$new_path"; then 64689 STLPORT_LIB="$new_path" 64690 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting STLPORT_LIB to \"$new_path\"" >&5 64691 $as_echo "$as_me: Rewriting STLPORT_LIB to \"$new_path\"" >&6;} 64692 fi 64693 64694 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 64695 64696 path="$STLPORT_LIB" 64697 has_colon=`$ECHO $path | $GREP ^.:` 64698 new_path="$path" 64699 if test "x$has_colon" = x; then 64700 # Not in mixed or Windows style, start by that. 64701 new_path=`cmd //c echo $path` 64702 fi 64703 64704 64705 input_path="$new_path" 64706 # Check if we need to convert this using DOS-style short mode. If the path 64707 # contains just simple characters, use it. Otherwise (spaces, weird characters), 64708 # take no chances and rewrite it. 64709 # Note: m4 eats our [], so we need to use [ and ] instead. 64710 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 64711 if test "x$has_forbidden_chars" != x; then 64712 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 64713 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 64714 fi 64715 64716 64717 windows_path="$new_path" 64718 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 64719 unix_path=`$CYGPATH -u "$windows_path"` 64720 new_path="$unix_path" 64721 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 64722 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 64723 new_path="$unix_path" 64724 fi 64725 64726 if test "x$path" != "x$new_path"; then 64727 STLPORT_LIB="$new_path" 64728 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting STLPORT_LIB to \"$new_path\"" >&5 64729 $as_echo "$as_me: Rewriting STLPORT_LIB to \"$new_path\"" >&6;} 64730 fi 64731 64732 # Save the first 10 bytes of this path to the storage, so fixpath can work. 64733 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 64734 64735 else 64736 # We're on a unix platform. Hooray! :) 64737 path="$STLPORT_LIB" 64738 has_space=`$ECHO "$path" | $GREP " "` 64739 if test "x$has_space" != x; then 64740 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of STLPORT_LIB, which resolves as \"$path\", is invalid." >&5 64741 $as_echo "$as_me: The path of STLPORT_LIB, which resolves as \"$path\", is invalid." >&6;} 64742 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 64743 fi 64744 64745 # Use eval to expand a potential ~ 64746 eval path="$path" 64747 if test ! -f "$path" && test ! -d "$path"; then 64748 as_fn_error $? "The path of STLPORT_LIB, which resolves as \"$path\", is not found." "$LINENO" 5 64749 fi 64750 64751 if test -d "$path"; then 64752 STLPORT_LIB="`cd "$path"; $THEPWDCMD -L`" 64753 else 64754 dir="`$DIRNAME "$path"`" 64755 base="`$BASENAME "$path"`" 64756 STLPORT_LIB="`cd "$dir"; $THEPWDCMD -L`/$base" 64757 fi 64758 fi 64759 fi 64760 64761 else 64762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, not found at $STLPORT_LIB" >&5 64763 $as_echo "no, not found at $STLPORT_LIB" >&6; } 64764 as_fn_error $? "Failed to find libstlport.so.1, cannot build Hotspot gtests" "$LINENO" 5 64765 fi 64766 64767 fi 64768 64769 64770 64771 64772 64773 64774 64775 64776 64777 64778 64779 64780 64781 64782 ############################################################################### 64783 # 64784 # We need to do some final tweaking, when everything else is done. 64785 # 64786 ############################################################################### 64787 64788 64789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if elliptic curve crypto implementation is present" >&5 64790 $as_echo_n "checking if elliptic curve crypto implementation is present... " >&6; } 64791 64792 if test -d "${SRC_ROOT}/jdk/src/jdk.crypto.ec/share/native/libsunec/impl"; then 64793 ENABLE_INTREE_EC=yes 64794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 64795 $as_echo "yes" >&6; } 64796 else 64797 ENABLE_INTREE_EC=no 64798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 64799 $as_echo "no" >&6; } 64800 fi 64801 64802 64803 64804 64805 # Check whether --enable-jtreg-failure-handler was given. 64806 if test "${enable_jtreg_failure_handler+set}" = set; then : 64807 enableval=$enable_jtreg_failure_handler; 64808 fi 64809 64810 64811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if jtreg failure handler should be built" >&5 64812 $as_echo_n "checking if jtreg failure handler should be built... " >&6; } 64813 64814 if test "x$enable_jtreg_failure_handler" = "xyes"; then 64815 if test "x$JT_HOME" = "x"; then 64816 as_fn_error $? "Cannot enable jtreg failure handler without jtreg." "$LINENO" 5 64817 else 64818 BUILD_FAILURE_HANDLER=true 64819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, forced" >&5 64820 $as_echo "yes, forced" >&6; } 64821 fi 64822 elif test "x$enable_jtreg_failure_handler" = "xno"; then 64823 BUILD_FAILURE_HANDLER=false 64824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, forced" >&5 64825 $as_echo "no, forced" >&6; } 64826 elif test "x$enable_jtreg_failure_handler" = "xauto" \ 64827 || test "x$enable_jtreg_failure_handler" = "x"; then 64828 if test "x$JT_HOME" = "x"; then 64829 BUILD_FAILURE_HANDLER=false 64830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, missing jtreg" >&5 64831 $as_echo "no, missing jtreg" >&6; } 64832 else 64833 BUILD_FAILURE_HANDLER=true 64834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, jtreg present" >&5 64835 $as_echo "yes, jtreg present" >&6; } 64836 fi 64837 else 64838 as_fn_error $? "Invalid value for --enable-jtreg-failure-handler: $enable_jtreg_failure_handler" "$LINENO" 5 64839 fi 64840 64841 64842 64843 64844 # Check whether --enable-generate-classlist was given. 64845 if test "${enable_generate_classlist+set}" = set; then : 64846 enableval=$enable_generate_classlist; 64847 fi 64848 64849 64850 # Check if it's likely that it's possible to generate the classlist. Depending 64851 # on exact jvm configuration it could be possible anyway. 64852 if [[ " $JVM_VARIANTS " =~ " server " ]] || [[ " $JVM_VARIANTS " =~ " client " ]] ; then 64853 ENABLE_GENERATE_CLASSLIST_POSSIBLE="true" 64854 else 64855 ENABLE_GENERATE_CLASSLIST_POSSIBLE="false" 64856 fi 64857 64858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the CDS classlist generation should be enabled" >&5 64859 $as_echo_n "checking if the CDS classlist generation should be enabled... " >&6; } 64860 if test "x$enable_generate_classlist" = "xyes"; then 64861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, forced" >&5 64862 $as_echo "yes, forced" >&6; } 64863 ENABLE_GENERATE_CLASSLIST="true" 64864 if test "x$ENABLE_GENERATE_CLASSLIST_POSSIBLE" = "xfalse"; then 64865 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Generation of classlist might not be possible with JVM Variants $JVM_VARIANTS" >&5 64866 $as_echo "$as_me: WARNING: Generation of classlist might not be possible with JVM Variants $JVM_VARIANTS" >&2;} 64867 fi 64868 elif test "x$enable_generate_classlist" = "xno"; then 64869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, forced" >&5 64870 $as_echo "no, forced" >&6; } 64871 ENABLE_GENERATE_CLASSLIST="false" 64872 elif test "x$enable_generate_classlist" = "x"; then 64873 if test "x$ENABLE_GENERATE_CLASSLIST_POSSIBLE" = "xtrue"; then 64874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 64875 $as_echo "yes" >&6; } 64876 ENABLE_GENERATE_CLASSLIST="true" 64877 else 64878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 64879 $as_echo "no" >&6; } 64880 ENABLE_GENERATE_CLASSLIST="false" 64881 fi 64882 else 64883 as_fn_error $? "Invalid value for --enable-generate-classlist: $enable_generate_classlist" "$LINENO" 5 64884 fi 64885 64886 64887 64888 64889 ############################################################################### 64890 # 64891 # Configure parts of the build that only affect the build performance, 64892 # not the result. 64893 # 64894 ############################################################################### 64895 64896 64897 # How many cores do we have on this build system? 64898 64899 # Check whether --with-num-cores was given. 64900 if test "${with_num_cores+set}" = set; then : 64901 withval=$with_num_cores; 64902 fi 64903 64904 if test "x$with_num_cores" = x; then 64905 # The number of cores were not specified, try to probe them. 64906 64907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for number of cores" >&5 64908 $as_echo_n "checking for number of cores... " >&6; } 64909 NUM_CORES=1 64910 FOUND_CORES=no 64911 64912 if test -f /proc/cpuinfo; then 64913 # Looks like a Linux (or cygwin) system 64914 NUM_CORES=`cat /proc/cpuinfo | grep -c processor` 64915 FOUND_CORES=yes 64916 elif test -x /usr/sbin/psrinfo; then 64917 # Looks like a Solaris system 64918 NUM_CORES=`LC_MESSAGES=C /usr/sbin/psrinfo -v | grep -c on-line` 64919 FOUND_CORES=yes 64920 elif test -x /usr/sbin/sysctl; then 64921 # Looks like a MacOSX system 64922 NUM_CORES=`/usr/sbin/sysctl -n hw.ncpu` 64923 FOUND_CORES=yes 64924 elif test "x$OPENJDK_BUILD_OS" = xaix ; then 64925 NUM_CORES=`/usr/sbin/prtconf | grep "^Number Of Processors" | awk '{ print $4 }'` 64926 FOUND_CORES=yes 64927 elif test -n "$NUMBER_OF_PROCESSORS"; then 64928 # On windows, look in the env 64929 NUM_CORES=$NUMBER_OF_PROCESSORS 64930 FOUND_CORES=yes 64931 fi 64932 64933 if test "x$FOUND_CORES" = xyes; then 64934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NUM_CORES" >&5 64935 $as_echo "$NUM_CORES" >&6; } 64936 else 64937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: could not detect number of cores, defaulting to 1" >&5 64938 $as_echo "could not detect number of cores, defaulting to 1" >&6; } 64939 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This will disable all parallelism from build!" >&5 64940 $as_echo "$as_me: WARNING: This will disable all parallelism from build!" >&2;} 64941 fi 64942 64943 else 64944 NUM_CORES=$with_num_cores 64945 fi 64946 64947 64948 64949 # How much memory do we have on this build system? 64950 64951 # Check whether --with-memory-size was given. 64952 if test "${with_memory_size+set}" = set; then : 64953 withval=$with_memory_size; 64954 fi 64955 64956 if test "x$with_memory_size" = x; then 64957 # The memory size was not specified, try to probe it. 64958 64959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for memory size" >&5 64960 $as_echo_n "checking for memory size... " >&6; } 64961 # Default to 1024 MB 64962 MEMORY_SIZE=1024 64963 FOUND_MEM=no 64964 64965 if test -f /proc/meminfo; then 64966 # Looks like a Linux (or cygwin) system 64967 MEMORY_SIZE=`cat /proc/meminfo | grep MemTotal | awk '{print $2}'` 64968 MEMORY_SIZE=`expr $MEMORY_SIZE / 1024` 64969 FOUND_MEM=yes 64970 elif test -x /usr/sbin/prtconf; then 64971 # Looks like a Solaris or AIX system 64972 MEMORY_SIZE=`/usr/sbin/prtconf 2> /dev/null | grep "^Memory [Ss]ize" | awk '{ print $3 }'` 64973 FOUND_MEM=yes 64974 elif test -x /usr/sbin/sysctl; then 64975 # Looks like a MacOSX system 64976 MEMORY_SIZE=`/usr/sbin/sysctl -n hw.memsize` 64977 MEMORY_SIZE=`expr $MEMORY_SIZE / 1024 / 1024` 64978 FOUND_MEM=yes 64979 elif test "x$OPENJDK_BUILD_OS" = xwindows; then 64980 # Windows, but without cygwin 64981 MEMORY_SIZE=`wmic computersystem get totalphysicalmemory -value | grep = | cut -d "=" -f 2-` 64982 MEMORY_SIZE=`expr $MEMORY_SIZE / 1024 / 1024` 64983 FOUND_MEM=yes 64984 fi 64985 64986 if test "x$FOUND_MEM" = xyes; then 64987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MEMORY_SIZE MB" >&5 64988 $as_echo "$MEMORY_SIZE MB" >&6; } 64989 else 64990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: could not detect memory size, defaulting to $MEMORY_SIZE MB" >&5 64991 $as_echo "could not detect memory size, defaulting to $MEMORY_SIZE MB" >&6; } 64992 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This might seriously impact build performance!" >&5 64993 $as_echo "$as_me: WARNING: This might seriously impact build performance!" >&2;} 64994 fi 64995 64996 else 64997 MEMORY_SIZE=$with_memory_size 64998 fi 64999 65000 65001 65002 # Provide a decent default number of parallel jobs for make depending on 65003 # number of cores, amount of memory and machine architecture. 65004 65005 # Check whether --with-jobs was given. 65006 if test "${with_jobs+set}" = set; then : 65007 withval=$with_jobs; 65008 fi 65009 65010 if test "x$with_jobs" = x; then 65011 # Number of jobs was not specified, calculate. 65012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for appropriate number of jobs to run in parallel" >&5 65013 $as_echo_n "checking for appropriate number of jobs to run in parallel... " >&6; } 65014 # Approximate memory in GB. 65015 memory_gb=`expr $MEMORY_SIZE / 1024` 65016 # Pick the lowest of memory in gb and number of cores. 65017 if test "$memory_gb" -lt "$NUM_CORES"; then 65018 JOBS="$memory_gb" 65019 else 65020 JOBS="$NUM_CORES" 65021 fi 65022 if test "$JOBS" -eq "0"; then 65023 JOBS=1 65024 fi 65025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JOBS" >&5 65026 $as_echo "$JOBS" >&6; } 65027 else 65028 JOBS=$with_jobs 65029 fi 65030 65031 65032 65033 # The number of test jobs will be chosen automatically if TEST_JOBS is 0 65034 65035 # Check whether --with-test-jobs was given. 65036 if test "${with_test_jobs+set}" = set; then : 65037 withval=$with_test_jobs; 65038 fi 65039 65040 if test "x$with_test_jobs" = x; then 65041 TEST_JOBS=0 65042 else 65043 TEST_JOBS=$with_test_jobs 65044 fi 65045 65046 65047 65048 # Setup arguments for the boot jdk (after cores and memory have been setup) 65049 65050 ############################################################################## 65051 # 65052 # Specify jvm options for anything that is run with the Boot JDK. 65053 # Not all JVM:s accept the same arguments on the command line. 65054 # 65055 65056 # Check whether --with-boot-jdk-jvmargs was given. 65057 if test "${with_boot_jdk_jvmargs+set}" = set; then : 65058 withval=$with_boot_jdk_jvmargs; 65059 fi 65060 65061 65062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking flags for boot jdk java command " >&5 65063 $as_echo_n "checking flags for boot jdk java command ... " >&6; } 65064 65065 # Disable special log output when a debug build is used as Boot JDK... 65066 65067 $ECHO "Check if jvm arg is ok: -XX:-PrintVMOptions -XX:-UnlockDiagnosticVMOptions -XX:-LogVMOutput" >&5 65068 $ECHO "Command: $JAVA -XX:-PrintVMOptions -XX:-UnlockDiagnosticVMOptions -XX:-LogVMOutput -version" >&5 65069 OUTPUT=`$JAVA -XX:-PrintVMOptions -XX:-UnlockDiagnosticVMOptions -XX:-LogVMOutput -version 2>&1` 65070 FOUND_WARN=`$ECHO "$OUTPUT" | $GREP -i warn` 65071 FOUND_VERSION=`$ECHO $OUTPUT | $GREP " version \""` 65072 if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then 65073 boot_jdk_jvmargs="$boot_jdk_jvmargs -XX:-PrintVMOptions -XX:-UnlockDiagnosticVMOptions -XX:-LogVMOutput" 65074 JVM_ARG_OK=true 65075 else 65076 $ECHO "Arg failed:" >&5 65077 $ECHO "$OUTPUT" >&5 65078 JVM_ARG_OK=false 65079 fi 65080 65081 65082 # Apply user provided options. 65083 65084 $ECHO "Check if jvm arg is ok: $with_boot_jdk_jvmargs" >&5 65085 $ECHO "Command: $JAVA $with_boot_jdk_jvmargs -version" >&5 65086 OUTPUT=`$JAVA $with_boot_jdk_jvmargs -version 2>&1` 65087 FOUND_WARN=`$ECHO "$OUTPUT" | $GREP -i warn` 65088 FOUND_VERSION=`$ECHO $OUTPUT | $GREP " version \""` 65089 if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then 65090 boot_jdk_jvmargs="$boot_jdk_jvmargs $with_boot_jdk_jvmargs" 65091 JVM_ARG_OK=true 65092 else 65093 $ECHO "Arg failed:" >&5 65094 $ECHO "$OUTPUT" >&5 65095 JVM_ARG_OK=false 65096 fi 65097 65098 65099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $boot_jdk_jvmargs" >&5 65100 $as_echo "$boot_jdk_jvmargs" >&6; } 65101 65102 # For now, general JAVA_FLAGS are the same as the boot jdk jvmargs 65103 JAVA_FLAGS=$boot_jdk_jvmargs 65104 65105 65106 65107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking flags for boot jdk java command for big workloads" >&5 65108 $as_echo_n "checking flags for boot jdk java command for big workloads... " >&6; } 65109 65110 # Starting amount of heap memory. 65111 65112 $ECHO "Check if jvm arg is ok: -Xms64M" >&5 65113 $ECHO "Command: $JAVA -Xms64M -version" >&5 65114 OUTPUT=`$JAVA -Xms64M -version 2>&1` 65115 FOUND_WARN=`$ECHO "$OUTPUT" | $GREP -i warn` 65116 FOUND_VERSION=`$ECHO $OUTPUT | $GREP " version \""` 65117 if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then 65118 boot_jdk_jvmargs_big="$boot_jdk_jvmargs_big -Xms64M" 65119 JVM_ARG_OK=true 65120 else 65121 $ECHO "Arg failed:" >&5 65122 $ECHO "$OUTPUT" >&5 65123 JVM_ARG_OK=false 65124 fi 65125 65126 BOOTCYCLE_JVM_ARGS_BIG=-Xms64M 65127 65128 # Maximum amount of heap memory and stack size. 65129 JVM_HEAP_LIMIT_32="1024" 65130 # Running a 64 bit JVM allows for and requires a bigger heap 65131 JVM_HEAP_LIMIT_64="1600" 65132 STACK_SIZE_32=768 65133 STACK_SIZE_64=1536 65134 JVM_HEAP_LIMIT_GLOBAL=`expr $MEMORY_SIZE / 2` 65135 if test "$JVM_HEAP_LIMIT_GLOBAL" -lt "$JVM_HEAP_LIMIT_32"; then 65136 JVM_HEAP_LIMIT_32=$JVM_HEAP_LIMIT_GLOBAL 65137 fi 65138 if test "$JVM_HEAP_LIMIT_GLOBAL" -lt "$JVM_HEAP_LIMIT_64"; then 65139 JVM_HEAP_LIMIT_64=$JVM_HEAP_LIMIT_GLOBAL 65140 fi 65141 if test "$JVM_HEAP_LIMIT_GLOBAL" -lt "512"; then 65142 JVM_HEAP_LIMIT_32=512 65143 JVM_HEAP_LIMIT_64=512 65144 fi 65145 65146 if test "x$BOOT_JDK_BITS" = "x32"; then 65147 STACK_SIZE=$STACK_SIZE_32 65148 JVM_MAX_HEAP=$JVM_HEAP_LIMIT_32 65149 else 65150 STACK_SIZE=$STACK_SIZE_64 65151 JVM_MAX_HEAP=$JVM_HEAP_LIMIT_64 65152 fi 65153 65154 $ECHO "Check if jvm arg is ok: -Xmx${JVM_MAX_HEAP}M" >&5 65155 $ECHO "Command: $JAVA -Xmx${JVM_MAX_HEAP}M -version" >&5 65156 OUTPUT=`$JAVA -Xmx${JVM_MAX_HEAP}M -version 2>&1` 65157 FOUND_WARN=`$ECHO "$OUTPUT" | $GREP -i warn` 65158 FOUND_VERSION=`$ECHO $OUTPUT | $GREP " version \""` 65159 if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then 65160 boot_jdk_jvmargs_big="$boot_jdk_jvmargs_big -Xmx${JVM_MAX_HEAP}M" 65161 JVM_ARG_OK=true 65162 else 65163 $ECHO "Arg failed:" >&5 65164 $ECHO "$OUTPUT" >&5 65165 JVM_ARG_OK=false 65166 fi 65167 65168 65169 $ECHO "Check if jvm arg is ok: -XX:ThreadStackSize=$STACK_SIZE" >&5 65170 $ECHO "Command: $JAVA -XX:ThreadStackSize=$STACK_SIZE -version" >&5 65171 OUTPUT=`$JAVA -XX:ThreadStackSize=$STACK_SIZE -version 2>&1` 65172 FOUND_WARN=`$ECHO "$OUTPUT" | $GREP -i warn` 65173 FOUND_VERSION=`$ECHO $OUTPUT | $GREP " version \""` 65174 if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then 65175 boot_jdk_jvmargs_big="$boot_jdk_jvmargs_big -XX:ThreadStackSize=$STACK_SIZE" 65176 JVM_ARG_OK=true 65177 else 65178 $ECHO "Arg failed:" >&5 65179 $ECHO "$OUTPUT" >&5 65180 JVM_ARG_OK=false 65181 fi 65182 65183 65184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $boot_jdk_jvmargs_big" >&5 65185 $as_echo "$boot_jdk_jvmargs_big" >&6; } 65186 65187 JAVA_FLAGS_BIG=$boot_jdk_jvmargs_big 65188 65189 65190 if test "x$OPENJDK_TARGET_CPU_BITS" = "x32"; then 65191 BOOTCYCLE_MAX_HEAP=$JVM_HEAP_LIMIT_32 65192 BOOTCYCLE_STACK_SIZE=$STACK_SIZE_32 65193 else 65194 BOOTCYCLE_MAX_HEAP=$JVM_HEAP_LIMIT_64 65195 BOOTCYCLE_STACK_SIZE=$STACK_SIZE_64 65196 fi 65197 BOOTCYCLE_JVM_ARGS_BIG="$BOOTCYCLE_JVM_ARGS_BIG -Xmx${BOOTCYCLE_MAX_HEAP}M" 65198 BOOTCYCLE_JVM_ARGS_BIG="$BOOTCYCLE_JVM_ARGS_BIG -XX:ThreadStackSize=$BOOTCYCLE_STACK_SIZE" 65199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking flags for bootcycle boot jdk java command for big workloads" >&5 65200 $as_echo_n "checking flags for bootcycle boot jdk java command for big workloads... " >&6; } 65201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOTCYCLE_JVM_ARGS_BIG" >&5 65202 $as_echo "$BOOTCYCLE_JVM_ARGS_BIG" >&6; } 65203 65204 65205 # By default, the main javac compilations use big 65206 JAVA_FLAGS_JAVAC="$JAVA_FLAGS_BIG" 65207 65208 65209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking flags for boot jdk java command for small workloads" >&5 65210 $as_echo_n "checking flags for boot jdk java command for small workloads... " >&6; } 65211 65212 # Use serial gc for small short lived tools if possible 65213 65214 $ECHO "Check if jvm arg is ok: -XX:+UseSerialGC" >&5 65215 $ECHO "Command: $JAVA -XX:+UseSerialGC -version" >&5 65216 OUTPUT=`$JAVA -XX:+UseSerialGC -version 2>&1` 65217 FOUND_WARN=`$ECHO "$OUTPUT" | $GREP -i warn` 65218 FOUND_VERSION=`$ECHO $OUTPUT | $GREP " version \""` 65219 if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then 65220 boot_jdk_jvmargs_small="$boot_jdk_jvmargs_small -XX:+UseSerialGC" 65221 JVM_ARG_OK=true 65222 else 65223 $ECHO "Arg failed:" >&5 65224 $ECHO "$OUTPUT" >&5 65225 JVM_ARG_OK=false 65226 fi 65227 65228 65229 $ECHO "Check if jvm arg is ok: -Xms32M" >&5 65230 $ECHO "Command: $JAVA -Xms32M -version" >&5 65231 OUTPUT=`$JAVA -Xms32M -version 2>&1` 65232 FOUND_WARN=`$ECHO "$OUTPUT" | $GREP -i warn` 65233 FOUND_VERSION=`$ECHO $OUTPUT | $GREP " version \""` 65234 if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then 65235 boot_jdk_jvmargs_small="$boot_jdk_jvmargs_small -Xms32M" 65236 JVM_ARG_OK=true 65237 else 65238 $ECHO "Arg failed:" >&5 65239 $ECHO "$OUTPUT" >&5 65240 JVM_ARG_OK=false 65241 fi 65242 65243 65244 $ECHO "Check if jvm arg is ok: -Xmx512M" >&5 65245 $ECHO "Command: $JAVA -Xmx512M -version" >&5 65246 OUTPUT=`$JAVA -Xmx512M -version 2>&1` 65247 FOUND_WARN=`$ECHO "$OUTPUT" | $GREP -i warn` 65248 FOUND_VERSION=`$ECHO $OUTPUT | $GREP " version \""` 65249 if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then 65250 boot_jdk_jvmargs_small="$boot_jdk_jvmargs_small -Xmx512M" 65251 JVM_ARG_OK=true 65252 else 65253 $ECHO "Arg failed:" >&5 65254 $ECHO "$OUTPUT" >&5 65255 JVM_ARG_OK=false 65256 fi 65257 65258 65259 $ECHO "Check if jvm arg is ok: -XX:TieredStopAtLevel=1" >&5 65260 $ECHO "Command: $JAVA -XX:TieredStopAtLevel=1 -version" >&5 65261 OUTPUT=`$JAVA -XX:TieredStopAtLevel=1 -version 2>&1` 65262 FOUND_WARN=`$ECHO "$OUTPUT" | $GREP -i warn` 65263 FOUND_VERSION=`$ECHO $OUTPUT | $GREP " version \""` 65264 if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then 65265 boot_jdk_jvmargs_small="$boot_jdk_jvmargs_small -XX:TieredStopAtLevel=1" 65266 JVM_ARG_OK=true 65267 else 65268 $ECHO "Arg failed:" >&5 65269 $ECHO "$OUTPUT" >&5 65270 JVM_ARG_OK=false 65271 fi 65272 65273 65274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $boot_jdk_jvmargs_small" >&5 65275 $as_echo "$boot_jdk_jvmargs_small" >&6; } 65276 65277 JAVA_FLAGS_SMALL=$boot_jdk_jvmargs_small 65278 65279 65280 JAVA_TOOL_FLAGS_SMALL="" 65281 for f in $JAVA_FLAGS_SMALL; do 65282 JAVA_TOOL_FLAGS_SMALL="$JAVA_TOOL_FLAGS_SMALL -J$f" 65283 done 65284 65285 65286 65287 # Setup smart javac (after cores and memory have been setup) 65288 65289 65290 # Check whether --with-sjavac-server-java was given. 65291 if test "${with_sjavac_server_java+set}" = set; then : 65292 withval=$with_sjavac_server_java; 65293 fi 65294 65295 65296 if test "x$with_sjavac_server_java" != x; then 65297 SJAVAC_SERVER_JAVA="$with_sjavac_server_java" 65298 FOUND_VERSION=`$SJAVAC_SERVER_JAVA -version 2>&1 | grep " version \""` 65299 if test "x$FOUND_VERSION" = x; then 65300 as_fn_error $? "Could not execute server java: $SJAVAC_SERVER_JAVA" "$LINENO" 5 65301 fi 65302 else 65303 SJAVAC_SERVER_JAVA="$JAVA" 65304 fi 65305 65306 65307 if test "$MEMORY_SIZE" -gt "3000"; then 65308 65309 $ECHO "Check if jvm arg is ok: -d64" >&5 65310 $ECHO "Command: $SJAVAC_SERVER_JAVA -d64 -version" >&5 65311 OUTPUT=`$SJAVAC_SERVER_JAVA -d64 -version 2>&1` 65312 FOUND_WARN=`$ECHO "$OUTPUT" | $GREP -i warn` 65313 FOUND_VERSION=`$ECHO $OUTPUT | $GREP " version \""` 65314 if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then 65315 SJAVAC_SERVER_JAVA_FLAGS="$SJAVAC_SERVER_JAVA_FLAGS -d64" 65316 JVM_ARG_OK=true 65317 else 65318 $ECHO "Arg failed:" >&5 65319 $ECHO "$OUTPUT" >&5 65320 JVM_ARG_OK=false 65321 fi 65322 65323 if test "$JVM_ARG_OK" = true; then 65324 JVM_64BIT=true 65325 JVM_ARG_OK=false 65326 fi 65327 fi 65328 65329 MX_VALUE=`expr $MEMORY_SIZE / 2` 65330 if test "$JVM_64BIT" = true; then 65331 # Set ms lower than mx since more than one instance of the server might 65332 # get launched at the same time before they figure out which instance won. 65333 MS_VALUE=512 65334 if test "$MX_VALUE" -gt "2048"; then 65335 MX_VALUE=2048 65336 fi 65337 else 65338 MS_VALUE=256 65339 if test "$MX_VALUE" -gt "1500"; then 65340 MX_VALUE=1500 65341 fi 65342 fi 65343 if test "$MX_VALUE" -lt "512"; then 65344 MX_VALUE=512 65345 fi 65346 65347 $ECHO "Check if jvm arg is ok: -Xms${MS_VALUE}M -Xmx${MX_VALUE}M" >&5 65348 $ECHO "Command: $SJAVAC_SERVER_JAVA -Xms${MS_VALUE}M -Xmx${MX_VALUE}M -version" >&5 65349 OUTPUT=`$SJAVAC_SERVER_JAVA -Xms${MS_VALUE}M -Xmx${MX_VALUE}M -version 2>&1` 65350 FOUND_WARN=`$ECHO "$OUTPUT" | $GREP -i warn` 65351 FOUND_VERSION=`$ECHO $OUTPUT | $GREP " version \""` 65352 if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then 65353 SJAVAC_SERVER_JAVA_FLAGS="$SJAVAC_SERVER_JAVA_FLAGS -Xms${MS_VALUE}M -Xmx${MX_VALUE}M" 65354 JVM_ARG_OK=true 65355 else 65356 $ECHO "Arg failed:" >&5 65357 $ECHO "$OUTPUT" >&5 65358 JVM_ARG_OK=false 65359 fi 65360 65361 65362 65363 # Check whether --enable-sjavac was given. 65364 if test "${enable_sjavac+set}" = set; then : 65365 enableval=$enable_sjavac; ENABLE_SJAVAC="${enableval}" 65366 else 65367 ENABLE_SJAVAC="no" 65368 fi 65369 65370 if test "x$JVM_ARG_OK" = "xfalse"; then 65371 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not set -Xms${MS_VALUE}M -Xmx${MX_VALUE}M, disabling sjavac" >&5 65372 $as_echo "$as_me: WARNING: Could not set -Xms${MS_VALUE}M -Xmx${MX_VALUE}M, disabling sjavac" >&2;} 65373 ENABLE_SJAVAC="no" 65374 fi 65375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use sjavac" >&5 65376 $as_echo_n "checking whether to use sjavac... " >&6; } 65377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ENABLE_SJAVAC" >&5 65378 $as_echo "$ENABLE_SJAVAC" >&6; } 65379 65380 65381 # Check whether --enable-javac-server was given. 65382 if test "${enable_javac_server+set}" = set; then : 65383 enableval=$enable_javac_server; ENABLE_JAVAC_SERVER="${enableval}" 65384 else 65385 ENABLE_JAVAC_SERVER="yes" 65386 fi 65387 65388 if test "x$JVM_ARG_OK" = "xfalse"; then 65389 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not set -Xms${MS_VALUE}M -Xmx${MX_VALUE}M, disabling javac server" >&5 65390 $as_echo "$as_me: WARNING: Could not set -Xms${MS_VALUE}M -Xmx${MX_VALUE}M, disabling javac server" >&2;} 65391 ENABLE_JAVAC_SERVER="no" 65392 fi 65393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use javac server" >&5 65394 $as_echo_n "checking whether to use javac server... " >&6; } 65395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ENABLE_JAVAC_SERVER" >&5 65396 $as_echo "$ENABLE_JAVAC_SERVER" >&6; } 65397 65398 65399 if test "x$ENABLE_JAVAC_SERVER" = "xyes" || test "x$ENABLE_SJAVAC" = "xyes"; then 65400 # When using a server javac, the small client instances do not need much 65401 # resources. 65402 JAVA_FLAGS_JAVAC="$JAVA_FLAGS_SMALL" 65403 fi 65404 65405 65406 # Setup use of icecc if requested 65407 65408 # Check whether --enable-icecc was given. 65409 if test "${enable_icecc+set}" = set; then : 65410 enableval=$enable_icecc; 65411 fi 65412 65413 65414 if test "x${enable_icecc}" = "xyes"; then 65415 65416 65417 65418 # Publish this variable in the help. 65419 65420 65421 if [ -z "${ICECC_CMD+x}" ]; then 65422 # The variable is not set by user, try to locate tool using the code snippet 65423 for ac_prog in icecc 65424 do 65425 # Extract the first word of "$ac_prog", so it can be a program name with args. 65426 set dummy $ac_prog; ac_word=$2 65427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 65428 $as_echo_n "checking for $ac_word... " >&6; } 65429 if ${ac_cv_path_ICECC_CMD+:} false; then : 65430 $as_echo_n "(cached) " >&6 65431 else 65432 case $ICECC_CMD in 65433 [\\/]* | ?:[\\/]*) 65434 ac_cv_path_ICECC_CMD="$ICECC_CMD" # Let the user override the test with a path. 65435 ;; 65436 *) 65437 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 65438 for as_dir in $PATH 65439 do 65440 IFS=$as_save_IFS 65441 test -z "$as_dir" && as_dir=. 65442 for ac_exec_ext in '' $ac_executable_extensions; do 65443 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 65444 ac_cv_path_ICECC_CMD="$as_dir/$ac_word$ac_exec_ext" 65445 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 65446 break 2 65447 fi 65448 done 65449 done 65450 IFS=$as_save_IFS 65451 65452 ;; 65453 esac 65454 fi 65455 ICECC_CMD=$ac_cv_path_ICECC_CMD 65456 if test -n "$ICECC_CMD"; then 65457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ICECC_CMD" >&5 65458 $as_echo "$ICECC_CMD" >&6; } 65459 else 65460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 65461 $as_echo "no" >&6; } 65462 fi 65463 65464 65465 test -n "$ICECC_CMD" && break 65466 done 65467 65468 else 65469 # The variable is set, but is it from the command line or the environment? 65470 65471 # Try to remove the string !ICECC_CMD! from our list. 65472 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!ICECC_CMD!/} 65473 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 65474 # If it failed, the variable was not from the command line. Ignore it, 65475 # but warn the user (except for BASH, which is always set by the calling BASH). 65476 if test "xICECC_CMD" != xBASH; then 65477 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of ICECC_CMD from the environment. Use command line variables instead." >&5 65478 $as_echo "$as_me: WARNING: Ignoring value of ICECC_CMD from the environment. Use command line variables instead." >&2;} 65479 fi 65480 # Try to locate tool using the code snippet 65481 for ac_prog in icecc 65482 do 65483 # Extract the first word of "$ac_prog", so it can be a program name with args. 65484 set dummy $ac_prog; ac_word=$2 65485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 65486 $as_echo_n "checking for $ac_word... " >&6; } 65487 if ${ac_cv_path_ICECC_CMD+:} false; then : 65488 $as_echo_n "(cached) " >&6 65489 else 65490 case $ICECC_CMD in 65491 [\\/]* | ?:[\\/]*) 65492 ac_cv_path_ICECC_CMD="$ICECC_CMD" # Let the user override the test with a path. 65493 ;; 65494 *) 65495 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 65496 for as_dir in $PATH 65497 do 65498 IFS=$as_save_IFS 65499 test -z "$as_dir" && as_dir=. 65500 for ac_exec_ext in '' $ac_executable_extensions; do 65501 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 65502 ac_cv_path_ICECC_CMD="$as_dir/$ac_word$ac_exec_ext" 65503 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 65504 break 2 65505 fi 65506 done 65507 done 65508 IFS=$as_save_IFS 65509 65510 ;; 65511 esac 65512 fi 65513 ICECC_CMD=$ac_cv_path_ICECC_CMD 65514 if test -n "$ICECC_CMD"; then 65515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ICECC_CMD" >&5 65516 $as_echo "$ICECC_CMD" >&6; } 65517 else 65518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 65519 $as_echo "no" >&6; } 65520 fi 65521 65522 65523 test -n "$ICECC_CMD" && break 65524 done 65525 65526 else 65527 # If it succeeded, then it was overridden by the user. We will use it 65528 # for the tool. 65529 65530 # First remove it from the list of overridden variables, so we can test 65531 # for unknown variables in the end. 65532 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 65533 65534 # Check if we try to supply an empty value 65535 if test "x$ICECC_CMD" = x; then 65536 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool ICECC_CMD= (no value)" >&5 65537 $as_echo "$as_me: Setting user supplied tool ICECC_CMD= (no value)" >&6;} 65538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ICECC_CMD" >&5 65539 $as_echo_n "checking for ICECC_CMD... " >&6; } 65540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 65541 $as_echo "disabled" >&6; } 65542 else 65543 # Check if the provided tool contains a complete path. 65544 tool_specified="$ICECC_CMD" 65545 tool_basename="${tool_specified##*/}" 65546 if test "x$tool_basename" = "x$tool_specified"; then 65547 # A command without a complete path is provided, search $PATH. 65548 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool ICECC_CMD=$tool_basename" >&5 65549 $as_echo "$as_me: Will search for user supplied tool ICECC_CMD=$tool_basename" >&6;} 65550 # Extract the first word of "$tool_basename", so it can be a program name with args. 65551 set dummy $tool_basename; ac_word=$2 65552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 65553 $as_echo_n "checking for $ac_word... " >&6; } 65554 if ${ac_cv_path_ICECC_CMD+:} false; then : 65555 $as_echo_n "(cached) " >&6 65556 else 65557 case $ICECC_CMD in 65558 [\\/]* | ?:[\\/]*) 65559 ac_cv_path_ICECC_CMD="$ICECC_CMD" # Let the user override the test with a path. 65560 ;; 65561 *) 65562 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 65563 for as_dir in $PATH 65564 do 65565 IFS=$as_save_IFS 65566 test -z "$as_dir" && as_dir=. 65567 for ac_exec_ext in '' $ac_executable_extensions; do 65568 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 65569 ac_cv_path_ICECC_CMD="$as_dir/$ac_word$ac_exec_ext" 65570 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 65571 break 2 65572 fi 65573 done 65574 done 65575 IFS=$as_save_IFS 65576 65577 ;; 65578 esac 65579 fi 65580 ICECC_CMD=$ac_cv_path_ICECC_CMD 65581 if test -n "$ICECC_CMD"; then 65582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ICECC_CMD" >&5 65583 $as_echo "$ICECC_CMD" >&6; } 65584 else 65585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 65586 $as_echo "no" >&6; } 65587 fi 65588 65589 65590 if test "x$ICECC_CMD" = x; then 65591 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 65592 fi 65593 else 65594 # Otherwise we believe it is a complete path. Use it as it is. 65595 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool ICECC_CMD=$tool_specified" >&5 65596 $as_echo "$as_me: Will use user supplied tool ICECC_CMD=$tool_specified" >&6;} 65597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ICECC_CMD" >&5 65598 $as_echo_n "checking for ICECC_CMD... " >&6; } 65599 if test ! -x "$tool_specified"; then 65600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 65601 $as_echo "not found" >&6; } 65602 as_fn_error $? "User supplied tool ICECC_CMD=$tool_specified does not exist or is not executable" "$LINENO" 5 65603 fi 65604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 65605 $as_echo "$tool_specified" >&6; } 65606 fi 65607 fi 65608 fi 65609 65610 fi 65611 65612 65613 65614 if test "x$ICECC_CMD" = x; then 65615 as_fn_error $? "Could not find required tool for ICECC_CMD" "$LINENO" 5 65616 fi 65617 65618 65619 old_path="$PATH" 65620 65621 # Look for icecc-create-env in some known places 65622 PATH="$PATH:/usr/lib/icecc:/usr/lib64/icecc" 65623 65624 65625 65626 # Publish this variable in the help. 65627 65628 65629 if [ -z "${ICECC_CREATE_ENV+x}" ]; then 65630 # The variable is not set by user, try to locate tool using the code snippet 65631 for ac_prog in icecc-create-env 65632 do 65633 # Extract the first word of "$ac_prog", so it can be a program name with args. 65634 set dummy $ac_prog; ac_word=$2 65635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 65636 $as_echo_n "checking for $ac_word... " >&6; } 65637 if ${ac_cv_path_ICECC_CREATE_ENV+:} false; then : 65638 $as_echo_n "(cached) " >&6 65639 else 65640 case $ICECC_CREATE_ENV in 65641 [\\/]* | ?:[\\/]*) 65642 ac_cv_path_ICECC_CREATE_ENV="$ICECC_CREATE_ENV" # Let the user override the test with a path. 65643 ;; 65644 *) 65645 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 65646 for as_dir in $PATH 65647 do 65648 IFS=$as_save_IFS 65649 test -z "$as_dir" && as_dir=. 65650 for ac_exec_ext in '' $ac_executable_extensions; do 65651 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 65652 ac_cv_path_ICECC_CREATE_ENV="$as_dir/$ac_word$ac_exec_ext" 65653 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 65654 break 2 65655 fi 65656 done 65657 done 65658 IFS=$as_save_IFS 65659 65660 ;; 65661 esac 65662 fi 65663 ICECC_CREATE_ENV=$ac_cv_path_ICECC_CREATE_ENV 65664 if test -n "$ICECC_CREATE_ENV"; then 65665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ICECC_CREATE_ENV" >&5 65666 $as_echo "$ICECC_CREATE_ENV" >&6; } 65667 else 65668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 65669 $as_echo "no" >&6; } 65670 fi 65671 65672 65673 test -n "$ICECC_CREATE_ENV" && break 65674 done 65675 65676 else 65677 # The variable is set, but is it from the command line or the environment? 65678 65679 # Try to remove the string !ICECC_CREATE_ENV! from our list. 65680 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!ICECC_CREATE_ENV!/} 65681 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 65682 # If it failed, the variable was not from the command line. Ignore it, 65683 # but warn the user (except for BASH, which is always set by the calling BASH). 65684 if test "xICECC_CREATE_ENV" != xBASH; then 65685 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of ICECC_CREATE_ENV from the environment. Use command line variables instead." >&5 65686 $as_echo "$as_me: WARNING: Ignoring value of ICECC_CREATE_ENV from the environment. Use command line variables instead." >&2;} 65687 fi 65688 # Try to locate tool using the code snippet 65689 for ac_prog in icecc-create-env 65690 do 65691 # Extract the first word of "$ac_prog", so it can be a program name with args. 65692 set dummy $ac_prog; ac_word=$2 65693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 65694 $as_echo_n "checking for $ac_word... " >&6; } 65695 if ${ac_cv_path_ICECC_CREATE_ENV+:} false; then : 65696 $as_echo_n "(cached) " >&6 65697 else 65698 case $ICECC_CREATE_ENV in 65699 [\\/]* | ?:[\\/]*) 65700 ac_cv_path_ICECC_CREATE_ENV="$ICECC_CREATE_ENV" # Let the user override the test with a path. 65701 ;; 65702 *) 65703 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 65704 for as_dir in $PATH 65705 do 65706 IFS=$as_save_IFS 65707 test -z "$as_dir" && as_dir=. 65708 for ac_exec_ext in '' $ac_executable_extensions; do 65709 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 65710 ac_cv_path_ICECC_CREATE_ENV="$as_dir/$ac_word$ac_exec_ext" 65711 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 65712 break 2 65713 fi 65714 done 65715 done 65716 IFS=$as_save_IFS 65717 65718 ;; 65719 esac 65720 fi 65721 ICECC_CREATE_ENV=$ac_cv_path_ICECC_CREATE_ENV 65722 if test -n "$ICECC_CREATE_ENV"; then 65723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ICECC_CREATE_ENV" >&5 65724 $as_echo "$ICECC_CREATE_ENV" >&6; } 65725 else 65726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 65727 $as_echo "no" >&6; } 65728 fi 65729 65730 65731 test -n "$ICECC_CREATE_ENV" && break 65732 done 65733 65734 else 65735 # If it succeeded, then it was overridden by the user. We will use it 65736 # for the tool. 65737 65738 # First remove it from the list of overridden variables, so we can test 65739 # for unknown variables in the end. 65740 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 65741 65742 # Check if we try to supply an empty value 65743 if test "x$ICECC_CREATE_ENV" = x; then 65744 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool ICECC_CREATE_ENV= (no value)" >&5 65745 $as_echo "$as_me: Setting user supplied tool ICECC_CREATE_ENV= (no value)" >&6;} 65746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ICECC_CREATE_ENV" >&5 65747 $as_echo_n "checking for ICECC_CREATE_ENV... " >&6; } 65748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 65749 $as_echo "disabled" >&6; } 65750 else 65751 # Check if the provided tool contains a complete path. 65752 tool_specified="$ICECC_CREATE_ENV" 65753 tool_basename="${tool_specified##*/}" 65754 if test "x$tool_basename" = "x$tool_specified"; then 65755 # A command without a complete path is provided, search $PATH. 65756 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool ICECC_CREATE_ENV=$tool_basename" >&5 65757 $as_echo "$as_me: Will search for user supplied tool ICECC_CREATE_ENV=$tool_basename" >&6;} 65758 # Extract the first word of "$tool_basename", so it can be a program name with args. 65759 set dummy $tool_basename; ac_word=$2 65760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 65761 $as_echo_n "checking for $ac_word... " >&6; } 65762 if ${ac_cv_path_ICECC_CREATE_ENV+:} false; then : 65763 $as_echo_n "(cached) " >&6 65764 else 65765 case $ICECC_CREATE_ENV in 65766 [\\/]* | ?:[\\/]*) 65767 ac_cv_path_ICECC_CREATE_ENV="$ICECC_CREATE_ENV" # Let the user override the test with a path. 65768 ;; 65769 *) 65770 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 65771 for as_dir in $PATH 65772 do 65773 IFS=$as_save_IFS 65774 test -z "$as_dir" && as_dir=. 65775 for ac_exec_ext in '' $ac_executable_extensions; do 65776 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 65777 ac_cv_path_ICECC_CREATE_ENV="$as_dir/$ac_word$ac_exec_ext" 65778 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 65779 break 2 65780 fi 65781 done 65782 done 65783 IFS=$as_save_IFS 65784 65785 ;; 65786 esac 65787 fi 65788 ICECC_CREATE_ENV=$ac_cv_path_ICECC_CREATE_ENV 65789 if test -n "$ICECC_CREATE_ENV"; then 65790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ICECC_CREATE_ENV" >&5 65791 $as_echo "$ICECC_CREATE_ENV" >&6; } 65792 else 65793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 65794 $as_echo "no" >&6; } 65795 fi 65796 65797 65798 if test "x$ICECC_CREATE_ENV" = x; then 65799 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 65800 fi 65801 else 65802 # Otherwise we believe it is a complete path. Use it as it is. 65803 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool ICECC_CREATE_ENV=$tool_specified" >&5 65804 $as_echo "$as_me: Will use user supplied tool ICECC_CREATE_ENV=$tool_specified" >&6;} 65805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ICECC_CREATE_ENV" >&5 65806 $as_echo_n "checking for ICECC_CREATE_ENV... " >&6; } 65807 if test ! -x "$tool_specified"; then 65808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 65809 $as_echo "not found" >&6; } 65810 as_fn_error $? "User supplied tool ICECC_CREATE_ENV=$tool_specified does not exist or is not executable" "$LINENO" 5 65811 fi 65812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 65813 $as_echo "$tool_specified" >&6; } 65814 fi 65815 fi 65816 fi 65817 65818 fi 65819 65820 65821 65822 if test "x$ICECC_CREATE_ENV" = x; then 65823 as_fn_error $? "Could not find required tool for ICECC_CREATE_ENV" "$LINENO" 5 65824 fi 65825 65826 65827 # Use icecc-create-env to create a minimal compilation environment that can 65828 # be sent to the other hosts in the icecream cluster. 65829 icecc_create_env_log="${CONFIGURESUPPORT_OUTPUTDIR}/icecc/icecc_create_env.log" 65830 ${MKDIR} -p ${CONFIGURESUPPORT_OUTPUTDIR}/icecc 65831 # Older versions of icecc does not have the --gcc parameter 65832 if ${ICECC_CREATE_ENV} | $GREP -q -e --gcc; then 65833 icecc_gcc_arg="--gcc" 65834 fi 65835 if test "x${TOOLCHAIN_TYPE}" = "xgcc"; then 65836 65837 ( cd ${CONFIGURESUPPORT_OUTPUTDIR}/icecc \ 65838 && ${ICECC_CREATE_ENV} ${icecc_gcc_arg} ${CC} ${CXX} > \ 65839 ${icecc_create_env_log} 2>&1 ) 65840 if test "$?" != "0"; then 65841 { $as_echo "$as_me:${as_lineno-$LINENO}: icecc-create-env output:" >&5 65842 $as_echo "$as_me: icecc-create-env output:" >&6;} 65843 cat \ 65844 ${icecc_create_env_log} 65845 as_fn_error $? "Failed to create icecc compiler environment" "$LINENO" 5 65846 fi 65847 65848 elif test "x$TOOLCHAIN_TYPE" = "xclang"; then 65849 # For clang, the icecc compilerwrapper is needed. It usually resides next 65850 # to icecc-create-env. 65851 65852 65853 65854 # Publish this variable in the help. 65855 65856 65857 if [ -z "${ICECC_WRAPPER+x}" ]; then 65858 # The variable is not set by user, try to locate tool using the code snippet 65859 for ac_prog in compilerwrapper 65860 do 65861 # Extract the first word of "$ac_prog", so it can be a program name with args. 65862 set dummy $ac_prog; ac_word=$2 65863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 65864 $as_echo_n "checking for $ac_word... " >&6; } 65865 if ${ac_cv_path_ICECC_WRAPPER+:} false; then : 65866 $as_echo_n "(cached) " >&6 65867 else 65868 case $ICECC_WRAPPER in 65869 [\\/]* | ?:[\\/]*) 65870 ac_cv_path_ICECC_WRAPPER="$ICECC_WRAPPER" # Let the user override the test with a path. 65871 ;; 65872 *) 65873 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 65874 for as_dir in $PATH 65875 do 65876 IFS=$as_save_IFS 65877 test -z "$as_dir" && as_dir=. 65878 for ac_exec_ext in '' $ac_executable_extensions; do 65879 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 65880 ac_cv_path_ICECC_WRAPPER="$as_dir/$ac_word$ac_exec_ext" 65881 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 65882 break 2 65883 fi 65884 done 65885 done 65886 IFS=$as_save_IFS 65887 65888 ;; 65889 esac 65890 fi 65891 ICECC_WRAPPER=$ac_cv_path_ICECC_WRAPPER 65892 if test -n "$ICECC_WRAPPER"; then 65893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ICECC_WRAPPER" >&5 65894 $as_echo "$ICECC_WRAPPER" >&6; } 65895 else 65896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 65897 $as_echo "no" >&6; } 65898 fi 65899 65900 65901 test -n "$ICECC_WRAPPER" && break 65902 done 65903 65904 else 65905 # The variable is set, but is it from the command line or the environment? 65906 65907 # Try to remove the string !ICECC_WRAPPER! from our list. 65908 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!ICECC_WRAPPER!/} 65909 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 65910 # If it failed, the variable was not from the command line. Ignore it, 65911 # but warn the user (except for BASH, which is always set by the calling BASH). 65912 if test "xICECC_WRAPPER" != xBASH; then 65913 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of ICECC_WRAPPER from the environment. Use command line variables instead." >&5 65914 $as_echo "$as_me: WARNING: Ignoring value of ICECC_WRAPPER from the environment. Use command line variables instead." >&2;} 65915 fi 65916 # Try to locate tool using the code snippet 65917 for ac_prog in compilerwrapper 65918 do 65919 # Extract the first word of "$ac_prog", so it can be a program name with args. 65920 set dummy $ac_prog; ac_word=$2 65921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 65922 $as_echo_n "checking for $ac_word... " >&6; } 65923 if ${ac_cv_path_ICECC_WRAPPER+:} false; then : 65924 $as_echo_n "(cached) " >&6 65925 else 65926 case $ICECC_WRAPPER in 65927 [\\/]* | ?:[\\/]*) 65928 ac_cv_path_ICECC_WRAPPER="$ICECC_WRAPPER" # Let the user override the test with a path. 65929 ;; 65930 *) 65931 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 65932 for as_dir in $PATH 65933 do 65934 IFS=$as_save_IFS 65935 test -z "$as_dir" && as_dir=. 65936 for ac_exec_ext in '' $ac_executable_extensions; do 65937 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 65938 ac_cv_path_ICECC_WRAPPER="$as_dir/$ac_word$ac_exec_ext" 65939 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 65940 break 2 65941 fi 65942 done 65943 done 65944 IFS=$as_save_IFS 65945 65946 ;; 65947 esac 65948 fi 65949 ICECC_WRAPPER=$ac_cv_path_ICECC_WRAPPER 65950 if test -n "$ICECC_WRAPPER"; then 65951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ICECC_WRAPPER" >&5 65952 $as_echo "$ICECC_WRAPPER" >&6; } 65953 else 65954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 65955 $as_echo "no" >&6; } 65956 fi 65957 65958 65959 test -n "$ICECC_WRAPPER" && break 65960 done 65961 65962 else 65963 # If it succeeded, then it was overridden by the user. We will use it 65964 # for the tool. 65965 65966 # First remove it from the list of overridden variables, so we can test 65967 # for unknown variables in the end. 65968 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 65969 65970 # Check if we try to supply an empty value 65971 if test "x$ICECC_WRAPPER" = x; then 65972 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool ICECC_WRAPPER= (no value)" >&5 65973 $as_echo "$as_me: Setting user supplied tool ICECC_WRAPPER= (no value)" >&6;} 65974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ICECC_WRAPPER" >&5 65975 $as_echo_n "checking for ICECC_WRAPPER... " >&6; } 65976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 65977 $as_echo "disabled" >&6; } 65978 else 65979 # Check if the provided tool contains a complete path. 65980 tool_specified="$ICECC_WRAPPER" 65981 tool_basename="${tool_specified##*/}" 65982 if test "x$tool_basename" = "x$tool_specified"; then 65983 # A command without a complete path is provided, search $PATH. 65984 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool ICECC_WRAPPER=$tool_basename" >&5 65985 $as_echo "$as_me: Will search for user supplied tool ICECC_WRAPPER=$tool_basename" >&6;} 65986 # Extract the first word of "$tool_basename", so it can be a program name with args. 65987 set dummy $tool_basename; ac_word=$2 65988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 65989 $as_echo_n "checking for $ac_word... " >&6; } 65990 if ${ac_cv_path_ICECC_WRAPPER+:} false; then : 65991 $as_echo_n "(cached) " >&6 65992 else 65993 case $ICECC_WRAPPER in 65994 [\\/]* | ?:[\\/]*) 65995 ac_cv_path_ICECC_WRAPPER="$ICECC_WRAPPER" # Let the user override the test with a path. 65996 ;; 65997 *) 65998 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 65999 for as_dir in $PATH 66000 do 66001 IFS=$as_save_IFS 66002 test -z "$as_dir" && as_dir=. 66003 for ac_exec_ext in '' $ac_executable_extensions; do 66004 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 66005 ac_cv_path_ICECC_WRAPPER="$as_dir/$ac_word$ac_exec_ext" 66006 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 66007 break 2 66008 fi 66009 done 66010 done 66011 IFS=$as_save_IFS 66012 66013 ;; 66014 esac 66015 fi 66016 ICECC_WRAPPER=$ac_cv_path_ICECC_WRAPPER 66017 if test -n "$ICECC_WRAPPER"; then 66018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ICECC_WRAPPER" >&5 66019 $as_echo "$ICECC_WRAPPER" >&6; } 66020 else 66021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 66022 $as_echo "no" >&6; } 66023 fi 66024 66025 66026 if test "x$ICECC_WRAPPER" = x; then 66027 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 66028 fi 66029 else 66030 # Otherwise we believe it is a complete path. Use it as it is. 66031 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool ICECC_WRAPPER=$tool_specified" >&5 66032 $as_echo "$as_me: Will use user supplied tool ICECC_WRAPPER=$tool_specified" >&6;} 66033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ICECC_WRAPPER" >&5 66034 $as_echo_n "checking for ICECC_WRAPPER... " >&6; } 66035 if test ! -x "$tool_specified"; then 66036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 66037 $as_echo "not found" >&6; } 66038 as_fn_error $? "User supplied tool ICECC_WRAPPER=$tool_specified does not exist or is not executable" "$LINENO" 5 66039 fi 66040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 66041 $as_echo "$tool_specified" >&6; } 66042 fi 66043 fi 66044 fi 66045 66046 fi 66047 66048 66049 66050 if test "x$ICECC_WRAPPER" = x; then 66051 as_fn_error $? "Could not find required tool for ICECC_WRAPPER" "$LINENO" 5 66052 fi 66053 66054 66055 66056 ( cd ${CONFIGURESUPPORT_OUTPUTDIR}/icecc \ 66057 && ${ICECC_CREATE_ENV} --clang ${CC} ${ICECC_WRAPPER} > ${icecc_create_env_log} 2>&1 ) 66058 if test "$?" != "0"; then 66059 { $as_echo "$as_me:${as_lineno-$LINENO}: icecc-create-env output:" >&5 66060 $as_echo "$as_me: icecc-create-env output:" >&6;} 66061 cat ${icecc_create_env_log} 66062 as_fn_error $? "Failed to create icecc compiler environment" "$LINENO" 5 66063 fi 66064 66065 else 66066 as_fn_error $? "Can only create icecc compiler packages for toolchain types gcc and clang" "$LINENO" 5 66067 fi 66068 PATH="$old_path" 66069 # The bundle with the compiler gets a name based on checksums. Parse log file 66070 # to find it. 66071 ICECC_ENV_BUNDLE_BASENAME="`${SED} -n '/^creating/s/creating //p' ${icecc_create_env_log}`" 66072 ICECC_ENV_BUNDLE="${CONFIGURESUPPORT_OUTPUTDIR}/icecc/${ICECC_ENV_BUNDLE_BASENAME}" 66073 if test ! -f ${ICECC_ENV_BUNDLE}; then 66074 as_fn_error $? "icecc-create-env did not produce an environment ${ICECC_ENV_BUNDLE}" "$LINENO" 5 66075 fi 66076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for icecc build environment for target compiler" >&5 66077 $as_echo_n "checking for icecc build environment for target compiler... " >&6; } 66078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ICECC_ENV_BUNDLE}" >&5 66079 $as_echo "${ICECC_ENV_BUNDLE}" >&6; } 66080 ICECC="ICECC_VERSION=${ICECC_ENV_BUNDLE} ICECC_CC=${CC} ICECC_CXX=${CXX} ${ICECC_CMD}" 66081 66082 if test "x${COMPILE_TYPE}" = "xcross"; then 66083 # If cross compiling, create a separate env package for the build compiler 66084 # Assume "gcc" or "cc" is gcc and "clang" is clang. Otherwise bail. 66085 icecc_create_env_log_build="${CONFIGURESUPPORT_OUTPUTDIR}/icecc/icecc_create_env_build.log" 66086 if test "x${BUILD_CC##*/}" = "xgcc" || test "x${BUILD_CC##*/}" = "xcc"; then 66087 66088 ( cd ${CONFIGURESUPPORT_OUTPUTDIR}/icecc \ 66089 && ${ICECC_CREATE_ENV} ${icecc_gcc_arg} ${BUILD_CC} ${BUILD_CXX} > \ 66090 ${icecc_create_env_log_build} 2>&1 ) 66091 if test "$?" != "0"; then 66092 { $as_echo "$as_me:${as_lineno-$LINENO}: icecc-create-env output:" >&5 66093 $as_echo "$as_me: icecc-create-env output:" >&6;} 66094 cat \ 66095 ${icecc_create_env_log_build} 66096 as_fn_error $? "Failed to create icecc compiler environment" "$LINENO" 5 66097 fi 66098 66099 elif test "x${BUILD_CC##*/}" = "xclang"; then 66100 66101 ( cd ${CONFIGURESUPPORT_OUTPUTDIR}/icecc \ 66102 && ${ICECC_CREATE_ENV} --clang ${BUILD_CC} ${ICECC_WRAPPER} > ${icecc_create_env_log_build} 2>&1 ) 66103 if test "$?" != "0"; then 66104 { $as_echo "$as_me:${as_lineno-$LINENO}: icecc-create-env output:" >&5 66105 $as_echo "$as_me: icecc-create-env output:" >&6;} 66106 cat ${icecc_create_env_log_build} 66107 as_fn_error $? "Failed to create icecc compiler environment" "$LINENO" 5 66108 fi 66109 66110 else 66111 as_fn_error $? "Cannot create icecc compiler package for ${BUILD_CC}" "$LINENO" 5 66112 fi 66113 ICECC_ENV_BUNDLE_BASENAME="`${SED} -n '/^creating/s/creating //p' ${icecc_create_env_log_build}`" 66114 ICECC_ENV_BUNDLE="${CONFIGURESUPPORT_OUTPUTDIR}/icecc/${ICECC_ENV_BUNDLE_BASENAME}" 66115 if test ! -f ${ICECC_ENV_BUNDLE}; then 66116 as_fn_error $? "icecc-create-env did not produce an environment ${ICECC_ENV_BUNDLE}" "$LINENO" 5 66117 fi 66118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for icecc build environment for build compiler" >&5 66119 $as_echo_n "checking for icecc build environment for build compiler... " >&6; } 66120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ICECC_ENV_BUNDLE}" >&5 66121 $as_echo "${ICECC_ENV_BUNDLE}" >&6; } 66122 BUILD_ICECC="ICECC_VERSION=${ICECC_ENV_BUNDLE} ICECC_CC=${BUILD_CC} \ 66123 ICECC_CXX=${BUILD_CXX} ${ICECC_CMD}" 66124 else 66125 BUILD_ICECC="${ICECC}" 66126 fi 66127 66128 66129 fi 66130 66131 66132 # Can the C/C++ compiler use precompiled headers? 66133 66134 66135 ############################################################################### 66136 # 66137 # Can the C/C++ compiler use precompiled headers? 66138 # 66139 # Check whether --enable-precompiled-headers was given. 66140 if test "${enable_precompiled_headers+set}" = set; then : 66141 enableval=$enable_precompiled_headers; ENABLE_PRECOMPH=${enable_precompiled_headers} 66142 else 66143 ENABLE_PRECOMPH=yes 66144 fi 66145 66146 66147 USE_PRECOMPILED_HEADER=1 66148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking If precompiled header is enabled" >&5 66149 $as_echo_n "checking If precompiled header is enabled... " >&6; } 66150 if test "x$ENABLE_PRECOMPH" = xno; then 66151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, forced" >&5 66152 $as_echo "no, forced" >&6; } 66153 USE_PRECOMPILED_HEADER=0 66154 elif test "x$ICECC" != "x"; then 66155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, does not work effectively with icecc" >&5 66156 $as_echo "no, does not work effectively with icecc" >&6; } 66157 USE_PRECOMPILED_HEADER=0 66158 elif test "x$TOOLCHAIN_TYPE" = xsolstudio; then 66159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, does not work with Solaris Studio" >&5 66160 $as_echo "no, does not work with Solaris Studio" >&6; } 66161 USE_PRECOMPILED_HEADER=0 66162 elif test "x$TOOLCHAIN_TYPE" = xxlc; then 66163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, does not work with xlc" >&5 66164 $as_echo "no, does not work with xlc" >&6; } 66165 USE_PRECOMPILED_HEADER=0 66166 else 66167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 66168 $as_echo "yes" >&6; } 66169 fi 66170 66171 if test "x$ENABLE_PRECOMPH" = xyes; then 66172 # Check that the compiler actually supports precomp headers. 66173 if test "x$TOOLCHAIN_TYPE" = xgcc; then 66174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that precompiled headers work" >&5 66175 $as_echo_n "checking that precompiled headers work... " >&6; } 66176 echo "int alfa();" > conftest.h 66177 $CXX -x c++-header conftest.h -o conftest.hpp.gch 2>&5 >&5 66178 if test ! -f conftest.hpp.gch; then 66179 USE_PRECOMPILED_HEADER=0 66180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 66181 $as_echo "no" >&6; } 66182 else 66183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 66184 $as_echo "yes" >&6; } 66185 fi 66186 $RM conftest.h conftest.hpp.gch 66187 fi 66188 fi 66189 66190 66191 66192 66193 # Setup use of ccache, if available 66194 66195 # Check whether --enable-ccache was given. 66196 if test "${enable_ccache+set}" = set; then : 66197 enableval=$enable_ccache; 66198 fi 66199 66200 66201 CCACHE= 66202 CCACHE_STATUS= 66203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking is ccache enabled" >&5 66204 $as_echo_n "checking is ccache enabled... " >&6; } 66205 if test "x$enable_ccache" = xyes; then 66206 if test "x$TOOLCHAIN_TYPE" = "xgcc" -o "x$TOOLCHAIN_TYPE" = "xclang"; then 66207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 66208 $as_echo "yes" >&6; } 66209 OLD_PATH="$PATH" 66210 if test "x$TOOLCHAIN_PATH" != x; then 66211 PATH=$TOOLCHAIN_PATH:$PATH 66212 fi 66213 66214 66215 66216 # Publish this variable in the help. 66217 66218 66219 if [ -z "${CCACHE+x}" ]; then 66220 # The variable is not set by user, try to locate tool using the code snippet 66221 for ac_prog in ccache 66222 do 66223 # Extract the first word of "$ac_prog", so it can be a program name with args. 66224 set dummy $ac_prog; ac_word=$2 66225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 66226 $as_echo_n "checking for $ac_word... " >&6; } 66227 if ${ac_cv_path_CCACHE+:} false; then : 66228 $as_echo_n "(cached) " >&6 66229 else 66230 case $CCACHE in 66231 [\\/]* | ?:[\\/]*) 66232 ac_cv_path_CCACHE="$CCACHE" # Let the user override the test with a path. 66233 ;; 66234 *) 66235 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 66236 for as_dir in $PATH 66237 do 66238 IFS=$as_save_IFS 66239 test -z "$as_dir" && as_dir=. 66240 for ac_exec_ext in '' $ac_executable_extensions; do 66241 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 66242 ac_cv_path_CCACHE="$as_dir/$ac_word$ac_exec_ext" 66243 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 66244 break 2 66245 fi 66246 done 66247 done 66248 IFS=$as_save_IFS 66249 66250 ;; 66251 esac 66252 fi 66253 CCACHE=$ac_cv_path_CCACHE 66254 if test -n "$CCACHE"; then 66255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CCACHE" >&5 66256 $as_echo "$CCACHE" >&6; } 66257 else 66258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 66259 $as_echo "no" >&6; } 66260 fi 66261 66262 66263 test -n "$CCACHE" && break 66264 done 66265 66266 else 66267 # The variable is set, but is it from the command line or the environment? 66268 66269 # Try to remove the string !CCACHE! from our list. 66270 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CCACHE!/} 66271 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 66272 # If it failed, the variable was not from the command line. Ignore it, 66273 # but warn the user (except for BASH, which is always set by the calling BASH). 66274 if test "xCCACHE" != xBASH; then 66275 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CCACHE from the environment. Use command line variables instead." >&5 66276 $as_echo "$as_me: WARNING: Ignoring value of CCACHE from the environment. Use command line variables instead." >&2;} 66277 fi 66278 # Try to locate tool using the code snippet 66279 for ac_prog in ccache 66280 do 66281 # Extract the first word of "$ac_prog", so it can be a program name with args. 66282 set dummy $ac_prog; ac_word=$2 66283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 66284 $as_echo_n "checking for $ac_word... " >&6; } 66285 if ${ac_cv_path_CCACHE+:} false; then : 66286 $as_echo_n "(cached) " >&6 66287 else 66288 case $CCACHE in 66289 [\\/]* | ?:[\\/]*) 66290 ac_cv_path_CCACHE="$CCACHE" # Let the user override the test with a path. 66291 ;; 66292 *) 66293 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 66294 for as_dir in $PATH 66295 do 66296 IFS=$as_save_IFS 66297 test -z "$as_dir" && as_dir=. 66298 for ac_exec_ext in '' $ac_executable_extensions; do 66299 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 66300 ac_cv_path_CCACHE="$as_dir/$ac_word$ac_exec_ext" 66301 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 66302 break 2 66303 fi 66304 done 66305 done 66306 IFS=$as_save_IFS 66307 66308 ;; 66309 esac 66310 fi 66311 CCACHE=$ac_cv_path_CCACHE 66312 if test -n "$CCACHE"; then 66313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CCACHE" >&5 66314 $as_echo "$CCACHE" >&6; } 66315 else 66316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 66317 $as_echo "no" >&6; } 66318 fi 66319 66320 66321 test -n "$CCACHE" && break 66322 done 66323 66324 else 66325 # If it succeeded, then it was overridden by the user. We will use it 66326 # for the tool. 66327 66328 # First remove it from the list of overridden variables, so we can test 66329 # for unknown variables in the end. 66330 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 66331 66332 # Check if we try to supply an empty value 66333 if test "x$CCACHE" = x; then 66334 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool CCACHE= (no value)" >&5 66335 $as_echo "$as_me: Setting user supplied tool CCACHE= (no value)" >&6;} 66336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CCACHE" >&5 66337 $as_echo_n "checking for CCACHE... " >&6; } 66338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 66339 $as_echo "disabled" >&6; } 66340 else 66341 # Check if the provided tool contains a complete path. 66342 tool_specified="$CCACHE" 66343 tool_basename="${tool_specified##*/}" 66344 if test "x$tool_basename" = "x$tool_specified"; then 66345 # A command without a complete path is provided, search $PATH. 66346 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CCACHE=$tool_basename" >&5 66347 $as_echo "$as_me: Will search for user supplied tool CCACHE=$tool_basename" >&6;} 66348 # Extract the first word of "$tool_basename", so it can be a program name with args. 66349 set dummy $tool_basename; ac_word=$2 66350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 66351 $as_echo_n "checking for $ac_word... " >&6; } 66352 if ${ac_cv_path_CCACHE+:} false; then : 66353 $as_echo_n "(cached) " >&6 66354 else 66355 case $CCACHE in 66356 [\\/]* | ?:[\\/]*) 66357 ac_cv_path_CCACHE="$CCACHE" # Let the user override the test with a path. 66358 ;; 66359 *) 66360 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 66361 for as_dir in $PATH 66362 do 66363 IFS=$as_save_IFS 66364 test -z "$as_dir" && as_dir=. 66365 for ac_exec_ext in '' $ac_executable_extensions; do 66366 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 66367 ac_cv_path_CCACHE="$as_dir/$ac_word$ac_exec_ext" 66368 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 66369 break 2 66370 fi 66371 done 66372 done 66373 IFS=$as_save_IFS 66374 66375 ;; 66376 esac 66377 fi 66378 CCACHE=$ac_cv_path_CCACHE 66379 if test -n "$CCACHE"; then 66380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CCACHE" >&5 66381 $as_echo "$CCACHE" >&6; } 66382 else 66383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 66384 $as_echo "no" >&6; } 66385 fi 66386 66387 66388 if test "x$CCACHE" = x; then 66389 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 66390 fi 66391 else 66392 # Otherwise we believe it is a complete path. Use it as it is. 66393 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CCACHE=$tool_specified" >&5 66394 $as_echo "$as_me: Will use user supplied tool CCACHE=$tool_specified" >&6;} 66395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CCACHE" >&5 66396 $as_echo_n "checking for CCACHE... " >&6; } 66397 if test ! -x "$tool_specified"; then 66398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 66399 $as_echo "not found" >&6; } 66400 as_fn_error $? "User supplied tool CCACHE=$tool_specified does not exist or is not executable" "$LINENO" 5 66401 fi 66402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 66403 $as_echo "$tool_specified" >&6; } 66404 fi 66405 fi 66406 fi 66407 66408 fi 66409 66410 66411 66412 if test "x$CCACHE" = x; then 66413 as_fn_error $? "Could not find required tool for CCACHE" "$LINENO" 5 66414 fi 66415 66416 66417 PATH="$OLD_PATH" 66418 CCACHE_VERSION=`$CCACHE --version | head -n1 | $SED 's/[A-Za-z ]*//'` 66419 CCACHE_STATUS="Active ($CCACHE_VERSION)" 66420 else 66421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 66422 $as_echo "no" >&6; } 66423 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ccache is not supported with toolchain type $TOOLCHAIN_TYPE" >&5 66424 $as_echo "$as_me: WARNING: ccache is not supported with toolchain type $TOOLCHAIN_TYPE" >&2;} 66425 fi 66426 elif test "x$enable_ccache" = xno; then 66427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, explicitly disabled" >&5 66428 $as_echo "no, explicitly disabled" >&6; } 66429 CCACHE_STATUS="Disabled" 66430 elif test "x$enable_ccache" = x; then 66431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 66432 $as_echo "no" >&6; } 66433 else 66434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unknown" >&5 66435 $as_echo "unknown" >&6; } 66436 as_fn_error $? "--enable-ccache does not accept any parameters" "$LINENO" 5 66437 fi 66438 66439 66440 66441 # Check whether --with-ccache-dir was given. 66442 if test "${with_ccache_dir+set}" = set; then : 66443 withval=$with_ccache_dir; 66444 fi 66445 66446 66447 if test "x$with_ccache_dir" != x; then 66448 # When using a non home ccache directory, assume the use is to share ccache files 66449 # with other users. Thus change the umask. 66450 SET_CCACHE_DIR="CCACHE_DIR=$with_ccache_dir CCACHE_UMASK=002" 66451 if test "x$CCACHE" = x; then 66452 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --with-ccache-dir has no meaning when ccache is not enabled" >&5 66453 $as_echo "$as_me: WARNING: --with-ccache-dir has no meaning when ccache is not enabled" >&2;} 66454 fi 66455 fi 66456 66457 if test "x$CCACHE" != x; then 66458 66459 if test "x$CCACHE" != x; then 66460 if test "x$USE_PRECOMPILED_HEADER" = "x1"; then 66461 HAS_BAD_CCACHE=`$ECHO $CCACHE_VERSION | \ 66462 $GREP -e '^1.*' -e '^2.*' -e '^3\.0.*' -e '^3\.1\.[0123]$'` 66463 if test "x$HAS_BAD_CCACHE" != "x"; then 66464 as_fn_error $? "Precompiled headers requires ccache 3.1.4 or later, found $CCACHE_VERSION" "$LINENO" 5 66465 fi 66466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if C-compiler supports ccache precompiled headers" >&5 66467 $as_echo_n "checking if C-compiler supports ccache precompiled headers... " >&6; } 66468 CCACHE_PRECOMP_FLAG="-fpch-preprocess" 66469 PUSHED_FLAGS="$CXXFLAGS" 66470 CXXFLAGS="$CCACHE_PRECOMP_FLAG $CXXFLAGS" 66471 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 66472 /* end confdefs.h. */ 66473 66474 int 66475 main () 66476 { 66477 66478 ; 66479 return 0; 66480 } 66481 _ACEOF 66482 if ac_fn_cxx_try_compile "$LINENO"; then : 66483 CC_KNOWS_CCACHE_TRICK=yes 66484 else 66485 CC_KNOWS_CCACHE_TRICK=no 66486 fi 66487 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 66488 CXXFLAGS="$PUSHED_FLAGS" 66489 if test "x$CC_KNOWS_CCACHE_TRICK" = xyes; then 66490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 66491 $as_echo "yes" >&6; } 66492 CFLAGS_CCACHE="$CCACHE_PRECOMP_FLAG" 66493 66494 CCACHE_SLOPPINESS=pch_defines,time_macros 66495 else 66496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 66497 $as_echo "no" >&6; } 66498 as_fn_error $? "Cannot use ccache with precompiled headers without compiler support for $CCACHE_PRECOMP_FLAG" "$LINENO" 5 66499 fi 66500 fi 66501 66502 CCACHE="CCACHE_COMPRESS=1 $SET_CCACHE_DIR \ 66503 CCACHE_SLOPPINESS=$CCACHE_SLOPPINESS CCACHE_BASEDIR=$TOPDIR $CCACHE" 66504 66505 if test "x$SET_CCACHE_DIR" != x; then 66506 mkdir -p $CCACHE_DIR > /dev/null 2>&1 66507 chmod a+rwxs $CCACHE_DIR > /dev/null 2>&1 66508 fi 66509 fi 66510 66511 fi 66512 66513 66514 ############################################################################### 66515 # 66516 # And now the finish... 66517 # 66518 ############################################################################### 66519 66520 # Check for some common pitfalls 66521 66522 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 66523 file_to_test="$SRC_ROOT/LICENSE" 66524 if test `$STAT -c '%a' "$file_to_test"` -lt 400; then 66525 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 66526 fi 66527 fi 66528 66529 66530 # Did user specify any unknown variables? 66531 66532 if test "x$CONFIGURE_OVERRIDDEN_VARIABLES" != x; then 66533 # Replace the separating ! with spaces before presenting for end user. 66534 unknown_variables=${CONFIGURE_OVERRIDDEN_VARIABLES//!/ } 66535 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: The following variables might be unknown to configure: $unknown_variables" >&5 66536 $as_echo "$as_me: WARNING: The following variables might be unknown to configure: $unknown_variables" >&2;} 66537 fi 66538 66539 66540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if build directory is on local disk" >&5 66541 $as_echo_n "checking if build directory is on local disk... " >&6; } 66542 66543 # df -l lists only local disks; if the given directory is not found then 66544 # a non-zero exit code is given 66545 if test "x$DF" = x; then 66546 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 66547 # msys does not have df; use Windows "net use" instead. 66548 IS_NETWORK_DISK=`net use | grep \`pwd -W | cut -d ":" -f 1 | tr a-z A-Z\`:` 66549 if test "x$IS_NETWORK_DISK" = x; then 66550 OUTPUT_DIR_IS_LOCAL="yes" 66551 else 66552 OUTPUT_DIR_IS_LOCAL="no" 66553 fi 66554 else 66555 # No df here, say it's local 66556 OUTPUT_DIR_IS_LOCAL="yes" 66557 fi 66558 else 66559 if $DF -l $OUTPUT_ROOT > /dev/null 2>&1; then 66560 OUTPUT_DIR_IS_LOCAL="yes" 66561 else 66562 OUTPUT_DIR_IS_LOCAL="no" 66563 fi 66564 fi 66565 66566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OUTPUT_DIR_IS_LOCAL" >&5 66567 $as_echo "$OUTPUT_DIR_IS_LOCAL" >&6; } 66568 66569 66570 66571 # Check if the user has any old-style ALT_ variables set. 66572 FOUND_ALT_VARIABLES=`env | grep ^ALT_` 66573 66574 # Before generating output files, test if they exist. If they do, this is a reconfigure. 66575 # Since we can't properly handle the dependencies for this, warn the user about the situation 66576 if test -e $OUTPUT_ROOT/spec.gmk; then 66577 IS_RECONFIGURE=yes 66578 else 66579 IS_RECONFIGURE=no 66580 fi 66581 66582 66583 # At the end, call the custom hook. (Dummy macro if no custom sources available) 66584 66585 66586 # This needs to be done after CUSTOM_LATE_HOOK since we can setup custom features. 66587 66588 # Keep feature lists sorted and free of duplicates 66589 JVM_FEATURES_server="$($ECHO $($PRINTF '%s\n' $JVM_FEATURES_server | $SORT -u))" 66590 JVM_FEATURES_client="$($ECHO $($PRINTF '%s\n' $JVM_FEATURES_client | $SORT -u))" 66591 JVM_FEATURES_core="$($ECHO $($PRINTF '%s\n' $JVM_FEATURES_core | $SORT -u))" 66592 JVM_FEATURES_minimal="$($ECHO $($PRINTF '%s\n' $JVM_FEATURES_minimal | $SORT -u))" 66593 JVM_FEATURES_zero="$($ECHO $($PRINTF '%s\n' $JVM_FEATURES_zero | $SORT -u))" 66594 JVM_FEATURES_zeroshark="$($ECHO $($PRINTF '%s\n' $JVM_FEATURES_zeroshark | $SORT -u))" 66595 JVM_FEATURES_custom="$($ECHO $($PRINTF '%s\n' $JVM_FEATURES_custom | $SORT -u))" 66596 66597 # Validate features 66598 for variant in $JVM_VARIANTS; do 66599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking JVM features for JVM variant '$variant'" >&5 66600 $as_echo_n "checking JVM features for JVM variant '$variant'... " >&6; } 66601 features_var_name=JVM_FEATURES_$variant 66602 JVM_FEATURES_TO_TEST=${!features_var_name} 66603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JVM_FEATURES_TO_TEST" >&5 66604 $as_echo "$JVM_FEATURES_TO_TEST" >&6; } 66605 NEEDLE=${VALID_JVM_FEATURES// /$'\n'} 66606 STACK=${JVM_FEATURES_TO_TEST// /$'\n'} 66607 INVALID_FEATURES=`$GREP -Fvx "${NEEDLE}" <<< "${STACK}"` 66608 if test "x$INVALID_FEATURES" != x; then 66609 as_fn_error $? "Invalid JVM feature(s): $INVALID_FEATURES" "$LINENO" 5 66610 fi 66611 done 66612 66613 66614 # We're messing a bit with internal autoconf variables to put the config.status 66615 # in the output directory instead of the current directory. 66616 CONFIG_STATUS="$CONFIGURESUPPORT_OUTPUTDIR/config.status" 66617 66618 # Create the actual output files. Now the main work of configure is done. 66619 cat >confcache <<\_ACEOF 66620 # This file is a shell script that caches the results of configure 66621 # tests run on this system so they can be shared between configure 66622 # scripts and configure runs, see configure's option --config-cache. 66623 # It is not useful on other systems. If it contains results you don't 66624 # want to keep, you may remove or edit it. 66625 # 66626 # config.status only pays attention to the cache file if you give it 66627 # the --recheck option to rerun configure. 66628 # 66629 # `ac_cv_env_foo' variables (set or unset) will be overridden when 66630 # loading this file, other *unset* `ac_cv_foo' will be assigned the 66631 # following values. 66632 66633 _ACEOF 66634 66635 # The following way of writing the cache mishandles newlines in values, 66636 # but we know of no workaround that is simple, portable, and efficient. 66637 # So, we kill variables containing newlines. 66638 # Ultrix sh set writes to stderr and can't be redirected directly, 66639 # and sets the high bit in the cache file unless we assign to the vars. 66640 ( 66641 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 66642 eval ac_val=\$$ac_var 66643 case $ac_val in #( 66644 *${as_nl}*) 66645 case $ac_var in #( 66646 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 66647 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 66648 esac 66649 case $ac_var in #( 66650 _ | IFS | as_nl) ;; #( 66651 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 66652 *) { eval $ac_var=; unset $ac_var;} ;; 66653 esac ;; 66654 esac 66655 done 66656 66657 (set) 2>&1 | 66658 case $as_nl`(ac_space=' '; set) 2>&1` in #( 66659 *${as_nl}ac_space=\ *) 66660 # `set' does not quote correctly, so add quotes: double-quote 66661 # substitution turns \\\\ into \\, and sed turns \\ into \. 66662 sed -n \ 66663 "s/'/'\\\\''/g; 66664 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 66665 ;; #( 66666 *) 66667 # `set' quotes correctly as required by POSIX, so do not add quotes. 66668 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 66669 ;; 66670 esac | 66671 sort 66672 ) | 66673 sed ' 66674 /^ac_cv_env_/b end 66675 t clear 66676 :clear 66677 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 66678 t end 66679 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 66680 :end' >>confcache 66681 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 66682 if test -w "$cache_file"; then 66683 if test "x$cache_file" != "x/dev/null"; then 66684 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 66685 $as_echo "$as_me: updating cache $cache_file" >&6;} 66686 if test ! -f "$cache_file" || test -h "$cache_file"; then 66687 cat confcache >"$cache_file" 66688 else 66689 case $cache_file in #( 66690 */* | ?:*) 66691 mv -f confcache "$cache_file"$$ && 66692 mv -f "$cache_file"$$ "$cache_file" ;; #( 66693 *) 66694 mv -f confcache "$cache_file" ;; 66695 esac 66696 fi 66697 fi 66698 else 66699 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 66700 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 66701 fi 66702 fi 66703 rm -f confcache 66704 66705 test "x$prefix" = xNONE && prefix=$ac_default_prefix 66706 # Let make expand exec_prefix. 66707 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 66708 66709 # Transform confdefs.h into DEFS. 66710 # Protect against shell expansion while executing Makefile rules. 66711 # Protect against Makefile macro expansion. 66712 # 66713 # If the first sed substitution is executed (which looks for macros that 66714 # take arguments), then branch to the quote section. Otherwise, 66715 # look for a macro that doesn't take arguments. 66716 ac_script=' 66717 :mline 66718 /\\$/{ 66719 N 66720 s,\\\n,, 66721 b mline 66722 } 66723 t clear 66724 :clear 66725 s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g 66726 t quote 66727 s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g 66728 t quote 66729 b any 66730 :quote 66731 s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g 66732 s/\[/\\&/g 66733 s/\]/\\&/g 66734 s/\$/$$/g 66735 H 66736 :any 66737 ${ 66738 g 66739 s/^\n// 66740 s/\n/ /g 66741 p 66742 } 66743 ' 66744 DEFS=`sed -n "$ac_script" confdefs.h` 66745 66746 66747 ac_libobjs= 66748 ac_ltlibobjs= 66749 U= 66750 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 66751 # 1. Remove the extension, and $U if already installed. 66752 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 66753 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 66754 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 66755 # will be set to the directory where LIBOBJS objects are built. 66756 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 66757 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 66758 done 66759 LIBOBJS=$ac_libobjs 66760 66761 LTLIBOBJS=$ac_ltlibobjs 66762 66763 66764 66765 : "${CONFIG_STATUS=./config.status}" 66766 ac_write_fail=0 66767 ac_clean_files_save=$ac_clean_files 66768 ac_clean_files="$ac_clean_files $CONFIG_STATUS" 66769 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 66770 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 66771 as_write_fail=0 66772 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 66773 #! $SHELL 66774 # Generated by $as_me. 66775 # Run this file to recreate the current configuration. 66776 # Compiler output produced by configure, useful for debugging 66777 # configure, is in config.log if it exists. 66778 66779 debug=false 66780 ac_cs_recheck=false 66781 ac_cs_silent=false 66782 66783 SHELL=\${CONFIG_SHELL-$SHELL} 66784 export SHELL 66785 _ASEOF 66786 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 66787 ## -------------------- ## 66788 ## M4sh Initialization. ## 66789 ## -------------------- ## 66790 66791 # Be more Bourne compatible 66792 DUALCASE=1; export DUALCASE # for MKS sh 66793 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 66794 emulate sh 66795 NULLCMD=: 66796 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 66797 # is contrary to our usage. Disable this feature. 66798 alias -g '${1+"$@"}'='"$@"' 66799 setopt NO_GLOB_SUBST 66800 else 66801 case `(set -o) 2>/dev/null` in #( 66802 *posix*) : 66803 set -o posix ;; #( 66804 *) : 66805 ;; 66806 esac 66807 fi 66808 66809 66810 as_nl=' 66811 ' 66812 export as_nl 66813 # Printing a long string crashes Solaris 7 /usr/bin/printf. 66814 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 66815 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 66816 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 66817 # Prefer a ksh shell builtin over an external printf program on Solaris, 66818 # but without wasting forks for bash or zsh. 66819 if test -z "$BASH_VERSION$ZSH_VERSION" \ 66820 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 66821 as_echo='print -r --' 66822 as_echo_n='print -rn --' 66823 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 66824 as_echo='printf %s\n' 66825 as_echo_n='printf %s' 66826 else 66827 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 66828 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 66829 as_echo_n='/usr/ucb/echo -n' 66830 else 66831 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 66832 as_echo_n_body='eval 66833 arg=$1; 66834 case $arg in #( 66835 *"$as_nl"*) 66836 expr "X$arg" : "X\\(.*\\)$as_nl"; 66837 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 66838 esac; 66839 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 66840 ' 66841 export as_echo_n_body 66842 as_echo_n='sh -c $as_echo_n_body as_echo' 66843 fi 66844 export as_echo_body 66845 as_echo='sh -c $as_echo_body as_echo' 66846 fi 66847 66848 # The user is always right. 66849 if test "${PATH_SEPARATOR+set}" != set; then 66850 PATH_SEPARATOR=: 66851 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 66852 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 66853 PATH_SEPARATOR=';' 66854 } 66855 fi 66856 66857 66858 # IFS 66859 # We need space, tab and new line, in precisely that order. Quoting is 66860 # there to prevent editors from complaining about space-tab. 66861 # (If _AS_PATH_WALK were called with IFS unset, it would disable word 66862 # splitting by setting IFS to empty value.) 66863 IFS=" "" $as_nl" 66864 66865 # Find who we are. Look in the path if we contain no directory separator. 66866 as_myself= 66867 case $0 in #(( 66868 *[\\/]* ) as_myself=$0 ;; 66869 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 66870 for as_dir in $PATH 66871 do 66872 IFS=$as_save_IFS 66873 test -z "$as_dir" && as_dir=. 66874 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 66875 done 66876 IFS=$as_save_IFS 66877 66878 ;; 66879 esac 66880 # We did not find ourselves, most probably we were run as `sh COMMAND' 66881 # in which case we are not to be found in the path. 66882 if test "x$as_myself" = x; then 66883 as_myself=$0 66884 fi 66885 if test ! -f "$as_myself"; then 66886 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 66887 exit 1 66888 fi 66889 66890 # Unset variables that we do not need and which cause bugs (e.g. in 66891 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 66892 # suppresses any "Segmentation fault" message there. '((' could 66893 # trigger a bug in pdksh 5.2.14. 66894 for as_var in BASH_ENV ENV MAIL MAILPATH 66895 do eval test x\${$as_var+set} = xset \ 66896 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 66897 done 66898 PS1='$ ' 66899 PS2='> ' 66900 PS4='+ ' 66901 66902 # NLS nuisances. 66903 LC_ALL=C 66904 export LC_ALL 66905 LANGUAGE=C 66906 export LANGUAGE 66907 66908 # CDPATH. 66909 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH 66910 66911 66912 # as_fn_error STATUS ERROR [LINENO LOG_FD] 66913 # ---------------------------------------- 66914 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 66915 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the 66916 # script with STATUS, using 1 if that was 0. 66917 as_fn_error () 66918 { 66919 as_status=$1; test $as_status -eq 0 && as_status=1 66920 if test "$4"; then 66921 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 66922 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 66923 fi 66924 $as_echo "$as_me: error: $2" >&2 66925 as_fn_exit $as_status 66926 } # as_fn_error 66927 66928 66929 # as_fn_set_status STATUS 66930 # ----------------------- 66931 # Set $? to STATUS, without forking. 66932 as_fn_set_status () 66933 { 66934 return $1 66935 } # as_fn_set_status 66936 66937 # as_fn_exit STATUS 66938 # ----------------- 66939 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 66940 as_fn_exit () 66941 { 66942 set +e 66943 as_fn_set_status $1 66944 exit $1 66945 } # as_fn_exit 66946 66947 # as_fn_unset VAR 66948 # --------------- 66949 # Portably unset VAR. 66950 as_fn_unset () 66951 { 66952 { eval $1=; unset $1;} 66953 } 66954 as_unset=as_fn_unset 66955 # as_fn_append VAR VALUE 66956 # ---------------------- 66957 # Append the text in VALUE to the end of the definition contained in VAR. Take 66958 # advantage of any shell optimizations that allow amortized linear growth over 66959 # repeated appends, instead of the typical quadratic growth present in naive 66960 # implementations. 66961 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 66962 eval 'as_fn_append () 66963 { 66964 eval $1+=\$2 66965 }' 66966 else 66967 as_fn_append () 66968 { 66969 eval $1=\$$1\$2 66970 } 66971 fi # as_fn_append 66972 66973 # as_fn_arith ARG... 66974 # ------------------ 66975 # Perform arithmetic evaluation on the ARGs, and store the result in the 66976 # global $as_val. Take advantage of shells that can avoid forks. The arguments 66977 # must be portable across $(()) and expr. 66978 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 66979 eval 'as_fn_arith () 66980 { 66981 as_val=$(( $* )) 66982 }' 66983 else 66984 as_fn_arith () 66985 { 66986 as_val=`expr "$@" || test $? -eq 1` 66987 } 66988 fi # as_fn_arith 66989 66990 66991 if expr a : '\(a\)' >/dev/null 2>&1 && 66992 test "X`expr 00001 : '.*\(...\)'`" = X001; then 66993 as_expr=expr 66994 else 66995 as_expr=false 66996 fi 66997 66998 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 66999 as_basename=basename 67000 else 67001 as_basename=false 67002 fi 67003 67004 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 67005 as_dirname=dirname 67006 else 67007 as_dirname=false 67008 fi 67009 67010 as_me=`$as_basename -- "$0" || 67011 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 67012 X"$0" : 'X\(//\)$' \| \ 67013 X"$0" : 'X\(/\)' \| . 2>/dev/null || 67014 $as_echo X/"$0" | 67015 sed '/^.*\/\([^/][^/]*\)\/*$/{ 67016 s//\1/ 67017 q 67018 } 67019 /^X\/\(\/\/\)$/{ 67020 s//\1/ 67021 q 67022 } 67023 /^X\/\(\/\).*/{ 67024 s//\1/ 67025 q 67026 } 67027 s/.*/./; q'` 67028 67029 # Avoid depending upon Character Ranges. 67030 as_cr_letters='abcdefghijklmnopqrstuvwxyz' 67031 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 67032 as_cr_Letters=$as_cr_letters$as_cr_LETTERS 67033 as_cr_digits='0123456789' 67034 as_cr_alnum=$as_cr_Letters$as_cr_digits 67035 67036 ECHO_C= ECHO_N= ECHO_T= 67037 case `echo -n x` in #((((( 67038 -n*) 67039 case `echo 'xy\c'` in 67040 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 67041 xy) ECHO_C='\c';; 67042 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 67043 ECHO_T=' ';; 67044 esac;; 67045 *) 67046 ECHO_N='-n';; 67047 esac 67048 67049 rm -f conf$$ conf$$.exe conf$$.file 67050 if test -d conf$$.dir; then 67051 rm -f conf$$.dir/conf$$.file 67052 else 67053 rm -f conf$$.dir 67054 mkdir conf$$.dir 2>/dev/null 67055 fi 67056 if (echo >conf$$.file) 2>/dev/null; then 67057 if ln -s conf$$.file conf$$ 2>/dev/null; then 67058 as_ln_s='ln -s' 67059 # ... but there are two gotchas: 67060 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 67061 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 67062 # In both cases, we have to default to `cp -pR'. 67063 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 67064 as_ln_s='cp -pR' 67065 elif ln conf$$.file conf$$ 2>/dev/null; then 67066 as_ln_s=ln 67067 else 67068 as_ln_s='cp -pR' 67069 fi 67070 else 67071 as_ln_s='cp -pR' 67072 fi 67073 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 67074 rmdir conf$$.dir 2>/dev/null 67075 67076 67077 # as_fn_mkdir_p 67078 # ------------- 67079 # Create "$as_dir" as a directory, including parents if necessary. 67080 as_fn_mkdir_p () 67081 { 67082 67083 case $as_dir in #( 67084 -*) as_dir=./$as_dir;; 67085 esac 67086 test -d "$as_dir" || eval $as_mkdir_p || { 67087 as_dirs= 67088 while :; do 67089 case $as_dir in #( 67090 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 67091 *) as_qdir=$as_dir;; 67092 esac 67093 as_dirs="'$as_qdir' $as_dirs" 67094 as_dir=`$as_dirname -- "$as_dir" || 67095 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 67096 X"$as_dir" : 'X\(//\)[^/]' \| \ 67097 X"$as_dir" : 'X\(//\)$' \| \ 67098 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 67099 $as_echo X"$as_dir" | 67100 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 67101 s//\1/ 67102 q 67103 } 67104 /^X\(\/\/\)[^/].*/{ 67105 s//\1/ 67106 q 67107 } 67108 /^X\(\/\/\)$/{ 67109 s//\1/ 67110 q 67111 } 67112 /^X\(\/\).*/{ 67113 s//\1/ 67114 q 67115 } 67116 s/.*/./; q'` 67117 test -d "$as_dir" && break 67118 done 67119 test -z "$as_dirs" || eval "mkdir $as_dirs" 67120 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 67121 67122 67123 } # as_fn_mkdir_p 67124 if mkdir -p . 2>/dev/null; then 67125 as_mkdir_p='mkdir -p "$as_dir"' 67126 else 67127 test -d ./-p && rmdir ./-p 67128 as_mkdir_p=false 67129 fi 67130 67131 67132 # as_fn_executable_p FILE 67133 # ----------------------- 67134 # Test if FILE is an executable regular file. 67135 as_fn_executable_p () 67136 { 67137 test -f "$1" && test -x "$1" 67138 } # as_fn_executable_p 67139 as_test_x='test -x' 67140 as_executable_p=as_fn_executable_p 67141 67142 # Sed expression to map a string onto a valid CPP name. 67143 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 67144 67145 # Sed expression to map a string onto a valid variable name. 67146 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 67147 67148 67149 exec 6>&1 67150 ## ----------------------------------- ## 67151 ## Main body of $CONFIG_STATUS script. ## 67152 ## ----------------------------------- ## 67153 _ASEOF 67154 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 67155 67156 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 67157 # Save the log message, to keep $0 and so on meaningful, and to 67158 # report actual input values of CONFIG_FILES etc. instead of their 67159 # values after options handling. 67160 ac_log=" 67161 This file was extended by OpenJDK $as_me jdk9, which was 67162 generated by GNU Autoconf 2.69. Invocation command line was 67163 67164 CONFIG_FILES = $CONFIG_FILES 67165 CONFIG_HEADERS = $CONFIG_HEADERS 67166 CONFIG_LINKS = $CONFIG_LINKS 67167 CONFIG_COMMANDS = $CONFIG_COMMANDS 67168 $ $0 $@ 67169 67170 on `(hostname || uname -n) 2>/dev/null | sed 1q` 67171 " 67172 67173 _ACEOF 67174 67175 case $ac_config_files in *" 67176 "*) set x $ac_config_files; shift; ac_config_files=$*;; 67177 esac 67178 67179 67180 67181 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 67182 # Files that config.status was made for. 67183 config_files="$ac_config_files" 67184 67185 _ACEOF 67186 67187 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 67188 ac_cs_usage="\ 67189 \`$as_me' instantiates files and other configuration actions 67190 from templates according to the current configuration. Unless the files 67191 and actions are specified as TAGs, all are instantiated by default. 67192 67193 Usage: $0 [OPTION]... [TAG]... 67194 67195 -h, --help print this help, then exit 67196 -V, --version print version number and configuration settings, then exit 67197 --config print configuration, then exit 67198 -q, --quiet, --silent 67199 do not print progress messages 67200 -d, --debug don't remove temporary files 67201 --recheck update $as_me by reconfiguring in the same conditions 67202 --file=FILE[:TEMPLATE] 67203 instantiate the configuration file FILE 67204 67205 Configuration files: 67206 $config_files 67207 67208 Report bugs to <build-dev@openjdk.java.net>. 67209 OpenJDK home page: <http://openjdk.java.net>." 67210 67211 _ACEOF 67212 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 67213 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 67214 ac_cs_version="\\ 67215 OpenJDK config.status jdk9 67216 configured by $0, generated by GNU Autoconf 2.69, 67217 with options \\"\$ac_cs_config\\" 67218 67219 Copyright (C) 2012 Free Software Foundation, Inc. 67220 This config.status script is free software; the Free Software Foundation 67221 gives unlimited permission to copy, distribute and modify it." 67222 67223 ac_pwd='$ac_pwd' 67224 srcdir='$srcdir' 67225 AWK='$AWK' 67226 test -n "\$AWK" || AWK=awk 67227 _ACEOF 67228 67229 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 67230 # The default lists apply if the user does not specify any file. 67231 ac_need_defaults=: 67232 while test $# != 0 67233 do 67234 case $1 in 67235 --*=?*) 67236 ac_option=`expr "X$1" : 'X\([^=]*\)='` 67237 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 67238 ac_shift=: 67239 ;; 67240 --*=) 67241 ac_option=`expr "X$1" : 'X\([^=]*\)='` 67242 ac_optarg= 67243 ac_shift=: 67244 ;; 67245 *) 67246 ac_option=$1 67247 ac_optarg=$2 67248 ac_shift=shift 67249 ;; 67250 esac 67251 67252 case $ac_option in 67253 # Handling of the options. 67254 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 67255 ac_cs_recheck=: ;; 67256 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 67257 $as_echo "$ac_cs_version"; exit ;; 67258 --config | --confi | --conf | --con | --co | --c ) 67259 $as_echo "$ac_cs_config"; exit ;; 67260 --debug | --debu | --deb | --de | --d | -d ) 67261 debug=: ;; 67262 --file | --fil | --fi | --f ) 67263 $ac_shift 67264 case $ac_optarg in 67265 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 67266 '') as_fn_error $? "missing file argument" ;; 67267 esac 67268 as_fn_append CONFIG_FILES " '$ac_optarg'" 67269 ac_need_defaults=false;; 67270 --he | --h | --help | --hel | -h ) 67271 $as_echo "$ac_cs_usage"; exit ;; 67272 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 67273 | -silent | --silent | --silen | --sile | --sil | --si | --s) 67274 ac_cs_silent=: ;; 67275 67276 # This is an error. 67277 -*) as_fn_error $? "unrecognized option: \`$1' 67278 Try \`$0 --help' for more information." ;; 67279 67280 *) as_fn_append ac_config_targets " $1" 67281 ac_need_defaults=false ;; 67282 67283 esac 67284 shift 67285 done 67286 67287 ac_configure_extra_args= 67288 67289 if $ac_cs_silent; then 67290 exec 6>/dev/null 67291 ac_configure_extra_args="$ac_configure_extra_args --silent" 67292 fi 67293 67294 _ACEOF 67295 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 67296 if \$ac_cs_recheck; then 67297 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 67298 shift 67299 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 67300 CONFIG_SHELL='$SHELL' 67301 export CONFIG_SHELL 67302 exec "\$@" 67303 fi 67304 67305 _ACEOF 67306 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 67307 exec 5>>config.log 67308 { 67309 echo 67310 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 67311 ## Running $as_me. ## 67312 _ASBOX 67313 $as_echo "$ac_log" 67314 } >&5 67315 67316 _ACEOF 67317 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 67318 _ACEOF 67319 67320 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 67321 67322 # Handling of arguments. 67323 for ac_config_target in $ac_config_targets 67324 do 67325 case $ac_config_target in 67326 "$OUTPUT_ROOT/spec.gmk") CONFIG_FILES="$CONFIG_FILES $OUTPUT_ROOT/spec.gmk:$AUTOCONF_DIR/spec.gmk.in" ;; 67327 "$OUTPUT_ROOT/bootcycle-spec.gmk") CONFIG_FILES="$CONFIG_FILES $OUTPUT_ROOT/bootcycle-spec.gmk:$AUTOCONF_DIR/bootcycle-spec.gmk.in" ;; 67328 "$OUTPUT_ROOT/buildjdk-spec.gmk") CONFIG_FILES="$CONFIG_FILES $OUTPUT_ROOT/buildjdk-spec.gmk:$AUTOCONF_DIR/buildjdk-spec.gmk.in" ;; 67329 "$OUTPUT_ROOT/compare.sh") CONFIG_FILES="$CONFIG_FILES $OUTPUT_ROOT/compare.sh:$AUTOCONF_DIR/compare.sh.in" ;; 67330 "$OUTPUT_ROOT/Makefile") CONFIG_FILES="$CONFIG_FILES $OUTPUT_ROOT/Makefile:$AUTOCONF_DIR/Makefile.in" ;; 67331 67332 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 67333 esac 67334 done 67335 67336 67337 # If the user did not use the arguments to specify the items to instantiate, 67338 # then the envvar interface is used. Set only those that are not. 67339 # We use the long form for the default assignment because of an extremely 67340 # bizarre bug on SunOS 4.1.3. 67341 if $ac_need_defaults; then 67342 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 67343 fi 67344 67345 # Have a temporary directory for convenience. Make it in the build tree 67346 # simply because there is no reason against having it here, and in addition, 67347 # creating and moving files from /tmp can sometimes cause problems. 67348 # Hook for its removal unless debugging. 67349 # Note that there is a small window in which the directory will not be cleaned: 67350 # after its creation but before its name has been assigned to `$tmp'. 67351 $debug || 67352 { 67353 tmp= ac_tmp= 67354 trap 'exit_status=$? 67355 : "${ac_tmp:=$tmp}" 67356 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 67357 ' 0 67358 trap 'as_fn_exit 1' 1 2 13 15 67359 } 67360 # Create a (secure) tmp directory for tmp files. 67361 67362 { 67363 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 67364 test -d "$tmp" 67365 } || 67366 { 67367 tmp=./conf$$-$RANDOM 67368 (umask 077 && mkdir "$tmp") 67369 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 67370 ac_tmp=$tmp 67371 67372 # Set up the scripts for CONFIG_FILES section. 67373 # No need to generate them if there are no CONFIG_FILES. 67374 # This happens for instance with `./config.status config.h'. 67375 if test -n "$CONFIG_FILES"; then 67376 67377 67378 ac_cr=`echo X | tr X '\015'` 67379 # On cygwin, bash can eat \r inside `` if the user requested igncr. 67380 # But we know of no other shell where ac_cr would be empty at this 67381 # point, so we can use a bashism as a fallback. 67382 if test "x$ac_cr" = x; then 67383 eval ac_cr=\$\'\\r\' 67384 fi 67385 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 67386 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 67387 ac_cs_awk_cr='\\r' 67388 else 67389 ac_cs_awk_cr=$ac_cr 67390 fi 67391 67392 echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 67393 _ACEOF 67394 67395 67396 { 67397 echo "cat >conf$$subs.awk <<_ACEOF" && 67398 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 67399 echo "_ACEOF" 67400 } >conf$$subs.sh || 67401 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 67402 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 67403 ac_delim='%!_!# ' 67404 for ac_last_try in false false false false false :; do 67405 . ./conf$$subs.sh || 67406 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 67407 67408 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 67409 if test $ac_delim_n = $ac_delim_num; then 67410 break 67411 elif $ac_last_try; then 67412 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 67413 else 67414 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 67415 fi 67416 done 67417 rm -f conf$$subs.sh 67418 67419 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 67420 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 67421 _ACEOF 67422 sed -n ' 67423 h 67424 s/^/S["/; s/!.*/"]=/ 67425 p 67426 g 67427 s/^[^!]*!// 67428 :repl 67429 t repl 67430 s/'"$ac_delim"'$// 67431 t delim 67432 :nl 67433 h 67434 s/\(.\{148\}\)..*/\1/ 67435 t more1 67436 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 67437 p 67438 n 67439 b repl 67440 :more1 67441 s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 67442 p 67443 g 67444 s/.\{148\}// 67445 t nl 67446 :delim 67447 h 67448 s/\(.\{148\}\)..*/\1/ 67449 t more2 67450 s/["\\]/\\&/g; s/^/"/; s/$/"/ 67451 p 67452 b 67453 :more2 67454 s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 67455 p 67456 g 67457 s/.\{148\}// 67458 t delim 67459 ' <conf$$subs.awk | sed ' 67460 /^[^""]/{ 67461 N 67462 s/\n// 67463 } 67464 ' >>$CONFIG_STATUS || ac_write_fail=1 67465 rm -f conf$$subs.awk 67466 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 67467 _ACAWK 67468 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 67469 for (key in S) S_is_set[key] = 1 67470 FS = "" 67471 67472 } 67473 { 67474 line = $ 0 67475 nfields = split(line, field, "@") 67476 substed = 0 67477 len = length(field[1]) 67478 for (i = 2; i < nfields; i++) { 67479 key = field[i] 67480 keylen = length(key) 67481 if (S_is_set[key]) { 67482 value = S[key] 67483 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 67484 len += length(value) + length(field[++i]) 67485 substed = 1 67486 } else 67487 len += 1 + keylen 67488 } 67489 67490 print line 67491 } 67492 67493 _ACAWK 67494 _ACEOF 67495 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 67496 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 67497 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 67498 else 67499 cat 67500 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 67501 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 67502 _ACEOF 67503 67504 # VPATH may cause trouble with some makes, so we remove sole $(srcdir), 67505 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 67506 # trailing colons and then remove the whole line if VPATH becomes empty 67507 # (actually we leave an empty line to preserve line numbers). 67508 if test "x$srcdir" = x.; then 67509 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 67510 h 67511 s/// 67512 s/^/:/ 67513 s/[ ]*$/:/ 67514 s/:\$(srcdir):/:/g 67515 s/:\${srcdir}:/:/g 67516 s/:@srcdir@:/:/g 67517 s/^:*// 67518 s/:*$// 67519 x 67520 s/\(=[ ]*\).*/\1/ 67521 G 67522 s/\n// 67523 s/^[^=]*=[ ]*$// 67524 }' 67525 fi 67526 67527 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 67528 fi # test -n "$CONFIG_FILES" 67529 67530 67531 eval set X " :F $CONFIG_FILES " 67532 shift 67533 for ac_tag 67534 do 67535 case $ac_tag in 67536 :[FHLC]) ac_mode=$ac_tag; continue;; 67537 esac 67538 case $ac_mode$ac_tag in 67539 :[FHL]*:*);; 67540 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 67541 :[FH]-) ac_tag=-:-;; 67542 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 67543 esac 67544 ac_save_IFS=$IFS 67545 IFS=: 67546 set x $ac_tag 67547 IFS=$ac_save_IFS 67548 shift 67549 ac_file=$1 67550 shift 67551 67552 case $ac_mode in 67553 :L) ac_source=$1;; 67554 :[FH]) 67555 ac_file_inputs= 67556 for ac_f 67557 do 67558 case $ac_f in 67559 -) ac_f="$ac_tmp/stdin";; 67560 *) # Look for the file first in the build tree, then in the source tree 67561 # (if the path is not absolute). The absolute path cannot be DOS-style, 67562 # because $ac_f cannot contain `:'. 67563 test -f "$ac_f" || 67564 case $ac_f in 67565 [\\/$]*) false;; 67566 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 67567 esac || 67568 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 67569 esac 67570 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 67571 as_fn_append ac_file_inputs " '$ac_f'" 67572 done 67573 67574 # Let's still pretend it is `configure' which instantiates (i.e., don't 67575 # use $as_me), people would be surprised to read: 67576 # /* config.h. Generated by config.status. */ 67577 configure_input='Generated from '` 67578 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 67579 `' by configure.' 67580 if test x"$ac_file" != x-; then 67581 configure_input="$ac_file. $configure_input" 67582 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 67583 $as_echo "$as_me: creating $ac_file" >&6;} 67584 fi 67585 # Neutralize special characters interpreted by sed in replacement strings. 67586 case $configure_input in #( 67587 *\&* | *\|* | *\\* ) 67588 ac_sed_conf_input=`$as_echo "$configure_input" | 67589 sed 's/[\\\\&|]/\\\\&/g'`;; #( 67590 *) ac_sed_conf_input=$configure_input;; 67591 esac 67592 67593 case $ac_tag in 67594 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 67595 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 67596 esac 67597 ;; 67598 esac 67599 67600 ac_dir=`$as_dirname -- "$ac_file" || 67601 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 67602 X"$ac_file" : 'X\(//\)[^/]' \| \ 67603 X"$ac_file" : 'X\(//\)$' \| \ 67604 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 67605 $as_echo X"$ac_file" | 67606 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 67607 s//\1/ 67608 q 67609 } 67610 /^X\(\/\/\)[^/].*/{ 67611 s//\1/ 67612 q 67613 } 67614 /^X\(\/\/\)$/{ 67615 s//\1/ 67616 q 67617 } 67618 /^X\(\/\).*/{ 67619 s//\1/ 67620 q 67621 } 67622 s/.*/./; q'` 67623 as_dir="$ac_dir"; as_fn_mkdir_p 67624 ac_builddir=. 67625 67626 case "$ac_dir" in 67627 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 67628 *) 67629 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 67630 # A ".." for each directory in $ac_dir_suffix. 67631 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 67632 case $ac_top_builddir_sub in 67633 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 67634 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 67635 esac ;; 67636 esac 67637 ac_abs_top_builddir=$ac_pwd 67638 ac_abs_builddir=$ac_pwd$ac_dir_suffix 67639 # for backward compatibility: 67640 ac_top_builddir=$ac_top_build_prefix 67641 67642 case $srcdir in 67643 .) # We are building in place. 67644 ac_srcdir=. 67645 ac_top_srcdir=$ac_top_builddir_sub 67646 ac_abs_top_srcdir=$ac_pwd ;; 67647 [\\/]* | ?:[\\/]* ) # Absolute name. 67648 ac_srcdir=$srcdir$ac_dir_suffix; 67649 ac_top_srcdir=$srcdir 67650 ac_abs_top_srcdir=$srcdir ;; 67651 *) # Relative name. 67652 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 67653 ac_top_srcdir=$ac_top_build_prefix$srcdir 67654 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 67655 esac 67656 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 67657 67658 67659 case $ac_mode in 67660 :F) 67661 # 67662 # CONFIG_FILE 67663 # 67664 67665 _ACEOF 67666 67667 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 67668 # If the template does not know about datarootdir, expand it. 67669 # FIXME: This hack should be removed a few years after 2.60. 67670 ac_datarootdir_hack=; ac_datarootdir_seen= 67671 ac_sed_dataroot=' 67672 /datarootdir/ { 67673 p 67674 q 67675 } 67676 /@datadir@/p 67677 /@docdir@/p 67678 /@infodir@/p 67679 /@localedir@/p 67680 /@mandir@/p' 67681 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 67682 *datarootdir*) ac_datarootdir_seen=yes;; 67683 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 67684 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 67685 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 67686 _ACEOF 67687 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 67688 ac_datarootdir_hack=' 67689 s&@datadir@&$datadir&g 67690 s&@docdir@&$docdir&g 67691 s&@infodir@&$infodir&g 67692 s&@localedir@&$localedir&g 67693 s&@mandir@&$mandir&g 67694 s&\\\${datarootdir}&$datarootdir&g' ;; 67695 esac 67696 _ACEOF 67697 67698 # Neutralize VPATH when `$srcdir' = `.'. 67699 # Shell code in configure.ac might set extrasub. 67700 # FIXME: do we really want to maintain this feature? 67701 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 67702 ac_sed_extra="$ac_vpsub 67703 $extrasub 67704 _ACEOF 67705 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 67706 :t 67707 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b 67708 s|@configure_input@|$ac_sed_conf_input|;t t 67709 s&@top_builddir@&$ac_top_builddir_sub&;t t 67710 s&@top_build_prefix@&$ac_top_build_prefix&;t t 67711 s&@srcdir@&$ac_srcdir&;t t 67712 s&@abs_srcdir@&$ac_abs_srcdir&;t t 67713 s&@top_srcdir@&$ac_top_srcdir&;t t 67714 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 67715 s&@builddir@&$ac_builddir&;t t 67716 s&@abs_builddir@&$ac_abs_builddir&;t t 67717 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 67718 $ac_datarootdir_hack 67719 " 67720 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 67721 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 67722 67723 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 67724 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 67725 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 67726 "$ac_tmp/out"`; test -z "$ac_out"; } && 67727 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 67728 which seems to be undefined. Please make sure it is defined" >&5 67729 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 67730 which seems to be undefined. Please make sure it is defined" >&2;} 67731 67732 rm -f "$ac_tmp/stdin" 67733 case $ac_file in 67734 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 67735 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 67736 esac \ 67737 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 67738 ;; 67739 67740 67741 67742 esac 67743 67744 done # for ac_tag 67745 67746 67747 as_fn_exit 0 67748 _ACEOF 67749 ac_clean_files=$ac_clean_files_save 67750 67751 test $ac_write_fail = 0 || 67752 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 67753 67754 67755 # configure is writing to config.log, and then calls config.status. 67756 # config.status does its own redirection, appending to config.log. 67757 # Unfortunately, on DOS this fails, as config.log is still kept open 67758 # by configure, so config.status won't be able to write to it; its 67759 # output is simply discarded. So we exec the FD to /dev/null, 67760 # effectively closing config.log, so it can be properly (re)opened and 67761 # appended to by config.status. When coming back to configure, we 67762 # need to make the FD available again. 67763 if test "$no_create" != yes; then 67764 ac_cs_success=: 67765 ac_config_status_args= 67766 test "$silent" = yes && 67767 ac_config_status_args="$ac_config_status_args --quiet" 67768 exec 5>/dev/null 67769 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 67770 exec 5>>config.log 67771 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 67772 # would make configure fail if this is the last instruction. 67773 $ac_cs_success || as_fn_exit 1 67774 fi 67775 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 67776 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 67777 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 67778 fi 67779 67780 67781 # After AC_OUTPUT, we need to do final work 67782 67783 67784 # Try to move config.log (generated by autoconf) to the configure-support directory. 67785 if test -e ./config.log; then 67786 $MV -f ./config.log "$CONFIGURESUPPORT_OUTPUTDIR/config.log" 2> /dev/null 67787 fi 67788 67789 # Rotate our log file (configure.log) 67790 if test -e "$OUTPUT_ROOT/configure.log.old"; then 67791 $RM -f "$OUTPUT_ROOT/configure.log.old" 67792 fi 67793 if test -e "$OUTPUT_ROOT/configure.log"; then 67794 $MV -f "$OUTPUT_ROOT/configure.log" "$OUTPUT_ROOT/configure.log.old" 2> /dev/null 67795 fi 67796 67797 # Move configure.log from current directory to the build output root 67798 if test -e ./configure.log; then 67799 $MV -f ./configure.log "$OUTPUT_ROOT/configure.log" 2> /dev/null 67800 fi 67801 67802 # Make the compare script executable 67803 $CHMOD +x $OUTPUT_ROOT/compare.sh 67804 67805 67806 # Finally output some useful information to the user 67807 67808 # Finally output some useful information to the user 67809 67810 printf "\n" 67811 printf "====================================================\n" 67812 if test "x$no_create" != "xyes"; then 67813 if test "x$IS_RECONFIGURE" != "xyes"; then 67814 printf "A new configuration has been successfully created in\n%s\n" "$OUTPUT_ROOT" 67815 else 67816 printf "The existing configuration has been successfully updated in\n%s\n" "$OUTPUT_ROOT" 67817 fi 67818 else 67819 if test "x$IS_RECONFIGURE" != "xyes"; then 67820 printf "A configuration has been successfully checked but not created\n" 67821 else 67822 printf "The existing configuration has been successfully checked in\n%s\n" "$OUTPUT_ROOT" 67823 fi 67824 fi 67825 if test "x$CONFIGURE_COMMAND_LINE" != x; then 67826 printf "using configure arguments '$CONFIGURE_COMMAND_LINE'.\n" 67827 else 67828 printf "using default settings.\n" 67829 fi 67830 67831 printf "\n" 67832 printf "Configuration summary:\n" 67833 printf "* Debug level: $DEBUG_LEVEL\n" 67834 printf "* HS debug level: $HOTSPOT_DEBUG_LEVEL\n" 67835 printf "* JDK variant: $JDK_VARIANT\n" 67836 printf "* JVM variants: $JVM_VARIANTS\n" 67837 printf "* OpenJDK target: OS: $OPENJDK_TARGET_OS, CPU architecture: $OPENJDK_TARGET_CPU_ARCH, address length: $OPENJDK_TARGET_CPU_BITS\n" 67838 printf "* Version string: $VERSION_STRING ($VERSION_SHORT)\n" 67839 67840 printf "\n" 67841 printf "Tools summary:\n" 67842 if test "x$OPENJDK_BUILD_OS" = "xwindows"; then 67843 printf "* Environment: $WINDOWS_ENV_VENDOR version $WINDOWS_ENV_VERSION (root at $WINDOWS_ENV_ROOT_PATH)\n" 67844 fi 67845 printf "* Boot JDK: $BOOT_JDK_VERSION (at $BOOT_JDK)\n" 67846 if test "x$TOOLCHAIN_VERSION" != "x"; then 67847 print_version=" $TOOLCHAIN_VERSION" 67848 fi 67849 printf "* Toolchain: $TOOLCHAIN_TYPE ($TOOLCHAIN_DESCRIPTION$print_version)\n" 67850 printf "* C Compiler: Version $CC_VERSION_NUMBER (at $CC)\n" 67851 printf "* C++ Compiler: Version $CXX_VERSION_NUMBER (at $CXX)\n" 67852 67853 printf "\n" 67854 printf "Build performance summary:\n" 67855 printf "* Cores to use: $JOBS\n" 67856 printf "* Memory limit: $MEMORY_SIZE MB\n" 67857 if test "x$CCACHE_STATUS" != "x"; then 67858 printf "* ccache status: $CCACHE_STATUS\n" 67859 fi 67860 printf "\n" 67861 67862 if test "x$BUILDING_MULTIPLE_JVM_VARIANTS" = "xtrue"; then 67863 printf "NOTE: You have requested to build more than one version of the JVM, which\n" 67864 printf "will result in longer build times.\n" 67865 printf "\n" 67866 fi 67867 67868 if test "x$FOUND_ALT_VARIABLES" != "x"; then 67869 printf "WARNING: You have old-style ALT_ environment variables set.\n" 67870 printf "These are not respected, and will be ignored. It is recommended\n" 67871 printf "that you clean your environment. The following variables are set:\n" 67872 printf "$FOUND_ALT_VARIABLES\n" 67873 printf "\n" 67874 fi 67875 67876 if test "x$OUTPUT_DIR_IS_LOCAL" != "xyes"; then 67877 printf "WARNING: Your build output directory is not on a local disk.\n" 67878 printf "This will severely degrade build performance!\n" 67879 printf "It is recommended that you create an output directory on a local disk,\n" 67880 printf "and run the configure script again from that directory.\n" 67881 printf "\n" 67882 fi 67883 67884 if test "x$IS_RECONFIGURE" = "xyes" && test "x$no_create" != "xyes"; then 67885 printf "WARNING: The result of this configuration has overridden an older\n" 67886 printf "configuration. You *should* run 'make clean' to make sure you get a\n" 67887 printf "proper build. Failure to do so might result in strange build problems.\n" 67888 printf "\n" 67889 fi 67890 67891 if test "x$IS_RECONFIGURE" != "xyes" && test "x$no_create" = "xyes"; then 67892 printf "WARNING: The result of this configuration was not saved.\n" 67893 printf "You should run without '--no-create | -n' to create the configuration.\n" 67894 printf "\n" 67895 fi 67896 67897 67898 67899 # Locate config.log. 67900 if test -e "$CONFIGURESUPPORT_OUTPUTDIR/config.log"; then 67901 CONFIG_LOG_PATH="$CONFIGURESUPPORT_OUTPUTDIR" 67902 elif test -e "./config.log"; then 67903 CONFIG_LOG_PATH="." 67904 fi 67905 67906 if test -e "$CONFIG_LOG_PATH/config.log"; then 67907 $GREP '^configure:.*: WARNING:' "$CONFIG_LOG_PATH/config.log" > /dev/null 2>&1 67908 if test $? -eq 0; then 67909 printf "The following warnings were produced. Repeated here for convenience:\n" 67910 # We must quote sed expression (using []) to stop m4 from eating the []. 67911 $GREP '^configure:.*: WARNING:' "$CONFIG_LOG_PATH/config.log" | $SED -e 's/^configure:[0-9]*: //' 67912 printf "\n" 67913 fi 67914 fi 67915