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_LIB_FILE 675 ENABLE_LIBFFI_BUNDLING 676 LIBFFI_LIBS 677 LIBFFI_CFLAGS 678 ALSA_LIBS 679 ALSA_CFLAGS 680 FREETYPE_BUNDLE_LIB_PATH 681 FREETYPE_LIBS 682 FREETYPE_CFLAGS 683 CUPS_CFLAGS 684 X_EXTRA_LIBS 685 X_LIBS 686 X_PRE_LIBS 687 X_CFLAGS 688 XMKMF 689 MSVCP_DLL 690 MSVCR_DLL 691 LIBCXX 692 FIXPATH_DETACH_FLAG 693 FIXPATH 694 BUILD_GTEST 695 VALID_JVM_FEATURES 696 JVM_FEATURES_custom 697 JVM_FEATURES_zeroshark 698 JVM_FEATURES_zero 699 JVM_FEATURES_minimal 700 JVM_FEATURES_core 701 JVM_FEATURES_client 702 JVM_FEATURES_server 703 INCLUDE_DTRACE 704 GCOV_ENABLED 705 ZIP_EXTERNAL_DEBUG_SYMBOLS 706 COPY_DEBUG_SYMBOLS 707 COMPILE_WITH_DEBUG_SYMBOLS 708 CFLAGS_WARNINGS_ARE_ERRORS 709 BUILD_CC_DISABLE_WARNING_PREFIX 710 DISABLE_WARNING_PREFIX 711 HOTSPOT_SET_WARNINGS_AS_ERRORS 712 WARNINGS_AS_ERRORS 713 COMPILER_SUPPORTS_TARGET_BITS_FLAG 714 ZERO_ARCHFLAG 715 LDFLAGS_TESTEXE 716 LDFLAGS_TESTLIB 717 CXXFLAGS_TESTEXE 718 CXXFLAGS_TESTLIB 719 CFLAGS_TESTEXE 720 CFLAGS_TESTLIB 721 OPENJDK_BUILD_JVM_LIBS 722 OPENJDK_BUILD_JVM_ASFLAGS 723 OPENJDK_BUILD_JVM_LDFLAGS 724 OPENJDK_BUILD_JVM_CFLAGS 725 OPENJDK_BUILD_LDFLAGS_HASH_STYLE 726 OPENJDK_BUILD_LDFLAGS_CXX_JDK 727 OPENJDK_BUILD_JDKEXE_LIBS 728 OPENJDK_BUILD_JDKLIB_LIBS 729 OPENJDK_BUILD_LDFLAGS_JDKEXE 730 OPENJDK_BUILD_LDFLAGS_JDKLIB 731 OPENJDK_BUILD_CXXFLAGS_JDKEXE 732 OPENJDK_BUILD_CXXFLAGS_JDKLIB 733 OPENJDK_BUILD_CFLAGS_JDKEXE 734 OPENJDK_BUILD_CFLAGS_JDKLIB 735 OPENJDK_BUILD_CXXSTD_CXXFLAG 736 JVM_LIBS 737 JVM_ASFLAGS 738 JVM_LDFLAGS 739 JVM_CFLAGS 740 LDFLAGS_HASH_STYLE 741 LDFLAGS_CXX_JDK 742 JDKEXE_LIBS 743 JDKLIB_LIBS 744 LDFLAGS_JDKEXE 745 LDFLAGS_JDKLIB 746 CXXFLAGS_JDKEXE 747 CXXFLAGS_JDKLIB 748 CFLAGS_JDKEXE 749 CFLAGS_JDKLIB 750 MACOSX_VERSION_MIN 751 CXXSTD_CXXFLAG 752 CXX_O_FLAG_SIZE 753 CXX_O_FLAG_NONE 754 CXX_O_FLAG_DEBUG 755 CXX_O_FLAG_NORM 756 CXX_O_FLAG_HI 757 CXX_O_FLAG_HIGHEST 758 CXX_O_FLAG_HIGHEST_JVM 759 C_O_FLAG_SIZE 760 C_O_FLAG_NONE 761 C_O_FLAG_DEBUG 762 C_O_FLAG_NORM 763 C_O_FLAG_HI 764 C_O_FLAG_HIGHEST 765 C_O_FLAG_HIGHEST_JVM 766 JVM_CFLAGS_SYMBOLS 767 CXXFLAGS_DEBUG_SYMBOLS 768 CFLAGS_DEBUG_SYMBOLS 769 CXX_FLAG_DEPS 770 C_FLAG_DEPS 771 SHARED_LIBRARY_FLAGS 772 SET_SHARED_LIBRARY_MAPFILE 773 SET_SHARED_LIBRARY_NAME 774 SET_SHARED_LIBRARY_ORIGIN 775 SET_EXECUTABLE_ORIGIN 776 CXX_FLAG_REORDER 777 C_FLAG_REORDER 778 JVM_RCFLAGS 779 RC_FLAGS 780 AR_OUT_OPTION 781 LD_OUT_OPTION 782 EXE_OUT_OPTION 783 CC_OUT_OPTION 784 STRIPFLAGS 785 ARFLAGS 786 COMPILER_BINDCMD_FILE_FLAG 787 COMPILER_COMMAND_FILE_FLAG 788 COMPILER_TARGET_BITS_FLAG 789 JT_HOME 790 JTREGEXE 791 HOTSPOT_TOOLCHAIN_TYPE 792 USING_BROKEN_SUSE_LD 793 PACKAGE_PATH 794 BUILD_AS 795 BUILD_LDCXX 796 BUILD_LD 797 BUILD_STRIP 798 BUILD_OBJCOPY 799 BUILD_AR 800 BUILD_NM 801 BUILD_CXX 802 BUILD_CC 803 BUILD_SYSROOT_LDFLAGS 804 BUILD_SYSROOT_CFLAGS 805 ac_ct_OBJDUMP 806 OBJDUMP 807 ac_ct_OBJCOPY 808 OBJCOPY 809 ac_ct_NM 810 ac_ct_STRIP 811 GNM 812 NM 813 STRIP 814 MSBUILD 815 DUMPBIN 816 RC 817 MT 818 LIPO 819 ac_ct_AR 820 AR 821 AS 822 LDCXX 823 LD 824 CXXCPP 825 CPP 826 CXX_VERSION_NUMBER 827 CC_VERSION_NUMBER 828 ac_ct_CXX 829 CXXFLAGS 830 CXX 831 TOOLCHAIN_PATH_CXX 832 POTENTIAL_CXX 833 OBJEXT 834 EXEEXT 835 ac_ct_CC 836 CPPFLAGS 837 LDFLAGS 838 CFLAGS 839 CC 840 TOOLCHAIN_PATH_CC 841 POTENTIAL_CC 842 TOOLCHAIN_VERSION 843 VS_LIB 844 VS_INCLUDE 845 VS_PATH 846 CYGWIN_LINK 847 SYSROOT_LDFLAGS 848 SYSROOT_CFLAGS 849 EXTRA_LDFLAGS 850 EXTRA_CXXFLAGS 851 EXTRA_CFLAGS 852 LEGACY_EXTRA_LDFLAGS 853 LEGACY_EXTRA_CXXFLAGS 854 LEGACY_EXTRA_CFLAGS 855 EXE_SUFFIX 856 OBJ_SUFFIX 857 STATIC_LIBRARY 858 SHARED_LIBRARY 859 STATIC_LIBRARY_SUFFIX 860 SHARED_LIBRARY_SUFFIX 861 LIBRARY_PREFIX 862 TOOLCHAIN_TYPE 863 STATIC_BUILD 864 IMPORT_MODULES_MAKE 865 IMPORT_MODULES_SRC 866 IMPORT_MODULES_CONF 867 IMPORT_MODULES_LIBS 868 IMPORT_MODULES_CMDS 869 IMPORT_MODULES_CLASSES 870 BUILD_HOTSPOT 871 HOTSPOT_DIST 872 BUILD_OUTPUT 873 JDK_TOPDIR 874 NASHORN_TOPDIR 875 HOTSPOT_TOPDIR 876 JAXWS_TOPDIR 877 JAXP_TOPDIR 878 CORBA_TOPDIR 879 LANGTOOLS_TOPDIR 880 EXTERNAL_BUILDJDK 881 BUILD_JDK 882 CREATE_BUILDJDK 883 JLINK 884 JMOD 885 BOOT_JDK_BITS 886 JAVAC_FLAGS 887 BOOT_JDK_MODULAR 888 BOOT_JDK_SOURCETARGET 889 JARSIGNER 890 JAR 891 JAVAH 892 JAVAC 893 JAVA 894 BOOT_JDK 895 JAVA_CHECK 896 JAVAC_CHECK 897 VERSION_IS_GA 898 VERSION_SHORT 899 VERSION_STRING 900 VERSION_NUMBER_FOUR_POSITIONS 901 VERSION_NUMBER 902 VERSION_OPT 903 VERSION_BUILD 904 VERSION_PRE 905 VERSION_PATCH 906 VERSION_SECURITY 907 VERSION_MINOR 908 VERSION_MAJOR 909 MACOSX_BUNDLE_ID_BASE 910 MACOSX_BUNDLE_NAME_BASE 911 HOTSPOT_VM_DISTRO 912 COMPANY_NAME 913 JDK_RC_PLATFORM_NAME 914 PRODUCT_SUFFIX 915 PRODUCT_NAME 916 LAUNCHER_NAME 917 JLINK_KEEP_PACKAGED_MODULES 918 COPYRIGHT_YEAR 919 COMPRESS_JARS 920 INCLUDE_SA 921 UNLIMITED_CRYPTO 922 CACERTS_FILE 923 ENABLE_HEADLESS_ONLY 924 DEFAULT_MAKE_TARGET 925 OS_VERSION_MICRO 926 OS_VERSION_MINOR 927 OS_VERSION_MAJOR 928 PKG_CONFIG 929 BASH_ARGS 930 SETFILE 931 CODESIGN 932 XATTR 933 DSYMUTIL 934 IS_GNU_TIME 935 PATCH 936 DTRACE 937 TIME 938 STAT 939 HG 940 READELF 941 OTOOL 942 LDD 943 ZIPEXE 944 UNZIP 945 TAR_SUPPORTS_TRANSFORM 946 TAR_INCLUDE_PARAM 947 TAR_CREATE_EXTRA_PARAM 948 TAR_TYPE 949 FIND_DELETE 950 OUTPUT_SYNC 951 OUTPUT_SYNC_SUPPORTED 952 CHECK_TOOLSDIR_MAKE 953 CHECK_TOOLSDIR_GMAKE 954 CHECK_MAKE 955 CHECK_GMAKE 956 MAKE 957 PKGHANDLER 958 CONFIGURESUPPORT_OUTPUTDIR 959 OUTPUT_ROOT 960 CONF_NAME 961 SPEC 962 SDKROOT 963 XCODEBUILD 964 VALID_JVM_VARIANTS 965 JVM_VARIANTS 966 DEBUG_LEVEL 967 HOTSPOT_DEBUG_LEVEL 968 JDK_VARIANT 969 USERNAME 970 CANONICAL_TOPDIR 971 ORIGINAL_TOPDIR 972 TOPDIR 973 PATH_SEP 974 ZERO_ARCHDEF 975 HOTSPOT_BUILD_CPU_DEFINE 976 HOTSPOT_BUILD_CPU_ARCH 977 HOTSPOT_BUILD_CPU 978 HOTSPOT_BUILD_OS_TYPE 979 HOTSPOT_BUILD_OS 980 OPENJDK_BUILD_BUNDLE_PLATFORM 981 OPENJDK_BUILD_CPU_BUNDLE 982 OPENJDK_BUILD_OS_BUNDLE 983 OPENJDK_BUILD_OS_EXPORT_DIR 984 OPENJDK_BUILD_CPU_JLI_CFLAGS 985 OPENJDK_BUILD_CPU_OSARCH 986 OPENJDK_BUILD_CPU_ISADIR 987 OPENJDK_BUILD_CPU_LIBDIR 988 OPENJDK_BUILD_CPU_LEGACY_LIB 989 OPENJDK_BUILD_CPU_LEGACY 990 HOTSPOT_TARGET_CPU_DEFINE 991 HOTSPOT_TARGET_CPU_ARCH 992 HOTSPOT_TARGET_CPU 993 HOTSPOT_TARGET_OS_TYPE 994 HOTSPOT_TARGET_OS 995 DEFINE_CROSS_COMPILE_ARCH 996 LP64 997 OPENJDK_TARGET_BUNDLE_PLATFORM 998 OPENJDK_TARGET_CPU_BUNDLE 999 OPENJDK_TARGET_OS_BUNDLE 1000 OPENJDK_TARGET_OS_EXPORT_DIR 1001 OPENJDK_TARGET_CPU_JLI_CFLAGS 1002 OPENJDK_TARGET_CPU_OSARCH 1003 OPENJDK_TARGET_CPU_ISADIR 1004 OPENJDK_TARGET_CPU_LIBDIR 1005 OPENJDK_TARGET_CPU_LEGACY_LIB 1006 OPENJDK_TARGET_CPU_LEGACY 1007 REQUIRED_OS_VERSION 1008 REQUIRED_OS_NAME 1009 COMPILE_TYPE 1010 OPENJDK_TARGET_CPU_ENDIAN 1011 OPENJDK_TARGET_CPU_BITS 1012 OPENJDK_TARGET_CPU_ARCH 1013 OPENJDK_TARGET_CPU 1014 OPENJDK_TARGET_OS_ENV 1015 OPENJDK_TARGET_OS_TYPE 1016 OPENJDK_TARGET_OS 1017 OPENJDK_BUILD_CPU_ENDIAN 1018 OPENJDK_BUILD_CPU_BITS 1019 OPENJDK_BUILD_CPU_ARCH 1020 OPENJDK_BUILD_CPU 1021 OPENJDK_BUILD_OS_ENV 1022 OPENJDK_BUILD_OS_TYPE 1023 OPENJDK_BUILD_OS 1024 OPENJDK_BUILD_AUTOCONF_NAME 1025 OPENJDK_TARGET_AUTOCONF_NAME 1026 target_os 1027 target_vendor 1028 target_cpu 1029 target 1030 host_os 1031 host_vendor 1032 host_cpu 1033 host 1034 build_os 1035 build_vendor 1036 build_cpu 1037 build 1038 NICE 1039 CPIO 1040 DF 1041 READLINK 1042 CYGPATH 1043 SED 1044 FGREP 1045 EGREP 1046 GREP 1047 AWK 1048 XARGS 1049 WHICH 1050 WC 1051 UNIQ 1052 UNAME 1053 TR 1054 TOUCH 1055 TEE 1056 TAR 1057 TAIL 1058 SORT 1059 SH 1060 RMDIR 1061 RM 1062 PRINTF 1063 NAWK 1064 MV 1065 MKTEMP 1066 MKDIR 1067 LS 1068 LN 1069 GZIP 1070 GUNZIP 1071 HEAD 1072 FIND 1073 FILE 1074 EXPR 1075 ECHO 1076 DIRNAME 1077 DIFF 1078 DATE 1079 CUT 1080 CP 1081 COMM 1082 CMP 1083 CHMOD 1084 CAT 1085 BASH 1086 BASENAME 1087 DATE_WHEN_CONFIGURED 1088 ORIGINAL_PATH 1089 CONFIGURE_COMMAND_LINE 1090 target_alias 1091 host_alias 1092 build_alias 1093 LIBS 1094 ECHO_T 1095 ECHO_N 1096 ECHO_C 1097 DEFS 1098 mandir 1099 localedir 1100 libdir 1101 psdir 1102 pdfdir 1103 dvidir 1104 htmldir 1105 infodir 1106 docdir 1107 oldincludedir 1108 includedir 1109 localstatedir 1110 sharedstatedir 1111 sysconfdir 1112 datadir 1113 datarootdir 1114 libexecdir 1115 sbindir 1116 bindir 1117 program_transform_name 1118 prefix 1119 exec_prefix 1120 PACKAGE_URL 1121 PACKAGE_BUGREPORT 1122 PACKAGE_STRING 1123 PACKAGE_VERSION 1124 PACKAGE_TARNAME 1125 PACKAGE_NAME 1126 PATH_SEPARATOR 1127 SHELL' 1128 ac_subst_files='' 1129 ac_user_opts=' 1130 enable_option_checking 1131 with_target_bits 1132 enable_openjdk_only 1133 with_custom_make_dir 1134 with_jdk_variant 1135 enable_debug 1136 with_debug_level 1137 with_jvm_variants 1138 with_devkit 1139 with_sys_root 1140 with_sysroot 1141 with_tools_dir 1142 with_toolchain_path 1143 with_extra_path 1144 with_sdk_name 1145 with_conf_name 1146 with_output_sync 1147 with_default_make_target 1148 enable_headless_only 1149 with_cacerts_file 1150 enable_unlimited_crypto 1151 with_copyright_year 1152 enable_keep_packaged_modules 1153 with_milestone 1154 with_update_version 1155 with_user_release_suffix 1156 with_build_number 1157 with_version_string 1158 with_version_pre 1159 with_version_opt 1160 with_version_build 1161 with_version_major 1162 with_version_minor 1163 with_version_security 1164 with_version_patch 1165 with_boot_jdk 1166 with_build_jdk 1167 with_add_source_root 1168 with_override_source_root 1169 with_adds_and_overrides 1170 with_override_langtools 1171 with_override_corba 1172 with_override_jaxp 1173 with_override_jaxws 1174 with_override_hotspot 1175 with_override_nashorn 1176 with_override_jdk 1177 with_import_hotspot 1178 with_import_modules 1179 enable_static_build 1180 with_toolchain_type 1181 with_extra_cflags 1182 with_extra_cxxflags 1183 with_extra_ldflags 1184 with_toolchain_version 1185 with_build_devkit 1186 with_jtreg 1187 enable_warnings_as_errors 1188 with_native_debug_symbols 1189 enable_debug_symbols 1190 enable_zip_debug_info 1191 enable_native_coverage 1192 enable_dtrace 1193 with_jvm_features 1194 with_jvm_interpreter 1195 enable_hotspot_gtest 1196 with_stdc__lib 1197 with_msvcr_dll 1198 with_msvcp_dll 1199 with_x 1200 with_cups 1201 with_cups_include 1202 with_freetype 1203 with_freetype_include 1204 with_freetype_lib 1205 with_freetype_src 1206 enable_freetype_bundling 1207 with_alsa 1208 with_alsa_include 1209 with_alsa_lib 1210 with_libffi 1211 with_libffi_include 1212 with_libffi_lib 1213 enable_libffi_bundling 1214 with_libjpeg 1215 with_giflib 1216 with_libpng 1217 with_zlib 1218 with_lcms 1219 with_dxsdk 1220 with_dxsdk_lib 1221 with_dxsdk_include 1222 enable_jtreg_failure_handler 1223 enable_generate_classlist 1224 with_num_cores 1225 with_memory_size 1226 with_jobs 1227 with_test_jobs 1228 with_boot_jdk_jvmargs 1229 with_sjavac_server_java 1230 enable_sjavac 1231 enable_javac_server 1232 enable_icecc 1233 enable_precompiled_headers 1234 enable_ccache 1235 with_ccache_dir 1236 ' 1237 ac_precious_vars='build_alias 1238 host_alias 1239 target_alias 1240 BASENAME 1241 BASH 1242 CAT 1243 CHMOD 1244 CMP 1245 COMM 1246 CP 1247 CUT 1248 DATE 1249 DIFF 1250 DIRNAME 1251 ECHO 1252 EXPR 1253 FILE 1254 FIND 1255 HEAD 1256 GUNZIP 1257 GZIP 1258 LN 1259 LS 1260 MKDIR 1261 MKTEMP 1262 MV 1263 NAWK 1264 PRINTF 1265 RM 1266 RMDIR 1267 SH 1268 SORT 1269 TAIL 1270 TAR 1271 TEE 1272 TOUCH 1273 TR 1274 UNAME 1275 UNIQ 1276 WC 1277 WHICH 1278 XARGS 1279 AWK 1280 GREP 1281 EGREP 1282 FGREP 1283 SED 1284 CYGPATH 1285 READLINK 1286 DF 1287 CPIO 1288 NICE 1289 MAKE 1290 UNZIP 1291 ZIPEXE 1292 LDD 1293 OTOOL 1294 READELF 1295 HG 1296 STAT 1297 TIME 1298 DTRACE 1299 PATCH 1300 DSYMUTIL 1301 XATTR 1302 CODESIGN 1303 SETFILE 1304 PKG_CONFIG 1305 JAVA 1306 JAVAC 1307 JAVAH 1308 JAR 1309 JARSIGNER 1310 CC 1311 CFLAGS 1312 LDFLAGS 1313 LIBS 1314 CPPFLAGS 1315 CXX 1316 CXXFLAGS 1317 CCC 1318 CPP 1319 CXXCPP 1320 AS 1321 AR 1322 LIPO 1323 STRIP 1324 NM 1325 GNM 1326 OBJCOPY 1327 OBJDUMP 1328 BUILD_CC 1329 BUILD_CXX 1330 BUILD_NM 1331 BUILD_AR 1332 BUILD_OBJCOPY 1333 BUILD_STRIP 1334 JTREGEXE 1335 XMKMF 1336 FREETYPE_CFLAGS 1337 FREETYPE_LIBS 1338 ALSA_CFLAGS 1339 ALSA_LIBS 1340 LIBFFI_CFLAGS 1341 LIBFFI_LIBS 1342 PNG_CFLAGS 1343 PNG_LIBS 1344 LCMS_CFLAGS 1345 LCMS_LIBS 1346 ICECC_CMD 1347 ICECC_CREATE_ENV 1348 ICECC_WRAPPER 1349 CCACHE' 1350 1351 1352 # Initialize some variables set by options. 1353 ac_init_help= 1354 ac_init_version=false 1355 ac_unrecognized_opts= 1356 ac_unrecognized_sep= 1357 # The variables have the same names as the options, with 1358 # dashes changed to underlines. 1359 cache_file=/dev/null 1360 exec_prefix=NONE 1361 no_create= 1362 no_recursion= 1363 prefix=NONE 1364 program_prefix=NONE 1365 program_suffix=NONE 1366 program_transform_name=s,x,x, 1367 silent= 1368 site= 1369 srcdir= 1370 verbose= 1371 x_includes=NONE 1372 x_libraries=NONE 1373 1374 # Installation directory options. 1375 # These are left unexpanded so users can "make install exec_prefix=/foo" 1376 # and all the variables that are supposed to be based on exec_prefix 1377 # by default will actually change. 1378 # Use braces instead of parens because sh, perl, etc. also accept them. 1379 # (The list follows the same order as the GNU Coding Standards.) 1380 bindir='${exec_prefix}/bin' 1381 sbindir='${exec_prefix}/sbin' 1382 libexecdir='${exec_prefix}/libexec' 1383 datarootdir='${prefix}/share' 1384 datadir='${datarootdir}' 1385 sysconfdir='${prefix}/etc' 1386 sharedstatedir='${prefix}/com' 1387 localstatedir='${prefix}/var' 1388 includedir='${prefix}/include' 1389 oldincludedir='/usr/include' 1390 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 1391 infodir='${datarootdir}/info' 1392 htmldir='${docdir}' 1393 dvidir='${docdir}' 1394 pdfdir='${docdir}' 1395 psdir='${docdir}' 1396 libdir='${exec_prefix}/lib' 1397 localedir='${datarootdir}/locale' 1398 mandir='${datarootdir}/man' 1399 1400 ac_prev= 1401 ac_dashdash= 1402 for ac_option 1403 do 1404 # If the previous option needs an argument, assign it. 1405 if test -n "$ac_prev"; then 1406 eval $ac_prev=\$ac_option 1407 ac_prev= 1408 continue 1409 fi 1410 1411 case $ac_option in 1412 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 1413 *=) ac_optarg= ;; 1414 *) ac_optarg=yes ;; 1415 esac 1416 1417 # Accept the important Cygnus configure options, so we can diagnose typos. 1418 1419 case $ac_dashdash$ac_option in 1420 --) 1421 ac_dashdash=yes ;; 1422 1423 -bindir | --bindir | --bindi | --bind | --bin | --bi) 1424 ac_prev=bindir ;; 1425 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 1426 bindir=$ac_optarg ;; 1427 1428 -build | --build | --buil | --bui | --bu) 1429 ac_prev=build_alias ;; 1430 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 1431 build_alias=$ac_optarg ;; 1432 1433 -cache-file | --cache-file | --cache-fil | --cache-fi \ 1434 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 1435 ac_prev=cache_file ;; 1436 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 1437 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 1438 cache_file=$ac_optarg ;; 1439 1440 --config-cache | -C) 1441 cache_file=config.cache ;; 1442 1443 -datadir | --datadir | --datadi | --datad) 1444 ac_prev=datadir ;; 1445 -datadir=* | --datadir=* | --datadi=* | --datad=*) 1446 datadir=$ac_optarg ;; 1447 1448 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 1449 | --dataroo | --dataro | --datar) 1450 ac_prev=datarootdir ;; 1451 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 1452 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 1453 datarootdir=$ac_optarg ;; 1454 1455 -disable-* | --disable-*) 1456 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 1457 # Reject names that are not valid shell variable names. 1458 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1459 as_fn_error $? "invalid feature name: $ac_useropt" 1460 ac_useropt_orig=$ac_useropt 1461 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1462 case $ac_user_opts in 1463 *" 1464 "enable_$ac_useropt" 1465 "*) ;; 1466 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 1467 ac_unrecognized_sep=', ';; 1468 esac 1469 eval enable_$ac_useropt=no ;; 1470 1471 -docdir | --docdir | --docdi | --doc | --do) 1472 ac_prev=docdir ;; 1473 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 1474 docdir=$ac_optarg ;; 1475 1476 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 1477 ac_prev=dvidir ;; 1478 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 1479 dvidir=$ac_optarg ;; 1480 1481 -enable-* | --enable-*) 1482 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 1483 # Reject names that are not valid shell variable names. 1484 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1485 as_fn_error $? "invalid feature name: $ac_useropt" 1486 ac_useropt_orig=$ac_useropt 1487 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1488 case $ac_user_opts in 1489 *" 1490 "enable_$ac_useropt" 1491 "*) ;; 1492 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 1493 ac_unrecognized_sep=', ';; 1494 esac 1495 eval enable_$ac_useropt=\$ac_optarg ;; 1496 1497 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 1498 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 1499 | --exec | --exe | --ex) 1500 ac_prev=exec_prefix ;; 1501 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 1502 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 1503 | --exec=* | --exe=* | --ex=*) 1504 exec_prefix=$ac_optarg ;; 1505 1506 -gas | --gas | --ga | --g) 1507 # Obsolete; use --with-gas. 1508 with_gas=yes ;; 1509 1510 -help | --help | --hel | --he | -h) 1511 ac_init_help=long ;; 1512 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 1513 ac_init_help=recursive ;; 1514 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 1515 ac_init_help=short ;; 1516 1517 -host | --host | --hos | --ho) 1518 ac_prev=host_alias ;; 1519 -host=* | --host=* | --hos=* | --ho=*) 1520 host_alias=$ac_optarg ;; 1521 1522 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 1523 ac_prev=htmldir ;; 1524 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 1525 | --ht=*) 1526 htmldir=$ac_optarg ;; 1527 1528 -includedir | --includedir | --includedi | --included | --include \ 1529 | --includ | --inclu | --incl | --inc) 1530 ac_prev=includedir ;; 1531 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1532 | --includ=* | --inclu=* | --incl=* | --inc=*) 1533 includedir=$ac_optarg ;; 1534 1535 -infodir | --infodir | --infodi | --infod | --info | --inf) 1536 ac_prev=infodir ;; 1537 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1538 infodir=$ac_optarg ;; 1539 1540 -libdir | --libdir | --libdi | --libd) 1541 ac_prev=libdir ;; 1542 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1543 libdir=$ac_optarg ;; 1544 1545 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1546 | --libexe | --libex | --libe) 1547 ac_prev=libexecdir ;; 1548 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1549 | --libexe=* | --libex=* | --libe=*) 1550 libexecdir=$ac_optarg ;; 1551 1552 -localedir | --localedir | --localedi | --localed | --locale) 1553 ac_prev=localedir ;; 1554 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1555 localedir=$ac_optarg ;; 1556 1557 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1558 | --localstate | --localstat | --localsta | --localst | --locals) 1559 ac_prev=localstatedir ;; 1560 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1561 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1562 localstatedir=$ac_optarg ;; 1563 1564 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1565 ac_prev=mandir ;; 1566 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1567 mandir=$ac_optarg ;; 1568 1569 -nfp | --nfp | --nf) 1570 # Obsolete; use --without-fp. 1571 with_fp=no ;; 1572 1573 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1574 | --no-cr | --no-c | -n) 1575 no_create=yes ;; 1576 1577 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1578 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1579 no_recursion=yes ;; 1580 1581 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1582 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1583 | --oldin | --oldi | --old | --ol | --o) 1584 ac_prev=oldincludedir ;; 1585 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1586 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1587 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1588 oldincludedir=$ac_optarg ;; 1589 1590 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1591 ac_prev=prefix ;; 1592 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1593 prefix=$ac_optarg ;; 1594 1595 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1596 | --program-pre | --program-pr | --program-p) 1597 ac_prev=program_prefix ;; 1598 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1599 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1600 program_prefix=$ac_optarg ;; 1601 1602 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1603 | --program-suf | --program-su | --program-s) 1604 ac_prev=program_suffix ;; 1605 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1606 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1607 program_suffix=$ac_optarg ;; 1608 1609 -program-transform-name | --program-transform-name \ 1610 | --program-transform-nam | --program-transform-na \ 1611 | --program-transform-n | --program-transform- \ 1612 | --program-transform | --program-transfor \ 1613 | --program-transfo | --program-transf \ 1614 | --program-trans | --program-tran \ 1615 | --progr-tra | --program-tr | --program-t) 1616 ac_prev=program_transform_name ;; 1617 -program-transform-name=* | --program-transform-name=* \ 1618 | --program-transform-nam=* | --program-transform-na=* \ 1619 | --program-transform-n=* | --program-transform-=* \ 1620 | --program-transform=* | --program-transfor=* \ 1621 | --program-transfo=* | --program-transf=* \ 1622 | --program-trans=* | --program-tran=* \ 1623 | --progr-tra=* | --program-tr=* | --program-t=*) 1624 program_transform_name=$ac_optarg ;; 1625 1626 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1627 ac_prev=pdfdir ;; 1628 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1629 pdfdir=$ac_optarg ;; 1630 1631 -psdir | --psdir | --psdi | --psd | --ps) 1632 ac_prev=psdir ;; 1633 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1634 psdir=$ac_optarg ;; 1635 1636 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1637 | -silent | --silent | --silen | --sile | --sil) 1638 silent=yes ;; 1639 1640 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1641 ac_prev=sbindir ;; 1642 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1643 | --sbi=* | --sb=*) 1644 sbindir=$ac_optarg ;; 1645 1646 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1647 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1648 | --sharedst | --shareds | --shared | --share | --shar \ 1649 | --sha | --sh) 1650 ac_prev=sharedstatedir ;; 1651 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1652 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1653 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1654 | --sha=* | --sh=*) 1655 sharedstatedir=$ac_optarg ;; 1656 1657 -site | --site | --sit) 1658 ac_prev=site ;; 1659 -site=* | --site=* | --sit=*) 1660 site=$ac_optarg ;; 1661 1662 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1663 ac_prev=srcdir ;; 1664 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1665 srcdir=$ac_optarg ;; 1666 1667 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1668 | --syscon | --sysco | --sysc | --sys | --sy) 1669 ac_prev=sysconfdir ;; 1670 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1671 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1672 sysconfdir=$ac_optarg ;; 1673 1674 -target | --target | --targe | --targ | --tar | --ta | --t) 1675 ac_prev=target_alias ;; 1676 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1677 target_alias=$ac_optarg ;; 1678 1679 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1680 verbose=yes ;; 1681 1682 -version | --version | --versio | --versi | --vers | -V) 1683 ac_init_version=: ;; 1684 1685 -with-* | --with-*) 1686 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1687 # Reject names that are not valid shell variable names. 1688 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1689 as_fn_error $? "invalid package name: $ac_useropt" 1690 ac_useropt_orig=$ac_useropt 1691 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1692 case $ac_user_opts in 1693 *" 1694 "with_$ac_useropt" 1695 "*) ;; 1696 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1697 ac_unrecognized_sep=', ';; 1698 esac 1699 eval with_$ac_useropt=\$ac_optarg ;; 1700 1701 -without-* | --without-*) 1702 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1703 # Reject names that are not valid shell variable names. 1704 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1705 as_fn_error $? "invalid package name: $ac_useropt" 1706 ac_useropt_orig=$ac_useropt 1707 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1708 case $ac_user_opts in 1709 *" 1710 "with_$ac_useropt" 1711 "*) ;; 1712 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1713 ac_unrecognized_sep=', ';; 1714 esac 1715 eval with_$ac_useropt=no ;; 1716 1717 --x) 1718 # Obsolete; use --with-x. 1719 with_x=yes ;; 1720 1721 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1722 | --x-incl | --x-inc | --x-in | --x-i) 1723 ac_prev=x_includes ;; 1724 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1725 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1726 x_includes=$ac_optarg ;; 1727 1728 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1729 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1730 ac_prev=x_libraries ;; 1731 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1732 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1733 x_libraries=$ac_optarg ;; 1734 1735 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1736 Try \`$0 --help' for more information" 1737 ;; 1738 1739 *=*) 1740 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1741 # Reject names that are not valid shell variable names. 1742 case $ac_envvar in #( 1743 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1744 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1745 esac 1746 eval $ac_envvar=\$ac_optarg 1747 export $ac_envvar ;; 1748 1749 *) 1750 # FIXME: should be removed in autoconf 3.0. 1751 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1752 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1753 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1754 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1755 ;; 1756 1757 esac 1758 done 1759 1760 if test -n "$ac_prev"; then 1761 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1762 as_fn_error $? "missing argument to $ac_option" 1763 fi 1764 1765 if test -n "$ac_unrecognized_opts"; then 1766 case $enable_option_checking in 1767 no) ;; 1768 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1769 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1770 esac 1771 fi 1772 1773 # Check all directory arguments for consistency. 1774 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1775 datadir sysconfdir sharedstatedir localstatedir includedir \ 1776 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1777 libdir localedir mandir 1778 do 1779 eval ac_val=\$$ac_var 1780 # Remove trailing slashes. 1781 case $ac_val in 1782 */ ) 1783 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1784 eval $ac_var=\$ac_val;; 1785 esac 1786 # Be sure to have absolute directory names. 1787 case $ac_val in 1788 [\\/$]* | ?:[\\/]* ) continue;; 1789 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1790 esac 1791 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1792 done 1793 1794 # There might be people who depend on the old broken behavior: `$host' 1795 # used to hold the argument of --host etc. 1796 # FIXME: To remove some day. 1797 build=$build_alias 1798 host=$host_alias 1799 target=$target_alias 1800 1801 # FIXME: To remove some day. 1802 if test "x$host_alias" != x; then 1803 if test "x$build_alias" = x; then 1804 cross_compiling=maybe 1805 elif test "x$build_alias" != "x$host_alias"; then 1806 cross_compiling=yes 1807 fi 1808 fi 1809 1810 ac_tool_prefix= 1811 test -n "$host_alias" && ac_tool_prefix=$host_alias- 1812 1813 test "$silent" = yes && exec 6>/dev/null 1814 1815 1816 ac_pwd=`pwd` && test -n "$ac_pwd" && 1817 ac_ls_di=`ls -di .` && 1818 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1819 as_fn_error $? "working directory cannot be determined" 1820 test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1821 as_fn_error $? "pwd does not report name of working directory" 1822 1823 1824 # Find the source files, if location was not specified. 1825 if test -z "$srcdir"; then 1826 ac_srcdir_defaulted=yes 1827 # Try the directory containing this script, then the parent directory. 1828 ac_confdir=`$as_dirname -- "$as_myself" || 1829 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1830 X"$as_myself" : 'X\(//\)[^/]' \| \ 1831 X"$as_myself" : 'X\(//\)$' \| \ 1832 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1833 $as_echo X"$as_myself" | 1834 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1835 s//\1/ 1836 q 1837 } 1838 /^X\(\/\/\)[^/].*/{ 1839 s//\1/ 1840 q 1841 } 1842 /^X\(\/\/\)$/{ 1843 s//\1/ 1844 q 1845 } 1846 /^X\(\/\).*/{ 1847 s//\1/ 1848 q 1849 } 1850 s/.*/./; q'` 1851 srcdir=$ac_confdir 1852 if test ! -r "$srcdir/$ac_unique_file"; then 1853 srcdir=.. 1854 fi 1855 else 1856 ac_srcdir_defaulted=no 1857 fi 1858 if test ! -r "$srcdir/$ac_unique_file"; then 1859 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1860 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1861 fi 1862 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1863 ac_abs_confdir=`( 1864 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1865 pwd)` 1866 # When building in place, set srcdir=. 1867 if test "$ac_abs_confdir" = "$ac_pwd"; then 1868 srcdir=. 1869 fi 1870 # Remove unnecessary trailing slashes from srcdir. 1871 # Double slashes in file names in object file debugging info 1872 # mess up M-x gdb in Emacs. 1873 case $srcdir in 1874 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1875 esac 1876 for ac_var in $ac_precious_vars; do 1877 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1878 eval ac_env_${ac_var}_value=\$${ac_var} 1879 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1880 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1881 done 1882 1883 # 1884 # Report the --help message. 1885 # 1886 if test "$ac_init_help" = "long"; then 1887 # Omit some internal or obsolete options to make the list less imposing. 1888 # This message is too long to be a string in the A/UX 3.1 sh. 1889 cat <<_ACEOF 1890 \`configure' configures OpenJDK jdk9 to adapt to many kinds of systems. 1891 1892 Usage: $0 [OPTION]... [VAR=VALUE]... 1893 1894 To assign environment variables (e.g., CC, CFLAGS...), specify them as 1895 VAR=VALUE. See below for descriptions of some of the useful variables. 1896 1897 Defaults for the options are specified in brackets. 1898 1899 Configuration: 1900 -h, --help display this help and exit 1901 --help=short display options specific to this package 1902 --help=recursive display the short help of all the included packages 1903 -V, --version display version information and exit 1904 -q, --quiet, --silent do not print \`checking ...' messages 1905 --cache-file=FILE cache test results in FILE [disabled] 1906 -C, --config-cache alias for \`--cache-file=config.cache' 1907 -n, --no-create do not create output files 1908 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1909 1910 Installation directories: 1911 --prefix=PREFIX install architecture-independent files in PREFIX 1912 [$ac_default_prefix] 1913 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1914 [PREFIX] 1915 1916 By default, \`make install' will install all the files in 1917 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1918 an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1919 for instance \`--prefix=\$HOME'. 1920 1921 For better control, use the options below. 1922 1923 Fine tuning of the installation directories: 1924 --bindir=DIR user executables [EPREFIX/bin] 1925 --sbindir=DIR system admin executables [EPREFIX/sbin] 1926 --libexecdir=DIR program executables [EPREFIX/libexec] 1927 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1928 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1929 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1930 --libdir=DIR object code libraries [EPREFIX/lib] 1931 --includedir=DIR C header files [PREFIX/include] 1932 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1933 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1934 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1935 --infodir=DIR info documentation [DATAROOTDIR/info] 1936 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1937 --mandir=DIR man documentation [DATAROOTDIR/man] 1938 --docdir=DIR documentation root [DATAROOTDIR/doc/openjdk] 1939 --htmldir=DIR html documentation [DOCDIR] 1940 --dvidir=DIR dvi documentation [DOCDIR] 1941 --pdfdir=DIR pdf documentation [DOCDIR] 1942 --psdir=DIR ps documentation [DOCDIR] 1943 _ACEOF 1944 1945 cat <<\_ACEOF 1946 1947 X features: 1948 --x-includes=DIR X include files are in DIR 1949 --x-libraries=DIR X library files are in DIR 1950 1951 System types: 1952 --build=BUILD configure for building on BUILD [guessed] 1953 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1954 --target=TARGET configure for building compilers for TARGET [HOST] 1955 _ACEOF 1956 fi 1957 1958 if test -n "$ac_init_help"; then 1959 case $ac_init_help in 1960 short | recursive ) echo "Configuration of OpenJDK jdk9:";; 1961 esac 1962 cat <<\_ACEOF 1963 1964 Optional Features: 1965 --disable-option-checking ignore unrecognized --enable/--with options 1966 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1967 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1968 --enable-openjdk-only suppress building custom source even if present 1969 [disabled] 1970 --enable-debug set the debug level to fastdebug (shorthand for 1971 --with-debug-level=fastdebug) [disabled] 1972 --enable-headless-only only build headless (no GUI) support [disabled] 1973 --disable-unlimited-crypto 1974 Disable unlimited crypto policy [enabled] 1975 --disable-keep-packaged-modules 1976 Do not keep packaged modules in jdk image [enable] 1977 --enable-static-build enable static library build [disabled] 1978 --disable-warnings-as-errors 1979 do not consider native warnings to be an error 1980 [enabled] 1981 --enable-debug-symbols Deprecated. Option is kept for backwards 1982 compatibility and is ignored 1983 --enable-zip-debug-info Deprecated. Option is kept for backwards 1984 compatibility and is ignored 1985 --enable-native-coverage 1986 enable native compilation with code coverage 1987 data[disabled] 1988 --enable-dtrace[=yes/no/auto] 1989 enable dtrace. Default is auto, where dtrace is 1990 enabled if all dependencies are present. 1991 --disable-hotspot-gtest Disables building of the Hotspot unit tests 1992 --disable-freetype-bundling 1993 disable bundling of the freetype library with the 1994 build result [enabled on Windows or when using 1995 --with-freetype, disabled otherwise] 1996 --enable-libffi-bundling 1997 enable bundling of libffi.so to make the built JDK 1998 runnable on more systems 1999 --enable-jtreg-failure-handler 2000 forces build of the jtreg failure handler to be 2001 enabled, missing dependencies become fatal errors. 2002 Default is auto, where the failure handler is built 2003 if all dependencies are present and otherwise just 2004 disabled. 2005 --disable-generate-classlist 2006 forces enabling or disabling of the generation of a 2007 CDS classlist at build time. Default is to generate 2008 it when either the server or client JVMs are built. 2009 --enable-sjavac use sjavac to do fast incremental compiles 2010 [disabled] 2011 --disable-javac-server disable javac server [enabled] 2012 --enable-icecc enable distribted compilation of native code using 2013 icecc/icecream [disabled] 2014 --disable-precompiled-headers 2015 disable using precompiled headers when compiling C++ 2016 [enabled] 2017 --enable-ccache enable using ccache to speed up recompilations 2018 [disabled] 2019 2020 Optional Packages: 2021 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 2022 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 2023 --with-target-bits build 32-bit or 64-bit binaries (for platforms that 2024 support it), e.g. --with-target-bits=32 [guessed] 2025 --with-custom-make-dir Deprecated. Option is kept for backwards 2026 compatibility and is ignored 2027 --with-jdk-variant JDK variant to build (normal) [normal] 2028 --with-debug-level set the debug level (release, fastdebug, slowdebug, 2029 optimized) [release] 2030 --with-jvm-variants JVM variants (separated by commas) to build 2031 (server,client,minimal,core,zero,zeroshark,custom) 2032 [server] 2033 --with-devkit use this devkit for compilers, tools and resources 2034 --with-sys-root alias for --with-sysroot for backwards compatability 2035 --with-sysroot use this directory as sysroot 2036 --with-tools-dir alias for --with-toolchain-path for backwards 2037 compatibility 2038 --with-toolchain-path prepend these directories when searching for 2039 toolchain binaries (compilers etc) 2040 --with-extra-path prepend these directories to the default path 2041 --with-sdk-name use the platform SDK of the given name. [macosx] 2042 --with-conf-name use this as the name of the configuration [generated 2043 from important configuration options] 2044 --with-output-sync set make output sync type if supported by make. 2045 [recurse] 2046 --with-default-make-target 2047 set the default make target [exploded-image] 2048 --with-cacerts-file specify alternative cacerts file 2049 --with-copyright-year Set copyright year value for build [current year] 2050 --with-milestone Deprecated. Option is kept for backwards 2051 compatibility and is ignored 2052 --with-update-version Deprecated. Option is kept for backwards 2053 compatibility and is ignored 2054 --with-user-release-suffix 2055 Deprecated. Option is kept for backwards 2056 compatibility and is ignored 2057 --with-build-number Deprecated. Option is kept for backwards 2058 compatibility and is ignored 2059 --with-version-string Set version string [calculated] 2060 --with-version-pre Set the base part of the version 'PRE' field 2061 (pre-release identifier) ['internal'] 2062 --with-version-opt Set version 'OPT' field (build metadata) 2063 [<timestamp>.<user>.<dirname>] 2064 --with-version-build Set version 'BUILD' field (build number) [not 2065 specified] 2066 --with-version-major Set version 'MAJOR' field (first number) [current 2067 source value] 2068 --with-version-minor Set version 'MINOR' field (second number) [current 2069 source value] 2070 --with-version-security Set version 'SECURITY' field (third number) [current 2071 source value] 2072 --with-version-patch Set version 'PATCH' field (fourth number) [not 2073 specified] 2074 --with-boot-jdk path to Boot JDK (used to bootstrap build) [probed] 2075 --with-build-jdk path to JDK of same version as is being built[the 2076 newly built JDK] 2077 --with-add-source-root Deprecated. Option is kept for backwards 2078 compatibility and is ignored 2079 --with-override-source-root 2080 Deprecated. Option is kept for backwards 2081 compatibility and is ignored 2082 --with-adds-and-overrides 2083 Deprecated. Option is kept for backwards 2084 compatibility and is ignored 2085 --with-override-langtools 2086 Deprecated. Option is kept for backwards 2087 compatibility and is ignored 2088 --with-override-corba Deprecated. Option is kept for backwards 2089 compatibility and is ignored 2090 --with-override-jaxp Deprecated. Option is kept for backwards 2091 compatibility and is ignored 2092 --with-override-jaxws Deprecated. Option is kept for backwards 2093 compatibility and is ignored 2094 --with-override-hotspot Deprecated. Option is kept for backwards 2095 compatibility and is ignored 2096 --with-override-nashorn Deprecated. Option is kept for backwards 2097 compatibility and is ignored 2098 --with-override-jdk Deprecated. Option is kept for backwards 2099 compatibility and is ignored 2100 --with-import-hotspot import hotspot binaries from this jdk image or 2101 hotspot build dist dir instead of building from 2102 source 2103 --with-import-modules import a set of prebuilt modules either as a zip 2104 file or an exploded directory 2105 --with-toolchain-type the toolchain type (or family) to use, use '--help' 2106 to show possible values [platform dependent] 2107 --with-extra-cflags extra flags to be used when compiling jdk c-files 2108 --with-extra-cxxflags extra flags to be used when compiling jdk c++-files 2109 --with-extra-ldflags extra flags to be used when linking jdk 2110 --with-toolchain-version 2111 the version of the toolchain to look for, use 2112 '--help' to show possible values [platform 2113 dependent] 2114 --with-build-devkit Devkit to use for the build platform toolchain 2115 --with-jtreg Regression Test Harness [probed] 2116 --with-native-debug-symbols 2117 set the native debug symbol configuration (none, 2118 internal, external, zipped) [varying] 2119 --with-jvm-features additional JVM features to enable (separated by 2120 comma), use '--help' to show possible values [none] 2121 --with-jvm-interpreter Deprecated. Option is kept for backwards 2122 compatibility and is ignored 2123 --with-stdc++lib=<static>,<dynamic>,<default> 2124 force linking of the C++ runtime on Linux to either 2125 static or dynamic, default is static with dynamic as 2126 fallback 2127 --with-msvcr-dll path to microsoft C runtime dll (msvcr*.dll) 2128 (Windows only) [probed] 2129 --with-msvcp-dll path to microsoft C++ runtime dll (msvcp*.dll) 2130 (Windows only) [probed] 2131 --with-x use the X Window System 2132 --with-cups specify prefix directory for the cups package 2133 (expecting the headers under PATH/include) 2134 --with-cups-include specify directory for the cups include files 2135 --with-freetype specify prefix directory for the freetype package 2136 (expecting the libraries under PATH/lib and the 2137 headers under PATH/include) 2138 --with-freetype-include specify directory for the freetype include files 2139 --with-freetype-lib specify directory for the freetype library 2140 --with-freetype-src specify directory with freetype sources to 2141 automatically build the library (experimental, 2142 Windows-only) 2143 --with-alsa specify prefix directory for the alsa package 2144 (expecting the libraries under PATH/lib and the 2145 headers under PATH/include) 2146 --with-alsa-include specify directory for the alsa include files 2147 --with-alsa-lib specify directory for the alsa library 2148 --with-libffi specify prefix directory for the libffi package 2149 (expecting the libraries under PATH/lib and the 2150 headers under PATH/include) 2151 --with-libffi-include specify directory for the libffi include files 2152 --with-libffi-lib specify directory for the libffi library 2153 --with-libjpeg use libjpeg from build system or OpenJDK source 2154 (system, bundled) [bundled] 2155 --with-giflib use giflib from build system or OpenJDK source 2156 (system, bundled) [bundled] 2157 --with-libpng use libpng from build system or OpenJDK source 2158 (system, bundled) [bundled] 2159 --with-zlib use zlib from build system or OpenJDK source 2160 (system, bundled) [bundled] 2161 --with-lcms use lcms2 from build system or OpenJDK source 2162 (system, bundled) [bundled] 2163 --with-dxsdk Deprecated. Option is kept for backwards 2164 compatibility and is ignored 2165 --with-dxsdk-lib Deprecated. Option is kept for backwards 2166 compatibility and is ignored 2167 --with-dxsdk-include Deprecated. Option is kept for backwards 2168 compatibility and is ignored 2169 --with-num-cores number of cores in the build system, e.g. 2170 --with-num-cores=8 [probed] 2171 --with-memory-size memory (in MB) available in the build system, e.g. 2172 --with-memory-size=1024 [probed] 2173 --with-jobs number of parallel jobs to let make run [calculated 2174 based on cores and memory] 2175 --with-test-jobs number of parallel tests jobs to run [based on build 2176 jobs] 2177 --with-boot-jdk-jvmargs specify JVM arguments to be passed to all java 2178 invocations of boot JDK, overriding the default 2179 values, e.g --with-boot-jdk-jvmargs="-Xmx8G 2180 -enableassertions" 2181 --with-sjavac-server-java 2182 use this java binary for running the sjavac 2183 background server [Boot JDK java] 2184 --with-ccache-dir where to store ccache files [~/.ccache] 2185 2186 Some influential environment variables: 2187 BASENAME Override default value for BASENAME 2188 BASH Override default value for BASH 2189 CAT Override default value for CAT 2190 CHMOD Override default value for CHMOD 2191 CMP Override default value for CMP 2192 COMM Override default value for COMM 2193 CP Override default value for CP 2194 CUT Override default value for CUT 2195 DATE Override default value for DATE 2196 DIFF Override default value for DIFF 2197 DIRNAME Override default value for DIRNAME 2198 ECHO Override default value for ECHO 2199 EXPR Override default value for EXPR 2200 FILE Override default value for FILE 2201 FIND Override default value for FIND 2202 HEAD Override default value for HEAD 2203 GUNZIP Override default value for GUNZIP 2204 GZIP Override default value for GZIP 2205 LN Override default value for LN 2206 LS Override default value for LS 2207 MKDIR Override default value for MKDIR 2208 MKTEMP Override default value for MKTEMP 2209 MV Override default value for MV 2210 NAWK Override default value for NAWK 2211 PRINTF Override default value for PRINTF 2212 RM Override default value for RM 2213 RMDIR Override default value for RMDIR 2214 SH Override default value for SH 2215 SORT Override default value for SORT 2216 TAIL Override default value for TAIL 2217 TAR Override default value for TAR 2218 TEE Override default value for TEE 2219 TOUCH Override default value for TOUCH 2220 TR Override default value for TR 2221 UNAME Override default value for UNAME 2222 UNIQ Override default value for UNIQ 2223 WC Override default value for WC 2224 WHICH Override default value for WHICH 2225 XARGS Override default value for XARGS 2226 AWK Override default value for AWK 2227 GREP Override default value for GREP 2228 EGREP Override default value for EGREP 2229 FGREP Override default value for FGREP 2230 SED Override default value for SED 2231 CYGPATH Override default value for CYGPATH 2232 READLINK Override default value for READLINK 2233 DF Override default value for DF 2234 CPIO Override default value for CPIO 2235 NICE Override default value for NICE 2236 MAKE Override default value for MAKE 2237 UNZIP Override default value for UNZIP 2238 ZIPEXE Override default value for ZIPEXE 2239 LDD Override default value for LDD 2240 OTOOL Override default value for OTOOL 2241 READELF Override default value for READELF 2242 HG Override default value for HG 2243 STAT Override default value for STAT 2244 TIME Override default value for TIME 2245 DTRACE Override default value for DTRACE 2246 PATCH Override default value for PATCH 2247 DSYMUTIL Override default value for DSYMUTIL 2248 XATTR Override default value for XATTR 2249 CODESIGN Override default value for CODESIGN 2250 SETFILE Override default value for SETFILE 2251 PKG_CONFIG path to pkg-config utility 2252 JAVA Override default value for JAVA 2253 JAVAC Override default value for JAVAC 2254 JAVAH Override default value for JAVAH 2255 JAR Override default value for JAR 2256 JARSIGNER Override default value for JARSIGNER 2257 CC C compiler command 2258 CFLAGS C compiler flags 2259 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 2260 nonstandard directory <lib dir> 2261 LIBS libraries to pass to the linker, e.g. -l<library> 2262 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 2263 you have headers in a nonstandard directory <include dir> 2264 CXX C++ compiler command 2265 CXXFLAGS C++ compiler flags 2266 CPP C preprocessor 2267 CXXCPP C++ preprocessor 2268 AS Override default value for AS 2269 AR Override default value for AR 2270 LIPO Override default value for LIPO 2271 STRIP Override default value for STRIP 2272 NM Override default value for NM 2273 GNM Override default value for GNM 2274 OBJCOPY Override default value for OBJCOPY 2275 OBJDUMP Override default value for OBJDUMP 2276 BUILD_CC Override default value for BUILD_CC 2277 BUILD_CXX Override default value for BUILD_CXX 2278 BUILD_NM Override default value for BUILD_NM 2279 BUILD_AR Override default value for BUILD_AR 2280 BUILD_OBJCOPY 2281 Override default value for BUILD_OBJCOPY 2282 BUILD_STRIP Override default value for BUILD_STRIP 2283 JTREGEXE Override default value for JTREGEXE 2284 XMKMF Path to xmkmf, Makefile generator for X Window System 2285 FREETYPE_CFLAGS 2286 C compiler flags for FREETYPE, overriding pkg-config 2287 FREETYPE_LIBS 2288 linker flags for FREETYPE, overriding pkg-config 2289 ALSA_CFLAGS C compiler flags for ALSA, overriding pkg-config 2290 ALSA_LIBS linker flags for ALSA, overriding pkg-config 2291 LIBFFI_CFLAGS 2292 C compiler flags for LIBFFI, overriding pkg-config 2293 LIBFFI_LIBS linker flags for LIBFFI, overriding pkg-config 2294 PNG_CFLAGS C compiler flags for PNG, overriding pkg-config 2295 PNG_LIBS linker flags for PNG, overriding pkg-config 2296 LCMS_CFLAGS C compiler flags for LCMS, overriding pkg-config 2297 LCMS_LIBS linker flags for LCMS, overriding pkg-config 2298 ICECC_CMD Override default value for ICECC_CMD 2299 ICECC_CREATE_ENV 2300 Override default value for ICECC_CREATE_ENV 2301 ICECC_WRAPPER 2302 Override default value for ICECC_WRAPPER 2303 CCACHE Override default value for CCACHE 2304 2305 Use these variables to override the choices made by `configure' or to help 2306 it to find libraries and programs with nonstandard names/locations. 2307 2308 Report bugs to <build-dev@openjdk.java.net>. 2309 OpenJDK home page: <http://openjdk.java.net>. 2310 _ACEOF 2311 ac_status=$? 2312 fi 2313 2314 if test "$ac_init_help" = "recursive"; then 2315 # If there are subdirs, report their specific --help. 2316 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 2317 test -d "$ac_dir" || 2318 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 2319 continue 2320 ac_builddir=. 2321 2322 case "$ac_dir" in 2323 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 2324 *) 2325 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 2326 # A ".." for each directory in $ac_dir_suffix. 2327 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 2328 case $ac_top_builddir_sub in 2329 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 2330 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 2331 esac ;; 2332 esac 2333 ac_abs_top_builddir=$ac_pwd 2334 ac_abs_builddir=$ac_pwd$ac_dir_suffix 2335 # for backward compatibility: 2336 ac_top_builddir=$ac_top_build_prefix 2337 2338 case $srcdir in 2339 .) # We are building in place. 2340 ac_srcdir=. 2341 ac_top_srcdir=$ac_top_builddir_sub 2342 ac_abs_top_srcdir=$ac_pwd ;; 2343 [\\/]* | ?:[\\/]* ) # Absolute name. 2344 ac_srcdir=$srcdir$ac_dir_suffix; 2345 ac_top_srcdir=$srcdir 2346 ac_abs_top_srcdir=$srcdir ;; 2347 *) # Relative name. 2348 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 2349 ac_top_srcdir=$ac_top_build_prefix$srcdir 2350 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 2351 esac 2352 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 2353 2354 cd "$ac_dir" || { ac_status=$?; continue; } 2355 # Check for guested configure. 2356 if test -f "$ac_srcdir/configure.gnu"; then 2357 echo && 2358 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 2359 elif test -f "$ac_srcdir/configure"; then 2360 echo && 2361 $SHELL "$ac_srcdir/configure" --help=recursive 2362 else 2363 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 2364 fi || ac_status=$? 2365 cd "$ac_pwd" || { ac_status=$?; break; } 2366 done 2367 fi 2368 2369 test -n "$ac_init_help" && exit $ac_status 2370 if $ac_init_version; then 2371 cat <<\_ACEOF 2372 OpenJDK configure jdk9 2373 generated by GNU Autoconf 2.69 2374 2375 Copyright (C) 2012 Free Software Foundation, Inc. 2376 This configure script is free software; the Free Software Foundation 2377 gives unlimited permission to copy, distribute and modify it. 2378 _ACEOF 2379 exit 2380 fi 2381 2382 ## ------------------------ ## 2383 ## Autoconf initialization. ## 2384 ## ------------------------ ## 2385 2386 # ac_fn_c_try_compile LINENO 2387 # -------------------------- 2388 # Try to compile conftest.$ac_ext, and return whether this succeeded. 2389 ac_fn_c_try_compile () 2390 { 2391 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2392 rm -f conftest.$ac_objext 2393 if { { ac_try="$ac_compile" 2394 case "(($ac_try" in 2395 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2396 *) ac_try_echo=$ac_try;; 2397 esac 2398 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2399 $as_echo "$ac_try_echo"; } >&5 2400 (eval "$ac_compile") 2>conftest.err 2401 ac_status=$? 2402 if test -s conftest.err; then 2403 grep -v '^ *+' conftest.err >conftest.er1 2404 cat conftest.er1 >&5 2405 mv -f conftest.er1 conftest.err 2406 fi 2407 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2408 test $ac_status = 0; } && { 2409 test -z "$ac_c_werror_flag" || 2410 test ! -s conftest.err 2411 } && test -s conftest.$ac_objext; then : 2412 ac_retval=0 2413 else 2414 $as_echo "$as_me: failed program was:" >&5 2415 sed 's/^/| /' conftest.$ac_ext >&5 2416 2417 ac_retval=1 2418 fi 2419 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2420 as_fn_set_status $ac_retval 2421 2422 } # ac_fn_c_try_compile 2423 2424 # ac_fn_cxx_try_compile LINENO 2425 # ---------------------------- 2426 # Try to compile conftest.$ac_ext, and return whether this succeeded. 2427 ac_fn_cxx_try_compile () 2428 { 2429 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2430 rm -f conftest.$ac_objext 2431 if { { ac_try="$ac_compile" 2432 case "(($ac_try" in 2433 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2434 *) ac_try_echo=$ac_try;; 2435 esac 2436 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2437 $as_echo "$ac_try_echo"; } >&5 2438 (eval "$ac_compile") 2>conftest.err 2439 ac_status=$? 2440 if test -s conftest.err; then 2441 grep -v '^ *+' conftest.err >conftest.er1 2442 cat conftest.er1 >&5 2443 mv -f conftest.er1 conftest.err 2444 fi 2445 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2446 test $ac_status = 0; } && { 2447 test -z "$ac_cxx_werror_flag" || 2448 test ! -s conftest.err 2449 } && test -s conftest.$ac_objext; then : 2450 ac_retval=0 2451 else 2452 $as_echo "$as_me: failed program was:" >&5 2453 sed 's/^/| /' conftest.$ac_ext >&5 2454 2455 ac_retval=1 2456 fi 2457 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2458 as_fn_set_status $ac_retval 2459 2460 } # ac_fn_cxx_try_compile 2461 2462 # ac_fn_c_try_cpp LINENO 2463 # ---------------------- 2464 # Try to preprocess conftest.$ac_ext, and return whether this succeeded. 2465 ac_fn_c_try_cpp () 2466 { 2467 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2468 if { { ac_try="$ac_cpp conftest.$ac_ext" 2469 case "(($ac_try" in 2470 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2471 *) ac_try_echo=$ac_try;; 2472 esac 2473 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2474 $as_echo "$ac_try_echo"; } >&5 2475 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 2476 ac_status=$? 2477 if test -s conftest.err; then 2478 grep -v '^ *+' conftest.err >conftest.er1 2479 cat conftest.er1 >&5 2480 mv -f conftest.er1 conftest.err 2481 fi 2482 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2483 test $ac_status = 0; } > conftest.i && { 2484 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 2485 test ! -s conftest.err 2486 }; then : 2487 ac_retval=0 2488 else 2489 $as_echo "$as_me: failed program was:" >&5 2490 sed 's/^/| /' conftest.$ac_ext >&5 2491 2492 ac_retval=1 2493 fi 2494 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2495 as_fn_set_status $ac_retval 2496 2497 } # ac_fn_c_try_cpp 2498 2499 # ac_fn_cxx_try_cpp LINENO 2500 # ------------------------ 2501 # Try to preprocess conftest.$ac_ext, and return whether this succeeded. 2502 ac_fn_cxx_try_cpp () 2503 { 2504 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2505 if { { ac_try="$ac_cpp conftest.$ac_ext" 2506 case "(($ac_try" in 2507 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2508 *) ac_try_echo=$ac_try;; 2509 esac 2510 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2511 $as_echo "$ac_try_echo"; } >&5 2512 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 2513 ac_status=$? 2514 if test -s conftest.err; then 2515 grep -v '^ *+' conftest.err >conftest.er1 2516 cat conftest.er1 >&5 2517 mv -f conftest.er1 conftest.err 2518 fi 2519 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2520 test $ac_status = 0; } > conftest.i && { 2521 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || 2522 test ! -s conftest.err 2523 }; then : 2524 ac_retval=0 2525 else 2526 $as_echo "$as_me: failed program was:" >&5 2527 sed 's/^/| /' conftest.$ac_ext >&5 2528 2529 ac_retval=1 2530 fi 2531 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2532 as_fn_set_status $ac_retval 2533 2534 } # ac_fn_cxx_try_cpp 2535 2536 # ac_fn_c_try_link LINENO 2537 # ----------------------- 2538 # Try to link conftest.$ac_ext, and return whether this succeeded. 2539 ac_fn_c_try_link () 2540 { 2541 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2542 rm -f conftest.$ac_objext conftest$ac_exeext 2543 if { { ac_try="$ac_link" 2544 case "(($ac_try" in 2545 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2546 *) ac_try_echo=$ac_try;; 2547 esac 2548 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2549 $as_echo "$ac_try_echo"; } >&5 2550 (eval "$ac_link") 2>conftest.err 2551 ac_status=$? 2552 if test -s conftest.err; then 2553 grep -v '^ *+' conftest.err >conftest.er1 2554 cat conftest.er1 >&5 2555 mv -f conftest.er1 conftest.err 2556 fi 2557 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2558 test $ac_status = 0; } && { 2559 test -z "$ac_c_werror_flag" || 2560 test ! -s conftest.err 2561 } && test -s conftest$ac_exeext && { 2562 test "$cross_compiling" = yes || 2563 test -x conftest$ac_exeext 2564 }; then : 2565 ac_retval=0 2566 else 2567 $as_echo "$as_me: failed program was:" >&5 2568 sed 's/^/| /' conftest.$ac_ext >&5 2569 2570 ac_retval=1 2571 fi 2572 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 2573 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 2574 # interfere with the next link command; also delete a directory that is 2575 # left behind by Apple's compiler. We do this before executing the actions. 2576 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 2577 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2578 as_fn_set_status $ac_retval 2579 2580 } # ac_fn_c_try_link 2581 2582 # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES 2583 # --------------------------------------------------------- 2584 # Tests whether HEADER exists, giving a warning if it cannot be compiled using 2585 # the include files in INCLUDES and setting the cache variable VAR 2586 # accordingly. 2587 ac_fn_cxx_check_header_mongrel () 2588 { 2589 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2590 if eval \${$3+:} false; then : 2591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2592 $as_echo_n "checking for $2... " >&6; } 2593 if eval \${$3+:} false; then : 2594 $as_echo_n "(cached) " >&6 2595 fi 2596 eval ac_res=\$$3 2597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2598 $as_echo "$ac_res" >&6; } 2599 else 2600 # Is the header compilable? 2601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 2602 $as_echo_n "checking $2 usability... " >&6; } 2603 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2604 /* end confdefs.h. */ 2605 $4 2606 #include <$2> 2607 _ACEOF 2608 if ac_fn_cxx_try_compile "$LINENO"; then : 2609 ac_header_compiler=yes 2610 else 2611 ac_header_compiler=no 2612 fi 2613 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 2615 $as_echo "$ac_header_compiler" >&6; } 2616 2617 # Is the header present? 2618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 2619 $as_echo_n "checking $2 presence... " >&6; } 2620 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2621 /* end confdefs.h. */ 2622 #include <$2> 2623 _ACEOF 2624 if ac_fn_cxx_try_cpp "$LINENO"; then : 2625 ac_header_preproc=yes 2626 else 2627 ac_header_preproc=no 2628 fi 2629 rm -f conftest.err conftest.i conftest.$ac_ext 2630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 2631 $as_echo "$ac_header_preproc" >&6; } 2632 2633 # So? What about this header? 2634 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #(( 2635 yes:no: ) 2636 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 2637 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} 2638 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 2639 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 2640 ;; 2641 no:yes:* ) 2642 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 2643 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} 2644 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 2645 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} 2646 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 2647 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} 2648 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 2649 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} 2650 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 2651 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 2652 ( $as_echo "## ----------------------------------------- ## 2653 ## Report this to build-dev@openjdk.java.net ## 2654 ## ----------------------------------------- ##" 2655 ) | sed "s/^/$as_me: WARNING: /" >&2 2656 ;; 2657 esac 2658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2659 $as_echo_n "checking for $2... " >&6; } 2660 if eval \${$3+:} false; then : 2661 $as_echo_n "(cached) " >&6 2662 else 2663 eval "$3=\$ac_header_compiler" 2664 fi 2665 eval ac_res=\$$3 2666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2667 $as_echo "$ac_res" >&6; } 2668 fi 2669 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2670 2671 } # ac_fn_cxx_check_header_mongrel 2672 2673 # ac_fn_cxx_try_run LINENO 2674 # ------------------------ 2675 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 2676 # that executables *can* be run. 2677 ac_fn_cxx_try_run () 2678 { 2679 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2680 if { { ac_try="$ac_link" 2681 case "(($ac_try" in 2682 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2683 *) ac_try_echo=$ac_try;; 2684 esac 2685 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2686 $as_echo "$ac_try_echo"; } >&5 2687 (eval "$ac_link") 2>&5 2688 ac_status=$? 2689 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2690 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 2691 { { case "(($ac_try" in 2692 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2693 *) ac_try_echo=$ac_try;; 2694 esac 2695 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2696 $as_echo "$ac_try_echo"; } >&5 2697 (eval "$ac_try") 2>&5 2698 ac_status=$? 2699 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2700 test $ac_status = 0; }; }; then : 2701 ac_retval=0 2702 else 2703 $as_echo "$as_me: program exited with status $ac_status" >&5 2704 $as_echo "$as_me: failed program was:" >&5 2705 sed 's/^/| /' conftest.$ac_ext >&5 2706 2707 ac_retval=$ac_status 2708 fi 2709 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 2710 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2711 as_fn_set_status $ac_retval 2712 2713 } # ac_fn_cxx_try_run 2714 2715 # ac_fn_cxx_check_header_compile LINENO HEADER VAR INCLUDES 2716 # --------------------------------------------------------- 2717 # Tests whether HEADER exists and can be compiled using the include files in 2718 # INCLUDES, setting the cache variable VAR accordingly. 2719 ac_fn_cxx_check_header_compile () 2720 { 2721 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2723 $as_echo_n "checking for $2... " >&6; } 2724 if eval \${$3+:} false; then : 2725 $as_echo_n "(cached) " >&6 2726 else 2727 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2728 /* end confdefs.h. */ 2729 $4 2730 #include <$2> 2731 _ACEOF 2732 if ac_fn_cxx_try_compile "$LINENO"; then : 2733 eval "$3=yes" 2734 else 2735 eval "$3=no" 2736 fi 2737 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2738 fi 2739 eval ac_res=\$$3 2740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2741 $as_echo "$ac_res" >&6; } 2742 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2743 2744 } # ac_fn_cxx_check_header_compile 2745 2746 # ac_fn_cxx_compute_int LINENO EXPR VAR INCLUDES 2747 # ---------------------------------------------- 2748 # Tries to find the compile-time value of EXPR in a program that includes 2749 # INCLUDES, setting VAR accordingly. Returns whether the value could be 2750 # computed 2751 ac_fn_cxx_compute_int () 2752 { 2753 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2754 if test "$cross_compiling" = yes; then 2755 # Depending upon the size, compute the lo and hi bounds. 2756 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2757 /* end confdefs.h. */ 2758 $4 2759 int 2760 main () 2761 { 2762 static int test_array [1 - 2 * !(($2) >= 0)]; 2763 test_array [0] = 0; 2764 return test_array [0]; 2765 2766 ; 2767 return 0; 2768 } 2769 _ACEOF 2770 if ac_fn_cxx_try_compile "$LINENO"; then : 2771 ac_lo=0 ac_mid=0 2772 while :; do 2773 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2774 /* end confdefs.h. */ 2775 $4 2776 int 2777 main () 2778 { 2779 static int test_array [1 - 2 * !(($2) <= $ac_mid)]; 2780 test_array [0] = 0; 2781 return test_array [0]; 2782 2783 ; 2784 return 0; 2785 } 2786 _ACEOF 2787 if ac_fn_cxx_try_compile "$LINENO"; then : 2788 ac_hi=$ac_mid; break 2789 else 2790 as_fn_arith $ac_mid + 1 && ac_lo=$as_val 2791 if test $ac_lo -le $ac_mid; then 2792 ac_lo= ac_hi= 2793 break 2794 fi 2795 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val 2796 fi 2797 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2798 done 2799 else 2800 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2801 /* end confdefs.h. */ 2802 $4 2803 int 2804 main () 2805 { 2806 static int test_array [1 - 2 * !(($2) < 0)]; 2807 test_array [0] = 0; 2808 return test_array [0]; 2809 2810 ; 2811 return 0; 2812 } 2813 _ACEOF 2814 if ac_fn_cxx_try_compile "$LINENO"; then : 2815 ac_hi=-1 ac_mid=-1 2816 while :; do 2817 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2818 /* end confdefs.h. */ 2819 $4 2820 int 2821 main () 2822 { 2823 static int test_array [1 - 2 * !(($2) >= $ac_mid)]; 2824 test_array [0] = 0; 2825 return test_array [0]; 2826 2827 ; 2828 return 0; 2829 } 2830 _ACEOF 2831 if ac_fn_cxx_try_compile "$LINENO"; then : 2832 ac_lo=$ac_mid; break 2833 else 2834 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val 2835 if test $ac_mid -le $ac_hi; then 2836 ac_lo= ac_hi= 2837 break 2838 fi 2839 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val 2840 fi 2841 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2842 done 2843 else 2844 ac_lo= ac_hi= 2845 fi 2846 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2847 fi 2848 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2849 # Binary search between lo and hi bounds. 2850 while test "x$ac_lo" != "x$ac_hi"; do 2851 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val 2852 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2853 /* end confdefs.h. */ 2854 $4 2855 int 2856 main () 2857 { 2858 static int test_array [1 - 2 * !(($2) <= $ac_mid)]; 2859 test_array [0] = 0; 2860 return test_array [0]; 2861 2862 ; 2863 return 0; 2864 } 2865 _ACEOF 2866 if ac_fn_cxx_try_compile "$LINENO"; then : 2867 ac_hi=$ac_mid 2868 else 2869 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val 2870 fi 2871 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2872 done 2873 case $ac_lo in #(( 2874 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;; 2875 '') ac_retval=1 ;; 2876 esac 2877 else 2878 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2879 /* end confdefs.h. */ 2880 $4 2881 static long int longval () { return $2; } 2882 static unsigned long int ulongval () { return $2; } 2883 #include <stdio.h> 2884 #include <stdlib.h> 2885 int 2886 main () 2887 { 2888 2889 FILE *f = fopen ("conftest.val", "w"); 2890 if (! f) 2891 return 1; 2892 if (($2) < 0) 2893 { 2894 long int i = longval (); 2895 if (i != ($2)) 2896 return 1; 2897 fprintf (f, "%ld", i); 2898 } 2899 else 2900 { 2901 unsigned long int i = ulongval (); 2902 if (i != ($2)) 2903 return 1; 2904 fprintf (f, "%lu", i); 2905 } 2906 /* Do not output a trailing newline, as this causes \r\n confusion 2907 on some platforms. */ 2908 return ferror (f) || fclose (f) != 0; 2909 2910 ; 2911 return 0; 2912 } 2913 _ACEOF 2914 if ac_fn_cxx_try_run "$LINENO"; then : 2915 echo >>conftest.val; read $3 <conftest.val; ac_retval=0 2916 else 2917 ac_retval=1 2918 fi 2919 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 2920 conftest.$ac_objext conftest.beam conftest.$ac_ext 2921 rm -f conftest.val 2922 2923 fi 2924 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2925 as_fn_set_status $ac_retval 2926 2927 } # ac_fn_cxx_compute_int 2928 2929 # ac_fn_cxx_try_link LINENO 2930 # ------------------------- 2931 # Try to link conftest.$ac_ext, and return whether this succeeded. 2932 ac_fn_cxx_try_link () 2933 { 2934 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2935 rm -f conftest.$ac_objext conftest$ac_exeext 2936 if { { ac_try="$ac_link" 2937 case "(($ac_try" in 2938 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2939 *) ac_try_echo=$ac_try;; 2940 esac 2941 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2942 $as_echo "$ac_try_echo"; } >&5 2943 (eval "$ac_link") 2>conftest.err 2944 ac_status=$? 2945 if test -s conftest.err; then 2946 grep -v '^ *+' conftest.err >conftest.er1 2947 cat conftest.er1 >&5 2948 mv -f conftest.er1 conftest.err 2949 fi 2950 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2951 test $ac_status = 0; } && { 2952 test -z "$ac_cxx_werror_flag" || 2953 test ! -s conftest.err 2954 } && test -s conftest$ac_exeext && { 2955 test "$cross_compiling" = yes || 2956 test -x conftest$ac_exeext 2957 }; then : 2958 ac_retval=0 2959 else 2960 $as_echo "$as_me: failed program was:" >&5 2961 sed 's/^/| /' conftest.$ac_ext >&5 2962 2963 ac_retval=1 2964 fi 2965 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 2966 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 2967 # interfere with the next link command; also delete a directory that is 2968 # left behind by Apple's compiler. We do this before executing the actions. 2969 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 2970 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2971 as_fn_set_status $ac_retval 2972 2973 } # ac_fn_cxx_try_link 2974 2975 # ac_fn_cxx_check_func LINENO FUNC VAR 2976 # ------------------------------------ 2977 # Tests whether FUNC exists, setting the cache variable VAR accordingly 2978 ac_fn_cxx_check_func () 2979 { 2980 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2982 $as_echo_n "checking for $2... " >&6; } 2983 if eval \${$3+:} false; then : 2984 $as_echo_n "(cached) " >&6 2985 else 2986 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2987 /* end confdefs.h. */ 2988 /* Define $2 to an innocuous variant, in case <limits.h> declares $2. 2989 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 2990 #define $2 innocuous_$2 2991 2992 /* System header to define __stub macros and hopefully few prototypes, 2993 which can conflict with char $2 (); below. 2994 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 2995 <limits.h> exists even on freestanding compilers. */ 2996 2997 #ifdef __STDC__ 2998 # include <limits.h> 2999 #else 3000 # include <assert.h> 3001 #endif 3002 3003 #undef $2 3004 3005 /* Override any GCC internal prototype to avoid an error. 3006 Use char because int might match the return type of a GCC 3007 builtin and then its argument prototype would still apply. */ 3008 #ifdef __cplusplus 3009 extern "C" 3010 #endif 3011 char $2 (); 3012 /* The GNU C library defines this for functions which it implements 3013 to always fail with ENOSYS. Some functions are actually named 3014 something starting with __ and the normal name is an alias. */ 3015 #if defined __stub_$2 || defined __stub___$2 3016 choke me 3017 #endif 3018 3019 int 3020 main () 3021 { 3022 return $2 (); 3023 ; 3024 return 0; 3025 } 3026 _ACEOF 3027 if ac_fn_cxx_try_link "$LINENO"; then : 3028 eval "$3=yes" 3029 else 3030 eval "$3=no" 3031 fi 3032 rm -f core conftest.err conftest.$ac_objext \ 3033 conftest$ac_exeext conftest.$ac_ext 3034 fi 3035 eval ac_res=\$$3 3036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 3037 $as_echo "$ac_res" >&6; } 3038 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 3039 3040 } # ac_fn_cxx_check_func 3041 3042 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 3043 # ------------------------------------------------------- 3044 # Tests whether HEADER exists and can be compiled using the include files in 3045 # INCLUDES, setting the cache variable VAR accordingly. 3046 ac_fn_c_check_header_compile () 3047 { 3048 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 3049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 3050 $as_echo_n "checking for $2... " >&6; } 3051 if eval \${$3+:} false; then : 3052 $as_echo_n "(cached) " >&6 3053 else 3054 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3055 /* end confdefs.h. */ 3056 $4 3057 #include <$2> 3058 _ACEOF 3059 if ac_fn_c_try_compile "$LINENO"; then : 3060 eval "$3=yes" 3061 else 3062 eval "$3=no" 3063 fi 3064 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3065 fi 3066 eval ac_res=\$$3 3067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 3068 $as_echo "$ac_res" >&6; } 3069 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 3070 3071 } # ac_fn_c_check_header_compile 3072 cat >config.log <<_ACEOF 3073 This file contains any messages produced by compilers while 3074 running configure, to aid debugging if configure makes a mistake. 3075 3076 It was created by OpenJDK $as_me jdk9, which was 3077 generated by GNU Autoconf 2.69. Invocation command line was 3078 3079 $ $0 $@ 3080 3081 _ACEOF 3082 exec 5>>config.log 3083 { 3084 cat <<_ASUNAME 3085 ## --------- ## 3086 ## Platform. ## 3087 ## --------- ## 3088 3089 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 3090 uname -m = `(uname -m) 2>/dev/null || echo unknown` 3091 uname -r = `(uname -r) 2>/dev/null || echo unknown` 3092 uname -s = `(uname -s) 2>/dev/null || echo unknown` 3093 uname -v = `(uname -v) 2>/dev/null || echo unknown` 3094 3095 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 3096 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 3097 3098 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 3099 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 3100 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 3101 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 3102 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 3103 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 3104 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 3105 3106 _ASUNAME 3107 3108 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3109 for as_dir in $PATH 3110 do 3111 IFS=$as_save_IFS 3112 test -z "$as_dir" && as_dir=. 3113 $as_echo "PATH: $as_dir" 3114 done 3115 IFS=$as_save_IFS 3116 3117 } >&5 3118 3119 cat >&5 <<_ACEOF 3120 3121 3122 ## ----------- ## 3123 ## Core tests. ## 3124 ## ----------- ## 3125 3126 _ACEOF 3127 3128 3129 # Keep a trace of the command line. 3130 # Strip out --no-create and --no-recursion so they do not pile up. 3131 # Strip out --silent because we don't want to record it for future runs. 3132 # Also quote any args containing shell meta-characters. 3133 # Make two passes to allow for proper duplicate-argument suppression. 3134 ac_configure_args= 3135 ac_configure_args0= 3136 ac_configure_args1= 3137 ac_must_keep_next=false 3138 for ac_pass in 1 2 3139 do 3140 for ac_arg 3141 do 3142 case $ac_arg in 3143 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 3144 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 3145 | -silent | --silent | --silen | --sile | --sil) 3146 continue ;; 3147 *\'*) 3148 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 3149 esac 3150 case $ac_pass in 3151 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 3152 2) 3153 as_fn_append ac_configure_args1 " '$ac_arg'" 3154 if test $ac_must_keep_next = true; then 3155 ac_must_keep_next=false # Got value, back to normal. 3156 else 3157 case $ac_arg in 3158 *=* | --config-cache | -C | -disable-* | --disable-* \ 3159 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 3160 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 3161 | -with-* | --with-* | -without-* | --without-* | --x) 3162 case "$ac_configure_args0 " in 3163 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 3164 esac 3165 ;; 3166 -* ) ac_must_keep_next=true ;; 3167 esac 3168 fi 3169 as_fn_append ac_configure_args " '$ac_arg'" 3170 ;; 3171 esac 3172 done 3173 done 3174 { ac_configure_args0=; unset ac_configure_args0;} 3175 { ac_configure_args1=; unset ac_configure_args1;} 3176 3177 # When interrupted or exit'd, cleanup temporary files, and complete 3178 # config.log. We remove comments because anyway the quotes in there 3179 # would cause problems or look ugly. 3180 # WARNING: Use '\'' to represent an apostrophe within the trap. 3181 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 3182 trap 'exit_status=$? 3183 # Save into config.log some information that might help in debugging. 3184 { 3185 echo 3186 3187 $as_echo "## ---------------- ## 3188 ## Cache variables. ## 3189 ## ---------------- ##" 3190 echo 3191 # The following way of writing the cache mishandles newlines in values, 3192 ( 3193 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 3194 eval ac_val=\$$ac_var 3195 case $ac_val in #( 3196 *${as_nl}*) 3197 case $ac_var in #( 3198 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 3199 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 3200 esac 3201 case $ac_var in #( 3202 _ | IFS | as_nl) ;; #( 3203 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 3204 *) { eval $ac_var=; unset $ac_var;} ;; 3205 esac ;; 3206 esac 3207 done 3208 (set) 2>&1 | 3209 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 3210 *${as_nl}ac_space=\ *) 3211 sed -n \ 3212 "s/'\''/'\''\\\\'\'''\''/g; 3213 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 3214 ;; #( 3215 *) 3216 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 3217 ;; 3218 esac | 3219 sort 3220 ) 3221 echo 3222 3223 $as_echo "## ----------------- ## 3224 ## Output variables. ## 3225 ## ----------------- ##" 3226 echo 3227 for ac_var in $ac_subst_vars 3228 do 3229 eval ac_val=\$$ac_var 3230 case $ac_val in 3231 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 3232 esac 3233 $as_echo "$ac_var='\''$ac_val'\''" 3234 done | sort 3235 echo 3236 3237 if test -n "$ac_subst_files"; then 3238 $as_echo "## ------------------- ## 3239 ## File substitutions. ## 3240 ## ------------------- ##" 3241 echo 3242 for ac_var in $ac_subst_files 3243 do 3244 eval ac_val=\$$ac_var 3245 case $ac_val in 3246 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 3247 esac 3248 $as_echo "$ac_var='\''$ac_val'\''" 3249 done | sort 3250 echo 3251 fi 3252 3253 if test -s confdefs.h; then 3254 $as_echo "## ----------- ## 3255 ## confdefs.h. ## 3256 ## ----------- ##" 3257 echo 3258 cat confdefs.h 3259 echo 3260 fi 3261 test "$ac_signal" != 0 && 3262 $as_echo "$as_me: caught signal $ac_signal" 3263 $as_echo "$as_me: exit $exit_status" 3264 } >&5 3265 rm -f core *.core core.conftest.* && 3266 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 3267 exit $exit_status 3268 ' 0 3269 for ac_signal in 1 2 13 15; do 3270 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 3271 done 3272 ac_signal=0 3273 3274 # confdefs.h avoids OS command line length limits that DEFS can exceed. 3275 rm -f -r conftest* confdefs.h 3276 3277 $as_echo "/* confdefs.h */" > confdefs.h 3278 3279 # Predefined preprocessor variables. 3280 3281 cat >>confdefs.h <<_ACEOF 3282 #define PACKAGE_NAME "$PACKAGE_NAME" 3283 _ACEOF 3284 3285 cat >>confdefs.h <<_ACEOF 3286 #define PACKAGE_TARNAME "$PACKAGE_TARNAME" 3287 _ACEOF 3288 3289 cat >>confdefs.h <<_ACEOF 3290 #define PACKAGE_VERSION "$PACKAGE_VERSION" 3291 _ACEOF 3292 3293 cat >>confdefs.h <<_ACEOF 3294 #define PACKAGE_STRING "$PACKAGE_STRING" 3295 _ACEOF 3296 3297 cat >>confdefs.h <<_ACEOF 3298 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 3299 _ACEOF 3300 3301 cat >>confdefs.h <<_ACEOF 3302 #define PACKAGE_URL "$PACKAGE_URL" 3303 _ACEOF 3304 3305 3306 # Let the site file select an alternate cache file if it wants to. 3307 # Prefer an explicitly selected file to automatically selected ones. 3308 ac_site_file1=NONE 3309 ac_site_file2=NONE 3310 if test -n "$CONFIG_SITE"; then 3311 # We do not want a PATH search for config.site. 3312 case $CONFIG_SITE in #(( 3313 -*) ac_site_file1=./$CONFIG_SITE;; 3314 */*) ac_site_file1=$CONFIG_SITE;; 3315 *) ac_site_file1=./$CONFIG_SITE;; 3316 esac 3317 elif test "x$prefix" != xNONE; then 3318 ac_site_file1=$prefix/share/config.site 3319 ac_site_file2=$prefix/etc/config.site 3320 else 3321 ac_site_file1=$ac_default_prefix/share/config.site 3322 ac_site_file2=$ac_default_prefix/etc/config.site 3323 fi 3324 for ac_site_file in "$ac_site_file1" "$ac_site_file2" 3325 do 3326 test "x$ac_site_file" = xNONE && continue 3327 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 3328 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 3329 $as_echo "$as_me: loading site script $ac_site_file" >&6;} 3330 sed 's/^/| /' "$ac_site_file" >&5 3331 . "$ac_site_file" \ 3332 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3333 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3334 as_fn_error $? "failed to load site script $ac_site_file 3335 See \`config.log' for more details" "$LINENO" 5; } 3336 fi 3337 done 3338 3339 if test -r "$cache_file"; then 3340 # Some versions of bash will fail to source /dev/null (special files 3341 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 3342 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 3343 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 3344 $as_echo "$as_me: loading cache $cache_file" >&6;} 3345 case $cache_file in 3346 [\\/]* | ?:[\\/]* ) . "$cache_file";; 3347 *) . "./$cache_file";; 3348 esac 3349 fi 3350 else 3351 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 3352 $as_echo "$as_me: creating cache $cache_file" >&6;} 3353 >$cache_file 3354 fi 3355 3356 # Check that the precious variables saved in the cache have kept the same 3357 # value. 3358 ac_cache_corrupted=false 3359 for ac_var in $ac_precious_vars; do 3360 eval ac_old_set=\$ac_cv_env_${ac_var}_set 3361 eval ac_new_set=\$ac_env_${ac_var}_set 3362 eval ac_old_val=\$ac_cv_env_${ac_var}_value 3363 eval ac_new_val=\$ac_env_${ac_var}_value 3364 case $ac_old_set,$ac_new_set in 3365 set,) 3366 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 3367 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 3368 ac_cache_corrupted=: ;; 3369 ,set) 3370 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 3371 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 3372 ac_cache_corrupted=: ;; 3373 ,);; 3374 *) 3375 if test "x$ac_old_val" != "x$ac_new_val"; then 3376 # differences in whitespace do not lead to failure. 3377 ac_old_val_w=`echo x $ac_old_val` 3378 ac_new_val_w=`echo x $ac_new_val` 3379 if test "$ac_old_val_w" != "$ac_new_val_w"; then 3380 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 3381 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 3382 ac_cache_corrupted=: 3383 else 3384 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 3385 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 3386 eval $ac_var=\$ac_old_val 3387 fi 3388 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 3389 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 3390 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 3391 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 3392 fi;; 3393 esac 3394 # Pass precious variables to config.status. 3395 if test "$ac_new_set" = set; then 3396 case $ac_new_val in 3397 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 3398 *) ac_arg=$ac_var=$ac_new_val ;; 3399 esac 3400 case " $ac_configure_args " in 3401 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 3402 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 3403 esac 3404 fi 3405 done 3406 if $ac_cache_corrupted; then 3407 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3408 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3409 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 3410 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 3411 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 3412 fi 3413 ## -------------------- ## 3414 ## Main body of script. ## 3415 ## -------------------- ## 3416 3417 ac_ext=c 3418 ac_cpp='$CPP $CPPFLAGS' 3419 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3420 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3421 ac_compiler_gnu=$ac_cv_c_compiler_gnu 3422 3423 3424 3425 ac_aux_dir= 3426 for ac_dir in $TOPDIR/common/autoconf/build-aux "$srcdir"/$TOPDIR/common/autoconf/build-aux; do 3427 if test -f "$ac_dir/install-sh"; then 3428 ac_aux_dir=$ac_dir 3429 ac_install_sh="$ac_aux_dir/install-sh -c" 3430 break 3431 elif test -f "$ac_dir/install.sh"; then 3432 ac_aux_dir=$ac_dir 3433 ac_install_sh="$ac_aux_dir/install.sh -c" 3434 break 3435 elif test -f "$ac_dir/shtool"; then 3436 ac_aux_dir=$ac_dir 3437 ac_install_sh="$ac_aux_dir/shtool install -c" 3438 break 3439 fi 3440 done 3441 if test -z "$ac_aux_dir"; then 3442 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 3443 fi 3444 3445 # These three variables are undocumented and unsupported, 3446 # and are intended to be withdrawn in a future Autoconf release. 3447 # They can cause serious problems if a builder's source tree is in a directory 3448 # whose full name contains unusual characters. 3449 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 3450 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 3451 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 3452 3453 3454 # pkg.m4 - Macros to locate and utilise pkg-config. -*- Autoconf -*- 3455 3456 # 3457 # Copyright (c) 2012, 2013, Oracle and/or its affiliates. All rights reserved. 3458 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 3459 # 3460 # This code is free software; you can redistribute it and/or modify it 3461 # under the terms of the GNU General Public License version 2 only, as 3462 # published by the Free Software Foundation. Oracle designates this 3463 # particular file as subject to the "Classpath" exception as provided 3464 # by Oracle in the LICENSE file that accompanied this code. 3465 # 3466 # This code is distributed in the hope that it will be useful, but WITHOUT 3467 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 3468 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 3469 # version 2 for more details (a copy is included in the LICENSE file that 3470 # accompanied this code). 3471 # 3472 # You should have received a copy of the GNU General Public License version 3473 # 2 along with this work; if not, write to the Free Software Foundation, 3474 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 3475 # 3476 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 3477 # or visit www.oracle.com if you need additional information or have any 3478 # questions. 3479 # 3480 3481 # 3482 # Copyright © 2004 Scott James Remnant <scott@netsplit.com>. 3483 # 3484 # This program is free software; you can redistribute it and/or modify 3485 # it under the terms of the GNU General Public License as published by 3486 # the Free Software Foundation; either version 2 of the License, or 3487 # (at your option) any later version. 3488 # 3489 # This program is distributed in the hope that it will be useful, but 3490 # WITHOUT ANY WARRANTY; without even the implied warranty of 3491 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 3492 # General Public License for more details. 3493 # 3494 # You should have received a copy of the GNU General Public License 3495 # along with this program; if not, write to the Free Software 3496 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. 3497 # 3498 # As a special exception to the GNU General Public License, if you 3499 # distribute this file as part of a program that contains a 3500 # configuration script generated by Autoconf, you may include it under 3501 # the same distribution terms that you use for the rest of that program. 3502 3503 # PKG_PROG_PKG_CONFIG([MIN-VERSION]) 3504 # ---------------------------------- 3505 # PKG_PROG_PKG_CONFIG 3506 3507 # PKG_CHECK_EXISTS(MODULES, [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND]) 3508 # 3509 # Check to see whether a particular set of modules exists. Similar 3510 # to PKG_CHECK_MODULES(), but does not set variables or print errors. 3511 # 3512 # 3513 # Similar to PKG_CHECK_MODULES, make sure that the first instance of 3514 # this or PKG_CHECK_MODULES is called, or make sure to call 3515 # PKG_CHECK_EXISTS manually 3516 # -------------------------------------------------------------- 3517 3518 3519 3520 # _PKG_CONFIG([VARIABLE], [COMMAND], [MODULES]) 3521 # --------------------------------------------- 3522 # _PKG_CONFIG 3523 3524 # _PKG_SHORT_ERRORS_SUPPORTED 3525 # ----------------------------- 3526 # _PKG_SHORT_ERRORS_SUPPORTED 3527 3528 3529 # PKG_CHECK_MODULES(VARIABLE-PREFIX, MODULES, [ACTION-IF-FOUND], 3530 # [ACTION-IF-NOT-FOUND]) 3531 # 3532 # 3533 # Note that if there is a possibility the first call to 3534 # PKG_CHECK_MODULES might not happen, you should be sure to include an 3535 # explicit call to PKG_PROG_PKG_CONFIG in your configure.ac 3536 # 3537 # 3538 # -------------------------------------------------------------- 3539 # PKG_CHECK_MODULES 3540 3541 3542 # Include these first... 3543 # 3544 # Copyright (c) 2011, 2016, Oracle and/or its affiliates. All rights reserved. 3545 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 3546 # 3547 # This code is free software; you can redistribute it and/or modify it 3548 # under the terms of the GNU General Public License version 2 only, as 3549 # published by the Free Software Foundation. Oracle designates this 3550 # particular file as subject to the "Classpath" exception as provided 3551 # by Oracle in the LICENSE file that accompanied this code. 3552 # 3553 # This code is distributed in the hope that it will be useful, but WITHOUT 3554 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 3555 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 3556 # version 2 for more details (a copy is included in the LICENSE file that 3557 # accompanied this code). 3558 # 3559 # You should have received a copy of the GNU General Public License version 3560 # 2 along with this work; if not, write to the Free Software Foundation, 3561 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 3562 # 3563 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 3564 # or visit www.oracle.com if you need additional information or have any 3565 # questions. 3566 # 3567 3568 # Create a function/macro that takes a series of named arguments. The call is 3569 # similar to AC_DEFUN, but the setup of the function looks like this: 3570 # BASIC_DEFUN_NAMED([MYFUNC], [FOO *BAR], [$@], [ 3571 # ... do something 3572 # AC_MSG_NOTICE([Value of BAR is ARG_BAR]) 3573 # ]) 3574 # A star (*) in front of a named argument means that it is required and it's 3575 # presence will be verified. To pass e.g. the first value as a normal indexed 3576 # argument, use [m4_shift($@)] as the third argument instead of [$@]. These 3577 # arguments are referenced in the function by their name prefixed by ARG_, e.g. 3578 # "ARG_FOO". 3579 # 3580 # The generated function can be called like this: 3581 # MYFUNC(FOO: [foo-val], 3582 # BAR: [ 3583 # $ECHO hello world 3584 # ]) 3585 # Note that the argument value must start on the same line as the argument name. 3586 # 3587 # Argument 1: Name of the function to define 3588 # Argument 2: List of legal named arguments, with a * prefix for required arguments 3589 # Argument 3: Argument array to treat as named, typically $@ 3590 # Argument 4: The main function body 3591 3592 3593 # Test if $1 is a valid argument to $3 (often is $JAVA passed as $3) 3594 # If so, then append $1 to $2 \ 3595 # Also set JVM_ARG_OK to true/false depending on outcome. 3596 3597 3598 # Appends a string to a path variable, only adding the : when needed. 3599 3600 3601 # Prepends a string to a path variable, only adding the : when needed. 3602 3603 3604 # This will make sure the given variable points to a full and proper 3605 # path. This means: 3606 # 1) There will be no spaces in the path. On unix platforms, 3607 # spaces in the path will result in an error. On Windows, 3608 # the path will be rewritten using short-style to be space-free. 3609 # 2) The path will be absolute, and it will be in unix-style (on 3610 # cygwin). 3611 # $1: The name of the variable to fix 3612 3613 3614 # This will make sure the given variable points to a executable 3615 # with a full and proper path. This means: 3616 # 1) There will be no spaces in the path. On unix platforms, 3617 # spaces in the path will result in an error. On Windows, 3618 # the path will be rewritten using short-style to be space-free. 3619 # 2) The path will be absolute, and it will be in unix-style (on 3620 # cygwin). 3621 # Any arguments given to the executable is preserved. 3622 # If the input variable does not have a directory specification, then 3623 # it need to be in the PATH. 3624 # $1: The name of the variable to fix 3625 3626 3627 3628 3629 # Register a --with argument but mark it as deprecated 3630 # $1: The name of the with argument to deprecate, not including --with- 3631 3632 3633 # Register a --enable argument but mark it as deprecated 3634 # $1: The name of the with argument to deprecate, not including --enable- 3635 # $2: The name of the argument to deprecate, in shell variable style (i.e. with _ instead of -) 3636 # $3: Messages to user. 3637 3638 3639 3640 3641 # Test that variable $1 denoting a program is not empty. If empty, exit with an error. 3642 # $1: variable to check 3643 3644 3645 # Check that there are no unprocessed overridden variables left. 3646 # If so, they are an incorrect argument and we will exit with an error. 3647 3648 3649 # Setup a tool for the given variable. If correctly specified by the user, 3650 # use that value, otherwise search for the tool using the supplied code snippet. 3651 # $1: variable to set 3652 # $2: code snippet to call to look for the tool 3653 # $3: code snippet to call if variable was used to find tool 3654 3655 3656 # Call BASIC_SETUP_TOOL with AC_PATH_PROGS to locate the tool 3657 # $1: variable to set 3658 # $2: executable name (or list of names) to look for 3659 # $3: [path] 3660 3661 3662 # Call BASIC_SETUP_TOOL with AC_CHECK_TOOLS to locate the tool 3663 # $1: variable to set 3664 # $2: executable name (or list of names) to look for 3665 3666 3667 # Like BASIC_PATH_PROGS but fails if no tool was found. 3668 # $1: variable to set 3669 # $2: executable name (or list of names) to look for 3670 # $3: [path] 3671 3672 3673 # Like BASIC_SETUP_TOOL but fails if no tool was found. 3674 # $1: variable to set 3675 # $2: autoconf macro to call to look for the special tool 3676 3677 3678 # Setup the most fundamental tools that relies on not much else to set up, 3679 # but is used by much of the early bootstrap code. 3680 3681 3682 # Setup basic configuration paths, and platform-specific stuff related to PATHs. 3683 3684 3685 # Evaluates platform specific overrides for devkit variables. 3686 # $1: Name of variable 3687 3688 3689 3690 3691 3692 3693 #%%% Simple tools %%% 3694 3695 # Check if we have found a usable version of make 3696 # $1: the path to a potential make binary (or empty) 3697 # $2: the description on how we found this 3698 3699 3700 3701 3702 # Goes looking for a usable version of GNU make. 3703 3704 3705 3706 3707 3708 3709 3710 3711 # Check if build directory is on local disk. If not possible to determine, 3712 # we prefer to claim it's local. 3713 # Argument 1: directory to test 3714 # Argument 2: what to do if it is on local disk 3715 # Argument 3: what to do otherwise (remote disk or failure) 3716 3717 3718 # Check that source files have basic read permissions set. This might 3719 # not be the case in cygwin in certain conditions. 3720 3721 3722 3723 3724 # Check for support for specific options in bash 3725 3726 3727 ################################################################################ 3728 # 3729 # Default make target 3730 # 3731 3732 3733 # Code to run after AC_OUTPUT 3734 3735 3736 # 3737 # Copyright (c) 2011, 2016, Oracle and/or its affiliates. All rights reserved. 3738 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 3739 # 3740 # This code is free software; you can redistribute it and/or modify it 3741 # under the terms of the GNU General Public License version 2 only, as 3742 # published by the Free Software Foundation. Oracle designates this 3743 # particular file as subject to the "Classpath" exception as provided 3744 # by Oracle in the LICENSE file that accompanied this code. 3745 # 3746 # This code is distributed in the hope that it will be useful, but WITHOUT 3747 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 3748 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 3749 # version 2 for more details (a copy is included in the LICENSE file that 3750 # accompanied this code). 3751 # 3752 # You should have received a copy of the GNU General Public License version 3753 # 2 along with this work; if not, write to the Free Software Foundation, 3754 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 3755 # 3756 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 3757 # or visit www.oracle.com if you need additional information or have any 3758 # questions. 3759 # 3760 3761 3762 3763 3764 3765 # Helper function which possibly converts a path using DOS-style short mode. 3766 # If so, the updated path is stored in $new_path. 3767 # $1: The path to check 3768 3769 3770 # Helper function which possibly converts a path using DOS-style short mode. 3771 # If so, the updated path is stored in $new_path. 3772 # $1: The path to check 3773 3774 3775 # FIXME: The BASIC_FIXUP_*_CYGWIN/MSYS is most likely too convoluted 3776 # and could probably be heavily simplified. However, all changes in this 3777 # area tend to need lot of testing in different scenarios, and in lack of 3778 # proper unit testing, cleaning this up has not been deemed worth the effort 3779 # at the moment. 3780 3781 3782 3783 3784 3785 3786 3787 3788 3789 # Setup basic configuration paths, and platform-specific stuff related to PATHs. 3790 3791 3792 3793 3794 # ... then the rest 3795 # 3796 # Copyright (c) 2011, 2016, Oracle and/or its affiliates. All rights reserved. 3797 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 3798 # 3799 # This code is free software; you can redistribute it and/or modify it 3800 # under the terms of the GNU General Public License version 2 only, as 3801 # published by the Free Software Foundation. Oracle designates this 3802 # particular file as subject to the "Classpath" exception as provided 3803 # by Oracle in the LICENSE file that accompanied this code. 3804 # 3805 # This code is distributed in the hope that it will be useful, but WITHOUT 3806 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 3807 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 3808 # version 2 for more details (a copy is included in the LICENSE file that 3809 # accompanied this code). 3810 # 3811 # You should have received a copy of the GNU General Public License version 3812 # 2 along with this work; if not, write to the Free Software Foundation, 3813 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 3814 # 3815 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 3816 # or visit www.oracle.com if you need additional information or have any 3817 # questions. 3818 # 3819 3820 ######################################################################## 3821 # This file handles detection of the Boot JDK. The Boot JDK detection 3822 # process has been developed as a response to solve a complex real-world 3823 # problem. Initially, it was simple, but it has grown as platform after 3824 # platform, idiosyncracy after idiosyncracy has been supported. 3825 # 3826 # The basic idea is this: 3827 # 1) You need an acceptable *) JDK to use as a Boot JDK 3828 # 2) There are several ways to locate a JDK, that are mostly platform 3829 # dependent **) 3830 # 3) You can have multiple JDKs installed 3831 # 4) If possible, configure should try to dig out an acceptable JDK 3832 # automatically, without having to resort to command-line options 3833 # 3834 # *) acceptable means e.g. JDK7 for building JDK8, a complete JDK (with 3835 # javac) and not a JRE, etc. 3836 # 3837 # **) On Windows we typically use a well-known path. 3838 # On MacOSX we typically use the tool java_home. 3839 # On Linux we typically find javac in the $PATH, and then follow a 3840 # chain of symlinks that often ends up in a real JDK. 3841 # 3842 # This leads to the code where we check in different ways to locate a 3843 # JDK, and if one is found, check if it is acceptable. If not, we print 3844 # our reasons for rejecting it (useful when debugging non-working 3845 # configure situations) and continue checking the next one. 3846 ######################################################################## 3847 3848 # Execute the check given as argument, and verify the result 3849 # If the Boot JDK was previously found, do nothing 3850 # $1 A command line (typically autoconf macro) to execute 3851 3852 3853 # Test: Is bootjdk explicitly set by command line arguments? 3854 3855 3856 # Test: Is $JAVA_HOME set? 3857 3858 3859 # Test: Is there a java or javac in the PATH, which is a symlink to the JDK? 3860 3861 3862 # Test: Is there a /usr/libexec/java_home? (Typically on MacOSX) 3863 # $1: Argument to the java_home binary (optional) 3864 3865 3866 # Test: On MacOS X, can we find a boot jdk using /usr/libexec/java_home? 3867 3868 3869 # Look for a jdk in the given path. If there are multiple, try to select the newest. 3870 # If found, set BOOT_JDK and BOOT_JDK_FOUND. 3871 # $1 = Path to directory containing jdk installations. 3872 # $2 = String to append to the found JDK directory to get the proper JDK home 3873 3874 3875 # Call BOOTJDK_FIND_BEST_JDK_IN_DIRECTORY, but use the given 3876 # environmental variable as base for where to look. 3877 # $1 Name of an environmal variable, assumed to point to the Program Files directory. 3878 3879 3880 # Test: Is there a JDK installed in default, well-known locations? 3881 3882 3883 # Check that a command-line tool in the Boot JDK is correct 3884 # $1 = name of variable to assign 3885 # $2 = name of binary 3886 3887 3888 ############################################################################### 3889 # 3890 # We need a Boot JDK to bootstrap the build. 3891 # 3892 3893 3894 3895 3896 3897 # BUILD_JDK: the location of the latest JDK that can run 3898 # on the host system and supports the target class file version 3899 # generated in this JDK build. This variable should only be 3900 # used after the launchers are built. 3901 # 3902 3903 # Execute the check given as argument, and verify the result. 3904 # If the JDK was previously found, do nothing. 3905 # $1 A command line (typically autoconf macro) to execute 3906 3907 3908 # By default the BUILD_JDK is the JDK_OUTPUTDIR. If the target architecture 3909 # is different than the host system doing the build (e.g. cross-compilation), 3910 # a special BUILD_JDK is built as part of the build process. An external 3911 # prebuilt BUILD_JDK can also be supplied. 3912 3913 3914 # 3915 # Copyright (c) 2011, 2016, Oracle and/or its affiliates. All rights reserved. 3916 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 3917 # 3918 # This code is free software; you can redistribute it and/or modify it 3919 # under the terms of the GNU General Public License version 2 only, as 3920 # published by the Free Software Foundation. Oracle designates this 3921 # particular file as subject to the "Classpath" exception as provided 3922 # by Oracle in the LICENSE file that accompanied this code. 3923 # 3924 # This code is distributed in the hope that it will be useful, but WITHOUT 3925 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 3926 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 3927 # version 2 for more details (a copy is included in the LICENSE file that 3928 # accompanied this code). 3929 # 3930 # You should have received a copy of the GNU General Public License version 3931 # 2 along with this work; if not, write to the Free Software Foundation, 3932 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 3933 # 3934 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 3935 # or visit www.oracle.com if you need additional information or have any 3936 # questions. 3937 # 3938 3939 3940 3941 3942 3943 3944 3945 3946 3947 3948 3949 3950 3951 3952 3953 3954 3955 ################################################################################ 3956 # 3957 # Runs icecc-create-env once and prints the error if it fails 3958 # 3959 # $1: arguments to icecc-create-env 3960 # $2: log file 3961 # 3962 3963 3964 ################################################################################ 3965 # 3966 # Optionally enable distributed compilation of native code using icecc/icecream 3967 # 3968 3969 3970 3971 3972 3973 3974 3975 # 3976 # Copyright (c) 2011, 2016, Oracle and/or its affiliates. All rights reserved. 3977 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 3978 # 3979 # This code is free software; you can redistribute it and/or modify it 3980 # under the terms of the GNU General Public License version 2 only, as 3981 # published by the Free Software Foundation. Oracle designates this 3982 # particular file as subject to the "Classpath" exception as provided 3983 # by Oracle in the LICENSE file that accompanied this code. 3984 # 3985 # This code is distributed in the hope that it will be useful, but WITHOUT 3986 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 3987 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 3988 # version 2 for more details (a copy is included in the LICENSE file that 3989 # accompanied this code). 3990 # 3991 # You should have received a copy of the GNU General Public License version 3992 # 2 along with this work; if not, write to the Free Software Foundation, 3993 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 3994 # 3995 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 3996 # or visit www.oracle.com if you need additional information or have any 3997 # questions. 3998 # 3999 4000 # Reset the global CFLAGS/LDFLAGS variables and initialize them with the 4001 # corresponding configure arguments instead 4002 4003 4004 # Setup the sysroot flags and add them to global CFLAGS and LDFLAGS so 4005 # that configure can use them while detecting compilers. 4006 # TOOLCHAIN_TYPE is available here. 4007 # Param 1 - Optional prefix to all variables. (e.g BUILD_) 4008 4009 4010 4011 4012 4013 4014 # Documentation on common flags used for solstudio in HIGHEST. 4015 # 4016 # WARNING: Use of OPTIMIZATION_LEVEL=HIGHEST in your Makefile needs to be 4017 # done with care, there are some assumptions below that need to 4018 # be understood about the use of pointers, and IEEE behavior. 4019 # 4020 # -fns: Use non-standard floating point mode (not IEEE 754) 4021 # -fsimple: Do some simplification of floating point arithmetic (not IEEE 754) 4022 # -fsingle: Use single precision floating point with 'float' 4023 # -xalias_level=basic: Assume memory references via basic pointer types do not alias 4024 # (Source with excessing pointer casting and data access with mixed 4025 # pointer types are not recommended) 4026 # -xbuiltin=%all: Use intrinsic or inline versions for math/std functions 4027 # (If you expect perfect errno behavior, do not use this) 4028 # -xdepend: Loop data dependency optimizations (need -xO3 or higher) 4029 # -xrestrict: Pointer parameters to functions do not overlap 4030 # (Similar to -xalias_level=basic usage, but less obvious sometimes. 4031 # If you pass in multiple pointers to the same data, do not use this) 4032 # -xlibmil: Inline some library routines 4033 # (If you expect perfect errno behavior, do not use this) 4034 # -xlibmopt: Use optimized math routines (CURRENTLY DISABLED) 4035 # (If you expect perfect errno behavior, do not use this) 4036 # Can cause undefined external on Solaris 8 X86 on __sincos, removing for now 4037 4038 # FIXME: this will never happen since sparc != sparcv9, ie 32 bit, which we don't build anymore. 4039 # Bug? 4040 #if test "x$OPENJDK_TARGET_CPU" = xsparc; then 4041 # CFLAGS_JDK="${CFLAGS_JDK} -xmemalign=4s" 4042 # CXXFLAGS_JDK="${CXXFLAGS_JDK} -xmemalign=4s" 4043 #fi 4044 4045 4046 4047 4048 4049 4050 ################################################################################ 4051 # $1 - Either BUILD or TARGET to pick the correct OS/CPU variables to check 4052 # conditionals against. 4053 # $2 - Optional prefix for each variable defined. 4054 4055 4056 # FLAGS_C_COMPILER_CHECK_ARGUMENTS(ARGUMENT: [ARGUMENT], IF_TRUE: [RUN-IF-TRUE], 4057 # IF_FALSE: [RUN-IF-FALSE]) 4058 # ------------------------------------------------------------ 4059 # Check that the C compiler supports an argument 4060 4061 4062 4063 4064 # FLAGS_CXX_COMPILER_CHECK_ARGUMENTS(ARGUMENT: [ARGUMENT], IF_TRUE: [RUN-IF-TRUE], 4065 # IF_FALSE: [RUN-IF-FALSE]) 4066 # ------------------------------------------------------------ 4067 # Check that the C++ compiler supports an argument 4068 4069 4070 4071 4072 # FLAGS_COMPILER_CHECK_ARGUMENTS(ARGUMENT: [ARGUMENT], IF_TRUE: [RUN-IF-TRUE], 4073 # IF_FALSE: [RUN-IF-FALSE]) 4074 # ------------------------------------------------------------ 4075 # Check that the C and C++ compilers support an argument 4076 4077 4078 4079 4080 # FLAGS_LINKER_CHECK_ARGUMENTS(ARGUMENT: [ARGUMENT], IF_TRUE: [RUN-IF-TRUE], 4081 # IF_FALSE: [RUN-IF-FALSE]) 4082 # ------------------------------------------------------------ 4083 # Check that the linker support an argument 4084 4085 4086 4087 4088 4089 4090 # FLAGS_SETUP_GCC6_COMPILER_FLAGS([PREFIX]) 4091 # Arguments: 4092 # $1 - Optional prefix for each variable defined. 4093 4094 4095 # 4096 # Copyright (c) 2011, 2016, Oracle and/or its affiliates. All rights reserved. 4097 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4098 # 4099 # This code is free software; you can redistribute it and/or modify it 4100 # under the terms of the GNU General Public License version 2 only, as 4101 # published by the Free Software Foundation. Oracle designates this 4102 # particular file as subject to the "Classpath" exception as provided 4103 # by Oracle in the LICENSE file that accompanied this code. 4104 # 4105 # This code is distributed in the hope that it will be useful, but WITHOUT 4106 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 4107 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 4108 # version 2 for more details (a copy is included in the LICENSE file that 4109 # accompanied this code). 4110 # 4111 # You should have received a copy of the GNU General Public License version 4112 # 2 along with this work; if not, write to the Free Software Foundation, 4113 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 4114 # 4115 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 4116 # or visit www.oracle.com if you need additional information or have any 4117 # questions. 4118 # 4119 4120 4121 4122 4123 4124 cygwin_help() { 4125 case $1 in 4126 unzip) 4127 PKGHANDLER_COMMAND="( cd <location of cygwin setup.exe> && cmd /c setup -q -P unzip )" 4128 HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'." 4129 ;; 4130 zip) 4131 PKGHANDLER_COMMAND="( cd <location of cygwin setup.exe> && cmd /c setup -q -P zip )" 4132 HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'." 4133 ;; 4134 make) 4135 PKGHANDLER_COMMAND="( cd <location of cygwin setup.exe> && cmd /c setup -q -P make )" 4136 HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'." 4137 ;; 4138 freetype) 4139 HELP_MSG=" 4140 The freetype library can now be build during the configure process. 4141 Download the freetype sources and unpack them into an arbitrary directory: 4142 4143 wget http://download.savannah.gnu.org/releases/freetype/freetype-2.5.3.tar.gz 4144 tar -xzf freetype-2.5.3.tar.gz 4145 4146 Then run configure with '--with-freetype-src=<freetype_src>'. This will 4147 automatically build the freetype library into '<freetype_src>/lib64' for 64-bit 4148 builds or into '<freetype_src>/lib32' for 32-bit builds. 4149 Afterwards you can always use '--with-freetype-include=<freetype_src>/include' 4150 and '--with-freetype-lib=<freetype_src>/lib32|64' for other builds. 4151 4152 Alternatively you can unpack the sources like this to use the default directory: 4153 4154 tar --one-top-level=$HOME/freetype --strip-components=1 -xzf freetype-2.5.3.tar.gz" 4155 ;; 4156 esac 4157 } 4158 4159 msys_help() { 4160 PKGHANDLER_COMMAND="" 4161 } 4162 4163 apt_help() { 4164 case $1 in 4165 reduced) 4166 PKGHANDLER_COMMAND="sudo apt-get install gcc-multilib g++-multilib" ;; 4167 devkit) 4168 PKGHANDLER_COMMAND="sudo apt-get install build-essential" ;; 4169 openjdk) 4170 PKGHANDLER_COMMAND="sudo apt-get install openjdk-8-jdk" ;; 4171 alsa) 4172 PKGHANDLER_COMMAND="sudo apt-get install libasound2-dev" ;; 4173 cups) 4174 PKGHANDLER_COMMAND="sudo apt-get install libcups2-dev" ;; 4175 freetype) 4176 PKGHANDLER_COMMAND="sudo apt-get install libfreetype6-dev" ;; 4177 ffi) 4178 PKGHANDLER_COMMAND="sudo apt-get install libffi-dev" ;; 4179 x11) 4180 PKGHANDLER_COMMAND="sudo apt-get install libx11-dev libxext-dev libxrender-dev libxtst-dev libxt-dev" ;; 4181 ccache) 4182 PKGHANDLER_COMMAND="sudo apt-get install ccache" ;; 4183 dtrace) 4184 PKGHANDLER_COMMAND="sudo apt-get install systemtap-sdt-dev" ;; 4185 esac 4186 } 4187 4188 yum_help() { 4189 case $1 in 4190 devkit) 4191 PKGHANDLER_COMMAND="sudo yum groupinstall \"Development Tools\"" ;; 4192 openjdk) 4193 PKGHANDLER_COMMAND="sudo yum install java-1.8.0-openjdk-devel" ;; 4194 alsa) 4195 PKGHANDLER_COMMAND="sudo yum install alsa-lib-devel" ;; 4196 cups) 4197 PKGHANDLER_COMMAND="sudo yum install cups-devel" ;; 4198 freetype) 4199 PKGHANDLER_COMMAND="sudo yum install freetype-devel" ;; 4200 x11) 4201 PKGHANDLER_COMMAND="sudo yum install libXtst-devel libXt-devel libXrender-devel libXi-devel" ;; 4202 ccache) 4203 PKGHANDLER_COMMAND="sudo yum install ccache" ;; 4204 esac 4205 } 4206 4207 port_help() { 4208 PKGHANDLER_COMMAND="" 4209 } 4210 4211 pkgutil_help() { 4212 PKGHANDLER_COMMAND="" 4213 } 4214 4215 pkgadd_help() { 4216 PKGHANDLER_COMMAND="" 4217 } 4218 4219 # This function will check if we're called from the "configure" wrapper while 4220 # printing --help. If so, we will print out additional information that can 4221 # only be extracted within the autoconf script, and then exit. This must be 4222 # called at the very beginning in configure.ac. 4223 4224 4225 4226 4227 4228 4229 # 4230 # Copyright (c) 2011, 2016, Oracle and/or its affiliates. All rights reserved. 4231 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4232 # 4233 # This code is free software; you can redistribute it and/or modify it 4234 # under the terms of the GNU General Public License version 2 only, as 4235 # published by the Free Software Foundation. Oracle designates this 4236 # particular file as subject to the "Classpath" exception as provided 4237 # by Oracle in the LICENSE file that accompanied this code. 4238 # 4239 # This code is distributed in the hope that it will be useful, but WITHOUT 4240 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 4241 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 4242 # version 2 for more details (a copy is included in the LICENSE file that 4243 # accompanied this code). 4244 # 4245 # You should have received a copy of the GNU General Public License version 4246 # 2 along with this work; if not, write to the Free Software Foundation, 4247 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 4248 # 4249 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 4250 # or visit www.oracle.com if you need additional information or have any 4251 # questions. 4252 # 4253 4254 # All valid JVM features, regardless of platform 4255 VALID_JVM_FEATURES="compiler1 compiler2 zero shark minimal dtrace jvmti jvmci \ 4256 fprof vm-structs jni-check services management all-gcs nmt cds static-build" 4257 4258 # All valid JVM variants 4259 VALID_JVM_VARIANTS="server client minimal core zero zeroshark custom" 4260 4261 ############################################################################### 4262 # Check if the specified JVM variant should be built. To be used in shell if 4263 # constructs, like this: 4264 # if HOTSPOT_CHECK_JVM_VARIANT(server); then 4265 # 4266 # Only valid to use after HOTSPOT_SETUP_JVM_VARIANTS has setup variants. 4267 4268 # Definition kept in one line to allow inlining in if statements. 4269 # Additional [] needed to keep m4 from mangling shell constructs. 4270 4271 4272 ############################################################################### 4273 # Check if the specified JVM features are explicitly enabled. To be used in 4274 # shell if constructs, like this: 4275 # if HOTSPOT_CHECK_JVM_FEATURE(jvmti); then 4276 # 4277 # Only valid to use after HOTSPOT_SETUP_JVM_FEATURES has setup features. 4278 4279 # Definition kept in one line to allow inlining in if statements. 4280 # Additional [] needed to keep m4 from mangling shell constructs. 4281 4282 4283 ############################################################################### 4284 # Check which variants of the JVM that we want to build. Available variants are: 4285 # server: normal interpreter, and a tiered C1/C2 compiler 4286 # client: normal interpreter, and C1 (no C2 compiler) 4287 # minimal: reduced form of client with optional features stripped out 4288 # core: normal interpreter only, no compiler 4289 # zero: C++ based interpreter only, no compiler 4290 # zeroshark: C++ based interpreter, and a llvm-based compiler 4291 # custom: baseline JVM with no default features 4292 # 4293 4294 4295 ############################################################################### 4296 # Check if dtrace should be enabled and has all prerequisites present. 4297 # 4298 4299 4300 ############################################################################### 4301 # Set up all JVM features for each JVM variant. 4302 # 4303 4304 4305 ############################################################################### 4306 # Validate JVM features once all setup is complete, including custom setup. 4307 # 4308 4309 4310 ################################################################################ 4311 # Check if gtest should be built 4312 # 4313 4314 4315 # 4316 # Copyright (c) 2011, 2016, Oracle and/or its affiliates. All rights reserved. 4317 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4318 # 4319 # This code is free software; you can redistribute it and/or modify it 4320 # under the terms of the GNU General Public License version 2 only, as 4321 # published by the Free Software Foundation. Oracle designates this 4322 # particular file as subject to the "Classpath" exception as provided 4323 # by Oracle in the LICENSE file that accompanied this code. 4324 # 4325 # This code is distributed in the hope that it will be useful, but WITHOUT 4326 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 4327 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 4328 # version 2 for more details (a copy is included in the LICENSE file that 4329 # accompanied this code). 4330 # 4331 # You should have received a copy of the GNU General Public License version 4332 # 2 along with this work; if not, write to the Free Software Foundation, 4333 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 4334 # 4335 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 4336 # or visit www.oracle.com if you need additional information or have any 4337 # questions. 4338 # 4339 4340 ############################################################################### 4341 # Check which variant of the JDK that we want to build. 4342 # Currently we have: 4343 # normal: standard edition 4344 # but the custom make system may add other variants 4345 # 4346 # Effectively the JDK variant gives a name to a specific set of 4347 # modules to compile into the JDK. 4348 4349 4350 ############################################################################### 4351 # Set the debug level 4352 # release: no debug information, all optimizations, no asserts. 4353 # optimized: no debug information, all optimizations, no asserts, HotSpot target is 'optimized'. 4354 # fastdebug: debug information (-g), all optimizations, all asserts 4355 # slowdebug: debug information (-g), no optimizations, all asserts 4356 4357 4358 ############################################################################### 4359 # 4360 # Should we build only OpenJDK even if closed sources are present? 4361 # 4362 4363 4364 4365 4366 ############################################################################### 4367 # 4368 # Enable or disable the elliptic curve crypto implementation 4369 # 4370 4371 4372 4373 4374 ################################################################################ 4375 # 4376 # Gcov coverage data for hotspot 4377 # 4378 4379 4380 ################################################################################ 4381 # 4382 # Static build support. When enabled will generate static 4383 # libraries instead of shared libraries for all JDK libs. 4384 # 4385 4386 4387 ################################################################################ 4388 # 4389 # jlink options. 4390 # We always keep packaged modules in JDK image. 4391 # 4392 4393 4394 ################################################################################ 4395 # 4396 # Check if building of the jtreg failure handler should be enabled. 4397 # 4398 4399 4400 ################################################################################ 4401 # 4402 # Enable or disable generation of the classlist at build time 4403 # 4404 4405 4406 # 4407 # Copyright (c) 2015, 2016, Oracle and/or its affiliates. All rights reserved. 4408 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4409 # 4410 # This code is free software; you can redistribute it and/or modify it 4411 # under the terms of the GNU General Public License version 2 only, as 4412 # published by the Free Software Foundation. Oracle designates this 4413 # particular file as subject to the "Classpath" exception as provided 4414 # by Oracle in the LICENSE file that accompanied this code. 4415 # 4416 # This code is distributed in the hope that it will be useful, but WITHOUT 4417 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 4418 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 4419 # version 2 for more details (a copy is included in the LICENSE file that 4420 # accompanied this code). 4421 # 4422 # You should have received a copy of the GNU General Public License version 4423 # 2 along with this work; if not, write to the Free Software Foundation, 4424 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 4425 # 4426 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 4427 # or visit www.oracle.com if you need additional information or have any 4428 # questions. 4429 # 4430 4431 ############################################################################### 4432 # 4433 # Setup version numbers 4434 # 4435 4436 # Verify that a given string represents a valid version number, and assign it 4437 # to a variable. 4438 4439 # Argument 1: the variable to assign to 4440 # Argument 2: the value given by the user 4441 4442 4443 4444 4445 # 4446 # Copyright (c) 2011, 2016, Oracle and/or its affiliates. All rights reserved. 4447 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4448 # 4449 # This code is free software; you can redistribute it and/or modify it 4450 # under the terms of the GNU General Public License version 2 only, as 4451 # published by the Free Software Foundation. Oracle designates this 4452 # particular file as subject to the "Classpath" exception as provided 4453 # by Oracle in the LICENSE file that accompanied this code. 4454 # 4455 # This code is distributed in the hope that it will be useful, but WITHOUT 4456 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 4457 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 4458 # version 2 for more details (a copy is included in the LICENSE file that 4459 # accompanied this code). 4460 # 4461 # You should have received a copy of the GNU General Public License version 4462 # 2 along with this work; if not, write to the Free Software Foundation, 4463 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 4464 # 4465 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 4466 # or visit www.oracle.com if you need additional information or have any 4467 # questions. 4468 # 4469 4470 # Major library component reside in separate files. 4471 # 4472 # Copyright (c) 2011, 2015, Oracle and/or its affiliates. All rights reserved. 4473 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4474 # 4475 # This code is free software; you can redistribute it and/or modify it 4476 # under the terms of the GNU General Public License version 2 only, as 4477 # published by the Free Software Foundation. Oracle designates this 4478 # particular file as subject to the "Classpath" exception as provided 4479 # by Oracle in the LICENSE file that accompanied this code. 4480 # 4481 # This code is distributed in the hope that it will be useful, but WITHOUT 4482 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 4483 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 4484 # version 2 for more details (a copy is included in the LICENSE file that 4485 # accompanied this code). 4486 # 4487 # You should have received a copy of the GNU General Public License version 4488 # 2 along with this work; if not, write to the Free Software Foundation, 4489 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 4490 # 4491 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 4492 # or visit www.oracle.com if you need additional information or have any 4493 # questions. 4494 # 4495 4496 ################################################################################ 4497 # Setup alsa (Advanced Linux Sound Architecture) 4498 ################################################################################ 4499 4500 4501 # 4502 # Copyright (c) 2011, 2016, Oracle and/or its affiliates. All rights reserved. 4503 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4504 # 4505 # This code is free software; you can redistribute it and/or modify it 4506 # under the terms of the GNU General Public License version 2 only, as 4507 # published by the Free Software Foundation. Oracle designates this 4508 # particular file as subject to the "Classpath" exception as provided 4509 # by Oracle in the LICENSE file that accompanied this code. 4510 # 4511 # This code is distributed in the hope that it will be useful, but WITHOUT 4512 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 4513 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 4514 # version 2 for more details (a copy is included in the LICENSE file that 4515 # accompanied this code). 4516 # 4517 # You should have received a copy of the GNU General Public License version 4518 # 2 along with this work; if not, write to the Free Software Foundation, 4519 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 4520 # 4521 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 4522 # or visit www.oracle.com if you need additional information or have any 4523 # questions. 4524 # 4525 4526 ################################################################################ 4527 # Setup bundled libraries. 4528 # 4529 # For libjpeg, giflib, libpng, lcms2 and zlib, the source is present in the 4530 # OpenJDK repository. Default is to use these libraries as bundled, but they 4531 # might be replaced by en external version by the user. 4532 ################################################################################ 4533 4534 4535 ################################################################################ 4536 # Setup libjpeg 4537 ################################################################################ 4538 4539 4540 ################################################################################ 4541 # Setup giflib 4542 ################################################################################ 4543 4544 4545 ################################################################################ 4546 # Setup libpng 4547 ################################################################################ 4548 4549 4550 ################################################################################ 4551 # Setup zlib 4552 ################################################################################ 4553 4554 4555 ################################################################################ 4556 # Setup lcms (Little CMS) 4557 ################################################################################ 4558 4559 4560 # 4561 # Copyright (c) 2011, 2016, Oracle and/or its affiliates. All rights reserved. 4562 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4563 # 4564 # This code is free software; you can redistribute it and/or modify it 4565 # under the terms of the GNU General Public License version 2 only, as 4566 # published by the Free Software Foundation. Oracle designates this 4567 # particular file as subject to the "Classpath" exception as provided 4568 # by Oracle in the LICENSE file that accompanied this code. 4569 # 4570 # This code is distributed in the hope that it will be useful, but WITHOUT 4571 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 4572 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 4573 # version 2 for more details (a copy is included in the LICENSE file that 4574 # accompanied this code). 4575 # 4576 # You should have received a copy of the GNU General Public License version 4577 # 2 along with this work; if not, write to the Free Software Foundation, 4578 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 4579 # 4580 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 4581 # or visit www.oracle.com if you need additional information or have any 4582 # questions. 4583 # 4584 4585 ################################################################################ 4586 # Setup cups (Common Unix Printing System) 4587 ################################################################################ 4588 4589 4590 # 4591 # Copyright (c) 2015, Oracle and/or its affiliates. All rights reserved. 4592 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4593 # 4594 # This code is free software; you can redistribute it and/or modify it 4595 # under the terms of the GNU General Public License version 2 only, as 4596 # published by the Free Software Foundation. Oracle designates this 4597 # particular file as subject to the "Classpath" exception as provided 4598 # by Oracle in the LICENSE file that accompanied this code. 4599 # 4600 # This code is distributed in the hope that it will be useful, but WITHOUT 4601 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 4602 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 4603 # version 2 for more details (a copy is included in the LICENSE file that 4604 # accompanied this code). 4605 # 4606 # You should have received a copy of the GNU General Public License version 4607 # 2 along with this work; if not, write to the Free Software Foundation, 4608 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 4609 # 4610 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 4611 # or visit www.oracle.com if you need additional information or have any 4612 # questions. 4613 # 4614 4615 ################################################################################ 4616 # Setup libffi (Foreign Function Interface) 4617 ################################################################################ 4618 4619 4620 # 4621 # Copyright (c) 2011, 2015, Oracle and/or its affiliates. All rights reserved. 4622 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4623 # 4624 # This code is free software; you can redistribute it and/or modify it 4625 # under the terms of the GNU General Public License version 2 only, as 4626 # published by the Free Software Foundation. Oracle designates this 4627 # particular file as subject to the "Classpath" exception as provided 4628 # by Oracle in the LICENSE file that accompanied this code. 4629 # 4630 # This code is distributed in the hope that it will be useful, but WITHOUT 4631 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 4632 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 4633 # version 2 for more details (a copy is included in the LICENSE file that 4634 # accompanied this code). 4635 # 4636 # You should have received a copy of the GNU General Public License version 4637 # 2 along with this work; if not, write to the Free Software Foundation, 4638 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 4639 # 4640 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 4641 # or visit www.oracle.com if you need additional information or have any 4642 # questions. 4643 # 4644 4645 ################################################################################ 4646 # Build the freetype lib from source 4647 ################################################################################ 4648 4649 4650 ################################################################################ 4651 # Check if a potential freeype library match is correct and usable 4652 ################################################################################ 4653 4654 4655 ################################################################################ 4656 # Setup freetype (The FreeType2 font rendering library) 4657 ################################################################################ 4658 4659 4660 # 4661 # Copyright (c) 2011, 2016, Oracle and/or its affiliates. All rights reserved. 4662 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4663 # 4664 # This code is free software; you can redistribute it and/or modify it 4665 # under the terms of the GNU General Public License version 2 only, as 4666 # published by the Free Software Foundation. Oracle designates this 4667 # particular file as subject to the "Classpath" exception as provided 4668 # by Oracle in the LICENSE file that accompanied this code. 4669 # 4670 # This code is distributed in the hope that it will be useful, but WITHOUT 4671 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 4672 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 4673 # version 2 for more details (a copy is included in the LICENSE file that 4674 # accompanied this code). 4675 # 4676 # You should have received a copy of the GNU General Public License version 4677 # 2 along with this work; if not, write to the Free Software Foundation, 4678 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 4679 # 4680 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 4681 # or visit www.oracle.com if you need additional information or have any 4682 # questions. 4683 # 4684 4685 ################################################################################ 4686 # Setup the standard C/C++ runtime libraries. 4687 # 4688 # Most importantly, determine if stdc++ should be linked statically or 4689 # dynamically. 4690 ################################################################################ 4691 4692 4693 # 4694 # Copyright (c) 2011, 2015, Oracle and/or its affiliates. All rights reserved. 4695 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4696 # 4697 # This code is free software; you can redistribute it and/or modify it 4698 # under the terms of the GNU General Public License version 2 only, as 4699 # published by the Free Software Foundation. Oracle designates this 4700 # particular file as subject to the "Classpath" exception as provided 4701 # by Oracle in the LICENSE file that accompanied this code. 4702 # 4703 # This code is distributed in the hope that it will be useful, but WITHOUT 4704 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 4705 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 4706 # version 2 for more details (a copy is included in the LICENSE file that 4707 # accompanied this code). 4708 # 4709 # You should have received a copy of the GNU General Public License version 4710 # 2 along with this work; if not, write to the Free Software Foundation, 4711 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 4712 # 4713 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 4714 # or visit www.oracle.com if you need additional information or have any 4715 # questions. 4716 # 4717 4718 ################################################################################ 4719 # Setup X11 Windows system 4720 ################################################################################ 4721 4722 4723 4724 ################################################################################ 4725 # Determine which libraries are needed for this configuration 4726 ################################################################################ 4727 4728 4729 ################################################################################ 4730 # Parse library options, and setup needed libraries 4731 ################################################################################ 4732 4733 4734 ################################################################################ 4735 # Setup llvm (Low-Level VM) 4736 ################################################################################ 4737 4738 4739 ################################################################################ 4740 # Setup various libraries, typically small system libraries 4741 ################################################################################ 4742 4743 4744 ################################################################################ 4745 # libstlport.so.1 is needed for running gtest on Solaris. Find it to 4746 # redistribute it in the test image. 4747 ################################################################################ 4748 4749 4750 4751 # 4752 # Copyright (c) 2011, 2016, Oracle and/or its affiliates. All rights reserved. 4753 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4754 # 4755 # This code is free software; you can redistribute it and/or modify it 4756 # under the terms of the GNU General Public License version 2 only, as 4757 # published by the Free Software Foundation. Oracle designates this 4758 # particular file as subject to the "Classpath" exception as provided 4759 # by Oracle in the LICENSE file that accompanied this code. 4760 # 4761 # This code is distributed in the hope that it will be useful, but WITHOUT 4762 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 4763 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 4764 # version 2 for more details (a copy is included in the LICENSE file that 4765 # accompanied this code). 4766 # 4767 # You should have received a copy of the GNU General Public License version 4768 # 2 along with this work; if not, write to the Free Software Foundation, 4769 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 4770 # 4771 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 4772 # or visit www.oracle.com if you need additional information or have any 4773 # questions. 4774 # 4775 4776 # Support macro for PLATFORM_EXTRACT_TARGET_AND_BUILD. 4777 # Converts autoconf style CPU name to OpenJDK style, into 4778 # VAR_CPU, VAR_CPU_ARCH, VAR_CPU_BITS and VAR_CPU_ENDIAN. 4779 4780 4781 # Support macro for PLATFORM_EXTRACT_TARGET_AND_BUILD. 4782 # Converts autoconf style OS name to OpenJDK style, into 4783 # VAR_OS, VAR_OS_TYPE and VAR_OS_ENV. 4784 4785 4786 # Expects $host_os $host_cpu $build_os and $build_cpu 4787 # and $with_target_bits to have been setup! 4788 # 4789 # Translate the standard triplet(quadruplet) definition 4790 # of the target/build system into OPENJDK_TARGET_OS, OPENJDK_TARGET_CPU, 4791 # OPENJDK_BUILD_OS, etc. 4792 4793 4794 # Check if a reduced build (32-bit on 64-bit platforms) is requested, and modify behaviour 4795 # accordingly. Must be done after setting up build and target system, but before 4796 # doing anything else with these values. 4797 4798 4799 # Setup the legacy variables, for controlling the old makefiles. 4800 # 4801 4802 4803 # $1 - Either TARGET or BUILD to setup the variables for. 4804 4805 4806 4807 4808 #%%% Build and target systems %%% 4809 4810 4811 4812 4813 # Support macro for PLATFORM_SETUP_OPENJDK_TARGET_BITS. 4814 # Add -mX to various FLAGS variables. 4815 4816 4817 4818 4819 4820 4821 # 4822 # Copyright (c) 2011, 2016, Oracle and/or its affiliates. All rights reserved. 4823 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4824 # 4825 # This code is free software; you can redistribute it and/or modify it 4826 # under the terms of the GNU General Public License version 2 only, as 4827 # published by the Free Software Foundation. Oracle designates this 4828 # particular file as subject to the "Classpath" exception as provided 4829 # by Oracle in the LICENSE file that accompanied this code. 4830 # 4831 # This code is distributed in the hope that it will be useful, but WITHOUT 4832 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 4833 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 4834 # version 2 for more details (a copy is included in the LICENSE file that 4835 # accompanied this code). 4836 # 4837 # You should have received a copy of the GNU General Public License version 4838 # 2 along with this work; if not, write to the Free Software Foundation, 4839 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 4840 # 4841 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 4842 # or visit www.oracle.com if you need additional information or have any 4843 # questions. 4844 # 4845 4846 4847 4848 4849 4850 4851 4852 ################################################################################ 4853 # Define a mechanism for importing extra prebuilt modules 4854 # 4855 4856 4857 4858 # 4859 # Copyright (c) 2011, 2016, Oracle and/or its affiliates. All rights reserved. 4860 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4861 # 4862 # This code is free software; you can redistribute it and/or modify it 4863 # under the terms of the GNU General Public License version 2 only, as 4864 # published by the Free Software Foundation. Oracle designates this 4865 # particular file as subject to the "Classpath" exception as provided 4866 # by Oracle in the LICENSE file that accompanied this code. 4867 # 4868 # This code is distributed in the hope that it will be useful, but WITHOUT 4869 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 4870 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 4871 # version 2 for more details (a copy is included in the LICENSE file that 4872 # accompanied this code). 4873 # 4874 # You should have received a copy of the GNU General Public License version 4875 # 2 along with this work; if not, write to the Free Software Foundation, 4876 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 4877 # 4878 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 4879 # or visit www.oracle.com if you need additional information or have any 4880 # questions. 4881 # 4882 4883 ######################################################################## 4884 # This file is responsible for detecting, verifying and setting up the 4885 # toolchain, i.e. the compiler, linker and related utilities. It will setup 4886 # proper paths to the binaries, but it will not setup any flags. 4887 # 4888 # The binaries used is determined by the toolchain type, which is the family of 4889 # compilers and related tools that are used. 4890 ######################################################################## 4891 4892 4893 # All valid toolchains, regardless of platform (used by help.m4) 4894 VALID_TOOLCHAINS_all="gcc clang solstudio xlc microsoft" 4895 4896 # These toolchains are valid on different platforms 4897 VALID_TOOLCHAINS_linux="gcc clang" 4898 VALID_TOOLCHAINS_solaris="solstudio" 4899 VALID_TOOLCHAINS_macosx="gcc clang" 4900 VALID_TOOLCHAINS_aix="xlc" 4901 VALID_TOOLCHAINS_windows="microsoft" 4902 4903 # Toolchain descriptions 4904 TOOLCHAIN_DESCRIPTION_clang="clang/LLVM" 4905 TOOLCHAIN_DESCRIPTION_gcc="GNU Compiler Collection" 4906 TOOLCHAIN_DESCRIPTION_microsoft="Microsoft Visual Studio" 4907 TOOLCHAIN_DESCRIPTION_solstudio="Oracle Solaris Studio" 4908 TOOLCHAIN_DESCRIPTION_xlc="IBM XL C/C++" 4909 4910 # Minimum supported versions, empty means unspecified 4911 TOOLCHAIN_MINIMUM_VERSION_clang="3.2" 4912 TOOLCHAIN_MINIMUM_VERSION_gcc="4.3" 4913 TOOLCHAIN_MINIMUM_VERSION_microsoft="16.00.30319.01" # VS2010 4914 TOOLCHAIN_MINIMUM_VERSION_solstudio="5.13" 4915 TOOLCHAIN_MINIMUM_VERSION_xlc="" 4916 4917 # Prepare the system so that TOOLCHAIN_CHECK_COMPILER_VERSION can be called. 4918 # Must have CC_VERSION_NUMBER and CXX_VERSION_NUMBER. 4919 # $1 - optional variable prefix for compiler and version variables (BUILD_) 4920 # $2 - optional variable prefix for comparable variable (OPENJDK_BUILD_) 4921 4922 4923 # Check if the configured compiler (C and C++) is of a specific version or 4924 # newer. TOOLCHAIN_PREPARE_FOR_VERSION_COMPARISONS must have been called before. 4925 # 4926 # Arguments: 4927 # VERSION: The version string to check against the found version 4928 # IF_AT_LEAST: block to run if the compiler is at least this version (>=) 4929 # IF_OLDER_THAN: block to run if the compiler is older than this version (<) 4930 # PREFIX: Optional variable prefix for compiler to compare version for (OPENJDK_BUILD_) 4931 4932 4933 4934 4935 # Setup a number of variables describing how native output files are 4936 # named on this platform/toolchain. 4937 4938 4939 # Determine which toolchain type to use, and make sure it is valid for this 4940 # platform. Setup various information about the selected toolchain. 4941 4942 4943 # Before we start detecting the toolchain executables, we might need some 4944 # special setup, e.g. additional paths etc. 4945 4946 4947 # Restore path, etc 4948 4949 4950 # Check if a compiler is of the toolchain type we expect, and save the version 4951 # information from it. If the compiler does not match the expected type, 4952 # this function will abort using AC_MSG_ERROR. If it matches, the version will 4953 # be stored in CC_VERSION_NUMBER/CXX_VERSION_NUMBER (as a dotted number), and 4954 # the full version string in CC_VERSION_STRING/CXX_VERSION_STRING. 4955 # 4956 # $1 = compiler to test (CC or CXX) 4957 # $2 = human readable name of compiler (C or C++) 4958 4959 4960 # Try to locate the given C or C++ compiler in the path, or otherwise. 4961 # 4962 # $1 = compiler to test (CC or CXX) 4963 # $2 = human readable name of compiler (C or C++) 4964 # $3 = list of compiler names to search for 4965 4966 4967 # Detect the core components of the toolchain, i.e. the compilers (CC and CXX), 4968 # preprocessor (CPP and CXXCPP), the linker (LD), the assembler (AS) and the 4969 # archiver (AR). Verify that the compilers are correct according to the 4970 # toolchain type. 4971 4972 4973 # Setup additional tools that is considered a part of the toolchain, but not the 4974 # core part. Many of these are highly platform-specific and do not exist, 4975 # and/or are not needed on all platforms. 4976 4977 4978 # Setup the build tools (i.e, the compiler and linker used to build programs 4979 # that should be run on the build platform, not the target platform, as a build 4980 # helper). Since the non-cross-compile case uses the normal, target compilers 4981 # for this, we can only do this after these have been setup. 4982 4983 4984 # Do some additional checks on the detected tools. 4985 4986 4987 # Setup the JTReg Regression Test Harness. 4988 4989 4990 # 4991 # Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved. 4992 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4993 # 4994 # This code is free software; you can redistribute it and/or modify it 4995 # under the terms of the GNU General Public License version 2 only, as 4996 # published by the Free Software Foundation. Oracle designates this 4997 # particular file as subject to the "Classpath" exception as provided 4998 # by Oracle in the LICENSE file that accompanied this code. 4999 # 5000 # This code is distributed in the hope that it will be useful, but WITHOUT 5001 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 5002 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 5003 # version 2 for more details (a copy is included in the LICENSE file that 5004 # accompanied this code). 5005 # 5006 # You should have received a copy of the GNU General Public License version 5007 # 2 along with this work; if not, write to the Free Software Foundation, 5008 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 5009 # 5010 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 5011 # or visit www.oracle.com if you need additional information or have any 5012 # questions. 5013 # 5014 5015 ################################################################################ 5016 # The order of these defines the priority by which we try to find them. 5017 VALID_VS_VERSIONS="2013 2012 2010" 5018 5019 VS_DESCRIPTION_2010="Microsoft Visual Studio 2010" 5020 VS_VERSION_INTERNAL_2010=100 5021 VS_MSVCR_2010=msvcr100.dll 5022 # We don't use msvcp on Visual Studio 2010 5023 #VS_MSVCP_2010=msvcp100.dll 5024 VS_ENVVAR_2010="VS100COMNTOOLS" 5025 VS_VS_INSTALLDIR_2010="Microsoft Visual Studio 10.0" 5026 VS_SDK_INSTALLDIR_2010="Microsoft SDKs/Windows/v7.1" 5027 VS_VS_PLATFORM_NAME_2010="v100" 5028 VS_SDK_PLATFORM_NAME_2010="Windows7.1SDK" 5029 5030 VS_DESCRIPTION_2012="Microsoft Visual Studio 2012" 5031 VS_VERSION_INTERNAL_2012=110 5032 VS_MSVCR_2012=msvcr110.dll 5033 VS_MSVCP_2012=msvcp110.dll 5034 VS_ENVVAR_2012="VS110COMNTOOLS" 5035 VS_VS_INSTALLDIR_2012="Microsoft Visual Studio 11.0" 5036 VS_SDK_INSTALLDIR_2012= 5037 VS_VS_PLATFORM_NAME_2012="v110" 5038 VS_SDK_PLATFORM_NAME_2012= 5039 5040 VS_DESCRIPTION_2013="Microsoft Visual Studio 2013" 5041 VS_VERSION_INTERNAL_2013=120 5042 VS_MSVCR_2013=msvcr120.dll 5043 VS_MSVCP_2013=msvcp120.dll 5044 VS_ENVVAR_2013="VS120COMNTOOLS" 5045 VS_VS_INSTALLDIR_2013="Microsoft Visual Studio 12.0" 5046 VS_SDK_INSTALLDIR_2013= 5047 VS_VS_PLATFORM_NAME_2013="v120" 5048 VS_SDK_PLATFORM_NAME_2013= 5049 5050 ################################################################################ 5051 5052 5053 5054 ################################################################################ 5055 5056 5057 5058 ################################################################################ 5059 # Finds the bat or cmd file in Visual Studio or the SDK that sets up a proper 5060 # build environment and assigns it to VS_ENV_CMD 5061 5062 5063 ################################################################################ 5064 5065 5066 5067 ################################################################################ 5068 # Check if the VS env variables were setup prior to running configure. 5069 # If not, then find vcvarsall.bat and run it automatically, and integrate 5070 # the set env variables into the spec file. 5071 5072 5073 5074 5075 5076 5077 5078 5079 5080 5081 5082 5083 5084 5085 # This line needs to be here, verbatim, after all includes and the dummy hook 5086 # definitions. It is replaced with custom functionality when building 5087 # custom sources. 5088 #CUSTOM_AUTOCONF_INCLUDE 5089 5090 # Do not change or remove the following line, it is needed for consistency checks: 5091 DATE_WHEN_GENERATED=1481151700 5092 5093 ############################################################################### 5094 # 5095 # Initialization / Boot-strapping 5096 # 5097 # The bootstrapping process needs to solve the "chicken or the egg" problem, 5098 # thus it jumps back and forth, each time gaining something needed later on. 5099 # 5100 ############################################################################### 5101 5102 # If we are requested to print additional help, do that and then exit. 5103 # This must be the very first call. 5104 5105 if test "x$CONFIGURE_PRINT_ADDITIONAL_HELP" != x; then 5106 5107 # Print available toolchains 5108 $PRINTF "The following toolchains are available as arguments to --with-toolchain-type.\n" 5109 $PRINTF "Which are valid to use depends on the build platform.\n" 5110 for toolchain in $VALID_TOOLCHAINS_all; do 5111 # Use indirect variable referencing 5112 toolchain_var_name=TOOLCHAIN_DESCRIPTION_$toolchain 5113 TOOLCHAIN_DESCRIPTION=${!toolchain_var_name} 5114 $PRINTF " %-10s %s\n" $toolchain "$TOOLCHAIN_DESCRIPTION" 5115 done 5116 $PRINTF "\n" 5117 5118 # Print available jvm features 5119 $PRINTF "The following JVM features are available as arguments to --with-jvm-features.\n" 5120 $PRINTF "Which are valid to use depends on the target platform.\n " 5121 $PRINTF "%s " $VALID_JVM_FEATURES 5122 $PRINTF "\n" 5123 5124 # And now exit directly 5125 exit 0 5126 fi 5127 5128 5129 # Basic initialization that must happen first of all in the normal process. 5130 5131 # Save the original command line. This is passed to us by the wrapper configure script. 5132 5133 # Save the path variable before it gets changed 5134 ORIGINAL_PATH="$PATH" 5135 5136 DATE_WHEN_CONFIGURED=`LANG=C date` 5137 5138 { $as_echo "$as_me:${as_lineno-$LINENO}: Configuration created at $DATE_WHEN_CONFIGURED." >&5 5139 $as_echo "$as_me: Configuration created at $DATE_WHEN_CONFIGURED." >&6;} 5140 { $as_echo "$as_me:${as_lineno-$LINENO}: configure script generated at timestamp $DATE_WHEN_GENERATED." >&5 5141 $as_echo "$as_me: configure script generated at timestamp $DATE_WHEN_GENERATED." >&6;} 5142 5143 5144 # Start with tools that do not need have cross compilation support 5145 # and can be expected to be found in the default PATH. These tools are 5146 # used by configure. 5147 5148 # First are all the simple required tools. 5149 5150 5151 5152 # Publish this variable in the help. 5153 5154 5155 if [ -z "${BASENAME+x}" ]; then 5156 # The variable is not set by user, try to locate tool using the code snippet 5157 for ac_prog in basename 5158 do 5159 # Extract the first word of "$ac_prog", so it can be a program name with args. 5160 set dummy $ac_prog; ac_word=$2 5161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5162 $as_echo_n "checking for $ac_word... " >&6; } 5163 if ${ac_cv_path_BASENAME+:} false; then : 5164 $as_echo_n "(cached) " >&6 5165 else 5166 case $BASENAME in 5167 [\\/]* | ?:[\\/]*) 5168 ac_cv_path_BASENAME="$BASENAME" # Let the user override the test with a path. 5169 ;; 5170 *) 5171 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5172 for as_dir in $PATH 5173 do 5174 IFS=$as_save_IFS 5175 test -z "$as_dir" && as_dir=. 5176 for ac_exec_ext in '' $ac_executable_extensions; do 5177 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5178 ac_cv_path_BASENAME="$as_dir/$ac_word$ac_exec_ext" 5179 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5180 break 2 5181 fi 5182 done 5183 done 5184 IFS=$as_save_IFS 5185 5186 ;; 5187 esac 5188 fi 5189 BASENAME=$ac_cv_path_BASENAME 5190 if test -n "$BASENAME"; then 5191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASENAME" >&5 5192 $as_echo "$BASENAME" >&6; } 5193 else 5194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5195 $as_echo "no" >&6; } 5196 fi 5197 5198 5199 test -n "$BASENAME" && break 5200 done 5201 5202 else 5203 # The variable is set, but is it from the command line or the environment? 5204 5205 # Try to remove the string !BASENAME! from our list. 5206 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!BASENAME!/} 5207 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 5208 # If it failed, the variable was not from the command line. Ignore it, 5209 # but warn the user (except for BASH, which is always set by the calling BASH). 5210 if test "xBASENAME" != xBASH; then 5211 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of BASENAME from the environment. Use command line variables instead." >&5 5212 $as_echo "$as_me: WARNING: Ignoring value of BASENAME from the environment. Use command line variables instead." >&2;} 5213 fi 5214 # Try to locate tool using the code snippet 5215 for ac_prog in basename 5216 do 5217 # Extract the first word of "$ac_prog", so it can be a program name with args. 5218 set dummy $ac_prog; ac_word=$2 5219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5220 $as_echo_n "checking for $ac_word... " >&6; } 5221 if ${ac_cv_path_BASENAME+:} false; then : 5222 $as_echo_n "(cached) " >&6 5223 else 5224 case $BASENAME in 5225 [\\/]* | ?:[\\/]*) 5226 ac_cv_path_BASENAME="$BASENAME" # Let the user override the test with a path. 5227 ;; 5228 *) 5229 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5230 for as_dir in $PATH 5231 do 5232 IFS=$as_save_IFS 5233 test -z "$as_dir" && as_dir=. 5234 for ac_exec_ext in '' $ac_executable_extensions; do 5235 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5236 ac_cv_path_BASENAME="$as_dir/$ac_word$ac_exec_ext" 5237 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5238 break 2 5239 fi 5240 done 5241 done 5242 IFS=$as_save_IFS 5243 5244 ;; 5245 esac 5246 fi 5247 BASENAME=$ac_cv_path_BASENAME 5248 if test -n "$BASENAME"; then 5249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASENAME" >&5 5250 $as_echo "$BASENAME" >&6; } 5251 else 5252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5253 $as_echo "no" >&6; } 5254 fi 5255 5256 5257 test -n "$BASENAME" && break 5258 done 5259 5260 else 5261 # If it succeeded, then it was overridden by the user. We will use it 5262 # for the tool. 5263 5264 # First remove it from the list of overridden variables, so we can test 5265 # for unknown variables in the end. 5266 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 5267 5268 # Check if we try to supply an empty value 5269 if test "x$BASENAME" = x; then 5270 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool BASENAME= (no value)" >&5 5271 $as_echo "$as_me: Setting user supplied tool BASENAME= (no value)" >&6;} 5272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BASENAME" >&5 5273 $as_echo_n "checking for BASENAME... " >&6; } 5274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 5275 $as_echo "disabled" >&6; } 5276 else 5277 # Check if the provided tool contains a complete path. 5278 tool_specified="$BASENAME" 5279 tool_basename="${tool_specified##*/}" 5280 if test "x$tool_basename" = "x$tool_specified"; then 5281 # A command without a complete path is provided, search $PATH. 5282 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool BASENAME=$tool_basename" >&5 5283 $as_echo "$as_me: Will search for user supplied tool BASENAME=$tool_basename" >&6;} 5284 # Extract the first word of "$tool_basename", so it can be a program name with args. 5285 set dummy $tool_basename; ac_word=$2 5286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5287 $as_echo_n "checking for $ac_word... " >&6; } 5288 if ${ac_cv_path_BASENAME+:} false; then : 5289 $as_echo_n "(cached) " >&6 5290 else 5291 case $BASENAME in 5292 [\\/]* | ?:[\\/]*) 5293 ac_cv_path_BASENAME="$BASENAME" # Let the user override the test with a path. 5294 ;; 5295 *) 5296 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5297 for as_dir in $PATH 5298 do 5299 IFS=$as_save_IFS 5300 test -z "$as_dir" && as_dir=. 5301 for ac_exec_ext in '' $ac_executable_extensions; do 5302 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5303 ac_cv_path_BASENAME="$as_dir/$ac_word$ac_exec_ext" 5304 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5305 break 2 5306 fi 5307 done 5308 done 5309 IFS=$as_save_IFS 5310 5311 ;; 5312 esac 5313 fi 5314 BASENAME=$ac_cv_path_BASENAME 5315 if test -n "$BASENAME"; then 5316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASENAME" >&5 5317 $as_echo "$BASENAME" >&6; } 5318 else 5319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5320 $as_echo "no" >&6; } 5321 fi 5322 5323 5324 if test "x$BASENAME" = x; then 5325 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 5326 fi 5327 else 5328 # Otherwise we believe it is a complete path. Use it as it is. 5329 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool BASENAME=$tool_specified" >&5 5330 $as_echo "$as_me: Will use user supplied tool BASENAME=$tool_specified" >&6;} 5331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BASENAME" >&5 5332 $as_echo_n "checking for BASENAME... " >&6; } 5333 if test ! -x "$tool_specified"; then 5334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 5335 $as_echo "not found" >&6; } 5336 as_fn_error $? "User supplied tool BASENAME=$tool_specified does not exist or is not executable" "$LINENO" 5 5337 fi 5338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 5339 $as_echo "$tool_specified" >&6; } 5340 fi 5341 fi 5342 fi 5343 5344 fi 5345 5346 5347 5348 if test "x$BASENAME" = x; then 5349 as_fn_error $? "Could not find required tool for BASENAME" "$LINENO" 5 5350 fi 5351 5352 5353 5354 5355 5356 # Publish this variable in the help. 5357 5358 5359 if [ -z "${BASH+x}" ]; then 5360 # The variable is not set by user, try to locate tool using the code snippet 5361 for ac_prog in bash 5362 do 5363 # Extract the first word of "$ac_prog", so it can be a program name with args. 5364 set dummy $ac_prog; ac_word=$2 5365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5366 $as_echo_n "checking for $ac_word... " >&6; } 5367 if ${ac_cv_path_BASH+:} false; then : 5368 $as_echo_n "(cached) " >&6 5369 else 5370 case $BASH in 5371 [\\/]* | ?:[\\/]*) 5372 ac_cv_path_BASH="$BASH" # Let the user override the test with a path. 5373 ;; 5374 *) 5375 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5376 for as_dir in $PATH 5377 do 5378 IFS=$as_save_IFS 5379 test -z "$as_dir" && as_dir=. 5380 for ac_exec_ext in '' $ac_executable_extensions; do 5381 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5382 ac_cv_path_BASH="$as_dir/$ac_word$ac_exec_ext" 5383 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5384 break 2 5385 fi 5386 done 5387 done 5388 IFS=$as_save_IFS 5389 5390 ;; 5391 esac 5392 fi 5393 BASH=$ac_cv_path_BASH 5394 if test -n "$BASH"; then 5395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASH" >&5 5396 $as_echo "$BASH" >&6; } 5397 else 5398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5399 $as_echo "no" >&6; } 5400 fi 5401 5402 5403 test -n "$BASH" && break 5404 done 5405 5406 else 5407 # The variable is set, but is it from the command line or the environment? 5408 5409 # Try to remove the string !BASH! from our list. 5410 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!BASH!/} 5411 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 5412 # If it failed, the variable was not from the command line. Ignore it, 5413 # but warn the user (except for BASH, which is always set by the calling BASH). 5414 if test "xBASH" != xBASH; then 5415 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of BASH from the environment. Use command line variables instead." >&5 5416 $as_echo "$as_me: WARNING: Ignoring value of BASH from the environment. Use command line variables instead." >&2;} 5417 fi 5418 # Try to locate tool using the code snippet 5419 for ac_prog in bash 5420 do 5421 # Extract the first word of "$ac_prog", so it can be a program name with args. 5422 set dummy $ac_prog; ac_word=$2 5423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5424 $as_echo_n "checking for $ac_word... " >&6; } 5425 if ${ac_cv_path_BASH+:} false; then : 5426 $as_echo_n "(cached) " >&6 5427 else 5428 case $BASH in 5429 [\\/]* | ?:[\\/]*) 5430 ac_cv_path_BASH="$BASH" # Let the user override the test with a path. 5431 ;; 5432 *) 5433 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5434 for as_dir in $PATH 5435 do 5436 IFS=$as_save_IFS 5437 test -z "$as_dir" && as_dir=. 5438 for ac_exec_ext in '' $ac_executable_extensions; do 5439 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5440 ac_cv_path_BASH="$as_dir/$ac_word$ac_exec_ext" 5441 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5442 break 2 5443 fi 5444 done 5445 done 5446 IFS=$as_save_IFS 5447 5448 ;; 5449 esac 5450 fi 5451 BASH=$ac_cv_path_BASH 5452 if test -n "$BASH"; then 5453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASH" >&5 5454 $as_echo "$BASH" >&6; } 5455 else 5456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5457 $as_echo "no" >&6; } 5458 fi 5459 5460 5461 test -n "$BASH" && break 5462 done 5463 5464 else 5465 # If it succeeded, then it was overridden by the user. We will use it 5466 # for the tool. 5467 5468 # First remove it from the list of overridden variables, so we can test 5469 # for unknown variables in the end. 5470 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 5471 5472 # Check if we try to supply an empty value 5473 if test "x$BASH" = x; then 5474 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool BASH= (no value)" >&5 5475 $as_echo "$as_me: Setting user supplied tool BASH= (no value)" >&6;} 5476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BASH" >&5 5477 $as_echo_n "checking for BASH... " >&6; } 5478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 5479 $as_echo "disabled" >&6; } 5480 else 5481 # Check if the provided tool contains a complete path. 5482 tool_specified="$BASH" 5483 tool_basename="${tool_specified##*/}" 5484 if test "x$tool_basename" = "x$tool_specified"; then 5485 # A command without a complete path is provided, search $PATH. 5486 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool BASH=$tool_basename" >&5 5487 $as_echo "$as_me: Will search for user supplied tool BASH=$tool_basename" >&6;} 5488 # Extract the first word of "$tool_basename", so it can be a program name with args. 5489 set dummy $tool_basename; ac_word=$2 5490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5491 $as_echo_n "checking for $ac_word... " >&6; } 5492 if ${ac_cv_path_BASH+:} false; then : 5493 $as_echo_n "(cached) " >&6 5494 else 5495 case $BASH in 5496 [\\/]* | ?:[\\/]*) 5497 ac_cv_path_BASH="$BASH" # Let the user override the test with a path. 5498 ;; 5499 *) 5500 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5501 for as_dir in $PATH 5502 do 5503 IFS=$as_save_IFS 5504 test -z "$as_dir" && as_dir=. 5505 for ac_exec_ext in '' $ac_executable_extensions; do 5506 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5507 ac_cv_path_BASH="$as_dir/$ac_word$ac_exec_ext" 5508 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5509 break 2 5510 fi 5511 done 5512 done 5513 IFS=$as_save_IFS 5514 5515 ;; 5516 esac 5517 fi 5518 BASH=$ac_cv_path_BASH 5519 if test -n "$BASH"; then 5520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASH" >&5 5521 $as_echo "$BASH" >&6; } 5522 else 5523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5524 $as_echo "no" >&6; } 5525 fi 5526 5527 5528 if test "x$BASH" = x; then 5529 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 5530 fi 5531 else 5532 # Otherwise we believe it is a complete path. Use it as it is. 5533 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool BASH=$tool_specified" >&5 5534 $as_echo "$as_me: Will use user supplied tool BASH=$tool_specified" >&6;} 5535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BASH" >&5 5536 $as_echo_n "checking for BASH... " >&6; } 5537 if test ! -x "$tool_specified"; then 5538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 5539 $as_echo "not found" >&6; } 5540 as_fn_error $? "User supplied tool BASH=$tool_specified does not exist or is not executable" "$LINENO" 5 5541 fi 5542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 5543 $as_echo "$tool_specified" >&6; } 5544 fi 5545 fi 5546 fi 5547 5548 fi 5549 5550 5551 5552 if test "x$BASH" = x; then 5553 as_fn_error $? "Could not find required tool for BASH" "$LINENO" 5 5554 fi 5555 5556 5557 5558 5559 5560 # Publish this variable in the help. 5561 5562 5563 if [ -z "${CAT+x}" ]; then 5564 # The variable is not set by user, try to locate tool using the code snippet 5565 for ac_prog in cat 5566 do 5567 # Extract the first word of "$ac_prog", so it can be a program name with args. 5568 set dummy $ac_prog; ac_word=$2 5569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5570 $as_echo_n "checking for $ac_word... " >&6; } 5571 if ${ac_cv_path_CAT+:} false; then : 5572 $as_echo_n "(cached) " >&6 5573 else 5574 case $CAT in 5575 [\\/]* | ?:[\\/]*) 5576 ac_cv_path_CAT="$CAT" # Let the user override the test with a path. 5577 ;; 5578 *) 5579 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5580 for as_dir in $PATH 5581 do 5582 IFS=$as_save_IFS 5583 test -z "$as_dir" && as_dir=. 5584 for ac_exec_ext in '' $ac_executable_extensions; do 5585 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5586 ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext" 5587 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5588 break 2 5589 fi 5590 done 5591 done 5592 IFS=$as_save_IFS 5593 5594 ;; 5595 esac 5596 fi 5597 CAT=$ac_cv_path_CAT 5598 if test -n "$CAT"; then 5599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CAT" >&5 5600 $as_echo "$CAT" >&6; } 5601 else 5602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5603 $as_echo "no" >&6; } 5604 fi 5605 5606 5607 test -n "$CAT" && break 5608 done 5609 5610 else 5611 # The variable is set, but is it from the command line or the environment? 5612 5613 # Try to remove the string !CAT! from our list. 5614 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CAT!/} 5615 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 5616 # If it failed, the variable was not from the command line. Ignore it, 5617 # but warn the user (except for BASH, which is always set by the calling BASH). 5618 if test "xCAT" != xBASH; then 5619 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CAT from the environment. Use command line variables instead." >&5 5620 $as_echo "$as_me: WARNING: Ignoring value of CAT from the environment. Use command line variables instead." >&2;} 5621 fi 5622 # Try to locate tool using the code snippet 5623 for ac_prog in cat 5624 do 5625 # Extract the first word of "$ac_prog", so it can be a program name with args. 5626 set dummy $ac_prog; ac_word=$2 5627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5628 $as_echo_n "checking for $ac_word... " >&6; } 5629 if ${ac_cv_path_CAT+:} false; then : 5630 $as_echo_n "(cached) " >&6 5631 else 5632 case $CAT in 5633 [\\/]* | ?:[\\/]*) 5634 ac_cv_path_CAT="$CAT" # Let the user override the test with a path. 5635 ;; 5636 *) 5637 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5638 for as_dir in $PATH 5639 do 5640 IFS=$as_save_IFS 5641 test -z "$as_dir" && as_dir=. 5642 for ac_exec_ext in '' $ac_executable_extensions; do 5643 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5644 ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext" 5645 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5646 break 2 5647 fi 5648 done 5649 done 5650 IFS=$as_save_IFS 5651 5652 ;; 5653 esac 5654 fi 5655 CAT=$ac_cv_path_CAT 5656 if test -n "$CAT"; then 5657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CAT" >&5 5658 $as_echo "$CAT" >&6; } 5659 else 5660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5661 $as_echo "no" >&6; } 5662 fi 5663 5664 5665 test -n "$CAT" && break 5666 done 5667 5668 else 5669 # If it succeeded, then it was overridden by the user. We will use it 5670 # for the tool. 5671 5672 # First remove it from the list of overridden variables, so we can test 5673 # for unknown variables in the end. 5674 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 5675 5676 # Check if we try to supply an empty value 5677 if test "x$CAT" = x; then 5678 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool CAT= (no value)" >&5 5679 $as_echo "$as_me: Setting user supplied tool CAT= (no value)" >&6;} 5680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CAT" >&5 5681 $as_echo_n "checking for CAT... " >&6; } 5682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 5683 $as_echo "disabled" >&6; } 5684 else 5685 # Check if the provided tool contains a complete path. 5686 tool_specified="$CAT" 5687 tool_basename="${tool_specified##*/}" 5688 if test "x$tool_basename" = "x$tool_specified"; then 5689 # A command without a complete path is provided, search $PATH. 5690 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CAT=$tool_basename" >&5 5691 $as_echo "$as_me: Will search for user supplied tool CAT=$tool_basename" >&6;} 5692 # Extract the first word of "$tool_basename", so it can be a program name with args. 5693 set dummy $tool_basename; ac_word=$2 5694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5695 $as_echo_n "checking for $ac_word... " >&6; } 5696 if ${ac_cv_path_CAT+:} false; then : 5697 $as_echo_n "(cached) " >&6 5698 else 5699 case $CAT in 5700 [\\/]* | ?:[\\/]*) 5701 ac_cv_path_CAT="$CAT" # Let the user override the test with a path. 5702 ;; 5703 *) 5704 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5705 for as_dir in $PATH 5706 do 5707 IFS=$as_save_IFS 5708 test -z "$as_dir" && as_dir=. 5709 for ac_exec_ext in '' $ac_executable_extensions; do 5710 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5711 ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext" 5712 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5713 break 2 5714 fi 5715 done 5716 done 5717 IFS=$as_save_IFS 5718 5719 ;; 5720 esac 5721 fi 5722 CAT=$ac_cv_path_CAT 5723 if test -n "$CAT"; then 5724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CAT" >&5 5725 $as_echo "$CAT" >&6; } 5726 else 5727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5728 $as_echo "no" >&6; } 5729 fi 5730 5731 5732 if test "x$CAT" = x; then 5733 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 5734 fi 5735 else 5736 # Otherwise we believe it is a complete path. Use it as it is. 5737 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CAT=$tool_specified" >&5 5738 $as_echo "$as_me: Will use user supplied tool CAT=$tool_specified" >&6;} 5739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CAT" >&5 5740 $as_echo_n "checking for CAT... " >&6; } 5741 if test ! -x "$tool_specified"; then 5742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 5743 $as_echo "not found" >&6; } 5744 as_fn_error $? "User supplied tool CAT=$tool_specified does not exist or is not executable" "$LINENO" 5 5745 fi 5746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 5747 $as_echo "$tool_specified" >&6; } 5748 fi 5749 fi 5750 fi 5751 5752 fi 5753 5754 5755 5756 if test "x$CAT" = x; then 5757 as_fn_error $? "Could not find required tool for CAT" "$LINENO" 5 5758 fi 5759 5760 5761 5762 5763 5764 # Publish this variable in the help. 5765 5766 5767 if [ -z "${CHMOD+x}" ]; then 5768 # The variable is not set by user, try to locate tool using the code snippet 5769 for ac_prog in chmod 5770 do 5771 # Extract the first word of "$ac_prog", so it can be a program name with args. 5772 set dummy $ac_prog; ac_word=$2 5773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5774 $as_echo_n "checking for $ac_word... " >&6; } 5775 if ${ac_cv_path_CHMOD+:} false; then : 5776 $as_echo_n "(cached) " >&6 5777 else 5778 case $CHMOD in 5779 [\\/]* | ?:[\\/]*) 5780 ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path. 5781 ;; 5782 *) 5783 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5784 for as_dir in $PATH 5785 do 5786 IFS=$as_save_IFS 5787 test -z "$as_dir" && as_dir=. 5788 for ac_exec_ext in '' $ac_executable_extensions; do 5789 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5790 ac_cv_path_CHMOD="$as_dir/$ac_word$ac_exec_ext" 5791 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5792 break 2 5793 fi 5794 done 5795 done 5796 IFS=$as_save_IFS 5797 5798 ;; 5799 esac 5800 fi 5801 CHMOD=$ac_cv_path_CHMOD 5802 if test -n "$CHMOD"; then 5803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHMOD" >&5 5804 $as_echo "$CHMOD" >&6; } 5805 else 5806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5807 $as_echo "no" >&6; } 5808 fi 5809 5810 5811 test -n "$CHMOD" && break 5812 done 5813 5814 else 5815 # The variable is set, but is it from the command line or the environment? 5816 5817 # Try to remove the string !CHMOD! from our list. 5818 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CHMOD!/} 5819 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 5820 # If it failed, the variable was not from the command line. Ignore it, 5821 # but warn the user (except for BASH, which is always set by the calling BASH). 5822 if test "xCHMOD" != xBASH; then 5823 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CHMOD from the environment. Use command line variables instead." >&5 5824 $as_echo "$as_me: WARNING: Ignoring value of CHMOD from the environment. Use command line variables instead." >&2;} 5825 fi 5826 # Try to locate tool using the code snippet 5827 for ac_prog in chmod 5828 do 5829 # Extract the first word of "$ac_prog", so it can be a program name with args. 5830 set dummy $ac_prog; ac_word=$2 5831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5832 $as_echo_n "checking for $ac_word... " >&6; } 5833 if ${ac_cv_path_CHMOD+:} false; then : 5834 $as_echo_n "(cached) " >&6 5835 else 5836 case $CHMOD in 5837 [\\/]* | ?:[\\/]*) 5838 ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path. 5839 ;; 5840 *) 5841 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5842 for as_dir in $PATH 5843 do 5844 IFS=$as_save_IFS 5845 test -z "$as_dir" && as_dir=. 5846 for ac_exec_ext in '' $ac_executable_extensions; do 5847 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5848 ac_cv_path_CHMOD="$as_dir/$ac_word$ac_exec_ext" 5849 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5850 break 2 5851 fi 5852 done 5853 done 5854 IFS=$as_save_IFS 5855 5856 ;; 5857 esac 5858 fi 5859 CHMOD=$ac_cv_path_CHMOD 5860 if test -n "$CHMOD"; then 5861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHMOD" >&5 5862 $as_echo "$CHMOD" >&6; } 5863 else 5864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5865 $as_echo "no" >&6; } 5866 fi 5867 5868 5869 test -n "$CHMOD" && break 5870 done 5871 5872 else 5873 # If it succeeded, then it was overridden by the user. We will use it 5874 # for the tool. 5875 5876 # First remove it from the list of overridden variables, so we can test 5877 # for unknown variables in the end. 5878 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 5879 5880 # Check if we try to supply an empty value 5881 if test "x$CHMOD" = x; then 5882 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool CHMOD= (no value)" >&5 5883 $as_echo "$as_me: Setting user supplied tool CHMOD= (no value)" >&6;} 5884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CHMOD" >&5 5885 $as_echo_n "checking for CHMOD... " >&6; } 5886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 5887 $as_echo "disabled" >&6; } 5888 else 5889 # Check if the provided tool contains a complete path. 5890 tool_specified="$CHMOD" 5891 tool_basename="${tool_specified##*/}" 5892 if test "x$tool_basename" = "x$tool_specified"; then 5893 # A command without a complete path is provided, search $PATH. 5894 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CHMOD=$tool_basename" >&5 5895 $as_echo "$as_me: Will search for user supplied tool CHMOD=$tool_basename" >&6;} 5896 # Extract the first word of "$tool_basename", so it can be a program name with args. 5897 set dummy $tool_basename; ac_word=$2 5898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5899 $as_echo_n "checking for $ac_word... " >&6; } 5900 if ${ac_cv_path_CHMOD+:} false; then : 5901 $as_echo_n "(cached) " >&6 5902 else 5903 case $CHMOD in 5904 [\\/]* | ?:[\\/]*) 5905 ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path. 5906 ;; 5907 *) 5908 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5909 for as_dir in $PATH 5910 do 5911 IFS=$as_save_IFS 5912 test -z "$as_dir" && as_dir=. 5913 for ac_exec_ext in '' $ac_executable_extensions; do 5914 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5915 ac_cv_path_CHMOD="$as_dir/$ac_word$ac_exec_ext" 5916 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5917 break 2 5918 fi 5919 done 5920 done 5921 IFS=$as_save_IFS 5922 5923 ;; 5924 esac 5925 fi 5926 CHMOD=$ac_cv_path_CHMOD 5927 if test -n "$CHMOD"; then 5928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHMOD" >&5 5929 $as_echo "$CHMOD" >&6; } 5930 else 5931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5932 $as_echo "no" >&6; } 5933 fi 5934 5935 5936 if test "x$CHMOD" = x; then 5937 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 5938 fi 5939 else 5940 # Otherwise we believe it is a complete path. Use it as it is. 5941 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CHMOD=$tool_specified" >&5 5942 $as_echo "$as_me: Will use user supplied tool CHMOD=$tool_specified" >&6;} 5943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CHMOD" >&5 5944 $as_echo_n "checking for CHMOD... " >&6; } 5945 if test ! -x "$tool_specified"; then 5946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 5947 $as_echo "not found" >&6; } 5948 as_fn_error $? "User supplied tool CHMOD=$tool_specified does not exist or is not executable" "$LINENO" 5 5949 fi 5950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 5951 $as_echo "$tool_specified" >&6; } 5952 fi 5953 fi 5954 fi 5955 5956 fi 5957 5958 5959 5960 if test "x$CHMOD" = x; then 5961 as_fn_error $? "Could not find required tool for CHMOD" "$LINENO" 5 5962 fi 5963 5964 5965 5966 5967 5968 # Publish this variable in the help. 5969 5970 5971 if [ -z "${CMP+x}" ]; then 5972 # The variable is not set by user, try to locate tool using the code snippet 5973 for ac_prog in cmp 5974 do 5975 # Extract the first word of "$ac_prog", so it can be a program name with args. 5976 set dummy $ac_prog; ac_word=$2 5977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5978 $as_echo_n "checking for $ac_word... " >&6; } 5979 if ${ac_cv_path_CMP+:} false; then : 5980 $as_echo_n "(cached) " >&6 5981 else 5982 case $CMP in 5983 [\\/]* | ?:[\\/]*) 5984 ac_cv_path_CMP="$CMP" # Let the user override the test with a path. 5985 ;; 5986 *) 5987 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5988 for as_dir in $PATH 5989 do 5990 IFS=$as_save_IFS 5991 test -z "$as_dir" && as_dir=. 5992 for ac_exec_ext in '' $ac_executable_extensions; do 5993 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5994 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext" 5995 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5996 break 2 5997 fi 5998 done 5999 done 6000 IFS=$as_save_IFS 6001 6002 ;; 6003 esac 6004 fi 6005 CMP=$ac_cv_path_CMP 6006 if test -n "$CMP"; then 6007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CMP" >&5 6008 $as_echo "$CMP" >&6; } 6009 else 6010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6011 $as_echo "no" >&6; } 6012 fi 6013 6014 6015 test -n "$CMP" && break 6016 done 6017 6018 else 6019 # The variable is set, but is it from the command line or the environment? 6020 6021 # Try to remove the string !CMP! from our list. 6022 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CMP!/} 6023 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 6024 # If it failed, the variable was not from the command line. Ignore it, 6025 # but warn the user (except for BASH, which is always set by the calling BASH). 6026 if test "xCMP" != xBASH; then 6027 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CMP from the environment. Use command line variables instead." >&5 6028 $as_echo "$as_me: WARNING: Ignoring value of CMP from the environment. Use command line variables instead." >&2;} 6029 fi 6030 # Try to locate tool using the code snippet 6031 for ac_prog in cmp 6032 do 6033 # Extract the first word of "$ac_prog", so it can be a program name with args. 6034 set dummy $ac_prog; ac_word=$2 6035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6036 $as_echo_n "checking for $ac_word... " >&6; } 6037 if ${ac_cv_path_CMP+:} false; then : 6038 $as_echo_n "(cached) " >&6 6039 else 6040 case $CMP in 6041 [\\/]* | ?:[\\/]*) 6042 ac_cv_path_CMP="$CMP" # Let the user override the test with a path. 6043 ;; 6044 *) 6045 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6046 for as_dir in $PATH 6047 do 6048 IFS=$as_save_IFS 6049 test -z "$as_dir" && as_dir=. 6050 for ac_exec_ext in '' $ac_executable_extensions; do 6051 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6052 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext" 6053 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6054 break 2 6055 fi 6056 done 6057 done 6058 IFS=$as_save_IFS 6059 6060 ;; 6061 esac 6062 fi 6063 CMP=$ac_cv_path_CMP 6064 if test -n "$CMP"; then 6065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CMP" >&5 6066 $as_echo "$CMP" >&6; } 6067 else 6068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6069 $as_echo "no" >&6; } 6070 fi 6071 6072 6073 test -n "$CMP" && break 6074 done 6075 6076 else 6077 # If it succeeded, then it was overridden by the user. We will use it 6078 # for the tool. 6079 6080 # First remove it from the list of overridden variables, so we can test 6081 # for unknown variables in the end. 6082 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 6083 6084 # Check if we try to supply an empty value 6085 if test "x$CMP" = x; then 6086 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool CMP= (no value)" >&5 6087 $as_echo "$as_me: Setting user supplied tool CMP= (no value)" >&6;} 6088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CMP" >&5 6089 $as_echo_n "checking for CMP... " >&6; } 6090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 6091 $as_echo "disabled" >&6; } 6092 else 6093 # Check if the provided tool contains a complete path. 6094 tool_specified="$CMP" 6095 tool_basename="${tool_specified##*/}" 6096 if test "x$tool_basename" = "x$tool_specified"; then 6097 # A command without a complete path is provided, search $PATH. 6098 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CMP=$tool_basename" >&5 6099 $as_echo "$as_me: Will search for user supplied tool CMP=$tool_basename" >&6;} 6100 # Extract the first word of "$tool_basename", so it can be a program name with args. 6101 set dummy $tool_basename; ac_word=$2 6102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6103 $as_echo_n "checking for $ac_word... " >&6; } 6104 if ${ac_cv_path_CMP+:} false; then : 6105 $as_echo_n "(cached) " >&6 6106 else 6107 case $CMP in 6108 [\\/]* | ?:[\\/]*) 6109 ac_cv_path_CMP="$CMP" # Let the user override the test with a path. 6110 ;; 6111 *) 6112 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6113 for as_dir in $PATH 6114 do 6115 IFS=$as_save_IFS 6116 test -z "$as_dir" && as_dir=. 6117 for ac_exec_ext in '' $ac_executable_extensions; do 6118 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6119 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext" 6120 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6121 break 2 6122 fi 6123 done 6124 done 6125 IFS=$as_save_IFS 6126 6127 ;; 6128 esac 6129 fi 6130 CMP=$ac_cv_path_CMP 6131 if test -n "$CMP"; then 6132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CMP" >&5 6133 $as_echo "$CMP" >&6; } 6134 else 6135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6136 $as_echo "no" >&6; } 6137 fi 6138 6139 6140 if test "x$CMP" = x; then 6141 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 6142 fi 6143 else 6144 # Otherwise we believe it is a complete path. Use it as it is. 6145 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CMP=$tool_specified" >&5 6146 $as_echo "$as_me: Will use user supplied tool CMP=$tool_specified" >&6;} 6147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CMP" >&5 6148 $as_echo_n "checking for CMP... " >&6; } 6149 if test ! -x "$tool_specified"; then 6150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 6151 $as_echo "not found" >&6; } 6152 as_fn_error $? "User supplied tool CMP=$tool_specified does not exist or is not executable" "$LINENO" 5 6153 fi 6154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 6155 $as_echo "$tool_specified" >&6; } 6156 fi 6157 fi 6158 fi 6159 6160 fi 6161 6162 6163 6164 if test "x$CMP" = x; then 6165 as_fn_error $? "Could not find required tool for CMP" "$LINENO" 5 6166 fi 6167 6168 6169 6170 6171 6172 # Publish this variable in the help. 6173 6174 6175 if [ -z "${COMM+x}" ]; then 6176 # The variable is not set by user, try to locate tool using the code snippet 6177 for ac_prog in comm 6178 do 6179 # Extract the first word of "$ac_prog", so it can be a program name with args. 6180 set dummy $ac_prog; ac_word=$2 6181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6182 $as_echo_n "checking for $ac_word... " >&6; } 6183 if ${ac_cv_path_COMM+:} false; then : 6184 $as_echo_n "(cached) " >&6 6185 else 6186 case $COMM in 6187 [\\/]* | ?:[\\/]*) 6188 ac_cv_path_COMM="$COMM" # Let the user override the test with a path. 6189 ;; 6190 *) 6191 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6192 for as_dir in $PATH 6193 do 6194 IFS=$as_save_IFS 6195 test -z "$as_dir" && as_dir=. 6196 for ac_exec_ext in '' $ac_executable_extensions; do 6197 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6198 ac_cv_path_COMM="$as_dir/$ac_word$ac_exec_ext" 6199 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6200 break 2 6201 fi 6202 done 6203 done 6204 IFS=$as_save_IFS 6205 6206 ;; 6207 esac 6208 fi 6209 COMM=$ac_cv_path_COMM 6210 if test -n "$COMM"; then 6211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $COMM" >&5 6212 $as_echo "$COMM" >&6; } 6213 else 6214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6215 $as_echo "no" >&6; } 6216 fi 6217 6218 6219 test -n "$COMM" && break 6220 done 6221 6222 else 6223 # The variable is set, but is it from the command line or the environment? 6224 6225 # Try to remove the string !COMM! from our list. 6226 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!COMM!/} 6227 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 6228 # If it failed, the variable was not from the command line. Ignore it, 6229 # but warn the user (except for BASH, which is always set by the calling BASH). 6230 if test "xCOMM" != xBASH; then 6231 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of COMM from the environment. Use command line variables instead." >&5 6232 $as_echo "$as_me: WARNING: Ignoring value of COMM from the environment. Use command line variables instead." >&2;} 6233 fi 6234 # Try to locate tool using the code snippet 6235 for ac_prog in comm 6236 do 6237 # Extract the first word of "$ac_prog", so it can be a program name with args. 6238 set dummy $ac_prog; ac_word=$2 6239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6240 $as_echo_n "checking for $ac_word... " >&6; } 6241 if ${ac_cv_path_COMM+:} false; then : 6242 $as_echo_n "(cached) " >&6 6243 else 6244 case $COMM in 6245 [\\/]* | ?:[\\/]*) 6246 ac_cv_path_COMM="$COMM" # Let the user override the test with a path. 6247 ;; 6248 *) 6249 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6250 for as_dir in $PATH 6251 do 6252 IFS=$as_save_IFS 6253 test -z "$as_dir" && as_dir=. 6254 for ac_exec_ext in '' $ac_executable_extensions; do 6255 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6256 ac_cv_path_COMM="$as_dir/$ac_word$ac_exec_ext" 6257 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6258 break 2 6259 fi 6260 done 6261 done 6262 IFS=$as_save_IFS 6263 6264 ;; 6265 esac 6266 fi 6267 COMM=$ac_cv_path_COMM 6268 if test -n "$COMM"; then 6269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $COMM" >&5 6270 $as_echo "$COMM" >&6; } 6271 else 6272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6273 $as_echo "no" >&6; } 6274 fi 6275 6276 6277 test -n "$COMM" && break 6278 done 6279 6280 else 6281 # If it succeeded, then it was overridden by the user. We will use it 6282 # for the tool. 6283 6284 # First remove it from the list of overridden variables, so we can test 6285 # for unknown variables in the end. 6286 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 6287 6288 # Check if we try to supply an empty value 6289 if test "x$COMM" = x; then 6290 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool COMM= (no value)" >&5 6291 $as_echo "$as_me: Setting user supplied tool COMM= (no value)" >&6;} 6292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for COMM" >&5 6293 $as_echo_n "checking for COMM... " >&6; } 6294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 6295 $as_echo "disabled" >&6; } 6296 else 6297 # Check if the provided tool contains a complete path. 6298 tool_specified="$COMM" 6299 tool_basename="${tool_specified##*/}" 6300 if test "x$tool_basename" = "x$tool_specified"; then 6301 # A command without a complete path is provided, search $PATH. 6302 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool COMM=$tool_basename" >&5 6303 $as_echo "$as_me: Will search for user supplied tool COMM=$tool_basename" >&6;} 6304 # Extract the first word of "$tool_basename", so it can be a program name with args. 6305 set dummy $tool_basename; ac_word=$2 6306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6307 $as_echo_n "checking for $ac_word... " >&6; } 6308 if ${ac_cv_path_COMM+:} false; then : 6309 $as_echo_n "(cached) " >&6 6310 else 6311 case $COMM in 6312 [\\/]* | ?:[\\/]*) 6313 ac_cv_path_COMM="$COMM" # Let the user override the test with a path. 6314 ;; 6315 *) 6316 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6317 for as_dir in $PATH 6318 do 6319 IFS=$as_save_IFS 6320 test -z "$as_dir" && as_dir=. 6321 for ac_exec_ext in '' $ac_executable_extensions; do 6322 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6323 ac_cv_path_COMM="$as_dir/$ac_word$ac_exec_ext" 6324 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6325 break 2 6326 fi 6327 done 6328 done 6329 IFS=$as_save_IFS 6330 6331 ;; 6332 esac 6333 fi 6334 COMM=$ac_cv_path_COMM 6335 if test -n "$COMM"; then 6336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $COMM" >&5 6337 $as_echo "$COMM" >&6; } 6338 else 6339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6340 $as_echo "no" >&6; } 6341 fi 6342 6343 6344 if test "x$COMM" = x; then 6345 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 6346 fi 6347 else 6348 # Otherwise we believe it is a complete path. Use it as it is. 6349 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool COMM=$tool_specified" >&5 6350 $as_echo "$as_me: Will use user supplied tool COMM=$tool_specified" >&6;} 6351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for COMM" >&5 6352 $as_echo_n "checking for COMM... " >&6; } 6353 if test ! -x "$tool_specified"; then 6354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 6355 $as_echo "not found" >&6; } 6356 as_fn_error $? "User supplied tool COMM=$tool_specified does not exist or is not executable" "$LINENO" 5 6357 fi 6358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 6359 $as_echo "$tool_specified" >&6; } 6360 fi 6361 fi 6362 fi 6363 6364 fi 6365 6366 6367 6368 if test "x$COMM" = x; then 6369 as_fn_error $? "Could not find required tool for COMM" "$LINENO" 5 6370 fi 6371 6372 6373 6374 6375 6376 # Publish this variable in the help. 6377 6378 6379 if [ -z "${CP+x}" ]; then 6380 # The variable is not set by user, try to locate tool using the code snippet 6381 for ac_prog in cp 6382 do 6383 # Extract the first word of "$ac_prog", so it can be a program name with args. 6384 set dummy $ac_prog; ac_word=$2 6385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6386 $as_echo_n "checking for $ac_word... " >&6; } 6387 if ${ac_cv_path_CP+:} false; then : 6388 $as_echo_n "(cached) " >&6 6389 else 6390 case $CP in 6391 [\\/]* | ?:[\\/]*) 6392 ac_cv_path_CP="$CP" # Let the user override the test with a path. 6393 ;; 6394 *) 6395 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6396 for as_dir in $PATH 6397 do 6398 IFS=$as_save_IFS 6399 test -z "$as_dir" && as_dir=. 6400 for ac_exec_ext in '' $ac_executable_extensions; do 6401 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6402 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext" 6403 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6404 break 2 6405 fi 6406 done 6407 done 6408 IFS=$as_save_IFS 6409 6410 ;; 6411 esac 6412 fi 6413 CP=$ac_cv_path_CP 6414 if test -n "$CP"; then 6415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5 6416 $as_echo "$CP" >&6; } 6417 else 6418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6419 $as_echo "no" >&6; } 6420 fi 6421 6422 6423 test -n "$CP" && break 6424 done 6425 6426 else 6427 # The variable is set, but is it from the command line or the environment? 6428 6429 # Try to remove the string !CP! from our list. 6430 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CP!/} 6431 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 6432 # If it failed, the variable was not from the command line. Ignore it, 6433 # but warn the user (except for BASH, which is always set by the calling BASH). 6434 if test "xCP" != xBASH; then 6435 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CP from the environment. Use command line variables instead." >&5 6436 $as_echo "$as_me: WARNING: Ignoring value of CP from the environment. Use command line variables instead." >&2;} 6437 fi 6438 # Try to locate tool using the code snippet 6439 for ac_prog in cp 6440 do 6441 # Extract the first word of "$ac_prog", so it can be a program name with args. 6442 set dummy $ac_prog; ac_word=$2 6443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6444 $as_echo_n "checking for $ac_word... " >&6; } 6445 if ${ac_cv_path_CP+:} false; then : 6446 $as_echo_n "(cached) " >&6 6447 else 6448 case $CP in 6449 [\\/]* | ?:[\\/]*) 6450 ac_cv_path_CP="$CP" # Let the user override the test with a path. 6451 ;; 6452 *) 6453 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6454 for as_dir in $PATH 6455 do 6456 IFS=$as_save_IFS 6457 test -z "$as_dir" && as_dir=. 6458 for ac_exec_ext in '' $ac_executable_extensions; do 6459 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6460 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext" 6461 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6462 break 2 6463 fi 6464 done 6465 done 6466 IFS=$as_save_IFS 6467 6468 ;; 6469 esac 6470 fi 6471 CP=$ac_cv_path_CP 6472 if test -n "$CP"; then 6473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5 6474 $as_echo "$CP" >&6; } 6475 else 6476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6477 $as_echo "no" >&6; } 6478 fi 6479 6480 6481 test -n "$CP" && break 6482 done 6483 6484 else 6485 # If it succeeded, then it was overridden by the user. We will use it 6486 # for the tool. 6487 6488 # First remove it from the list of overridden variables, so we can test 6489 # for unknown variables in the end. 6490 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 6491 6492 # Check if we try to supply an empty value 6493 if test "x$CP" = x; then 6494 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool CP= (no value)" >&5 6495 $as_echo "$as_me: Setting user supplied tool CP= (no value)" >&6;} 6496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CP" >&5 6497 $as_echo_n "checking for CP... " >&6; } 6498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 6499 $as_echo "disabled" >&6; } 6500 else 6501 # Check if the provided tool contains a complete path. 6502 tool_specified="$CP" 6503 tool_basename="${tool_specified##*/}" 6504 if test "x$tool_basename" = "x$tool_specified"; then 6505 # A command without a complete path is provided, search $PATH. 6506 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CP=$tool_basename" >&5 6507 $as_echo "$as_me: Will search for user supplied tool CP=$tool_basename" >&6;} 6508 # Extract the first word of "$tool_basename", so it can be a program name with args. 6509 set dummy $tool_basename; ac_word=$2 6510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6511 $as_echo_n "checking for $ac_word... " >&6; } 6512 if ${ac_cv_path_CP+:} false; then : 6513 $as_echo_n "(cached) " >&6 6514 else 6515 case $CP in 6516 [\\/]* | ?:[\\/]*) 6517 ac_cv_path_CP="$CP" # Let the user override the test with a path. 6518 ;; 6519 *) 6520 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6521 for as_dir in $PATH 6522 do 6523 IFS=$as_save_IFS 6524 test -z "$as_dir" && as_dir=. 6525 for ac_exec_ext in '' $ac_executable_extensions; do 6526 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6527 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext" 6528 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6529 break 2 6530 fi 6531 done 6532 done 6533 IFS=$as_save_IFS 6534 6535 ;; 6536 esac 6537 fi 6538 CP=$ac_cv_path_CP 6539 if test -n "$CP"; then 6540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5 6541 $as_echo "$CP" >&6; } 6542 else 6543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6544 $as_echo "no" >&6; } 6545 fi 6546 6547 6548 if test "x$CP" = x; then 6549 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 6550 fi 6551 else 6552 # Otherwise we believe it is a complete path. Use it as it is. 6553 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CP=$tool_specified" >&5 6554 $as_echo "$as_me: Will use user supplied tool CP=$tool_specified" >&6;} 6555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CP" >&5 6556 $as_echo_n "checking for CP... " >&6; } 6557 if test ! -x "$tool_specified"; then 6558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 6559 $as_echo "not found" >&6; } 6560 as_fn_error $? "User supplied tool CP=$tool_specified does not exist or is not executable" "$LINENO" 5 6561 fi 6562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 6563 $as_echo "$tool_specified" >&6; } 6564 fi 6565 fi 6566 fi 6567 6568 fi 6569 6570 6571 6572 if test "x$CP" = x; then 6573 as_fn_error $? "Could not find required tool for CP" "$LINENO" 5 6574 fi 6575 6576 6577 6578 6579 6580 # Publish this variable in the help. 6581 6582 6583 if [ -z "${CUT+x}" ]; then 6584 # The variable is not set by user, try to locate tool using the code snippet 6585 for ac_prog in cut 6586 do 6587 # Extract the first word of "$ac_prog", so it can be a program name with args. 6588 set dummy $ac_prog; ac_word=$2 6589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6590 $as_echo_n "checking for $ac_word... " >&6; } 6591 if ${ac_cv_path_CUT+:} false; then : 6592 $as_echo_n "(cached) " >&6 6593 else 6594 case $CUT in 6595 [\\/]* | ?:[\\/]*) 6596 ac_cv_path_CUT="$CUT" # Let the user override the test with a path. 6597 ;; 6598 *) 6599 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6600 for as_dir in $PATH 6601 do 6602 IFS=$as_save_IFS 6603 test -z "$as_dir" && as_dir=. 6604 for ac_exec_ext in '' $ac_executable_extensions; do 6605 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6606 ac_cv_path_CUT="$as_dir/$ac_word$ac_exec_ext" 6607 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6608 break 2 6609 fi 6610 done 6611 done 6612 IFS=$as_save_IFS 6613 6614 ;; 6615 esac 6616 fi 6617 CUT=$ac_cv_path_CUT 6618 if test -n "$CUT"; then 6619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CUT" >&5 6620 $as_echo "$CUT" >&6; } 6621 else 6622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6623 $as_echo "no" >&6; } 6624 fi 6625 6626 6627 test -n "$CUT" && break 6628 done 6629 6630 else 6631 # The variable is set, but is it from the command line or the environment? 6632 6633 # Try to remove the string !CUT! from our list. 6634 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CUT!/} 6635 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 6636 # If it failed, the variable was not from the command line. Ignore it, 6637 # but warn the user (except for BASH, which is always set by the calling BASH). 6638 if test "xCUT" != xBASH; then 6639 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CUT from the environment. Use command line variables instead." >&5 6640 $as_echo "$as_me: WARNING: Ignoring value of CUT from the environment. Use command line variables instead." >&2;} 6641 fi 6642 # Try to locate tool using the code snippet 6643 for ac_prog in cut 6644 do 6645 # Extract the first word of "$ac_prog", so it can be a program name with args. 6646 set dummy $ac_prog; ac_word=$2 6647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6648 $as_echo_n "checking for $ac_word... " >&6; } 6649 if ${ac_cv_path_CUT+:} false; then : 6650 $as_echo_n "(cached) " >&6 6651 else 6652 case $CUT in 6653 [\\/]* | ?:[\\/]*) 6654 ac_cv_path_CUT="$CUT" # Let the user override the test with a path. 6655 ;; 6656 *) 6657 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6658 for as_dir in $PATH 6659 do 6660 IFS=$as_save_IFS 6661 test -z "$as_dir" && as_dir=. 6662 for ac_exec_ext in '' $ac_executable_extensions; do 6663 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6664 ac_cv_path_CUT="$as_dir/$ac_word$ac_exec_ext" 6665 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6666 break 2 6667 fi 6668 done 6669 done 6670 IFS=$as_save_IFS 6671 6672 ;; 6673 esac 6674 fi 6675 CUT=$ac_cv_path_CUT 6676 if test -n "$CUT"; then 6677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CUT" >&5 6678 $as_echo "$CUT" >&6; } 6679 else 6680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6681 $as_echo "no" >&6; } 6682 fi 6683 6684 6685 test -n "$CUT" && break 6686 done 6687 6688 else 6689 # If it succeeded, then it was overridden by the user. We will use it 6690 # for the tool. 6691 6692 # First remove it from the list of overridden variables, so we can test 6693 # for unknown variables in the end. 6694 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 6695 6696 # Check if we try to supply an empty value 6697 if test "x$CUT" = x; then 6698 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool CUT= (no value)" >&5 6699 $as_echo "$as_me: Setting user supplied tool CUT= (no value)" >&6;} 6700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUT" >&5 6701 $as_echo_n "checking for CUT... " >&6; } 6702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 6703 $as_echo "disabled" >&6; } 6704 else 6705 # Check if the provided tool contains a complete path. 6706 tool_specified="$CUT" 6707 tool_basename="${tool_specified##*/}" 6708 if test "x$tool_basename" = "x$tool_specified"; then 6709 # A command without a complete path is provided, search $PATH. 6710 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CUT=$tool_basename" >&5 6711 $as_echo "$as_me: Will search for user supplied tool CUT=$tool_basename" >&6;} 6712 # Extract the first word of "$tool_basename", so it can be a program name with args. 6713 set dummy $tool_basename; ac_word=$2 6714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6715 $as_echo_n "checking for $ac_word... " >&6; } 6716 if ${ac_cv_path_CUT+:} false; then : 6717 $as_echo_n "(cached) " >&6 6718 else 6719 case $CUT in 6720 [\\/]* | ?:[\\/]*) 6721 ac_cv_path_CUT="$CUT" # Let the user override the test with a path. 6722 ;; 6723 *) 6724 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6725 for as_dir in $PATH 6726 do 6727 IFS=$as_save_IFS 6728 test -z "$as_dir" && as_dir=. 6729 for ac_exec_ext in '' $ac_executable_extensions; do 6730 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6731 ac_cv_path_CUT="$as_dir/$ac_word$ac_exec_ext" 6732 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6733 break 2 6734 fi 6735 done 6736 done 6737 IFS=$as_save_IFS 6738 6739 ;; 6740 esac 6741 fi 6742 CUT=$ac_cv_path_CUT 6743 if test -n "$CUT"; then 6744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CUT" >&5 6745 $as_echo "$CUT" >&6; } 6746 else 6747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6748 $as_echo "no" >&6; } 6749 fi 6750 6751 6752 if test "x$CUT" = x; then 6753 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 6754 fi 6755 else 6756 # Otherwise we believe it is a complete path. Use it as it is. 6757 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CUT=$tool_specified" >&5 6758 $as_echo "$as_me: Will use user supplied tool CUT=$tool_specified" >&6;} 6759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUT" >&5 6760 $as_echo_n "checking for CUT... " >&6; } 6761 if test ! -x "$tool_specified"; then 6762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 6763 $as_echo "not found" >&6; } 6764 as_fn_error $? "User supplied tool CUT=$tool_specified does not exist or is not executable" "$LINENO" 5 6765 fi 6766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 6767 $as_echo "$tool_specified" >&6; } 6768 fi 6769 fi 6770 fi 6771 6772 fi 6773 6774 6775 6776 if test "x$CUT" = x; then 6777 as_fn_error $? "Could not find required tool for CUT" "$LINENO" 5 6778 fi 6779 6780 6781 6782 6783 6784 # Publish this variable in the help. 6785 6786 6787 if [ -z "${DATE+x}" ]; then 6788 # The variable is not set by user, try to locate tool using the code snippet 6789 for ac_prog in date 6790 do 6791 # Extract the first word of "$ac_prog", so it can be a program name with args. 6792 set dummy $ac_prog; ac_word=$2 6793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6794 $as_echo_n "checking for $ac_word... " >&6; } 6795 if ${ac_cv_path_DATE+:} false; then : 6796 $as_echo_n "(cached) " >&6 6797 else 6798 case $DATE in 6799 [\\/]* | ?:[\\/]*) 6800 ac_cv_path_DATE="$DATE" # Let the user override the test with a path. 6801 ;; 6802 *) 6803 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6804 for as_dir in $PATH 6805 do 6806 IFS=$as_save_IFS 6807 test -z "$as_dir" && as_dir=. 6808 for ac_exec_ext in '' $ac_executable_extensions; do 6809 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6810 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext" 6811 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6812 break 2 6813 fi 6814 done 6815 done 6816 IFS=$as_save_IFS 6817 6818 ;; 6819 esac 6820 fi 6821 DATE=$ac_cv_path_DATE 6822 if test -n "$DATE"; then 6823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DATE" >&5 6824 $as_echo "$DATE" >&6; } 6825 else 6826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6827 $as_echo "no" >&6; } 6828 fi 6829 6830 6831 test -n "$DATE" && break 6832 done 6833 6834 else 6835 # The variable is set, but is it from the command line or the environment? 6836 6837 # Try to remove the string !DATE! from our list. 6838 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!DATE!/} 6839 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 6840 # If it failed, the variable was not from the command line. Ignore it, 6841 # but warn the user (except for BASH, which is always set by the calling BASH). 6842 if test "xDATE" != xBASH; then 6843 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of DATE from the environment. Use command line variables instead." >&5 6844 $as_echo "$as_me: WARNING: Ignoring value of DATE from the environment. Use command line variables instead." >&2;} 6845 fi 6846 # Try to locate tool using the code snippet 6847 for ac_prog in date 6848 do 6849 # Extract the first word of "$ac_prog", so it can be a program name with args. 6850 set dummy $ac_prog; ac_word=$2 6851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6852 $as_echo_n "checking for $ac_word... " >&6; } 6853 if ${ac_cv_path_DATE+:} false; then : 6854 $as_echo_n "(cached) " >&6 6855 else 6856 case $DATE in 6857 [\\/]* | ?:[\\/]*) 6858 ac_cv_path_DATE="$DATE" # Let the user override the test with a path. 6859 ;; 6860 *) 6861 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6862 for as_dir in $PATH 6863 do 6864 IFS=$as_save_IFS 6865 test -z "$as_dir" && as_dir=. 6866 for ac_exec_ext in '' $ac_executable_extensions; do 6867 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6868 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext" 6869 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6870 break 2 6871 fi 6872 done 6873 done 6874 IFS=$as_save_IFS 6875 6876 ;; 6877 esac 6878 fi 6879 DATE=$ac_cv_path_DATE 6880 if test -n "$DATE"; then 6881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DATE" >&5 6882 $as_echo "$DATE" >&6; } 6883 else 6884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6885 $as_echo "no" >&6; } 6886 fi 6887 6888 6889 test -n "$DATE" && break 6890 done 6891 6892 else 6893 # If it succeeded, then it was overridden by the user. We will use it 6894 # for the tool. 6895 6896 # First remove it from the list of overridden variables, so we can test 6897 # for unknown variables in the end. 6898 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 6899 6900 # Check if we try to supply an empty value 6901 if test "x$DATE" = x; then 6902 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool DATE= (no value)" >&5 6903 $as_echo "$as_me: Setting user supplied tool DATE= (no value)" >&6;} 6904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DATE" >&5 6905 $as_echo_n "checking for DATE... " >&6; } 6906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 6907 $as_echo "disabled" >&6; } 6908 else 6909 # Check if the provided tool contains a complete path. 6910 tool_specified="$DATE" 6911 tool_basename="${tool_specified##*/}" 6912 if test "x$tool_basename" = "x$tool_specified"; then 6913 # A command without a complete path is provided, search $PATH. 6914 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool DATE=$tool_basename" >&5 6915 $as_echo "$as_me: Will search for user supplied tool DATE=$tool_basename" >&6;} 6916 # Extract the first word of "$tool_basename", so it can be a program name with args. 6917 set dummy $tool_basename; ac_word=$2 6918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6919 $as_echo_n "checking for $ac_word... " >&6; } 6920 if ${ac_cv_path_DATE+:} false; then : 6921 $as_echo_n "(cached) " >&6 6922 else 6923 case $DATE in 6924 [\\/]* | ?:[\\/]*) 6925 ac_cv_path_DATE="$DATE" # Let the user override the test with a path. 6926 ;; 6927 *) 6928 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6929 for as_dir in $PATH 6930 do 6931 IFS=$as_save_IFS 6932 test -z "$as_dir" && as_dir=. 6933 for ac_exec_ext in '' $ac_executable_extensions; do 6934 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6935 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext" 6936 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6937 break 2 6938 fi 6939 done 6940 done 6941 IFS=$as_save_IFS 6942 6943 ;; 6944 esac 6945 fi 6946 DATE=$ac_cv_path_DATE 6947 if test -n "$DATE"; then 6948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DATE" >&5 6949 $as_echo "$DATE" >&6; } 6950 else 6951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6952 $as_echo "no" >&6; } 6953 fi 6954 6955 6956 if test "x$DATE" = x; then 6957 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 6958 fi 6959 else 6960 # Otherwise we believe it is a complete path. Use it as it is. 6961 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool DATE=$tool_specified" >&5 6962 $as_echo "$as_me: Will use user supplied tool DATE=$tool_specified" >&6;} 6963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DATE" >&5 6964 $as_echo_n "checking for DATE... " >&6; } 6965 if test ! -x "$tool_specified"; then 6966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 6967 $as_echo "not found" >&6; } 6968 as_fn_error $? "User supplied tool DATE=$tool_specified does not exist or is not executable" "$LINENO" 5 6969 fi 6970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 6971 $as_echo "$tool_specified" >&6; } 6972 fi 6973 fi 6974 fi 6975 6976 fi 6977 6978 6979 6980 if test "x$DATE" = x; then 6981 as_fn_error $? "Could not find required tool for DATE" "$LINENO" 5 6982 fi 6983 6984 6985 6986 6987 6988 # Publish this variable in the help. 6989 6990 6991 if [ -z "${DIFF+x}" ]; then 6992 # The variable is not set by user, try to locate tool using the code snippet 6993 for ac_prog in gdiff diff 6994 do 6995 # Extract the first word of "$ac_prog", so it can be a program name with args. 6996 set dummy $ac_prog; ac_word=$2 6997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6998 $as_echo_n "checking for $ac_word... " >&6; } 6999 if ${ac_cv_path_DIFF+:} false; then : 7000 $as_echo_n "(cached) " >&6 7001 else 7002 case $DIFF in 7003 [\\/]* | ?:[\\/]*) 7004 ac_cv_path_DIFF="$DIFF" # Let the user override the test with a path. 7005 ;; 7006 *) 7007 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7008 for as_dir in $PATH 7009 do 7010 IFS=$as_save_IFS 7011 test -z "$as_dir" && as_dir=. 7012 for ac_exec_ext in '' $ac_executable_extensions; do 7013 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7014 ac_cv_path_DIFF="$as_dir/$ac_word$ac_exec_ext" 7015 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7016 break 2 7017 fi 7018 done 7019 done 7020 IFS=$as_save_IFS 7021 7022 ;; 7023 esac 7024 fi 7025 DIFF=$ac_cv_path_DIFF 7026 if test -n "$DIFF"; then 7027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIFF" >&5 7028 $as_echo "$DIFF" >&6; } 7029 else 7030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7031 $as_echo "no" >&6; } 7032 fi 7033 7034 7035 test -n "$DIFF" && break 7036 done 7037 7038 else 7039 # The variable is set, but is it from the command line or the environment? 7040 7041 # Try to remove the string !DIFF! from our list. 7042 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!DIFF!/} 7043 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 7044 # If it failed, the variable was not from the command line. Ignore it, 7045 # but warn the user (except for BASH, which is always set by the calling BASH). 7046 if test "xDIFF" != xBASH; then 7047 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of DIFF from the environment. Use command line variables instead." >&5 7048 $as_echo "$as_me: WARNING: Ignoring value of DIFF from the environment. Use command line variables instead." >&2;} 7049 fi 7050 # Try to locate tool using the code snippet 7051 for ac_prog in gdiff diff 7052 do 7053 # Extract the first word of "$ac_prog", so it can be a program name with args. 7054 set dummy $ac_prog; ac_word=$2 7055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7056 $as_echo_n "checking for $ac_word... " >&6; } 7057 if ${ac_cv_path_DIFF+:} false; then : 7058 $as_echo_n "(cached) " >&6 7059 else 7060 case $DIFF in 7061 [\\/]* | ?:[\\/]*) 7062 ac_cv_path_DIFF="$DIFF" # Let the user override the test with a path. 7063 ;; 7064 *) 7065 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7066 for as_dir in $PATH 7067 do 7068 IFS=$as_save_IFS 7069 test -z "$as_dir" && as_dir=. 7070 for ac_exec_ext in '' $ac_executable_extensions; do 7071 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7072 ac_cv_path_DIFF="$as_dir/$ac_word$ac_exec_ext" 7073 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7074 break 2 7075 fi 7076 done 7077 done 7078 IFS=$as_save_IFS 7079 7080 ;; 7081 esac 7082 fi 7083 DIFF=$ac_cv_path_DIFF 7084 if test -n "$DIFF"; then 7085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIFF" >&5 7086 $as_echo "$DIFF" >&6; } 7087 else 7088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7089 $as_echo "no" >&6; } 7090 fi 7091 7092 7093 test -n "$DIFF" && break 7094 done 7095 7096 else 7097 # If it succeeded, then it was overridden by the user. We will use it 7098 # for the tool. 7099 7100 # First remove it from the list of overridden variables, so we can test 7101 # for unknown variables in the end. 7102 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 7103 7104 # Check if we try to supply an empty value 7105 if test "x$DIFF" = x; then 7106 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool DIFF= (no value)" >&5 7107 $as_echo "$as_me: Setting user supplied tool DIFF= (no value)" >&6;} 7108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DIFF" >&5 7109 $as_echo_n "checking for DIFF... " >&6; } 7110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 7111 $as_echo "disabled" >&6; } 7112 else 7113 # Check if the provided tool contains a complete path. 7114 tool_specified="$DIFF" 7115 tool_basename="${tool_specified##*/}" 7116 if test "x$tool_basename" = "x$tool_specified"; then 7117 # A command without a complete path is provided, search $PATH. 7118 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool DIFF=$tool_basename" >&5 7119 $as_echo "$as_me: Will search for user supplied tool DIFF=$tool_basename" >&6;} 7120 # Extract the first word of "$tool_basename", so it can be a program name with args. 7121 set dummy $tool_basename; ac_word=$2 7122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7123 $as_echo_n "checking for $ac_word... " >&6; } 7124 if ${ac_cv_path_DIFF+:} false; then : 7125 $as_echo_n "(cached) " >&6 7126 else 7127 case $DIFF in 7128 [\\/]* | ?:[\\/]*) 7129 ac_cv_path_DIFF="$DIFF" # Let the user override the test with a path. 7130 ;; 7131 *) 7132 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7133 for as_dir in $PATH 7134 do 7135 IFS=$as_save_IFS 7136 test -z "$as_dir" && as_dir=. 7137 for ac_exec_ext in '' $ac_executable_extensions; do 7138 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7139 ac_cv_path_DIFF="$as_dir/$ac_word$ac_exec_ext" 7140 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7141 break 2 7142 fi 7143 done 7144 done 7145 IFS=$as_save_IFS 7146 7147 ;; 7148 esac 7149 fi 7150 DIFF=$ac_cv_path_DIFF 7151 if test -n "$DIFF"; then 7152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIFF" >&5 7153 $as_echo "$DIFF" >&6; } 7154 else 7155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7156 $as_echo "no" >&6; } 7157 fi 7158 7159 7160 if test "x$DIFF" = x; then 7161 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 7162 fi 7163 else 7164 # Otherwise we believe it is a complete path. Use it as it is. 7165 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool DIFF=$tool_specified" >&5 7166 $as_echo "$as_me: Will use user supplied tool DIFF=$tool_specified" >&6;} 7167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DIFF" >&5 7168 $as_echo_n "checking for DIFF... " >&6; } 7169 if test ! -x "$tool_specified"; then 7170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 7171 $as_echo "not found" >&6; } 7172 as_fn_error $? "User supplied tool DIFF=$tool_specified does not exist or is not executable" "$LINENO" 5 7173 fi 7174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 7175 $as_echo "$tool_specified" >&6; } 7176 fi 7177 fi 7178 fi 7179 7180 fi 7181 7182 7183 7184 if test "x$DIFF" = x; then 7185 as_fn_error $? "Could not find required tool for DIFF" "$LINENO" 5 7186 fi 7187 7188 7189 7190 7191 7192 # Publish this variable in the help. 7193 7194 7195 if [ -z "${DIRNAME+x}" ]; then 7196 # The variable is not set by user, try to locate tool using the code snippet 7197 for ac_prog in dirname 7198 do 7199 # Extract the first word of "$ac_prog", so it can be a program name with args. 7200 set dummy $ac_prog; ac_word=$2 7201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7202 $as_echo_n "checking for $ac_word... " >&6; } 7203 if ${ac_cv_path_DIRNAME+:} false; then : 7204 $as_echo_n "(cached) " >&6 7205 else 7206 case $DIRNAME in 7207 [\\/]* | ?:[\\/]*) 7208 ac_cv_path_DIRNAME="$DIRNAME" # Let the user override the test with a path. 7209 ;; 7210 *) 7211 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7212 for as_dir in $PATH 7213 do 7214 IFS=$as_save_IFS 7215 test -z "$as_dir" && as_dir=. 7216 for ac_exec_ext in '' $ac_executable_extensions; do 7217 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7218 ac_cv_path_DIRNAME="$as_dir/$ac_word$ac_exec_ext" 7219 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7220 break 2 7221 fi 7222 done 7223 done 7224 IFS=$as_save_IFS 7225 7226 ;; 7227 esac 7228 fi 7229 DIRNAME=$ac_cv_path_DIRNAME 7230 if test -n "$DIRNAME"; then 7231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIRNAME" >&5 7232 $as_echo "$DIRNAME" >&6; } 7233 else 7234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7235 $as_echo "no" >&6; } 7236 fi 7237 7238 7239 test -n "$DIRNAME" && break 7240 done 7241 7242 else 7243 # The variable is set, but is it from the command line or the environment? 7244 7245 # Try to remove the string !DIRNAME! from our list. 7246 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!DIRNAME!/} 7247 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 7248 # If it failed, the variable was not from the command line. Ignore it, 7249 # but warn the user (except for BASH, which is always set by the calling BASH). 7250 if test "xDIRNAME" != xBASH; then 7251 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of DIRNAME from the environment. Use command line variables instead." >&5 7252 $as_echo "$as_me: WARNING: Ignoring value of DIRNAME from the environment. Use command line variables instead." >&2;} 7253 fi 7254 # Try to locate tool using the code snippet 7255 for ac_prog in dirname 7256 do 7257 # Extract the first word of "$ac_prog", so it can be a program name with args. 7258 set dummy $ac_prog; ac_word=$2 7259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7260 $as_echo_n "checking for $ac_word... " >&6; } 7261 if ${ac_cv_path_DIRNAME+:} false; then : 7262 $as_echo_n "(cached) " >&6 7263 else 7264 case $DIRNAME in 7265 [\\/]* | ?:[\\/]*) 7266 ac_cv_path_DIRNAME="$DIRNAME" # Let the user override the test with a path. 7267 ;; 7268 *) 7269 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7270 for as_dir in $PATH 7271 do 7272 IFS=$as_save_IFS 7273 test -z "$as_dir" && as_dir=. 7274 for ac_exec_ext in '' $ac_executable_extensions; do 7275 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7276 ac_cv_path_DIRNAME="$as_dir/$ac_word$ac_exec_ext" 7277 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7278 break 2 7279 fi 7280 done 7281 done 7282 IFS=$as_save_IFS 7283 7284 ;; 7285 esac 7286 fi 7287 DIRNAME=$ac_cv_path_DIRNAME 7288 if test -n "$DIRNAME"; then 7289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIRNAME" >&5 7290 $as_echo "$DIRNAME" >&6; } 7291 else 7292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7293 $as_echo "no" >&6; } 7294 fi 7295 7296 7297 test -n "$DIRNAME" && break 7298 done 7299 7300 else 7301 # If it succeeded, then it was overridden by the user. We will use it 7302 # for the tool. 7303 7304 # First remove it from the list of overridden variables, so we can test 7305 # for unknown variables in the end. 7306 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 7307 7308 # Check if we try to supply an empty value 7309 if test "x$DIRNAME" = x; then 7310 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool DIRNAME= (no value)" >&5 7311 $as_echo "$as_me: Setting user supplied tool DIRNAME= (no value)" >&6;} 7312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DIRNAME" >&5 7313 $as_echo_n "checking for DIRNAME... " >&6; } 7314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 7315 $as_echo "disabled" >&6; } 7316 else 7317 # Check if the provided tool contains a complete path. 7318 tool_specified="$DIRNAME" 7319 tool_basename="${tool_specified##*/}" 7320 if test "x$tool_basename" = "x$tool_specified"; then 7321 # A command without a complete path is provided, search $PATH. 7322 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool DIRNAME=$tool_basename" >&5 7323 $as_echo "$as_me: Will search for user supplied tool DIRNAME=$tool_basename" >&6;} 7324 # Extract the first word of "$tool_basename", so it can be a program name with args. 7325 set dummy $tool_basename; ac_word=$2 7326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7327 $as_echo_n "checking for $ac_word... " >&6; } 7328 if ${ac_cv_path_DIRNAME+:} false; then : 7329 $as_echo_n "(cached) " >&6 7330 else 7331 case $DIRNAME in 7332 [\\/]* | ?:[\\/]*) 7333 ac_cv_path_DIRNAME="$DIRNAME" # Let the user override the test with a path. 7334 ;; 7335 *) 7336 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7337 for as_dir in $PATH 7338 do 7339 IFS=$as_save_IFS 7340 test -z "$as_dir" && as_dir=. 7341 for ac_exec_ext in '' $ac_executable_extensions; do 7342 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7343 ac_cv_path_DIRNAME="$as_dir/$ac_word$ac_exec_ext" 7344 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7345 break 2 7346 fi 7347 done 7348 done 7349 IFS=$as_save_IFS 7350 7351 ;; 7352 esac 7353 fi 7354 DIRNAME=$ac_cv_path_DIRNAME 7355 if test -n "$DIRNAME"; then 7356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIRNAME" >&5 7357 $as_echo "$DIRNAME" >&6; } 7358 else 7359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7360 $as_echo "no" >&6; } 7361 fi 7362 7363 7364 if test "x$DIRNAME" = x; then 7365 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 7366 fi 7367 else 7368 # Otherwise we believe it is a complete path. Use it as it is. 7369 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool DIRNAME=$tool_specified" >&5 7370 $as_echo "$as_me: Will use user supplied tool DIRNAME=$tool_specified" >&6;} 7371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DIRNAME" >&5 7372 $as_echo_n "checking for DIRNAME... " >&6; } 7373 if test ! -x "$tool_specified"; then 7374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 7375 $as_echo "not found" >&6; } 7376 as_fn_error $? "User supplied tool DIRNAME=$tool_specified does not exist or is not executable" "$LINENO" 5 7377 fi 7378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 7379 $as_echo "$tool_specified" >&6; } 7380 fi 7381 fi 7382 fi 7383 7384 fi 7385 7386 7387 7388 if test "x$DIRNAME" = x; then 7389 as_fn_error $? "Could not find required tool for DIRNAME" "$LINENO" 5 7390 fi 7391 7392 7393 7394 7395 7396 # Publish this variable in the help. 7397 7398 7399 if [ -z "${ECHO+x}" ]; then 7400 # The variable is not set by user, try to locate tool using the code snippet 7401 for ac_prog in echo 7402 do 7403 # Extract the first word of "$ac_prog", so it can be a program name with args. 7404 set dummy $ac_prog; ac_word=$2 7405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7406 $as_echo_n "checking for $ac_word... " >&6; } 7407 if ${ac_cv_path_ECHO+:} false; then : 7408 $as_echo_n "(cached) " >&6 7409 else 7410 case $ECHO in 7411 [\\/]* | ?:[\\/]*) 7412 ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path. 7413 ;; 7414 *) 7415 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7416 for as_dir in $PATH 7417 do 7418 IFS=$as_save_IFS 7419 test -z "$as_dir" && as_dir=. 7420 for ac_exec_ext in '' $ac_executable_extensions; do 7421 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7422 ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext" 7423 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7424 break 2 7425 fi 7426 done 7427 done 7428 IFS=$as_save_IFS 7429 7430 ;; 7431 esac 7432 fi 7433 ECHO=$ac_cv_path_ECHO 7434 if test -n "$ECHO"; then 7435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ECHO" >&5 7436 $as_echo "$ECHO" >&6; } 7437 else 7438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7439 $as_echo "no" >&6; } 7440 fi 7441 7442 7443 test -n "$ECHO" && break 7444 done 7445 7446 else 7447 # The variable is set, but is it from the command line or the environment? 7448 7449 # Try to remove the string !ECHO! from our list. 7450 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!ECHO!/} 7451 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 7452 # If it failed, the variable was not from the command line. Ignore it, 7453 # but warn the user (except for BASH, which is always set by the calling BASH). 7454 if test "xECHO" != xBASH; then 7455 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of ECHO from the environment. Use command line variables instead." >&5 7456 $as_echo "$as_me: WARNING: Ignoring value of ECHO from the environment. Use command line variables instead." >&2;} 7457 fi 7458 # Try to locate tool using the code snippet 7459 for ac_prog in echo 7460 do 7461 # Extract the first word of "$ac_prog", so it can be a program name with args. 7462 set dummy $ac_prog; ac_word=$2 7463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7464 $as_echo_n "checking for $ac_word... " >&6; } 7465 if ${ac_cv_path_ECHO+:} false; then : 7466 $as_echo_n "(cached) " >&6 7467 else 7468 case $ECHO in 7469 [\\/]* | ?:[\\/]*) 7470 ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path. 7471 ;; 7472 *) 7473 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7474 for as_dir in $PATH 7475 do 7476 IFS=$as_save_IFS 7477 test -z "$as_dir" && as_dir=. 7478 for ac_exec_ext in '' $ac_executable_extensions; do 7479 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7480 ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext" 7481 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7482 break 2 7483 fi 7484 done 7485 done 7486 IFS=$as_save_IFS 7487 7488 ;; 7489 esac 7490 fi 7491 ECHO=$ac_cv_path_ECHO 7492 if test -n "$ECHO"; then 7493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ECHO" >&5 7494 $as_echo "$ECHO" >&6; } 7495 else 7496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7497 $as_echo "no" >&6; } 7498 fi 7499 7500 7501 test -n "$ECHO" && break 7502 done 7503 7504 else 7505 # If it succeeded, then it was overridden by the user. We will use it 7506 # for the tool. 7507 7508 # First remove it from the list of overridden variables, so we can test 7509 # for unknown variables in the end. 7510 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 7511 7512 # Check if we try to supply an empty value 7513 if test "x$ECHO" = x; then 7514 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool ECHO= (no value)" >&5 7515 $as_echo "$as_me: Setting user supplied tool ECHO= (no value)" >&6;} 7516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ECHO" >&5 7517 $as_echo_n "checking for ECHO... " >&6; } 7518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 7519 $as_echo "disabled" >&6; } 7520 else 7521 # Check if the provided tool contains a complete path. 7522 tool_specified="$ECHO" 7523 tool_basename="${tool_specified##*/}" 7524 if test "x$tool_basename" = "x$tool_specified"; then 7525 # A command without a complete path is provided, search $PATH. 7526 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool ECHO=$tool_basename" >&5 7527 $as_echo "$as_me: Will search for user supplied tool ECHO=$tool_basename" >&6;} 7528 # Extract the first word of "$tool_basename", so it can be a program name with args. 7529 set dummy $tool_basename; ac_word=$2 7530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7531 $as_echo_n "checking for $ac_word... " >&6; } 7532 if ${ac_cv_path_ECHO+:} false; then : 7533 $as_echo_n "(cached) " >&6 7534 else 7535 case $ECHO in 7536 [\\/]* | ?:[\\/]*) 7537 ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path. 7538 ;; 7539 *) 7540 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7541 for as_dir in $PATH 7542 do 7543 IFS=$as_save_IFS 7544 test -z "$as_dir" && as_dir=. 7545 for ac_exec_ext in '' $ac_executable_extensions; do 7546 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7547 ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext" 7548 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7549 break 2 7550 fi 7551 done 7552 done 7553 IFS=$as_save_IFS 7554 7555 ;; 7556 esac 7557 fi 7558 ECHO=$ac_cv_path_ECHO 7559 if test -n "$ECHO"; then 7560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ECHO" >&5 7561 $as_echo "$ECHO" >&6; } 7562 else 7563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7564 $as_echo "no" >&6; } 7565 fi 7566 7567 7568 if test "x$ECHO" = x; then 7569 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 7570 fi 7571 else 7572 # Otherwise we believe it is a complete path. Use it as it is. 7573 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool ECHO=$tool_specified" >&5 7574 $as_echo "$as_me: Will use user supplied tool ECHO=$tool_specified" >&6;} 7575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ECHO" >&5 7576 $as_echo_n "checking for ECHO... " >&6; } 7577 if test ! -x "$tool_specified"; then 7578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 7579 $as_echo "not found" >&6; } 7580 as_fn_error $? "User supplied tool ECHO=$tool_specified does not exist or is not executable" "$LINENO" 5 7581 fi 7582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 7583 $as_echo "$tool_specified" >&6; } 7584 fi 7585 fi 7586 fi 7587 7588 fi 7589 7590 7591 7592 if test "x$ECHO" = x; then 7593 as_fn_error $? "Could not find required tool for ECHO" "$LINENO" 5 7594 fi 7595 7596 7597 7598 7599 7600 # Publish this variable in the help. 7601 7602 7603 if [ -z "${EXPR+x}" ]; then 7604 # The variable is not set by user, try to locate tool using the code snippet 7605 for ac_prog in expr 7606 do 7607 # Extract the first word of "$ac_prog", so it can be a program name with args. 7608 set dummy $ac_prog; ac_word=$2 7609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7610 $as_echo_n "checking for $ac_word... " >&6; } 7611 if ${ac_cv_path_EXPR+:} false; then : 7612 $as_echo_n "(cached) " >&6 7613 else 7614 case $EXPR in 7615 [\\/]* | ?:[\\/]*) 7616 ac_cv_path_EXPR="$EXPR" # Let the user override the test with a path. 7617 ;; 7618 *) 7619 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7620 for as_dir in $PATH 7621 do 7622 IFS=$as_save_IFS 7623 test -z "$as_dir" && as_dir=. 7624 for ac_exec_ext in '' $ac_executable_extensions; do 7625 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7626 ac_cv_path_EXPR="$as_dir/$ac_word$ac_exec_ext" 7627 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7628 break 2 7629 fi 7630 done 7631 done 7632 IFS=$as_save_IFS 7633 7634 ;; 7635 esac 7636 fi 7637 EXPR=$ac_cv_path_EXPR 7638 if test -n "$EXPR"; then 7639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPR" >&5 7640 $as_echo "$EXPR" >&6; } 7641 else 7642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7643 $as_echo "no" >&6; } 7644 fi 7645 7646 7647 test -n "$EXPR" && break 7648 done 7649 7650 else 7651 # The variable is set, but is it from the command line or the environment? 7652 7653 # Try to remove the string !EXPR! from our list. 7654 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!EXPR!/} 7655 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 7656 # If it failed, the variable was not from the command line. Ignore it, 7657 # but warn the user (except for BASH, which is always set by the calling BASH). 7658 if test "xEXPR" != xBASH; then 7659 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of EXPR from the environment. Use command line variables instead." >&5 7660 $as_echo "$as_me: WARNING: Ignoring value of EXPR from the environment. Use command line variables instead." >&2;} 7661 fi 7662 # Try to locate tool using the code snippet 7663 for ac_prog in expr 7664 do 7665 # Extract the first word of "$ac_prog", so it can be a program name with args. 7666 set dummy $ac_prog; ac_word=$2 7667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7668 $as_echo_n "checking for $ac_word... " >&6; } 7669 if ${ac_cv_path_EXPR+:} false; then : 7670 $as_echo_n "(cached) " >&6 7671 else 7672 case $EXPR in 7673 [\\/]* | ?:[\\/]*) 7674 ac_cv_path_EXPR="$EXPR" # Let the user override the test with a path. 7675 ;; 7676 *) 7677 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7678 for as_dir in $PATH 7679 do 7680 IFS=$as_save_IFS 7681 test -z "$as_dir" && as_dir=. 7682 for ac_exec_ext in '' $ac_executable_extensions; do 7683 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7684 ac_cv_path_EXPR="$as_dir/$ac_word$ac_exec_ext" 7685 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7686 break 2 7687 fi 7688 done 7689 done 7690 IFS=$as_save_IFS 7691 7692 ;; 7693 esac 7694 fi 7695 EXPR=$ac_cv_path_EXPR 7696 if test -n "$EXPR"; then 7697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPR" >&5 7698 $as_echo "$EXPR" >&6; } 7699 else 7700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7701 $as_echo "no" >&6; } 7702 fi 7703 7704 7705 test -n "$EXPR" && break 7706 done 7707 7708 else 7709 # If it succeeded, then it was overridden by the user. We will use it 7710 # for the tool. 7711 7712 # First remove it from the list of overridden variables, so we can test 7713 # for unknown variables in the end. 7714 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 7715 7716 # Check if we try to supply an empty value 7717 if test "x$EXPR" = x; then 7718 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool EXPR= (no value)" >&5 7719 $as_echo "$as_me: Setting user supplied tool EXPR= (no value)" >&6;} 7720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EXPR" >&5 7721 $as_echo_n "checking for EXPR... " >&6; } 7722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 7723 $as_echo "disabled" >&6; } 7724 else 7725 # Check if the provided tool contains a complete path. 7726 tool_specified="$EXPR" 7727 tool_basename="${tool_specified##*/}" 7728 if test "x$tool_basename" = "x$tool_specified"; then 7729 # A command without a complete path is provided, search $PATH. 7730 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool EXPR=$tool_basename" >&5 7731 $as_echo "$as_me: Will search for user supplied tool EXPR=$tool_basename" >&6;} 7732 # Extract the first word of "$tool_basename", so it can be a program name with args. 7733 set dummy $tool_basename; ac_word=$2 7734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7735 $as_echo_n "checking for $ac_word... " >&6; } 7736 if ${ac_cv_path_EXPR+:} false; then : 7737 $as_echo_n "(cached) " >&6 7738 else 7739 case $EXPR in 7740 [\\/]* | ?:[\\/]*) 7741 ac_cv_path_EXPR="$EXPR" # Let the user override the test with a path. 7742 ;; 7743 *) 7744 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7745 for as_dir in $PATH 7746 do 7747 IFS=$as_save_IFS 7748 test -z "$as_dir" && as_dir=. 7749 for ac_exec_ext in '' $ac_executable_extensions; do 7750 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7751 ac_cv_path_EXPR="$as_dir/$ac_word$ac_exec_ext" 7752 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7753 break 2 7754 fi 7755 done 7756 done 7757 IFS=$as_save_IFS 7758 7759 ;; 7760 esac 7761 fi 7762 EXPR=$ac_cv_path_EXPR 7763 if test -n "$EXPR"; then 7764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPR" >&5 7765 $as_echo "$EXPR" >&6; } 7766 else 7767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7768 $as_echo "no" >&6; } 7769 fi 7770 7771 7772 if test "x$EXPR" = x; then 7773 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 7774 fi 7775 else 7776 # Otherwise we believe it is a complete path. Use it as it is. 7777 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool EXPR=$tool_specified" >&5 7778 $as_echo "$as_me: Will use user supplied tool EXPR=$tool_specified" >&6;} 7779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EXPR" >&5 7780 $as_echo_n "checking for EXPR... " >&6; } 7781 if test ! -x "$tool_specified"; then 7782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 7783 $as_echo "not found" >&6; } 7784 as_fn_error $? "User supplied tool EXPR=$tool_specified does not exist or is not executable" "$LINENO" 5 7785 fi 7786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 7787 $as_echo "$tool_specified" >&6; } 7788 fi 7789 fi 7790 fi 7791 7792 fi 7793 7794 7795 7796 if test "x$EXPR" = x; then 7797 as_fn_error $? "Could not find required tool for EXPR" "$LINENO" 5 7798 fi 7799 7800 7801 7802 7803 7804 # Publish this variable in the help. 7805 7806 7807 if [ -z "${FILE+x}" ]; then 7808 # The variable is not set by user, try to locate tool using the code snippet 7809 for ac_prog in file 7810 do 7811 # Extract the first word of "$ac_prog", so it can be a program name with args. 7812 set dummy $ac_prog; ac_word=$2 7813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7814 $as_echo_n "checking for $ac_word... " >&6; } 7815 if ${ac_cv_path_FILE+:} false; then : 7816 $as_echo_n "(cached) " >&6 7817 else 7818 case $FILE in 7819 [\\/]* | ?:[\\/]*) 7820 ac_cv_path_FILE="$FILE" # Let the user override the test with a path. 7821 ;; 7822 *) 7823 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7824 for as_dir in $PATH 7825 do 7826 IFS=$as_save_IFS 7827 test -z "$as_dir" && as_dir=. 7828 for ac_exec_ext in '' $ac_executable_extensions; do 7829 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7830 ac_cv_path_FILE="$as_dir/$ac_word$ac_exec_ext" 7831 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7832 break 2 7833 fi 7834 done 7835 done 7836 IFS=$as_save_IFS 7837 7838 ;; 7839 esac 7840 fi 7841 FILE=$ac_cv_path_FILE 7842 if test -n "$FILE"; then 7843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FILE" >&5 7844 $as_echo "$FILE" >&6; } 7845 else 7846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7847 $as_echo "no" >&6; } 7848 fi 7849 7850 7851 test -n "$FILE" && break 7852 done 7853 7854 else 7855 # The variable is set, but is it from the command line or the environment? 7856 7857 # Try to remove the string !FILE! from our list. 7858 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!FILE!/} 7859 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 7860 # If it failed, the variable was not from the command line. Ignore it, 7861 # but warn the user (except for BASH, which is always set by the calling BASH). 7862 if test "xFILE" != xBASH; then 7863 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of FILE from the environment. Use command line variables instead." >&5 7864 $as_echo "$as_me: WARNING: Ignoring value of FILE from the environment. Use command line variables instead." >&2;} 7865 fi 7866 # Try to locate tool using the code snippet 7867 for ac_prog in file 7868 do 7869 # Extract the first word of "$ac_prog", so it can be a program name with args. 7870 set dummy $ac_prog; ac_word=$2 7871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7872 $as_echo_n "checking for $ac_word... " >&6; } 7873 if ${ac_cv_path_FILE+:} false; then : 7874 $as_echo_n "(cached) " >&6 7875 else 7876 case $FILE in 7877 [\\/]* | ?:[\\/]*) 7878 ac_cv_path_FILE="$FILE" # Let the user override the test with a path. 7879 ;; 7880 *) 7881 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7882 for as_dir in $PATH 7883 do 7884 IFS=$as_save_IFS 7885 test -z "$as_dir" && as_dir=. 7886 for ac_exec_ext in '' $ac_executable_extensions; do 7887 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7888 ac_cv_path_FILE="$as_dir/$ac_word$ac_exec_ext" 7889 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7890 break 2 7891 fi 7892 done 7893 done 7894 IFS=$as_save_IFS 7895 7896 ;; 7897 esac 7898 fi 7899 FILE=$ac_cv_path_FILE 7900 if test -n "$FILE"; then 7901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FILE" >&5 7902 $as_echo "$FILE" >&6; } 7903 else 7904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7905 $as_echo "no" >&6; } 7906 fi 7907 7908 7909 test -n "$FILE" && break 7910 done 7911 7912 else 7913 # If it succeeded, then it was overridden by the user. We will use it 7914 # for the tool. 7915 7916 # First remove it from the list of overridden variables, so we can test 7917 # for unknown variables in the end. 7918 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 7919 7920 # Check if we try to supply an empty value 7921 if test "x$FILE" = x; then 7922 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool FILE= (no value)" >&5 7923 $as_echo "$as_me: Setting user supplied tool FILE= (no value)" >&6;} 7924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FILE" >&5 7925 $as_echo_n "checking for FILE... " >&6; } 7926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 7927 $as_echo "disabled" >&6; } 7928 else 7929 # Check if the provided tool contains a complete path. 7930 tool_specified="$FILE" 7931 tool_basename="${tool_specified##*/}" 7932 if test "x$tool_basename" = "x$tool_specified"; then 7933 # A command without a complete path is provided, search $PATH. 7934 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool FILE=$tool_basename" >&5 7935 $as_echo "$as_me: Will search for user supplied tool FILE=$tool_basename" >&6;} 7936 # Extract the first word of "$tool_basename", so it can be a program name with args. 7937 set dummy $tool_basename; ac_word=$2 7938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7939 $as_echo_n "checking for $ac_word... " >&6; } 7940 if ${ac_cv_path_FILE+:} false; then : 7941 $as_echo_n "(cached) " >&6 7942 else 7943 case $FILE in 7944 [\\/]* | ?:[\\/]*) 7945 ac_cv_path_FILE="$FILE" # Let the user override the test with a path. 7946 ;; 7947 *) 7948 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7949 for as_dir in $PATH 7950 do 7951 IFS=$as_save_IFS 7952 test -z "$as_dir" && as_dir=. 7953 for ac_exec_ext in '' $ac_executable_extensions; do 7954 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7955 ac_cv_path_FILE="$as_dir/$ac_word$ac_exec_ext" 7956 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7957 break 2 7958 fi 7959 done 7960 done 7961 IFS=$as_save_IFS 7962 7963 ;; 7964 esac 7965 fi 7966 FILE=$ac_cv_path_FILE 7967 if test -n "$FILE"; then 7968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FILE" >&5 7969 $as_echo "$FILE" >&6; } 7970 else 7971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7972 $as_echo "no" >&6; } 7973 fi 7974 7975 7976 if test "x$FILE" = x; then 7977 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 7978 fi 7979 else 7980 # Otherwise we believe it is a complete path. Use it as it is. 7981 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool FILE=$tool_specified" >&5 7982 $as_echo "$as_me: Will use user supplied tool FILE=$tool_specified" >&6;} 7983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FILE" >&5 7984 $as_echo_n "checking for FILE... " >&6; } 7985 if test ! -x "$tool_specified"; then 7986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 7987 $as_echo "not found" >&6; } 7988 as_fn_error $? "User supplied tool FILE=$tool_specified does not exist or is not executable" "$LINENO" 5 7989 fi 7990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 7991 $as_echo "$tool_specified" >&6; } 7992 fi 7993 fi 7994 fi 7995 7996 fi 7997 7998 7999 8000 if test "x$FILE" = x; then 8001 as_fn_error $? "Could not find required tool for FILE" "$LINENO" 5 8002 fi 8003 8004 8005 8006 8007 8008 # Publish this variable in the help. 8009 8010 8011 if [ -z "${FIND+x}" ]; then 8012 # The variable is not set by user, try to locate tool using the code snippet 8013 for ac_prog in find 8014 do 8015 # Extract the first word of "$ac_prog", so it can be a program name with args. 8016 set dummy $ac_prog; ac_word=$2 8017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8018 $as_echo_n "checking for $ac_word... " >&6; } 8019 if ${ac_cv_path_FIND+:} false; then : 8020 $as_echo_n "(cached) " >&6 8021 else 8022 case $FIND in 8023 [\\/]* | ?:[\\/]*) 8024 ac_cv_path_FIND="$FIND" # Let the user override the test with a path. 8025 ;; 8026 *) 8027 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8028 for as_dir in $PATH 8029 do 8030 IFS=$as_save_IFS 8031 test -z "$as_dir" && as_dir=. 8032 for ac_exec_ext in '' $ac_executable_extensions; do 8033 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8034 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext" 8035 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8036 break 2 8037 fi 8038 done 8039 done 8040 IFS=$as_save_IFS 8041 8042 ;; 8043 esac 8044 fi 8045 FIND=$ac_cv_path_FIND 8046 if test -n "$FIND"; then 8047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FIND" >&5 8048 $as_echo "$FIND" >&6; } 8049 else 8050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8051 $as_echo "no" >&6; } 8052 fi 8053 8054 8055 test -n "$FIND" && break 8056 done 8057 8058 else 8059 # The variable is set, but is it from the command line or the environment? 8060 8061 # Try to remove the string !FIND! from our list. 8062 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!FIND!/} 8063 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 8064 # If it failed, the variable was not from the command line. Ignore it, 8065 # but warn the user (except for BASH, which is always set by the calling BASH). 8066 if test "xFIND" != xBASH; then 8067 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of FIND from the environment. Use command line variables instead." >&5 8068 $as_echo "$as_me: WARNING: Ignoring value of FIND from the environment. Use command line variables instead." >&2;} 8069 fi 8070 # Try to locate tool using the code snippet 8071 for ac_prog in find 8072 do 8073 # Extract the first word of "$ac_prog", so it can be a program name with args. 8074 set dummy $ac_prog; ac_word=$2 8075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8076 $as_echo_n "checking for $ac_word... " >&6; } 8077 if ${ac_cv_path_FIND+:} false; then : 8078 $as_echo_n "(cached) " >&6 8079 else 8080 case $FIND in 8081 [\\/]* | ?:[\\/]*) 8082 ac_cv_path_FIND="$FIND" # Let the user override the test with a path. 8083 ;; 8084 *) 8085 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8086 for as_dir in $PATH 8087 do 8088 IFS=$as_save_IFS 8089 test -z "$as_dir" && as_dir=. 8090 for ac_exec_ext in '' $ac_executable_extensions; do 8091 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8092 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext" 8093 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8094 break 2 8095 fi 8096 done 8097 done 8098 IFS=$as_save_IFS 8099 8100 ;; 8101 esac 8102 fi 8103 FIND=$ac_cv_path_FIND 8104 if test -n "$FIND"; then 8105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FIND" >&5 8106 $as_echo "$FIND" >&6; } 8107 else 8108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8109 $as_echo "no" >&6; } 8110 fi 8111 8112 8113 test -n "$FIND" && break 8114 done 8115 8116 else 8117 # If it succeeded, then it was overridden by the user. We will use it 8118 # for the tool. 8119 8120 # First remove it from the list of overridden variables, so we can test 8121 # for unknown variables in the end. 8122 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 8123 8124 # Check if we try to supply an empty value 8125 if test "x$FIND" = x; then 8126 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool FIND= (no value)" >&5 8127 $as_echo "$as_me: Setting user supplied tool FIND= (no value)" >&6;} 8128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FIND" >&5 8129 $as_echo_n "checking for FIND... " >&6; } 8130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 8131 $as_echo "disabled" >&6; } 8132 else 8133 # Check if the provided tool contains a complete path. 8134 tool_specified="$FIND" 8135 tool_basename="${tool_specified##*/}" 8136 if test "x$tool_basename" = "x$tool_specified"; then 8137 # A command without a complete path is provided, search $PATH. 8138 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool FIND=$tool_basename" >&5 8139 $as_echo "$as_me: Will search for user supplied tool FIND=$tool_basename" >&6;} 8140 # Extract the first word of "$tool_basename", so it can be a program name with args. 8141 set dummy $tool_basename; ac_word=$2 8142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8143 $as_echo_n "checking for $ac_word... " >&6; } 8144 if ${ac_cv_path_FIND+:} false; then : 8145 $as_echo_n "(cached) " >&6 8146 else 8147 case $FIND in 8148 [\\/]* | ?:[\\/]*) 8149 ac_cv_path_FIND="$FIND" # Let the user override the test with a path. 8150 ;; 8151 *) 8152 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8153 for as_dir in $PATH 8154 do 8155 IFS=$as_save_IFS 8156 test -z "$as_dir" && as_dir=. 8157 for ac_exec_ext in '' $ac_executable_extensions; do 8158 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8159 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext" 8160 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8161 break 2 8162 fi 8163 done 8164 done 8165 IFS=$as_save_IFS 8166 8167 ;; 8168 esac 8169 fi 8170 FIND=$ac_cv_path_FIND 8171 if test -n "$FIND"; then 8172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FIND" >&5 8173 $as_echo "$FIND" >&6; } 8174 else 8175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8176 $as_echo "no" >&6; } 8177 fi 8178 8179 8180 if test "x$FIND" = x; then 8181 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 8182 fi 8183 else 8184 # Otherwise we believe it is a complete path. Use it as it is. 8185 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool FIND=$tool_specified" >&5 8186 $as_echo "$as_me: Will use user supplied tool FIND=$tool_specified" >&6;} 8187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FIND" >&5 8188 $as_echo_n "checking for FIND... " >&6; } 8189 if test ! -x "$tool_specified"; then 8190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 8191 $as_echo "not found" >&6; } 8192 as_fn_error $? "User supplied tool FIND=$tool_specified does not exist or is not executable" "$LINENO" 5 8193 fi 8194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 8195 $as_echo "$tool_specified" >&6; } 8196 fi 8197 fi 8198 fi 8199 8200 fi 8201 8202 8203 8204 if test "x$FIND" = x; then 8205 as_fn_error $? "Could not find required tool for FIND" "$LINENO" 5 8206 fi 8207 8208 8209 8210 8211 8212 # Publish this variable in the help. 8213 8214 8215 if [ -z "${HEAD+x}" ]; then 8216 # The variable is not set by user, try to locate tool using the code snippet 8217 for ac_prog in head 8218 do 8219 # Extract the first word of "$ac_prog", so it can be a program name with args. 8220 set dummy $ac_prog; ac_word=$2 8221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8222 $as_echo_n "checking for $ac_word... " >&6; } 8223 if ${ac_cv_path_HEAD+:} false; then : 8224 $as_echo_n "(cached) " >&6 8225 else 8226 case $HEAD in 8227 [\\/]* | ?:[\\/]*) 8228 ac_cv_path_HEAD="$HEAD" # Let the user override the test with a path. 8229 ;; 8230 *) 8231 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8232 for as_dir in $PATH 8233 do 8234 IFS=$as_save_IFS 8235 test -z "$as_dir" && as_dir=. 8236 for ac_exec_ext in '' $ac_executable_extensions; do 8237 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8238 ac_cv_path_HEAD="$as_dir/$ac_word$ac_exec_ext" 8239 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8240 break 2 8241 fi 8242 done 8243 done 8244 IFS=$as_save_IFS 8245 8246 ;; 8247 esac 8248 fi 8249 HEAD=$ac_cv_path_HEAD 8250 if test -n "$HEAD"; then 8251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HEAD" >&5 8252 $as_echo "$HEAD" >&6; } 8253 else 8254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8255 $as_echo "no" >&6; } 8256 fi 8257 8258 8259 test -n "$HEAD" && break 8260 done 8261 8262 else 8263 # The variable is set, but is it from the command line or the environment? 8264 8265 # Try to remove the string !HEAD! from our list. 8266 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!HEAD!/} 8267 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 8268 # If it failed, the variable was not from the command line. Ignore it, 8269 # but warn the user (except for BASH, which is always set by the calling BASH). 8270 if test "xHEAD" != xBASH; then 8271 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of HEAD from the environment. Use command line variables instead." >&5 8272 $as_echo "$as_me: WARNING: Ignoring value of HEAD from the environment. Use command line variables instead." >&2;} 8273 fi 8274 # Try to locate tool using the code snippet 8275 for ac_prog in head 8276 do 8277 # Extract the first word of "$ac_prog", so it can be a program name with args. 8278 set dummy $ac_prog; ac_word=$2 8279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8280 $as_echo_n "checking for $ac_word... " >&6; } 8281 if ${ac_cv_path_HEAD+:} false; then : 8282 $as_echo_n "(cached) " >&6 8283 else 8284 case $HEAD in 8285 [\\/]* | ?:[\\/]*) 8286 ac_cv_path_HEAD="$HEAD" # Let the user override the test with a path. 8287 ;; 8288 *) 8289 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8290 for as_dir in $PATH 8291 do 8292 IFS=$as_save_IFS 8293 test -z "$as_dir" && as_dir=. 8294 for ac_exec_ext in '' $ac_executable_extensions; do 8295 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8296 ac_cv_path_HEAD="$as_dir/$ac_word$ac_exec_ext" 8297 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8298 break 2 8299 fi 8300 done 8301 done 8302 IFS=$as_save_IFS 8303 8304 ;; 8305 esac 8306 fi 8307 HEAD=$ac_cv_path_HEAD 8308 if test -n "$HEAD"; then 8309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HEAD" >&5 8310 $as_echo "$HEAD" >&6; } 8311 else 8312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8313 $as_echo "no" >&6; } 8314 fi 8315 8316 8317 test -n "$HEAD" && break 8318 done 8319 8320 else 8321 # If it succeeded, then it was overridden by the user. We will use it 8322 # for the tool. 8323 8324 # First remove it from the list of overridden variables, so we can test 8325 # for unknown variables in the end. 8326 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 8327 8328 # Check if we try to supply an empty value 8329 if test "x$HEAD" = x; then 8330 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool HEAD= (no value)" >&5 8331 $as_echo "$as_me: Setting user supplied tool HEAD= (no value)" >&6;} 8332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for HEAD" >&5 8333 $as_echo_n "checking for HEAD... " >&6; } 8334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 8335 $as_echo "disabled" >&6; } 8336 else 8337 # Check if the provided tool contains a complete path. 8338 tool_specified="$HEAD" 8339 tool_basename="${tool_specified##*/}" 8340 if test "x$tool_basename" = "x$tool_specified"; then 8341 # A command without a complete path is provided, search $PATH. 8342 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool HEAD=$tool_basename" >&5 8343 $as_echo "$as_me: Will search for user supplied tool HEAD=$tool_basename" >&6;} 8344 # Extract the first word of "$tool_basename", so it can be a program name with args. 8345 set dummy $tool_basename; ac_word=$2 8346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8347 $as_echo_n "checking for $ac_word... " >&6; } 8348 if ${ac_cv_path_HEAD+:} false; then : 8349 $as_echo_n "(cached) " >&6 8350 else 8351 case $HEAD in 8352 [\\/]* | ?:[\\/]*) 8353 ac_cv_path_HEAD="$HEAD" # Let the user override the test with a path. 8354 ;; 8355 *) 8356 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8357 for as_dir in $PATH 8358 do 8359 IFS=$as_save_IFS 8360 test -z "$as_dir" && as_dir=. 8361 for ac_exec_ext in '' $ac_executable_extensions; do 8362 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8363 ac_cv_path_HEAD="$as_dir/$ac_word$ac_exec_ext" 8364 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8365 break 2 8366 fi 8367 done 8368 done 8369 IFS=$as_save_IFS 8370 8371 ;; 8372 esac 8373 fi 8374 HEAD=$ac_cv_path_HEAD 8375 if test -n "$HEAD"; then 8376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HEAD" >&5 8377 $as_echo "$HEAD" >&6; } 8378 else 8379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8380 $as_echo "no" >&6; } 8381 fi 8382 8383 8384 if test "x$HEAD" = x; then 8385 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 8386 fi 8387 else 8388 # Otherwise we believe it is a complete path. Use it as it is. 8389 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool HEAD=$tool_specified" >&5 8390 $as_echo "$as_me: Will use user supplied tool HEAD=$tool_specified" >&6;} 8391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for HEAD" >&5 8392 $as_echo_n "checking for HEAD... " >&6; } 8393 if test ! -x "$tool_specified"; then 8394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 8395 $as_echo "not found" >&6; } 8396 as_fn_error $? "User supplied tool HEAD=$tool_specified does not exist or is not executable" "$LINENO" 5 8397 fi 8398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 8399 $as_echo "$tool_specified" >&6; } 8400 fi 8401 fi 8402 fi 8403 8404 fi 8405 8406 8407 8408 if test "x$HEAD" = x; then 8409 as_fn_error $? "Could not find required tool for HEAD" "$LINENO" 5 8410 fi 8411 8412 8413 8414 8415 8416 # Publish this variable in the help. 8417 8418 8419 if [ -z "${GUNZIP+x}" ]; then 8420 # The variable is not set by user, try to locate tool using the code snippet 8421 for ac_prog in gunzip 8422 do 8423 # Extract the first word of "$ac_prog", so it can be a program name with args. 8424 set dummy $ac_prog; ac_word=$2 8425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8426 $as_echo_n "checking for $ac_word... " >&6; } 8427 if ${ac_cv_path_GUNZIP+:} false; then : 8428 $as_echo_n "(cached) " >&6 8429 else 8430 case $GUNZIP in 8431 [\\/]* | ?:[\\/]*) 8432 ac_cv_path_GUNZIP="$GUNZIP" # Let the user override the test with a path. 8433 ;; 8434 *) 8435 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8436 for as_dir in $PATH 8437 do 8438 IFS=$as_save_IFS 8439 test -z "$as_dir" && as_dir=. 8440 for ac_exec_ext in '' $ac_executable_extensions; do 8441 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8442 ac_cv_path_GUNZIP="$as_dir/$ac_word$ac_exec_ext" 8443 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8444 break 2 8445 fi 8446 done 8447 done 8448 IFS=$as_save_IFS 8449 8450 ;; 8451 esac 8452 fi 8453 GUNZIP=$ac_cv_path_GUNZIP 8454 if test -n "$GUNZIP"; then 8455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GUNZIP" >&5 8456 $as_echo "$GUNZIP" >&6; } 8457 else 8458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8459 $as_echo "no" >&6; } 8460 fi 8461 8462 8463 test -n "$GUNZIP" && break 8464 done 8465 8466 else 8467 # The variable is set, but is it from the command line or the environment? 8468 8469 # Try to remove the string !GUNZIP! from our list. 8470 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!GUNZIP!/} 8471 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 8472 # If it failed, the variable was not from the command line. Ignore it, 8473 # but warn the user (except for BASH, which is always set by the calling BASH). 8474 if test "xGUNZIP" != xBASH; then 8475 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of GUNZIP from the environment. Use command line variables instead." >&5 8476 $as_echo "$as_me: WARNING: Ignoring value of GUNZIP from the environment. Use command line variables instead." >&2;} 8477 fi 8478 # Try to locate tool using the code snippet 8479 for ac_prog in gunzip 8480 do 8481 # Extract the first word of "$ac_prog", so it can be a program name with args. 8482 set dummy $ac_prog; ac_word=$2 8483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8484 $as_echo_n "checking for $ac_word... " >&6; } 8485 if ${ac_cv_path_GUNZIP+:} false; then : 8486 $as_echo_n "(cached) " >&6 8487 else 8488 case $GUNZIP in 8489 [\\/]* | ?:[\\/]*) 8490 ac_cv_path_GUNZIP="$GUNZIP" # Let the user override the test with a path. 8491 ;; 8492 *) 8493 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8494 for as_dir in $PATH 8495 do 8496 IFS=$as_save_IFS 8497 test -z "$as_dir" && as_dir=. 8498 for ac_exec_ext in '' $ac_executable_extensions; do 8499 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8500 ac_cv_path_GUNZIP="$as_dir/$ac_word$ac_exec_ext" 8501 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8502 break 2 8503 fi 8504 done 8505 done 8506 IFS=$as_save_IFS 8507 8508 ;; 8509 esac 8510 fi 8511 GUNZIP=$ac_cv_path_GUNZIP 8512 if test -n "$GUNZIP"; then 8513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GUNZIP" >&5 8514 $as_echo "$GUNZIP" >&6; } 8515 else 8516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8517 $as_echo "no" >&6; } 8518 fi 8519 8520 8521 test -n "$GUNZIP" && break 8522 done 8523 8524 else 8525 # If it succeeded, then it was overridden by the user. We will use it 8526 # for the tool. 8527 8528 # First remove it from the list of overridden variables, so we can test 8529 # for unknown variables in the end. 8530 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 8531 8532 # Check if we try to supply an empty value 8533 if test "x$GUNZIP" = x; then 8534 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool GUNZIP= (no value)" >&5 8535 $as_echo "$as_me: Setting user supplied tool GUNZIP= (no value)" >&6;} 8536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GUNZIP" >&5 8537 $as_echo_n "checking for GUNZIP... " >&6; } 8538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 8539 $as_echo "disabled" >&6; } 8540 else 8541 # Check if the provided tool contains a complete path. 8542 tool_specified="$GUNZIP" 8543 tool_basename="${tool_specified##*/}" 8544 if test "x$tool_basename" = "x$tool_specified"; then 8545 # A command without a complete path is provided, search $PATH. 8546 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool GUNZIP=$tool_basename" >&5 8547 $as_echo "$as_me: Will search for user supplied tool GUNZIP=$tool_basename" >&6;} 8548 # Extract the first word of "$tool_basename", so it can be a program name with args. 8549 set dummy $tool_basename; ac_word=$2 8550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8551 $as_echo_n "checking for $ac_word... " >&6; } 8552 if ${ac_cv_path_GUNZIP+:} false; then : 8553 $as_echo_n "(cached) " >&6 8554 else 8555 case $GUNZIP in 8556 [\\/]* | ?:[\\/]*) 8557 ac_cv_path_GUNZIP="$GUNZIP" # Let the user override the test with a path. 8558 ;; 8559 *) 8560 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8561 for as_dir in $PATH 8562 do 8563 IFS=$as_save_IFS 8564 test -z "$as_dir" && as_dir=. 8565 for ac_exec_ext in '' $ac_executable_extensions; do 8566 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8567 ac_cv_path_GUNZIP="$as_dir/$ac_word$ac_exec_ext" 8568 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8569 break 2 8570 fi 8571 done 8572 done 8573 IFS=$as_save_IFS 8574 8575 ;; 8576 esac 8577 fi 8578 GUNZIP=$ac_cv_path_GUNZIP 8579 if test -n "$GUNZIP"; then 8580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GUNZIP" >&5 8581 $as_echo "$GUNZIP" >&6; } 8582 else 8583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8584 $as_echo "no" >&6; } 8585 fi 8586 8587 8588 if test "x$GUNZIP" = x; then 8589 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 8590 fi 8591 else 8592 # Otherwise we believe it is a complete path. Use it as it is. 8593 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool GUNZIP=$tool_specified" >&5 8594 $as_echo "$as_me: Will use user supplied tool GUNZIP=$tool_specified" >&6;} 8595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GUNZIP" >&5 8596 $as_echo_n "checking for GUNZIP... " >&6; } 8597 if test ! -x "$tool_specified"; then 8598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 8599 $as_echo "not found" >&6; } 8600 as_fn_error $? "User supplied tool GUNZIP=$tool_specified does not exist or is not executable" "$LINENO" 5 8601 fi 8602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 8603 $as_echo "$tool_specified" >&6; } 8604 fi 8605 fi 8606 fi 8607 8608 fi 8609 8610 8611 8612 if test "x$GUNZIP" = x; then 8613 as_fn_error $? "Could not find required tool for GUNZIP" "$LINENO" 5 8614 fi 8615 8616 8617 8618 8619 8620 # Publish this variable in the help. 8621 8622 8623 if [ -z "${GZIP+x}" ]; then 8624 # The variable is not set by user, try to locate tool using the code snippet 8625 for ac_prog in pigz gzip 8626 do 8627 # Extract the first word of "$ac_prog", so it can be a program name with args. 8628 set dummy $ac_prog; ac_word=$2 8629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8630 $as_echo_n "checking for $ac_word... " >&6; } 8631 if ${ac_cv_path_GZIP+:} false; then : 8632 $as_echo_n "(cached) " >&6 8633 else 8634 case $GZIP in 8635 [\\/]* | ?:[\\/]*) 8636 ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path. 8637 ;; 8638 *) 8639 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8640 for as_dir in $PATH 8641 do 8642 IFS=$as_save_IFS 8643 test -z "$as_dir" && as_dir=. 8644 for ac_exec_ext in '' $ac_executable_extensions; do 8645 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8646 ac_cv_path_GZIP="$as_dir/$ac_word$ac_exec_ext" 8647 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8648 break 2 8649 fi 8650 done 8651 done 8652 IFS=$as_save_IFS 8653 8654 ;; 8655 esac 8656 fi 8657 GZIP=$ac_cv_path_GZIP 8658 if test -n "$GZIP"; then 8659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GZIP" >&5 8660 $as_echo "$GZIP" >&6; } 8661 else 8662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8663 $as_echo "no" >&6; } 8664 fi 8665 8666 8667 test -n "$GZIP" && break 8668 done 8669 8670 else 8671 # The variable is set, but is it from the command line or the environment? 8672 8673 # Try to remove the string !GZIP! from our list. 8674 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!GZIP!/} 8675 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 8676 # If it failed, the variable was not from the command line. Ignore it, 8677 # but warn the user (except for BASH, which is always set by the calling BASH). 8678 if test "xGZIP" != xBASH; then 8679 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of GZIP from the environment. Use command line variables instead." >&5 8680 $as_echo "$as_me: WARNING: Ignoring value of GZIP from the environment. Use command line variables instead." >&2;} 8681 fi 8682 # Try to locate tool using the code snippet 8683 for ac_prog in pigz gzip 8684 do 8685 # Extract the first word of "$ac_prog", so it can be a program name with args. 8686 set dummy $ac_prog; ac_word=$2 8687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8688 $as_echo_n "checking for $ac_word... " >&6; } 8689 if ${ac_cv_path_GZIP+:} false; then : 8690 $as_echo_n "(cached) " >&6 8691 else 8692 case $GZIP in 8693 [\\/]* | ?:[\\/]*) 8694 ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path. 8695 ;; 8696 *) 8697 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8698 for as_dir in $PATH 8699 do 8700 IFS=$as_save_IFS 8701 test -z "$as_dir" && as_dir=. 8702 for ac_exec_ext in '' $ac_executable_extensions; do 8703 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8704 ac_cv_path_GZIP="$as_dir/$ac_word$ac_exec_ext" 8705 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8706 break 2 8707 fi 8708 done 8709 done 8710 IFS=$as_save_IFS 8711 8712 ;; 8713 esac 8714 fi 8715 GZIP=$ac_cv_path_GZIP 8716 if test -n "$GZIP"; then 8717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GZIP" >&5 8718 $as_echo "$GZIP" >&6; } 8719 else 8720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8721 $as_echo "no" >&6; } 8722 fi 8723 8724 8725 test -n "$GZIP" && break 8726 done 8727 8728 else 8729 # If it succeeded, then it was overridden by the user. We will use it 8730 # for the tool. 8731 8732 # First remove it from the list of overridden variables, so we can test 8733 # for unknown variables in the end. 8734 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 8735 8736 # Check if we try to supply an empty value 8737 if test "x$GZIP" = x; then 8738 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool GZIP= (no value)" >&5 8739 $as_echo "$as_me: Setting user supplied tool GZIP= (no value)" >&6;} 8740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GZIP" >&5 8741 $as_echo_n "checking for GZIP... " >&6; } 8742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 8743 $as_echo "disabled" >&6; } 8744 else 8745 # Check if the provided tool contains a complete path. 8746 tool_specified="$GZIP" 8747 tool_basename="${tool_specified##*/}" 8748 if test "x$tool_basename" = "x$tool_specified"; then 8749 # A command without a complete path is provided, search $PATH. 8750 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool GZIP=$tool_basename" >&5 8751 $as_echo "$as_me: Will search for user supplied tool GZIP=$tool_basename" >&6;} 8752 # Extract the first word of "$tool_basename", so it can be a program name with args. 8753 set dummy $tool_basename; ac_word=$2 8754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8755 $as_echo_n "checking for $ac_word... " >&6; } 8756 if ${ac_cv_path_GZIP+:} false; then : 8757 $as_echo_n "(cached) " >&6 8758 else 8759 case $GZIP in 8760 [\\/]* | ?:[\\/]*) 8761 ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path. 8762 ;; 8763 *) 8764 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8765 for as_dir in $PATH 8766 do 8767 IFS=$as_save_IFS 8768 test -z "$as_dir" && as_dir=. 8769 for ac_exec_ext in '' $ac_executable_extensions; do 8770 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8771 ac_cv_path_GZIP="$as_dir/$ac_word$ac_exec_ext" 8772 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8773 break 2 8774 fi 8775 done 8776 done 8777 IFS=$as_save_IFS 8778 8779 ;; 8780 esac 8781 fi 8782 GZIP=$ac_cv_path_GZIP 8783 if test -n "$GZIP"; then 8784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GZIP" >&5 8785 $as_echo "$GZIP" >&6; } 8786 else 8787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8788 $as_echo "no" >&6; } 8789 fi 8790 8791 8792 if test "x$GZIP" = x; then 8793 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 8794 fi 8795 else 8796 # Otherwise we believe it is a complete path. Use it as it is. 8797 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool GZIP=$tool_specified" >&5 8798 $as_echo "$as_me: Will use user supplied tool GZIP=$tool_specified" >&6;} 8799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GZIP" >&5 8800 $as_echo_n "checking for GZIP... " >&6; } 8801 if test ! -x "$tool_specified"; then 8802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 8803 $as_echo "not found" >&6; } 8804 as_fn_error $? "User supplied tool GZIP=$tool_specified does not exist or is not executable" "$LINENO" 5 8805 fi 8806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 8807 $as_echo "$tool_specified" >&6; } 8808 fi 8809 fi 8810 fi 8811 8812 fi 8813 8814 8815 8816 if test "x$GZIP" = x; then 8817 as_fn_error $? "Could not find required tool for GZIP" "$LINENO" 5 8818 fi 8819 8820 8821 8822 8823 8824 # Publish this variable in the help. 8825 8826 8827 if [ -z "${LN+x}" ]; then 8828 # The variable is not set by user, try to locate tool using the code snippet 8829 for ac_prog in ln 8830 do 8831 # Extract the first word of "$ac_prog", so it can be a program name with args. 8832 set dummy $ac_prog; ac_word=$2 8833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8834 $as_echo_n "checking for $ac_word... " >&6; } 8835 if ${ac_cv_path_LN+:} false; then : 8836 $as_echo_n "(cached) " >&6 8837 else 8838 case $LN in 8839 [\\/]* | ?:[\\/]*) 8840 ac_cv_path_LN="$LN" # Let the user override the test with a path. 8841 ;; 8842 *) 8843 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8844 for as_dir in $PATH 8845 do 8846 IFS=$as_save_IFS 8847 test -z "$as_dir" && as_dir=. 8848 for ac_exec_ext in '' $ac_executable_extensions; do 8849 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8850 ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext" 8851 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8852 break 2 8853 fi 8854 done 8855 done 8856 IFS=$as_save_IFS 8857 8858 ;; 8859 esac 8860 fi 8861 LN=$ac_cv_path_LN 8862 if test -n "$LN"; then 8863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LN" >&5 8864 $as_echo "$LN" >&6; } 8865 else 8866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8867 $as_echo "no" >&6; } 8868 fi 8869 8870 8871 test -n "$LN" && break 8872 done 8873 8874 else 8875 # The variable is set, but is it from the command line or the environment? 8876 8877 # Try to remove the string !LN! from our list. 8878 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!LN!/} 8879 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 8880 # If it failed, the variable was not from the command line. Ignore it, 8881 # but warn the user (except for BASH, which is always set by the calling BASH). 8882 if test "xLN" != xBASH; then 8883 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of LN from the environment. Use command line variables instead." >&5 8884 $as_echo "$as_me: WARNING: Ignoring value of LN from the environment. Use command line variables instead." >&2;} 8885 fi 8886 # Try to locate tool using the code snippet 8887 for ac_prog in ln 8888 do 8889 # Extract the first word of "$ac_prog", so it can be a program name with args. 8890 set dummy $ac_prog; ac_word=$2 8891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8892 $as_echo_n "checking for $ac_word... " >&6; } 8893 if ${ac_cv_path_LN+:} false; then : 8894 $as_echo_n "(cached) " >&6 8895 else 8896 case $LN in 8897 [\\/]* | ?:[\\/]*) 8898 ac_cv_path_LN="$LN" # Let the user override the test with a path. 8899 ;; 8900 *) 8901 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8902 for as_dir in $PATH 8903 do 8904 IFS=$as_save_IFS 8905 test -z "$as_dir" && as_dir=. 8906 for ac_exec_ext in '' $ac_executable_extensions; do 8907 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8908 ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext" 8909 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8910 break 2 8911 fi 8912 done 8913 done 8914 IFS=$as_save_IFS 8915 8916 ;; 8917 esac 8918 fi 8919 LN=$ac_cv_path_LN 8920 if test -n "$LN"; then 8921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LN" >&5 8922 $as_echo "$LN" >&6; } 8923 else 8924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8925 $as_echo "no" >&6; } 8926 fi 8927 8928 8929 test -n "$LN" && break 8930 done 8931 8932 else 8933 # If it succeeded, then it was overridden by the user. We will use it 8934 # for the tool. 8935 8936 # First remove it from the list of overridden variables, so we can test 8937 # for unknown variables in the end. 8938 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 8939 8940 # Check if we try to supply an empty value 8941 if test "x$LN" = x; then 8942 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool LN= (no value)" >&5 8943 $as_echo "$as_me: Setting user supplied tool LN= (no value)" >&6;} 8944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LN" >&5 8945 $as_echo_n "checking for LN... " >&6; } 8946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 8947 $as_echo "disabled" >&6; } 8948 else 8949 # Check if the provided tool contains a complete path. 8950 tool_specified="$LN" 8951 tool_basename="${tool_specified##*/}" 8952 if test "x$tool_basename" = "x$tool_specified"; then 8953 # A command without a complete path is provided, search $PATH. 8954 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool LN=$tool_basename" >&5 8955 $as_echo "$as_me: Will search for user supplied tool LN=$tool_basename" >&6;} 8956 # Extract the first word of "$tool_basename", so it can be a program name with args. 8957 set dummy $tool_basename; ac_word=$2 8958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8959 $as_echo_n "checking for $ac_word... " >&6; } 8960 if ${ac_cv_path_LN+:} false; then : 8961 $as_echo_n "(cached) " >&6 8962 else 8963 case $LN in 8964 [\\/]* | ?:[\\/]*) 8965 ac_cv_path_LN="$LN" # Let the user override the test with a path. 8966 ;; 8967 *) 8968 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8969 for as_dir in $PATH 8970 do 8971 IFS=$as_save_IFS 8972 test -z "$as_dir" && as_dir=. 8973 for ac_exec_ext in '' $ac_executable_extensions; do 8974 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8975 ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext" 8976 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8977 break 2 8978 fi 8979 done 8980 done 8981 IFS=$as_save_IFS 8982 8983 ;; 8984 esac 8985 fi 8986 LN=$ac_cv_path_LN 8987 if test -n "$LN"; then 8988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LN" >&5 8989 $as_echo "$LN" >&6; } 8990 else 8991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8992 $as_echo "no" >&6; } 8993 fi 8994 8995 8996 if test "x$LN" = x; then 8997 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 8998 fi 8999 else 9000 # Otherwise we believe it is a complete path. Use it as it is. 9001 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool LN=$tool_specified" >&5 9002 $as_echo "$as_me: Will use user supplied tool LN=$tool_specified" >&6;} 9003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LN" >&5 9004 $as_echo_n "checking for LN... " >&6; } 9005 if test ! -x "$tool_specified"; then 9006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 9007 $as_echo "not found" >&6; } 9008 as_fn_error $? "User supplied tool LN=$tool_specified does not exist or is not executable" "$LINENO" 5 9009 fi 9010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 9011 $as_echo "$tool_specified" >&6; } 9012 fi 9013 fi 9014 fi 9015 9016 fi 9017 9018 9019 9020 if test "x$LN" = x; then 9021 as_fn_error $? "Could not find required tool for LN" "$LINENO" 5 9022 fi 9023 9024 9025 9026 9027 9028 # Publish this variable in the help. 9029 9030 9031 if [ -z "${LS+x}" ]; then 9032 # The variable is not set by user, try to locate tool using the code snippet 9033 for ac_prog in ls 9034 do 9035 # Extract the first word of "$ac_prog", so it can be a program name with args. 9036 set dummy $ac_prog; ac_word=$2 9037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9038 $as_echo_n "checking for $ac_word... " >&6; } 9039 if ${ac_cv_path_LS+:} false; then : 9040 $as_echo_n "(cached) " >&6 9041 else 9042 case $LS in 9043 [\\/]* | ?:[\\/]*) 9044 ac_cv_path_LS="$LS" # Let the user override the test with a path. 9045 ;; 9046 *) 9047 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9048 for as_dir in $PATH 9049 do 9050 IFS=$as_save_IFS 9051 test -z "$as_dir" && as_dir=. 9052 for ac_exec_ext in '' $ac_executable_extensions; do 9053 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9054 ac_cv_path_LS="$as_dir/$ac_word$ac_exec_ext" 9055 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9056 break 2 9057 fi 9058 done 9059 done 9060 IFS=$as_save_IFS 9061 9062 ;; 9063 esac 9064 fi 9065 LS=$ac_cv_path_LS 9066 if test -n "$LS"; then 9067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LS" >&5 9068 $as_echo "$LS" >&6; } 9069 else 9070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9071 $as_echo "no" >&6; } 9072 fi 9073 9074 9075 test -n "$LS" && break 9076 done 9077 9078 else 9079 # The variable is set, but is it from the command line or the environment? 9080 9081 # Try to remove the string !LS! from our list. 9082 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!LS!/} 9083 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 9084 # If it failed, the variable was not from the command line. Ignore it, 9085 # but warn the user (except for BASH, which is always set by the calling BASH). 9086 if test "xLS" != xBASH; then 9087 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of LS from the environment. Use command line variables instead." >&5 9088 $as_echo "$as_me: WARNING: Ignoring value of LS from the environment. Use command line variables instead." >&2;} 9089 fi 9090 # Try to locate tool using the code snippet 9091 for ac_prog in ls 9092 do 9093 # Extract the first word of "$ac_prog", so it can be a program name with args. 9094 set dummy $ac_prog; ac_word=$2 9095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9096 $as_echo_n "checking for $ac_word... " >&6; } 9097 if ${ac_cv_path_LS+:} false; then : 9098 $as_echo_n "(cached) " >&6 9099 else 9100 case $LS in 9101 [\\/]* | ?:[\\/]*) 9102 ac_cv_path_LS="$LS" # Let the user override the test with a path. 9103 ;; 9104 *) 9105 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9106 for as_dir in $PATH 9107 do 9108 IFS=$as_save_IFS 9109 test -z "$as_dir" && as_dir=. 9110 for ac_exec_ext in '' $ac_executable_extensions; do 9111 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9112 ac_cv_path_LS="$as_dir/$ac_word$ac_exec_ext" 9113 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9114 break 2 9115 fi 9116 done 9117 done 9118 IFS=$as_save_IFS 9119 9120 ;; 9121 esac 9122 fi 9123 LS=$ac_cv_path_LS 9124 if test -n "$LS"; then 9125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LS" >&5 9126 $as_echo "$LS" >&6; } 9127 else 9128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9129 $as_echo "no" >&6; } 9130 fi 9131 9132 9133 test -n "$LS" && break 9134 done 9135 9136 else 9137 # If it succeeded, then it was overridden by the user. We will use it 9138 # for the tool. 9139 9140 # First remove it from the list of overridden variables, so we can test 9141 # for unknown variables in the end. 9142 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 9143 9144 # Check if we try to supply an empty value 9145 if test "x$LS" = x; then 9146 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool LS= (no value)" >&5 9147 $as_echo "$as_me: Setting user supplied tool LS= (no value)" >&6;} 9148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LS" >&5 9149 $as_echo_n "checking for LS... " >&6; } 9150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 9151 $as_echo "disabled" >&6; } 9152 else 9153 # Check if the provided tool contains a complete path. 9154 tool_specified="$LS" 9155 tool_basename="${tool_specified##*/}" 9156 if test "x$tool_basename" = "x$tool_specified"; then 9157 # A command without a complete path is provided, search $PATH. 9158 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool LS=$tool_basename" >&5 9159 $as_echo "$as_me: Will search for user supplied tool LS=$tool_basename" >&6;} 9160 # Extract the first word of "$tool_basename", so it can be a program name with args. 9161 set dummy $tool_basename; ac_word=$2 9162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9163 $as_echo_n "checking for $ac_word... " >&6; } 9164 if ${ac_cv_path_LS+:} false; then : 9165 $as_echo_n "(cached) " >&6 9166 else 9167 case $LS in 9168 [\\/]* | ?:[\\/]*) 9169 ac_cv_path_LS="$LS" # Let the user override the test with a path. 9170 ;; 9171 *) 9172 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9173 for as_dir in $PATH 9174 do 9175 IFS=$as_save_IFS 9176 test -z "$as_dir" && as_dir=. 9177 for ac_exec_ext in '' $ac_executable_extensions; do 9178 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9179 ac_cv_path_LS="$as_dir/$ac_word$ac_exec_ext" 9180 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9181 break 2 9182 fi 9183 done 9184 done 9185 IFS=$as_save_IFS 9186 9187 ;; 9188 esac 9189 fi 9190 LS=$ac_cv_path_LS 9191 if test -n "$LS"; then 9192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LS" >&5 9193 $as_echo "$LS" >&6; } 9194 else 9195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9196 $as_echo "no" >&6; } 9197 fi 9198 9199 9200 if test "x$LS" = x; then 9201 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 9202 fi 9203 else 9204 # Otherwise we believe it is a complete path. Use it as it is. 9205 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool LS=$tool_specified" >&5 9206 $as_echo "$as_me: Will use user supplied tool LS=$tool_specified" >&6;} 9207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LS" >&5 9208 $as_echo_n "checking for LS... " >&6; } 9209 if test ! -x "$tool_specified"; then 9210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 9211 $as_echo "not found" >&6; } 9212 as_fn_error $? "User supplied tool LS=$tool_specified does not exist or is not executable" "$LINENO" 5 9213 fi 9214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 9215 $as_echo "$tool_specified" >&6; } 9216 fi 9217 fi 9218 fi 9219 9220 fi 9221 9222 9223 9224 if test "x$LS" = x; then 9225 as_fn_error $? "Could not find required tool for LS" "$LINENO" 5 9226 fi 9227 9228 9229 9230 9231 9232 # Publish this variable in the help. 9233 9234 9235 if [ -z "${MKDIR+x}" ]; then 9236 # The variable is not set by user, try to locate tool using the code snippet 9237 for ac_prog in mkdir 9238 do 9239 # Extract the first word of "$ac_prog", so it can be a program name with args. 9240 set dummy $ac_prog; ac_word=$2 9241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9242 $as_echo_n "checking for $ac_word... " >&6; } 9243 if ${ac_cv_path_MKDIR+:} false; then : 9244 $as_echo_n "(cached) " >&6 9245 else 9246 case $MKDIR in 9247 [\\/]* | ?:[\\/]*) 9248 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path. 9249 ;; 9250 *) 9251 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9252 for as_dir in $PATH 9253 do 9254 IFS=$as_save_IFS 9255 test -z "$as_dir" && as_dir=. 9256 for ac_exec_ext in '' $ac_executable_extensions; do 9257 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9258 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext" 9259 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9260 break 2 9261 fi 9262 done 9263 done 9264 IFS=$as_save_IFS 9265 9266 ;; 9267 esac 9268 fi 9269 MKDIR=$ac_cv_path_MKDIR 9270 if test -n "$MKDIR"; then 9271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR" >&5 9272 $as_echo "$MKDIR" >&6; } 9273 else 9274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9275 $as_echo "no" >&6; } 9276 fi 9277 9278 9279 test -n "$MKDIR" && break 9280 done 9281 9282 else 9283 # The variable is set, but is it from the command line or the environment? 9284 9285 # Try to remove the string !MKDIR! from our list. 9286 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!MKDIR!/} 9287 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 9288 # If it failed, the variable was not from the command line. Ignore it, 9289 # but warn the user (except for BASH, which is always set by the calling BASH). 9290 if test "xMKDIR" != xBASH; then 9291 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of MKDIR from the environment. Use command line variables instead." >&5 9292 $as_echo "$as_me: WARNING: Ignoring value of MKDIR from the environment. Use command line variables instead." >&2;} 9293 fi 9294 # Try to locate tool using the code snippet 9295 for ac_prog in mkdir 9296 do 9297 # Extract the first word of "$ac_prog", so it can be a program name with args. 9298 set dummy $ac_prog; ac_word=$2 9299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9300 $as_echo_n "checking for $ac_word... " >&6; } 9301 if ${ac_cv_path_MKDIR+:} false; then : 9302 $as_echo_n "(cached) " >&6 9303 else 9304 case $MKDIR in 9305 [\\/]* | ?:[\\/]*) 9306 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path. 9307 ;; 9308 *) 9309 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9310 for as_dir in $PATH 9311 do 9312 IFS=$as_save_IFS 9313 test -z "$as_dir" && as_dir=. 9314 for ac_exec_ext in '' $ac_executable_extensions; do 9315 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9316 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext" 9317 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9318 break 2 9319 fi 9320 done 9321 done 9322 IFS=$as_save_IFS 9323 9324 ;; 9325 esac 9326 fi 9327 MKDIR=$ac_cv_path_MKDIR 9328 if test -n "$MKDIR"; then 9329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR" >&5 9330 $as_echo "$MKDIR" >&6; } 9331 else 9332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9333 $as_echo "no" >&6; } 9334 fi 9335 9336 9337 test -n "$MKDIR" && break 9338 done 9339 9340 else 9341 # If it succeeded, then it was overridden by the user. We will use it 9342 # for the tool. 9343 9344 # First remove it from the list of overridden variables, so we can test 9345 # for unknown variables in the end. 9346 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 9347 9348 # Check if we try to supply an empty value 9349 if test "x$MKDIR" = x; then 9350 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool MKDIR= (no value)" >&5 9351 $as_echo "$as_me: Setting user supplied tool MKDIR= (no value)" >&6;} 9352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MKDIR" >&5 9353 $as_echo_n "checking for MKDIR... " >&6; } 9354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 9355 $as_echo "disabled" >&6; } 9356 else 9357 # Check if the provided tool contains a complete path. 9358 tool_specified="$MKDIR" 9359 tool_basename="${tool_specified##*/}" 9360 if test "x$tool_basename" = "x$tool_specified"; then 9361 # A command without a complete path is provided, search $PATH. 9362 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool MKDIR=$tool_basename" >&5 9363 $as_echo "$as_me: Will search for user supplied tool MKDIR=$tool_basename" >&6;} 9364 # Extract the first word of "$tool_basename", so it can be a program name with args. 9365 set dummy $tool_basename; ac_word=$2 9366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9367 $as_echo_n "checking for $ac_word... " >&6; } 9368 if ${ac_cv_path_MKDIR+:} false; then : 9369 $as_echo_n "(cached) " >&6 9370 else 9371 case $MKDIR in 9372 [\\/]* | ?:[\\/]*) 9373 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path. 9374 ;; 9375 *) 9376 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9377 for as_dir in $PATH 9378 do 9379 IFS=$as_save_IFS 9380 test -z "$as_dir" && as_dir=. 9381 for ac_exec_ext in '' $ac_executable_extensions; do 9382 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9383 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext" 9384 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9385 break 2 9386 fi 9387 done 9388 done 9389 IFS=$as_save_IFS 9390 9391 ;; 9392 esac 9393 fi 9394 MKDIR=$ac_cv_path_MKDIR 9395 if test -n "$MKDIR"; then 9396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR" >&5 9397 $as_echo "$MKDIR" >&6; } 9398 else 9399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9400 $as_echo "no" >&6; } 9401 fi 9402 9403 9404 if test "x$MKDIR" = x; then 9405 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 9406 fi 9407 else 9408 # Otherwise we believe it is a complete path. Use it as it is. 9409 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool MKDIR=$tool_specified" >&5 9410 $as_echo "$as_me: Will use user supplied tool MKDIR=$tool_specified" >&6;} 9411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MKDIR" >&5 9412 $as_echo_n "checking for MKDIR... " >&6; } 9413 if test ! -x "$tool_specified"; then 9414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 9415 $as_echo "not found" >&6; } 9416 as_fn_error $? "User supplied tool MKDIR=$tool_specified does not exist or is not executable" "$LINENO" 5 9417 fi 9418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 9419 $as_echo "$tool_specified" >&6; } 9420 fi 9421 fi 9422 fi 9423 9424 fi 9425 9426 9427 9428 if test "x$MKDIR" = x; then 9429 as_fn_error $? "Could not find required tool for MKDIR" "$LINENO" 5 9430 fi 9431 9432 9433 9434 9435 9436 # Publish this variable in the help. 9437 9438 9439 if [ -z "${MKTEMP+x}" ]; then 9440 # The variable is not set by user, try to locate tool using the code snippet 9441 for ac_prog in mktemp 9442 do 9443 # Extract the first word of "$ac_prog", so it can be a program name with args. 9444 set dummy $ac_prog; ac_word=$2 9445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9446 $as_echo_n "checking for $ac_word... " >&6; } 9447 if ${ac_cv_path_MKTEMP+:} false; then : 9448 $as_echo_n "(cached) " >&6 9449 else 9450 case $MKTEMP in 9451 [\\/]* | ?:[\\/]*) 9452 ac_cv_path_MKTEMP="$MKTEMP" # Let the user override the test with a path. 9453 ;; 9454 *) 9455 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9456 for as_dir in $PATH 9457 do 9458 IFS=$as_save_IFS 9459 test -z "$as_dir" && as_dir=. 9460 for ac_exec_ext in '' $ac_executable_extensions; do 9461 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9462 ac_cv_path_MKTEMP="$as_dir/$ac_word$ac_exec_ext" 9463 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9464 break 2 9465 fi 9466 done 9467 done 9468 IFS=$as_save_IFS 9469 9470 ;; 9471 esac 9472 fi 9473 MKTEMP=$ac_cv_path_MKTEMP 9474 if test -n "$MKTEMP"; then 9475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKTEMP" >&5 9476 $as_echo "$MKTEMP" >&6; } 9477 else 9478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9479 $as_echo "no" >&6; } 9480 fi 9481 9482 9483 test -n "$MKTEMP" && break 9484 done 9485 9486 else 9487 # The variable is set, but is it from the command line or the environment? 9488 9489 # Try to remove the string !MKTEMP! from our list. 9490 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!MKTEMP!/} 9491 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 9492 # If it failed, the variable was not from the command line. Ignore it, 9493 # but warn the user (except for BASH, which is always set by the calling BASH). 9494 if test "xMKTEMP" != xBASH; then 9495 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of MKTEMP from the environment. Use command line variables instead." >&5 9496 $as_echo "$as_me: WARNING: Ignoring value of MKTEMP from the environment. Use command line variables instead." >&2;} 9497 fi 9498 # Try to locate tool using the code snippet 9499 for ac_prog in mktemp 9500 do 9501 # Extract the first word of "$ac_prog", so it can be a program name with args. 9502 set dummy $ac_prog; ac_word=$2 9503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9504 $as_echo_n "checking for $ac_word... " >&6; } 9505 if ${ac_cv_path_MKTEMP+:} false; then : 9506 $as_echo_n "(cached) " >&6 9507 else 9508 case $MKTEMP in 9509 [\\/]* | ?:[\\/]*) 9510 ac_cv_path_MKTEMP="$MKTEMP" # Let the user override the test with a path. 9511 ;; 9512 *) 9513 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9514 for as_dir in $PATH 9515 do 9516 IFS=$as_save_IFS 9517 test -z "$as_dir" && as_dir=. 9518 for ac_exec_ext in '' $ac_executable_extensions; do 9519 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9520 ac_cv_path_MKTEMP="$as_dir/$ac_word$ac_exec_ext" 9521 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9522 break 2 9523 fi 9524 done 9525 done 9526 IFS=$as_save_IFS 9527 9528 ;; 9529 esac 9530 fi 9531 MKTEMP=$ac_cv_path_MKTEMP 9532 if test -n "$MKTEMP"; then 9533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKTEMP" >&5 9534 $as_echo "$MKTEMP" >&6; } 9535 else 9536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9537 $as_echo "no" >&6; } 9538 fi 9539 9540 9541 test -n "$MKTEMP" && break 9542 done 9543 9544 else 9545 # If it succeeded, then it was overridden by the user. We will use it 9546 # for the tool. 9547 9548 # First remove it from the list of overridden variables, so we can test 9549 # for unknown variables in the end. 9550 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 9551 9552 # Check if we try to supply an empty value 9553 if test "x$MKTEMP" = x; then 9554 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool MKTEMP= (no value)" >&5 9555 $as_echo "$as_me: Setting user supplied tool MKTEMP= (no value)" >&6;} 9556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MKTEMP" >&5 9557 $as_echo_n "checking for MKTEMP... " >&6; } 9558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 9559 $as_echo "disabled" >&6; } 9560 else 9561 # Check if the provided tool contains a complete path. 9562 tool_specified="$MKTEMP" 9563 tool_basename="${tool_specified##*/}" 9564 if test "x$tool_basename" = "x$tool_specified"; then 9565 # A command without a complete path is provided, search $PATH. 9566 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool MKTEMP=$tool_basename" >&5 9567 $as_echo "$as_me: Will search for user supplied tool MKTEMP=$tool_basename" >&6;} 9568 # Extract the first word of "$tool_basename", so it can be a program name with args. 9569 set dummy $tool_basename; ac_word=$2 9570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9571 $as_echo_n "checking for $ac_word... " >&6; } 9572 if ${ac_cv_path_MKTEMP+:} false; then : 9573 $as_echo_n "(cached) " >&6 9574 else 9575 case $MKTEMP in 9576 [\\/]* | ?:[\\/]*) 9577 ac_cv_path_MKTEMP="$MKTEMP" # Let the user override the test with a path. 9578 ;; 9579 *) 9580 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9581 for as_dir in $PATH 9582 do 9583 IFS=$as_save_IFS 9584 test -z "$as_dir" && as_dir=. 9585 for ac_exec_ext in '' $ac_executable_extensions; do 9586 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9587 ac_cv_path_MKTEMP="$as_dir/$ac_word$ac_exec_ext" 9588 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9589 break 2 9590 fi 9591 done 9592 done 9593 IFS=$as_save_IFS 9594 9595 ;; 9596 esac 9597 fi 9598 MKTEMP=$ac_cv_path_MKTEMP 9599 if test -n "$MKTEMP"; then 9600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKTEMP" >&5 9601 $as_echo "$MKTEMP" >&6; } 9602 else 9603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9604 $as_echo "no" >&6; } 9605 fi 9606 9607 9608 if test "x$MKTEMP" = x; then 9609 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 9610 fi 9611 else 9612 # Otherwise we believe it is a complete path. Use it as it is. 9613 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool MKTEMP=$tool_specified" >&5 9614 $as_echo "$as_me: Will use user supplied tool MKTEMP=$tool_specified" >&6;} 9615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MKTEMP" >&5 9616 $as_echo_n "checking for MKTEMP... " >&6; } 9617 if test ! -x "$tool_specified"; then 9618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 9619 $as_echo "not found" >&6; } 9620 as_fn_error $? "User supplied tool MKTEMP=$tool_specified does not exist or is not executable" "$LINENO" 5 9621 fi 9622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 9623 $as_echo "$tool_specified" >&6; } 9624 fi 9625 fi 9626 fi 9627 9628 fi 9629 9630 9631 9632 if test "x$MKTEMP" = x; then 9633 as_fn_error $? "Could not find required tool for MKTEMP" "$LINENO" 5 9634 fi 9635 9636 9637 9638 9639 9640 # Publish this variable in the help. 9641 9642 9643 if [ -z "${MV+x}" ]; then 9644 # The variable is not set by user, try to locate tool using the code snippet 9645 for ac_prog in mv 9646 do 9647 # Extract the first word of "$ac_prog", so it can be a program name with args. 9648 set dummy $ac_prog; ac_word=$2 9649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9650 $as_echo_n "checking for $ac_word... " >&6; } 9651 if ${ac_cv_path_MV+:} false; then : 9652 $as_echo_n "(cached) " >&6 9653 else 9654 case $MV in 9655 [\\/]* | ?:[\\/]*) 9656 ac_cv_path_MV="$MV" # Let the user override the test with a path. 9657 ;; 9658 *) 9659 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9660 for as_dir in $PATH 9661 do 9662 IFS=$as_save_IFS 9663 test -z "$as_dir" && as_dir=. 9664 for ac_exec_ext in '' $ac_executable_extensions; do 9665 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9666 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext" 9667 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9668 break 2 9669 fi 9670 done 9671 done 9672 IFS=$as_save_IFS 9673 9674 ;; 9675 esac 9676 fi 9677 MV=$ac_cv_path_MV 9678 if test -n "$MV"; then 9679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5 9680 $as_echo "$MV" >&6; } 9681 else 9682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9683 $as_echo "no" >&6; } 9684 fi 9685 9686 9687 test -n "$MV" && break 9688 done 9689 9690 else 9691 # The variable is set, but is it from the command line or the environment? 9692 9693 # Try to remove the string !MV! from our list. 9694 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!MV!/} 9695 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 9696 # If it failed, the variable was not from the command line. Ignore it, 9697 # but warn the user (except for BASH, which is always set by the calling BASH). 9698 if test "xMV" != xBASH; then 9699 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of MV from the environment. Use command line variables instead." >&5 9700 $as_echo "$as_me: WARNING: Ignoring value of MV from the environment. Use command line variables instead." >&2;} 9701 fi 9702 # Try to locate tool using the code snippet 9703 for ac_prog in mv 9704 do 9705 # Extract the first word of "$ac_prog", so it can be a program name with args. 9706 set dummy $ac_prog; ac_word=$2 9707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9708 $as_echo_n "checking for $ac_word... " >&6; } 9709 if ${ac_cv_path_MV+:} false; then : 9710 $as_echo_n "(cached) " >&6 9711 else 9712 case $MV in 9713 [\\/]* | ?:[\\/]*) 9714 ac_cv_path_MV="$MV" # Let the user override the test with a path. 9715 ;; 9716 *) 9717 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9718 for as_dir in $PATH 9719 do 9720 IFS=$as_save_IFS 9721 test -z "$as_dir" && as_dir=. 9722 for ac_exec_ext in '' $ac_executable_extensions; do 9723 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9724 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext" 9725 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9726 break 2 9727 fi 9728 done 9729 done 9730 IFS=$as_save_IFS 9731 9732 ;; 9733 esac 9734 fi 9735 MV=$ac_cv_path_MV 9736 if test -n "$MV"; then 9737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5 9738 $as_echo "$MV" >&6; } 9739 else 9740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9741 $as_echo "no" >&6; } 9742 fi 9743 9744 9745 test -n "$MV" && break 9746 done 9747 9748 else 9749 # If it succeeded, then it was overridden by the user. We will use it 9750 # for the tool. 9751 9752 # First remove it from the list of overridden variables, so we can test 9753 # for unknown variables in the end. 9754 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 9755 9756 # Check if we try to supply an empty value 9757 if test "x$MV" = x; then 9758 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool MV= (no value)" >&5 9759 $as_echo "$as_me: Setting user supplied tool MV= (no value)" >&6;} 9760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MV" >&5 9761 $as_echo_n "checking for MV... " >&6; } 9762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 9763 $as_echo "disabled" >&6; } 9764 else 9765 # Check if the provided tool contains a complete path. 9766 tool_specified="$MV" 9767 tool_basename="${tool_specified##*/}" 9768 if test "x$tool_basename" = "x$tool_specified"; then 9769 # A command without a complete path is provided, search $PATH. 9770 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool MV=$tool_basename" >&5 9771 $as_echo "$as_me: Will search for user supplied tool MV=$tool_basename" >&6;} 9772 # Extract the first word of "$tool_basename", so it can be a program name with args. 9773 set dummy $tool_basename; ac_word=$2 9774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9775 $as_echo_n "checking for $ac_word... " >&6; } 9776 if ${ac_cv_path_MV+:} false; then : 9777 $as_echo_n "(cached) " >&6 9778 else 9779 case $MV in 9780 [\\/]* | ?:[\\/]*) 9781 ac_cv_path_MV="$MV" # Let the user override the test with a path. 9782 ;; 9783 *) 9784 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9785 for as_dir in $PATH 9786 do 9787 IFS=$as_save_IFS 9788 test -z "$as_dir" && as_dir=. 9789 for ac_exec_ext in '' $ac_executable_extensions; do 9790 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9791 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext" 9792 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9793 break 2 9794 fi 9795 done 9796 done 9797 IFS=$as_save_IFS 9798 9799 ;; 9800 esac 9801 fi 9802 MV=$ac_cv_path_MV 9803 if test -n "$MV"; then 9804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5 9805 $as_echo "$MV" >&6; } 9806 else 9807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9808 $as_echo "no" >&6; } 9809 fi 9810 9811 9812 if test "x$MV" = x; then 9813 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 9814 fi 9815 else 9816 # Otherwise we believe it is a complete path. Use it as it is. 9817 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool MV=$tool_specified" >&5 9818 $as_echo "$as_me: Will use user supplied tool MV=$tool_specified" >&6;} 9819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MV" >&5 9820 $as_echo_n "checking for MV... " >&6; } 9821 if test ! -x "$tool_specified"; then 9822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 9823 $as_echo "not found" >&6; } 9824 as_fn_error $? "User supplied tool MV=$tool_specified does not exist or is not executable" "$LINENO" 5 9825 fi 9826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 9827 $as_echo "$tool_specified" >&6; } 9828 fi 9829 fi 9830 fi 9831 9832 fi 9833 9834 9835 9836 if test "x$MV" = x; then 9837 as_fn_error $? "Could not find required tool for MV" "$LINENO" 5 9838 fi 9839 9840 9841 9842 9843 9844 # Publish this variable in the help. 9845 9846 9847 if [ -z "${NAWK+x}" ]; then 9848 # The variable is not set by user, try to locate tool using the code snippet 9849 for ac_prog in nawk gawk awk 9850 do 9851 # Extract the first word of "$ac_prog", so it can be a program name with args. 9852 set dummy $ac_prog; ac_word=$2 9853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9854 $as_echo_n "checking for $ac_word... " >&6; } 9855 if ${ac_cv_path_NAWK+:} false; then : 9856 $as_echo_n "(cached) " >&6 9857 else 9858 case $NAWK in 9859 [\\/]* | ?:[\\/]*) 9860 ac_cv_path_NAWK="$NAWK" # Let the user override the test with a path. 9861 ;; 9862 *) 9863 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9864 for as_dir in $PATH 9865 do 9866 IFS=$as_save_IFS 9867 test -z "$as_dir" && as_dir=. 9868 for ac_exec_ext in '' $ac_executable_extensions; do 9869 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9870 ac_cv_path_NAWK="$as_dir/$ac_word$ac_exec_ext" 9871 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9872 break 2 9873 fi 9874 done 9875 done 9876 IFS=$as_save_IFS 9877 9878 ;; 9879 esac 9880 fi 9881 NAWK=$ac_cv_path_NAWK 9882 if test -n "$NAWK"; then 9883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NAWK" >&5 9884 $as_echo "$NAWK" >&6; } 9885 else 9886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9887 $as_echo "no" >&6; } 9888 fi 9889 9890 9891 test -n "$NAWK" && break 9892 done 9893 9894 else 9895 # The variable is set, but is it from the command line or the environment? 9896 9897 # Try to remove the string !NAWK! from our list. 9898 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!NAWK!/} 9899 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 9900 # If it failed, the variable was not from the command line. Ignore it, 9901 # but warn the user (except for BASH, which is always set by the calling BASH). 9902 if test "xNAWK" != xBASH; then 9903 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of NAWK from the environment. Use command line variables instead." >&5 9904 $as_echo "$as_me: WARNING: Ignoring value of NAWK from the environment. Use command line variables instead." >&2;} 9905 fi 9906 # Try to locate tool using the code snippet 9907 for ac_prog in nawk gawk awk 9908 do 9909 # Extract the first word of "$ac_prog", so it can be a program name with args. 9910 set dummy $ac_prog; ac_word=$2 9911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9912 $as_echo_n "checking for $ac_word... " >&6; } 9913 if ${ac_cv_path_NAWK+:} false; then : 9914 $as_echo_n "(cached) " >&6 9915 else 9916 case $NAWK in 9917 [\\/]* | ?:[\\/]*) 9918 ac_cv_path_NAWK="$NAWK" # Let the user override the test with a path. 9919 ;; 9920 *) 9921 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9922 for as_dir in $PATH 9923 do 9924 IFS=$as_save_IFS 9925 test -z "$as_dir" && as_dir=. 9926 for ac_exec_ext in '' $ac_executable_extensions; do 9927 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9928 ac_cv_path_NAWK="$as_dir/$ac_word$ac_exec_ext" 9929 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9930 break 2 9931 fi 9932 done 9933 done 9934 IFS=$as_save_IFS 9935 9936 ;; 9937 esac 9938 fi 9939 NAWK=$ac_cv_path_NAWK 9940 if test -n "$NAWK"; then 9941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NAWK" >&5 9942 $as_echo "$NAWK" >&6; } 9943 else 9944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9945 $as_echo "no" >&6; } 9946 fi 9947 9948 9949 test -n "$NAWK" && break 9950 done 9951 9952 else 9953 # If it succeeded, then it was overridden by the user. We will use it 9954 # for the tool. 9955 9956 # First remove it from the list of overridden variables, so we can test 9957 # for unknown variables in the end. 9958 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 9959 9960 # Check if we try to supply an empty value 9961 if test "x$NAWK" = x; then 9962 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool NAWK= (no value)" >&5 9963 $as_echo "$as_me: Setting user supplied tool NAWK= (no value)" >&6;} 9964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NAWK" >&5 9965 $as_echo_n "checking for NAWK... " >&6; } 9966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 9967 $as_echo "disabled" >&6; } 9968 else 9969 # Check if the provided tool contains a complete path. 9970 tool_specified="$NAWK" 9971 tool_basename="${tool_specified##*/}" 9972 if test "x$tool_basename" = "x$tool_specified"; then 9973 # A command without a complete path is provided, search $PATH. 9974 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool NAWK=$tool_basename" >&5 9975 $as_echo "$as_me: Will search for user supplied tool NAWK=$tool_basename" >&6;} 9976 # Extract the first word of "$tool_basename", so it can be a program name with args. 9977 set dummy $tool_basename; ac_word=$2 9978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9979 $as_echo_n "checking for $ac_word... " >&6; } 9980 if ${ac_cv_path_NAWK+:} false; then : 9981 $as_echo_n "(cached) " >&6 9982 else 9983 case $NAWK in 9984 [\\/]* | ?:[\\/]*) 9985 ac_cv_path_NAWK="$NAWK" # Let the user override the test with a path. 9986 ;; 9987 *) 9988 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9989 for as_dir in $PATH 9990 do 9991 IFS=$as_save_IFS 9992 test -z "$as_dir" && as_dir=. 9993 for ac_exec_ext in '' $ac_executable_extensions; do 9994 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9995 ac_cv_path_NAWK="$as_dir/$ac_word$ac_exec_ext" 9996 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9997 break 2 9998 fi 9999 done 10000 done 10001 IFS=$as_save_IFS 10002 10003 ;; 10004 esac 10005 fi 10006 NAWK=$ac_cv_path_NAWK 10007 if test -n "$NAWK"; then 10008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NAWK" >&5 10009 $as_echo "$NAWK" >&6; } 10010 else 10011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10012 $as_echo "no" >&6; } 10013 fi 10014 10015 10016 if test "x$NAWK" = x; then 10017 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 10018 fi 10019 else 10020 # Otherwise we believe it is a complete path. Use it as it is. 10021 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool NAWK=$tool_specified" >&5 10022 $as_echo "$as_me: Will use user supplied tool NAWK=$tool_specified" >&6;} 10023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NAWK" >&5 10024 $as_echo_n "checking for NAWK... " >&6; } 10025 if test ! -x "$tool_specified"; then 10026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 10027 $as_echo "not found" >&6; } 10028 as_fn_error $? "User supplied tool NAWK=$tool_specified does not exist or is not executable" "$LINENO" 5 10029 fi 10030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 10031 $as_echo "$tool_specified" >&6; } 10032 fi 10033 fi 10034 fi 10035 10036 fi 10037 10038 10039 10040 if test "x$NAWK" = x; then 10041 as_fn_error $? "Could not find required tool for NAWK" "$LINENO" 5 10042 fi 10043 10044 10045 10046 10047 10048 # Publish this variable in the help. 10049 10050 10051 if [ -z "${PRINTF+x}" ]; then 10052 # The variable is not set by user, try to locate tool using the code snippet 10053 for ac_prog in printf 10054 do 10055 # Extract the first word of "$ac_prog", so it can be a program name with args. 10056 set dummy $ac_prog; ac_word=$2 10057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10058 $as_echo_n "checking for $ac_word... " >&6; } 10059 if ${ac_cv_path_PRINTF+:} false; then : 10060 $as_echo_n "(cached) " >&6 10061 else 10062 case $PRINTF in 10063 [\\/]* | ?:[\\/]*) 10064 ac_cv_path_PRINTF="$PRINTF" # Let the user override the test with a path. 10065 ;; 10066 *) 10067 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10068 for as_dir in $PATH 10069 do 10070 IFS=$as_save_IFS 10071 test -z "$as_dir" && as_dir=. 10072 for ac_exec_ext in '' $ac_executable_extensions; do 10073 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10074 ac_cv_path_PRINTF="$as_dir/$ac_word$ac_exec_ext" 10075 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10076 break 2 10077 fi 10078 done 10079 done 10080 IFS=$as_save_IFS 10081 10082 ;; 10083 esac 10084 fi 10085 PRINTF=$ac_cv_path_PRINTF 10086 if test -n "$PRINTF"; then 10087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PRINTF" >&5 10088 $as_echo "$PRINTF" >&6; } 10089 else 10090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10091 $as_echo "no" >&6; } 10092 fi 10093 10094 10095 test -n "$PRINTF" && break 10096 done 10097 10098 else 10099 # The variable is set, but is it from the command line or the environment? 10100 10101 # Try to remove the string !PRINTF! from our list. 10102 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!PRINTF!/} 10103 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 10104 # If it failed, the variable was not from the command line. Ignore it, 10105 # but warn the user (except for BASH, which is always set by the calling BASH). 10106 if test "xPRINTF" != xBASH; then 10107 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of PRINTF from the environment. Use command line variables instead." >&5 10108 $as_echo "$as_me: WARNING: Ignoring value of PRINTF from the environment. Use command line variables instead." >&2;} 10109 fi 10110 # Try to locate tool using the code snippet 10111 for ac_prog in printf 10112 do 10113 # Extract the first word of "$ac_prog", so it can be a program name with args. 10114 set dummy $ac_prog; ac_word=$2 10115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10116 $as_echo_n "checking for $ac_word... " >&6; } 10117 if ${ac_cv_path_PRINTF+:} false; then : 10118 $as_echo_n "(cached) " >&6 10119 else 10120 case $PRINTF in 10121 [\\/]* | ?:[\\/]*) 10122 ac_cv_path_PRINTF="$PRINTF" # Let the user override the test with a path. 10123 ;; 10124 *) 10125 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10126 for as_dir in $PATH 10127 do 10128 IFS=$as_save_IFS 10129 test -z "$as_dir" && as_dir=. 10130 for ac_exec_ext in '' $ac_executable_extensions; do 10131 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10132 ac_cv_path_PRINTF="$as_dir/$ac_word$ac_exec_ext" 10133 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10134 break 2 10135 fi 10136 done 10137 done 10138 IFS=$as_save_IFS 10139 10140 ;; 10141 esac 10142 fi 10143 PRINTF=$ac_cv_path_PRINTF 10144 if test -n "$PRINTF"; then 10145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PRINTF" >&5 10146 $as_echo "$PRINTF" >&6; } 10147 else 10148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10149 $as_echo "no" >&6; } 10150 fi 10151 10152 10153 test -n "$PRINTF" && break 10154 done 10155 10156 else 10157 # If it succeeded, then it was overridden by the user. We will use it 10158 # for the tool. 10159 10160 # First remove it from the list of overridden variables, so we can test 10161 # for unknown variables in the end. 10162 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 10163 10164 # Check if we try to supply an empty value 10165 if test "x$PRINTF" = x; then 10166 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool PRINTF= (no value)" >&5 10167 $as_echo "$as_me: Setting user supplied tool PRINTF= (no value)" >&6;} 10168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PRINTF" >&5 10169 $as_echo_n "checking for PRINTF... " >&6; } 10170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 10171 $as_echo "disabled" >&6; } 10172 else 10173 # Check if the provided tool contains a complete path. 10174 tool_specified="$PRINTF" 10175 tool_basename="${tool_specified##*/}" 10176 if test "x$tool_basename" = "x$tool_specified"; then 10177 # A command without a complete path is provided, search $PATH. 10178 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool PRINTF=$tool_basename" >&5 10179 $as_echo "$as_me: Will search for user supplied tool PRINTF=$tool_basename" >&6;} 10180 # Extract the first word of "$tool_basename", so it can be a program name with args. 10181 set dummy $tool_basename; ac_word=$2 10182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10183 $as_echo_n "checking for $ac_word... " >&6; } 10184 if ${ac_cv_path_PRINTF+:} false; then : 10185 $as_echo_n "(cached) " >&6 10186 else 10187 case $PRINTF in 10188 [\\/]* | ?:[\\/]*) 10189 ac_cv_path_PRINTF="$PRINTF" # Let the user override the test with a path. 10190 ;; 10191 *) 10192 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10193 for as_dir in $PATH 10194 do 10195 IFS=$as_save_IFS 10196 test -z "$as_dir" && as_dir=. 10197 for ac_exec_ext in '' $ac_executable_extensions; do 10198 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10199 ac_cv_path_PRINTF="$as_dir/$ac_word$ac_exec_ext" 10200 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10201 break 2 10202 fi 10203 done 10204 done 10205 IFS=$as_save_IFS 10206 10207 ;; 10208 esac 10209 fi 10210 PRINTF=$ac_cv_path_PRINTF 10211 if test -n "$PRINTF"; then 10212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PRINTF" >&5 10213 $as_echo "$PRINTF" >&6; } 10214 else 10215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10216 $as_echo "no" >&6; } 10217 fi 10218 10219 10220 if test "x$PRINTF" = x; then 10221 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 10222 fi 10223 else 10224 # Otherwise we believe it is a complete path. Use it as it is. 10225 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool PRINTF=$tool_specified" >&5 10226 $as_echo "$as_me: Will use user supplied tool PRINTF=$tool_specified" >&6;} 10227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PRINTF" >&5 10228 $as_echo_n "checking for PRINTF... " >&6; } 10229 if test ! -x "$tool_specified"; then 10230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 10231 $as_echo "not found" >&6; } 10232 as_fn_error $? "User supplied tool PRINTF=$tool_specified does not exist or is not executable" "$LINENO" 5 10233 fi 10234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 10235 $as_echo "$tool_specified" >&6; } 10236 fi 10237 fi 10238 fi 10239 10240 fi 10241 10242 10243 10244 if test "x$PRINTF" = x; then 10245 as_fn_error $? "Could not find required tool for PRINTF" "$LINENO" 5 10246 fi 10247 10248 10249 10250 10251 10252 # Publish this variable in the help. 10253 10254 10255 if [ -z "${RM+x}" ]; then 10256 # The variable is not set by user, try to locate tool using the code snippet 10257 for ac_prog in rm 10258 do 10259 # Extract the first word of "$ac_prog", so it can be a program name with args. 10260 set dummy $ac_prog; ac_word=$2 10261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10262 $as_echo_n "checking for $ac_word... " >&6; } 10263 if ${ac_cv_path_RM+:} false; then : 10264 $as_echo_n "(cached) " >&6 10265 else 10266 case $RM in 10267 [\\/]* | ?:[\\/]*) 10268 ac_cv_path_RM="$RM" # Let the user override the test with a path. 10269 ;; 10270 *) 10271 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10272 for as_dir in $PATH 10273 do 10274 IFS=$as_save_IFS 10275 test -z "$as_dir" && as_dir=. 10276 for ac_exec_ext in '' $ac_executable_extensions; do 10277 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10278 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext" 10279 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10280 break 2 10281 fi 10282 done 10283 done 10284 IFS=$as_save_IFS 10285 10286 ;; 10287 esac 10288 fi 10289 RM=$ac_cv_path_RM 10290 if test -n "$RM"; then 10291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5 10292 $as_echo "$RM" >&6; } 10293 else 10294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10295 $as_echo "no" >&6; } 10296 fi 10297 10298 10299 test -n "$RM" && break 10300 done 10301 10302 else 10303 # The variable is set, but is it from the command line or the environment? 10304 10305 # Try to remove the string !RM! from our list. 10306 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!RM!/} 10307 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 10308 # If it failed, the variable was not from the command line. Ignore it, 10309 # but warn the user (except for BASH, which is always set by the calling BASH). 10310 if test "xRM" != xBASH; then 10311 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of RM from the environment. Use command line variables instead." >&5 10312 $as_echo "$as_me: WARNING: Ignoring value of RM from the environment. Use command line variables instead." >&2;} 10313 fi 10314 # Try to locate tool using the code snippet 10315 for ac_prog in rm 10316 do 10317 # Extract the first word of "$ac_prog", so it can be a program name with args. 10318 set dummy $ac_prog; ac_word=$2 10319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10320 $as_echo_n "checking for $ac_word... " >&6; } 10321 if ${ac_cv_path_RM+:} false; then : 10322 $as_echo_n "(cached) " >&6 10323 else 10324 case $RM in 10325 [\\/]* | ?:[\\/]*) 10326 ac_cv_path_RM="$RM" # Let the user override the test with a path. 10327 ;; 10328 *) 10329 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10330 for as_dir in $PATH 10331 do 10332 IFS=$as_save_IFS 10333 test -z "$as_dir" && as_dir=. 10334 for ac_exec_ext in '' $ac_executable_extensions; do 10335 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10336 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext" 10337 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10338 break 2 10339 fi 10340 done 10341 done 10342 IFS=$as_save_IFS 10343 10344 ;; 10345 esac 10346 fi 10347 RM=$ac_cv_path_RM 10348 if test -n "$RM"; then 10349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5 10350 $as_echo "$RM" >&6; } 10351 else 10352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10353 $as_echo "no" >&6; } 10354 fi 10355 10356 10357 test -n "$RM" && break 10358 done 10359 10360 else 10361 # If it succeeded, then it was overridden by the user. We will use it 10362 # for the tool. 10363 10364 # First remove it from the list of overridden variables, so we can test 10365 # for unknown variables in the end. 10366 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 10367 10368 # Check if we try to supply an empty value 10369 if test "x$RM" = x; then 10370 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool RM= (no value)" >&5 10371 $as_echo "$as_me: Setting user supplied tool RM= (no value)" >&6;} 10372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RM" >&5 10373 $as_echo_n "checking for RM... " >&6; } 10374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 10375 $as_echo "disabled" >&6; } 10376 else 10377 # Check if the provided tool contains a complete path. 10378 tool_specified="$RM" 10379 tool_basename="${tool_specified##*/}" 10380 if test "x$tool_basename" = "x$tool_specified"; then 10381 # A command without a complete path is provided, search $PATH. 10382 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool RM=$tool_basename" >&5 10383 $as_echo "$as_me: Will search for user supplied tool RM=$tool_basename" >&6;} 10384 # Extract the first word of "$tool_basename", so it can be a program name with args. 10385 set dummy $tool_basename; ac_word=$2 10386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10387 $as_echo_n "checking for $ac_word... " >&6; } 10388 if ${ac_cv_path_RM+:} false; then : 10389 $as_echo_n "(cached) " >&6 10390 else 10391 case $RM in 10392 [\\/]* | ?:[\\/]*) 10393 ac_cv_path_RM="$RM" # Let the user override the test with a path. 10394 ;; 10395 *) 10396 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10397 for as_dir in $PATH 10398 do 10399 IFS=$as_save_IFS 10400 test -z "$as_dir" && as_dir=. 10401 for ac_exec_ext in '' $ac_executable_extensions; do 10402 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10403 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext" 10404 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10405 break 2 10406 fi 10407 done 10408 done 10409 IFS=$as_save_IFS 10410 10411 ;; 10412 esac 10413 fi 10414 RM=$ac_cv_path_RM 10415 if test -n "$RM"; then 10416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5 10417 $as_echo "$RM" >&6; } 10418 else 10419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10420 $as_echo "no" >&6; } 10421 fi 10422 10423 10424 if test "x$RM" = x; then 10425 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 10426 fi 10427 else 10428 # Otherwise we believe it is a complete path. Use it as it is. 10429 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool RM=$tool_specified" >&5 10430 $as_echo "$as_me: Will use user supplied tool RM=$tool_specified" >&6;} 10431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RM" >&5 10432 $as_echo_n "checking for RM... " >&6; } 10433 if test ! -x "$tool_specified"; then 10434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 10435 $as_echo "not found" >&6; } 10436 as_fn_error $? "User supplied tool RM=$tool_specified does not exist or is not executable" "$LINENO" 5 10437 fi 10438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 10439 $as_echo "$tool_specified" >&6; } 10440 fi 10441 fi 10442 fi 10443 10444 fi 10445 10446 10447 10448 if test "x$RM" = x; then 10449 as_fn_error $? "Could not find required tool for RM" "$LINENO" 5 10450 fi 10451 10452 10453 10454 10455 10456 # Publish this variable in the help. 10457 10458 10459 if [ -z "${RMDIR+x}" ]; then 10460 # The variable is not set by user, try to locate tool using the code snippet 10461 for ac_prog in rmdir 10462 do 10463 # Extract the first word of "$ac_prog", so it can be a program name with args. 10464 set dummy $ac_prog; ac_word=$2 10465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10466 $as_echo_n "checking for $ac_word... " >&6; } 10467 if ${ac_cv_path_RMDIR+:} false; then : 10468 $as_echo_n "(cached) " >&6 10469 else 10470 case $RMDIR in 10471 [\\/]* | ?:[\\/]*) 10472 ac_cv_path_RMDIR="$RMDIR" # Let the user override the test with a path. 10473 ;; 10474 *) 10475 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10476 for as_dir in $PATH 10477 do 10478 IFS=$as_save_IFS 10479 test -z "$as_dir" && as_dir=. 10480 for ac_exec_ext in '' $ac_executable_extensions; do 10481 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10482 ac_cv_path_RMDIR="$as_dir/$ac_word$ac_exec_ext" 10483 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10484 break 2 10485 fi 10486 done 10487 done 10488 IFS=$as_save_IFS 10489 10490 ;; 10491 esac 10492 fi 10493 RMDIR=$ac_cv_path_RMDIR 10494 if test -n "$RMDIR"; then 10495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RMDIR" >&5 10496 $as_echo "$RMDIR" >&6; } 10497 else 10498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10499 $as_echo "no" >&6; } 10500 fi 10501 10502 10503 test -n "$RMDIR" && break 10504 done 10505 10506 else 10507 # The variable is set, but is it from the command line or the environment? 10508 10509 # Try to remove the string !RMDIR! from our list. 10510 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!RMDIR!/} 10511 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 10512 # If it failed, the variable was not from the command line. Ignore it, 10513 # but warn the user (except for BASH, which is always set by the calling BASH). 10514 if test "xRMDIR" != xBASH; then 10515 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of RMDIR from the environment. Use command line variables instead." >&5 10516 $as_echo "$as_me: WARNING: Ignoring value of RMDIR from the environment. Use command line variables instead." >&2;} 10517 fi 10518 # Try to locate tool using the code snippet 10519 for ac_prog in rmdir 10520 do 10521 # Extract the first word of "$ac_prog", so it can be a program name with args. 10522 set dummy $ac_prog; ac_word=$2 10523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10524 $as_echo_n "checking for $ac_word... " >&6; } 10525 if ${ac_cv_path_RMDIR+:} false; then : 10526 $as_echo_n "(cached) " >&6 10527 else 10528 case $RMDIR in 10529 [\\/]* | ?:[\\/]*) 10530 ac_cv_path_RMDIR="$RMDIR" # Let the user override the test with a path. 10531 ;; 10532 *) 10533 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10534 for as_dir in $PATH 10535 do 10536 IFS=$as_save_IFS 10537 test -z "$as_dir" && as_dir=. 10538 for ac_exec_ext in '' $ac_executable_extensions; do 10539 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10540 ac_cv_path_RMDIR="$as_dir/$ac_word$ac_exec_ext" 10541 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10542 break 2 10543 fi 10544 done 10545 done 10546 IFS=$as_save_IFS 10547 10548 ;; 10549 esac 10550 fi 10551 RMDIR=$ac_cv_path_RMDIR 10552 if test -n "$RMDIR"; then 10553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RMDIR" >&5 10554 $as_echo "$RMDIR" >&6; } 10555 else 10556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10557 $as_echo "no" >&6; } 10558 fi 10559 10560 10561 test -n "$RMDIR" && break 10562 done 10563 10564 else 10565 # If it succeeded, then it was overridden by the user. We will use it 10566 # for the tool. 10567 10568 # First remove it from the list of overridden variables, so we can test 10569 # for unknown variables in the end. 10570 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 10571 10572 # Check if we try to supply an empty value 10573 if test "x$RMDIR" = x; then 10574 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool RMDIR= (no value)" >&5 10575 $as_echo "$as_me: Setting user supplied tool RMDIR= (no value)" >&6;} 10576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RMDIR" >&5 10577 $as_echo_n "checking for RMDIR... " >&6; } 10578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 10579 $as_echo "disabled" >&6; } 10580 else 10581 # Check if the provided tool contains a complete path. 10582 tool_specified="$RMDIR" 10583 tool_basename="${tool_specified##*/}" 10584 if test "x$tool_basename" = "x$tool_specified"; then 10585 # A command without a complete path is provided, search $PATH. 10586 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool RMDIR=$tool_basename" >&5 10587 $as_echo "$as_me: Will search for user supplied tool RMDIR=$tool_basename" >&6;} 10588 # Extract the first word of "$tool_basename", so it can be a program name with args. 10589 set dummy $tool_basename; ac_word=$2 10590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10591 $as_echo_n "checking for $ac_word... " >&6; } 10592 if ${ac_cv_path_RMDIR+:} false; then : 10593 $as_echo_n "(cached) " >&6 10594 else 10595 case $RMDIR in 10596 [\\/]* | ?:[\\/]*) 10597 ac_cv_path_RMDIR="$RMDIR" # Let the user override the test with a path. 10598 ;; 10599 *) 10600 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10601 for as_dir in $PATH 10602 do 10603 IFS=$as_save_IFS 10604 test -z "$as_dir" && as_dir=. 10605 for ac_exec_ext in '' $ac_executable_extensions; do 10606 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10607 ac_cv_path_RMDIR="$as_dir/$ac_word$ac_exec_ext" 10608 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10609 break 2 10610 fi 10611 done 10612 done 10613 IFS=$as_save_IFS 10614 10615 ;; 10616 esac 10617 fi 10618 RMDIR=$ac_cv_path_RMDIR 10619 if test -n "$RMDIR"; then 10620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RMDIR" >&5 10621 $as_echo "$RMDIR" >&6; } 10622 else 10623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10624 $as_echo "no" >&6; } 10625 fi 10626 10627 10628 if test "x$RMDIR" = x; then 10629 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 10630 fi 10631 else 10632 # Otherwise we believe it is a complete path. Use it as it is. 10633 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool RMDIR=$tool_specified" >&5 10634 $as_echo "$as_me: Will use user supplied tool RMDIR=$tool_specified" >&6;} 10635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RMDIR" >&5 10636 $as_echo_n "checking for RMDIR... " >&6; } 10637 if test ! -x "$tool_specified"; then 10638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 10639 $as_echo "not found" >&6; } 10640 as_fn_error $? "User supplied tool RMDIR=$tool_specified does not exist or is not executable" "$LINENO" 5 10641 fi 10642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 10643 $as_echo "$tool_specified" >&6; } 10644 fi 10645 fi 10646 fi 10647 10648 fi 10649 10650 10651 10652 if test "x$RMDIR" = x; then 10653 as_fn_error $? "Could not find required tool for RMDIR" "$LINENO" 5 10654 fi 10655 10656 10657 10658 10659 10660 # Publish this variable in the help. 10661 10662 10663 if [ -z "${SH+x}" ]; then 10664 # The variable is not set by user, try to locate tool using the code snippet 10665 for ac_prog in sh 10666 do 10667 # Extract the first word of "$ac_prog", so it can be a program name with args. 10668 set dummy $ac_prog; ac_word=$2 10669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10670 $as_echo_n "checking for $ac_word... " >&6; } 10671 if ${ac_cv_path_SH+:} false; then : 10672 $as_echo_n "(cached) " >&6 10673 else 10674 case $SH in 10675 [\\/]* | ?:[\\/]*) 10676 ac_cv_path_SH="$SH" # Let the user override the test with a path. 10677 ;; 10678 *) 10679 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10680 for as_dir in $PATH 10681 do 10682 IFS=$as_save_IFS 10683 test -z "$as_dir" && as_dir=. 10684 for ac_exec_ext in '' $ac_executable_extensions; do 10685 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10686 ac_cv_path_SH="$as_dir/$ac_word$ac_exec_ext" 10687 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10688 break 2 10689 fi 10690 done 10691 done 10692 IFS=$as_save_IFS 10693 10694 ;; 10695 esac 10696 fi 10697 SH=$ac_cv_path_SH 10698 if test -n "$SH"; then 10699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SH" >&5 10700 $as_echo "$SH" >&6; } 10701 else 10702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10703 $as_echo "no" >&6; } 10704 fi 10705 10706 10707 test -n "$SH" && break 10708 done 10709 10710 else 10711 # The variable is set, but is it from the command line or the environment? 10712 10713 # Try to remove the string !SH! from our list. 10714 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!SH!/} 10715 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 10716 # If it failed, the variable was not from the command line. Ignore it, 10717 # but warn the user (except for BASH, which is always set by the calling BASH). 10718 if test "xSH" != xBASH; then 10719 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of SH from the environment. Use command line variables instead." >&5 10720 $as_echo "$as_me: WARNING: Ignoring value of SH from the environment. Use command line variables instead." >&2;} 10721 fi 10722 # Try to locate tool using the code snippet 10723 for ac_prog in sh 10724 do 10725 # Extract the first word of "$ac_prog", so it can be a program name with args. 10726 set dummy $ac_prog; ac_word=$2 10727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10728 $as_echo_n "checking for $ac_word... " >&6; } 10729 if ${ac_cv_path_SH+:} false; then : 10730 $as_echo_n "(cached) " >&6 10731 else 10732 case $SH in 10733 [\\/]* | ?:[\\/]*) 10734 ac_cv_path_SH="$SH" # Let the user override the test with a path. 10735 ;; 10736 *) 10737 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10738 for as_dir in $PATH 10739 do 10740 IFS=$as_save_IFS 10741 test -z "$as_dir" && as_dir=. 10742 for ac_exec_ext in '' $ac_executable_extensions; do 10743 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10744 ac_cv_path_SH="$as_dir/$ac_word$ac_exec_ext" 10745 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10746 break 2 10747 fi 10748 done 10749 done 10750 IFS=$as_save_IFS 10751 10752 ;; 10753 esac 10754 fi 10755 SH=$ac_cv_path_SH 10756 if test -n "$SH"; then 10757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SH" >&5 10758 $as_echo "$SH" >&6; } 10759 else 10760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10761 $as_echo "no" >&6; } 10762 fi 10763 10764 10765 test -n "$SH" && break 10766 done 10767 10768 else 10769 # If it succeeded, then it was overridden by the user. We will use it 10770 # for the tool. 10771 10772 # First remove it from the list of overridden variables, so we can test 10773 # for unknown variables in the end. 10774 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 10775 10776 # Check if we try to supply an empty value 10777 if test "x$SH" = x; then 10778 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool SH= (no value)" >&5 10779 $as_echo "$as_me: Setting user supplied tool SH= (no value)" >&6;} 10780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SH" >&5 10781 $as_echo_n "checking for SH... " >&6; } 10782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 10783 $as_echo "disabled" >&6; } 10784 else 10785 # Check if the provided tool contains a complete path. 10786 tool_specified="$SH" 10787 tool_basename="${tool_specified##*/}" 10788 if test "x$tool_basename" = "x$tool_specified"; then 10789 # A command without a complete path is provided, search $PATH. 10790 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool SH=$tool_basename" >&5 10791 $as_echo "$as_me: Will search for user supplied tool SH=$tool_basename" >&6;} 10792 # Extract the first word of "$tool_basename", so it can be a program name with args. 10793 set dummy $tool_basename; ac_word=$2 10794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10795 $as_echo_n "checking for $ac_word... " >&6; } 10796 if ${ac_cv_path_SH+:} false; then : 10797 $as_echo_n "(cached) " >&6 10798 else 10799 case $SH in 10800 [\\/]* | ?:[\\/]*) 10801 ac_cv_path_SH="$SH" # Let the user override the test with a path. 10802 ;; 10803 *) 10804 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10805 for as_dir in $PATH 10806 do 10807 IFS=$as_save_IFS 10808 test -z "$as_dir" && as_dir=. 10809 for ac_exec_ext in '' $ac_executable_extensions; do 10810 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10811 ac_cv_path_SH="$as_dir/$ac_word$ac_exec_ext" 10812 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10813 break 2 10814 fi 10815 done 10816 done 10817 IFS=$as_save_IFS 10818 10819 ;; 10820 esac 10821 fi 10822 SH=$ac_cv_path_SH 10823 if test -n "$SH"; then 10824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SH" >&5 10825 $as_echo "$SH" >&6; } 10826 else 10827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10828 $as_echo "no" >&6; } 10829 fi 10830 10831 10832 if test "x$SH" = x; then 10833 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 10834 fi 10835 else 10836 # Otherwise we believe it is a complete path. Use it as it is. 10837 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool SH=$tool_specified" >&5 10838 $as_echo "$as_me: Will use user supplied tool SH=$tool_specified" >&6;} 10839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SH" >&5 10840 $as_echo_n "checking for SH... " >&6; } 10841 if test ! -x "$tool_specified"; then 10842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 10843 $as_echo "not found" >&6; } 10844 as_fn_error $? "User supplied tool SH=$tool_specified does not exist or is not executable" "$LINENO" 5 10845 fi 10846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 10847 $as_echo "$tool_specified" >&6; } 10848 fi 10849 fi 10850 fi 10851 10852 fi 10853 10854 10855 10856 if test "x$SH" = x; then 10857 as_fn_error $? "Could not find required tool for SH" "$LINENO" 5 10858 fi 10859 10860 10861 10862 10863 10864 # Publish this variable in the help. 10865 10866 10867 if [ -z "${SORT+x}" ]; then 10868 # The variable is not set by user, try to locate tool using the code snippet 10869 for ac_prog in sort 10870 do 10871 # Extract the first word of "$ac_prog", so it can be a program name with args. 10872 set dummy $ac_prog; ac_word=$2 10873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10874 $as_echo_n "checking for $ac_word... " >&6; } 10875 if ${ac_cv_path_SORT+:} false; then : 10876 $as_echo_n "(cached) " >&6 10877 else 10878 case $SORT in 10879 [\\/]* | ?:[\\/]*) 10880 ac_cv_path_SORT="$SORT" # Let the user override the test with a path. 10881 ;; 10882 *) 10883 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10884 for as_dir in $PATH 10885 do 10886 IFS=$as_save_IFS 10887 test -z "$as_dir" && as_dir=. 10888 for ac_exec_ext in '' $ac_executable_extensions; do 10889 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10890 ac_cv_path_SORT="$as_dir/$ac_word$ac_exec_ext" 10891 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10892 break 2 10893 fi 10894 done 10895 done 10896 IFS=$as_save_IFS 10897 10898 ;; 10899 esac 10900 fi 10901 SORT=$ac_cv_path_SORT 10902 if test -n "$SORT"; then 10903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SORT" >&5 10904 $as_echo "$SORT" >&6; } 10905 else 10906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10907 $as_echo "no" >&6; } 10908 fi 10909 10910 10911 test -n "$SORT" && break 10912 done 10913 10914 else 10915 # The variable is set, but is it from the command line or the environment? 10916 10917 # Try to remove the string !SORT! from our list. 10918 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!SORT!/} 10919 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 10920 # If it failed, the variable was not from the command line. Ignore it, 10921 # but warn the user (except for BASH, which is always set by the calling BASH). 10922 if test "xSORT" != xBASH; then 10923 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of SORT from the environment. Use command line variables instead." >&5 10924 $as_echo "$as_me: WARNING: Ignoring value of SORT from the environment. Use command line variables instead." >&2;} 10925 fi 10926 # Try to locate tool using the code snippet 10927 for ac_prog in sort 10928 do 10929 # Extract the first word of "$ac_prog", so it can be a program name with args. 10930 set dummy $ac_prog; ac_word=$2 10931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10932 $as_echo_n "checking for $ac_word... " >&6; } 10933 if ${ac_cv_path_SORT+:} false; then : 10934 $as_echo_n "(cached) " >&6 10935 else 10936 case $SORT in 10937 [\\/]* | ?:[\\/]*) 10938 ac_cv_path_SORT="$SORT" # Let the user override the test with a path. 10939 ;; 10940 *) 10941 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10942 for as_dir in $PATH 10943 do 10944 IFS=$as_save_IFS 10945 test -z "$as_dir" && as_dir=. 10946 for ac_exec_ext in '' $ac_executable_extensions; do 10947 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10948 ac_cv_path_SORT="$as_dir/$ac_word$ac_exec_ext" 10949 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10950 break 2 10951 fi 10952 done 10953 done 10954 IFS=$as_save_IFS 10955 10956 ;; 10957 esac 10958 fi 10959 SORT=$ac_cv_path_SORT 10960 if test -n "$SORT"; then 10961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SORT" >&5 10962 $as_echo "$SORT" >&6; } 10963 else 10964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10965 $as_echo "no" >&6; } 10966 fi 10967 10968 10969 test -n "$SORT" && break 10970 done 10971 10972 else 10973 # If it succeeded, then it was overridden by the user. We will use it 10974 # for the tool. 10975 10976 # First remove it from the list of overridden variables, so we can test 10977 # for unknown variables in the end. 10978 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 10979 10980 # Check if we try to supply an empty value 10981 if test "x$SORT" = x; then 10982 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool SORT= (no value)" >&5 10983 $as_echo "$as_me: Setting user supplied tool SORT= (no value)" >&6;} 10984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SORT" >&5 10985 $as_echo_n "checking for SORT... " >&6; } 10986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 10987 $as_echo "disabled" >&6; } 10988 else 10989 # Check if the provided tool contains a complete path. 10990 tool_specified="$SORT" 10991 tool_basename="${tool_specified##*/}" 10992 if test "x$tool_basename" = "x$tool_specified"; then 10993 # A command without a complete path is provided, search $PATH. 10994 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool SORT=$tool_basename" >&5 10995 $as_echo "$as_me: Will search for user supplied tool SORT=$tool_basename" >&6;} 10996 # Extract the first word of "$tool_basename", so it can be a program name with args. 10997 set dummy $tool_basename; ac_word=$2 10998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10999 $as_echo_n "checking for $ac_word... " >&6; } 11000 if ${ac_cv_path_SORT+:} false; then : 11001 $as_echo_n "(cached) " >&6 11002 else 11003 case $SORT in 11004 [\\/]* | ?:[\\/]*) 11005 ac_cv_path_SORT="$SORT" # Let the user override the test with a path. 11006 ;; 11007 *) 11008 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11009 for as_dir in $PATH 11010 do 11011 IFS=$as_save_IFS 11012 test -z "$as_dir" && as_dir=. 11013 for ac_exec_ext in '' $ac_executable_extensions; do 11014 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11015 ac_cv_path_SORT="$as_dir/$ac_word$ac_exec_ext" 11016 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11017 break 2 11018 fi 11019 done 11020 done 11021 IFS=$as_save_IFS 11022 11023 ;; 11024 esac 11025 fi 11026 SORT=$ac_cv_path_SORT 11027 if test -n "$SORT"; then 11028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SORT" >&5 11029 $as_echo "$SORT" >&6; } 11030 else 11031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11032 $as_echo "no" >&6; } 11033 fi 11034 11035 11036 if test "x$SORT" = x; then 11037 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 11038 fi 11039 else 11040 # Otherwise we believe it is a complete path. Use it as it is. 11041 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool SORT=$tool_specified" >&5 11042 $as_echo "$as_me: Will use user supplied tool SORT=$tool_specified" >&6;} 11043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SORT" >&5 11044 $as_echo_n "checking for SORT... " >&6; } 11045 if test ! -x "$tool_specified"; then 11046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 11047 $as_echo "not found" >&6; } 11048 as_fn_error $? "User supplied tool SORT=$tool_specified does not exist or is not executable" "$LINENO" 5 11049 fi 11050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 11051 $as_echo "$tool_specified" >&6; } 11052 fi 11053 fi 11054 fi 11055 11056 fi 11057 11058 11059 11060 if test "x$SORT" = x; then 11061 as_fn_error $? "Could not find required tool for SORT" "$LINENO" 5 11062 fi 11063 11064 11065 11066 11067 11068 # Publish this variable in the help. 11069 11070 11071 if [ -z "${TAIL+x}" ]; then 11072 # The variable is not set by user, try to locate tool using the code snippet 11073 for ac_prog in tail 11074 do 11075 # Extract the first word of "$ac_prog", so it can be a program name with args. 11076 set dummy $ac_prog; ac_word=$2 11077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11078 $as_echo_n "checking for $ac_word... " >&6; } 11079 if ${ac_cv_path_TAIL+:} false; then : 11080 $as_echo_n "(cached) " >&6 11081 else 11082 case $TAIL in 11083 [\\/]* | ?:[\\/]*) 11084 ac_cv_path_TAIL="$TAIL" # Let the user override the test with a path. 11085 ;; 11086 *) 11087 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11088 for as_dir in $PATH 11089 do 11090 IFS=$as_save_IFS 11091 test -z "$as_dir" && as_dir=. 11092 for ac_exec_ext in '' $ac_executable_extensions; do 11093 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11094 ac_cv_path_TAIL="$as_dir/$ac_word$ac_exec_ext" 11095 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11096 break 2 11097 fi 11098 done 11099 done 11100 IFS=$as_save_IFS 11101 11102 ;; 11103 esac 11104 fi 11105 TAIL=$ac_cv_path_TAIL 11106 if test -n "$TAIL"; then 11107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAIL" >&5 11108 $as_echo "$TAIL" >&6; } 11109 else 11110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11111 $as_echo "no" >&6; } 11112 fi 11113 11114 11115 test -n "$TAIL" && break 11116 done 11117 11118 else 11119 # The variable is set, but is it from the command line or the environment? 11120 11121 # Try to remove the string !TAIL! from our list. 11122 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!TAIL!/} 11123 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 11124 # If it failed, the variable was not from the command line. Ignore it, 11125 # but warn the user (except for BASH, which is always set by the calling BASH). 11126 if test "xTAIL" != xBASH; then 11127 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of TAIL from the environment. Use command line variables instead." >&5 11128 $as_echo "$as_me: WARNING: Ignoring value of TAIL from the environment. Use command line variables instead." >&2;} 11129 fi 11130 # Try to locate tool using the code snippet 11131 for ac_prog in tail 11132 do 11133 # Extract the first word of "$ac_prog", so it can be a program name with args. 11134 set dummy $ac_prog; ac_word=$2 11135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11136 $as_echo_n "checking for $ac_word... " >&6; } 11137 if ${ac_cv_path_TAIL+:} false; then : 11138 $as_echo_n "(cached) " >&6 11139 else 11140 case $TAIL in 11141 [\\/]* | ?:[\\/]*) 11142 ac_cv_path_TAIL="$TAIL" # Let the user override the test with a path. 11143 ;; 11144 *) 11145 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11146 for as_dir in $PATH 11147 do 11148 IFS=$as_save_IFS 11149 test -z "$as_dir" && as_dir=. 11150 for ac_exec_ext in '' $ac_executable_extensions; do 11151 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11152 ac_cv_path_TAIL="$as_dir/$ac_word$ac_exec_ext" 11153 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11154 break 2 11155 fi 11156 done 11157 done 11158 IFS=$as_save_IFS 11159 11160 ;; 11161 esac 11162 fi 11163 TAIL=$ac_cv_path_TAIL 11164 if test -n "$TAIL"; then 11165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAIL" >&5 11166 $as_echo "$TAIL" >&6; } 11167 else 11168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11169 $as_echo "no" >&6; } 11170 fi 11171 11172 11173 test -n "$TAIL" && break 11174 done 11175 11176 else 11177 # If it succeeded, then it was overridden by the user. We will use it 11178 # for the tool. 11179 11180 # First remove it from the list of overridden variables, so we can test 11181 # for unknown variables in the end. 11182 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 11183 11184 # Check if we try to supply an empty value 11185 if test "x$TAIL" = x; then 11186 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool TAIL= (no value)" >&5 11187 $as_echo "$as_me: Setting user supplied tool TAIL= (no value)" >&6;} 11188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TAIL" >&5 11189 $as_echo_n "checking for TAIL... " >&6; } 11190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 11191 $as_echo "disabled" >&6; } 11192 else 11193 # Check if the provided tool contains a complete path. 11194 tool_specified="$TAIL" 11195 tool_basename="${tool_specified##*/}" 11196 if test "x$tool_basename" = "x$tool_specified"; then 11197 # A command without a complete path is provided, search $PATH. 11198 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool TAIL=$tool_basename" >&5 11199 $as_echo "$as_me: Will search for user supplied tool TAIL=$tool_basename" >&6;} 11200 # Extract the first word of "$tool_basename", so it can be a program name with args. 11201 set dummy $tool_basename; ac_word=$2 11202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11203 $as_echo_n "checking for $ac_word... " >&6; } 11204 if ${ac_cv_path_TAIL+:} false; then : 11205 $as_echo_n "(cached) " >&6 11206 else 11207 case $TAIL in 11208 [\\/]* | ?:[\\/]*) 11209 ac_cv_path_TAIL="$TAIL" # Let the user override the test with a path. 11210 ;; 11211 *) 11212 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11213 for as_dir in $PATH 11214 do 11215 IFS=$as_save_IFS 11216 test -z "$as_dir" && as_dir=. 11217 for ac_exec_ext in '' $ac_executable_extensions; do 11218 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11219 ac_cv_path_TAIL="$as_dir/$ac_word$ac_exec_ext" 11220 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11221 break 2 11222 fi 11223 done 11224 done 11225 IFS=$as_save_IFS 11226 11227 ;; 11228 esac 11229 fi 11230 TAIL=$ac_cv_path_TAIL 11231 if test -n "$TAIL"; then 11232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAIL" >&5 11233 $as_echo "$TAIL" >&6; } 11234 else 11235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11236 $as_echo "no" >&6; } 11237 fi 11238 11239 11240 if test "x$TAIL" = x; then 11241 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 11242 fi 11243 else 11244 # Otherwise we believe it is a complete path. Use it as it is. 11245 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool TAIL=$tool_specified" >&5 11246 $as_echo "$as_me: Will use user supplied tool TAIL=$tool_specified" >&6;} 11247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TAIL" >&5 11248 $as_echo_n "checking for TAIL... " >&6; } 11249 if test ! -x "$tool_specified"; then 11250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 11251 $as_echo "not found" >&6; } 11252 as_fn_error $? "User supplied tool TAIL=$tool_specified does not exist or is not executable" "$LINENO" 5 11253 fi 11254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 11255 $as_echo "$tool_specified" >&6; } 11256 fi 11257 fi 11258 fi 11259 11260 fi 11261 11262 11263 11264 if test "x$TAIL" = x; then 11265 as_fn_error $? "Could not find required tool for TAIL" "$LINENO" 5 11266 fi 11267 11268 11269 11270 11271 11272 # Publish this variable in the help. 11273 11274 11275 if [ -z "${TAR+x}" ]; then 11276 # The variable is not set by user, try to locate tool using the code snippet 11277 for ac_prog in gtar tar 11278 do 11279 # Extract the first word of "$ac_prog", so it can be a program name with args. 11280 set dummy $ac_prog; ac_word=$2 11281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11282 $as_echo_n "checking for $ac_word... " >&6; } 11283 if ${ac_cv_path_TAR+:} false; then : 11284 $as_echo_n "(cached) " >&6 11285 else 11286 case $TAR in 11287 [\\/]* | ?:[\\/]*) 11288 ac_cv_path_TAR="$TAR" # Let the user override the test with a path. 11289 ;; 11290 *) 11291 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11292 for as_dir in $PATH 11293 do 11294 IFS=$as_save_IFS 11295 test -z "$as_dir" && as_dir=. 11296 for ac_exec_ext in '' $ac_executable_extensions; do 11297 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11298 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext" 11299 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11300 break 2 11301 fi 11302 done 11303 done 11304 IFS=$as_save_IFS 11305 11306 ;; 11307 esac 11308 fi 11309 TAR=$ac_cv_path_TAR 11310 if test -n "$TAR"; then 11311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR" >&5 11312 $as_echo "$TAR" >&6; } 11313 else 11314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11315 $as_echo "no" >&6; } 11316 fi 11317 11318 11319 test -n "$TAR" && break 11320 done 11321 11322 else 11323 # The variable is set, but is it from the command line or the environment? 11324 11325 # Try to remove the string !TAR! from our list. 11326 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!TAR!/} 11327 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 11328 # If it failed, the variable was not from the command line. Ignore it, 11329 # but warn the user (except for BASH, which is always set by the calling BASH). 11330 if test "xTAR" != xBASH; then 11331 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of TAR from the environment. Use command line variables instead." >&5 11332 $as_echo "$as_me: WARNING: Ignoring value of TAR from the environment. Use command line variables instead." >&2;} 11333 fi 11334 # Try to locate tool using the code snippet 11335 for ac_prog in gtar tar 11336 do 11337 # Extract the first word of "$ac_prog", so it can be a program name with args. 11338 set dummy $ac_prog; ac_word=$2 11339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11340 $as_echo_n "checking for $ac_word... " >&6; } 11341 if ${ac_cv_path_TAR+:} false; then : 11342 $as_echo_n "(cached) " >&6 11343 else 11344 case $TAR in 11345 [\\/]* | ?:[\\/]*) 11346 ac_cv_path_TAR="$TAR" # Let the user override the test with a path. 11347 ;; 11348 *) 11349 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11350 for as_dir in $PATH 11351 do 11352 IFS=$as_save_IFS 11353 test -z "$as_dir" && as_dir=. 11354 for ac_exec_ext in '' $ac_executable_extensions; do 11355 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11356 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext" 11357 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11358 break 2 11359 fi 11360 done 11361 done 11362 IFS=$as_save_IFS 11363 11364 ;; 11365 esac 11366 fi 11367 TAR=$ac_cv_path_TAR 11368 if test -n "$TAR"; then 11369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR" >&5 11370 $as_echo "$TAR" >&6; } 11371 else 11372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11373 $as_echo "no" >&6; } 11374 fi 11375 11376 11377 test -n "$TAR" && break 11378 done 11379 11380 else 11381 # If it succeeded, then it was overridden by the user. We will use it 11382 # for the tool. 11383 11384 # First remove it from the list of overridden variables, so we can test 11385 # for unknown variables in the end. 11386 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 11387 11388 # Check if we try to supply an empty value 11389 if test "x$TAR" = x; then 11390 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool TAR= (no value)" >&5 11391 $as_echo "$as_me: Setting user supplied tool TAR= (no value)" >&6;} 11392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TAR" >&5 11393 $as_echo_n "checking for TAR... " >&6; } 11394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 11395 $as_echo "disabled" >&6; } 11396 else 11397 # Check if the provided tool contains a complete path. 11398 tool_specified="$TAR" 11399 tool_basename="${tool_specified##*/}" 11400 if test "x$tool_basename" = "x$tool_specified"; then 11401 # A command without a complete path is provided, search $PATH. 11402 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool TAR=$tool_basename" >&5 11403 $as_echo "$as_me: Will search for user supplied tool TAR=$tool_basename" >&6;} 11404 # Extract the first word of "$tool_basename", so it can be a program name with args. 11405 set dummy $tool_basename; ac_word=$2 11406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11407 $as_echo_n "checking for $ac_word... " >&6; } 11408 if ${ac_cv_path_TAR+:} false; then : 11409 $as_echo_n "(cached) " >&6 11410 else 11411 case $TAR in 11412 [\\/]* | ?:[\\/]*) 11413 ac_cv_path_TAR="$TAR" # Let the user override the test with a path. 11414 ;; 11415 *) 11416 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11417 for as_dir in $PATH 11418 do 11419 IFS=$as_save_IFS 11420 test -z "$as_dir" && as_dir=. 11421 for ac_exec_ext in '' $ac_executable_extensions; do 11422 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11423 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext" 11424 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11425 break 2 11426 fi 11427 done 11428 done 11429 IFS=$as_save_IFS 11430 11431 ;; 11432 esac 11433 fi 11434 TAR=$ac_cv_path_TAR 11435 if test -n "$TAR"; then 11436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR" >&5 11437 $as_echo "$TAR" >&6; } 11438 else 11439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11440 $as_echo "no" >&6; } 11441 fi 11442 11443 11444 if test "x$TAR" = x; then 11445 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 11446 fi 11447 else 11448 # Otherwise we believe it is a complete path. Use it as it is. 11449 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool TAR=$tool_specified" >&5 11450 $as_echo "$as_me: Will use user supplied tool TAR=$tool_specified" >&6;} 11451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TAR" >&5 11452 $as_echo_n "checking for TAR... " >&6; } 11453 if test ! -x "$tool_specified"; then 11454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 11455 $as_echo "not found" >&6; } 11456 as_fn_error $? "User supplied tool TAR=$tool_specified does not exist or is not executable" "$LINENO" 5 11457 fi 11458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 11459 $as_echo "$tool_specified" >&6; } 11460 fi 11461 fi 11462 fi 11463 11464 fi 11465 11466 11467 11468 if test "x$TAR" = x; then 11469 as_fn_error $? "Could not find required tool for TAR" "$LINENO" 5 11470 fi 11471 11472 11473 11474 11475 11476 # Publish this variable in the help. 11477 11478 11479 if [ -z "${TEE+x}" ]; then 11480 # The variable is not set by user, try to locate tool using the code snippet 11481 for ac_prog in tee 11482 do 11483 # Extract the first word of "$ac_prog", so it can be a program name with args. 11484 set dummy $ac_prog; ac_word=$2 11485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11486 $as_echo_n "checking for $ac_word... " >&6; } 11487 if ${ac_cv_path_TEE+:} false; then : 11488 $as_echo_n "(cached) " >&6 11489 else 11490 case $TEE in 11491 [\\/]* | ?:[\\/]*) 11492 ac_cv_path_TEE="$TEE" # Let the user override the test with a path. 11493 ;; 11494 *) 11495 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11496 for as_dir in $PATH 11497 do 11498 IFS=$as_save_IFS 11499 test -z "$as_dir" && as_dir=. 11500 for ac_exec_ext in '' $ac_executable_extensions; do 11501 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11502 ac_cv_path_TEE="$as_dir/$ac_word$ac_exec_ext" 11503 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11504 break 2 11505 fi 11506 done 11507 done 11508 IFS=$as_save_IFS 11509 11510 ;; 11511 esac 11512 fi 11513 TEE=$ac_cv_path_TEE 11514 if test -n "$TEE"; then 11515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TEE" >&5 11516 $as_echo "$TEE" >&6; } 11517 else 11518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11519 $as_echo "no" >&6; } 11520 fi 11521 11522 11523 test -n "$TEE" && break 11524 done 11525 11526 else 11527 # The variable is set, but is it from the command line or the environment? 11528 11529 # Try to remove the string !TEE! from our list. 11530 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!TEE!/} 11531 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 11532 # If it failed, the variable was not from the command line. Ignore it, 11533 # but warn the user (except for BASH, which is always set by the calling BASH). 11534 if test "xTEE" != xBASH; then 11535 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of TEE from the environment. Use command line variables instead." >&5 11536 $as_echo "$as_me: WARNING: Ignoring value of TEE from the environment. Use command line variables instead." >&2;} 11537 fi 11538 # Try to locate tool using the code snippet 11539 for ac_prog in tee 11540 do 11541 # Extract the first word of "$ac_prog", so it can be a program name with args. 11542 set dummy $ac_prog; ac_word=$2 11543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11544 $as_echo_n "checking for $ac_word... " >&6; } 11545 if ${ac_cv_path_TEE+:} false; then : 11546 $as_echo_n "(cached) " >&6 11547 else 11548 case $TEE in 11549 [\\/]* | ?:[\\/]*) 11550 ac_cv_path_TEE="$TEE" # Let the user override the test with a path. 11551 ;; 11552 *) 11553 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11554 for as_dir in $PATH 11555 do 11556 IFS=$as_save_IFS 11557 test -z "$as_dir" && as_dir=. 11558 for ac_exec_ext in '' $ac_executable_extensions; do 11559 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11560 ac_cv_path_TEE="$as_dir/$ac_word$ac_exec_ext" 11561 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11562 break 2 11563 fi 11564 done 11565 done 11566 IFS=$as_save_IFS 11567 11568 ;; 11569 esac 11570 fi 11571 TEE=$ac_cv_path_TEE 11572 if test -n "$TEE"; then 11573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TEE" >&5 11574 $as_echo "$TEE" >&6; } 11575 else 11576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11577 $as_echo "no" >&6; } 11578 fi 11579 11580 11581 test -n "$TEE" && break 11582 done 11583 11584 else 11585 # If it succeeded, then it was overridden by the user. We will use it 11586 # for the tool. 11587 11588 # First remove it from the list of overridden variables, so we can test 11589 # for unknown variables in the end. 11590 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 11591 11592 # Check if we try to supply an empty value 11593 if test "x$TEE" = x; then 11594 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool TEE= (no value)" >&5 11595 $as_echo "$as_me: Setting user supplied tool TEE= (no value)" >&6;} 11596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TEE" >&5 11597 $as_echo_n "checking for TEE... " >&6; } 11598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 11599 $as_echo "disabled" >&6; } 11600 else 11601 # Check if the provided tool contains a complete path. 11602 tool_specified="$TEE" 11603 tool_basename="${tool_specified##*/}" 11604 if test "x$tool_basename" = "x$tool_specified"; then 11605 # A command without a complete path is provided, search $PATH. 11606 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool TEE=$tool_basename" >&5 11607 $as_echo "$as_me: Will search for user supplied tool TEE=$tool_basename" >&6;} 11608 # Extract the first word of "$tool_basename", so it can be a program name with args. 11609 set dummy $tool_basename; ac_word=$2 11610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11611 $as_echo_n "checking for $ac_word... " >&6; } 11612 if ${ac_cv_path_TEE+:} false; then : 11613 $as_echo_n "(cached) " >&6 11614 else 11615 case $TEE in 11616 [\\/]* | ?:[\\/]*) 11617 ac_cv_path_TEE="$TEE" # Let the user override the test with a path. 11618 ;; 11619 *) 11620 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11621 for as_dir in $PATH 11622 do 11623 IFS=$as_save_IFS 11624 test -z "$as_dir" && as_dir=. 11625 for ac_exec_ext in '' $ac_executable_extensions; do 11626 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11627 ac_cv_path_TEE="$as_dir/$ac_word$ac_exec_ext" 11628 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11629 break 2 11630 fi 11631 done 11632 done 11633 IFS=$as_save_IFS 11634 11635 ;; 11636 esac 11637 fi 11638 TEE=$ac_cv_path_TEE 11639 if test -n "$TEE"; then 11640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TEE" >&5 11641 $as_echo "$TEE" >&6; } 11642 else 11643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11644 $as_echo "no" >&6; } 11645 fi 11646 11647 11648 if test "x$TEE" = x; then 11649 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 11650 fi 11651 else 11652 # Otherwise we believe it is a complete path. Use it as it is. 11653 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool TEE=$tool_specified" >&5 11654 $as_echo "$as_me: Will use user supplied tool TEE=$tool_specified" >&6;} 11655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TEE" >&5 11656 $as_echo_n "checking for TEE... " >&6; } 11657 if test ! -x "$tool_specified"; then 11658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 11659 $as_echo "not found" >&6; } 11660 as_fn_error $? "User supplied tool TEE=$tool_specified does not exist or is not executable" "$LINENO" 5 11661 fi 11662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 11663 $as_echo "$tool_specified" >&6; } 11664 fi 11665 fi 11666 fi 11667 11668 fi 11669 11670 11671 11672 if test "x$TEE" = x; then 11673 as_fn_error $? "Could not find required tool for TEE" "$LINENO" 5 11674 fi 11675 11676 11677 11678 11679 11680 # Publish this variable in the help. 11681 11682 11683 if [ -z "${TOUCH+x}" ]; then 11684 # The variable is not set by user, try to locate tool using the code snippet 11685 for ac_prog in touch 11686 do 11687 # Extract the first word of "$ac_prog", so it can be a program name with args. 11688 set dummy $ac_prog; ac_word=$2 11689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11690 $as_echo_n "checking for $ac_word... " >&6; } 11691 if ${ac_cv_path_TOUCH+:} false; then : 11692 $as_echo_n "(cached) " >&6 11693 else 11694 case $TOUCH in 11695 [\\/]* | ?:[\\/]*) 11696 ac_cv_path_TOUCH="$TOUCH" # Let the user override the test with a path. 11697 ;; 11698 *) 11699 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11700 for as_dir in $PATH 11701 do 11702 IFS=$as_save_IFS 11703 test -z "$as_dir" && as_dir=. 11704 for ac_exec_ext in '' $ac_executable_extensions; do 11705 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11706 ac_cv_path_TOUCH="$as_dir/$ac_word$ac_exec_ext" 11707 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11708 break 2 11709 fi 11710 done 11711 done 11712 IFS=$as_save_IFS 11713 11714 ;; 11715 esac 11716 fi 11717 TOUCH=$ac_cv_path_TOUCH 11718 if test -n "$TOUCH"; then 11719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOUCH" >&5 11720 $as_echo "$TOUCH" >&6; } 11721 else 11722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11723 $as_echo "no" >&6; } 11724 fi 11725 11726 11727 test -n "$TOUCH" && break 11728 done 11729 11730 else 11731 # The variable is set, but is it from the command line or the environment? 11732 11733 # Try to remove the string !TOUCH! from our list. 11734 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!TOUCH!/} 11735 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 11736 # If it failed, the variable was not from the command line. Ignore it, 11737 # but warn the user (except for BASH, which is always set by the calling BASH). 11738 if test "xTOUCH" != xBASH; then 11739 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of TOUCH from the environment. Use command line variables instead." >&5 11740 $as_echo "$as_me: WARNING: Ignoring value of TOUCH from the environment. Use command line variables instead." >&2;} 11741 fi 11742 # Try to locate tool using the code snippet 11743 for ac_prog in touch 11744 do 11745 # Extract the first word of "$ac_prog", so it can be a program name with args. 11746 set dummy $ac_prog; ac_word=$2 11747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11748 $as_echo_n "checking for $ac_word... " >&6; } 11749 if ${ac_cv_path_TOUCH+:} false; then : 11750 $as_echo_n "(cached) " >&6 11751 else 11752 case $TOUCH in 11753 [\\/]* | ?:[\\/]*) 11754 ac_cv_path_TOUCH="$TOUCH" # Let the user override the test with a path. 11755 ;; 11756 *) 11757 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11758 for as_dir in $PATH 11759 do 11760 IFS=$as_save_IFS 11761 test -z "$as_dir" && as_dir=. 11762 for ac_exec_ext in '' $ac_executable_extensions; do 11763 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11764 ac_cv_path_TOUCH="$as_dir/$ac_word$ac_exec_ext" 11765 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11766 break 2 11767 fi 11768 done 11769 done 11770 IFS=$as_save_IFS 11771 11772 ;; 11773 esac 11774 fi 11775 TOUCH=$ac_cv_path_TOUCH 11776 if test -n "$TOUCH"; then 11777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOUCH" >&5 11778 $as_echo "$TOUCH" >&6; } 11779 else 11780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11781 $as_echo "no" >&6; } 11782 fi 11783 11784 11785 test -n "$TOUCH" && break 11786 done 11787 11788 else 11789 # If it succeeded, then it was overridden by the user. We will use it 11790 # for the tool. 11791 11792 # First remove it from the list of overridden variables, so we can test 11793 # for unknown variables in the end. 11794 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 11795 11796 # Check if we try to supply an empty value 11797 if test "x$TOUCH" = x; then 11798 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool TOUCH= (no value)" >&5 11799 $as_echo "$as_me: Setting user supplied tool TOUCH= (no value)" >&6;} 11800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TOUCH" >&5 11801 $as_echo_n "checking for TOUCH... " >&6; } 11802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 11803 $as_echo "disabled" >&6; } 11804 else 11805 # Check if the provided tool contains a complete path. 11806 tool_specified="$TOUCH" 11807 tool_basename="${tool_specified##*/}" 11808 if test "x$tool_basename" = "x$tool_specified"; then 11809 # A command without a complete path is provided, search $PATH. 11810 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool TOUCH=$tool_basename" >&5 11811 $as_echo "$as_me: Will search for user supplied tool TOUCH=$tool_basename" >&6;} 11812 # Extract the first word of "$tool_basename", so it can be a program name with args. 11813 set dummy $tool_basename; ac_word=$2 11814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11815 $as_echo_n "checking for $ac_word... " >&6; } 11816 if ${ac_cv_path_TOUCH+:} false; then : 11817 $as_echo_n "(cached) " >&6 11818 else 11819 case $TOUCH in 11820 [\\/]* | ?:[\\/]*) 11821 ac_cv_path_TOUCH="$TOUCH" # Let the user override the test with a path. 11822 ;; 11823 *) 11824 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11825 for as_dir in $PATH 11826 do 11827 IFS=$as_save_IFS 11828 test -z "$as_dir" && as_dir=. 11829 for ac_exec_ext in '' $ac_executable_extensions; do 11830 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11831 ac_cv_path_TOUCH="$as_dir/$ac_word$ac_exec_ext" 11832 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11833 break 2 11834 fi 11835 done 11836 done 11837 IFS=$as_save_IFS 11838 11839 ;; 11840 esac 11841 fi 11842 TOUCH=$ac_cv_path_TOUCH 11843 if test -n "$TOUCH"; then 11844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOUCH" >&5 11845 $as_echo "$TOUCH" >&6; } 11846 else 11847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11848 $as_echo "no" >&6; } 11849 fi 11850 11851 11852 if test "x$TOUCH" = x; then 11853 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 11854 fi 11855 else 11856 # Otherwise we believe it is a complete path. Use it as it is. 11857 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool TOUCH=$tool_specified" >&5 11858 $as_echo "$as_me: Will use user supplied tool TOUCH=$tool_specified" >&6;} 11859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TOUCH" >&5 11860 $as_echo_n "checking for TOUCH... " >&6; } 11861 if test ! -x "$tool_specified"; then 11862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 11863 $as_echo "not found" >&6; } 11864 as_fn_error $? "User supplied tool TOUCH=$tool_specified does not exist or is not executable" "$LINENO" 5 11865 fi 11866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 11867 $as_echo "$tool_specified" >&6; } 11868 fi 11869 fi 11870 fi 11871 11872 fi 11873 11874 11875 11876 if test "x$TOUCH" = x; then 11877 as_fn_error $? "Could not find required tool for TOUCH" "$LINENO" 5 11878 fi 11879 11880 11881 11882 11883 11884 # Publish this variable in the help. 11885 11886 11887 if [ -z "${TR+x}" ]; then 11888 # The variable is not set by user, try to locate tool using the code snippet 11889 for ac_prog in tr 11890 do 11891 # Extract the first word of "$ac_prog", so it can be a program name with args. 11892 set dummy $ac_prog; ac_word=$2 11893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11894 $as_echo_n "checking for $ac_word... " >&6; } 11895 if ${ac_cv_path_TR+:} false; then : 11896 $as_echo_n "(cached) " >&6 11897 else 11898 case $TR in 11899 [\\/]* | ?:[\\/]*) 11900 ac_cv_path_TR="$TR" # Let the user override the test with a path. 11901 ;; 11902 *) 11903 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11904 for as_dir in $PATH 11905 do 11906 IFS=$as_save_IFS 11907 test -z "$as_dir" && as_dir=. 11908 for ac_exec_ext in '' $ac_executable_extensions; do 11909 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11910 ac_cv_path_TR="$as_dir/$ac_word$ac_exec_ext" 11911 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11912 break 2 11913 fi 11914 done 11915 done 11916 IFS=$as_save_IFS 11917 11918 ;; 11919 esac 11920 fi 11921 TR=$ac_cv_path_TR 11922 if test -n "$TR"; then 11923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TR" >&5 11924 $as_echo "$TR" >&6; } 11925 else 11926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11927 $as_echo "no" >&6; } 11928 fi 11929 11930 11931 test -n "$TR" && break 11932 done 11933 11934 else 11935 # The variable is set, but is it from the command line or the environment? 11936 11937 # Try to remove the string !TR! from our list. 11938 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!TR!/} 11939 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 11940 # If it failed, the variable was not from the command line. Ignore it, 11941 # but warn the user (except for BASH, which is always set by the calling BASH). 11942 if test "xTR" != xBASH; then 11943 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of TR from the environment. Use command line variables instead." >&5 11944 $as_echo "$as_me: WARNING: Ignoring value of TR from the environment. Use command line variables instead." >&2;} 11945 fi 11946 # Try to locate tool using the code snippet 11947 for ac_prog in tr 11948 do 11949 # Extract the first word of "$ac_prog", so it can be a program name with args. 11950 set dummy $ac_prog; ac_word=$2 11951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11952 $as_echo_n "checking for $ac_word... " >&6; } 11953 if ${ac_cv_path_TR+:} false; then : 11954 $as_echo_n "(cached) " >&6 11955 else 11956 case $TR in 11957 [\\/]* | ?:[\\/]*) 11958 ac_cv_path_TR="$TR" # Let the user override the test with a path. 11959 ;; 11960 *) 11961 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11962 for as_dir in $PATH 11963 do 11964 IFS=$as_save_IFS 11965 test -z "$as_dir" && as_dir=. 11966 for ac_exec_ext in '' $ac_executable_extensions; do 11967 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11968 ac_cv_path_TR="$as_dir/$ac_word$ac_exec_ext" 11969 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11970 break 2 11971 fi 11972 done 11973 done 11974 IFS=$as_save_IFS 11975 11976 ;; 11977 esac 11978 fi 11979 TR=$ac_cv_path_TR 11980 if test -n "$TR"; then 11981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TR" >&5 11982 $as_echo "$TR" >&6; } 11983 else 11984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11985 $as_echo "no" >&6; } 11986 fi 11987 11988 11989 test -n "$TR" && break 11990 done 11991 11992 else 11993 # If it succeeded, then it was overridden by the user. We will use it 11994 # for the tool. 11995 11996 # First remove it from the list of overridden variables, so we can test 11997 # for unknown variables in the end. 11998 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 11999 12000 # Check if we try to supply an empty value 12001 if test "x$TR" = x; then 12002 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool TR= (no value)" >&5 12003 $as_echo "$as_me: Setting user supplied tool TR= (no value)" >&6;} 12004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TR" >&5 12005 $as_echo_n "checking for TR... " >&6; } 12006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 12007 $as_echo "disabled" >&6; } 12008 else 12009 # Check if the provided tool contains a complete path. 12010 tool_specified="$TR" 12011 tool_basename="${tool_specified##*/}" 12012 if test "x$tool_basename" = "x$tool_specified"; then 12013 # A command without a complete path is provided, search $PATH. 12014 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool TR=$tool_basename" >&5 12015 $as_echo "$as_me: Will search for user supplied tool TR=$tool_basename" >&6;} 12016 # Extract the first word of "$tool_basename", so it can be a program name with args. 12017 set dummy $tool_basename; ac_word=$2 12018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12019 $as_echo_n "checking for $ac_word... " >&6; } 12020 if ${ac_cv_path_TR+:} false; then : 12021 $as_echo_n "(cached) " >&6 12022 else 12023 case $TR in 12024 [\\/]* | ?:[\\/]*) 12025 ac_cv_path_TR="$TR" # Let the user override the test with a path. 12026 ;; 12027 *) 12028 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12029 for as_dir in $PATH 12030 do 12031 IFS=$as_save_IFS 12032 test -z "$as_dir" && as_dir=. 12033 for ac_exec_ext in '' $ac_executable_extensions; do 12034 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12035 ac_cv_path_TR="$as_dir/$ac_word$ac_exec_ext" 12036 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12037 break 2 12038 fi 12039 done 12040 done 12041 IFS=$as_save_IFS 12042 12043 ;; 12044 esac 12045 fi 12046 TR=$ac_cv_path_TR 12047 if test -n "$TR"; then 12048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TR" >&5 12049 $as_echo "$TR" >&6; } 12050 else 12051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12052 $as_echo "no" >&6; } 12053 fi 12054 12055 12056 if test "x$TR" = x; then 12057 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 12058 fi 12059 else 12060 # Otherwise we believe it is a complete path. Use it as it is. 12061 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool TR=$tool_specified" >&5 12062 $as_echo "$as_me: Will use user supplied tool TR=$tool_specified" >&6;} 12063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TR" >&5 12064 $as_echo_n "checking for TR... " >&6; } 12065 if test ! -x "$tool_specified"; then 12066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 12067 $as_echo "not found" >&6; } 12068 as_fn_error $? "User supplied tool TR=$tool_specified does not exist or is not executable" "$LINENO" 5 12069 fi 12070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 12071 $as_echo "$tool_specified" >&6; } 12072 fi 12073 fi 12074 fi 12075 12076 fi 12077 12078 12079 12080 if test "x$TR" = x; then 12081 as_fn_error $? "Could not find required tool for TR" "$LINENO" 5 12082 fi 12083 12084 12085 12086 12087 12088 # Publish this variable in the help. 12089 12090 12091 if [ -z "${UNAME+x}" ]; then 12092 # The variable is not set by user, try to locate tool using the code snippet 12093 for ac_prog in uname 12094 do 12095 # Extract the first word of "$ac_prog", so it can be a program name with args. 12096 set dummy $ac_prog; ac_word=$2 12097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12098 $as_echo_n "checking for $ac_word... " >&6; } 12099 if ${ac_cv_path_UNAME+:} false; then : 12100 $as_echo_n "(cached) " >&6 12101 else 12102 case $UNAME in 12103 [\\/]* | ?:[\\/]*) 12104 ac_cv_path_UNAME="$UNAME" # Let the user override the test with a path. 12105 ;; 12106 *) 12107 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12108 for as_dir in $PATH 12109 do 12110 IFS=$as_save_IFS 12111 test -z "$as_dir" && as_dir=. 12112 for ac_exec_ext in '' $ac_executable_extensions; do 12113 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12114 ac_cv_path_UNAME="$as_dir/$ac_word$ac_exec_ext" 12115 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12116 break 2 12117 fi 12118 done 12119 done 12120 IFS=$as_save_IFS 12121 12122 ;; 12123 esac 12124 fi 12125 UNAME=$ac_cv_path_UNAME 12126 if test -n "$UNAME"; then 12127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNAME" >&5 12128 $as_echo "$UNAME" >&6; } 12129 else 12130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12131 $as_echo "no" >&6; } 12132 fi 12133 12134 12135 test -n "$UNAME" && break 12136 done 12137 12138 else 12139 # The variable is set, but is it from the command line or the environment? 12140 12141 # Try to remove the string !UNAME! from our list. 12142 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!UNAME!/} 12143 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 12144 # If it failed, the variable was not from the command line. Ignore it, 12145 # but warn the user (except for BASH, which is always set by the calling BASH). 12146 if test "xUNAME" != xBASH; then 12147 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of UNAME from the environment. Use command line variables instead." >&5 12148 $as_echo "$as_me: WARNING: Ignoring value of UNAME from the environment. Use command line variables instead." >&2;} 12149 fi 12150 # Try to locate tool using the code snippet 12151 for ac_prog in uname 12152 do 12153 # Extract the first word of "$ac_prog", so it can be a program name with args. 12154 set dummy $ac_prog; ac_word=$2 12155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12156 $as_echo_n "checking for $ac_word... " >&6; } 12157 if ${ac_cv_path_UNAME+:} false; then : 12158 $as_echo_n "(cached) " >&6 12159 else 12160 case $UNAME in 12161 [\\/]* | ?:[\\/]*) 12162 ac_cv_path_UNAME="$UNAME" # Let the user override the test with a path. 12163 ;; 12164 *) 12165 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12166 for as_dir in $PATH 12167 do 12168 IFS=$as_save_IFS 12169 test -z "$as_dir" && as_dir=. 12170 for ac_exec_ext in '' $ac_executable_extensions; do 12171 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12172 ac_cv_path_UNAME="$as_dir/$ac_word$ac_exec_ext" 12173 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12174 break 2 12175 fi 12176 done 12177 done 12178 IFS=$as_save_IFS 12179 12180 ;; 12181 esac 12182 fi 12183 UNAME=$ac_cv_path_UNAME 12184 if test -n "$UNAME"; then 12185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNAME" >&5 12186 $as_echo "$UNAME" >&6; } 12187 else 12188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12189 $as_echo "no" >&6; } 12190 fi 12191 12192 12193 test -n "$UNAME" && break 12194 done 12195 12196 else 12197 # If it succeeded, then it was overridden by the user. We will use it 12198 # for the tool. 12199 12200 # First remove it from the list of overridden variables, so we can test 12201 # for unknown variables in the end. 12202 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 12203 12204 # Check if we try to supply an empty value 12205 if test "x$UNAME" = x; then 12206 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool UNAME= (no value)" >&5 12207 $as_echo "$as_me: Setting user supplied tool UNAME= (no value)" >&6;} 12208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UNAME" >&5 12209 $as_echo_n "checking for UNAME... " >&6; } 12210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 12211 $as_echo "disabled" >&6; } 12212 else 12213 # Check if the provided tool contains a complete path. 12214 tool_specified="$UNAME" 12215 tool_basename="${tool_specified##*/}" 12216 if test "x$tool_basename" = "x$tool_specified"; then 12217 # A command without a complete path is provided, search $PATH. 12218 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool UNAME=$tool_basename" >&5 12219 $as_echo "$as_me: Will search for user supplied tool UNAME=$tool_basename" >&6;} 12220 # Extract the first word of "$tool_basename", so it can be a program name with args. 12221 set dummy $tool_basename; ac_word=$2 12222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12223 $as_echo_n "checking for $ac_word... " >&6; } 12224 if ${ac_cv_path_UNAME+:} false; then : 12225 $as_echo_n "(cached) " >&6 12226 else 12227 case $UNAME in 12228 [\\/]* | ?:[\\/]*) 12229 ac_cv_path_UNAME="$UNAME" # Let the user override the test with a path. 12230 ;; 12231 *) 12232 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12233 for as_dir in $PATH 12234 do 12235 IFS=$as_save_IFS 12236 test -z "$as_dir" && as_dir=. 12237 for ac_exec_ext in '' $ac_executable_extensions; do 12238 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12239 ac_cv_path_UNAME="$as_dir/$ac_word$ac_exec_ext" 12240 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12241 break 2 12242 fi 12243 done 12244 done 12245 IFS=$as_save_IFS 12246 12247 ;; 12248 esac 12249 fi 12250 UNAME=$ac_cv_path_UNAME 12251 if test -n "$UNAME"; then 12252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNAME" >&5 12253 $as_echo "$UNAME" >&6; } 12254 else 12255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12256 $as_echo "no" >&6; } 12257 fi 12258 12259 12260 if test "x$UNAME" = x; then 12261 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 12262 fi 12263 else 12264 # Otherwise we believe it is a complete path. Use it as it is. 12265 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool UNAME=$tool_specified" >&5 12266 $as_echo "$as_me: Will use user supplied tool UNAME=$tool_specified" >&6;} 12267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UNAME" >&5 12268 $as_echo_n "checking for UNAME... " >&6; } 12269 if test ! -x "$tool_specified"; then 12270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 12271 $as_echo "not found" >&6; } 12272 as_fn_error $? "User supplied tool UNAME=$tool_specified does not exist or is not executable" "$LINENO" 5 12273 fi 12274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 12275 $as_echo "$tool_specified" >&6; } 12276 fi 12277 fi 12278 fi 12279 12280 fi 12281 12282 12283 12284 if test "x$UNAME" = x; then 12285 as_fn_error $? "Could not find required tool for UNAME" "$LINENO" 5 12286 fi 12287 12288 12289 12290 12291 12292 # Publish this variable in the help. 12293 12294 12295 if [ -z "${UNIQ+x}" ]; then 12296 # The variable is not set by user, try to locate tool using the code snippet 12297 for ac_prog in uniq 12298 do 12299 # Extract the first word of "$ac_prog", so it can be a program name with args. 12300 set dummy $ac_prog; ac_word=$2 12301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12302 $as_echo_n "checking for $ac_word... " >&6; } 12303 if ${ac_cv_path_UNIQ+:} false; then : 12304 $as_echo_n "(cached) " >&6 12305 else 12306 case $UNIQ in 12307 [\\/]* | ?:[\\/]*) 12308 ac_cv_path_UNIQ="$UNIQ" # Let the user override the test with a path. 12309 ;; 12310 *) 12311 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12312 for as_dir in $PATH 12313 do 12314 IFS=$as_save_IFS 12315 test -z "$as_dir" && as_dir=. 12316 for ac_exec_ext in '' $ac_executable_extensions; do 12317 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12318 ac_cv_path_UNIQ="$as_dir/$ac_word$ac_exec_ext" 12319 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12320 break 2 12321 fi 12322 done 12323 done 12324 IFS=$as_save_IFS 12325 12326 ;; 12327 esac 12328 fi 12329 UNIQ=$ac_cv_path_UNIQ 12330 if test -n "$UNIQ"; then 12331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNIQ" >&5 12332 $as_echo "$UNIQ" >&6; } 12333 else 12334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12335 $as_echo "no" >&6; } 12336 fi 12337 12338 12339 test -n "$UNIQ" && break 12340 done 12341 12342 else 12343 # The variable is set, but is it from the command line or the environment? 12344 12345 # Try to remove the string !UNIQ! from our list. 12346 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!UNIQ!/} 12347 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 12348 # If it failed, the variable was not from the command line. Ignore it, 12349 # but warn the user (except for BASH, which is always set by the calling BASH). 12350 if test "xUNIQ" != xBASH; then 12351 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of UNIQ from the environment. Use command line variables instead." >&5 12352 $as_echo "$as_me: WARNING: Ignoring value of UNIQ from the environment. Use command line variables instead." >&2;} 12353 fi 12354 # Try to locate tool using the code snippet 12355 for ac_prog in uniq 12356 do 12357 # Extract the first word of "$ac_prog", so it can be a program name with args. 12358 set dummy $ac_prog; ac_word=$2 12359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12360 $as_echo_n "checking for $ac_word... " >&6; } 12361 if ${ac_cv_path_UNIQ+:} false; then : 12362 $as_echo_n "(cached) " >&6 12363 else 12364 case $UNIQ in 12365 [\\/]* | ?:[\\/]*) 12366 ac_cv_path_UNIQ="$UNIQ" # Let the user override the test with a path. 12367 ;; 12368 *) 12369 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12370 for as_dir in $PATH 12371 do 12372 IFS=$as_save_IFS 12373 test -z "$as_dir" && as_dir=. 12374 for ac_exec_ext in '' $ac_executable_extensions; do 12375 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12376 ac_cv_path_UNIQ="$as_dir/$ac_word$ac_exec_ext" 12377 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12378 break 2 12379 fi 12380 done 12381 done 12382 IFS=$as_save_IFS 12383 12384 ;; 12385 esac 12386 fi 12387 UNIQ=$ac_cv_path_UNIQ 12388 if test -n "$UNIQ"; then 12389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNIQ" >&5 12390 $as_echo "$UNIQ" >&6; } 12391 else 12392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12393 $as_echo "no" >&6; } 12394 fi 12395 12396 12397 test -n "$UNIQ" && break 12398 done 12399 12400 else 12401 # If it succeeded, then it was overridden by the user. We will use it 12402 # for the tool. 12403 12404 # First remove it from the list of overridden variables, so we can test 12405 # for unknown variables in the end. 12406 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 12407 12408 # Check if we try to supply an empty value 12409 if test "x$UNIQ" = x; then 12410 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool UNIQ= (no value)" >&5 12411 $as_echo "$as_me: Setting user supplied tool UNIQ= (no value)" >&6;} 12412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UNIQ" >&5 12413 $as_echo_n "checking for UNIQ... " >&6; } 12414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 12415 $as_echo "disabled" >&6; } 12416 else 12417 # Check if the provided tool contains a complete path. 12418 tool_specified="$UNIQ" 12419 tool_basename="${tool_specified##*/}" 12420 if test "x$tool_basename" = "x$tool_specified"; then 12421 # A command without a complete path is provided, search $PATH. 12422 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool UNIQ=$tool_basename" >&5 12423 $as_echo "$as_me: Will search for user supplied tool UNIQ=$tool_basename" >&6;} 12424 # Extract the first word of "$tool_basename", so it can be a program name with args. 12425 set dummy $tool_basename; ac_word=$2 12426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12427 $as_echo_n "checking for $ac_word... " >&6; } 12428 if ${ac_cv_path_UNIQ+:} false; then : 12429 $as_echo_n "(cached) " >&6 12430 else 12431 case $UNIQ in 12432 [\\/]* | ?:[\\/]*) 12433 ac_cv_path_UNIQ="$UNIQ" # Let the user override the test with a path. 12434 ;; 12435 *) 12436 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12437 for as_dir in $PATH 12438 do 12439 IFS=$as_save_IFS 12440 test -z "$as_dir" && as_dir=. 12441 for ac_exec_ext in '' $ac_executable_extensions; do 12442 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12443 ac_cv_path_UNIQ="$as_dir/$ac_word$ac_exec_ext" 12444 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12445 break 2 12446 fi 12447 done 12448 done 12449 IFS=$as_save_IFS 12450 12451 ;; 12452 esac 12453 fi 12454 UNIQ=$ac_cv_path_UNIQ 12455 if test -n "$UNIQ"; then 12456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNIQ" >&5 12457 $as_echo "$UNIQ" >&6; } 12458 else 12459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12460 $as_echo "no" >&6; } 12461 fi 12462 12463 12464 if test "x$UNIQ" = x; then 12465 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 12466 fi 12467 else 12468 # Otherwise we believe it is a complete path. Use it as it is. 12469 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool UNIQ=$tool_specified" >&5 12470 $as_echo "$as_me: Will use user supplied tool UNIQ=$tool_specified" >&6;} 12471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UNIQ" >&5 12472 $as_echo_n "checking for UNIQ... " >&6; } 12473 if test ! -x "$tool_specified"; then 12474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 12475 $as_echo "not found" >&6; } 12476 as_fn_error $? "User supplied tool UNIQ=$tool_specified does not exist or is not executable" "$LINENO" 5 12477 fi 12478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 12479 $as_echo "$tool_specified" >&6; } 12480 fi 12481 fi 12482 fi 12483 12484 fi 12485 12486 12487 12488 if test "x$UNIQ" = x; then 12489 as_fn_error $? "Could not find required tool for UNIQ" "$LINENO" 5 12490 fi 12491 12492 12493 12494 12495 12496 # Publish this variable in the help. 12497 12498 12499 if [ -z "${WC+x}" ]; then 12500 # The variable is not set by user, try to locate tool using the code snippet 12501 for ac_prog in wc 12502 do 12503 # Extract the first word of "$ac_prog", so it can be a program name with args. 12504 set dummy $ac_prog; ac_word=$2 12505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12506 $as_echo_n "checking for $ac_word... " >&6; } 12507 if ${ac_cv_path_WC+:} false; then : 12508 $as_echo_n "(cached) " >&6 12509 else 12510 case $WC in 12511 [\\/]* | ?:[\\/]*) 12512 ac_cv_path_WC="$WC" # Let the user override the test with a path. 12513 ;; 12514 *) 12515 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12516 for as_dir in $PATH 12517 do 12518 IFS=$as_save_IFS 12519 test -z "$as_dir" && as_dir=. 12520 for ac_exec_ext in '' $ac_executable_extensions; do 12521 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12522 ac_cv_path_WC="$as_dir/$ac_word$ac_exec_ext" 12523 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12524 break 2 12525 fi 12526 done 12527 done 12528 IFS=$as_save_IFS 12529 12530 ;; 12531 esac 12532 fi 12533 WC=$ac_cv_path_WC 12534 if test -n "$WC"; then 12535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WC" >&5 12536 $as_echo "$WC" >&6; } 12537 else 12538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12539 $as_echo "no" >&6; } 12540 fi 12541 12542 12543 test -n "$WC" && break 12544 done 12545 12546 else 12547 # The variable is set, but is it from the command line or the environment? 12548 12549 # Try to remove the string !WC! from our list. 12550 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!WC!/} 12551 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 12552 # If it failed, the variable was not from the command line. Ignore it, 12553 # but warn the user (except for BASH, which is always set by the calling BASH). 12554 if test "xWC" != xBASH; then 12555 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of WC from the environment. Use command line variables instead." >&5 12556 $as_echo "$as_me: WARNING: Ignoring value of WC from the environment. Use command line variables instead." >&2;} 12557 fi 12558 # Try to locate tool using the code snippet 12559 for ac_prog in wc 12560 do 12561 # Extract the first word of "$ac_prog", so it can be a program name with args. 12562 set dummy $ac_prog; ac_word=$2 12563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12564 $as_echo_n "checking for $ac_word... " >&6; } 12565 if ${ac_cv_path_WC+:} false; then : 12566 $as_echo_n "(cached) " >&6 12567 else 12568 case $WC in 12569 [\\/]* | ?:[\\/]*) 12570 ac_cv_path_WC="$WC" # Let the user override the test with a path. 12571 ;; 12572 *) 12573 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12574 for as_dir in $PATH 12575 do 12576 IFS=$as_save_IFS 12577 test -z "$as_dir" && as_dir=. 12578 for ac_exec_ext in '' $ac_executable_extensions; do 12579 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12580 ac_cv_path_WC="$as_dir/$ac_word$ac_exec_ext" 12581 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12582 break 2 12583 fi 12584 done 12585 done 12586 IFS=$as_save_IFS 12587 12588 ;; 12589 esac 12590 fi 12591 WC=$ac_cv_path_WC 12592 if test -n "$WC"; then 12593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WC" >&5 12594 $as_echo "$WC" >&6; } 12595 else 12596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12597 $as_echo "no" >&6; } 12598 fi 12599 12600 12601 test -n "$WC" && break 12602 done 12603 12604 else 12605 # If it succeeded, then it was overridden by the user. We will use it 12606 # for the tool. 12607 12608 # First remove it from the list of overridden variables, so we can test 12609 # for unknown variables in the end. 12610 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 12611 12612 # Check if we try to supply an empty value 12613 if test "x$WC" = x; then 12614 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool WC= (no value)" >&5 12615 $as_echo "$as_me: Setting user supplied tool WC= (no value)" >&6;} 12616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WC" >&5 12617 $as_echo_n "checking for WC... " >&6; } 12618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 12619 $as_echo "disabled" >&6; } 12620 else 12621 # Check if the provided tool contains a complete path. 12622 tool_specified="$WC" 12623 tool_basename="${tool_specified##*/}" 12624 if test "x$tool_basename" = "x$tool_specified"; then 12625 # A command without a complete path is provided, search $PATH. 12626 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool WC=$tool_basename" >&5 12627 $as_echo "$as_me: Will search for user supplied tool WC=$tool_basename" >&6;} 12628 # Extract the first word of "$tool_basename", so it can be a program name with args. 12629 set dummy $tool_basename; ac_word=$2 12630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12631 $as_echo_n "checking for $ac_word... " >&6; } 12632 if ${ac_cv_path_WC+:} false; then : 12633 $as_echo_n "(cached) " >&6 12634 else 12635 case $WC in 12636 [\\/]* | ?:[\\/]*) 12637 ac_cv_path_WC="$WC" # Let the user override the test with a path. 12638 ;; 12639 *) 12640 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12641 for as_dir in $PATH 12642 do 12643 IFS=$as_save_IFS 12644 test -z "$as_dir" && as_dir=. 12645 for ac_exec_ext in '' $ac_executable_extensions; do 12646 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12647 ac_cv_path_WC="$as_dir/$ac_word$ac_exec_ext" 12648 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12649 break 2 12650 fi 12651 done 12652 done 12653 IFS=$as_save_IFS 12654 12655 ;; 12656 esac 12657 fi 12658 WC=$ac_cv_path_WC 12659 if test -n "$WC"; then 12660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WC" >&5 12661 $as_echo "$WC" >&6; } 12662 else 12663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12664 $as_echo "no" >&6; } 12665 fi 12666 12667 12668 if test "x$WC" = x; then 12669 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 12670 fi 12671 else 12672 # Otherwise we believe it is a complete path. Use it as it is. 12673 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool WC=$tool_specified" >&5 12674 $as_echo "$as_me: Will use user supplied tool WC=$tool_specified" >&6;} 12675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WC" >&5 12676 $as_echo_n "checking for WC... " >&6; } 12677 if test ! -x "$tool_specified"; then 12678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 12679 $as_echo "not found" >&6; } 12680 as_fn_error $? "User supplied tool WC=$tool_specified does not exist or is not executable" "$LINENO" 5 12681 fi 12682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 12683 $as_echo "$tool_specified" >&6; } 12684 fi 12685 fi 12686 fi 12687 12688 fi 12689 12690 12691 12692 if test "x$WC" = x; then 12693 as_fn_error $? "Could not find required tool for WC" "$LINENO" 5 12694 fi 12695 12696 12697 12698 12699 12700 # Publish this variable in the help. 12701 12702 12703 if [ -z "${WHICH+x}" ]; then 12704 # The variable is not set by user, try to locate tool using the code snippet 12705 for ac_prog in which 12706 do 12707 # Extract the first word of "$ac_prog", so it can be a program name with args. 12708 set dummy $ac_prog; ac_word=$2 12709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12710 $as_echo_n "checking for $ac_word... " >&6; } 12711 if ${ac_cv_path_WHICH+:} false; then : 12712 $as_echo_n "(cached) " >&6 12713 else 12714 case $WHICH in 12715 [\\/]* | ?:[\\/]*) 12716 ac_cv_path_WHICH="$WHICH" # Let the user override the test with a path. 12717 ;; 12718 *) 12719 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12720 for as_dir in $PATH 12721 do 12722 IFS=$as_save_IFS 12723 test -z "$as_dir" && as_dir=. 12724 for ac_exec_ext in '' $ac_executable_extensions; do 12725 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12726 ac_cv_path_WHICH="$as_dir/$ac_word$ac_exec_ext" 12727 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12728 break 2 12729 fi 12730 done 12731 done 12732 IFS=$as_save_IFS 12733 12734 ;; 12735 esac 12736 fi 12737 WHICH=$ac_cv_path_WHICH 12738 if test -n "$WHICH"; then 12739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WHICH" >&5 12740 $as_echo "$WHICH" >&6; } 12741 else 12742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12743 $as_echo "no" >&6; } 12744 fi 12745 12746 12747 test -n "$WHICH" && break 12748 done 12749 12750 else 12751 # The variable is set, but is it from the command line or the environment? 12752 12753 # Try to remove the string !WHICH! from our list. 12754 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!WHICH!/} 12755 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 12756 # If it failed, the variable was not from the command line. Ignore it, 12757 # but warn the user (except for BASH, which is always set by the calling BASH). 12758 if test "xWHICH" != xBASH; then 12759 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of WHICH from the environment. Use command line variables instead." >&5 12760 $as_echo "$as_me: WARNING: Ignoring value of WHICH from the environment. Use command line variables instead." >&2;} 12761 fi 12762 # Try to locate tool using the code snippet 12763 for ac_prog in which 12764 do 12765 # Extract the first word of "$ac_prog", so it can be a program name with args. 12766 set dummy $ac_prog; ac_word=$2 12767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12768 $as_echo_n "checking for $ac_word... " >&6; } 12769 if ${ac_cv_path_WHICH+:} false; then : 12770 $as_echo_n "(cached) " >&6 12771 else 12772 case $WHICH in 12773 [\\/]* | ?:[\\/]*) 12774 ac_cv_path_WHICH="$WHICH" # Let the user override the test with a path. 12775 ;; 12776 *) 12777 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12778 for as_dir in $PATH 12779 do 12780 IFS=$as_save_IFS 12781 test -z "$as_dir" && as_dir=. 12782 for ac_exec_ext in '' $ac_executable_extensions; do 12783 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12784 ac_cv_path_WHICH="$as_dir/$ac_word$ac_exec_ext" 12785 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12786 break 2 12787 fi 12788 done 12789 done 12790 IFS=$as_save_IFS 12791 12792 ;; 12793 esac 12794 fi 12795 WHICH=$ac_cv_path_WHICH 12796 if test -n "$WHICH"; then 12797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WHICH" >&5 12798 $as_echo "$WHICH" >&6; } 12799 else 12800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12801 $as_echo "no" >&6; } 12802 fi 12803 12804 12805 test -n "$WHICH" && break 12806 done 12807 12808 else 12809 # If it succeeded, then it was overridden by the user. We will use it 12810 # for the tool. 12811 12812 # First remove it from the list of overridden variables, so we can test 12813 # for unknown variables in the end. 12814 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 12815 12816 # Check if we try to supply an empty value 12817 if test "x$WHICH" = x; then 12818 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool WHICH= (no value)" >&5 12819 $as_echo "$as_me: Setting user supplied tool WHICH= (no value)" >&6;} 12820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WHICH" >&5 12821 $as_echo_n "checking for WHICH... " >&6; } 12822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 12823 $as_echo "disabled" >&6; } 12824 else 12825 # Check if the provided tool contains a complete path. 12826 tool_specified="$WHICH" 12827 tool_basename="${tool_specified##*/}" 12828 if test "x$tool_basename" = "x$tool_specified"; then 12829 # A command without a complete path is provided, search $PATH. 12830 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool WHICH=$tool_basename" >&5 12831 $as_echo "$as_me: Will search for user supplied tool WHICH=$tool_basename" >&6;} 12832 # Extract the first word of "$tool_basename", so it can be a program name with args. 12833 set dummy $tool_basename; ac_word=$2 12834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12835 $as_echo_n "checking for $ac_word... " >&6; } 12836 if ${ac_cv_path_WHICH+:} false; then : 12837 $as_echo_n "(cached) " >&6 12838 else 12839 case $WHICH in 12840 [\\/]* | ?:[\\/]*) 12841 ac_cv_path_WHICH="$WHICH" # Let the user override the test with a path. 12842 ;; 12843 *) 12844 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12845 for as_dir in $PATH 12846 do 12847 IFS=$as_save_IFS 12848 test -z "$as_dir" && as_dir=. 12849 for ac_exec_ext in '' $ac_executable_extensions; do 12850 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12851 ac_cv_path_WHICH="$as_dir/$ac_word$ac_exec_ext" 12852 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12853 break 2 12854 fi 12855 done 12856 done 12857 IFS=$as_save_IFS 12858 12859 ;; 12860 esac 12861 fi 12862 WHICH=$ac_cv_path_WHICH 12863 if test -n "$WHICH"; then 12864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WHICH" >&5 12865 $as_echo "$WHICH" >&6; } 12866 else 12867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12868 $as_echo "no" >&6; } 12869 fi 12870 12871 12872 if test "x$WHICH" = x; then 12873 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 12874 fi 12875 else 12876 # Otherwise we believe it is a complete path. Use it as it is. 12877 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool WHICH=$tool_specified" >&5 12878 $as_echo "$as_me: Will use user supplied tool WHICH=$tool_specified" >&6;} 12879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WHICH" >&5 12880 $as_echo_n "checking for WHICH... " >&6; } 12881 if test ! -x "$tool_specified"; then 12882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 12883 $as_echo "not found" >&6; } 12884 as_fn_error $? "User supplied tool WHICH=$tool_specified does not exist or is not executable" "$LINENO" 5 12885 fi 12886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 12887 $as_echo "$tool_specified" >&6; } 12888 fi 12889 fi 12890 fi 12891 12892 fi 12893 12894 12895 12896 if test "x$WHICH" = x; then 12897 as_fn_error $? "Could not find required tool for WHICH" "$LINENO" 5 12898 fi 12899 12900 12901 12902 12903 12904 # Publish this variable in the help. 12905 12906 12907 if [ -z "${XARGS+x}" ]; then 12908 # The variable is not set by user, try to locate tool using the code snippet 12909 for ac_prog in xargs 12910 do 12911 # Extract the first word of "$ac_prog", so it can be a program name with args. 12912 set dummy $ac_prog; ac_word=$2 12913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12914 $as_echo_n "checking for $ac_word... " >&6; } 12915 if ${ac_cv_path_XARGS+:} false; then : 12916 $as_echo_n "(cached) " >&6 12917 else 12918 case $XARGS in 12919 [\\/]* | ?:[\\/]*) 12920 ac_cv_path_XARGS="$XARGS" # Let the user override the test with a path. 12921 ;; 12922 *) 12923 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12924 for as_dir in $PATH 12925 do 12926 IFS=$as_save_IFS 12927 test -z "$as_dir" && as_dir=. 12928 for ac_exec_ext in '' $ac_executable_extensions; do 12929 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12930 ac_cv_path_XARGS="$as_dir/$ac_word$ac_exec_ext" 12931 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12932 break 2 12933 fi 12934 done 12935 done 12936 IFS=$as_save_IFS 12937 12938 ;; 12939 esac 12940 fi 12941 XARGS=$ac_cv_path_XARGS 12942 if test -n "$XARGS"; then 12943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XARGS" >&5 12944 $as_echo "$XARGS" >&6; } 12945 else 12946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12947 $as_echo "no" >&6; } 12948 fi 12949 12950 12951 test -n "$XARGS" && break 12952 done 12953 12954 else 12955 # The variable is set, but is it from the command line or the environment? 12956 12957 # Try to remove the string !XARGS! from our list. 12958 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!XARGS!/} 12959 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 12960 # If it failed, the variable was not from the command line. Ignore it, 12961 # but warn the user (except for BASH, which is always set by the calling BASH). 12962 if test "xXARGS" != xBASH; then 12963 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of XARGS from the environment. Use command line variables instead." >&5 12964 $as_echo "$as_me: WARNING: Ignoring value of XARGS from the environment. Use command line variables instead." >&2;} 12965 fi 12966 # Try to locate tool using the code snippet 12967 for ac_prog in xargs 12968 do 12969 # Extract the first word of "$ac_prog", so it can be a program name with args. 12970 set dummy $ac_prog; ac_word=$2 12971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12972 $as_echo_n "checking for $ac_word... " >&6; } 12973 if ${ac_cv_path_XARGS+:} false; then : 12974 $as_echo_n "(cached) " >&6 12975 else 12976 case $XARGS in 12977 [\\/]* | ?:[\\/]*) 12978 ac_cv_path_XARGS="$XARGS" # Let the user override the test with a path. 12979 ;; 12980 *) 12981 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12982 for as_dir in $PATH 12983 do 12984 IFS=$as_save_IFS 12985 test -z "$as_dir" && as_dir=. 12986 for ac_exec_ext in '' $ac_executable_extensions; do 12987 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12988 ac_cv_path_XARGS="$as_dir/$ac_word$ac_exec_ext" 12989 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12990 break 2 12991 fi 12992 done 12993 done 12994 IFS=$as_save_IFS 12995 12996 ;; 12997 esac 12998 fi 12999 XARGS=$ac_cv_path_XARGS 13000 if test -n "$XARGS"; then 13001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XARGS" >&5 13002 $as_echo "$XARGS" >&6; } 13003 else 13004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13005 $as_echo "no" >&6; } 13006 fi 13007 13008 13009 test -n "$XARGS" && break 13010 done 13011 13012 else 13013 # If it succeeded, then it was overridden by the user. We will use it 13014 # for the tool. 13015 13016 # First remove it from the list of overridden variables, so we can test 13017 # for unknown variables in the end. 13018 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 13019 13020 # Check if we try to supply an empty value 13021 if test "x$XARGS" = x; then 13022 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool XARGS= (no value)" >&5 13023 $as_echo "$as_me: Setting user supplied tool XARGS= (no value)" >&6;} 13024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XARGS" >&5 13025 $as_echo_n "checking for XARGS... " >&6; } 13026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 13027 $as_echo "disabled" >&6; } 13028 else 13029 # Check if the provided tool contains a complete path. 13030 tool_specified="$XARGS" 13031 tool_basename="${tool_specified##*/}" 13032 if test "x$tool_basename" = "x$tool_specified"; then 13033 # A command without a complete path is provided, search $PATH. 13034 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool XARGS=$tool_basename" >&5 13035 $as_echo "$as_me: Will search for user supplied tool XARGS=$tool_basename" >&6;} 13036 # Extract the first word of "$tool_basename", so it can be a program name with args. 13037 set dummy $tool_basename; ac_word=$2 13038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13039 $as_echo_n "checking for $ac_word... " >&6; } 13040 if ${ac_cv_path_XARGS+:} false; then : 13041 $as_echo_n "(cached) " >&6 13042 else 13043 case $XARGS in 13044 [\\/]* | ?:[\\/]*) 13045 ac_cv_path_XARGS="$XARGS" # Let the user override the test with a path. 13046 ;; 13047 *) 13048 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13049 for as_dir in $PATH 13050 do 13051 IFS=$as_save_IFS 13052 test -z "$as_dir" && as_dir=. 13053 for ac_exec_ext in '' $ac_executable_extensions; do 13054 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13055 ac_cv_path_XARGS="$as_dir/$ac_word$ac_exec_ext" 13056 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13057 break 2 13058 fi 13059 done 13060 done 13061 IFS=$as_save_IFS 13062 13063 ;; 13064 esac 13065 fi 13066 XARGS=$ac_cv_path_XARGS 13067 if test -n "$XARGS"; then 13068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XARGS" >&5 13069 $as_echo "$XARGS" >&6; } 13070 else 13071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13072 $as_echo "no" >&6; } 13073 fi 13074 13075 13076 if test "x$XARGS" = x; then 13077 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 13078 fi 13079 else 13080 # Otherwise we believe it is a complete path. Use it as it is. 13081 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool XARGS=$tool_specified" >&5 13082 $as_echo "$as_me: Will use user supplied tool XARGS=$tool_specified" >&6;} 13083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XARGS" >&5 13084 $as_echo_n "checking for XARGS... " >&6; } 13085 if test ! -x "$tool_specified"; then 13086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 13087 $as_echo "not found" >&6; } 13088 as_fn_error $? "User supplied tool XARGS=$tool_specified does not exist or is not executable" "$LINENO" 5 13089 fi 13090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 13091 $as_echo "$tool_specified" >&6; } 13092 fi 13093 fi 13094 fi 13095 13096 fi 13097 13098 13099 13100 if test "x$XARGS" = x; then 13101 as_fn_error $? "Could not find required tool for XARGS" "$LINENO" 5 13102 fi 13103 13104 13105 13106 # Then required tools that require some special treatment. 13107 13108 13109 # Publish this variable in the help. 13110 13111 13112 if [ -z "${AWK+x}" ]; then 13113 # The variable is not set by user, try to locate tool using the code snippet 13114 for ac_prog in gawk mawk nawk awk 13115 do 13116 # Extract the first word of "$ac_prog", so it can be a program name with args. 13117 set dummy $ac_prog; ac_word=$2 13118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13119 $as_echo_n "checking for $ac_word... " >&6; } 13120 if ${ac_cv_prog_AWK+:} false; then : 13121 $as_echo_n "(cached) " >&6 13122 else 13123 if test -n "$AWK"; then 13124 ac_cv_prog_AWK="$AWK" # Let the user override the test. 13125 else 13126 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13127 for as_dir in $PATH 13128 do 13129 IFS=$as_save_IFS 13130 test -z "$as_dir" && as_dir=. 13131 for ac_exec_ext in '' $ac_executable_extensions; do 13132 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13133 ac_cv_prog_AWK="$ac_prog" 13134 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13135 break 2 13136 fi 13137 done 13138 done 13139 IFS=$as_save_IFS 13140 13141 fi 13142 fi 13143 AWK=$ac_cv_prog_AWK 13144 if test -n "$AWK"; then 13145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 13146 $as_echo "$AWK" >&6; } 13147 else 13148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13149 $as_echo "no" >&6; } 13150 fi 13151 13152 13153 test -n "$AWK" && break 13154 done 13155 13156 else 13157 # The variable is set, but is it from the command line or the environment? 13158 13159 # Try to remove the string !AWK! from our list. 13160 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!AWK!/} 13161 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 13162 # If it failed, the variable was not from the command line. Ignore it, 13163 # but warn the user (except for BASH, which is always set by the calling BASH). 13164 if test "xAWK" != xBASH; then 13165 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of AWK from the environment. Use command line variables instead." >&5 13166 $as_echo "$as_me: WARNING: Ignoring value of AWK from the environment. Use command line variables instead." >&2;} 13167 fi 13168 # Try to locate tool using the code snippet 13169 for ac_prog in gawk mawk nawk awk 13170 do 13171 # Extract the first word of "$ac_prog", so it can be a program name with args. 13172 set dummy $ac_prog; ac_word=$2 13173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13174 $as_echo_n "checking for $ac_word... " >&6; } 13175 if ${ac_cv_prog_AWK+:} false; then : 13176 $as_echo_n "(cached) " >&6 13177 else 13178 if test -n "$AWK"; then 13179 ac_cv_prog_AWK="$AWK" # Let the user override the test. 13180 else 13181 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13182 for as_dir in $PATH 13183 do 13184 IFS=$as_save_IFS 13185 test -z "$as_dir" && as_dir=. 13186 for ac_exec_ext in '' $ac_executable_extensions; do 13187 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13188 ac_cv_prog_AWK="$ac_prog" 13189 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13190 break 2 13191 fi 13192 done 13193 done 13194 IFS=$as_save_IFS 13195 13196 fi 13197 fi 13198 AWK=$ac_cv_prog_AWK 13199 if test -n "$AWK"; then 13200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 13201 $as_echo "$AWK" >&6; } 13202 else 13203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13204 $as_echo "no" >&6; } 13205 fi 13206 13207 13208 test -n "$AWK" && break 13209 done 13210 13211 else 13212 # If it succeeded, then it was overridden by the user. We will use it 13213 # for the tool. 13214 13215 # First remove it from the list of overridden variables, so we can test 13216 # for unknown variables in the end. 13217 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 13218 13219 # Check if we try to supply an empty value 13220 if test "x$AWK" = x; then 13221 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool AWK= (no value)" >&5 13222 $as_echo "$as_me: Setting user supplied tool AWK= (no value)" >&6;} 13223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AWK" >&5 13224 $as_echo_n "checking for AWK... " >&6; } 13225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 13226 $as_echo "disabled" >&6; } 13227 else 13228 # Check if the provided tool contains a complete path. 13229 tool_specified="$AWK" 13230 tool_basename="${tool_specified##*/}" 13231 if test "x$tool_basename" = "x$tool_specified"; then 13232 # A command without a complete path is provided, search $PATH. 13233 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool AWK=$tool_basename" >&5 13234 $as_echo "$as_me: Will search for user supplied tool AWK=$tool_basename" >&6;} 13235 # Extract the first word of "$tool_basename", so it can be a program name with args. 13236 set dummy $tool_basename; ac_word=$2 13237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13238 $as_echo_n "checking for $ac_word... " >&6; } 13239 if ${ac_cv_path_AWK+:} false; then : 13240 $as_echo_n "(cached) " >&6 13241 else 13242 case $AWK in 13243 [\\/]* | ?:[\\/]*) 13244 ac_cv_path_AWK="$AWK" # Let the user override the test with a path. 13245 ;; 13246 *) 13247 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13248 for as_dir in $PATH 13249 do 13250 IFS=$as_save_IFS 13251 test -z "$as_dir" && as_dir=. 13252 for ac_exec_ext in '' $ac_executable_extensions; do 13253 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13254 ac_cv_path_AWK="$as_dir/$ac_word$ac_exec_ext" 13255 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13256 break 2 13257 fi 13258 done 13259 done 13260 IFS=$as_save_IFS 13261 13262 ;; 13263 esac 13264 fi 13265 AWK=$ac_cv_path_AWK 13266 if test -n "$AWK"; then 13267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 13268 $as_echo "$AWK" >&6; } 13269 else 13270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13271 $as_echo "no" >&6; } 13272 fi 13273 13274 13275 if test "x$AWK" = x; then 13276 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 13277 fi 13278 else 13279 # Otherwise we believe it is a complete path. Use it as it is. 13280 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool AWK=$tool_specified" >&5 13281 $as_echo "$as_me: Will use user supplied tool AWK=$tool_specified" >&6;} 13282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AWK" >&5 13283 $as_echo_n "checking for AWK... " >&6; } 13284 if test ! -x "$tool_specified"; then 13285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 13286 $as_echo "not found" >&6; } 13287 as_fn_error $? "User supplied tool AWK=$tool_specified does not exist or is not executable" "$LINENO" 5 13288 fi 13289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 13290 $as_echo "$tool_specified" >&6; } 13291 fi 13292 fi 13293 fi 13294 13295 fi 13296 13297 13298 if test "x$AWK" = x; then 13299 as_fn_error $? "Could not find required tool for AWK" "$LINENO" 5 13300 fi 13301 13302 13303 13304 13305 # Publish this variable in the help. 13306 13307 13308 if [ -z "${GREP+x}" ]; then 13309 # The variable is not set by user, try to locate tool using the code snippet 13310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 13311 $as_echo_n "checking for grep that handles long lines and -e... " >&6; } 13312 if ${ac_cv_path_GREP+:} false; then : 13313 $as_echo_n "(cached) " >&6 13314 else 13315 if test -z "$GREP"; then 13316 ac_path_GREP_found=false 13317 # Loop through the user's path and test for each of PROGNAME-LIST 13318 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13319 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 13320 do 13321 IFS=$as_save_IFS 13322 test -z "$as_dir" && as_dir=. 13323 for ac_prog in grep ggrep; do 13324 for ac_exec_ext in '' $ac_executable_extensions; do 13325 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 13326 as_fn_executable_p "$ac_path_GREP" || continue 13327 # Check for GNU ac_path_GREP and select it if it is found. 13328 # Check for GNU $ac_path_GREP 13329 case `"$ac_path_GREP" --version 2>&1` in 13330 *GNU*) 13331 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 13332 *) 13333 ac_count=0 13334 $as_echo_n 0123456789 >"conftest.in" 13335 while : 13336 do 13337 cat "conftest.in" "conftest.in" >"conftest.tmp" 13338 mv "conftest.tmp" "conftest.in" 13339 cp "conftest.in" "conftest.nl" 13340 $as_echo 'GREP' >> "conftest.nl" 13341 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 13342 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 13343 as_fn_arith $ac_count + 1 && ac_count=$as_val 13344 if test $ac_count -gt ${ac_path_GREP_max-0}; then 13345 # Best one so far, save it but keep looking for a better one 13346 ac_cv_path_GREP="$ac_path_GREP" 13347 ac_path_GREP_max=$ac_count 13348 fi 13349 # 10*(2^10) chars as input seems more than enough 13350 test $ac_count -gt 10 && break 13351 done 13352 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 13353 esac 13354 13355 $ac_path_GREP_found && break 3 13356 done 13357 done 13358 done 13359 IFS=$as_save_IFS 13360 if test -z "$ac_cv_path_GREP"; then 13361 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 13362 fi 13363 else 13364 ac_cv_path_GREP=$GREP 13365 fi 13366 13367 fi 13368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 13369 $as_echo "$ac_cv_path_GREP" >&6; } 13370 GREP="$ac_cv_path_GREP" 13371 13372 13373 else 13374 # The variable is set, but is it from the command line or the environment? 13375 13376 # Try to remove the string !GREP! from our list. 13377 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!GREP!/} 13378 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 13379 # If it failed, the variable was not from the command line. Ignore it, 13380 # but warn the user (except for BASH, which is always set by the calling BASH). 13381 if test "xGREP" != xBASH; then 13382 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of GREP from the environment. Use command line variables instead." >&5 13383 $as_echo "$as_me: WARNING: Ignoring value of GREP from the environment. Use command line variables instead." >&2;} 13384 fi 13385 # Try to locate tool using the code snippet 13386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 13387 $as_echo_n "checking for grep that handles long lines and -e... " >&6; } 13388 if ${ac_cv_path_GREP+:} false; then : 13389 $as_echo_n "(cached) " >&6 13390 else 13391 if test -z "$GREP"; then 13392 ac_path_GREP_found=false 13393 # Loop through the user's path and test for each of PROGNAME-LIST 13394 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13395 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 13396 do 13397 IFS=$as_save_IFS 13398 test -z "$as_dir" && as_dir=. 13399 for ac_prog in grep ggrep; do 13400 for ac_exec_ext in '' $ac_executable_extensions; do 13401 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 13402 as_fn_executable_p "$ac_path_GREP" || continue 13403 # Check for GNU ac_path_GREP and select it if it is found. 13404 # Check for GNU $ac_path_GREP 13405 case `"$ac_path_GREP" --version 2>&1` in 13406 *GNU*) 13407 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 13408 *) 13409 ac_count=0 13410 $as_echo_n 0123456789 >"conftest.in" 13411 while : 13412 do 13413 cat "conftest.in" "conftest.in" >"conftest.tmp" 13414 mv "conftest.tmp" "conftest.in" 13415 cp "conftest.in" "conftest.nl" 13416 $as_echo 'GREP' >> "conftest.nl" 13417 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 13418 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 13419 as_fn_arith $ac_count + 1 && ac_count=$as_val 13420 if test $ac_count -gt ${ac_path_GREP_max-0}; then 13421 # Best one so far, save it but keep looking for a better one 13422 ac_cv_path_GREP="$ac_path_GREP" 13423 ac_path_GREP_max=$ac_count 13424 fi 13425 # 10*(2^10) chars as input seems more than enough 13426 test $ac_count -gt 10 && break 13427 done 13428 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 13429 esac 13430 13431 $ac_path_GREP_found && break 3 13432 done 13433 done 13434 done 13435 IFS=$as_save_IFS 13436 if test -z "$ac_cv_path_GREP"; then 13437 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 13438 fi 13439 else 13440 ac_cv_path_GREP=$GREP 13441 fi 13442 13443 fi 13444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 13445 $as_echo "$ac_cv_path_GREP" >&6; } 13446 GREP="$ac_cv_path_GREP" 13447 13448 13449 else 13450 # If it succeeded, then it was overridden by the user. We will use it 13451 # for the tool. 13452 13453 # First remove it from the list of overridden variables, so we can test 13454 # for unknown variables in the end. 13455 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 13456 13457 # Check if we try to supply an empty value 13458 if test "x$GREP" = x; then 13459 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool GREP= (no value)" >&5 13460 $as_echo "$as_me: Setting user supplied tool GREP= (no value)" >&6;} 13461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GREP" >&5 13462 $as_echo_n "checking for GREP... " >&6; } 13463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 13464 $as_echo "disabled" >&6; } 13465 else 13466 # Check if the provided tool contains a complete path. 13467 tool_specified="$GREP" 13468 tool_basename="${tool_specified##*/}" 13469 if test "x$tool_basename" = "x$tool_specified"; then 13470 # A command without a complete path is provided, search $PATH. 13471 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool GREP=$tool_basename" >&5 13472 $as_echo "$as_me: Will search for user supplied tool GREP=$tool_basename" >&6;} 13473 # Extract the first word of "$tool_basename", so it can be a program name with args. 13474 set dummy $tool_basename; ac_word=$2 13475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13476 $as_echo_n "checking for $ac_word... " >&6; } 13477 if ${ac_cv_path_GREP+:} false; then : 13478 $as_echo_n "(cached) " >&6 13479 else 13480 case $GREP in 13481 [\\/]* | ?:[\\/]*) 13482 ac_cv_path_GREP="$GREP" # Let the user override the test with a path. 13483 ;; 13484 *) 13485 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13486 for as_dir in $PATH 13487 do 13488 IFS=$as_save_IFS 13489 test -z "$as_dir" && as_dir=. 13490 for ac_exec_ext in '' $ac_executable_extensions; do 13491 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13492 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext" 13493 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13494 break 2 13495 fi 13496 done 13497 done 13498 IFS=$as_save_IFS 13499 13500 ;; 13501 esac 13502 fi 13503 GREP=$ac_cv_path_GREP 13504 if test -n "$GREP"; then 13505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GREP" >&5 13506 $as_echo "$GREP" >&6; } 13507 else 13508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13509 $as_echo "no" >&6; } 13510 fi 13511 13512 13513 if test "x$GREP" = x; then 13514 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 13515 fi 13516 else 13517 # Otherwise we believe it is a complete path. Use it as it is. 13518 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool GREP=$tool_specified" >&5 13519 $as_echo "$as_me: Will use user supplied tool GREP=$tool_specified" >&6;} 13520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GREP" >&5 13521 $as_echo_n "checking for GREP... " >&6; } 13522 if test ! -x "$tool_specified"; then 13523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 13524 $as_echo "not found" >&6; } 13525 as_fn_error $? "User supplied tool GREP=$tool_specified does not exist or is not executable" "$LINENO" 5 13526 fi 13527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 13528 $as_echo "$tool_specified" >&6; } 13529 fi 13530 fi 13531 fi 13532 13533 fi 13534 13535 13536 if test "x$GREP" = x; then 13537 as_fn_error $? "Could not find required tool for GREP" "$LINENO" 5 13538 fi 13539 13540 13541 13542 13543 # Publish this variable in the help. 13544 13545 13546 if [ -z "${EGREP+x}" ]; then 13547 # The variable is not set by user, try to locate tool using the code snippet 13548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 13549 $as_echo_n "checking for egrep... " >&6; } 13550 if ${ac_cv_path_EGREP+:} false; then : 13551 $as_echo_n "(cached) " >&6 13552 else 13553 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 13554 then ac_cv_path_EGREP="$GREP -E" 13555 else 13556 if test -z "$EGREP"; then 13557 ac_path_EGREP_found=false 13558 # Loop through the user's path and test for each of PROGNAME-LIST 13559 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13560 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 13561 do 13562 IFS=$as_save_IFS 13563 test -z "$as_dir" && as_dir=. 13564 for ac_prog in egrep; do 13565 for ac_exec_ext in '' $ac_executable_extensions; do 13566 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 13567 as_fn_executable_p "$ac_path_EGREP" || continue 13568 # Check for GNU ac_path_EGREP and select it if it is found. 13569 # Check for GNU $ac_path_EGREP 13570 case `"$ac_path_EGREP" --version 2>&1` in 13571 *GNU*) 13572 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 13573 *) 13574 ac_count=0 13575 $as_echo_n 0123456789 >"conftest.in" 13576 while : 13577 do 13578 cat "conftest.in" "conftest.in" >"conftest.tmp" 13579 mv "conftest.tmp" "conftest.in" 13580 cp "conftest.in" "conftest.nl" 13581 $as_echo 'EGREP' >> "conftest.nl" 13582 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 13583 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 13584 as_fn_arith $ac_count + 1 && ac_count=$as_val 13585 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 13586 # Best one so far, save it but keep looking for a better one 13587 ac_cv_path_EGREP="$ac_path_EGREP" 13588 ac_path_EGREP_max=$ac_count 13589 fi 13590 # 10*(2^10) chars as input seems more than enough 13591 test $ac_count -gt 10 && break 13592 done 13593 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 13594 esac 13595 13596 $ac_path_EGREP_found && break 3 13597 done 13598 done 13599 done 13600 IFS=$as_save_IFS 13601 if test -z "$ac_cv_path_EGREP"; then 13602 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 13603 fi 13604 else 13605 ac_cv_path_EGREP=$EGREP 13606 fi 13607 13608 fi 13609 fi 13610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 13611 $as_echo "$ac_cv_path_EGREP" >&6; } 13612 EGREP="$ac_cv_path_EGREP" 13613 13614 13615 else 13616 # The variable is set, but is it from the command line or the environment? 13617 13618 # Try to remove the string !EGREP! from our list. 13619 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!EGREP!/} 13620 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 13621 # If it failed, the variable was not from the command line. Ignore it, 13622 # but warn the user (except for BASH, which is always set by the calling BASH). 13623 if test "xEGREP" != xBASH; then 13624 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of EGREP from the environment. Use command line variables instead." >&5 13625 $as_echo "$as_me: WARNING: Ignoring value of EGREP from the environment. Use command line variables instead." >&2;} 13626 fi 13627 # Try to locate tool using the code snippet 13628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 13629 $as_echo_n "checking for egrep... " >&6; } 13630 if ${ac_cv_path_EGREP+:} false; then : 13631 $as_echo_n "(cached) " >&6 13632 else 13633 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 13634 then ac_cv_path_EGREP="$GREP -E" 13635 else 13636 if test -z "$EGREP"; then 13637 ac_path_EGREP_found=false 13638 # Loop through the user's path and test for each of PROGNAME-LIST 13639 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13640 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 13641 do 13642 IFS=$as_save_IFS 13643 test -z "$as_dir" && as_dir=. 13644 for ac_prog in egrep; do 13645 for ac_exec_ext in '' $ac_executable_extensions; do 13646 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 13647 as_fn_executable_p "$ac_path_EGREP" || continue 13648 # Check for GNU ac_path_EGREP and select it if it is found. 13649 # Check for GNU $ac_path_EGREP 13650 case `"$ac_path_EGREP" --version 2>&1` in 13651 *GNU*) 13652 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 13653 *) 13654 ac_count=0 13655 $as_echo_n 0123456789 >"conftest.in" 13656 while : 13657 do 13658 cat "conftest.in" "conftest.in" >"conftest.tmp" 13659 mv "conftest.tmp" "conftest.in" 13660 cp "conftest.in" "conftest.nl" 13661 $as_echo 'EGREP' >> "conftest.nl" 13662 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 13663 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 13664 as_fn_arith $ac_count + 1 && ac_count=$as_val 13665 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 13666 # Best one so far, save it but keep looking for a better one 13667 ac_cv_path_EGREP="$ac_path_EGREP" 13668 ac_path_EGREP_max=$ac_count 13669 fi 13670 # 10*(2^10) chars as input seems more than enough 13671 test $ac_count -gt 10 && break 13672 done 13673 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 13674 esac 13675 13676 $ac_path_EGREP_found && break 3 13677 done 13678 done 13679 done 13680 IFS=$as_save_IFS 13681 if test -z "$ac_cv_path_EGREP"; then 13682 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 13683 fi 13684 else 13685 ac_cv_path_EGREP=$EGREP 13686 fi 13687 13688 fi 13689 fi 13690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 13691 $as_echo "$ac_cv_path_EGREP" >&6; } 13692 EGREP="$ac_cv_path_EGREP" 13693 13694 13695 else 13696 # If it succeeded, then it was overridden by the user. We will use it 13697 # for the tool. 13698 13699 # First remove it from the list of overridden variables, so we can test 13700 # for unknown variables in the end. 13701 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 13702 13703 # Check if we try to supply an empty value 13704 if test "x$EGREP" = x; then 13705 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool EGREP= (no value)" >&5 13706 $as_echo "$as_me: Setting user supplied tool EGREP= (no value)" >&6;} 13707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGREP" >&5 13708 $as_echo_n "checking for EGREP... " >&6; } 13709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 13710 $as_echo "disabled" >&6; } 13711 else 13712 # Check if the provided tool contains a complete path. 13713 tool_specified="$EGREP" 13714 tool_basename="${tool_specified##*/}" 13715 if test "x$tool_basename" = "x$tool_specified"; then 13716 # A command without a complete path is provided, search $PATH. 13717 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool EGREP=$tool_basename" >&5 13718 $as_echo "$as_me: Will search for user supplied tool EGREP=$tool_basename" >&6;} 13719 # Extract the first word of "$tool_basename", so it can be a program name with args. 13720 set dummy $tool_basename; ac_word=$2 13721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13722 $as_echo_n "checking for $ac_word... " >&6; } 13723 if ${ac_cv_path_EGREP+:} false; then : 13724 $as_echo_n "(cached) " >&6 13725 else 13726 case $EGREP in 13727 [\\/]* | ?:[\\/]*) 13728 ac_cv_path_EGREP="$EGREP" # Let the user override the test with a path. 13729 ;; 13730 *) 13731 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13732 for as_dir in $PATH 13733 do 13734 IFS=$as_save_IFS 13735 test -z "$as_dir" && as_dir=. 13736 for ac_exec_ext in '' $ac_executable_extensions; do 13737 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13738 ac_cv_path_EGREP="$as_dir/$ac_word$ac_exec_ext" 13739 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13740 break 2 13741 fi 13742 done 13743 done 13744 IFS=$as_save_IFS 13745 13746 ;; 13747 esac 13748 fi 13749 EGREP=$ac_cv_path_EGREP 13750 if test -n "$EGREP"; then 13751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EGREP" >&5 13752 $as_echo "$EGREP" >&6; } 13753 else 13754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13755 $as_echo "no" >&6; } 13756 fi 13757 13758 13759 if test "x$EGREP" = x; then 13760 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 13761 fi 13762 else 13763 # Otherwise we believe it is a complete path. Use it as it is. 13764 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool EGREP=$tool_specified" >&5 13765 $as_echo "$as_me: Will use user supplied tool EGREP=$tool_specified" >&6;} 13766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGREP" >&5 13767 $as_echo_n "checking for EGREP... " >&6; } 13768 if test ! -x "$tool_specified"; then 13769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 13770 $as_echo "not found" >&6; } 13771 as_fn_error $? "User supplied tool EGREP=$tool_specified does not exist or is not executable" "$LINENO" 5 13772 fi 13773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 13774 $as_echo "$tool_specified" >&6; } 13775 fi 13776 fi 13777 fi 13778 13779 fi 13780 13781 13782 if test "x$EGREP" = x; then 13783 as_fn_error $? "Could not find required tool for EGREP" "$LINENO" 5 13784 fi 13785 13786 13787 13788 13789 # Publish this variable in the help. 13790 13791 13792 if [ -z "${FGREP+x}" ]; then 13793 # The variable is not set by user, try to locate tool using the code snippet 13794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 13795 $as_echo_n "checking for fgrep... " >&6; } 13796 if ${ac_cv_path_FGREP+:} false; then : 13797 $as_echo_n "(cached) " >&6 13798 else 13799 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 13800 then ac_cv_path_FGREP="$GREP -F" 13801 else 13802 if test -z "$FGREP"; then 13803 ac_path_FGREP_found=false 13804 # Loop through the user's path and test for each of PROGNAME-LIST 13805 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13806 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 13807 do 13808 IFS=$as_save_IFS 13809 test -z "$as_dir" && as_dir=. 13810 for ac_prog in fgrep; do 13811 for ac_exec_ext in '' $ac_executable_extensions; do 13812 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" 13813 as_fn_executable_p "$ac_path_FGREP" || continue 13814 # Check for GNU ac_path_FGREP and select it if it is found. 13815 # Check for GNU $ac_path_FGREP 13816 case `"$ac_path_FGREP" --version 2>&1` in 13817 *GNU*) 13818 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 13819 *) 13820 ac_count=0 13821 $as_echo_n 0123456789 >"conftest.in" 13822 while : 13823 do 13824 cat "conftest.in" "conftest.in" >"conftest.tmp" 13825 mv "conftest.tmp" "conftest.in" 13826 cp "conftest.in" "conftest.nl" 13827 $as_echo 'FGREP' >> "conftest.nl" 13828 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 13829 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 13830 as_fn_arith $ac_count + 1 && ac_count=$as_val 13831 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 13832 # Best one so far, save it but keep looking for a better one 13833 ac_cv_path_FGREP="$ac_path_FGREP" 13834 ac_path_FGREP_max=$ac_count 13835 fi 13836 # 10*(2^10) chars as input seems more than enough 13837 test $ac_count -gt 10 && break 13838 done 13839 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 13840 esac 13841 13842 $ac_path_FGREP_found && break 3 13843 done 13844 done 13845 done 13846 IFS=$as_save_IFS 13847 if test -z "$ac_cv_path_FGREP"; then 13848 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 13849 fi 13850 else 13851 ac_cv_path_FGREP=$FGREP 13852 fi 13853 13854 fi 13855 fi 13856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 13857 $as_echo "$ac_cv_path_FGREP" >&6; } 13858 FGREP="$ac_cv_path_FGREP" 13859 13860 13861 else 13862 # The variable is set, but is it from the command line or the environment? 13863 13864 # Try to remove the string !FGREP! from our list. 13865 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!FGREP!/} 13866 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 13867 # If it failed, the variable was not from the command line. Ignore it, 13868 # but warn the user (except for BASH, which is always set by the calling BASH). 13869 if test "xFGREP" != xBASH; then 13870 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of FGREP from the environment. Use command line variables instead." >&5 13871 $as_echo "$as_me: WARNING: Ignoring value of FGREP from the environment. Use command line variables instead." >&2;} 13872 fi 13873 # Try to locate tool using the code snippet 13874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 13875 $as_echo_n "checking for fgrep... " >&6; } 13876 if ${ac_cv_path_FGREP+:} false; then : 13877 $as_echo_n "(cached) " >&6 13878 else 13879 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 13880 then ac_cv_path_FGREP="$GREP -F" 13881 else 13882 if test -z "$FGREP"; then 13883 ac_path_FGREP_found=false 13884 # Loop through the user's path and test for each of PROGNAME-LIST 13885 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13886 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 13887 do 13888 IFS=$as_save_IFS 13889 test -z "$as_dir" && as_dir=. 13890 for ac_prog in fgrep; do 13891 for ac_exec_ext in '' $ac_executable_extensions; do 13892 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" 13893 as_fn_executable_p "$ac_path_FGREP" || continue 13894 # Check for GNU ac_path_FGREP and select it if it is found. 13895 # Check for GNU $ac_path_FGREP 13896 case `"$ac_path_FGREP" --version 2>&1` in 13897 *GNU*) 13898 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 13899 *) 13900 ac_count=0 13901 $as_echo_n 0123456789 >"conftest.in" 13902 while : 13903 do 13904 cat "conftest.in" "conftest.in" >"conftest.tmp" 13905 mv "conftest.tmp" "conftest.in" 13906 cp "conftest.in" "conftest.nl" 13907 $as_echo 'FGREP' >> "conftest.nl" 13908 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 13909 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 13910 as_fn_arith $ac_count + 1 && ac_count=$as_val 13911 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 13912 # Best one so far, save it but keep looking for a better one 13913 ac_cv_path_FGREP="$ac_path_FGREP" 13914 ac_path_FGREP_max=$ac_count 13915 fi 13916 # 10*(2^10) chars as input seems more than enough 13917 test $ac_count -gt 10 && break 13918 done 13919 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 13920 esac 13921 13922 $ac_path_FGREP_found && break 3 13923 done 13924 done 13925 done 13926 IFS=$as_save_IFS 13927 if test -z "$ac_cv_path_FGREP"; then 13928 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 13929 fi 13930 else 13931 ac_cv_path_FGREP=$FGREP 13932 fi 13933 13934 fi 13935 fi 13936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 13937 $as_echo "$ac_cv_path_FGREP" >&6; } 13938 FGREP="$ac_cv_path_FGREP" 13939 13940 13941 else 13942 # If it succeeded, then it was overridden by the user. We will use it 13943 # for the tool. 13944 13945 # First remove it from the list of overridden variables, so we can test 13946 # for unknown variables in the end. 13947 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 13948 13949 # Check if we try to supply an empty value 13950 if test "x$FGREP" = x; then 13951 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool FGREP= (no value)" >&5 13952 $as_echo "$as_me: Setting user supplied tool FGREP= (no value)" >&6;} 13953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FGREP" >&5 13954 $as_echo_n "checking for FGREP... " >&6; } 13955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 13956 $as_echo "disabled" >&6; } 13957 else 13958 # Check if the provided tool contains a complete path. 13959 tool_specified="$FGREP" 13960 tool_basename="${tool_specified##*/}" 13961 if test "x$tool_basename" = "x$tool_specified"; then 13962 # A command without a complete path is provided, search $PATH. 13963 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool FGREP=$tool_basename" >&5 13964 $as_echo "$as_me: Will search for user supplied tool FGREP=$tool_basename" >&6;} 13965 # Extract the first word of "$tool_basename", so it can be a program name with args. 13966 set dummy $tool_basename; ac_word=$2 13967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13968 $as_echo_n "checking for $ac_word... " >&6; } 13969 if ${ac_cv_path_FGREP+:} false; then : 13970 $as_echo_n "(cached) " >&6 13971 else 13972 case $FGREP in 13973 [\\/]* | ?:[\\/]*) 13974 ac_cv_path_FGREP="$FGREP" # Let the user override the test with a path. 13975 ;; 13976 *) 13977 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13978 for as_dir in $PATH 13979 do 13980 IFS=$as_save_IFS 13981 test -z "$as_dir" && as_dir=. 13982 for ac_exec_ext in '' $ac_executable_extensions; do 13983 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13984 ac_cv_path_FGREP="$as_dir/$ac_word$ac_exec_ext" 13985 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13986 break 2 13987 fi 13988 done 13989 done 13990 IFS=$as_save_IFS 13991 13992 ;; 13993 esac 13994 fi 13995 FGREP=$ac_cv_path_FGREP 13996 if test -n "$FGREP"; then 13997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FGREP" >&5 13998 $as_echo "$FGREP" >&6; } 13999 else 14000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14001 $as_echo "no" >&6; } 14002 fi 14003 14004 14005 if test "x$FGREP" = x; then 14006 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 14007 fi 14008 else 14009 # Otherwise we believe it is a complete path. Use it as it is. 14010 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool FGREP=$tool_specified" >&5 14011 $as_echo "$as_me: Will use user supplied tool FGREP=$tool_specified" >&6;} 14012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FGREP" >&5 14013 $as_echo_n "checking for FGREP... " >&6; } 14014 if test ! -x "$tool_specified"; then 14015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 14016 $as_echo "not found" >&6; } 14017 as_fn_error $? "User supplied tool FGREP=$tool_specified does not exist or is not executable" "$LINENO" 5 14018 fi 14019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 14020 $as_echo "$tool_specified" >&6; } 14021 fi 14022 fi 14023 fi 14024 14025 fi 14026 14027 14028 if test "x$FGREP" = x; then 14029 as_fn_error $? "Could not find required tool for FGREP" "$LINENO" 5 14030 fi 14031 14032 14033 14034 14035 # Publish this variable in the help. 14036 14037 14038 if [ -z "${SED+x}" ]; then 14039 # The variable is not set by user, try to locate tool using the code snippet 14040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 14041 $as_echo_n "checking for a sed that does not truncate output... " >&6; } 14042 if ${ac_cv_path_SED+:} false; then : 14043 $as_echo_n "(cached) " >&6 14044 else 14045 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 14046 for ac_i in 1 2 3 4 5 6 7; do 14047 ac_script="$ac_script$as_nl$ac_script" 14048 done 14049 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 14050 { ac_script=; unset ac_script;} 14051 if test -z "$SED"; then 14052 ac_path_SED_found=false 14053 # Loop through the user's path and test for each of PROGNAME-LIST 14054 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14055 for as_dir in $PATH 14056 do 14057 IFS=$as_save_IFS 14058 test -z "$as_dir" && as_dir=. 14059 for ac_prog in sed gsed; do 14060 for ac_exec_ext in '' $ac_executable_extensions; do 14061 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 14062 as_fn_executable_p "$ac_path_SED" || continue 14063 # Check for GNU ac_path_SED and select it if it is found. 14064 # Check for GNU $ac_path_SED 14065 case `"$ac_path_SED" --version 2>&1` in 14066 *GNU*) 14067 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 14068 *) 14069 ac_count=0 14070 $as_echo_n 0123456789 >"conftest.in" 14071 while : 14072 do 14073 cat "conftest.in" "conftest.in" >"conftest.tmp" 14074 mv "conftest.tmp" "conftest.in" 14075 cp "conftest.in" "conftest.nl" 14076 $as_echo '' >> "conftest.nl" 14077 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 14078 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 14079 as_fn_arith $ac_count + 1 && ac_count=$as_val 14080 if test $ac_count -gt ${ac_path_SED_max-0}; then 14081 # Best one so far, save it but keep looking for a better one 14082 ac_cv_path_SED="$ac_path_SED" 14083 ac_path_SED_max=$ac_count 14084 fi 14085 # 10*(2^10) chars as input seems more than enough 14086 test $ac_count -gt 10 && break 14087 done 14088 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 14089 esac 14090 14091 $ac_path_SED_found && break 3 14092 done 14093 done 14094 done 14095 IFS=$as_save_IFS 14096 if test -z "$ac_cv_path_SED"; then 14097 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 14098 fi 14099 else 14100 ac_cv_path_SED=$SED 14101 fi 14102 14103 fi 14104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 14105 $as_echo "$ac_cv_path_SED" >&6; } 14106 SED="$ac_cv_path_SED" 14107 rm -f conftest.sed 14108 14109 else 14110 # The variable is set, but is it from the command line or the environment? 14111 14112 # Try to remove the string !SED! from our list. 14113 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!SED!/} 14114 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 14115 # If it failed, the variable was not from the command line. Ignore it, 14116 # but warn the user (except for BASH, which is always set by the calling BASH). 14117 if test "xSED" != xBASH; then 14118 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of SED from the environment. Use command line variables instead." >&5 14119 $as_echo "$as_me: WARNING: Ignoring value of SED from the environment. Use command line variables instead." >&2;} 14120 fi 14121 # Try to locate tool using the code snippet 14122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 14123 $as_echo_n "checking for a sed that does not truncate output... " >&6; } 14124 if ${ac_cv_path_SED+:} false; then : 14125 $as_echo_n "(cached) " >&6 14126 else 14127 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 14128 for ac_i in 1 2 3 4 5 6 7; do 14129 ac_script="$ac_script$as_nl$ac_script" 14130 done 14131 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 14132 { ac_script=; unset ac_script;} 14133 if test -z "$SED"; then 14134 ac_path_SED_found=false 14135 # Loop through the user's path and test for each of PROGNAME-LIST 14136 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14137 for as_dir in $PATH 14138 do 14139 IFS=$as_save_IFS 14140 test -z "$as_dir" && as_dir=. 14141 for ac_prog in sed gsed; do 14142 for ac_exec_ext in '' $ac_executable_extensions; do 14143 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 14144 as_fn_executable_p "$ac_path_SED" || continue 14145 # Check for GNU ac_path_SED and select it if it is found. 14146 # Check for GNU $ac_path_SED 14147 case `"$ac_path_SED" --version 2>&1` in 14148 *GNU*) 14149 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 14150 *) 14151 ac_count=0 14152 $as_echo_n 0123456789 >"conftest.in" 14153 while : 14154 do 14155 cat "conftest.in" "conftest.in" >"conftest.tmp" 14156 mv "conftest.tmp" "conftest.in" 14157 cp "conftest.in" "conftest.nl" 14158 $as_echo '' >> "conftest.nl" 14159 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 14160 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 14161 as_fn_arith $ac_count + 1 && ac_count=$as_val 14162 if test $ac_count -gt ${ac_path_SED_max-0}; then 14163 # Best one so far, save it but keep looking for a better one 14164 ac_cv_path_SED="$ac_path_SED" 14165 ac_path_SED_max=$ac_count 14166 fi 14167 # 10*(2^10) chars as input seems more than enough 14168 test $ac_count -gt 10 && break 14169 done 14170 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 14171 esac 14172 14173 $ac_path_SED_found && break 3 14174 done 14175 done 14176 done 14177 IFS=$as_save_IFS 14178 if test -z "$ac_cv_path_SED"; then 14179 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 14180 fi 14181 else 14182 ac_cv_path_SED=$SED 14183 fi 14184 14185 fi 14186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 14187 $as_echo "$ac_cv_path_SED" >&6; } 14188 SED="$ac_cv_path_SED" 14189 rm -f conftest.sed 14190 14191 else 14192 # If it succeeded, then it was overridden by the user. We will use it 14193 # for the tool. 14194 14195 # First remove it from the list of overridden variables, so we can test 14196 # for unknown variables in the end. 14197 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 14198 14199 # Check if we try to supply an empty value 14200 if test "x$SED" = x; then 14201 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool SED= (no value)" >&5 14202 $as_echo "$as_me: Setting user supplied tool SED= (no value)" >&6;} 14203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SED" >&5 14204 $as_echo_n "checking for SED... " >&6; } 14205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 14206 $as_echo "disabled" >&6; } 14207 else 14208 # Check if the provided tool contains a complete path. 14209 tool_specified="$SED" 14210 tool_basename="${tool_specified##*/}" 14211 if test "x$tool_basename" = "x$tool_specified"; then 14212 # A command without a complete path is provided, search $PATH. 14213 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool SED=$tool_basename" >&5 14214 $as_echo "$as_me: Will search for user supplied tool SED=$tool_basename" >&6;} 14215 # Extract the first word of "$tool_basename", so it can be a program name with args. 14216 set dummy $tool_basename; ac_word=$2 14217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14218 $as_echo_n "checking for $ac_word... " >&6; } 14219 if ${ac_cv_path_SED+:} false; then : 14220 $as_echo_n "(cached) " >&6 14221 else 14222 case $SED in 14223 [\\/]* | ?:[\\/]*) 14224 ac_cv_path_SED="$SED" # Let the user override the test with a path. 14225 ;; 14226 *) 14227 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14228 for as_dir in $PATH 14229 do 14230 IFS=$as_save_IFS 14231 test -z "$as_dir" && as_dir=. 14232 for ac_exec_ext in '' $ac_executable_extensions; do 14233 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 14234 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext" 14235 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 14236 break 2 14237 fi 14238 done 14239 done 14240 IFS=$as_save_IFS 14241 14242 ;; 14243 esac 14244 fi 14245 SED=$ac_cv_path_SED 14246 if test -n "$SED"; then 14247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5 14248 $as_echo "$SED" >&6; } 14249 else 14250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14251 $as_echo "no" >&6; } 14252 fi 14253 14254 14255 if test "x$SED" = x; then 14256 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 14257 fi 14258 else 14259 # Otherwise we believe it is a complete path. Use it as it is. 14260 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool SED=$tool_specified" >&5 14261 $as_echo "$as_me: Will use user supplied tool SED=$tool_specified" >&6;} 14262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SED" >&5 14263 $as_echo_n "checking for SED... " >&6; } 14264 if test ! -x "$tool_specified"; then 14265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 14266 $as_echo "not found" >&6; } 14267 as_fn_error $? "User supplied tool SED=$tool_specified does not exist or is not executable" "$LINENO" 5 14268 fi 14269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 14270 $as_echo "$tool_specified" >&6; } 14271 fi 14272 fi 14273 fi 14274 14275 fi 14276 14277 14278 if test "x$SED" = x; then 14279 as_fn_error $? "Could not find required tool for SED" "$LINENO" 5 14280 fi 14281 14282 14283 14284 # Always force rm. 14285 RM="$RM -f" 14286 14287 # pwd behaves differently on various platforms and some don't support the -L flag. 14288 # Always use the bash builtin pwd to get uniform behavior. 14289 THEPWDCMD=pwd 14290 14291 # These are not required on all platforms 14292 14293 14294 # Publish this variable in the help. 14295 14296 14297 if [ -z "${CYGPATH+x}" ]; then 14298 # The variable is not set by user, try to locate tool using the code snippet 14299 for ac_prog in cygpath 14300 do 14301 # Extract the first word of "$ac_prog", so it can be a program name with args. 14302 set dummy $ac_prog; ac_word=$2 14303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14304 $as_echo_n "checking for $ac_word... " >&6; } 14305 if ${ac_cv_path_CYGPATH+:} false; then : 14306 $as_echo_n "(cached) " >&6 14307 else 14308 case $CYGPATH in 14309 [\\/]* | ?:[\\/]*) 14310 ac_cv_path_CYGPATH="$CYGPATH" # Let the user override the test with a path. 14311 ;; 14312 *) 14313 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14314 for as_dir in $PATH 14315 do 14316 IFS=$as_save_IFS 14317 test -z "$as_dir" && as_dir=. 14318 for ac_exec_ext in '' $ac_executable_extensions; do 14319 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 14320 ac_cv_path_CYGPATH="$as_dir/$ac_word$ac_exec_ext" 14321 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 14322 break 2 14323 fi 14324 done 14325 done 14326 IFS=$as_save_IFS 14327 14328 ;; 14329 esac 14330 fi 14331 CYGPATH=$ac_cv_path_CYGPATH 14332 if test -n "$CYGPATH"; then 14333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CYGPATH" >&5 14334 $as_echo "$CYGPATH" >&6; } 14335 else 14336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14337 $as_echo "no" >&6; } 14338 fi 14339 14340 14341 test -n "$CYGPATH" && break 14342 done 14343 14344 else 14345 # The variable is set, but is it from the command line or the environment? 14346 14347 # Try to remove the string !CYGPATH! from our list. 14348 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CYGPATH!/} 14349 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 14350 # If it failed, the variable was not from the command line. Ignore it, 14351 # but warn the user (except for BASH, which is always set by the calling BASH). 14352 if test "xCYGPATH" != xBASH; then 14353 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CYGPATH from the environment. Use command line variables instead." >&5 14354 $as_echo "$as_me: WARNING: Ignoring value of CYGPATH from the environment. Use command line variables instead." >&2;} 14355 fi 14356 # Try to locate tool using the code snippet 14357 for ac_prog in cygpath 14358 do 14359 # Extract the first word of "$ac_prog", so it can be a program name with args. 14360 set dummy $ac_prog; ac_word=$2 14361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14362 $as_echo_n "checking for $ac_word... " >&6; } 14363 if ${ac_cv_path_CYGPATH+:} false; then : 14364 $as_echo_n "(cached) " >&6 14365 else 14366 case $CYGPATH in 14367 [\\/]* | ?:[\\/]*) 14368 ac_cv_path_CYGPATH="$CYGPATH" # Let the user override the test with a path. 14369 ;; 14370 *) 14371 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14372 for as_dir in $PATH 14373 do 14374 IFS=$as_save_IFS 14375 test -z "$as_dir" && as_dir=. 14376 for ac_exec_ext in '' $ac_executable_extensions; do 14377 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 14378 ac_cv_path_CYGPATH="$as_dir/$ac_word$ac_exec_ext" 14379 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 14380 break 2 14381 fi 14382 done 14383 done 14384 IFS=$as_save_IFS 14385 14386 ;; 14387 esac 14388 fi 14389 CYGPATH=$ac_cv_path_CYGPATH 14390 if test -n "$CYGPATH"; then 14391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CYGPATH" >&5 14392 $as_echo "$CYGPATH" >&6; } 14393 else 14394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14395 $as_echo "no" >&6; } 14396 fi 14397 14398 14399 test -n "$CYGPATH" && break 14400 done 14401 14402 else 14403 # If it succeeded, then it was overridden by the user. We will use it 14404 # for the tool. 14405 14406 # First remove it from the list of overridden variables, so we can test 14407 # for unknown variables in the end. 14408 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 14409 14410 # Check if we try to supply an empty value 14411 if test "x$CYGPATH" = x; then 14412 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool CYGPATH= (no value)" >&5 14413 $as_echo "$as_me: Setting user supplied tool CYGPATH= (no value)" >&6;} 14414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CYGPATH" >&5 14415 $as_echo_n "checking for CYGPATH... " >&6; } 14416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 14417 $as_echo "disabled" >&6; } 14418 else 14419 # Check if the provided tool contains a complete path. 14420 tool_specified="$CYGPATH" 14421 tool_basename="${tool_specified##*/}" 14422 if test "x$tool_basename" = "x$tool_specified"; then 14423 # A command without a complete path is provided, search $PATH. 14424 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CYGPATH=$tool_basename" >&5 14425 $as_echo "$as_me: Will search for user supplied tool CYGPATH=$tool_basename" >&6;} 14426 # Extract the first word of "$tool_basename", so it can be a program name with args. 14427 set dummy $tool_basename; ac_word=$2 14428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14429 $as_echo_n "checking for $ac_word... " >&6; } 14430 if ${ac_cv_path_CYGPATH+:} false; then : 14431 $as_echo_n "(cached) " >&6 14432 else 14433 case $CYGPATH in 14434 [\\/]* | ?:[\\/]*) 14435 ac_cv_path_CYGPATH="$CYGPATH" # Let the user override the test with a path. 14436 ;; 14437 *) 14438 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14439 for as_dir in $PATH 14440 do 14441 IFS=$as_save_IFS 14442 test -z "$as_dir" && as_dir=. 14443 for ac_exec_ext in '' $ac_executable_extensions; do 14444 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 14445 ac_cv_path_CYGPATH="$as_dir/$ac_word$ac_exec_ext" 14446 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 14447 break 2 14448 fi 14449 done 14450 done 14451 IFS=$as_save_IFS 14452 14453 ;; 14454 esac 14455 fi 14456 CYGPATH=$ac_cv_path_CYGPATH 14457 if test -n "$CYGPATH"; then 14458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CYGPATH" >&5 14459 $as_echo "$CYGPATH" >&6; } 14460 else 14461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14462 $as_echo "no" >&6; } 14463 fi 14464 14465 14466 if test "x$CYGPATH" = x; then 14467 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 14468 fi 14469 else 14470 # Otherwise we believe it is a complete path. Use it as it is. 14471 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CYGPATH=$tool_specified" >&5 14472 $as_echo "$as_me: Will use user supplied tool CYGPATH=$tool_specified" >&6;} 14473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CYGPATH" >&5 14474 $as_echo_n "checking for CYGPATH... " >&6; } 14475 if test ! -x "$tool_specified"; then 14476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 14477 $as_echo "not found" >&6; } 14478 as_fn_error $? "User supplied tool CYGPATH=$tool_specified does not exist or is not executable" "$LINENO" 5 14479 fi 14480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 14481 $as_echo "$tool_specified" >&6; } 14482 fi 14483 fi 14484 fi 14485 14486 fi 14487 14488 14489 14490 14491 # Publish this variable in the help. 14492 14493 14494 if [ -z "${READLINK+x}" ]; then 14495 # The variable is not set by user, try to locate tool using the code snippet 14496 for ac_prog in greadlink readlink 14497 do 14498 # Extract the first word of "$ac_prog", so it can be a program name with args. 14499 set dummy $ac_prog; ac_word=$2 14500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14501 $as_echo_n "checking for $ac_word... " >&6; } 14502 if ${ac_cv_path_READLINK+:} false; then : 14503 $as_echo_n "(cached) " >&6 14504 else 14505 case $READLINK in 14506 [\\/]* | ?:[\\/]*) 14507 ac_cv_path_READLINK="$READLINK" # Let the user override the test with a path. 14508 ;; 14509 *) 14510 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14511 for as_dir in $PATH 14512 do 14513 IFS=$as_save_IFS 14514 test -z "$as_dir" && as_dir=. 14515 for ac_exec_ext in '' $ac_executable_extensions; do 14516 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 14517 ac_cv_path_READLINK="$as_dir/$ac_word$ac_exec_ext" 14518 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 14519 break 2 14520 fi 14521 done 14522 done 14523 IFS=$as_save_IFS 14524 14525 ;; 14526 esac 14527 fi 14528 READLINK=$ac_cv_path_READLINK 14529 if test -n "$READLINK"; then 14530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READLINK" >&5 14531 $as_echo "$READLINK" >&6; } 14532 else 14533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14534 $as_echo "no" >&6; } 14535 fi 14536 14537 14538 test -n "$READLINK" && break 14539 done 14540 14541 else 14542 # The variable is set, but is it from the command line or the environment? 14543 14544 # Try to remove the string !READLINK! from our list. 14545 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!READLINK!/} 14546 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 14547 # If it failed, the variable was not from the command line. Ignore it, 14548 # but warn the user (except for BASH, which is always set by the calling BASH). 14549 if test "xREADLINK" != xBASH; then 14550 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of READLINK from the environment. Use command line variables instead." >&5 14551 $as_echo "$as_me: WARNING: Ignoring value of READLINK from the environment. Use command line variables instead." >&2;} 14552 fi 14553 # Try to locate tool using the code snippet 14554 for ac_prog in greadlink readlink 14555 do 14556 # Extract the first word of "$ac_prog", so it can be a program name with args. 14557 set dummy $ac_prog; ac_word=$2 14558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14559 $as_echo_n "checking for $ac_word... " >&6; } 14560 if ${ac_cv_path_READLINK+:} false; then : 14561 $as_echo_n "(cached) " >&6 14562 else 14563 case $READLINK in 14564 [\\/]* | ?:[\\/]*) 14565 ac_cv_path_READLINK="$READLINK" # Let the user override the test with a path. 14566 ;; 14567 *) 14568 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14569 for as_dir in $PATH 14570 do 14571 IFS=$as_save_IFS 14572 test -z "$as_dir" && as_dir=. 14573 for ac_exec_ext in '' $ac_executable_extensions; do 14574 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 14575 ac_cv_path_READLINK="$as_dir/$ac_word$ac_exec_ext" 14576 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 14577 break 2 14578 fi 14579 done 14580 done 14581 IFS=$as_save_IFS 14582 14583 ;; 14584 esac 14585 fi 14586 READLINK=$ac_cv_path_READLINK 14587 if test -n "$READLINK"; then 14588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READLINK" >&5 14589 $as_echo "$READLINK" >&6; } 14590 else 14591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14592 $as_echo "no" >&6; } 14593 fi 14594 14595 14596 test -n "$READLINK" && break 14597 done 14598 14599 else 14600 # If it succeeded, then it was overridden by the user. We will use it 14601 # for the tool. 14602 14603 # First remove it from the list of overridden variables, so we can test 14604 # for unknown variables in the end. 14605 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 14606 14607 # Check if we try to supply an empty value 14608 if test "x$READLINK" = x; then 14609 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool READLINK= (no value)" >&5 14610 $as_echo "$as_me: Setting user supplied tool READLINK= (no value)" >&6;} 14611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for READLINK" >&5 14612 $as_echo_n "checking for READLINK... " >&6; } 14613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 14614 $as_echo "disabled" >&6; } 14615 else 14616 # Check if the provided tool contains a complete path. 14617 tool_specified="$READLINK" 14618 tool_basename="${tool_specified##*/}" 14619 if test "x$tool_basename" = "x$tool_specified"; then 14620 # A command without a complete path is provided, search $PATH. 14621 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool READLINK=$tool_basename" >&5 14622 $as_echo "$as_me: Will search for user supplied tool READLINK=$tool_basename" >&6;} 14623 # Extract the first word of "$tool_basename", so it can be a program name with args. 14624 set dummy $tool_basename; ac_word=$2 14625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14626 $as_echo_n "checking for $ac_word... " >&6; } 14627 if ${ac_cv_path_READLINK+:} false; then : 14628 $as_echo_n "(cached) " >&6 14629 else 14630 case $READLINK in 14631 [\\/]* | ?:[\\/]*) 14632 ac_cv_path_READLINK="$READLINK" # Let the user override the test with a path. 14633 ;; 14634 *) 14635 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14636 for as_dir in $PATH 14637 do 14638 IFS=$as_save_IFS 14639 test -z "$as_dir" && as_dir=. 14640 for ac_exec_ext in '' $ac_executable_extensions; do 14641 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 14642 ac_cv_path_READLINK="$as_dir/$ac_word$ac_exec_ext" 14643 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 14644 break 2 14645 fi 14646 done 14647 done 14648 IFS=$as_save_IFS 14649 14650 ;; 14651 esac 14652 fi 14653 READLINK=$ac_cv_path_READLINK 14654 if test -n "$READLINK"; then 14655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READLINK" >&5 14656 $as_echo "$READLINK" >&6; } 14657 else 14658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14659 $as_echo "no" >&6; } 14660 fi 14661 14662 14663 if test "x$READLINK" = x; then 14664 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 14665 fi 14666 else 14667 # Otherwise we believe it is a complete path. Use it as it is. 14668 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool READLINK=$tool_specified" >&5 14669 $as_echo "$as_me: Will use user supplied tool READLINK=$tool_specified" >&6;} 14670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for READLINK" >&5 14671 $as_echo_n "checking for READLINK... " >&6; } 14672 if test ! -x "$tool_specified"; then 14673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 14674 $as_echo "not found" >&6; } 14675 as_fn_error $? "User supplied tool READLINK=$tool_specified does not exist or is not executable" "$LINENO" 5 14676 fi 14677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 14678 $as_echo "$tool_specified" >&6; } 14679 fi 14680 fi 14681 fi 14682 14683 fi 14684 14685 14686 14687 14688 # Publish this variable in the help. 14689 14690 14691 if [ -z "${DF+x}" ]; then 14692 # The variable is not set by user, try to locate tool using the code snippet 14693 for ac_prog in df 14694 do 14695 # Extract the first word of "$ac_prog", so it can be a program name with args. 14696 set dummy $ac_prog; ac_word=$2 14697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14698 $as_echo_n "checking for $ac_word... " >&6; } 14699 if ${ac_cv_path_DF+:} false; then : 14700 $as_echo_n "(cached) " >&6 14701 else 14702 case $DF in 14703 [\\/]* | ?:[\\/]*) 14704 ac_cv_path_DF="$DF" # Let the user override the test with a path. 14705 ;; 14706 *) 14707 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14708 for as_dir in $PATH 14709 do 14710 IFS=$as_save_IFS 14711 test -z "$as_dir" && as_dir=. 14712 for ac_exec_ext in '' $ac_executable_extensions; do 14713 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 14714 ac_cv_path_DF="$as_dir/$ac_word$ac_exec_ext" 14715 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 14716 break 2 14717 fi 14718 done 14719 done 14720 IFS=$as_save_IFS 14721 14722 ;; 14723 esac 14724 fi 14725 DF=$ac_cv_path_DF 14726 if test -n "$DF"; then 14727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DF" >&5 14728 $as_echo "$DF" >&6; } 14729 else 14730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14731 $as_echo "no" >&6; } 14732 fi 14733 14734 14735 test -n "$DF" && break 14736 done 14737 14738 else 14739 # The variable is set, but is it from the command line or the environment? 14740 14741 # Try to remove the string !DF! from our list. 14742 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!DF!/} 14743 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 14744 # If it failed, the variable was not from the command line. Ignore it, 14745 # but warn the user (except for BASH, which is always set by the calling BASH). 14746 if test "xDF" != xBASH; then 14747 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of DF from the environment. Use command line variables instead." >&5 14748 $as_echo "$as_me: WARNING: Ignoring value of DF from the environment. Use command line variables instead." >&2;} 14749 fi 14750 # Try to locate tool using the code snippet 14751 for ac_prog in df 14752 do 14753 # Extract the first word of "$ac_prog", so it can be a program name with args. 14754 set dummy $ac_prog; ac_word=$2 14755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14756 $as_echo_n "checking for $ac_word... " >&6; } 14757 if ${ac_cv_path_DF+:} false; then : 14758 $as_echo_n "(cached) " >&6 14759 else 14760 case $DF in 14761 [\\/]* | ?:[\\/]*) 14762 ac_cv_path_DF="$DF" # Let the user override the test with a path. 14763 ;; 14764 *) 14765 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14766 for as_dir in $PATH 14767 do 14768 IFS=$as_save_IFS 14769 test -z "$as_dir" && as_dir=. 14770 for ac_exec_ext in '' $ac_executable_extensions; do 14771 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 14772 ac_cv_path_DF="$as_dir/$ac_word$ac_exec_ext" 14773 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 14774 break 2 14775 fi 14776 done 14777 done 14778 IFS=$as_save_IFS 14779 14780 ;; 14781 esac 14782 fi 14783 DF=$ac_cv_path_DF 14784 if test -n "$DF"; then 14785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DF" >&5 14786 $as_echo "$DF" >&6; } 14787 else 14788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14789 $as_echo "no" >&6; } 14790 fi 14791 14792 14793 test -n "$DF" && break 14794 done 14795 14796 else 14797 # If it succeeded, then it was overridden by the user. We will use it 14798 # for the tool. 14799 14800 # First remove it from the list of overridden variables, so we can test 14801 # for unknown variables in the end. 14802 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 14803 14804 # Check if we try to supply an empty value 14805 if test "x$DF" = x; then 14806 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool DF= (no value)" >&5 14807 $as_echo "$as_me: Setting user supplied tool DF= (no value)" >&6;} 14808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DF" >&5 14809 $as_echo_n "checking for DF... " >&6; } 14810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 14811 $as_echo "disabled" >&6; } 14812 else 14813 # Check if the provided tool contains a complete path. 14814 tool_specified="$DF" 14815 tool_basename="${tool_specified##*/}" 14816 if test "x$tool_basename" = "x$tool_specified"; then 14817 # A command without a complete path is provided, search $PATH. 14818 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool DF=$tool_basename" >&5 14819 $as_echo "$as_me: Will search for user supplied tool DF=$tool_basename" >&6;} 14820 # Extract the first word of "$tool_basename", so it can be a program name with args. 14821 set dummy $tool_basename; ac_word=$2 14822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14823 $as_echo_n "checking for $ac_word... " >&6; } 14824 if ${ac_cv_path_DF+:} false; then : 14825 $as_echo_n "(cached) " >&6 14826 else 14827 case $DF in 14828 [\\/]* | ?:[\\/]*) 14829 ac_cv_path_DF="$DF" # Let the user override the test with a path. 14830 ;; 14831 *) 14832 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14833 for as_dir in $PATH 14834 do 14835 IFS=$as_save_IFS 14836 test -z "$as_dir" && as_dir=. 14837 for ac_exec_ext in '' $ac_executable_extensions; do 14838 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 14839 ac_cv_path_DF="$as_dir/$ac_word$ac_exec_ext" 14840 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 14841 break 2 14842 fi 14843 done 14844 done 14845 IFS=$as_save_IFS 14846 14847 ;; 14848 esac 14849 fi 14850 DF=$ac_cv_path_DF 14851 if test -n "$DF"; then 14852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DF" >&5 14853 $as_echo "$DF" >&6; } 14854 else 14855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14856 $as_echo "no" >&6; } 14857 fi 14858 14859 14860 if test "x$DF" = x; then 14861 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 14862 fi 14863 else 14864 # Otherwise we believe it is a complete path. Use it as it is. 14865 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool DF=$tool_specified" >&5 14866 $as_echo "$as_me: Will use user supplied tool DF=$tool_specified" >&6;} 14867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DF" >&5 14868 $as_echo_n "checking for DF... " >&6; } 14869 if test ! -x "$tool_specified"; then 14870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 14871 $as_echo "not found" >&6; } 14872 as_fn_error $? "User supplied tool DF=$tool_specified does not exist or is not executable" "$LINENO" 5 14873 fi 14874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 14875 $as_echo "$tool_specified" >&6; } 14876 fi 14877 fi 14878 fi 14879 14880 fi 14881 14882 14883 14884 14885 # Publish this variable in the help. 14886 14887 14888 if [ -z "${CPIO+x}" ]; then 14889 # The variable is not set by user, try to locate tool using the code snippet 14890 for ac_prog in cpio bsdcpio 14891 do 14892 # Extract the first word of "$ac_prog", so it can be a program name with args. 14893 set dummy $ac_prog; ac_word=$2 14894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14895 $as_echo_n "checking for $ac_word... " >&6; } 14896 if ${ac_cv_path_CPIO+:} false; then : 14897 $as_echo_n "(cached) " >&6 14898 else 14899 case $CPIO in 14900 [\\/]* | ?:[\\/]*) 14901 ac_cv_path_CPIO="$CPIO" # Let the user override the test with a path. 14902 ;; 14903 *) 14904 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14905 for as_dir in $PATH 14906 do 14907 IFS=$as_save_IFS 14908 test -z "$as_dir" && as_dir=. 14909 for ac_exec_ext in '' $ac_executable_extensions; do 14910 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 14911 ac_cv_path_CPIO="$as_dir/$ac_word$ac_exec_ext" 14912 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 14913 break 2 14914 fi 14915 done 14916 done 14917 IFS=$as_save_IFS 14918 14919 ;; 14920 esac 14921 fi 14922 CPIO=$ac_cv_path_CPIO 14923 if test -n "$CPIO"; then 14924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPIO" >&5 14925 $as_echo "$CPIO" >&6; } 14926 else 14927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14928 $as_echo "no" >&6; } 14929 fi 14930 14931 14932 test -n "$CPIO" && break 14933 done 14934 14935 else 14936 # The variable is set, but is it from the command line or the environment? 14937 14938 # Try to remove the string !CPIO! from our list. 14939 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CPIO!/} 14940 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 14941 # If it failed, the variable was not from the command line. Ignore it, 14942 # but warn the user (except for BASH, which is always set by the calling BASH). 14943 if test "xCPIO" != xBASH; then 14944 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CPIO from the environment. Use command line variables instead." >&5 14945 $as_echo "$as_me: WARNING: Ignoring value of CPIO from the environment. Use command line variables instead." >&2;} 14946 fi 14947 # Try to locate tool using the code snippet 14948 for ac_prog in cpio bsdcpio 14949 do 14950 # Extract the first word of "$ac_prog", so it can be a program name with args. 14951 set dummy $ac_prog; ac_word=$2 14952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14953 $as_echo_n "checking for $ac_word... " >&6; } 14954 if ${ac_cv_path_CPIO+:} false; then : 14955 $as_echo_n "(cached) " >&6 14956 else 14957 case $CPIO in 14958 [\\/]* | ?:[\\/]*) 14959 ac_cv_path_CPIO="$CPIO" # Let the user override the test with a path. 14960 ;; 14961 *) 14962 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14963 for as_dir in $PATH 14964 do 14965 IFS=$as_save_IFS 14966 test -z "$as_dir" && as_dir=. 14967 for ac_exec_ext in '' $ac_executable_extensions; do 14968 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 14969 ac_cv_path_CPIO="$as_dir/$ac_word$ac_exec_ext" 14970 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 14971 break 2 14972 fi 14973 done 14974 done 14975 IFS=$as_save_IFS 14976 14977 ;; 14978 esac 14979 fi 14980 CPIO=$ac_cv_path_CPIO 14981 if test -n "$CPIO"; then 14982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPIO" >&5 14983 $as_echo "$CPIO" >&6; } 14984 else 14985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14986 $as_echo "no" >&6; } 14987 fi 14988 14989 14990 test -n "$CPIO" && break 14991 done 14992 14993 else 14994 # If it succeeded, then it was overridden by the user. We will use it 14995 # for the tool. 14996 14997 # First remove it from the list of overridden variables, so we can test 14998 # for unknown variables in the end. 14999 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 15000 15001 # Check if we try to supply an empty value 15002 if test "x$CPIO" = x; then 15003 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool CPIO= (no value)" >&5 15004 $as_echo "$as_me: Setting user supplied tool CPIO= (no value)" >&6;} 15005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CPIO" >&5 15006 $as_echo_n "checking for CPIO... " >&6; } 15007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 15008 $as_echo "disabled" >&6; } 15009 else 15010 # Check if the provided tool contains a complete path. 15011 tool_specified="$CPIO" 15012 tool_basename="${tool_specified##*/}" 15013 if test "x$tool_basename" = "x$tool_specified"; then 15014 # A command without a complete path is provided, search $PATH. 15015 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CPIO=$tool_basename" >&5 15016 $as_echo "$as_me: Will search for user supplied tool CPIO=$tool_basename" >&6;} 15017 # Extract the first word of "$tool_basename", so it can be a program name with args. 15018 set dummy $tool_basename; ac_word=$2 15019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 15020 $as_echo_n "checking for $ac_word... " >&6; } 15021 if ${ac_cv_path_CPIO+:} false; then : 15022 $as_echo_n "(cached) " >&6 15023 else 15024 case $CPIO in 15025 [\\/]* | ?:[\\/]*) 15026 ac_cv_path_CPIO="$CPIO" # Let the user override the test with a path. 15027 ;; 15028 *) 15029 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 15030 for as_dir in $PATH 15031 do 15032 IFS=$as_save_IFS 15033 test -z "$as_dir" && as_dir=. 15034 for ac_exec_ext in '' $ac_executable_extensions; do 15035 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 15036 ac_cv_path_CPIO="$as_dir/$ac_word$ac_exec_ext" 15037 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 15038 break 2 15039 fi 15040 done 15041 done 15042 IFS=$as_save_IFS 15043 15044 ;; 15045 esac 15046 fi 15047 CPIO=$ac_cv_path_CPIO 15048 if test -n "$CPIO"; then 15049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPIO" >&5 15050 $as_echo "$CPIO" >&6; } 15051 else 15052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15053 $as_echo "no" >&6; } 15054 fi 15055 15056 15057 if test "x$CPIO" = x; then 15058 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 15059 fi 15060 else 15061 # Otherwise we believe it is a complete path. Use it as it is. 15062 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CPIO=$tool_specified" >&5 15063 $as_echo "$as_me: Will use user supplied tool CPIO=$tool_specified" >&6;} 15064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CPIO" >&5 15065 $as_echo_n "checking for CPIO... " >&6; } 15066 if test ! -x "$tool_specified"; then 15067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 15068 $as_echo "not found" >&6; } 15069 as_fn_error $? "User supplied tool CPIO=$tool_specified does not exist or is not executable" "$LINENO" 5 15070 fi 15071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 15072 $as_echo "$tool_specified" >&6; } 15073 fi 15074 fi 15075 fi 15076 15077 fi 15078 15079 15080 15081 15082 # Publish this variable in the help. 15083 15084 15085 if [ -z "${NICE+x}" ]; then 15086 # The variable is not set by user, try to locate tool using the code snippet 15087 for ac_prog in nice 15088 do 15089 # Extract the first word of "$ac_prog", so it can be a program name with args. 15090 set dummy $ac_prog; ac_word=$2 15091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 15092 $as_echo_n "checking for $ac_word... " >&6; } 15093 if ${ac_cv_path_NICE+:} false; then : 15094 $as_echo_n "(cached) " >&6 15095 else 15096 case $NICE in 15097 [\\/]* | ?:[\\/]*) 15098 ac_cv_path_NICE="$NICE" # Let the user override the test with a path. 15099 ;; 15100 *) 15101 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 15102 for as_dir in $PATH 15103 do 15104 IFS=$as_save_IFS 15105 test -z "$as_dir" && as_dir=. 15106 for ac_exec_ext in '' $ac_executable_extensions; do 15107 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 15108 ac_cv_path_NICE="$as_dir/$ac_word$ac_exec_ext" 15109 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 15110 break 2 15111 fi 15112 done 15113 done 15114 IFS=$as_save_IFS 15115 15116 ;; 15117 esac 15118 fi 15119 NICE=$ac_cv_path_NICE 15120 if test -n "$NICE"; then 15121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NICE" >&5 15122 $as_echo "$NICE" >&6; } 15123 else 15124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15125 $as_echo "no" >&6; } 15126 fi 15127 15128 15129 test -n "$NICE" && break 15130 done 15131 15132 else 15133 # The variable is set, but is it from the command line or the environment? 15134 15135 # Try to remove the string !NICE! from our list. 15136 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!NICE!/} 15137 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 15138 # If it failed, the variable was not from the command line. Ignore it, 15139 # but warn the user (except for BASH, which is always set by the calling BASH). 15140 if test "xNICE" != xBASH; then 15141 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of NICE from the environment. Use command line variables instead." >&5 15142 $as_echo "$as_me: WARNING: Ignoring value of NICE from the environment. Use command line variables instead." >&2;} 15143 fi 15144 # Try to locate tool using the code snippet 15145 for ac_prog in nice 15146 do 15147 # Extract the first word of "$ac_prog", so it can be a program name with args. 15148 set dummy $ac_prog; ac_word=$2 15149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 15150 $as_echo_n "checking for $ac_word... " >&6; } 15151 if ${ac_cv_path_NICE+:} false; then : 15152 $as_echo_n "(cached) " >&6 15153 else 15154 case $NICE in 15155 [\\/]* | ?:[\\/]*) 15156 ac_cv_path_NICE="$NICE" # Let the user override the test with a path. 15157 ;; 15158 *) 15159 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 15160 for as_dir in $PATH 15161 do 15162 IFS=$as_save_IFS 15163 test -z "$as_dir" && as_dir=. 15164 for ac_exec_ext in '' $ac_executable_extensions; do 15165 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 15166 ac_cv_path_NICE="$as_dir/$ac_word$ac_exec_ext" 15167 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 15168 break 2 15169 fi 15170 done 15171 done 15172 IFS=$as_save_IFS 15173 15174 ;; 15175 esac 15176 fi 15177 NICE=$ac_cv_path_NICE 15178 if test -n "$NICE"; then 15179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NICE" >&5 15180 $as_echo "$NICE" >&6; } 15181 else 15182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15183 $as_echo "no" >&6; } 15184 fi 15185 15186 15187 test -n "$NICE" && break 15188 done 15189 15190 else 15191 # If it succeeded, then it was overridden by the user. We will use it 15192 # for the tool. 15193 15194 # First remove it from the list of overridden variables, so we can test 15195 # for unknown variables in the end. 15196 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 15197 15198 # Check if we try to supply an empty value 15199 if test "x$NICE" = x; then 15200 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool NICE= (no value)" >&5 15201 $as_echo "$as_me: Setting user supplied tool NICE= (no value)" >&6;} 15202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NICE" >&5 15203 $as_echo_n "checking for NICE... " >&6; } 15204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 15205 $as_echo "disabled" >&6; } 15206 else 15207 # Check if the provided tool contains a complete path. 15208 tool_specified="$NICE" 15209 tool_basename="${tool_specified##*/}" 15210 if test "x$tool_basename" = "x$tool_specified"; then 15211 # A command without a complete path is provided, search $PATH. 15212 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool NICE=$tool_basename" >&5 15213 $as_echo "$as_me: Will search for user supplied tool NICE=$tool_basename" >&6;} 15214 # Extract the first word of "$tool_basename", so it can be a program name with args. 15215 set dummy $tool_basename; ac_word=$2 15216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 15217 $as_echo_n "checking for $ac_word... " >&6; } 15218 if ${ac_cv_path_NICE+:} false; then : 15219 $as_echo_n "(cached) " >&6 15220 else 15221 case $NICE in 15222 [\\/]* | ?:[\\/]*) 15223 ac_cv_path_NICE="$NICE" # Let the user override the test with a path. 15224 ;; 15225 *) 15226 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 15227 for as_dir in $PATH 15228 do 15229 IFS=$as_save_IFS 15230 test -z "$as_dir" && as_dir=. 15231 for ac_exec_ext in '' $ac_executable_extensions; do 15232 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 15233 ac_cv_path_NICE="$as_dir/$ac_word$ac_exec_ext" 15234 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 15235 break 2 15236 fi 15237 done 15238 done 15239 IFS=$as_save_IFS 15240 15241 ;; 15242 esac 15243 fi 15244 NICE=$ac_cv_path_NICE 15245 if test -n "$NICE"; then 15246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NICE" >&5 15247 $as_echo "$NICE" >&6; } 15248 else 15249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15250 $as_echo "no" >&6; } 15251 fi 15252 15253 15254 if test "x$NICE" = x; then 15255 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 15256 fi 15257 else 15258 # Otherwise we believe it is a complete path. Use it as it is. 15259 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool NICE=$tool_specified" >&5 15260 $as_echo "$as_me: Will use user supplied tool NICE=$tool_specified" >&6;} 15261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NICE" >&5 15262 $as_echo_n "checking for NICE... " >&6; } 15263 if test ! -x "$tool_specified"; then 15264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 15265 $as_echo "not found" >&6; } 15266 as_fn_error $? "User supplied tool NICE=$tool_specified does not exist or is not executable" "$LINENO" 5 15267 fi 15268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 15269 $as_echo "$tool_specified" >&6; } 15270 fi 15271 fi 15272 fi 15273 15274 fi 15275 15276 15277 15278 15279 # Now we can determine OpenJDK build and target platforms. This is required to 15280 # have early on. 15281 # Make sure we can run config.sub. 15282 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 15283 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 15284 15285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 15286 $as_echo_n "checking build system type... " >&6; } 15287 if ${ac_cv_build+:} false; then : 15288 $as_echo_n "(cached) " >&6 15289 else 15290 ac_build_alias=$build_alias 15291 test "x$ac_build_alias" = x && 15292 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 15293 test "x$ac_build_alias" = x && 15294 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 15295 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 15296 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 15297 15298 fi 15299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 15300 $as_echo "$ac_cv_build" >&6; } 15301 case $ac_cv_build in 15302 *-*-*) ;; 15303 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 15304 esac 15305 build=$ac_cv_build 15306 ac_save_IFS=$IFS; IFS='-' 15307 set x $ac_cv_build 15308 shift 15309 build_cpu=$1 15310 build_vendor=$2 15311 shift; shift 15312 # Remember, the first character of IFS is used to create $*, 15313 # except with old shells: 15314 build_os=$* 15315 IFS=$ac_save_IFS 15316 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 15317 15318 15319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 15320 $as_echo_n "checking host system type... " >&6; } 15321 if ${ac_cv_host+:} false; then : 15322 $as_echo_n "(cached) " >&6 15323 else 15324 if test "x$host_alias" = x; then 15325 ac_cv_host=$ac_cv_build 15326 else 15327 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 15328 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 15329 fi 15330 15331 fi 15332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 15333 $as_echo "$ac_cv_host" >&6; } 15334 case $ac_cv_host in 15335 *-*-*) ;; 15336 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 15337 esac 15338 host=$ac_cv_host 15339 ac_save_IFS=$IFS; IFS='-' 15340 set x $ac_cv_host 15341 shift 15342 host_cpu=$1 15343 host_vendor=$2 15344 shift; shift 15345 # Remember, the first character of IFS is used to create $*, 15346 # except with old shells: 15347 host_os=$* 15348 IFS=$ac_save_IFS 15349 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 15350 15351 15352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5 15353 $as_echo_n "checking target system type... " >&6; } 15354 if ${ac_cv_target+:} false; then : 15355 $as_echo_n "(cached) " >&6 15356 else 15357 if test "x$target_alias" = x; then 15358 ac_cv_target=$ac_cv_host 15359 else 15360 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` || 15361 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5 15362 fi 15363 15364 fi 15365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5 15366 $as_echo "$ac_cv_target" >&6; } 15367 case $ac_cv_target in 15368 *-*-*) ;; 15369 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;; 15370 esac 15371 target=$ac_cv_target 15372 ac_save_IFS=$IFS; IFS='-' 15373 set x $ac_cv_target 15374 shift 15375 target_cpu=$1 15376 target_vendor=$2 15377 shift; shift 15378 # Remember, the first character of IFS is used to create $*, 15379 # except with old shells: 15380 target_os=$* 15381 IFS=$ac_save_IFS 15382 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac 15383 15384 15385 # The aliases save the names the user supplied, while $host etc. 15386 # will get canonicalized. 15387 test -n "$target_alias" && 15388 test "$program_prefix$program_suffix$program_transform_name" = \ 15389 NONENONEs,x,x, && 15390 program_prefix=${target_alias}- 15391 15392 # Figure out the build and target systems. # Note that in autoconf terminology, "build" is obvious, but "target" 15393 # is confusing; it assumes you are cross-compiling a cross-compiler (!) and "target" is thus the target of the 15394 # product you're building. The target of this build is called "host". Since this is confusing to most people, we 15395 # have not adopted that system, but use "target" as the platform we are building for. In some places though we need 15396 # to use the configure naming style. 15397 15398 15399 15400 15401 15402 # Copy the autoconf trip/quadruplet verbatim to OPENJDK_TARGET_AUTOCONF_NAME 15403 # (from the autoconf "host") and OPENJDK_BUILD_AUTOCONF_NAME 15404 # Note that we might later on rewrite e.g. OPENJDK_TARGET_CPU due to reduced build, 15405 # but this will not change the value of OPENJDK_TARGET_AUTOCONF_NAME. 15406 OPENJDK_TARGET_AUTOCONF_NAME="$host" 15407 OPENJDK_BUILD_AUTOCONF_NAME="$build" 15408 15409 15410 15411 # Convert the autoconf OS/CPU value to our own data, into the VAR_OS/CPU variables. 15412 15413 case "$build_os" in 15414 *linux*) 15415 VAR_OS=linux 15416 VAR_OS_TYPE=unix 15417 ;; 15418 *solaris*) 15419 VAR_OS=solaris 15420 VAR_OS_TYPE=unix 15421 ;; 15422 *darwin*) 15423 VAR_OS=macosx 15424 VAR_OS_TYPE=unix 15425 ;; 15426 *bsd*) 15427 VAR_OS=bsd 15428 VAR_OS_TYPE=unix 15429 ;; 15430 *cygwin*) 15431 VAR_OS=windows 15432 VAR_OS_ENV=windows.cygwin 15433 ;; 15434 *mingw*) 15435 VAR_OS=windows 15436 VAR_OS_ENV=windows.msys 15437 ;; 15438 *aix*) 15439 VAR_OS=aix 15440 VAR_OS_TYPE=unix 15441 ;; 15442 *) 15443 as_fn_error $? "unsupported operating system $build_os" "$LINENO" 5 15444 ;; 15445 esac 15446 15447 15448 # First argument is the cpu name from the trip/quad 15449 case "$build_cpu" in 15450 x86_64) 15451 VAR_CPU=x86_64 15452 VAR_CPU_ARCH=x86 15453 VAR_CPU_BITS=64 15454 VAR_CPU_ENDIAN=little 15455 ;; 15456 i?86) 15457 VAR_CPU=x86 15458 VAR_CPU_ARCH=x86 15459 VAR_CPU_BITS=32 15460 VAR_CPU_ENDIAN=little 15461 ;; 15462 arm*) 15463 VAR_CPU=arm 15464 VAR_CPU_ARCH=arm 15465 VAR_CPU_BITS=32 15466 VAR_CPU_ENDIAN=little 15467 ;; 15468 aarch64) 15469 VAR_CPU=aarch64 15470 VAR_CPU_ARCH=aarch64 15471 VAR_CPU_BITS=64 15472 VAR_CPU_ENDIAN=little 15473 ;; 15474 powerpc) 15475 VAR_CPU=ppc 15476 VAR_CPU_ARCH=ppc 15477 VAR_CPU_BITS=32 15478 VAR_CPU_ENDIAN=big 15479 ;; 15480 powerpc64) 15481 VAR_CPU=ppc64 15482 VAR_CPU_ARCH=ppc 15483 VAR_CPU_BITS=64 15484 VAR_CPU_ENDIAN=big 15485 ;; 15486 powerpc64le) 15487 VAR_CPU=ppc64le 15488 VAR_CPU_ARCH=ppc 15489 VAR_CPU_BITS=64 15490 VAR_CPU_ENDIAN=little 15491 ;; 15492 s390) 15493 VAR_CPU=s390 15494 VAR_CPU_ARCH=s390 15495 VAR_CPU_BITS=32 15496 VAR_CPU_ENDIAN=big 15497 ;; 15498 s390x) 15499 VAR_CPU=s390x 15500 VAR_CPU_ARCH=s390 15501 VAR_CPU_BITS=64 15502 VAR_CPU_ENDIAN=big 15503 ;; 15504 sparc) 15505 VAR_CPU=sparc 15506 VAR_CPU_ARCH=sparc 15507 VAR_CPU_BITS=32 15508 VAR_CPU_ENDIAN=big 15509 ;; 15510 sparcv9|sparc64) 15511 VAR_CPU=sparcv9 15512 VAR_CPU_ARCH=sparc 15513 VAR_CPU_BITS=64 15514 VAR_CPU_ENDIAN=big 15515 ;; 15516 *) 15517 as_fn_error $? "unsupported cpu $build_cpu" "$LINENO" 5 15518 ;; 15519 esac 15520 15521 # ..and setup our own variables. (Do this explicitly to facilitate searching) 15522 OPENJDK_BUILD_OS="$VAR_OS" 15523 if test "x$VAR_OS_TYPE" != x; then 15524 OPENJDK_BUILD_OS_TYPE="$VAR_OS_TYPE" 15525 else 15526 OPENJDK_BUILD_OS_TYPE="$VAR_OS" 15527 fi 15528 if test "x$VAR_OS_ENV" != x; then 15529 OPENJDK_BUILD_OS_ENV="$VAR_OS_ENV" 15530 else 15531 OPENJDK_BUILD_OS_ENV="$VAR_OS" 15532 fi 15533 OPENJDK_BUILD_CPU="$VAR_CPU" 15534 OPENJDK_BUILD_CPU_ARCH="$VAR_CPU_ARCH" 15535 OPENJDK_BUILD_CPU_BITS="$VAR_CPU_BITS" 15536 OPENJDK_BUILD_CPU_ENDIAN="$VAR_CPU_ENDIAN" 15537 15538 15539 15540 15541 15542 15543 15544 15545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking openjdk-build os-cpu" >&5 15546 $as_echo_n "checking openjdk-build os-cpu... " >&6; } 15547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OPENJDK_BUILD_OS-$OPENJDK_BUILD_CPU" >&5 15548 $as_echo "$OPENJDK_BUILD_OS-$OPENJDK_BUILD_CPU" >&6; } 15549 15550 # Convert the autoconf OS/CPU value to our own data, into the VAR_OS/CPU variables. 15551 15552 case "$host_os" in 15553 *linux*) 15554 VAR_OS=linux 15555 VAR_OS_TYPE=unix 15556 ;; 15557 *solaris*) 15558 VAR_OS=solaris 15559 VAR_OS_TYPE=unix 15560 ;; 15561 *darwin*) 15562 VAR_OS=macosx 15563 VAR_OS_TYPE=unix 15564 ;; 15565 *bsd*) 15566 VAR_OS=bsd 15567 VAR_OS_TYPE=unix 15568 ;; 15569 *cygwin*) 15570 VAR_OS=windows 15571 VAR_OS_ENV=windows.cygwin 15572 ;; 15573 *mingw*) 15574 VAR_OS=windows 15575 VAR_OS_ENV=windows.msys 15576 ;; 15577 *aix*) 15578 VAR_OS=aix 15579 VAR_OS_TYPE=unix 15580 ;; 15581 *) 15582 as_fn_error $? "unsupported operating system $host_os" "$LINENO" 5 15583 ;; 15584 esac 15585 15586 15587 # First argument is the cpu name from the trip/quad 15588 case "$host_cpu" in 15589 x86_64) 15590 VAR_CPU=x86_64 15591 VAR_CPU_ARCH=x86 15592 VAR_CPU_BITS=64 15593 VAR_CPU_ENDIAN=little 15594 ;; 15595 i?86) 15596 VAR_CPU=x86 15597 VAR_CPU_ARCH=x86 15598 VAR_CPU_BITS=32 15599 VAR_CPU_ENDIAN=little 15600 ;; 15601 arm*) 15602 VAR_CPU=arm 15603 VAR_CPU_ARCH=arm 15604 VAR_CPU_BITS=32 15605 VAR_CPU_ENDIAN=little 15606 ;; 15607 aarch64) 15608 VAR_CPU=aarch64 15609 VAR_CPU_ARCH=aarch64 15610 VAR_CPU_BITS=64 15611 VAR_CPU_ENDIAN=little 15612 ;; 15613 powerpc) 15614 VAR_CPU=ppc 15615 VAR_CPU_ARCH=ppc 15616 VAR_CPU_BITS=32 15617 VAR_CPU_ENDIAN=big 15618 ;; 15619 powerpc64) 15620 VAR_CPU=ppc64 15621 VAR_CPU_ARCH=ppc 15622 VAR_CPU_BITS=64 15623 VAR_CPU_ENDIAN=big 15624 ;; 15625 powerpc64le) 15626 VAR_CPU=ppc64le 15627 VAR_CPU_ARCH=ppc 15628 VAR_CPU_BITS=64 15629 VAR_CPU_ENDIAN=little 15630 ;; 15631 s390) 15632 VAR_CPU=s390 15633 VAR_CPU_ARCH=s390 15634 VAR_CPU_BITS=32 15635 VAR_CPU_ENDIAN=big 15636 ;; 15637 s390x) 15638 VAR_CPU=s390x 15639 VAR_CPU_ARCH=s390 15640 VAR_CPU_BITS=64 15641 VAR_CPU_ENDIAN=big 15642 ;; 15643 sparc) 15644 VAR_CPU=sparc 15645 VAR_CPU_ARCH=sparc 15646 VAR_CPU_BITS=32 15647 VAR_CPU_ENDIAN=big 15648 ;; 15649 sparcv9|sparc64) 15650 VAR_CPU=sparcv9 15651 VAR_CPU_ARCH=sparc 15652 VAR_CPU_BITS=64 15653 VAR_CPU_ENDIAN=big 15654 ;; 15655 *) 15656 as_fn_error $? "unsupported cpu $host_cpu" "$LINENO" 5 15657 ;; 15658 esac 15659 15660 # ... and setup our own variables. (Do this explicitly to facilitate searching) 15661 OPENJDK_TARGET_OS="$VAR_OS" 15662 if test "x$VAR_OS_TYPE" != x; then 15663 OPENJDK_TARGET_OS_TYPE="$VAR_OS_TYPE" 15664 else 15665 OPENJDK_TARGET_OS_TYPE="$VAR_OS" 15666 fi 15667 if test "x$VAR_OS_ENV" != x; then 15668 OPENJDK_TARGET_OS_ENV="$VAR_OS_ENV" 15669 else 15670 OPENJDK_TARGET_OS_ENV="$VAR_OS" 15671 fi 15672 OPENJDK_TARGET_CPU="$VAR_CPU" 15673 OPENJDK_TARGET_CPU_ARCH="$VAR_CPU_ARCH" 15674 OPENJDK_TARGET_CPU_BITS="$VAR_CPU_BITS" 15675 OPENJDK_TARGET_CPU_ENDIAN="$VAR_CPU_ENDIAN" 15676 15677 15678 15679 15680 15681 15682 15683 15684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking openjdk-target os-cpu" >&5 15685 $as_echo_n "checking openjdk-target os-cpu... " >&6; } 15686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OPENJDK_TARGET_OS-$OPENJDK_TARGET_CPU" >&5 15687 $as_echo "$OPENJDK_TARGET_OS-$OPENJDK_TARGET_CPU" >&6; } 15688 15689 15690 15691 # Check whether --with-target-bits was given. 15692 if test "${with_target_bits+set}" = set; then : 15693 withval=$with_target_bits; 15694 fi 15695 15696 15697 # We have three types of compiles: 15698 # native == normal compilation, target system == build system 15699 # cross == traditional cross compilation, target system != build system; special toolchain needed 15700 # reduced == using native compilers, but with special flags (e.g. -m32) to produce 32-bit builds on 64-bit machines 15701 # 15702 if test "x$OPENJDK_BUILD_AUTOCONF_NAME" != "x$OPENJDK_TARGET_AUTOCONF_NAME"; then 15703 # We're doing a proper cross-compilation 15704 COMPILE_TYPE="cross" 15705 else 15706 COMPILE_TYPE="native" 15707 fi 15708 15709 if test "x$with_target_bits" != x; then 15710 if test "x$COMPILE_TYPE" = "xcross"; then 15711 as_fn_error $? "It is not possible to combine --with-target-bits=X and proper cross-compilation. Choose either." "$LINENO" 5 15712 fi 15713 15714 if test "x$with_target_bits" = x32 && test "x$OPENJDK_TARGET_CPU_BITS" = x64; then 15715 # A reduced build is requested 15716 COMPILE_TYPE="reduced" 15717 OPENJDK_TARGET_CPU_BITS=32 15718 if test "x$OPENJDK_TARGET_CPU_ARCH" = "xx86"; then 15719 OPENJDK_TARGET_CPU=x86 15720 elif test "x$OPENJDK_TARGET_CPU_ARCH" = "xsparc"; then 15721 OPENJDK_TARGET_CPU=sparc 15722 else 15723 as_fn_error $? "Reduced build (--with-target-bits=32) is only supported on x86_64 and sparcv9" "$LINENO" 5 15724 fi 15725 elif test "x$with_target_bits" = x64 && test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 15726 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 15727 elif test "x$with_target_bits" = "x$OPENJDK_TARGET_CPU_BITS"; then 15728 { $as_echo "$as_me:${as_lineno-$LINENO}: --with-target-bits are set to build platform address size; argument has no meaning" >&5 15729 $as_echo "$as_me: --with-target-bits are set to build platform address size; argument has no meaning" >&6;} 15730 else 15731 as_fn_error $? "--with-target-bits can only be 32 or 64, you specified $with_target_bits!" "$LINENO" 5 15732 fi 15733 fi 15734 15735 15736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking compilation type" >&5 15737 $as_echo_n "checking compilation type... " >&6; } 15738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $COMPILE_TYPE" >&5 15739 $as_echo "$COMPILE_TYPE" >&6; } 15740 15741 15742 if test "x$OPENJDK_TARGET_OS" = "xsolaris"; then 15743 REQUIRED_OS_NAME=SunOS 15744 REQUIRED_OS_VERSION=5.10 15745 fi 15746 if test "x$OPENJDK_TARGET_OS" = "xlinux"; then 15747 REQUIRED_OS_NAME=Linux 15748 REQUIRED_OS_VERSION=2.6 15749 fi 15750 if test "x$OPENJDK_TARGET_OS" = "xwindows"; then 15751 REQUIRED_OS_NAME=Windows 15752 if test "x$OPENJDK_TARGET_CPU_BITS" = "x64"; then 15753 REQUIRED_OS_VERSION=5.2 15754 else 15755 REQUIRED_OS_VERSION=5.1 15756 fi 15757 fi 15758 if test "x$OPENJDK_TARGET_OS" = "xmacosx"; then 15759 REQUIRED_OS_NAME=Darwin 15760 REQUIRED_OS_VERSION=11.2 15761 fi 15762 if test "x$OPENJDK_TARGET_OS" = "xaix"; then 15763 REQUIRED_OS_NAME=AIX 15764 REQUIRED_OS_VERSION=7.1 15765 fi 15766 15767 15768 15769 15770 15771 15772 # Also store the legacy naming of the cpu. 15773 # Ie i586 and amd64 instead of x86 and x86_64 15774 OPENJDK_TARGET_CPU_LEGACY="$OPENJDK_TARGET_CPU" 15775 if test "x$OPENJDK_TARGET_CPU" = xx86; then 15776 OPENJDK_TARGET_CPU_LEGACY="i586" 15777 elif test "x$OPENJDK_TARGET_OS" != xmacosx && test "x$OPENJDK_TARGET_CPU" = xx86_64; then 15778 # On all platforms except MacOSX replace x86_64 with amd64. 15779 OPENJDK_TARGET_CPU_LEGACY="amd64" 15780 fi 15781 15782 15783 # And the second legacy naming of the cpu. 15784 # Ie i386 and amd64 instead of x86 and x86_64. 15785 OPENJDK_TARGET_CPU_LEGACY_LIB="$OPENJDK_TARGET_CPU" 15786 if test "x$OPENJDK_TARGET_CPU" = xx86; then 15787 OPENJDK_TARGET_CPU_LEGACY_LIB="i386" 15788 elif test "x$OPENJDK_TARGET_CPU" = xx86_64; then 15789 OPENJDK_TARGET_CPU_LEGACY_LIB="amd64" 15790 fi 15791 15792 15793 # This is the name of the cpu (but using i386 and amd64 instead of 15794 # x86 and x86_64, respectively), preceeded by a /, to be used when 15795 # locating libraries. On macosx, it's empty, though. 15796 OPENJDK_TARGET_CPU_LIBDIR="/$OPENJDK_TARGET_CPU_LEGACY_LIB" 15797 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 15798 OPENJDK_TARGET_CPU_LIBDIR="" 15799 fi 15800 15801 15802 # OPENJDK_TARGET_CPU_ISADIR is normally empty. On 64-bit Solaris systems, it is set to 15803 # /amd64 or /sparcv9. This string is appended to some library paths, like this: 15804 # /usr/lib${OPENJDK_TARGET_CPU_ISADIR}/libexample.so 15805 OPENJDK_TARGET_CPU_ISADIR="" 15806 if test "x$OPENJDK_TARGET_OS" = xsolaris; then 15807 if test "x$OPENJDK_TARGET_CPU" = xx86_64; then 15808 OPENJDK_TARGET_CPU_ISADIR="/amd64" 15809 elif test "x$OPENJDK_TARGET_CPU" = xsparcv9; then 15810 OPENJDK_TARGET_CPU_ISADIR="/sparcv9" 15811 fi 15812 fi 15813 15814 15815 # Setup OPENJDK_TARGET_CPU_OSARCH, which is used to set the os.arch Java system property 15816 OPENJDK_TARGET_CPU_OSARCH="$OPENJDK_TARGET_CPU" 15817 if test "x$OPENJDK_TARGET_OS" = xlinux && test "x$OPENJDK_TARGET_CPU" = xx86; then 15818 # On linux only, we replace x86 with i386. 15819 OPENJDK_TARGET_CPU_OSARCH="i386" 15820 elif test "x$OPENJDK_TARGET_OS" != xmacosx && test "x$OPENJDK_TARGET_CPU" = xx86_64; then 15821 # On all platforms except macosx, we replace x86_64 with amd64. 15822 OPENJDK_TARGET_CPU_OSARCH="amd64" 15823 fi 15824 15825 15826 OPENJDK_TARGET_CPU_JLI="$OPENJDK_TARGET_CPU" 15827 if test "x$OPENJDK_TARGET_CPU" = xx86; then 15828 OPENJDK_TARGET_CPU_JLI="i386" 15829 elif test "x$OPENJDK_TARGET_OS" != xmacosx && test "x$OPENJDK_TARGET_CPU" = xx86_64; then 15830 # On all platforms except macosx, we replace x86_64 with amd64. 15831 OPENJDK_TARGET_CPU_JLI="amd64" 15832 fi 15833 # Now setup the -D flags for building libjli. 15834 OPENJDK_TARGET_CPU_JLI_CFLAGS="-DLIBARCHNAME='\"$OPENJDK_TARGET_CPU_JLI\"'" 15835 if test "x$OPENJDK_TARGET_OS" = xsolaris; then 15836 if test "x$OPENJDK_TARGET_CPU_ARCH" = xsparc; then 15837 OPENJDK_TARGET_CPU_JLI_CFLAGS="$OPENJDK_TARGET_CPU_JLI_CFLAGS -DLIBARCH32NAME='\"sparc\"' -DLIBARCH64NAME='\"sparcv9\"'" 15838 elif test "x$OPENJDK_TARGET_CPU_ARCH" = xx86; then 15839 OPENJDK_TARGET_CPU_JLI_CFLAGS="$OPENJDK_TARGET_CPU_JLI_CFLAGS -DLIBARCH32NAME='\"i386\"' -DLIBARCH64NAME='\"amd64\"'" 15840 fi 15841 fi 15842 15843 15844 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 15845 OPENJDK_TARGET_OS_EXPORT_DIR=macosx 15846 else 15847 OPENJDK_TARGET_OS_EXPORT_DIR=${OPENJDK_TARGET_OS_TYPE} 15848 fi 15849 15850 15851 # The new version string in JDK 9 also defined new naming of OS and ARCH for bundles 15852 # Macosx is osx and x86_64 is x64 15853 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 15854 OPENJDK_TARGET_OS_BUNDLE="osx" 15855 else 15856 OPENJDK_TARGET_OS_BUNDLE="$OPENJDK_TARGET_OS" 15857 fi 15858 if test "x$OPENJDK_TARGET_CPU" = xx86_64; then 15859 OPENJDK_TARGET_CPU_BUNDLE="x64" 15860 else 15861 OPENJDK_TARGET_CPU_BUNDLE="$OPENJDK_TARGET_CPU" 15862 fi 15863 OPENJDK_TARGET_BUNDLE_PLATFORM="${OPENJDK_TARGET_OS_BUNDLE}-${OPENJDK_TARGET_CPU_BUNDLE}" 15864 15865 15866 15867 15868 if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then 15869 A_LP64="LP64:=" 15870 # -D_LP64=1 is only set on linux and mac. Setting on windows causes diff in 15871 # unpack200.exe 15872 if test "x$OPENJDK_TARGET_OS" = xlinux || test "x$OPENJDK_TARGET_OS" = xmacosx; then 15873 OPENJDK_TARGET_ADD_LP64="-D_LP64=1" 15874 fi 15875 fi 15876 LP64=$A_LP64 15877 15878 15879 if test "x$COMPILE_TYPE" = "xcross"; then 15880 # FIXME: ... or should this include reduced builds..? 15881 DEFINE_CROSS_COMPILE_ARCH="CROSS_COMPILE_ARCH:=$OPENJDK_TARGET_CPU_LEGACY" 15882 else 15883 DEFINE_CROSS_COMPILE_ARCH="" 15884 fi 15885 15886 15887 # Convert openjdk platform names to hotspot names 15888 15889 HOTSPOT_TARGET_OS=${OPENJDK_TARGET_OS} 15890 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 15891 HOTSPOT_TARGET_OS=bsd 15892 fi 15893 15894 15895 HOTSPOT_TARGET_OS_TYPE=${OPENJDK_TARGET_OS_TYPE} 15896 if test "x$OPENJDK_TARGET_OS_TYPE" = xunix; then 15897 HOTSPOT_TARGET_OS_TYPE=posix 15898 fi 15899 15900 15901 HOTSPOT_TARGET_CPU=${OPENJDK_TARGET_CPU} 15902 if test "x$OPENJDK_TARGET_CPU" = xx86; then 15903 HOTSPOT_TARGET_CPU=x86_32 15904 elif test "x$OPENJDK_TARGET_CPU" = xsparcv9; then 15905 HOTSPOT_TARGET_CPU=sparc 15906 elif test "x$OPENJDK_TARGET_CPU" = xppc64; then 15907 HOTSPOT_TARGET_CPU=ppc_64 15908 elif test "x$OPENJDK_TARGET_CPU" = xppc64le; then 15909 HOTSPOT_TARGET_CPU=ppc_64 15910 fi 15911 15912 15913 # This is identical with OPENJDK_*, but define anyway for consistency. 15914 HOTSPOT_TARGET_CPU_ARCH=${OPENJDK_TARGET_CPU_ARCH} 15915 15916 15917 # Setup HOTSPOT_TARGET_CPU_DEFINE 15918 if test "x$OPENJDK_TARGET_CPU" = xx86; then 15919 HOTSPOT_TARGET_CPU_DEFINE=IA32 15920 elif test "x$OPENJDK_TARGET_CPU" = xx86_64; then 15921 HOTSPOT_TARGET_CPU_DEFINE=AMD64 15922 elif test "x$OPENJDK_TARGET_CPU" = xsparcv9; then 15923 HOTSPOT_TARGET_CPU_DEFINE=SPARC 15924 elif test "x$OPENJDK_TARGET_CPU" = xaarch64; then 15925 HOTSPOT_TARGET_CPU_DEFINE=AARCH64 15926 elif test "x$OPENJDK_TARGET_CPU" = xppc64; then 15927 HOTSPOT_TARGET_CPU_DEFINE=PPC64 15928 elif test "x$OPENJDK_TARGET_CPU" = xppc64le; then 15929 HOTSPOT_TARGET_CPU_DEFINE=PPC64 15930 15931 # The cpu defines below are for zero, we don't support them directly. 15932 elif test "x$OPENJDK_TARGET_CPU" = xsparc; then 15933 HOTSPOT_TARGET_CPU_DEFINE=SPARC 15934 elif test "x$OPENJDK_TARGET_CPU" = xppc; then 15935 HOTSPOT_TARGET_CPU_DEFINE=PPC32 15936 elif test "x$OPENJDK_TARGET_CPU" = xs390; then 15937 HOTSPOT_TARGET_CPU_DEFINE=S390 15938 elif test "x$OPENJDK_TARGET_CPU" = xs390x; then 15939 HOTSPOT_TARGET_CPU_DEFINE=S390 15940 elif test "x$OPENJDK_TARGET_CPU" != x; then 15941 HOTSPOT_TARGET_CPU_DEFINE=$(echo $OPENJDK_TARGET_CPU | tr a-z A-Z) 15942 fi 15943 15944 15945 15946 15947 # Also store the legacy naming of the cpu. 15948 # Ie i586 and amd64 instead of x86 and x86_64 15949 OPENJDK_BUILD_CPU_LEGACY="$OPENJDK_BUILD_CPU" 15950 if test "x$OPENJDK_BUILD_CPU" = xx86; then 15951 OPENJDK_BUILD_CPU_LEGACY="i586" 15952 elif test "x$OPENJDK_BUILD_OS" != xmacosx && test "x$OPENJDK_BUILD_CPU" = xx86_64; then 15953 # On all platforms except MacOSX replace x86_64 with amd64. 15954 OPENJDK_BUILD_CPU_LEGACY="amd64" 15955 fi 15956 15957 15958 # And the second legacy naming of the cpu. 15959 # Ie i386 and amd64 instead of x86 and x86_64. 15960 OPENJDK_BUILD_CPU_LEGACY_LIB="$OPENJDK_BUILD_CPU" 15961 if test "x$OPENJDK_BUILD_CPU" = xx86; then 15962 OPENJDK_BUILD_CPU_LEGACY_LIB="i386" 15963 elif test "x$OPENJDK_BUILD_CPU" = xx86_64; then 15964 OPENJDK_BUILD_CPU_LEGACY_LIB="amd64" 15965 fi 15966 15967 15968 # This is the name of the cpu (but using i386 and amd64 instead of 15969 # x86 and x86_64, respectively), preceeded by a /, to be used when 15970 # locating libraries. On macosx, it's empty, though. 15971 OPENJDK_BUILD_CPU_LIBDIR="/$OPENJDK_BUILD_CPU_LEGACY_LIB" 15972 if test "x$OPENJDK_BUILD_OS" = xmacosx; then 15973 OPENJDK_BUILD_CPU_LIBDIR="" 15974 fi 15975 15976 15977 # OPENJDK_BUILD_CPU_ISADIR is normally empty. On 64-bit Solaris systems, it is set to 15978 # /amd64 or /sparcv9. This string is appended to some library paths, like this: 15979 # /usr/lib${OPENJDK_BUILD_CPU_ISADIR}/libexample.so 15980 OPENJDK_BUILD_CPU_ISADIR="" 15981 if test "x$OPENJDK_BUILD_OS" = xsolaris; then 15982 if test "x$OPENJDK_BUILD_CPU" = xx86_64; then 15983 OPENJDK_BUILD_CPU_ISADIR="/amd64" 15984 elif test "x$OPENJDK_BUILD_CPU" = xsparcv9; then 15985 OPENJDK_BUILD_CPU_ISADIR="/sparcv9" 15986 fi 15987 fi 15988 15989 15990 # Setup OPENJDK_BUILD_CPU_OSARCH, which is used to set the os.arch Java system property 15991 OPENJDK_BUILD_CPU_OSARCH="$OPENJDK_BUILD_CPU" 15992 if test "x$OPENJDK_BUILD_OS" = xlinux && test "x$OPENJDK_BUILD_CPU" = xx86; then 15993 # On linux only, we replace x86 with i386. 15994 OPENJDK_BUILD_CPU_OSARCH="i386" 15995 elif test "x$OPENJDK_BUILD_OS" != xmacosx && test "x$OPENJDK_BUILD_CPU" = xx86_64; then 15996 # On all platforms except macosx, we replace x86_64 with amd64. 15997 OPENJDK_BUILD_CPU_OSARCH="amd64" 15998 fi 15999 16000 16001 OPENJDK_BUILD_CPU_JLI="$OPENJDK_BUILD_CPU" 16002 if test "x$OPENJDK_BUILD_CPU" = xx86; then 16003 OPENJDK_BUILD_CPU_JLI="i386" 16004 elif test "x$OPENJDK_BUILD_OS" != xmacosx && test "x$OPENJDK_BUILD_CPU" = xx86_64; then 16005 # On all platforms except macosx, we replace x86_64 with amd64. 16006 OPENJDK_BUILD_CPU_JLI="amd64" 16007 fi 16008 # Now setup the -D flags for building libjli. 16009 OPENJDK_BUILD_CPU_JLI_CFLAGS="-DLIBARCHNAME='\"$OPENJDK_BUILD_CPU_JLI\"'" 16010 if test "x$OPENJDK_BUILD_OS" = xsolaris; then 16011 if test "x$OPENJDK_BUILD_CPU_ARCH" = xsparc; then 16012 OPENJDK_BUILD_CPU_JLI_CFLAGS="$OPENJDK_BUILD_CPU_JLI_CFLAGS -DLIBARCH32NAME='\"sparc\"' -DLIBARCH64NAME='\"sparcv9\"'" 16013 elif test "x$OPENJDK_BUILD_CPU_ARCH" = xx86; then 16014 OPENJDK_BUILD_CPU_JLI_CFLAGS="$OPENJDK_BUILD_CPU_JLI_CFLAGS -DLIBARCH32NAME='\"i386\"' -DLIBARCH64NAME='\"amd64\"'" 16015 fi 16016 fi 16017 16018 16019 if test "x$OPENJDK_BUILD_OS" = xmacosx; then 16020 OPENJDK_BUILD_OS_EXPORT_DIR=macosx 16021 else 16022 OPENJDK_BUILD_OS_EXPORT_DIR=${OPENJDK_BUILD_OS_TYPE} 16023 fi 16024 16025 16026 # The new version string in JDK 9 also defined new naming of OS and ARCH for bundles 16027 # Macosx is osx and x86_64 is x64 16028 if test "x$OPENJDK_BUILD_OS" = xmacosx; then 16029 OPENJDK_BUILD_OS_BUNDLE="osx" 16030 else 16031 OPENJDK_BUILD_OS_BUNDLE="$OPENJDK_TARGET_OS" 16032 fi 16033 if test "x$OPENJDK_BUILD_CPU" = xx86_64; then 16034 OPENJDK_BUILD_CPU_BUNDLE="x64" 16035 else 16036 OPENJDK_BUILD_CPU_BUNDLE="$OPENJDK_BUILD_CPU" 16037 fi 16038 OPENJDK_BUILD_BUNDLE_PLATFORM="${OPENJDK_BUILD_OS_BUNDLE}-${OPENJDK_BUILD_CPU_BUNDLE}" 16039 16040 16041 16042 16043 if test "x$OPENJDK_BUILD_CPU_BITS" = x64; then 16044 A_LP64="LP64:=" 16045 # -D_LP64=1 is only set on linux and mac. Setting on windows causes diff in 16046 # unpack200.exe 16047 if test "x$OPENJDK_BUILD_OS" = xlinux || test "x$OPENJDK_BUILD_OS" = xmacosx; then 16048 OPENJDK_BUILD_ADD_LP64="-D_LP64=1" 16049 fi 16050 fi 16051 LP64=$A_LP64 16052 16053 16054 if test "x$COMPILE_TYPE" = "xcross"; then 16055 # FIXME: ... or should this include reduced builds..? 16056 DEFINE_CROSS_COMPILE_ARCH="CROSS_COMPILE_ARCH:=$OPENJDK_BUILD_CPU_LEGACY" 16057 else 16058 DEFINE_CROSS_COMPILE_ARCH="" 16059 fi 16060 16061 16062 # Convert openjdk platform names to hotspot names 16063 16064 HOTSPOT_BUILD_OS=${OPENJDK_BUILD_OS} 16065 if test "x$OPENJDK_BUILD_OS" = xmacosx; then 16066 HOTSPOT_BUILD_OS=bsd 16067 fi 16068 16069 16070 HOTSPOT_BUILD_OS_TYPE=${OPENJDK_BUILD_OS_TYPE} 16071 if test "x$OPENJDK_BUILD_OS_TYPE" = xunix; then 16072 HOTSPOT_BUILD_OS_TYPE=posix 16073 fi 16074 16075 16076 HOTSPOT_BUILD_CPU=${OPENJDK_BUILD_CPU} 16077 if test "x$OPENJDK_BUILD_CPU" = xx86; then 16078 HOTSPOT_BUILD_CPU=x86_32 16079 elif test "x$OPENJDK_BUILD_CPU" = xsparcv9; then 16080 HOTSPOT_BUILD_CPU=sparc 16081 elif test "x$OPENJDK_BUILD_CPU" = xppc64; then 16082 HOTSPOT_BUILD_CPU=ppc_64 16083 elif test "x$OPENJDK_BUILD_CPU" = xppc64le; then 16084 HOTSPOT_BUILD_CPU=ppc_64 16085 fi 16086 16087 16088 # This is identical with OPENJDK_*, but define anyway for consistency. 16089 HOTSPOT_BUILD_CPU_ARCH=${OPENJDK_BUILD_CPU_ARCH} 16090 16091 16092 # Setup HOTSPOT_BUILD_CPU_DEFINE 16093 if test "x$OPENJDK_BUILD_CPU" = xx86; then 16094 HOTSPOT_BUILD_CPU_DEFINE=IA32 16095 elif test "x$OPENJDK_BUILD_CPU" = xx86_64; then 16096 HOTSPOT_BUILD_CPU_DEFINE=AMD64 16097 elif test "x$OPENJDK_BUILD_CPU" = xsparcv9; then 16098 HOTSPOT_BUILD_CPU_DEFINE=SPARC 16099 elif test "x$OPENJDK_BUILD_CPU" = xaarch64; then 16100 HOTSPOT_BUILD_CPU_DEFINE=AARCH64 16101 elif test "x$OPENJDK_BUILD_CPU" = xppc64; then 16102 HOTSPOT_BUILD_CPU_DEFINE=PPC64 16103 elif test "x$OPENJDK_BUILD_CPU" = xppc64le; then 16104 HOTSPOT_BUILD_CPU_DEFINE=PPC64 16105 16106 # The cpu defines below are for zero, we don't support them directly. 16107 elif test "x$OPENJDK_BUILD_CPU" = xsparc; then 16108 HOTSPOT_BUILD_CPU_DEFINE=SPARC 16109 elif test "x$OPENJDK_BUILD_CPU" = xppc; then 16110 HOTSPOT_BUILD_CPU_DEFINE=PPC32 16111 elif test "x$OPENJDK_BUILD_CPU" = xs390; then 16112 HOTSPOT_BUILD_CPU_DEFINE=S390 16113 elif test "x$OPENJDK_BUILD_CPU" = xs390x; then 16114 HOTSPOT_BUILD_CPU_DEFINE=S390 16115 elif test "x$OPENJDK_BUILD_CPU" != x; then 16116 HOTSPOT_BUILD_CPU_DEFINE=$(echo $OPENJDK_BUILD_CPU | tr a-z A-Z) 16117 fi 16118 16119 16120 16121 16122 # ZERO_ARCHDEF is used to enable architecture-specific code. 16123 # This is used in legacy hotspot build. 16124 ZERO_ARCHDEF="$HOTSPOT_TARGET_CPU_DEFINE" 16125 16126 16127 16128 16129 16130 # Continue setting up basic stuff. Most remaining code require fundamental tools. 16131 16132 # Save the current directory this script was started from 16133 CURDIR="$PWD" 16134 16135 # We might need to rewrite ORIGINAL_PATH, if it includes "#", to quote them 16136 # for make. We couldn't do this when we retrieved ORIGINAL_PATH, since SED 16137 # was not available at that time. 16138 REWRITTEN_PATH=`$ECHO "$ORIGINAL_PATH" | $SED -e 's/#/\\\\#/g'` 16139 if test "x$REWRITTEN_PATH" != "x$ORIGINAL_PATH"; then 16140 ORIGINAL_PATH="$REWRITTEN_PATH" 16141 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting ORIGINAL_PATH to $REWRITTEN_PATH" >&5 16142 $as_echo "$as_me: Rewriting ORIGINAL_PATH to $REWRITTEN_PATH" >&6;} 16143 fi 16144 16145 if test "x$OPENJDK_TARGET_OS" = "xwindows"; then 16146 PATH_SEP=";" 16147 16148 SRC_ROOT_LENGTH=`$THEPWDCMD -L|$WC -m` 16149 if test $SRC_ROOT_LENGTH -gt 100; then 16150 as_fn_error $? "Your base path is too long. It is $SRC_ROOT_LENGTH characters long, but only 100 is supported" "$LINENO" 5 16151 fi 16152 16153 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 16154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking cygwin release" >&5 16155 $as_echo_n "checking cygwin release... " >&6; } 16156 CYGWIN_VERSION=`$UNAME -r` 16157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CYGWIN_VERSION" >&5 16158 $as_echo "$CYGWIN_VERSION" >&6; } 16159 WINDOWS_ENV_VENDOR='cygwin' 16160 WINDOWS_ENV_VERSION="$CYGWIN_VERSION" 16161 16162 CYGWIN_VERSION_OLD=`$ECHO $CYGWIN_VERSION | $GREP -e '^1\.0-6'` 16163 if test "x$CYGWIN_VERSION_OLD" != x; then 16164 { $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 16165 $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;} 16166 as_fn_error $? "Cannot continue" "$LINENO" 5 16167 fi 16168 if test "x$CYGPATH" = x; then 16169 as_fn_error $? "Something is wrong with your cygwin installation since I cannot find cygpath.exe in your path" "$LINENO" 5 16170 fi 16171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking cygwin root directory as unix-style path" >&5 16172 $as_echo_n "checking cygwin root directory as unix-style path... " >&6; } 16173 # The cmd output ends with Windows line endings (CR/LF), the grep command will strip that away 16174 cygwin_winpath_root=`cd / ; cmd /c cd | $GREP ".*"` 16175 # Force cygpath to report the proper root by including a trailing space, and then stripping it off again. 16176 CYGWIN_ROOT_PATH=`$CYGPATH -u "$cygwin_winpath_root " | $CUT -f 1 -d " "` 16177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CYGWIN_ROOT_PATH" >&5 16178 $as_echo "$CYGWIN_ROOT_PATH" >&6; } 16179 WINDOWS_ENV_ROOT_PATH="$CYGWIN_ROOT_PATH" 16180 test_cygdrive_prefix=`$ECHO $CYGWIN_ROOT_PATH | $GREP ^/cygdrive/` 16181 if test "x$test_cygdrive_prefix" = x; then 16182 as_fn_error $? "Your cygdrive prefix is not /cygdrive. This is currently not supported. Change with mount -c." "$LINENO" 5 16183 fi 16184 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 16185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking msys release" >&5 16186 $as_echo_n "checking msys release... " >&6; } 16187 MSYS_VERSION=`$UNAME -r` 16188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSYS_VERSION" >&5 16189 $as_echo "$MSYS_VERSION" >&6; } 16190 16191 WINDOWS_ENV_VENDOR='msys' 16192 WINDOWS_ENV_VERSION="$MSYS_VERSION" 16193 16194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking msys root directory as unix-style path" >&5 16195 $as_echo_n "checking msys root directory as unix-style path... " >&6; } 16196 # The cmd output ends with Windows line endings (CR/LF), the grep command will strip that away 16197 MSYS_ROOT_PATH=`cd / ; cmd /c cd | $GREP ".*"` 16198 16199 windows_path="$MSYS_ROOT_PATH" 16200 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 16201 unix_path=`$CYGPATH -u "$windows_path"` 16202 MSYS_ROOT_PATH="$unix_path" 16203 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 16204 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 16205 MSYS_ROOT_PATH="$unix_path" 16206 fi 16207 16208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSYS_ROOT_PATH" >&5 16209 $as_echo "$MSYS_ROOT_PATH" >&6; } 16210 WINDOWS_ENV_ROOT_PATH="$MSYS_ROOT_PATH" 16211 else 16212 as_fn_error $? "Unknown Windows environment. Neither cygwin nor msys was detected." "$LINENO" 5 16213 fi 16214 16215 # Test if windows or unix (cygwin/msys) find is first in path. 16216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what kind of 'find' is first on the PATH" >&5 16217 $as_echo_n "checking what kind of 'find' is first on the PATH... " >&6; } 16218 FIND_BINARY_OUTPUT=`find --version 2>&1` 16219 if test "x`echo $FIND_BINARY_OUTPUT | $GREP GNU`" != x; then 16220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unix style" >&5 16221 $as_echo "unix style" >&6; } 16222 elif test "x`echo $FIND_BINARY_OUTPUT | $GREP FIND`" != x; then 16223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Windows" >&5 16224 $as_echo "Windows" >&6; } 16225 { $as_echo "$as_me:${as_lineno-$LINENO}: Your path contains Windows tools (C:\Windows\system32) before your unix (cygwin or msys) tools." >&5 16226 $as_echo "$as_me: Your path contains Windows tools (C:\Windows\system32) before your unix (cygwin or msys) tools." >&6;} 16227 { $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 16228 $as_echo "$as_me: This will not work. Please correct and make sure /usr/bin (or similar) is first in path." >&6;} 16229 as_fn_error $? "Cannot continue" "$LINENO" 5 16230 else 16231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unknown" >&5 16232 $as_echo "unknown" >&6; } 16233 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: It seems that your find utility is non-standard." >&5 16234 $as_echo "$as_me: WARNING: It seems that your find utility is non-standard." >&2;} 16235 fi 16236 16237 else 16238 PATH_SEP=":" 16239 fi 16240 16241 16242 # We get the top-level directory from the supporting wrappers. 16243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for top-level directory" >&5 16244 $as_echo_n "checking for top-level directory... " >&6; } 16245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOPDIR" >&5 16246 $as_echo "$TOPDIR" >&6; } 16247 16248 16249 # Save the original version of TOPDIR for string comparisons 16250 ORIGINAL_TOPDIR="$TOPDIR" 16251 16252 16253 # We can only call BASIC_FIXUP_PATH after BASIC_CHECK_PATHS_WINDOWS. 16254 16255 # Only process if variable expands to non-empty 16256 16257 if test "x$CURDIR" != x; then 16258 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 16259 16260 # Input might be given as Windows format, start by converting to 16261 # unix format. 16262 path="$CURDIR" 16263 new_path=`$CYGPATH -u "$path"` 16264 16265 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 16266 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 16267 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 16268 # "foo.exe" is OK but "foo" is an error. 16269 # 16270 # This test is therefore slightly more accurate than "test -f" to check for file precense. 16271 # It is also a way to make sure we got the proper file name for the real test later on. 16272 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 16273 if test "x$test_shortpath" = x; then 16274 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CURDIR, which resolves as \"$path\", is invalid." >&5 16275 $as_echo "$as_me: The path of CURDIR, which resolves as \"$path\", is invalid." >&6;} 16276 as_fn_error $? "Cannot locate the the path of CURDIR" "$LINENO" 5 16277 fi 16278 16279 # Call helper function which possibly converts this using DOS-style short mode. 16280 # If so, the updated path is stored in $new_path. 16281 16282 input_path="$new_path" 16283 # Check if we need to convert this using DOS-style short mode. If the path 16284 # contains just simple characters, use it. Otherwise (spaces, weird characters), 16285 # take no chances and rewrite it. 16286 # Note: m4 eats our [], so we need to use [ and ] instead. 16287 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 16288 if test "x$has_forbidden_chars" != x; then 16289 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 16290 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 16291 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 16292 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 16293 # Going to short mode and back again did indeed matter. Since short mode is 16294 # case insensitive, let's make it lowercase to improve readability. 16295 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 16296 # Now convert it back to Unix-style (cygpath) 16297 input_path=`$CYGPATH -u "$shortmode_path"` 16298 new_path="$input_path" 16299 fi 16300 fi 16301 16302 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 16303 if test "x$test_cygdrive_prefix" = x; then 16304 # As a simple fix, exclude /usr/bin since it's not a real path. 16305 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 16306 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 16307 # a path prefixed by /cygdrive for fixpath to work. 16308 new_path="$CYGWIN_ROOT_PATH$input_path" 16309 fi 16310 fi 16311 16312 16313 if test "x$path" != "x$new_path"; then 16314 CURDIR="$new_path" 16315 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting CURDIR to \"$new_path\"" >&5 16316 $as_echo "$as_me: Rewriting CURDIR to \"$new_path\"" >&6;} 16317 fi 16318 16319 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 16320 16321 path="$CURDIR" 16322 has_colon=`$ECHO $path | $GREP ^.:` 16323 new_path="$path" 16324 if test "x$has_colon" = x; then 16325 # Not in mixed or Windows style, start by that. 16326 new_path=`cmd //c echo $path` 16327 fi 16328 16329 16330 input_path="$new_path" 16331 # Check if we need to convert this using DOS-style short mode. If the path 16332 # contains just simple characters, use it. Otherwise (spaces, weird characters), 16333 # take no chances and rewrite it. 16334 # Note: m4 eats our [], so we need to use [ and ] instead. 16335 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 16336 if test "x$has_forbidden_chars" != x; then 16337 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 16338 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 16339 fi 16340 16341 16342 windows_path="$new_path" 16343 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 16344 unix_path=`$CYGPATH -u "$windows_path"` 16345 new_path="$unix_path" 16346 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 16347 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 16348 new_path="$unix_path" 16349 fi 16350 16351 if test "x$path" != "x$new_path"; then 16352 CURDIR="$new_path" 16353 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting CURDIR to \"$new_path\"" >&5 16354 $as_echo "$as_me: Rewriting CURDIR to \"$new_path\"" >&6;} 16355 fi 16356 16357 # Save the first 10 bytes of this path to the storage, so fixpath can work. 16358 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 16359 16360 else 16361 # We're on a unix platform. Hooray! :) 16362 path="$CURDIR" 16363 has_space=`$ECHO "$path" | $GREP " "` 16364 if test "x$has_space" != x; then 16365 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CURDIR, which resolves as \"$path\", is invalid." >&5 16366 $as_echo "$as_me: The path of CURDIR, which resolves as \"$path\", is invalid." >&6;} 16367 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 16368 fi 16369 16370 # Use eval to expand a potential ~ 16371 eval path="$path" 16372 if test ! -f "$path" && test ! -d "$path"; then 16373 as_fn_error $? "The path of CURDIR, which resolves as \"$path\", is not found." "$LINENO" 5 16374 fi 16375 16376 if test -d "$path"; then 16377 CURDIR="`cd "$path"; $THEPWDCMD -L`" 16378 else 16379 dir="`$DIRNAME "$path"`" 16380 base="`$BASENAME "$path"`" 16381 CURDIR="`cd "$dir"; $THEPWDCMD -L`/$base" 16382 fi 16383 fi 16384 fi 16385 16386 16387 # Only process if variable expands to non-empty 16388 16389 if test "x$TOPDIR" != x; then 16390 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 16391 16392 # Input might be given as Windows format, start by converting to 16393 # unix format. 16394 path="$TOPDIR" 16395 new_path=`$CYGPATH -u "$path"` 16396 16397 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 16398 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 16399 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 16400 # "foo.exe" is OK but "foo" is an error. 16401 # 16402 # This test is therefore slightly more accurate than "test -f" to check for file precense. 16403 # It is also a way to make sure we got the proper file name for the real test later on. 16404 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 16405 if test "x$test_shortpath" = x; then 16406 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of TOPDIR, which resolves as \"$path\", is invalid." >&5 16407 $as_echo "$as_me: The path of TOPDIR, which resolves as \"$path\", is invalid." >&6;} 16408 as_fn_error $? "Cannot locate the the path of TOPDIR" "$LINENO" 5 16409 fi 16410 16411 # Call helper function which possibly converts this using DOS-style short mode. 16412 # If so, the updated path is stored in $new_path. 16413 16414 input_path="$new_path" 16415 # Check if we need to convert this using DOS-style short mode. If the path 16416 # contains just simple characters, use it. Otherwise (spaces, weird characters), 16417 # take no chances and rewrite it. 16418 # Note: m4 eats our [], so we need to use [ and ] instead. 16419 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 16420 if test "x$has_forbidden_chars" != x; then 16421 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 16422 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 16423 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 16424 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 16425 # Going to short mode and back again did indeed matter. Since short mode is 16426 # case insensitive, let's make it lowercase to improve readability. 16427 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 16428 # Now convert it back to Unix-style (cygpath) 16429 input_path=`$CYGPATH -u "$shortmode_path"` 16430 new_path="$input_path" 16431 fi 16432 fi 16433 16434 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 16435 if test "x$test_cygdrive_prefix" = x; then 16436 # As a simple fix, exclude /usr/bin since it's not a real path. 16437 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 16438 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 16439 # a path prefixed by /cygdrive for fixpath to work. 16440 new_path="$CYGWIN_ROOT_PATH$input_path" 16441 fi 16442 fi 16443 16444 16445 if test "x$path" != "x$new_path"; then 16446 TOPDIR="$new_path" 16447 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting TOPDIR to \"$new_path\"" >&5 16448 $as_echo "$as_me: Rewriting TOPDIR to \"$new_path\"" >&6;} 16449 fi 16450 16451 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 16452 16453 path="$TOPDIR" 16454 has_colon=`$ECHO $path | $GREP ^.:` 16455 new_path="$path" 16456 if test "x$has_colon" = x; then 16457 # Not in mixed or Windows style, start by that. 16458 new_path=`cmd //c echo $path` 16459 fi 16460 16461 16462 input_path="$new_path" 16463 # Check if we need to convert this using DOS-style short mode. If the path 16464 # contains just simple characters, use it. Otherwise (spaces, weird characters), 16465 # take no chances and rewrite it. 16466 # Note: m4 eats our [], so we need to use [ and ] instead. 16467 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 16468 if test "x$has_forbidden_chars" != x; then 16469 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 16470 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 16471 fi 16472 16473 16474 windows_path="$new_path" 16475 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 16476 unix_path=`$CYGPATH -u "$windows_path"` 16477 new_path="$unix_path" 16478 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 16479 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 16480 new_path="$unix_path" 16481 fi 16482 16483 if test "x$path" != "x$new_path"; then 16484 TOPDIR="$new_path" 16485 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting TOPDIR to \"$new_path\"" >&5 16486 $as_echo "$as_me: Rewriting TOPDIR to \"$new_path\"" >&6;} 16487 fi 16488 16489 # Save the first 10 bytes of this path to the storage, so fixpath can work. 16490 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 16491 16492 else 16493 # We're on a unix platform. Hooray! :) 16494 path="$TOPDIR" 16495 has_space=`$ECHO "$path" | $GREP " "` 16496 if test "x$has_space" != x; then 16497 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of TOPDIR, which resolves as \"$path\", is invalid." >&5 16498 $as_echo "$as_me: The path of TOPDIR, which resolves as \"$path\", is invalid." >&6;} 16499 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 16500 fi 16501 16502 # Use eval to expand a potential ~ 16503 eval path="$path" 16504 if test ! -f "$path" && test ! -d "$path"; then 16505 as_fn_error $? "The path of TOPDIR, which resolves as \"$path\", is not found." "$LINENO" 5 16506 fi 16507 16508 if test -d "$path"; then 16509 TOPDIR="`cd "$path"; $THEPWDCMD -L`" 16510 else 16511 dir="`$DIRNAME "$path"`" 16512 base="`$BASENAME "$path"`" 16513 TOPDIR="`cd "$dir"; $THEPWDCMD -L`/$base" 16514 fi 16515 fi 16516 fi 16517 16518 # SRC_ROOT is a traditional alias for TOPDIR. 16519 SRC_ROOT=$TOPDIR 16520 16521 # Calculate a canonical version of TOPDIR for string comparisons 16522 CANONICAL_TOPDIR=$TOPDIR 16523 16524 if test "x$OPENJDK_BUILD_OS" != xwindows; then 16525 # Follow a chain of symbolic links. Use readlink 16526 # where it exists, else fall back to horribly 16527 # complicated shell code. 16528 if test "x$READLINK_TESTED" != yes; then 16529 # On MacOSX there is a readlink tool with a different 16530 # purpose than the GNU readlink tool. Check the found readlink. 16531 ISGNU=`$READLINK --version 2>&1 | $GREP GNU` 16532 if test "x$ISGNU" = x; then 16533 # A readlink that we do not know how to use. 16534 # Are there other non-GNU readlinks out there? 16535 READLINK_TESTED=yes 16536 READLINK= 16537 fi 16538 fi 16539 16540 if test "x$READLINK" != x; then 16541 CANONICAL_TOPDIR=`$READLINK -f $CANONICAL_TOPDIR` 16542 else 16543 # Save the current directory for restoring afterwards 16544 STARTDIR=$PWD 16545 COUNTER=0 16546 sym_link_dir=`$DIRNAME $CANONICAL_TOPDIR` 16547 sym_link_file=`$BASENAME $CANONICAL_TOPDIR` 16548 cd $sym_link_dir 16549 # Use -P flag to resolve symlinks in directories. 16550 cd `$THEPWDCMD -P` 16551 sym_link_dir=`$THEPWDCMD -P` 16552 # Resolve file symlinks 16553 while test $COUNTER -lt 20; do 16554 ISLINK=`$LS -l $sym_link_dir/$sym_link_file | $GREP '\->' | $SED -e 's/.*-> \(.*\)/\1/'` 16555 if test "x$ISLINK" == x; then 16556 # This is not a symbolic link! We are done! 16557 break 16558 fi 16559 # Again resolve directory symlinks since the target of the just found 16560 # link could be in a different directory 16561 cd `$DIRNAME $ISLINK` 16562 sym_link_dir=`$THEPWDCMD -P` 16563 sym_link_file=`$BASENAME $ISLINK` 16564 let COUNTER=COUNTER+1 16565 done 16566 cd $STARTDIR 16567 CANONICAL_TOPDIR=$sym_link_dir/$sym_link_file 16568 fi 16569 fi 16570 16571 16572 16573 # Locate the directory of this script. 16574 AUTOCONF_DIR=$TOPDIR/common/autoconf 16575 16576 # Setup username (for use in adhoc version strings etc) 16577 # Outer [ ] to quote m4. 16578 USERNAME=`$ECHO "$USER" | $TR -d -c '[a-z][A-Z][0-9]'` 16579 16580 16581 16582 # Check if it's a pure open build or if custom sources are to be used. 16583 16584 # Check whether --enable-openjdk-only was given. 16585 if test "${enable_openjdk_only+set}" = set; then : 16586 enableval=$enable_openjdk_only; 16587 else 16588 enable_openjdk_only="no" 16589 fi 16590 16591 16592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if custom source is suppressed (openjdk-only)" >&5 16593 $as_echo_n "checking if custom source is suppressed (openjdk-only)... " >&6; } 16594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_openjdk_only" >&5 16595 $as_echo "$enable_openjdk_only" >&6; } 16596 if test "x$enable_openjdk_only" = "xyes"; then 16597 SUPPRESS_CUSTOM_EXTENSIONS="true" 16598 elif test "x$enable_openjdk_only" = "xno"; then 16599 SUPPRESS_CUSTOM_EXTENSIONS="false" 16600 else 16601 as_fn_error $? "Invalid value for --enable-openjdk-only: $enable_openjdk_only" "$LINENO" 5 16602 fi 16603 16604 # custom-make-dir is deprecated. Please use your custom-hook.m4 to override 16605 # the IncludeCustomExtension macro. 16606 16607 16608 # Check whether --with-custom-make-dir was given. 16609 if test "${with_custom_make_dir+set}" = set; then : 16610 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 16611 $as_echo "$as_me: WARNING: Option --with-custom-make-dir is deprecated and will be ignored." >&2;} 16612 fi 16613 16614 16615 16616 16617 # These are needed to be able to create a configuration name (and thus the output directory) 16618 16619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of the JDK to build" >&5 16620 $as_echo_n "checking which variant of the JDK to build... " >&6; } 16621 16622 # Check whether --with-jdk-variant was given. 16623 if test "${with_jdk_variant+set}" = set; then : 16624 withval=$with_jdk_variant; 16625 fi 16626 16627 16628 if test "x$with_jdk_variant" = xnormal || test "x$with_jdk_variant" = x; then 16629 JDK_VARIANT="normal" 16630 else 16631 as_fn_error $? "The available JDK variants are: normal" "$LINENO" 5 16632 fi 16633 16634 16635 16636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JDK_VARIANT" >&5 16637 $as_echo "$JDK_VARIANT" >&6; } 16638 16639 16640 DEBUG_LEVEL="release" 16641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which debug level to use" >&5 16642 $as_echo_n "checking which debug level to use... " >&6; } 16643 # Check whether --enable-debug was given. 16644 if test "${enable_debug+set}" = set; then : 16645 enableval=$enable_debug; 16646 ENABLE_DEBUG="${enableval}" 16647 DEBUG_LEVEL="fastdebug" 16648 16649 else 16650 ENABLE_DEBUG="no" 16651 fi 16652 16653 16654 16655 # Check whether --with-debug-level was given. 16656 if test "${with_debug_level+set}" = set; then : 16657 withval=$with_debug_level; 16658 DEBUG_LEVEL="${withval}" 16659 if test "x$ENABLE_DEBUG" = xyes; then 16660 as_fn_error $? "You cannot use both --enable-debug and --with-debug-level at the same time." "$LINENO" 5 16661 fi 16662 16663 fi 16664 16665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEBUG_LEVEL" >&5 16666 $as_echo "$DEBUG_LEVEL" >&6; } 16667 16668 if test "x$DEBUG_LEVEL" != xrelease && \ 16669 test "x$DEBUG_LEVEL" != xoptimized && \ 16670 test "x$DEBUG_LEVEL" != xfastdebug && \ 16671 test "x$DEBUG_LEVEL" != xslowdebug; then 16672 as_fn_error $? "Allowed debug levels are: release, fastdebug, slowdebug and optimized" "$LINENO" 5 16673 fi 16674 16675 # Translate DEBUG_LEVEL to debug level used by Hotspot 16676 HOTSPOT_DEBUG_LEVEL="$DEBUG_LEVEL" 16677 if test "x$DEBUG_LEVEL" = xrelease; then 16678 HOTSPOT_DEBUG_LEVEL="product" 16679 elif test "x$DEBUG_LEVEL" = xslowdebug; then 16680 HOTSPOT_DEBUG_LEVEL="debug" 16681 fi 16682 16683 if test "x$DEBUG_LEVEL" = xoptimized; then 16684 # The debug level 'optimized' is a little special because it is currently only 16685 # applicable to the HotSpot build where it means to build a completely 16686 # optimized version of the VM without any debugging code (like for the 16687 # 'release' debug level which is called 'product' in the HotSpot build) but 16688 # with the exception that it can contain additional code which is otherwise 16689 # protected by '#ifndef PRODUCT' macros. These 'optimized' builds are used to 16690 # test new and/or experimental features which are not intended for customer 16691 # shipment. Because these new features need to be tested and benchmarked in 16692 # real world scenarios, we want to build the containing JDK at the 'release' 16693 # debug level. 16694 DEBUG_LEVEL="release" 16695 fi 16696 16697 16698 16699 16700 16701 16702 # Check whether --with-jvm-variants was given. 16703 if test "${with_jvm_variants+set}" = set; then : 16704 withval=$with_jvm_variants; 16705 fi 16706 16707 16708 if test "x$with_jvm_variants" = x; then 16709 with_jvm_variants="server" 16710 fi 16711 JVM_VARIANTS_OPT="$with_jvm_variants" 16712 16713 # Has the user listed more than one variant? 16714 # Additional [] needed to keep m4 from mangling shell constructs. 16715 if [[ "$JVM_VARIANTS_OPT" =~ "," ]] ; then 16716 BUILDING_MULTIPLE_JVM_VARIANTS=true 16717 else 16718 BUILDING_MULTIPLE_JVM_VARIANTS=false 16719 fi 16720 # Replace the commas with AND for use in the build directory name. 16721 JVM_VARIANTS_WITH_AND=`$ECHO "$JVM_VARIANTS_OPT" | $SED -e 's/,/AND/g'` 16722 16723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variants of the JVM to build" >&5 16724 $as_echo_n "checking which variants of the JVM to build... " >&6; } 16725 # JVM_VARIANTS is a space-separated list. 16726 # Also use minimal, not minimal1 (which is kept for backwards compatibility). 16727 JVM_VARIANTS=`$ECHO $JVM_VARIANTS_OPT | $SED -e 's/,/ /g' -e 's/minimal1/minimal/'` 16728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JVM_VARIANTS" >&5 16729 $as_echo "$JVM_VARIANTS" >&6; } 16730 16731 # Check that the selected variants are valid 16732 16733 # grep filter function inspired by a comment to http://stackoverflow.com/a/1617326 16734 # Notice that the original variant failes on SLES 10 and 11 16735 NEEDLE=${VALID_JVM_VARIANTS// /$'\n'} 16736 STACK=${JVM_VARIANTS// /$'\n'} 16737 INVALID_VARIANTS=`$GREP -Fvx "${NEEDLE}" <<< "${STACK}"` 16738 if test "x$INVALID_VARIANTS" != x; then 16739 { $as_echo "$as_me:${as_lineno-$LINENO}: Unknown variant(s) specified: $INVALID_VARIANTS" >&5 16740 $as_echo "$as_me: Unknown variant(s) specified: $INVALID_VARIANTS" >&6;} 16741 as_fn_error $? "The available JVM variants are: $VALID_JVM_VARIANTS" "$LINENO" 5 16742 fi 16743 16744 # All "special" variants share the same output directory ("server") 16745 VALID_MULTIPLE_JVM_VARIANTS="server client minimal" 16746 NEEDLE=${VALID_MULTIPLE_JVM_VARIANTS// /$'\n'} 16747 STACK=${JVM_VARIANTS// /$'\n'} 16748 INVALID_MULTIPLE_VARIANTS=`$GREP -Fvx "${NEEDLE}" <<< "${STACK}"` 16749 if test "x$INVALID_MULTIPLE_VARIANTS" != x && test "x$BUILDING_MULTIPLE_JVM_VARIANTS" = xtrue; then 16750 as_fn_error $? "You cannot build multiple variants with anything else than $VALID_MULTIPLE_JVM_VARIANTS." "$LINENO" 5 16751 fi 16752 16753 16754 16755 16756 if [[ " $JVM_VARIANTS " =~ " zero " ]] || [[ " $JVM_VARIANTS " =~ " zeroshark " ]] ; then 16757 # zero behaves as a platform and rewrites these values. This is really weird. :( 16758 # We are guaranteed that we do not build any other variants when building zero. 16759 HOTSPOT_TARGET_CPU=zero 16760 HOTSPOT_TARGET_CPU_ARCH=zero 16761 fi 16762 16763 16764 # With basic setup done, call the custom early hook. 16765 16766 16767 # Check if we have devkits, extra paths or sysroot set. 16768 16769 16770 # Check whether --with-devkit was given. 16771 if test "${with_devkit+set}" = set; then : 16772 withval=$with_devkit; 16773 16774 # Only process if variable expands to non-empty 16775 16776 if test "x$with_devkit" != x; then 16777 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 16778 16779 # Input might be given as Windows format, start by converting to 16780 # unix format. 16781 path="$with_devkit" 16782 new_path=`$CYGPATH -u "$path"` 16783 16784 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 16785 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 16786 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 16787 # "foo.exe" is OK but "foo" is an error. 16788 # 16789 # This test is therefore slightly more accurate than "test -f" to check for file precense. 16790 # It is also a way to make sure we got the proper file name for the real test later on. 16791 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 16792 if test "x$test_shortpath" = x; then 16793 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of with_devkit, which resolves as \"$path\", is invalid." >&5 16794 $as_echo "$as_me: The path of with_devkit, which resolves as \"$path\", is invalid." >&6;} 16795 as_fn_error $? "Cannot locate the the path of with_devkit" "$LINENO" 5 16796 fi 16797 16798 # Call helper function which possibly converts this using DOS-style short mode. 16799 # If so, the updated path is stored in $new_path. 16800 16801 input_path="$new_path" 16802 # Check if we need to convert this using DOS-style short mode. If the path 16803 # contains just simple characters, use it. Otherwise (spaces, weird characters), 16804 # take no chances and rewrite it. 16805 # Note: m4 eats our [], so we need to use [ and ] instead. 16806 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 16807 if test "x$has_forbidden_chars" != x; then 16808 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 16809 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 16810 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 16811 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 16812 # Going to short mode and back again did indeed matter. Since short mode is 16813 # case insensitive, let's make it lowercase to improve readability. 16814 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 16815 # Now convert it back to Unix-style (cygpath) 16816 input_path=`$CYGPATH -u "$shortmode_path"` 16817 new_path="$input_path" 16818 fi 16819 fi 16820 16821 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 16822 if test "x$test_cygdrive_prefix" = x; then 16823 # As a simple fix, exclude /usr/bin since it's not a real path. 16824 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 16825 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 16826 # a path prefixed by /cygdrive for fixpath to work. 16827 new_path="$CYGWIN_ROOT_PATH$input_path" 16828 fi 16829 fi 16830 16831 16832 if test "x$path" != "x$new_path"; then 16833 with_devkit="$new_path" 16834 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting with_devkit to \"$new_path\"" >&5 16835 $as_echo "$as_me: Rewriting with_devkit to \"$new_path\"" >&6;} 16836 fi 16837 16838 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 16839 16840 path="$with_devkit" 16841 has_colon=`$ECHO $path | $GREP ^.:` 16842 new_path="$path" 16843 if test "x$has_colon" = x; then 16844 # Not in mixed or Windows style, start by that. 16845 new_path=`cmd //c echo $path` 16846 fi 16847 16848 16849 input_path="$new_path" 16850 # Check if we need to convert this using DOS-style short mode. If the path 16851 # contains just simple characters, use it. Otherwise (spaces, weird characters), 16852 # take no chances and rewrite it. 16853 # Note: m4 eats our [], so we need to use [ and ] instead. 16854 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 16855 if test "x$has_forbidden_chars" != x; then 16856 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 16857 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 16858 fi 16859 16860 16861 windows_path="$new_path" 16862 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 16863 unix_path=`$CYGPATH -u "$windows_path"` 16864 new_path="$unix_path" 16865 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 16866 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 16867 new_path="$unix_path" 16868 fi 16869 16870 if test "x$path" != "x$new_path"; then 16871 with_devkit="$new_path" 16872 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting with_devkit to \"$new_path\"" >&5 16873 $as_echo "$as_me: Rewriting with_devkit to \"$new_path\"" >&6;} 16874 fi 16875 16876 # Save the first 10 bytes of this path to the storage, so fixpath can work. 16877 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 16878 16879 else 16880 # We're on a unix platform. Hooray! :) 16881 path="$with_devkit" 16882 has_space=`$ECHO "$path" | $GREP " "` 16883 if test "x$has_space" != x; then 16884 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of with_devkit, which resolves as \"$path\", is invalid." >&5 16885 $as_echo "$as_me: The path of with_devkit, which resolves as \"$path\", is invalid." >&6;} 16886 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 16887 fi 16888 16889 # Use eval to expand a potential ~ 16890 eval path="$path" 16891 if test ! -f "$path" && test ! -d "$path"; then 16892 as_fn_error $? "The path of with_devkit, which resolves as \"$path\", is not found." "$LINENO" 5 16893 fi 16894 16895 if test -d "$path"; then 16896 with_devkit="`cd "$path"; $THEPWDCMD -L`" 16897 else 16898 dir="`$DIRNAME "$path"`" 16899 base="`$BASENAME "$path"`" 16900 with_devkit="`cd "$dir"; $THEPWDCMD -L`/$base" 16901 fi 16902 fi 16903 fi 16904 16905 DEVKIT_ROOT="$with_devkit" 16906 # Check for a meta data info file in the root of the devkit 16907 if test -f "$DEVKIT_ROOT/devkit.info"; then 16908 . $DEVKIT_ROOT/devkit.info 16909 # This potentially sets the following: 16910 # A descriptive name of the devkit 16911 16912 if test "x$DEVKIT_NAME" = x; then 16913 eval DEVKIT_NAME="\${DEVKIT_NAME_${OPENJDK_TARGET_CPU}}" 16914 fi 16915 16916 # Corresponds to --with-extra-path 16917 16918 if test "x$DEVKIT_EXTRA_PATH" = x; then 16919 eval DEVKIT_EXTRA_PATH="\${DEVKIT_EXTRA_PATH_${OPENJDK_TARGET_CPU}}" 16920 fi 16921 16922 # Corresponds to --with-toolchain-path 16923 16924 if test "x$DEVKIT_TOOLCHAIN_PATH" = x; then 16925 eval DEVKIT_TOOLCHAIN_PATH="\${DEVKIT_TOOLCHAIN_PATH_${OPENJDK_TARGET_CPU}}" 16926 fi 16927 16928 # Corresponds to --with-sysroot 16929 16930 if test "x$DEVKIT_SYSROOT" = x; then 16931 eval DEVKIT_SYSROOT="\${DEVKIT_SYSROOT_${OPENJDK_TARGET_CPU}}" 16932 fi 16933 16934 16935 # Identifies the Visual Studio version in the devkit 16936 16937 if test "x$DEVKIT_VS_VERSION" = x; then 16938 eval DEVKIT_VS_VERSION="\${DEVKIT_VS_VERSION_${OPENJDK_TARGET_CPU}}" 16939 fi 16940 16941 # The Visual Studio include environment variable 16942 16943 if test "x$DEVKIT_VS_INCLUDE" = x; then 16944 eval DEVKIT_VS_INCLUDE="\${DEVKIT_VS_INCLUDE_${OPENJDK_TARGET_CPU}}" 16945 fi 16946 16947 # The Visual Studio lib environment variable 16948 16949 if test "x$DEVKIT_VS_LIB" = x; then 16950 eval DEVKIT_VS_LIB="\${DEVKIT_VS_LIB_${OPENJDK_TARGET_CPU}}" 16951 fi 16952 16953 # Corresponds to --with-msvcr-dll 16954 16955 if test "x$DEVKIT_MSVCR_DLL" = x; then 16956 eval DEVKIT_MSVCR_DLL="\${DEVKIT_MSVCR_DLL_${OPENJDK_TARGET_CPU}}" 16957 fi 16958 16959 # Corresponds to --with-msvcp-dll 16960 16961 if test "x$DEVKIT_MSVCP_DLL" = x; then 16962 eval DEVKIT_MSVCP_DLL="\${DEVKIT_MSVCP_DLL_${OPENJDK_TARGET_CPU}}" 16963 fi 16964 16965 fi 16966 16967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for devkit" >&5 16968 $as_echo_n "checking for devkit... " >&6; } 16969 if test "x$DEVKIT_NAME" != x; then 16970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEVKIT_NAME in $DEVKIT_ROOT" >&5 16971 $as_echo "$DEVKIT_NAME in $DEVKIT_ROOT" >&6; } 16972 else 16973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEVKIT_ROOT" >&5 16974 $as_echo "$DEVKIT_ROOT" >&6; } 16975 fi 16976 16977 16978 if test "x$DEVKIT_EXTRA_PATH" != x; then 16979 if test "x$EXTRA_PATH" = x; then 16980 EXTRA_PATH="$DEVKIT_EXTRA_PATH" 16981 else 16982 EXTRA_PATH="$DEVKIT_EXTRA_PATH:$EXTRA_PATH" 16983 fi 16984 fi 16985 16986 16987 # Fallback default of just /bin if DEVKIT_PATH is not defined 16988 if test "x$DEVKIT_TOOLCHAIN_PATH" = x; then 16989 DEVKIT_TOOLCHAIN_PATH="$DEVKIT_ROOT/bin" 16990 fi 16991 16992 if test "x$DEVKIT_TOOLCHAIN_PATH" != x; then 16993 if test "x$TOOLCHAIN_PATH" = x; then 16994 TOOLCHAIN_PATH="$DEVKIT_TOOLCHAIN_PATH" 16995 else 16996 TOOLCHAIN_PATH="$DEVKIT_TOOLCHAIN_PATH:$TOOLCHAIN_PATH" 16997 fi 16998 fi 16999 17000 17001 # If DEVKIT_SYSROOT is set, use that, otherwise try a couple of known 17002 # places for backwards compatiblity. 17003 if test "x$DEVKIT_SYSROOT" != x; then 17004 SYSROOT="$DEVKIT_SYSROOT" 17005 elif test -d "$DEVKIT_ROOT/$host_alias/libc"; then 17006 SYSROOT="$DEVKIT_ROOT/$host_alias/libc" 17007 elif test -d "$DEVKIT_ROOT/$host/sys-root"; then 17008 SYSROOT="$DEVKIT_ROOT/$host/sys-root" 17009 fi 17010 17011 17012 fi 17013 17014 17015 # You can force the sysroot if the sysroot encoded into the compiler tools 17016 # is not correct. 17017 17018 # Check whether --with-sys-root was given. 17019 if test "${with_sys_root+set}" = set; then : 17020 withval=$with_sys_root; SYSROOT=$with_sys_root 17021 17022 fi 17023 17024 17025 17026 # Check whether --with-sysroot was given. 17027 if test "${with_sysroot+set}" = set; then : 17028 withval=$with_sysroot; SYSROOT=$with_sysroot 17029 17030 fi 17031 17032 17033 17034 # Check whether --with-tools-dir was given. 17035 if test "${with_tools_dir+set}" = set; then : 17036 withval=$with_tools_dir; 17037 if test "x$with_tools_dir" != x; then 17038 if test "x$TOOLCHAIN_PATH" = x; then 17039 TOOLCHAIN_PATH="$with_tools_dir" 17040 else 17041 TOOLCHAIN_PATH="$with_tools_dir:$TOOLCHAIN_PATH" 17042 fi 17043 fi 17044 17045 17046 fi 17047 17048 17049 17050 # Check whether --with-toolchain-path was given. 17051 if test "${with_toolchain_path+set}" = set; then : 17052 withval=$with_toolchain_path; 17053 if test "x$with_toolchain_path" != x; then 17054 if test "x$TOOLCHAIN_PATH" = x; then 17055 TOOLCHAIN_PATH="$with_toolchain_path" 17056 else 17057 TOOLCHAIN_PATH="$with_toolchain_path:$TOOLCHAIN_PATH" 17058 fi 17059 fi 17060 17061 17062 fi 17063 17064 17065 17066 # Check whether --with-extra-path was given. 17067 if test "${with_extra_path+set}" = set; then : 17068 withval=$with_extra_path; 17069 if test "x$with_extra_path" != x; then 17070 if test "x$EXTRA_PATH" = x; then 17071 EXTRA_PATH="$with_extra_path" 17072 else 17073 EXTRA_PATH="$with_extra_path:$EXTRA_PATH" 17074 fi 17075 fi 17076 17077 17078 fi 17079 17080 17081 if test "x$OPENJDK_BUILD_OS" = "xmacosx"; then 17082 # If a devkit has been supplied, find xcodebuild in the toolchain_path. 17083 # If not, detect if Xcode is installed by running xcodebuild -version 17084 # if no Xcode installed, xcodebuild exits with 1 17085 # if Xcode is installed, even if xcode-select is misconfigured, then it exits with 0 17086 if test "x$DEVKIT_ROOT" != x || /usr/bin/xcodebuild -version >/dev/null 2>&1; then 17087 # We need to use xcodebuild in the toolchain dir provided by the user, this will 17088 # fall back on the stub binary in /usr/bin/xcodebuild 17089 # Extract the first word of "xcodebuild", so it can be a program name with args. 17090 set dummy xcodebuild; ac_word=$2 17091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17092 $as_echo_n "checking for $ac_word... " >&6; } 17093 if ${ac_cv_path_XCODEBUILD+:} false; then : 17094 $as_echo_n "(cached) " >&6 17095 else 17096 case $XCODEBUILD in 17097 [\\/]* | ?:[\\/]*) 17098 ac_cv_path_XCODEBUILD="$XCODEBUILD" # Let the user override the test with a path. 17099 ;; 17100 *) 17101 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17102 for as_dir in $TOOLCHAIN_PATH 17103 do 17104 IFS=$as_save_IFS 17105 test -z "$as_dir" && as_dir=. 17106 for ac_exec_ext in '' $ac_executable_extensions; do 17107 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 17108 ac_cv_path_XCODEBUILD="$as_dir/$ac_word$ac_exec_ext" 17109 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 17110 break 2 17111 fi 17112 done 17113 done 17114 IFS=$as_save_IFS 17115 17116 test -z "$ac_cv_path_XCODEBUILD" && ac_cv_path_XCODEBUILD="/usr/bin/xcodebuild" 17117 ;; 17118 esac 17119 fi 17120 XCODEBUILD=$ac_cv_path_XCODEBUILD 17121 if test -n "$XCODEBUILD"; then 17122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XCODEBUILD" >&5 17123 $as_echo "$XCODEBUILD" >&6; } 17124 else 17125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17126 $as_echo "no" >&6; } 17127 fi 17128 17129 17130 else 17131 # this should result in SYSROOT being empty, unless --with-sysroot is provided 17132 # when only the command line tools are installed there are no SDKs, so headers 17133 # are copied into the system frameworks 17134 XCODEBUILD= 17135 17136 fi 17137 17138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sdk name" >&5 17139 $as_echo_n "checking for sdk name... " >&6; } 17140 17141 # Check whether --with-sdk-name was given. 17142 if test "${with_sdk_name+set}" = set; then : 17143 withval=$with_sdk_name; SDKNAME=$with_sdk_name 17144 17145 fi 17146 17147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SDKNAME" >&5 17148 $as_echo "$SDKNAME" >&6; } 17149 17150 # if toolchain path is specified then don't rely on system headers, they may not compile 17151 HAVE_SYSTEM_FRAMEWORK_HEADERS=0 17152 test -z "$TOOLCHAIN_PATH" && \ 17153 HAVE_SYSTEM_FRAMEWORK_HEADERS=`test ! -f /System/Library/Frameworks/Foundation.framework/Headers/Foundation.h; echo $?` 17154 17155 if test -z "$SYSROOT"; then 17156 if test -n "$XCODEBUILD"; then 17157 # if we don't have system headers, use default SDK name (last resort) 17158 if test -z "$SDKNAME" -a $HAVE_SYSTEM_FRAMEWORK_HEADERS -eq 0; then 17159 SDKNAME=${SDKNAME:-macosx} 17160 fi 17161 17162 if test -n "$SDKNAME"; then 17163 # Call xcodebuild to determine SYSROOT 17164 SYSROOT=`"$XCODEBUILD" -sdk $SDKNAME -version | $GREP '^Path: ' | $SED 's/Path: //'` 17165 fi 17166 else 17167 if test $HAVE_SYSTEM_FRAMEWORK_HEADERS -eq 0; then 17168 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 17169 fi 17170 fi 17171 else 17172 # warn user if --with-sdk-name was also set 17173 if test -n "$with_sdk_name"; then 17174 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Both SYSROOT and --with-sdk-name are set, only SYSROOT will be used" >&5 17175 $as_echo "$as_me: WARNING: Both SYSROOT and --with-sdk-name are set, only SYSROOT will be used" >&2;} 17176 fi 17177 fi 17178 17179 if test $HAVE_SYSTEM_FRAMEWORK_HEADERS -eq 0 -a -z "$SYSROOT"; then 17180 # If no system framework headers, then SYSROOT must be set, or we won't build 17181 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 17182 fi 17183 17184 # Perform a basic sanity test 17185 if test ! -f "$SYSROOT/System/Library/Frameworks/Foundation.framework/Headers/Foundation.h"; then 17186 if test -z "$SYSROOT"; then 17187 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 17188 else 17189 as_fn_error $? "Invalid SDK or SYSROOT path, dependent framework headers not found" "$LINENO" 5 17190 fi 17191 fi 17192 17193 # set SDKROOT too, Xcode tools will pick it up 17194 SDKROOT=$SYSROOT 17195 17196 fi 17197 17198 # Prepend the extra path to the global path 17199 17200 if test "x$EXTRA_PATH" != x; then 17201 if test "x$PATH" = x; then 17202 PATH="$EXTRA_PATH" 17203 else 17204 PATH="$EXTRA_PATH:$PATH" 17205 fi 17206 fi 17207 17208 17209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 17210 $as_echo_n "checking for sysroot... " >&6; } 17211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SYSROOT" >&5 17212 $as_echo "$SYSROOT" >&6; } 17213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for toolchain path" >&5 17214 $as_echo_n "checking for toolchain path... " >&6; } 17215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOOLCHAIN_PATH" >&5 17216 $as_echo "$TOOLCHAIN_PATH" >&6; } 17217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for extra path" >&5 17218 $as_echo_n "checking for extra path... " >&6; } 17219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXTRA_PATH" >&5 17220 $as_echo "$EXTRA_PATH" >&6; } 17221 17222 17223 # To properly create a configuration name, we need to have the OpenJDK target 17224 # and options (variants and debug level) parsed. 17225 17226 17227 17228 # Check whether --with-conf-name was given. 17229 if test "${with_conf_name+set}" = set; then : 17230 withval=$with_conf_name; CONF_NAME=${with_conf_name} 17231 fi 17232 17233 17234 # Test from where we are running configure, in or outside of src root. 17235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to store configuration" >&5 17236 $as_echo_n "checking where to store configuration... " >&6; } 17237 if test "x$CURDIR" = "x$SRC_ROOT" || test "x$CURDIR" = "x$SRC_ROOT/common" \ 17238 || test "x$CURDIR" = "x$SRC_ROOT/common/autoconf" \ 17239 || test "x$CURDIR" = "x$SRC_ROOT/make" ; then 17240 # We are running configure from the src root. 17241 # Create a default ./build/target-variant-debuglevel output root. 17242 if test "x${CONF_NAME}" = x; then 17243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: in default location" >&5 17244 $as_echo "in default location" >&6; } 17245 CONF_NAME="${OPENJDK_TARGET_OS}-${OPENJDK_TARGET_CPU}-${JDK_VARIANT}-${JVM_VARIANTS_WITH_AND}-${DEBUG_LEVEL}" 17246 else 17247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: in build directory with custom name" >&5 17248 $as_echo "in build directory with custom name" >&6; } 17249 fi 17250 OUTPUT_ROOT="$SRC_ROOT/build/${CONF_NAME}" 17251 $MKDIR -p "$OUTPUT_ROOT" 17252 if test ! -d "$OUTPUT_ROOT"; then 17253 as_fn_error $? "Could not create build directory $OUTPUT_ROOT" "$LINENO" 5 17254 fi 17255 else 17256 # We are running configure from outside of the src dir. 17257 # Then use the current directory as output dir! 17258 # If configuration is situated in normal build directory, just use the build 17259 # directory name as configuration name, otherwise use the complete path. 17260 if test "x${CONF_NAME}" = x; then 17261 CONF_NAME=`$ECHO $CURDIR | $SED -e "s!^${SRC_ROOT}/build/!!"` 17262 fi 17263 OUTPUT_ROOT="$CURDIR" 17264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: in current directory" >&5 17265 $as_echo "in current directory" >&6; } 17266 17267 # WARNING: This might be a bad thing to do. You need to be sure you want to 17268 # have a configuration in this directory. Do some sanity checks! 17269 17270 if test ! -e "$OUTPUT_ROOT/spec.gmk"; then 17271 # If we have a spec.gmk, we have run here before and we are OK. Otherwise, check for 17272 # other files 17273 files_present=`$LS $OUTPUT_ROOT` 17274 # Configure has already touched config.log and confdefs.h in the current dir when this check 17275 # is performed. 17276 filtered_files=`$ECHO "$files_present" \ 17277 | $SED -e 's/config.log//g' \ 17278 -e 's/configure.log//g' \ 17279 -e 's/confdefs.h//g' \ 17280 -e 's/ //g' \ 17281 | $TR -d '\n'` 17282 if test "x$filtered_files" != x; then 17283 { $as_echo "$as_me:${as_lineno-$LINENO}: Current directory is $CURDIR." >&5 17284 $as_echo "$as_me: Current directory is $CURDIR." >&6;} 17285 { $as_echo "$as_me:${as_lineno-$LINENO}: Since this is not the source root, configure will output the configuration here" >&5 17286 $as_echo "$as_me: Since this is not the source root, configure will output the configuration here" >&6;} 17287 { $as_echo "$as_me:${as_lineno-$LINENO}: (as opposed to creating a configuration in <src_root>/build/<conf-name>)." >&5 17288 $as_echo "$as_me: (as opposed to creating a configuration in <src_root>/build/<conf-name>)." >&6;} 17289 { $as_echo "$as_me:${as_lineno-$LINENO}: However, this directory is not empty. This is not allowed, since it could" >&5 17290 $as_echo "$as_me: However, this directory is not empty. This is not allowed, since it could" >&6;} 17291 { $as_echo "$as_me:${as_lineno-$LINENO}: seriously mess up just about everything." >&5 17292 $as_echo "$as_me: seriously mess up just about everything." >&6;} 17293 { $as_echo "$as_me:${as_lineno-$LINENO}: Try 'cd $SRC_ROOT' and restart configure" >&5 17294 $as_echo "$as_me: Try 'cd $SRC_ROOT' and restart configure" >&6;} 17295 { $as_echo "$as_me:${as_lineno-$LINENO}: (or create a new empty directory and cd to it)." >&5 17296 $as_echo "$as_me: (or create a new empty directory and cd to it)." >&6;} 17297 as_fn_error $? "Will not continue creating configuration in $CURDIR" "$LINENO" 5 17298 fi 17299 fi 17300 fi 17301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what configuration name to use" >&5 17302 $as_echo_n "checking what configuration name to use... " >&6; } 17303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CONF_NAME" >&5 17304 $as_echo "$CONF_NAME" >&6; } 17305 17306 17307 # Only process if variable expands to non-empty 17308 17309 if test "x$OUTPUT_ROOT" != x; then 17310 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 17311 17312 # Input might be given as Windows format, start by converting to 17313 # unix format. 17314 path="$OUTPUT_ROOT" 17315 new_path=`$CYGPATH -u "$path"` 17316 17317 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 17318 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 17319 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 17320 # "foo.exe" is OK but "foo" is an error. 17321 # 17322 # This test is therefore slightly more accurate than "test -f" to check for file precense. 17323 # It is also a way to make sure we got the proper file name for the real test later on. 17324 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 17325 if test "x$test_shortpath" = x; then 17326 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OUTPUT_ROOT, which resolves as \"$path\", is invalid." >&5 17327 $as_echo "$as_me: The path of OUTPUT_ROOT, which resolves as \"$path\", is invalid." >&6;} 17328 as_fn_error $? "Cannot locate the the path of OUTPUT_ROOT" "$LINENO" 5 17329 fi 17330 17331 # Call helper function which possibly converts this using DOS-style short mode. 17332 # If so, the updated path is stored in $new_path. 17333 17334 input_path="$new_path" 17335 # Check if we need to convert this using DOS-style short mode. If the path 17336 # contains just simple characters, use it. Otherwise (spaces, weird characters), 17337 # take no chances and rewrite it. 17338 # Note: m4 eats our [], so we need to use [ and ] instead. 17339 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 17340 if test "x$has_forbidden_chars" != x; then 17341 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 17342 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 17343 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 17344 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 17345 # Going to short mode and back again did indeed matter. Since short mode is 17346 # case insensitive, let's make it lowercase to improve readability. 17347 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 17348 # Now convert it back to Unix-style (cygpath) 17349 input_path=`$CYGPATH -u "$shortmode_path"` 17350 new_path="$input_path" 17351 fi 17352 fi 17353 17354 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 17355 if test "x$test_cygdrive_prefix" = x; then 17356 # As a simple fix, exclude /usr/bin since it's not a real path. 17357 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 17358 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 17359 # a path prefixed by /cygdrive for fixpath to work. 17360 new_path="$CYGWIN_ROOT_PATH$input_path" 17361 fi 17362 fi 17363 17364 17365 if test "x$path" != "x$new_path"; then 17366 OUTPUT_ROOT="$new_path" 17367 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting OUTPUT_ROOT to \"$new_path\"" >&5 17368 $as_echo "$as_me: Rewriting OUTPUT_ROOT to \"$new_path\"" >&6;} 17369 fi 17370 17371 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 17372 17373 path="$OUTPUT_ROOT" 17374 has_colon=`$ECHO $path | $GREP ^.:` 17375 new_path="$path" 17376 if test "x$has_colon" = x; then 17377 # Not in mixed or Windows style, start by that. 17378 new_path=`cmd //c echo $path` 17379 fi 17380 17381 17382 input_path="$new_path" 17383 # Check if we need to convert this using DOS-style short mode. If the path 17384 # contains just simple characters, use it. Otherwise (spaces, weird characters), 17385 # take no chances and rewrite it. 17386 # Note: m4 eats our [], so we need to use [ and ] instead. 17387 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 17388 if test "x$has_forbidden_chars" != x; then 17389 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 17390 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 17391 fi 17392 17393 17394 windows_path="$new_path" 17395 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 17396 unix_path=`$CYGPATH -u "$windows_path"` 17397 new_path="$unix_path" 17398 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 17399 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 17400 new_path="$unix_path" 17401 fi 17402 17403 if test "x$path" != "x$new_path"; then 17404 OUTPUT_ROOT="$new_path" 17405 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting OUTPUT_ROOT to \"$new_path\"" >&5 17406 $as_echo "$as_me: Rewriting OUTPUT_ROOT to \"$new_path\"" >&6;} 17407 fi 17408 17409 # Save the first 10 bytes of this path to the storage, so fixpath can work. 17410 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 17411 17412 else 17413 # We're on a unix platform. Hooray! :) 17414 path="$OUTPUT_ROOT" 17415 has_space=`$ECHO "$path" | $GREP " "` 17416 if test "x$has_space" != x; then 17417 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OUTPUT_ROOT, which resolves as \"$path\", is invalid." >&5 17418 $as_echo "$as_me: The path of OUTPUT_ROOT, which resolves as \"$path\", is invalid." >&6;} 17419 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 17420 fi 17421 17422 # Use eval to expand a potential ~ 17423 eval path="$path" 17424 if test ! -f "$path" && test ! -d "$path"; then 17425 as_fn_error $? "The path of OUTPUT_ROOT, which resolves as \"$path\", is not found." "$LINENO" 5 17426 fi 17427 17428 if test -d "$path"; then 17429 OUTPUT_ROOT="`cd "$path"; $THEPWDCMD -L`" 17430 else 17431 dir="`$DIRNAME "$path"`" 17432 base="`$BASENAME "$path"`" 17433 OUTPUT_ROOT="`cd "$dir"; $THEPWDCMD -L`/$base" 17434 fi 17435 fi 17436 fi 17437 17438 17439 CONFIGURESUPPORT_OUTPUTDIR="$OUTPUT_ROOT/configure-support" 17440 $MKDIR -p "$CONFIGURESUPPORT_OUTPUTDIR" 17441 17442 SPEC=$OUTPUT_ROOT/spec.gmk 17443 17444 CONF_NAME=$CONF_NAME 17445 17446 OUTPUT_ROOT=$OUTPUT_ROOT 17447 17448 17449 17450 # The spec.gmk file contains all variables for the make system. 17451 ac_config_files="$ac_config_files $OUTPUT_ROOT/spec.gmk:$AUTOCONF_DIR/spec.gmk.in" 17452 17453 # The bootcycle-spec.gmk file contains support for boot cycle builds. 17454 ac_config_files="$ac_config_files $OUTPUT_ROOT/bootcycle-spec.gmk:$AUTOCONF_DIR/bootcycle-spec.gmk.in" 17455 17456 # The buildjdk-spec.gmk file contains support for building a buildjdk when cross compiling. 17457 ac_config_files="$ac_config_files $OUTPUT_ROOT/buildjdk-spec.gmk:$AUTOCONF_DIR/buildjdk-spec.gmk.in" 17458 17459 # The compare.sh is used to compare the build output to other builds. 17460 ac_config_files="$ac_config_files $OUTPUT_ROOT/compare.sh:$AUTOCONF_DIR/compare.sh.in" 17461 17462 # The generated Makefile knows where the spec.gmk is and where the source is. 17463 # You can run make from the OUTPUT_ROOT, or from the top-level Makefile 17464 # which will look for generated configurations 17465 ac_config_files="$ac_config_files $OUTPUT_ROOT/Makefile:$AUTOCONF_DIR/Makefile.in" 17466 17467 17468 17469 # Must be done before we can call HELP_MSG_MISSING_DEPENDENCY. 17470 17471 for ac_prog in apt-get yum port pkgutil pkgadd 17472 do 17473 # Extract the first word of "$ac_prog", so it can be a program name with args. 17474 set dummy $ac_prog; ac_word=$2 17475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17476 $as_echo_n "checking for $ac_word... " >&6; } 17477 if ${ac_cv_prog_PKGHANDLER+:} false; then : 17478 $as_echo_n "(cached) " >&6 17479 else 17480 if test -n "$PKGHANDLER"; then 17481 ac_cv_prog_PKGHANDLER="$PKGHANDLER" # Let the user override the test. 17482 else 17483 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17484 for as_dir in $PATH 17485 do 17486 IFS=$as_save_IFS 17487 test -z "$as_dir" && as_dir=. 17488 for ac_exec_ext in '' $ac_executable_extensions; do 17489 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 17490 ac_cv_prog_PKGHANDLER="$ac_prog" 17491 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 17492 break 2 17493 fi 17494 done 17495 done 17496 IFS=$as_save_IFS 17497 17498 fi 17499 fi 17500 PKGHANDLER=$ac_cv_prog_PKGHANDLER 17501 if test -n "$PKGHANDLER"; then 17502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGHANDLER" >&5 17503 $as_echo "$PKGHANDLER" >&6; } 17504 else 17505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17506 $as_echo "no" >&6; } 17507 fi 17508 17509 17510 test -n "$PKGHANDLER" && break 17511 done 17512 17513 17514 17515 # Setup tools that requires more complex handling, or that is not needed by the configure script. 17516 17517 17518 17519 # Publish this variable in the help. 17520 17521 17522 if [ -z "${MAKE+x}" ]; then 17523 # The variable is not set by user, try to locate tool using the code snippet 17524 17525 # Try our hardest to locate a correct version of GNU make 17526 for ac_prog in gmake 17527 do 17528 # Extract the first word of "$ac_prog", so it can be a program name with args. 17529 set dummy $ac_prog; ac_word=$2 17530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17531 $as_echo_n "checking for $ac_word... " >&6; } 17532 if ${ac_cv_path_CHECK_GMAKE+:} false; then : 17533 $as_echo_n "(cached) " >&6 17534 else 17535 case $CHECK_GMAKE in 17536 [\\/]* | ?:[\\/]*) 17537 ac_cv_path_CHECK_GMAKE="$CHECK_GMAKE" # Let the user override the test with a path. 17538 ;; 17539 *) 17540 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17541 for as_dir in $PATH 17542 do 17543 IFS=$as_save_IFS 17544 test -z "$as_dir" && as_dir=. 17545 for ac_exec_ext in '' $ac_executable_extensions; do 17546 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 17547 ac_cv_path_CHECK_GMAKE="$as_dir/$ac_word$ac_exec_ext" 17548 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 17549 break 2 17550 fi 17551 done 17552 done 17553 IFS=$as_save_IFS 17554 17555 ;; 17556 esac 17557 fi 17558 CHECK_GMAKE=$ac_cv_path_CHECK_GMAKE 17559 if test -n "$CHECK_GMAKE"; then 17560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHECK_GMAKE" >&5 17561 $as_echo "$CHECK_GMAKE" >&6; } 17562 else 17563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17564 $as_echo "no" >&6; } 17565 fi 17566 17567 17568 test -n "$CHECK_GMAKE" && break 17569 done 17570 17571 17572 MAKE_CANDIDATE=""$CHECK_GMAKE"" 17573 DESCRIPTION="gmake in PATH" 17574 17575 # On Cygwin, we require a newer version of make than on other platforms 17576 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 17577 MAKE_VERSION_EXPR="-e 4\." 17578 MAKE_REQUIRED_VERSION="4.0" 17579 else 17580 MAKE_VERSION_EXPR="-e 3\.8[12] -e 4\." 17581 MAKE_REQUIRED_VERSION="3.81" 17582 fi 17583 17584 if test "x$MAKE_CANDIDATE" != x; then 17585 { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5 17586 $as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;} 17587 MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1` 17588 IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'` 17589 if test "x$IS_GNU_MAKE" = x; then 17590 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5 17591 $as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;} 17592 else 17593 IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP $MAKE_VERSION_EXPR` 17594 if test "x$IS_MODERN_MAKE" = x; then 17595 { $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 17596 $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;} 17597 else 17598 if test "x$OPENJDK_BUILD_OS" = "xwindows"; then 17599 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 17600 MAKE_EXPECTED_ENV='cygwin' 17601 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 17602 MAKE_EXPECTED_ENV='msys' 17603 else 17604 as_fn_error $? "Unknown Windows environment" "$LINENO" 5 17605 fi 17606 MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'` 17607 IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV` 17608 else 17609 # Not relevant for non-Windows 17610 IS_MAKE_CORRECT_ENV=true 17611 fi 17612 if test "x$IS_MAKE_CORRECT_ENV" = x; then 17613 { $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 17614 $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;} 17615 else 17616 FOUND_MAKE=$MAKE_CANDIDATE 17617 17618 # Only process if variable expands to non-empty 17619 17620 if test "x$FOUND_MAKE" != x; then 17621 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 17622 17623 # First separate the path from the arguments. This will split at the first 17624 # space. 17625 complete="$FOUND_MAKE" 17626 path="${complete%% *}" 17627 tmp="$complete EOL" 17628 arguments="${tmp#* }" 17629 17630 # Input might be given as Windows format, start by converting to 17631 # unix format. 17632 new_path=`$CYGPATH -u "$path"` 17633 17634 # Now try to locate executable using which 17635 new_path=`$WHICH "$new_path" 2> /dev/null` 17636 # bat and cmd files are not always considered executable in cygwin causing which 17637 # to not find them 17638 if test "x$new_path" = x \ 17639 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 17640 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 17641 new_path=`$CYGPATH -u "$path"` 17642 fi 17643 if test "x$new_path" = x; then 17644 # Oops. Which didn't find the executable. 17645 # The splitting of arguments from the executable at a space might have been incorrect, 17646 # since paths with space are more likely in Windows. Give it another try with the whole 17647 # argument. 17648 path="$complete" 17649 arguments="EOL" 17650 new_path=`$CYGPATH -u "$path"` 17651 new_path=`$WHICH "$new_path" 2> /dev/null` 17652 # bat and cmd files are not always considered executable in cygwin causing which 17653 # to not find them 17654 if test "x$new_path" = x \ 17655 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 17656 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 17657 new_path=`$CYGPATH -u "$path"` 17658 fi 17659 if test "x$new_path" = x; then 17660 # It's still not found. Now this is an unrecoverable error. 17661 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 17662 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 17663 has_space=`$ECHO "$complete" | $GREP " "` 17664 if test "x$has_space" != x; then 17665 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 17666 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 17667 fi 17668 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 17669 fi 17670 fi 17671 17672 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 17673 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 17674 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 17675 # "foo.exe" is OK but "foo" is an error. 17676 # 17677 # This test is therefore slightly more accurate than "test -f" to check for file presence. 17678 # It is also a way to make sure we got the proper file name for the real test later on. 17679 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 17680 if test "x$test_shortpath" = x; then 17681 # Short path failed, file does not exist as specified. 17682 # Try adding .exe or .cmd 17683 if test -f "${new_path}.exe"; then 17684 input_to_shortpath="${new_path}.exe" 17685 elif test -f "${new_path}.cmd"; then 17686 input_to_shortpath="${new_path}.cmd" 17687 else 17688 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5 17689 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;} 17690 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 17691 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 17692 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 17693 fi 17694 else 17695 input_to_shortpath="$new_path" 17696 fi 17697 17698 # Call helper function which possibly converts this using DOS-style short mode. 17699 # If so, the updated path is stored in $new_path. 17700 new_path="$input_to_shortpath" 17701 17702 input_path="$input_to_shortpath" 17703 # Check if we need to convert this using DOS-style short mode. If the path 17704 # contains just simple characters, use it. Otherwise (spaces, weird characters), 17705 # take no chances and rewrite it. 17706 # Note: m4 eats our [], so we need to use [ and ] instead. 17707 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 17708 if test "x$has_forbidden_chars" != x; then 17709 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 17710 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 17711 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 17712 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 17713 # Going to short mode and back again did indeed matter. Since short mode is 17714 # case insensitive, let's make it lowercase to improve readability. 17715 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 17716 # Now convert it back to Unix-style (cygpath) 17717 input_path=`$CYGPATH -u "$shortmode_path"` 17718 new_path="$input_path" 17719 fi 17720 fi 17721 17722 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 17723 if test "x$test_cygdrive_prefix" = x; then 17724 # As a simple fix, exclude /usr/bin since it's not a real path. 17725 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 17726 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 17727 # a path prefixed by /cygdrive for fixpath to work. 17728 new_path="$CYGWIN_ROOT_PATH$input_path" 17729 fi 17730 fi 17731 17732 # remove trailing .exe if any 17733 new_path="${new_path/%.exe/}" 17734 17735 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 17736 17737 # First separate the path from the arguments. This will split at the first 17738 # space. 17739 complete="$FOUND_MAKE" 17740 path="${complete%% *}" 17741 tmp="$complete EOL" 17742 arguments="${tmp#* }" 17743 17744 # Input might be given as Windows format, start by converting to 17745 # unix format. 17746 new_path="$path" 17747 17748 windows_path="$new_path" 17749 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 17750 unix_path=`$CYGPATH -u "$windows_path"` 17751 new_path="$unix_path" 17752 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 17753 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 17754 new_path="$unix_path" 17755 fi 17756 17757 17758 # Now try to locate executable using which 17759 new_path=`$WHICH "$new_path" 2> /dev/null` 17760 17761 if test "x$new_path" = x; then 17762 # Oops. Which didn't find the executable. 17763 # The splitting of arguments from the executable at a space might have been incorrect, 17764 # since paths with space are more likely in Windows. Give it another try with the whole 17765 # argument. 17766 path="$complete" 17767 arguments="EOL" 17768 new_path="$path" 17769 17770 windows_path="$new_path" 17771 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 17772 unix_path=`$CYGPATH -u "$windows_path"` 17773 new_path="$unix_path" 17774 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 17775 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 17776 new_path="$unix_path" 17777 fi 17778 17779 17780 new_path=`$WHICH "$new_path" 2> /dev/null` 17781 # bat and cmd files are not always considered executable in MSYS causing which 17782 # to not find them 17783 if test "x$new_path" = x \ 17784 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 17785 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 17786 new_path="$path" 17787 17788 windows_path="$new_path" 17789 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 17790 unix_path=`$CYGPATH -u "$windows_path"` 17791 new_path="$unix_path" 17792 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 17793 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 17794 new_path="$unix_path" 17795 fi 17796 17797 fi 17798 17799 if test "x$new_path" = x; then 17800 # It's still not found. Now this is an unrecoverable error. 17801 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 17802 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 17803 has_space=`$ECHO "$complete" | $GREP " "` 17804 if test "x$has_space" != x; then 17805 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 17806 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 17807 fi 17808 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 17809 fi 17810 fi 17811 17812 # Now new_path has a complete unix path to the binary 17813 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 17814 # Keep paths in /bin as-is, but remove trailing .exe if any 17815 new_path="${new_path/%.exe/}" 17816 # Do not save /bin paths to all_fixpath_prefixes! 17817 else 17818 # Not in mixed or Windows style, start by that. 17819 new_path=`cmd //c echo $new_path` 17820 17821 input_path="$new_path" 17822 # Check if we need to convert this using DOS-style short mode. If the path 17823 # contains just simple characters, use it. Otherwise (spaces, weird characters), 17824 # take no chances and rewrite it. 17825 # Note: m4 eats our [], so we need to use [ and ] instead. 17826 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 17827 if test "x$has_forbidden_chars" != x; then 17828 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 17829 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 17830 fi 17831 17832 # Output is in $new_path 17833 17834 windows_path="$new_path" 17835 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 17836 unix_path=`$CYGPATH -u "$windows_path"` 17837 new_path="$unix_path" 17838 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 17839 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 17840 new_path="$unix_path" 17841 fi 17842 17843 # remove trailing .exe if any 17844 new_path="${new_path/%.exe/}" 17845 17846 # Save the first 10 bytes of this path to the storage, so fixpath can work. 17847 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 17848 fi 17849 17850 else 17851 # We're on a unix platform. Hooray! :) 17852 # First separate the path from the arguments. This will split at the first 17853 # space. 17854 complete="$FOUND_MAKE" 17855 path="${complete%% *}" 17856 tmp="$complete EOL" 17857 arguments="${tmp#* }" 17858 17859 # Cannot rely on the command "which" here since it doesn't always work. 17860 is_absolute_path=`$ECHO "$path" | $GREP ^/` 17861 if test -z "$is_absolute_path"; then 17862 # Path to executable is not absolute. Find it. 17863 IFS_save="$IFS" 17864 IFS=: 17865 for p in $PATH; do 17866 if test -f "$p/$path" && test -x "$p/$path"; then 17867 new_path="$p/$path" 17868 break 17869 fi 17870 done 17871 IFS="$IFS_save" 17872 else 17873 # This is an absolute path, we can use it without further modifications. 17874 new_path="$path" 17875 fi 17876 17877 if test "x$new_path" = x; then 17878 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 17879 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 17880 has_space=`$ECHO "$complete" | $GREP " "` 17881 if test "x$has_space" != x; then 17882 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 17883 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 17884 fi 17885 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 17886 fi 17887 fi 17888 17889 # Now join together the path and the arguments once again 17890 if test "x$arguments" != xEOL; then 17891 new_complete="$new_path ${arguments% *}" 17892 else 17893 new_complete="$new_path" 17894 fi 17895 17896 if test "x$complete" != "x$new_complete"; then 17897 FOUND_MAKE="$new_complete" 17898 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5 17899 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;} 17900 fi 17901 fi 17902 17903 fi 17904 fi 17905 fi 17906 fi 17907 17908 17909 if test "x$FOUND_MAKE" = x; then 17910 for ac_prog in make 17911 do 17912 # Extract the first word of "$ac_prog", so it can be a program name with args. 17913 set dummy $ac_prog; ac_word=$2 17914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17915 $as_echo_n "checking for $ac_word... " >&6; } 17916 if ${ac_cv_path_CHECK_MAKE+:} false; then : 17917 $as_echo_n "(cached) " >&6 17918 else 17919 case $CHECK_MAKE in 17920 [\\/]* | ?:[\\/]*) 17921 ac_cv_path_CHECK_MAKE="$CHECK_MAKE" # Let the user override the test with a path. 17922 ;; 17923 *) 17924 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17925 for as_dir in $PATH 17926 do 17927 IFS=$as_save_IFS 17928 test -z "$as_dir" && as_dir=. 17929 for ac_exec_ext in '' $ac_executable_extensions; do 17930 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 17931 ac_cv_path_CHECK_MAKE="$as_dir/$ac_word$ac_exec_ext" 17932 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 17933 break 2 17934 fi 17935 done 17936 done 17937 IFS=$as_save_IFS 17938 17939 ;; 17940 esac 17941 fi 17942 CHECK_MAKE=$ac_cv_path_CHECK_MAKE 17943 if test -n "$CHECK_MAKE"; then 17944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHECK_MAKE" >&5 17945 $as_echo "$CHECK_MAKE" >&6; } 17946 else 17947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17948 $as_echo "no" >&6; } 17949 fi 17950 17951 17952 test -n "$CHECK_MAKE" && break 17953 done 17954 17955 17956 MAKE_CANDIDATE=""$CHECK_MAKE"" 17957 DESCRIPTION="make in PATH" 17958 17959 # On Cygwin, we require a newer version of make than on other platforms 17960 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 17961 MAKE_VERSION_EXPR="-e 4\." 17962 MAKE_REQUIRED_VERSION="4.0" 17963 else 17964 MAKE_VERSION_EXPR="-e 3\.8[12] -e 4\." 17965 MAKE_REQUIRED_VERSION="3.81" 17966 fi 17967 17968 if test "x$MAKE_CANDIDATE" != x; then 17969 { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5 17970 $as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;} 17971 MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1` 17972 IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'` 17973 if test "x$IS_GNU_MAKE" = x; then 17974 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5 17975 $as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;} 17976 else 17977 IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP $MAKE_VERSION_EXPR` 17978 if test "x$IS_MODERN_MAKE" = x; then 17979 { $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 17980 $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;} 17981 else 17982 if test "x$OPENJDK_BUILD_OS" = "xwindows"; then 17983 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 17984 MAKE_EXPECTED_ENV='cygwin' 17985 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 17986 MAKE_EXPECTED_ENV='msys' 17987 else 17988 as_fn_error $? "Unknown Windows environment" "$LINENO" 5 17989 fi 17990 MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'` 17991 IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV` 17992 else 17993 # Not relevant for non-Windows 17994 IS_MAKE_CORRECT_ENV=true 17995 fi 17996 if test "x$IS_MAKE_CORRECT_ENV" = x; then 17997 { $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 17998 $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;} 17999 else 18000 FOUND_MAKE=$MAKE_CANDIDATE 18001 18002 # Only process if variable expands to non-empty 18003 18004 if test "x$FOUND_MAKE" != x; then 18005 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 18006 18007 # First separate the path from the arguments. This will split at the first 18008 # space. 18009 complete="$FOUND_MAKE" 18010 path="${complete%% *}" 18011 tmp="$complete EOL" 18012 arguments="${tmp#* }" 18013 18014 # Input might be given as Windows format, start by converting to 18015 # unix format. 18016 new_path=`$CYGPATH -u "$path"` 18017 18018 # Now try to locate executable using which 18019 new_path=`$WHICH "$new_path" 2> /dev/null` 18020 # bat and cmd files are not always considered executable in cygwin causing which 18021 # to not find them 18022 if test "x$new_path" = x \ 18023 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 18024 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 18025 new_path=`$CYGPATH -u "$path"` 18026 fi 18027 if test "x$new_path" = x; then 18028 # Oops. Which didn't find the executable. 18029 # The splitting of arguments from the executable at a space might have been incorrect, 18030 # since paths with space are more likely in Windows. Give it another try with the whole 18031 # argument. 18032 path="$complete" 18033 arguments="EOL" 18034 new_path=`$CYGPATH -u "$path"` 18035 new_path=`$WHICH "$new_path" 2> /dev/null` 18036 # bat and cmd files are not always considered executable in cygwin causing which 18037 # to not find them 18038 if test "x$new_path" = x \ 18039 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 18040 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 18041 new_path=`$CYGPATH -u "$path"` 18042 fi 18043 if test "x$new_path" = x; then 18044 # It's still not found. Now this is an unrecoverable error. 18045 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 18046 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 18047 has_space=`$ECHO "$complete" | $GREP " "` 18048 if test "x$has_space" != x; then 18049 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 18050 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 18051 fi 18052 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 18053 fi 18054 fi 18055 18056 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 18057 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 18058 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 18059 # "foo.exe" is OK but "foo" is an error. 18060 # 18061 # This test is therefore slightly more accurate than "test -f" to check for file presence. 18062 # It is also a way to make sure we got the proper file name for the real test later on. 18063 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 18064 if test "x$test_shortpath" = x; then 18065 # Short path failed, file does not exist as specified. 18066 # Try adding .exe or .cmd 18067 if test -f "${new_path}.exe"; then 18068 input_to_shortpath="${new_path}.exe" 18069 elif test -f "${new_path}.cmd"; then 18070 input_to_shortpath="${new_path}.cmd" 18071 else 18072 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5 18073 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;} 18074 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 18075 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 18076 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 18077 fi 18078 else 18079 input_to_shortpath="$new_path" 18080 fi 18081 18082 # Call helper function which possibly converts this using DOS-style short mode. 18083 # If so, the updated path is stored in $new_path. 18084 new_path="$input_to_shortpath" 18085 18086 input_path="$input_to_shortpath" 18087 # Check if we need to convert this using DOS-style short mode. If the path 18088 # contains just simple characters, use it. Otherwise (spaces, weird characters), 18089 # take no chances and rewrite it. 18090 # Note: m4 eats our [], so we need to use [ and ] instead. 18091 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 18092 if test "x$has_forbidden_chars" != x; then 18093 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 18094 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 18095 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 18096 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 18097 # Going to short mode and back again did indeed matter. Since short mode is 18098 # case insensitive, let's make it lowercase to improve readability. 18099 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 18100 # Now convert it back to Unix-style (cygpath) 18101 input_path=`$CYGPATH -u "$shortmode_path"` 18102 new_path="$input_path" 18103 fi 18104 fi 18105 18106 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 18107 if test "x$test_cygdrive_prefix" = x; then 18108 # As a simple fix, exclude /usr/bin since it's not a real path. 18109 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 18110 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 18111 # a path prefixed by /cygdrive for fixpath to work. 18112 new_path="$CYGWIN_ROOT_PATH$input_path" 18113 fi 18114 fi 18115 18116 # remove trailing .exe if any 18117 new_path="${new_path/%.exe/}" 18118 18119 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 18120 18121 # First separate the path from the arguments. This will split at the first 18122 # space. 18123 complete="$FOUND_MAKE" 18124 path="${complete%% *}" 18125 tmp="$complete EOL" 18126 arguments="${tmp#* }" 18127 18128 # Input might be given as Windows format, start by converting to 18129 # unix format. 18130 new_path="$path" 18131 18132 windows_path="$new_path" 18133 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 18134 unix_path=`$CYGPATH -u "$windows_path"` 18135 new_path="$unix_path" 18136 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 18137 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 18138 new_path="$unix_path" 18139 fi 18140 18141 18142 # Now try to locate executable using which 18143 new_path=`$WHICH "$new_path" 2> /dev/null` 18144 18145 if test "x$new_path" = x; then 18146 # Oops. Which didn't find the executable. 18147 # The splitting of arguments from the executable at a space might have been incorrect, 18148 # since paths with space are more likely in Windows. Give it another try with the whole 18149 # argument. 18150 path="$complete" 18151 arguments="EOL" 18152 new_path="$path" 18153 18154 windows_path="$new_path" 18155 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 18156 unix_path=`$CYGPATH -u "$windows_path"` 18157 new_path="$unix_path" 18158 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 18159 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 18160 new_path="$unix_path" 18161 fi 18162 18163 18164 new_path=`$WHICH "$new_path" 2> /dev/null` 18165 # bat and cmd files are not always considered executable in MSYS causing which 18166 # to not find them 18167 if test "x$new_path" = x \ 18168 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 18169 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 18170 new_path="$path" 18171 18172 windows_path="$new_path" 18173 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 18174 unix_path=`$CYGPATH -u "$windows_path"` 18175 new_path="$unix_path" 18176 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 18177 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 18178 new_path="$unix_path" 18179 fi 18180 18181 fi 18182 18183 if test "x$new_path" = x; then 18184 # It's still not found. Now this is an unrecoverable error. 18185 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 18186 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 18187 has_space=`$ECHO "$complete" | $GREP " "` 18188 if test "x$has_space" != x; then 18189 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 18190 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 18191 fi 18192 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 18193 fi 18194 fi 18195 18196 # Now new_path has a complete unix path to the binary 18197 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 18198 # Keep paths in /bin as-is, but remove trailing .exe if any 18199 new_path="${new_path/%.exe/}" 18200 # Do not save /bin paths to all_fixpath_prefixes! 18201 else 18202 # Not in mixed or Windows style, start by that. 18203 new_path=`cmd //c echo $new_path` 18204 18205 input_path="$new_path" 18206 # Check if we need to convert this using DOS-style short mode. If the path 18207 # contains just simple characters, use it. Otherwise (spaces, weird characters), 18208 # take no chances and rewrite it. 18209 # Note: m4 eats our [], so we need to use [ and ] instead. 18210 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 18211 if test "x$has_forbidden_chars" != x; then 18212 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 18213 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 18214 fi 18215 18216 # Output is in $new_path 18217 18218 windows_path="$new_path" 18219 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 18220 unix_path=`$CYGPATH -u "$windows_path"` 18221 new_path="$unix_path" 18222 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 18223 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 18224 new_path="$unix_path" 18225 fi 18226 18227 # remove trailing .exe if any 18228 new_path="${new_path/%.exe/}" 18229 18230 # Save the first 10 bytes of this path to the storage, so fixpath can work. 18231 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 18232 fi 18233 18234 else 18235 # We're on a unix platform. Hooray! :) 18236 # First separate the path from the arguments. This will split at the first 18237 # space. 18238 complete="$FOUND_MAKE" 18239 path="${complete%% *}" 18240 tmp="$complete EOL" 18241 arguments="${tmp#* }" 18242 18243 # Cannot rely on the command "which" here since it doesn't always work. 18244 is_absolute_path=`$ECHO "$path" | $GREP ^/` 18245 if test -z "$is_absolute_path"; then 18246 # Path to executable is not absolute. Find it. 18247 IFS_save="$IFS" 18248 IFS=: 18249 for p in $PATH; do 18250 if test -f "$p/$path" && test -x "$p/$path"; then 18251 new_path="$p/$path" 18252 break 18253 fi 18254 done 18255 IFS="$IFS_save" 18256 else 18257 # This is an absolute path, we can use it without further modifications. 18258 new_path="$path" 18259 fi 18260 18261 if test "x$new_path" = x; then 18262 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 18263 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 18264 has_space=`$ECHO "$complete" | $GREP " "` 18265 if test "x$has_space" != x; then 18266 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 18267 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 18268 fi 18269 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 18270 fi 18271 fi 18272 18273 # Now join together the path and the arguments once again 18274 if test "x$arguments" != xEOL; then 18275 new_complete="$new_path ${arguments% *}" 18276 else 18277 new_complete="$new_path" 18278 fi 18279 18280 if test "x$complete" != "x$new_complete"; then 18281 FOUND_MAKE="$new_complete" 18282 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5 18283 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;} 18284 fi 18285 fi 18286 18287 fi 18288 fi 18289 fi 18290 fi 18291 18292 fi 18293 18294 if test "x$FOUND_MAKE" = x; then 18295 if test "x$TOOLCHAIN_PATH" != x; then 18296 # We have a toolchain path, check that as well before giving up. 18297 OLD_PATH=$PATH 18298 PATH=$TOOLCHAIN_PATH:$PATH 18299 for ac_prog in gmake 18300 do 18301 # Extract the first word of "$ac_prog", so it can be a program name with args. 18302 set dummy $ac_prog; ac_word=$2 18303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18304 $as_echo_n "checking for $ac_word... " >&6; } 18305 if ${ac_cv_path_CHECK_TOOLSDIR_GMAKE+:} false; then : 18306 $as_echo_n "(cached) " >&6 18307 else 18308 case $CHECK_TOOLSDIR_GMAKE in 18309 [\\/]* | ?:[\\/]*) 18310 ac_cv_path_CHECK_TOOLSDIR_GMAKE="$CHECK_TOOLSDIR_GMAKE" # Let the user override the test with a path. 18311 ;; 18312 *) 18313 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18314 for as_dir in $PATH 18315 do 18316 IFS=$as_save_IFS 18317 test -z "$as_dir" && as_dir=. 18318 for ac_exec_ext in '' $ac_executable_extensions; do 18319 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18320 ac_cv_path_CHECK_TOOLSDIR_GMAKE="$as_dir/$ac_word$ac_exec_ext" 18321 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18322 break 2 18323 fi 18324 done 18325 done 18326 IFS=$as_save_IFS 18327 18328 ;; 18329 esac 18330 fi 18331 CHECK_TOOLSDIR_GMAKE=$ac_cv_path_CHECK_TOOLSDIR_GMAKE 18332 if test -n "$CHECK_TOOLSDIR_GMAKE"; then 18333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHECK_TOOLSDIR_GMAKE" >&5 18334 $as_echo "$CHECK_TOOLSDIR_GMAKE" >&6; } 18335 else 18336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18337 $as_echo "no" >&6; } 18338 fi 18339 18340 18341 test -n "$CHECK_TOOLSDIR_GMAKE" && break 18342 done 18343 18344 18345 MAKE_CANDIDATE=""$CHECK_TOOLSDIR_GMAKE"" 18346 DESCRIPTION="gmake in tools-dir" 18347 18348 # On Cygwin, we require a newer version of make than on other platforms 18349 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 18350 MAKE_VERSION_EXPR="-e 4\." 18351 MAKE_REQUIRED_VERSION="4.0" 18352 else 18353 MAKE_VERSION_EXPR="-e 3\.8[12] -e 4\." 18354 MAKE_REQUIRED_VERSION="3.81" 18355 fi 18356 18357 if test "x$MAKE_CANDIDATE" != x; then 18358 { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5 18359 $as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;} 18360 MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1` 18361 IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'` 18362 if test "x$IS_GNU_MAKE" = x; then 18363 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5 18364 $as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;} 18365 else 18366 IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP $MAKE_VERSION_EXPR` 18367 if test "x$IS_MODERN_MAKE" = x; then 18368 { $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 18369 $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;} 18370 else 18371 if test "x$OPENJDK_BUILD_OS" = "xwindows"; then 18372 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 18373 MAKE_EXPECTED_ENV='cygwin' 18374 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 18375 MAKE_EXPECTED_ENV='msys' 18376 else 18377 as_fn_error $? "Unknown Windows environment" "$LINENO" 5 18378 fi 18379 MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'` 18380 IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV` 18381 else 18382 # Not relevant for non-Windows 18383 IS_MAKE_CORRECT_ENV=true 18384 fi 18385 if test "x$IS_MAKE_CORRECT_ENV" = x; then 18386 { $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 18387 $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;} 18388 else 18389 FOUND_MAKE=$MAKE_CANDIDATE 18390 18391 # Only process if variable expands to non-empty 18392 18393 if test "x$FOUND_MAKE" != x; then 18394 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 18395 18396 # First separate the path from the arguments. This will split at the first 18397 # space. 18398 complete="$FOUND_MAKE" 18399 path="${complete%% *}" 18400 tmp="$complete EOL" 18401 arguments="${tmp#* }" 18402 18403 # Input might be given as Windows format, start by converting to 18404 # unix format. 18405 new_path=`$CYGPATH -u "$path"` 18406 18407 # Now try to locate executable using which 18408 new_path=`$WHICH "$new_path" 2> /dev/null` 18409 # bat and cmd files are not always considered executable in cygwin causing which 18410 # to not find them 18411 if test "x$new_path" = x \ 18412 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 18413 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 18414 new_path=`$CYGPATH -u "$path"` 18415 fi 18416 if test "x$new_path" = x; then 18417 # Oops. Which didn't find the executable. 18418 # The splitting of arguments from the executable at a space might have been incorrect, 18419 # since paths with space are more likely in Windows. Give it another try with the whole 18420 # argument. 18421 path="$complete" 18422 arguments="EOL" 18423 new_path=`$CYGPATH -u "$path"` 18424 new_path=`$WHICH "$new_path" 2> /dev/null` 18425 # bat and cmd files are not always considered executable in cygwin causing which 18426 # to not find them 18427 if test "x$new_path" = x \ 18428 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 18429 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 18430 new_path=`$CYGPATH -u "$path"` 18431 fi 18432 if test "x$new_path" = x; then 18433 # It's still not found. Now this is an unrecoverable error. 18434 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 18435 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 18436 has_space=`$ECHO "$complete" | $GREP " "` 18437 if test "x$has_space" != x; then 18438 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 18439 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 18440 fi 18441 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 18442 fi 18443 fi 18444 18445 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 18446 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 18447 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 18448 # "foo.exe" is OK but "foo" is an error. 18449 # 18450 # This test is therefore slightly more accurate than "test -f" to check for file presence. 18451 # It is also a way to make sure we got the proper file name for the real test later on. 18452 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 18453 if test "x$test_shortpath" = x; then 18454 # Short path failed, file does not exist as specified. 18455 # Try adding .exe or .cmd 18456 if test -f "${new_path}.exe"; then 18457 input_to_shortpath="${new_path}.exe" 18458 elif test -f "${new_path}.cmd"; then 18459 input_to_shortpath="${new_path}.cmd" 18460 else 18461 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5 18462 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;} 18463 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 18464 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 18465 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 18466 fi 18467 else 18468 input_to_shortpath="$new_path" 18469 fi 18470 18471 # Call helper function which possibly converts this using DOS-style short mode. 18472 # If so, the updated path is stored in $new_path. 18473 new_path="$input_to_shortpath" 18474 18475 input_path="$input_to_shortpath" 18476 # Check if we need to convert this using DOS-style short mode. If the path 18477 # contains just simple characters, use it. Otherwise (spaces, weird characters), 18478 # take no chances and rewrite it. 18479 # Note: m4 eats our [], so we need to use [ and ] instead. 18480 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 18481 if test "x$has_forbidden_chars" != x; then 18482 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 18483 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 18484 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 18485 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 18486 # Going to short mode and back again did indeed matter. Since short mode is 18487 # case insensitive, let's make it lowercase to improve readability. 18488 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 18489 # Now convert it back to Unix-style (cygpath) 18490 input_path=`$CYGPATH -u "$shortmode_path"` 18491 new_path="$input_path" 18492 fi 18493 fi 18494 18495 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 18496 if test "x$test_cygdrive_prefix" = x; then 18497 # As a simple fix, exclude /usr/bin since it's not a real path. 18498 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 18499 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 18500 # a path prefixed by /cygdrive for fixpath to work. 18501 new_path="$CYGWIN_ROOT_PATH$input_path" 18502 fi 18503 fi 18504 18505 # remove trailing .exe if any 18506 new_path="${new_path/%.exe/}" 18507 18508 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 18509 18510 # First separate the path from the arguments. This will split at the first 18511 # space. 18512 complete="$FOUND_MAKE" 18513 path="${complete%% *}" 18514 tmp="$complete EOL" 18515 arguments="${tmp#* }" 18516 18517 # Input might be given as Windows format, start by converting to 18518 # unix format. 18519 new_path="$path" 18520 18521 windows_path="$new_path" 18522 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 18523 unix_path=`$CYGPATH -u "$windows_path"` 18524 new_path="$unix_path" 18525 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 18526 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 18527 new_path="$unix_path" 18528 fi 18529 18530 18531 # Now try to locate executable using which 18532 new_path=`$WHICH "$new_path" 2> /dev/null` 18533 18534 if test "x$new_path" = x; then 18535 # Oops. Which didn't find the executable. 18536 # The splitting of arguments from the executable at a space might have been incorrect, 18537 # since paths with space are more likely in Windows. Give it another try with the whole 18538 # argument. 18539 path="$complete" 18540 arguments="EOL" 18541 new_path="$path" 18542 18543 windows_path="$new_path" 18544 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 18545 unix_path=`$CYGPATH -u "$windows_path"` 18546 new_path="$unix_path" 18547 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 18548 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 18549 new_path="$unix_path" 18550 fi 18551 18552 18553 new_path=`$WHICH "$new_path" 2> /dev/null` 18554 # bat and cmd files are not always considered executable in MSYS causing which 18555 # to not find them 18556 if test "x$new_path" = x \ 18557 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 18558 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 18559 new_path="$path" 18560 18561 windows_path="$new_path" 18562 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 18563 unix_path=`$CYGPATH -u "$windows_path"` 18564 new_path="$unix_path" 18565 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 18566 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 18567 new_path="$unix_path" 18568 fi 18569 18570 fi 18571 18572 if test "x$new_path" = x; then 18573 # It's still not found. Now this is an unrecoverable error. 18574 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 18575 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 18576 has_space=`$ECHO "$complete" | $GREP " "` 18577 if test "x$has_space" != x; then 18578 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 18579 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 18580 fi 18581 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 18582 fi 18583 fi 18584 18585 # Now new_path has a complete unix path to the binary 18586 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 18587 # Keep paths in /bin as-is, but remove trailing .exe if any 18588 new_path="${new_path/%.exe/}" 18589 # Do not save /bin paths to all_fixpath_prefixes! 18590 else 18591 # Not in mixed or Windows style, start by that. 18592 new_path=`cmd //c echo $new_path` 18593 18594 input_path="$new_path" 18595 # Check if we need to convert this using DOS-style short mode. If the path 18596 # contains just simple characters, use it. Otherwise (spaces, weird characters), 18597 # take no chances and rewrite it. 18598 # Note: m4 eats our [], so we need to use [ and ] instead. 18599 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 18600 if test "x$has_forbidden_chars" != x; then 18601 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 18602 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 18603 fi 18604 18605 # Output is in $new_path 18606 18607 windows_path="$new_path" 18608 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 18609 unix_path=`$CYGPATH -u "$windows_path"` 18610 new_path="$unix_path" 18611 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 18612 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 18613 new_path="$unix_path" 18614 fi 18615 18616 # remove trailing .exe if any 18617 new_path="${new_path/%.exe/}" 18618 18619 # Save the first 10 bytes of this path to the storage, so fixpath can work. 18620 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 18621 fi 18622 18623 else 18624 # We're on a unix platform. Hooray! :) 18625 # First separate the path from the arguments. This will split at the first 18626 # space. 18627 complete="$FOUND_MAKE" 18628 path="${complete%% *}" 18629 tmp="$complete EOL" 18630 arguments="${tmp#* }" 18631 18632 # Cannot rely on the command "which" here since it doesn't always work. 18633 is_absolute_path=`$ECHO "$path" | $GREP ^/` 18634 if test -z "$is_absolute_path"; then 18635 # Path to executable is not absolute. Find it. 18636 IFS_save="$IFS" 18637 IFS=: 18638 for p in $PATH; do 18639 if test -f "$p/$path" && test -x "$p/$path"; then 18640 new_path="$p/$path" 18641 break 18642 fi 18643 done 18644 IFS="$IFS_save" 18645 else 18646 # This is an absolute path, we can use it without further modifications. 18647 new_path="$path" 18648 fi 18649 18650 if test "x$new_path" = x; then 18651 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 18652 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 18653 has_space=`$ECHO "$complete" | $GREP " "` 18654 if test "x$has_space" != x; then 18655 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 18656 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 18657 fi 18658 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 18659 fi 18660 fi 18661 18662 # Now join together the path and the arguments once again 18663 if test "x$arguments" != xEOL; then 18664 new_complete="$new_path ${arguments% *}" 18665 else 18666 new_complete="$new_path" 18667 fi 18668 18669 if test "x$complete" != "x$new_complete"; then 18670 FOUND_MAKE="$new_complete" 18671 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5 18672 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;} 18673 fi 18674 fi 18675 18676 fi 18677 fi 18678 fi 18679 fi 18680 18681 if test "x$FOUND_MAKE" = x; then 18682 for ac_prog in make 18683 do 18684 # Extract the first word of "$ac_prog", so it can be a program name with args. 18685 set dummy $ac_prog; ac_word=$2 18686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18687 $as_echo_n "checking for $ac_word... " >&6; } 18688 if ${ac_cv_path_CHECK_TOOLSDIR_MAKE+:} false; then : 18689 $as_echo_n "(cached) " >&6 18690 else 18691 case $CHECK_TOOLSDIR_MAKE in 18692 [\\/]* | ?:[\\/]*) 18693 ac_cv_path_CHECK_TOOLSDIR_MAKE="$CHECK_TOOLSDIR_MAKE" # Let the user override the test with a path. 18694 ;; 18695 *) 18696 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18697 for as_dir in $PATH 18698 do 18699 IFS=$as_save_IFS 18700 test -z "$as_dir" && as_dir=. 18701 for ac_exec_ext in '' $ac_executable_extensions; do 18702 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18703 ac_cv_path_CHECK_TOOLSDIR_MAKE="$as_dir/$ac_word$ac_exec_ext" 18704 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18705 break 2 18706 fi 18707 done 18708 done 18709 IFS=$as_save_IFS 18710 18711 ;; 18712 esac 18713 fi 18714 CHECK_TOOLSDIR_MAKE=$ac_cv_path_CHECK_TOOLSDIR_MAKE 18715 if test -n "$CHECK_TOOLSDIR_MAKE"; then 18716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHECK_TOOLSDIR_MAKE" >&5 18717 $as_echo "$CHECK_TOOLSDIR_MAKE" >&6; } 18718 else 18719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18720 $as_echo "no" >&6; } 18721 fi 18722 18723 18724 test -n "$CHECK_TOOLSDIR_MAKE" && break 18725 done 18726 18727 18728 MAKE_CANDIDATE=""$CHECK_TOOLSDIR_MAKE"" 18729 DESCRIPTION="make in tools-dir" 18730 18731 # On Cygwin, we require a newer version of make than on other platforms 18732 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 18733 MAKE_VERSION_EXPR="-e 4\." 18734 MAKE_REQUIRED_VERSION="4.0" 18735 else 18736 MAKE_VERSION_EXPR="-e 3\.8[12] -e 4\." 18737 MAKE_REQUIRED_VERSION="3.81" 18738 fi 18739 18740 if test "x$MAKE_CANDIDATE" != x; then 18741 { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5 18742 $as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;} 18743 MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1` 18744 IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'` 18745 if test "x$IS_GNU_MAKE" = x; then 18746 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5 18747 $as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;} 18748 else 18749 IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP $MAKE_VERSION_EXPR` 18750 if test "x$IS_MODERN_MAKE" = x; then 18751 { $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 18752 $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;} 18753 else 18754 if test "x$OPENJDK_BUILD_OS" = "xwindows"; then 18755 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 18756 MAKE_EXPECTED_ENV='cygwin' 18757 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 18758 MAKE_EXPECTED_ENV='msys' 18759 else 18760 as_fn_error $? "Unknown Windows environment" "$LINENO" 5 18761 fi 18762 MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'` 18763 IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV` 18764 else 18765 # Not relevant for non-Windows 18766 IS_MAKE_CORRECT_ENV=true 18767 fi 18768 if test "x$IS_MAKE_CORRECT_ENV" = x; then 18769 { $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 18770 $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;} 18771 else 18772 FOUND_MAKE=$MAKE_CANDIDATE 18773 18774 # Only process if variable expands to non-empty 18775 18776 if test "x$FOUND_MAKE" != x; then 18777 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 18778 18779 # First separate the path from the arguments. This will split at the first 18780 # space. 18781 complete="$FOUND_MAKE" 18782 path="${complete%% *}" 18783 tmp="$complete EOL" 18784 arguments="${tmp#* }" 18785 18786 # Input might be given as Windows format, start by converting to 18787 # unix format. 18788 new_path=`$CYGPATH -u "$path"` 18789 18790 # Now try to locate executable using which 18791 new_path=`$WHICH "$new_path" 2> /dev/null` 18792 # bat and cmd files are not always considered executable in cygwin causing which 18793 # to not find them 18794 if test "x$new_path" = x \ 18795 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 18796 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 18797 new_path=`$CYGPATH -u "$path"` 18798 fi 18799 if test "x$new_path" = x; then 18800 # Oops. Which didn't find the executable. 18801 # The splitting of arguments from the executable at a space might have been incorrect, 18802 # since paths with space are more likely in Windows. Give it another try with the whole 18803 # argument. 18804 path="$complete" 18805 arguments="EOL" 18806 new_path=`$CYGPATH -u "$path"` 18807 new_path=`$WHICH "$new_path" 2> /dev/null` 18808 # bat and cmd files are not always considered executable in cygwin causing which 18809 # to not find them 18810 if test "x$new_path" = x \ 18811 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 18812 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 18813 new_path=`$CYGPATH -u "$path"` 18814 fi 18815 if test "x$new_path" = x; then 18816 # It's still not found. Now this is an unrecoverable error. 18817 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 18818 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 18819 has_space=`$ECHO "$complete" | $GREP " "` 18820 if test "x$has_space" != x; then 18821 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 18822 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 18823 fi 18824 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 18825 fi 18826 fi 18827 18828 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 18829 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 18830 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 18831 # "foo.exe" is OK but "foo" is an error. 18832 # 18833 # This test is therefore slightly more accurate than "test -f" to check for file presence. 18834 # It is also a way to make sure we got the proper file name for the real test later on. 18835 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 18836 if test "x$test_shortpath" = x; then 18837 # Short path failed, file does not exist as specified. 18838 # Try adding .exe or .cmd 18839 if test -f "${new_path}.exe"; then 18840 input_to_shortpath="${new_path}.exe" 18841 elif test -f "${new_path}.cmd"; then 18842 input_to_shortpath="${new_path}.cmd" 18843 else 18844 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5 18845 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;} 18846 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 18847 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 18848 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 18849 fi 18850 else 18851 input_to_shortpath="$new_path" 18852 fi 18853 18854 # Call helper function which possibly converts this using DOS-style short mode. 18855 # If so, the updated path is stored in $new_path. 18856 new_path="$input_to_shortpath" 18857 18858 input_path="$input_to_shortpath" 18859 # Check if we need to convert this using DOS-style short mode. If the path 18860 # contains just simple characters, use it. Otherwise (spaces, weird characters), 18861 # take no chances and rewrite it. 18862 # Note: m4 eats our [], so we need to use [ and ] instead. 18863 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 18864 if test "x$has_forbidden_chars" != x; then 18865 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 18866 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 18867 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 18868 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 18869 # Going to short mode and back again did indeed matter. Since short mode is 18870 # case insensitive, let's make it lowercase to improve readability. 18871 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 18872 # Now convert it back to Unix-style (cygpath) 18873 input_path=`$CYGPATH -u "$shortmode_path"` 18874 new_path="$input_path" 18875 fi 18876 fi 18877 18878 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 18879 if test "x$test_cygdrive_prefix" = x; then 18880 # As a simple fix, exclude /usr/bin since it's not a real path. 18881 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 18882 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 18883 # a path prefixed by /cygdrive for fixpath to work. 18884 new_path="$CYGWIN_ROOT_PATH$input_path" 18885 fi 18886 fi 18887 18888 # remove trailing .exe if any 18889 new_path="${new_path/%.exe/}" 18890 18891 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 18892 18893 # First separate the path from the arguments. This will split at the first 18894 # space. 18895 complete="$FOUND_MAKE" 18896 path="${complete%% *}" 18897 tmp="$complete EOL" 18898 arguments="${tmp#* }" 18899 18900 # Input might be given as Windows format, start by converting to 18901 # unix format. 18902 new_path="$path" 18903 18904 windows_path="$new_path" 18905 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 18906 unix_path=`$CYGPATH -u "$windows_path"` 18907 new_path="$unix_path" 18908 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 18909 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 18910 new_path="$unix_path" 18911 fi 18912 18913 18914 # Now try to locate executable using which 18915 new_path=`$WHICH "$new_path" 2> /dev/null` 18916 18917 if test "x$new_path" = x; then 18918 # Oops. Which didn't find the executable. 18919 # The splitting of arguments from the executable at a space might have been incorrect, 18920 # since paths with space are more likely in Windows. Give it another try with the whole 18921 # argument. 18922 path="$complete" 18923 arguments="EOL" 18924 new_path="$path" 18925 18926 windows_path="$new_path" 18927 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 18928 unix_path=`$CYGPATH -u "$windows_path"` 18929 new_path="$unix_path" 18930 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 18931 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 18932 new_path="$unix_path" 18933 fi 18934 18935 18936 new_path=`$WHICH "$new_path" 2> /dev/null` 18937 # bat and cmd files are not always considered executable in MSYS causing which 18938 # to not find them 18939 if test "x$new_path" = x \ 18940 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 18941 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 18942 new_path="$path" 18943 18944 windows_path="$new_path" 18945 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 18946 unix_path=`$CYGPATH -u "$windows_path"` 18947 new_path="$unix_path" 18948 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 18949 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 18950 new_path="$unix_path" 18951 fi 18952 18953 fi 18954 18955 if test "x$new_path" = x; then 18956 # It's still not found. Now this is an unrecoverable error. 18957 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 18958 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 18959 has_space=`$ECHO "$complete" | $GREP " "` 18960 if test "x$has_space" != x; then 18961 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 18962 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 18963 fi 18964 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 18965 fi 18966 fi 18967 18968 # Now new_path has a complete unix path to the binary 18969 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 18970 # Keep paths in /bin as-is, but remove trailing .exe if any 18971 new_path="${new_path/%.exe/}" 18972 # Do not save /bin paths to all_fixpath_prefixes! 18973 else 18974 # Not in mixed or Windows style, start by that. 18975 new_path=`cmd //c echo $new_path` 18976 18977 input_path="$new_path" 18978 # Check if we need to convert this using DOS-style short mode. If the path 18979 # contains just simple characters, use it. Otherwise (spaces, weird characters), 18980 # take no chances and rewrite it. 18981 # Note: m4 eats our [], so we need to use [ and ] instead. 18982 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 18983 if test "x$has_forbidden_chars" != x; then 18984 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 18985 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 18986 fi 18987 18988 # Output is in $new_path 18989 18990 windows_path="$new_path" 18991 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 18992 unix_path=`$CYGPATH -u "$windows_path"` 18993 new_path="$unix_path" 18994 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 18995 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 18996 new_path="$unix_path" 18997 fi 18998 18999 # remove trailing .exe if any 19000 new_path="${new_path/%.exe/}" 19001 19002 # Save the first 10 bytes of this path to the storage, so fixpath can work. 19003 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 19004 fi 19005 19006 else 19007 # We're on a unix platform. Hooray! :) 19008 # First separate the path from the arguments. This will split at the first 19009 # space. 19010 complete="$FOUND_MAKE" 19011 path="${complete%% *}" 19012 tmp="$complete EOL" 19013 arguments="${tmp#* }" 19014 19015 # Cannot rely on the command "which" here since it doesn't always work. 19016 is_absolute_path=`$ECHO "$path" | $GREP ^/` 19017 if test -z "$is_absolute_path"; then 19018 # Path to executable is not absolute. Find it. 19019 IFS_save="$IFS" 19020 IFS=: 19021 for p in $PATH; do 19022 if test -f "$p/$path" && test -x "$p/$path"; then 19023 new_path="$p/$path" 19024 break 19025 fi 19026 done 19027 IFS="$IFS_save" 19028 else 19029 # This is an absolute path, we can use it without further modifications. 19030 new_path="$path" 19031 fi 19032 19033 if test "x$new_path" = x; then 19034 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 19035 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 19036 has_space=`$ECHO "$complete" | $GREP " "` 19037 if test "x$has_space" != x; then 19038 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 19039 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 19040 fi 19041 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 19042 fi 19043 fi 19044 19045 # Now join together the path and the arguments once again 19046 if test "x$arguments" != xEOL; then 19047 new_complete="$new_path ${arguments% *}" 19048 else 19049 new_complete="$new_path" 19050 fi 19051 19052 if test "x$complete" != "x$new_complete"; then 19053 FOUND_MAKE="$new_complete" 19054 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5 19055 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;} 19056 fi 19057 fi 19058 19059 fi 19060 fi 19061 fi 19062 fi 19063 19064 fi 19065 PATH=$OLD_PATH 19066 fi 19067 fi 19068 19069 if test "x$FOUND_MAKE" = x; then 19070 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 19071 fi 19072 19073 else 19074 # The variable is set, but is it from the command line or the environment? 19075 19076 # Try to remove the string !MAKE! from our list. 19077 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!MAKE!/} 19078 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 19079 # If it failed, the variable was not from the command line. Ignore it, 19080 # but warn the user (except for BASH, which is always set by the calling BASH). 19081 if test "xMAKE" != xBASH; then 19082 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of MAKE from the environment. Use command line variables instead." >&5 19083 $as_echo "$as_me: WARNING: Ignoring value of MAKE from the environment. Use command line variables instead." >&2;} 19084 fi 19085 # Try to locate tool using the code snippet 19086 19087 # Try our hardest to locate a correct version of GNU make 19088 for ac_prog in gmake 19089 do 19090 # Extract the first word of "$ac_prog", so it can be a program name with args. 19091 set dummy $ac_prog; ac_word=$2 19092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 19093 $as_echo_n "checking for $ac_word... " >&6; } 19094 if ${ac_cv_path_CHECK_GMAKE+:} false; then : 19095 $as_echo_n "(cached) " >&6 19096 else 19097 case $CHECK_GMAKE in 19098 [\\/]* | ?:[\\/]*) 19099 ac_cv_path_CHECK_GMAKE="$CHECK_GMAKE" # Let the user override the test with a path. 19100 ;; 19101 *) 19102 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19103 for as_dir in $PATH 19104 do 19105 IFS=$as_save_IFS 19106 test -z "$as_dir" && as_dir=. 19107 for ac_exec_ext in '' $ac_executable_extensions; do 19108 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 19109 ac_cv_path_CHECK_GMAKE="$as_dir/$ac_word$ac_exec_ext" 19110 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 19111 break 2 19112 fi 19113 done 19114 done 19115 IFS=$as_save_IFS 19116 19117 ;; 19118 esac 19119 fi 19120 CHECK_GMAKE=$ac_cv_path_CHECK_GMAKE 19121 if test -n "$CHECK_GMAKE"; then 19122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHECK_GMAKE" >&5 19123 $as_echo "$CHECK_GMAKE" >&6; } 19124 else 19125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19126 $as_echo "no" >&6; } 19127 fi 19128 19129 19130 test -n "$CHECK_GMAKE" && break 19131 done 19132 19133 19134 MAKE_CANDIDATE=""$CHECK_GMAKE"" 19135 DESCRIPTION="gmake in PATH" 19136 19137 # On Cygwin, we require a newer version of make than on other platforms 19138 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 19139 MAKE_VERSION_EXPR="-e 4\." 19140 MAKE_REQUIRED_VERSION="4.0" 19141 else 19142 MAKE_VERSION_EXPR="-e 3\.8[12] -e 4\." 19143 MAKE_REQUIRED_VERSION="3.81" 19144 fi 19145 19146 if test "x$MAKE_CANDIDATE" != x; then 19147 { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5 19148 $as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;} 19149 MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1` 19150 IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'` 19151 if test "x$IS_GNU_MAKE" = x; then 19152 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5 19153 $as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;} 19154 else 19155 IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP $MAKE_VERSION_EXPR` 19156 if test "x$IS_MODERN_MAKE" = x; then 19157 { $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 19158 $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;} 19159 else 19160 if test "x$OPENJDK_BUILD_OS" = "xwindows"; then 19161 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 19162 MAKE_EXPECTED_ENV='cygwin' 19163 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 19164 MAKE_EXPECTED_ENV='msys' 19165 else 19166 as_fn_error $? "Unknown Windows environment" "$LINENO" 5 19167 fi 19168 MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'` 19169 IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV` 19170 else 19171 # Not relevant for non-Windows 19172 IS_MAKE_CORRECT_ENV=true 19173 fi 19174 if test "x$IS_MAKE_CORRECT_ENV" = x; then 19175 { $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 19176 $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;} 19177 else 19178 FOUND_MAKE=$MAKE_CANDIDATE 19179 19180 # Only process if variable expands to non-empty 19181 19182 if test "x$FOUND_MAKE" != x; then 19183 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 19184 19185 # First separate the path from the arguments. This will split at the first 19186 # space. 19187 complete="$FOUND_MAKE" 19188 path="${complete%% *}" 19189 tmp="$complete EOL" 19190 arguments="${tmp#* }" 19191 19192 # Input might be given as Windows format, start by converting to 19193 # unix format. 19194 new_path=`$CYGPATH -u "$path"` 19195 19196 # Now try to locate executable using which 19197 new_path=`$WHICH "$new_path" 2> /dev/null` 19198 # bat and cmd files are not always considered executable in cygwin causing which 19199 # to not find them 19200 if test "x$new_path" = x \ 19201 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 19202 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 19203 new_path=`$CYGPATH -u "$path"` 19204 fi 19205 if test "x$new_path" = x; then 19206 # Oops. Which didn't find the executable. 19207 # The splitting of arguments from the executable at a space might have been incorrect, 19208 # since paths with space are more likely in Windows. Give it another try with the whole 19209 # argument. 19210 path="$complete" 19211 arguments="EOL" 19212 new_path=`$CYGPATH -u "$path"` 19213 new_path=`$WHICH "$new_path" 2> /dev/null` 19214 # bat and cmd files are not always considered executable in cygwin causing which 19215 # to not find them 19216 if test "x$new_path" = x \ 19217 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 19218 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 19219 new_path=`$CYGPATH -u "$path"` 19220 fi 19221 if test "x$new_path" = x; then 19222 # It's still not found. Now this is an unrecoverable error. 19223 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 19224 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 19225 has_space=`$ECHO "$complete" | $GREP " "` 19226 if test "x$has_space" != x; then 19227 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 19228 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 19229 fi 19230 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 19231 fi 19232 fi 19233 19234 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 19235 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 19236 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 19237 # "foo.exe" is OK but "foo" is an error. 19238 # 19239 # This test is therefore slightly more accurate than "test -f" to check for file presence. 19240 # It is also a way to make sure we got the proper file name for the real test later on. 19241 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 19242 if test "x$test_shortpath" = x; then 19243 # Short path failed, file does not exist as specified. 19244 # Try adding .exe or .cmd 19245 if test -f "${new_path}.exe"; then 19246 input_to_shortpath="${new_path}.exe" 19247 elif test -f "${new_path}.cmd"; then 19248 input_to_shortpath="${new_path}.cmd" 19249 else 19250 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5 19251 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;} 19252 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 19253 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 19254 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 19255 fi 19256 else 19257 input_to_shortpath="$new_path" 19258 fi 19259 19260 # Call helper function which possibly converts this using DOS-style short mode. 19261 # If so, the updated path is stored in $new_path. 19262 new_path="$input_to_shortpath" 19263 19264 input_path="$input_to_shortpath" 19265 # Check if we need to convert this using DOS-style short mode. If the path 19266 # contains just simple characters, use it. Otherwise (spaces, weird characters), 19267 # take no chances and rewrite it. 19268 # Note: m4 eats our [], so we need to use [ and ] instead. 19269 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 19270 if test "x$has_forbidden_chars" != x; then 19271 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 19272 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 19273 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 19274 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 19275 # Going to short mode and back again did indeed matter. Since short mode is 19276 # case insensitive, let's make it lowercase to improve readability. 19277 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 19278 # Now convert it back to Unix-style (cygpath) 19279 input_path=`$CYGPATH -u "$shortmode_path"` 19280 new_path="$input_path" 19281 fi 19282 fi 19283 19284 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 19285 if test "x$test_cygdrive_prefix" = x; then 19286 # As a simple fix, exclude /usr/bin since it's not a real path. 19287 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 19288 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 19289 # a path prefixed by /cygdrive for fixpath to work. 19290 new_path="$CYGWIN_ROOT_PATH$input_path" 19291 fi 19292 fi 19293 19294 # remove trailing .exe if any 19295 new_path="${new_path/%.exe/}" 19296 19297 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 19298 19299 # First separate the path from the arguments. This will split at the first 19300 # space. 19301 complete="$FOUND_MAKE" 19302 path="${complete%% *}" 19303 tmp="$complete EOL" 19304 arguments="${tmp#* }" 19305 19306 # Input might be given as Windows format, start by converting to 19307 # unix format. 19308 new_path="$path" 19309 19310 windows_path="$new_path" 19311 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 19312 unix_path=`$CYGPATH -u "$windows_path"` 19313 new_path="$unix_path" 19314 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 19315 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 19316 new_path="$unix_path" 19317 fi 19318 19319 19320 # Now try to locate executable using which 19321 new_path=`$WHICH "$new_path" 2> /dev/null` 19322 19323 if test "x$new_path" = x; then 19324 # Oops. Which didn't find the executable. 19325 # The splitting of arguments from the executable at a space might have been incorrect, 19326 # since paths with space are more likely in Windows. Give it another try with the whole 19327 # argument. 19328 path="$complete" 19329 arguments="EOL" 19330 new_path="$path" 19331 19332 windows_path="$new_path" 19333 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 19334 unix_path=`$CYGPATH -u "$windows_path"` 19335 new_path="$unix_path" 19336 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 19337 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 19338 new_path="$unix_path" 19339 fi 19340 19341 19342 new_path=`$WHICH "$new_path" 2> /dev/null` 19343 # bat and cmd files are not always considered executable in MSYS causing which 19344 # to not find them 19345 if test "x$new_path" = x \ 19346 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 19347 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 19348 new_path="$path" 19349 19350 windows_path="$new_path" 19351 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 19352 unix_path=`$CYGPATH -u "$windows_path"` 19353 new_path="$unix_path" 19354 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 19355 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 19356 new_path="$unix_path" 19357 fi 19358 19359 fi 19360 19361 if test "x$new_path" = x; then 19362 # It's still not found. Now this is an unrecoverable error. 19363 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 19364 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 19365 has_space=`$ECHO "$complete" | $GREP " "` 19366 if test "x$has_space" != x; then 19367 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 19368 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 19369 fi 19370 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 19371 fi 19372 fi 19373 19374 # Now new_path has a complete unix path to the binary 19375 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 19376 # Keep paths in /bin as-is, but remove trailing .exe if any 19377 new_path="${new_path/%.exe/}" 19378 # Do not save /bin paths to all_fixpath_prefixes! 19379 else 19380 # Not in mixed or Windows style, start by that. 19381 new_path=`cmd //c echo $new_path` 19382 19383 input_path="$new_path" 19384 # Check if we need to convert this using DOS-style short mode. If the path 19385 # contains just simple characters, use it. Otherwise (spaces, weird characters), 19386 # take no chances and rewrite it. 19387 # Note: m4 eats our [], so we need to use [ and ] instead. 19388 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 19389 if test "x$has_forbidden_chars" != x; then 19390 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 19391 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 19392 fi 19393 19394 # Output is in $new_path 19395 19396 windows_path="$new_path" 19397 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 19398 unix_path=`$CYGPATH -u "$windows_path"` 19399 new_path="$unix_path" 19400 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 19401 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 19402 new_path="$unix_path" 19403 fi 19404 19405 # remove trailing .exe if any 19406 new_path="${new_path/%.exe/}" 19407 19408 # Save the first 10 bytes of this path to the storage, so fixpath can work. 19409 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 19410 fi 19411 19412 else 19413 # We're on a unix platform. Hooray! :) 19414 # First separate the path from the arguments. This will split at the first 19415 # space. 19416 complete="$FOUND_MAKE" 19417 path="${complete%% *}" 19418 tmp="$complete EOL" 19419 arguments="${tmp#* }" 19420 19421 # Cannot rely on the command "which" here since it doesn't always work. 19422 is_absolute_path=`$ECHO "$path" | $GREP ^/` 19423 if test -z "$is_absolute_path"; then 19424 # Path to executable is not absolute. Find it. 19425 IFS_save="$IFS" 19426 IFS=: 19427 for p in $PATH; do 19428 if test -f "$p/$path" && test -x "$p/$path"; then 19429 new_path="$p/$path" 19430 break 19431 fi 19432 done 19433 IFS="$IFS_save" 19434 else 19435 # This is an absolute path, we can use it without further modifications. 19436 new_path="$path" 19437 fi 19438 19439 if test "x$new_path" = x; then 19440 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 19441 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 19442 has_space=`$ECHO "$complete" | $GREP " "` 19443 if test "x$has_space" != x; then 19444 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 19445 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 19446 fi 19447 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 19448 fi 19449 fi 19450 19451 # Now join together the path and the arguments once again 19452 if test "x$arguments" != xEOL; then 19453 new_complete="$new_path ${arguments% *}" 19454 else 19455 new_complete="$new_path" 19456 fi 19457 19458 if test "x$complete" != "x$new_complete"; then 19459 FOUND_MAKE="$new_complete" 19460 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5 19461 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;} 19462 fi 19463 fi 19464 19465 fi 19466 fi 19467 fi 19468 fi 19469 19470 19471 if test "x$FOUND_MAKE" = x; then 19472 for ac_prog in make 19473 do 19474 # Extract the first word of "$ac_prog", so it can be a program name with args. 19475 set dummy $ac_prog; ac_word=$2 19476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 19477 $as_echo_n "checking for $ac_word... " >&6; } 19478 if ${ac_cv_path_CHECK_MAKE+:} false; then : 19479 $as_echo_n "(cached) " >&6 19480 else 19481 case $CHECK_MAKE in 19482 [\\/]* | ?:[\\/]*) 19483 ac_cv_path_CHECK_MAKE="$CHECK_MAKE" # Let the user override the test with a path. 19484 ;; 19485 *) 19486 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19487 for as_dir in $PATH 19488 do 19489 IFS=$as_save_IFS 19490 test -z "$as_dir" && as_dir=. 19491 for ac_exec_ext in '' $ac_executable_extensions; do 19492 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 19493 ac_cv_path_CHECK_MAKE="$as_dir/$ac_word$ac_exec_ext" 19494 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 19495 break 2 19496 fi 19497 done 19498 done 19499 IFS=$as_save_IFS 19500 19501 ;; 19502 esac 19503 fi 19504 CHECK_MAKE=$ac_cv_path_CHECK_MAKE 19505 if test -n "$CHECK_MAKE"; then 19506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHECK_MAKE" >&5 19507 $as_echo "$CHECK_MAKE" >&6; } 19508 else 19509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19510 $as_echo "no" >&6; } 19511 fi 19512 19513 19514 test -n "$CHECK_MAKE" && break 19515 done 19516 19517 19518 MAKE_CANDIDATE=""$CHECK_MAKE"" 19519 DESCRIPTION="make in PATH" 19520 19521 # On Cygwin, we require a newer version of make than on other platforms 19522 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 19523 MAKE_VERSION_EXPR="-e 4\." 19524 MAKE_REQUIRED_VERSION="4.0" 19525 else 19526 MAKE_VERSION_EXPR="-e 3\.8[12] -e 4\." 19527 MAKE_REQUIRED_VERSION="3.81" 19528 fi 19529 19530 if test "x$MAKE_CANDIDATE" != x; then 19531 { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5 19532 $as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;} 19533 MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1` 19534 IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'` 19535 if test "x$IS_GNU_MAKE" = x; then 19536 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5 19537 $as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;} 19538 else 19539 IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP $MAKE_VERSION_EXPR` 19540 if test "x$IS_MODERN_MAKE" = x; then 19541 { $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 19542 $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;} 19543 else 19544 if test "x$OPENJDK_BUILD_OS" = "xwindows"; then 19545 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 19546 MAKE_EXPECTED_ENV='cygwin' 19547 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 19548 MAKE_EXPECTED_ENV='msys' 19549 else 19550 as_fn_error $? "Unknown Windows environment" "$LINENO" 5 19551 fi 19552 MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'` 19553 IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV` 19554 else 19555 # Not relevant for non-Windows 19556 IS_MAKE_CORRECT_ENV=true 19557 fi 19558 if test "x$IS_MAKE_CORRECT_ENV" = x; then 19559 { $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 19560 $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;} 19561 else 19562 FOUND_MAKE=$MAKE_CANDIDATE 19563 19564 # Only process if variable expands to non-empty 19565 19566 if test "x$FOUND_MAKE" != x; then 19567 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 19568 19569 # First separate the path from the arguments. This will split at the first 19570 # space. 19571 complete="$FOUND_MAKE" 19572 path="${complete%% *}" 19573 tmp="$complete EOL" 19574 arguments="${tmp#* }" 19575 19576 # Input might be given as Windows format, start by converting to 19577 # unix format. 19578 new_path=`$CYGPATH -u "$path"` 19579 19580 # Now try to locate executable using which 19581 new_path=`$WHICH "$new_path" 2> /dev/null` 19582 # bat and cmd files are not always considered executable in cygwin causing which 19583 # to not find them 19584 if test "x$new_path" = x \ 19585 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 19586 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 19587 new_path=`$CYGPATH -u "$path"` 19588 fi 19589 if test "x$new_path" = x; then 19590 # Oops. Which didn't find the executable. 19591 # The splitting of arguments from the executable at a space might have been incorrect, 19592 # since paths with space are more likely in Windows. Give it another try with the whole 19593 # argument. 19594 path="$complete" 19595 arguments="EOL" 19596 new_path=`$CYGPATH -u "$path"` 19597 new_path=`$WHICH "$new_path" 2> /dev/null` 19598 # bat and cmd files are not always considered executable in cygwin causing which 19599 # to not find them 19600 if test "x$new_path" = x \ 19601 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 19602 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 19603 new_path=`$CYGPATH -u "$path"` 19604 fi 19605 if test "x$new_path" = x; then 19606 # It's still not found. Now this is an unrecoverable error. 19607 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 19608 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 19609 has_space=`$ECHO "$complete" | $GREP " "` 19610 if test "x$has_space" != x; then 19611 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 19612 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 19613 fi 19614 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 19615 fi 19616 fi 19617 19618 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 19619 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 19620 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 19621 # "foo.exe" is OK but "foo" is an error. 19622 # 19623 # This test is therefore slightly more accurate than "test -f" to check for file presence. 19624 # It is also a way to make sure we got the proper file name for the real test later on. 19625 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 19626 if test "x$test_shortpath" = x; then 19627 # Short path failed, file does not exist as specified. 19628 # Try adding .exe or .cmd 19629 if test -f "${new_path}.exe"; then 19630 input_to_shortpath="${new_path}.exe" 19631 elif test -f "${new_path}.cmd"; then 19632 input_to_shortpath="${new_path}.cmd" 19633 else 19634 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5 19635 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;} 19636 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 19637 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 19638 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 19639 fi 19640 else 19641 input_to_shortpath="$new_path" 19642 fi 19643 19644 # Call helper function which possibly converts this using DOS-style short mode. 19645 # If so, the updated path is stored in $new_path. 19646 new_path="$input_to_shortpath" 19647 19648 input_path="$input_to_shortpath" 19649 # Check if we need to convert this using DOS-style short mode. If the path 19650 # contains just simple characters, use it. Otherwise (spaces, weird characters), 19651 # take no chances and rewrite it. 19652 # Note: m4 eats our [], so we need to use [ and ] instead. 19653 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 19654 if test "x$has_forbidden_chars" != x; then 19655 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 19656 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 19657 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 19658 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 19659 # Going to short mode and back again did indeed matter. Since short mode is 19660 # case insensitive, let's make it lowercase to improve readability. 19661 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 19662 # Now convert it back to Unix-style (cygpath) 19663 input_path=`$CYGPATH -u "$shortmode_path"` 19664 new_path="$input_path" 19665 fi 19666 fi 19667 19668 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 19669 if test "x$test_cygdrive_prefix" = x; then 19670 # As a simple fix, exclude /usr/bin since it's not a real path. 19671 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 19672 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 19673 # a path prefixed by /cygdrive for fixpath to work. 19674 new_path="$CYGWIN_ROOT_PATH$input_path" 19675 fi 19676 fi 19677 19678 # remove trailing .exe if any 19679 new_path="${new_path/%.exe/}" 19680 19681 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 19682 19683 # First separate the path from the arguments. This will split at the first 19684 # space. 19685 complete="$FOUND_MAKE" 19686 path="${complete%% *}" 19687 tmp="$complete EOL" 19688 arguments="${tmp#* }" 19689 19690 # Input might be given as Windows format, start by converting to 19691 # unix format. 19692 new_path="$path" 19693 19694 windows_path="$new_path" 19695 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 19696 unix_path=`$CYGPATH -u "$windows_path"` 19697 new_path="$unix_path" 19698 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 19699 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 19700 new_path="$unix_path" 19701 fi 19702 19703 19704 # Now try to locate executable using which 19705 new_path=`$WHICH "$new_path" 2> /dev/null` 19706 19707 if test "x$new_path" = x; then 19708 # Oops. Which didn't find the executable. 19709 # The splitting of arguments from the executable at a space might have been incorrect, 19710 # since paths with space are more likely in Windows. Give it another try with the whole 19711 # argument. 19712 path="$complete" 19713 arguments="EOL" 19714 new_path="$path" 19715 19716 windows_path="$new_path" 19717 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 19718 unix_path=`$CYGPATH -u "$windows_path"` 19719 new_path="$unix_path" 19720 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 19721 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 19722 new_path="$unix_path" 19723 fi 19724 19725 19726 new_path=`$WHICH "$new_path" 2> /dev/null` 19727 # bat and cmd files are not always considered executable in MSYS causing which 19728 # to not find them 19729 if test "x$new_path" = x \ 19730 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 19731 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 19732 new_path="$path" 19733 19734 windows_path="$new_path" 19735 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 19736 unix_path=`$CYGPATH -u "$windows_path"` 19737 new_path="$unix_path" 19738 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 19739 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 19740 new_path="$unix_path" 19741 fi 19742 19743 fi 19744 19745 if test "x$new_path" = x; then 19746 # It's still not found. Now this is an unrecoverable error. 19747 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 19748 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 19749 has_space=`$ECHO "$complete" | $GREP " "` 19750 if test "x$has_space" != x; then 19751 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 19752 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 19753 fi 19754 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 19755 fi 19756 fi 19757 19758 # Now new_path has a complete unix path to the binary 19759 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 19760 # Keep paths in /bin as-is, but remove trailing .exe if any 19761 new_path="${new_path/%.exe/}" 19762 # Do not save /bin paths to all_fixpath_prefixes! 19763 else 19764 # Not in mixed or Windows style, start by that. 19765 new_path=`cmd //c echo $new_path` 19766 19767 input_path="$new_path" 19768 # Check if we need to convert this using DOS-style short mode. If the path 19769 # contains just simple characters, use it. Otherwise (spaces, weird characters), 19770 # take no chances and rewrite it. 19771 # Note: m4 eats our [], so we need to use [ and ] instead. 19772 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 19773 if test "x$has_forbidden_chars" != x; then 19774 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 19775 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 19776 fi 19777 19778 # Output is in $new_path 19779 19780 windows_path="$new_path" 19781 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 19782 unix_path=`$CYGPATH -u "$windows_path"` 19783 new_path="$unix_path" 19784 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 19785 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 19786 new_path="$unix_path" 19787 fi 19788 19789 # remove trailing .exe if any 19790 new_path="${new_path/%.exe/}" 19791 19792 # Save the first 10 bytes of this path to the storage, so fixpath can work. 19793 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 19794 fi 19795 19796 else 19797 # We're on a unix platform. Hooray! :) 19798 # First separate the path from the arguments. This will split at the first 19799 # space. 19800 complete="$FOUND_MAKE" 19801 path="${complete%% *}" 19802 tmp="$complete EOL" 19803 arguments="${tmp#* }" 19804 19805 # Cannot rely on the command "which" here since it doesn't always work. 19806 is_absolute_path=`$ECHO "$path" | $GREP ^/` 19807 if test -z "$is_absolute_path"; then 19808 # Path to executable is not absolute. Find it. 19809 IFS_save="$IFS" 19810 IFS=: 19811 for p in $PATH; do 19812 if test -f "$p/$path" && test -x "$p/$path"; then 19813 new_path="$p/$path" 19814 break 19815 fi 19816 done 19817 IFS="$IFS_save" 19818 else 19819 # This is an absolute path, we can use it without further modifications. 19820 new_path="$path" 19821 fi 19822 19823 if test "x$new_path" = x; then 19824 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 19825 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 19826 has_space=`$ECHO "$complete" | $GREP " "` 19827 if test "x$has_space" != x; then 19828 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 19829 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 19830 fi 19831 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 19832 fi 19833 fi 19834 19835 # Now join together the path and the arguments once again 19836 if test "x$arguments" != xEOL; then 19837 new_complete="$new_path ${arguments% *}" 19838 else 19839 new_complete="$new_path" 19840 fi 19841 19842 if test "x$complete" != "x$new_complete"; then 19843 FOUND_MAKE="$new_complete" 19844 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5 19845 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;} 19846 fi 19847 fi 19848 19849 fi 19850 fi 19851 fi 19852 fi 19853 19854 fi 19855 19856 if test "x$FOUND_MAKE" = x; then 19857 if test "x$TOOLCHAIN_PATH" != x; then 19858 # We have a toolchain path, check that as well before giving up. 19859 OLD_PATH=$PATH 19860 PATH=$TOOLCHAIN_PATH:$PATH 19861 for ac_prog in gmake 19862 do 19863 # Extract the first word of "$ac_prog", so it can be a program name with args. 19864 set dummy $ac_prog; ac_word=$2 19865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 19866 $as_echo_n "checking for $ac_word... " >&6; } 19867 if ${ac_cv_path_CHECK_TOOLSDIR_GMAKE+:} false; then : 19868 $as_echo_n "(cached) " >&6 19869 else 19870 case $CHECK_TOOLSDIR_GMAKE in 19871 [\\/]* | ?:[\\/]*) 19872 ac_cv_path_CHECK_TOOLSDIR_GMAKE="$CHECK_TOOLSDIR_GMAKE" # Let the user override the test with a path. 19873 ;; 19874 *) 19875 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19876 for as_dir in $PATH 19877 do 19878 IFS=$as_save_IFS 19879 test -z "$as_dir" && as_dir=. 19880 for ac_exec_ext in '' $ac_executable_extensions; do 19881 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 19882 ac_cv_path_CHECK_TOOLSDIR_GMAKE="$as_dir/$ac_word$ac_exec_ext" 19883 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 19884 break 2 19885 fi 19886 done 19887 done 19888 IFS=$as_save_IFS 19889 19890 ;; 19891 esac 19892 fi 19893 CHECK_TOOLSDIR_GMAKE=$ac_cv_path_CHECK_TOOLSDIR_GMAKE 19894 if test -n "$CHECK_TOOLSDIR_GMAKE"; then 19895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHECK_TOOLSDIR_GMAKE" >&5 19896 $as_echo "$CHECK_TOOLSDIR_GMAKE" >&6; } 19897 else 19898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19899 $as_echo "no" >&6; } 19900 fi 19901 19902 19903 test -n "$CHECK_TOOLSDIR_GMAKE" && break 19904 done 19905 19906 19907 MAKE_CANDIDATE=""$CHECK_TOOLSDIR_GMAKE"" 19908 DESCRIPTION="gmake in tools-dir" 19909 19910 # On Cygwin, we require a newer version of make than on other platforms 19911 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 19912 MAKE_VERSION_EXPR="-e 4\." 19913 MAKE_REQUIRED_VERSION="4.0" 19914 else 19915 MAKE_VERSION_EXPR="-e 3\.8[12] -e 4\." 19916 MAKE_REQUIRED_VERSION="3.81" 19917 fi 19918 19919 if test "x$MAKE_CANDIDATE" != x; then 19920 { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5 19921 $as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;} 19922 MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1` 19923 IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'` 19924 if test "x$IS_GNU_MAKE" = x; then 19925 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5 19926 $as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;} 19927 else 19928 IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP $MAKE_VERSION_EXPR` 19929 if test "x$IS_MODERN_MAKE" = x; then 19930 { $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 19931 $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;} 19932 else 19933 if test "x$OPENJDK_BUILD_OS" = "xwindows"; then 19934 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 19935 MAKE_EXPECTED_ENV='cygwin' 19936 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 19937 MAKE_EXPECTED_ENV='msys' 19938 else 19939 as_fn_error $? "Unknown Windows environment" "$LINENO" 5 19940 fi 19941 MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'` 19942 IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV` 19943 else 19944 # Not relevant for non-Windows 19945 IS_MAKE_CORRECT_ENV=true 19946 fi 19947 if test "x$IS_MAKE_CORRECT_ENV" = x; then 19948 { $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 19949 $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;} 19950 else 19951 FOUND_MAKE=$MAKE_CANDIDATE 19952 19953 # Only process if variable expands to non-empty 19954 19955 if test "x$FOUND_MAKE" != x; then 19956 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 19957 19958 # First separate the path from the arguments. This will split at the first 19959 # space. 19960 complete="$FOUND_MAKE" 19961 path="${complete%% *}" 19962 tmp="$complete EOL" 19963 arguments="${tmp#* }" 19964 19965 # Input might be given as Windows format, start by converting to 19966 # unix format. 19967 new_path=`$CYGPATH -u "$path"` 19968 19969 # Now try to locate executable using which 19970 new_path=`$WHICH "$new_path" 2> /dev/null` 19971 # bat and cmd files are not always considered executable in cygwin causing which 19972 # to not find them 19973 if test "x$new_path" = x \ 19974 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 19975 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 19976 new_path=`$CYGPATH -u "$path"` 19977 fi 19978 if test "x$new_path" = x; then 19979 # Oops. Which didn't find the executable. 19980 # The splitting of arguments from the executable at a space might have been incorrect, 19981 # since paths with space are more likely in Windows. Give it another try with the whole 19982 # argument. 19983 path="$complete" 19984 arguments="EOL" 19985 new_path=`$CYGPATH -u "$path"` 19986 new_path=`$WHICH "$new_path" 2> /dev/null` 19987 # bat and cmd files are not always considered executable in cygwin causing which 19988 # to not find them 19989 if test "x$new_path" = x \ 19990 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 19991 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 19992 new_path=`$CYGPATH -u "$path"` 19993 fi 19994 if test "x$new_path" = x; then 19995 # It's still not found. Now this is an unrecoverable error. 19996 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 19997 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 19998 has_space=`$ECHO "$complete" | $GREP " "` 19999 if test "x$has_space" != x; then 20000 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 20001 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 20002 fi 20003 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 20004 fi 20005 fi 20006 20007 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 20008 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 20009 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 20010 # "foo.exe" is OK but "foo" is an error. 20011 # 20012 # This test is therefore slightly more accurate than "test -f" to check for file presence. 20013 # It is also a way to make sure we got the proper file name for the real test later on. 20014 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 20015 if test "x$test_shortpath" = x; then 20016 # Short path failed, file does not exist as specified. 20017 # Try adding .exe or .cmd 20018 if test -f "${new_path}.exe"; then 20019 input_to_shortpath="${new_path}.exe" 20020 elif test -f "${new_path}.cmd"; then 20021 input_to_shortpath="${new_path}.cmd" 20022 else 20023 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5 20024 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;} 20025 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 20026 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 20027 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 20028 fi 20029 else 20030 input_to_shortpath="$new_path" 20031 fi 20032 20033 # Call helper function which possibly converts this using DOS-style short mode. 20034 # If so, the updated path is stored in $new_path. 20035 new_path="$input_to_shortpath" 20036 20037 input_path="$input_to_shortpath" 20038 # Check if we need to convert this using DOS-style short mode. If the path 20039 # contains just simple characters, use it. Otherwise (spaces, weird characters), 20040 # take no chances and rewrite it. 20041 # Note: m4 eats our [], so we need to use [ and ] instead. 20042 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 20043 if test "x$has_forbidden_chars" != x; then 20044 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 20045 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 20046 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 20047 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 20048 # Going to short mode and back again did indeed matter. Since short mode is 20049 # case insensitive, let's make it lowercase to improve readability. 20050 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 20051 # Now convert it back to Unix-style (cygpath) 20052 input_path=`$CYGPATH -u "$shortmode_path"` 20053 new_path="$input_path" 20054 fi 20055 fi 20056 20057 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 20058 if test "x$test_cygdrive_prefix" = x; then 20059 # As a simple fix, exclude /usr/bin since it's not a real path. 20060 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 20061 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 20062 # a path prefixed by /cygdrive for fixpath to work. 20063 new_path="$CYGWIN_ROOT_PATH$input_path" 20064 fi 20065 fi 20066 20067 # remove trailing .exe if any 20068 new_path="${new_path/%.exe/}" 20069 20070 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 20071 20072 # First separate the path from the arguments. This will split at the first 20073 # space. 20074 complete="$FOUND_MAKE" 20075 path="${complete%% *}" 20076 tmp="$complete EOL" 20077 arguments="${tmp#* }" 20078 20079 # Input might be given as Windows format, start by converting to 20080 # unix format. 20081 new_path="$path" 20082 20083 windows_path="$new_path" 20084 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 20085 unix_path=`$CYGPATH -u "$windows_path"` 20086 new_path="$unix_path" 20087 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 20088 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 20089 new_path="$unix_path" 20090 fi 20091 20092 20093 # Now try to locate executable using which 20094 new_path=`$WHICH "$new_path" 2> /dev/null` 20095 20096 if test "x$new_path" = x; then 20097 # Oops. Which didn't find the executable. 20098 # The splitting of arguments from the executable at a space might have been incorrect, 20099 # since paths with space are more likely in Windows. Give it another try with the whole 20100 # argument. 20101 path="$complete" 20102 arguments="EOL" 20103 new_path="$path" 20104 20105 windows_path="$new_path" 20106 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 20107 unix_path=`$CYGPATH -u "$windows_path"` 20108 new_path="$unix_path" 20109 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 20110 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 20111 new_path="$unix_path" 20112 fi 20113 20114 20115 new_path=`$WHICH "$new_path" 2> /dev/null` 20116 # bat and cmd files are not always considered executable in MSYS causing which 20117 # to not find them 20118 if test "x$new_path" = x \ 20119 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 20120 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 20121 new_path="$path" 20122 20123 windows_path="$new_path" 20124 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 20125 unix_path=`$CYGPATH -u "$windows_path"` 20126 new_path="$unix_path" 20127 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 20128 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 20129 new_path="$unix_path" 20130 fi 20131 20132 fi 20133 20134 if test "x$new_path" = x; then 20135 # It's still not found. Now this is an unrecoverable error. 20136 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 20137 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 20138 has_space=`$ECHO "$complete" | $GREP " "` 20139 if test "x$has_space" != x; then 20140 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 20141 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 20142 fi 20143 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 20144 fi 20145 fi 20146 20147 # Now new_path has a complete unix path to the binary 20148 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 20149 # Keep paths in /bin as-is, but remove trailing .exe if any 20150 new_path="${new_path/%.exe/}" 20151 # Do not save /bin paths to all_fixpath_prefixes! 20152 else 20153 # Not in mixed or Windows style, start by that. 20154 new_path=`cmd //c echo $new_path` 20155 20156 input_path="$new_path" 20157 # Check if we need to convert this using DOS-style short mode. If the path 20158 # contains just simple characters, use it. Otherwise (spaces, weird characters), 20159 # take no chances and rewrite it. 20160 # Note: m4 eats our [], so we need to use [ and ] instead. 20161 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 20162 if test "x$has_forbidden_chars" != x; then 20163 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 20164 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 20165 fi 20166 20167 # Output is in $new_path 20168 20169 windows_path="$new_path" 20170 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 20171 unix_path=`$CYGPATH -u "$windows_path"` 20172 new_path="$unix_path" 20173 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 20174 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 20175 new_path="$unix_path" 20176 fi 20177 20178 # remove trailing .exe if any 20179 new_path="${new_path/%.exe/}" 20180 20181 # Save the first 10 bytes of this path to the storage, so fixpath can work. 20182 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 20183 fi 20184 20185 else 20186 # We're on a unix platform. Hooray! :) 20187 # First separate the path from the arguments. This will split at the first 20188 # space. 20189 complete="$FOUND_MAKE" 20190 path="${complete%% *}" 20191 tmp="$complete EOL" 20192 arguments="${tmp#* }" 20193 20194 # Cannot rely on the command "which" here since it doesn't always work. 20195 is_absolute_path=`$ECHO "$path" | $GREP ^/` 20196 if test -z "$is_absolute_path"; then 20197 # Path to executable is not absolute. Find it. 20198 IFS_save="$IFS" 20199 IFS=: 20200 for p in $PATH; do 20201 if test -f "$p/$path" && test -x "$p/$path"; then 20202 new_path="$p/$path" 20203 break 20204 fi 20205 done 20206 IFS="$IFS_save" 20207 else 20208 # This is an absolute path, we can use it without further modifications. 20209 new_path="$path" 20210 fi 20211 20212 if test "x$new_path" = x; then 20213 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 20214 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 20215 has_space=`$ECHO "$complete" | $GREP " "` 20216 if test "x$has_space" != x; then 20217 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 20218 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 20219 fi 20220 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 20221 fi 20222 fi 20223 20224 # Now join together the path and the arguments once again 20225 if test "x$arguments" != xEOL; then 20226 new_complete="$new_path ${arguments% *}" 20227 else 20228 new_complete="$new_path" 20229 fi 20230 20231 if test "x$complete" != "x$new_complete"; then 20232 FOUND_MAKE="$new_complete" 20233 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5 20234 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;} 20235 fi 20236 fi 20237 20238 fi 20239 fi 20240 fi 20241 fi 20242 20243 if test "x$FOUND_MAKE" = x; then 20244 for ac_prog in make 20245 do 20246 # Extract the first word of "$ac_prog", so it can be a program name with args. 20247 set dummy $ac_prog; ac_word=$2 20248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 20249 $as_echo_n "checking for $ac_word... " >&6; } 20250 if ${ac_cv_path_CHECK_TOOLSDIR_MAKE+:} false; then : 20251 $as_echo_n "(cached) " >&6 20252 else 20253 case $CHECK_TOOLSDIR_MAKE in 20254 [\\/]* | ?:[\\/]*) 20255 ac_cv_path_CHECK_TOOLSDIR_MAKE="$CHECK_TOOLSDIR_MAKE" # Let the user override the test with a path. 20256 ;; 20257 *) 20258 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 20259 for as_dir in $PATH 20260 do 20261 IFS=$as_save_IFS 20262 test -z "$as_dir" && as_dir=. 20263 for ac_exec_ext in '' $ac_executable_extensions; do 20264 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 20265 ac_cv_path_CHECK_TOOLSDIR_MAKE="$as_dir/$ac_word$ac_exec_ext" 20266 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 20267 break 2 20268 fi 20269 done 20270 done 20271 IFS=$as_save_IFS 20272 20273 ;; 20274 esac 20275 fi 20276 CHECK_TOOLSDIR_MAKE=$ac_cv_path_CHECK_TOOLSDIR_MAKE 20277 if test -n "$CHECK_TOOLSDIR_MAKE"; then 20278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHECK_TOOLSDIR_MAKE" >&5 20279 $as_echo "$CHECK_TOOLSDIR_MAKE" >&6; } 20280 else 20281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 20282 $as_echo "no" >&6; } 20283 fi 20284 20285 20286 test -n "$CHECK_TOOLSDIR_MAKE" && break 20287 done 20288 20289 20290 MAKE_CANDIDATE=""$CHECK_TOOLSDIR_MAKE"" 20291 DESCRIPTION="make in tools-dir" 20292 20293 # On Cygwin, we require a newer version of make than on other platforms 20294 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 20295 MAKE_VERSION_EXPR="-e 4\." 20296 MAKE_REQUIRED_VERSION="4.0" 20297 else 20298 MAKE_VERSION_EXPR="-e 3\.8[12] -e 4\." 20299 MAKE_REQUIRED_VERSION="3.81" 20300 fi 20301 20302 if test "x$MAKE_CANDIDATE" != x; then 20303 { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5 20304 $as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;} 20305 MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1` 20306 IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'` 20307 if test "x$IS_GNU_MAKE" = x; then 20308 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5 20309 $as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;} 20310 else 20311 IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP $MAKE_VERSION_EXPR` 20312 if test "x$IS_MODERN_MAKE" = x; then 20313 { $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 20314 $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;} 20315 else 20316 if test "x$OPENJDK_BUILD_OS" = "xwindows"; then 20317 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 20318 MAKE_EXPECTED_ENV='cygwin' 20319 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 20320 MAKE_EXPECTED_ENV='msys' 20321 else 20322 as_fn_error $? "Unknown Windows environment" "$LINENO" 5 20323 fi 20324 MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'` 20325 IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV` 20326 else 20327 # Not relevant for non-Windows 20328 IS_MAKE_CORRECT_ENV=true 20329 fi 20330 if test "x$IS_MAKE_CORRECT_ENV" = x; then 20331 { $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 20332 $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;} 20333 else 20334 FOUND_MAKE=$MAKE_CANDIDATE 20335 20336 # Only process if variable expands to non-empty 20337 20338 if test "x$FOUND_MAKE" != x; then 20339 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 20340 20341 # First separate the path from the arguments. This will split at the first 20342 # space. 20343 complete="$FOUND_MAKE" 20344 path="${complete%% *}" 20345 tmp="$complete EOL" 20346 arguments="${tmp#* }" 20347 20348 # Input might be given as Windows format, start by converting to 20349 # unix format. 20350 new_path=`$CYGPATH -u "$path"` 20351 20352 # Now try to locate executable using which 20353 new_path=`$WHICH "$new_path" 2> /dev/null` 20354 # bat and cmd files are not always considered executable in cygwin causing which 20355 # to not find them 20356 if test "x$new_path" = x \ 20357 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 20358 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 20359 new_path=`$CYGPATH -u "$path"` 20360 fi 20361 if test "x$new_path" = x; then 20362 # Oops. Which didn't find the executable. 20363 # The splitting of arguments from the executable at a space might have been incorrect, 20364 # since paths with space are more likely in Windows. Give it another try with the whole 20365 # argument. 20366 path="$complete" 20367 arguments="EOL" 20368 new_path=`$CYGPATH -u "$path"` 20369 new_path=`$WHICH "$new_path" 2> /dev/null` 20370 # bat and cmd files are not always considered executable in cygwin causing which 20371 # to not find them 20372 if test "x$new_path" = x \ 20373 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 20374 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 20375 new_path=`$CYGPATH -u "$path"` 20376 fi 20377 if test "x$new_path" = x; then 20378 # It's still not found. Now this is an unrecoverable error. 20379 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 20380 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 20381 has_space=`$ECHO "$complete" | $GREP " "` 20382 if test "x$has_space" != x; then 20383 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 20384 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 20385 fi 20386 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 20387 fi 20388 fi 20389 20390 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 20391 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 20392 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 20393 # "foo.exe" is OK but "foo" is an error. 20394 # 20395 # This test is therefore slightly more accurate than "test -f" to check for file presence. 20396 # It is also a way to make sure we got the proper file name for the real test later on. 20397 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 20398 if test "x$test_shortpath" = x; then 20399 # Short path failed, file does not exist as specified. 20400 # Try adding .exe or .cmd 20401 if test -f "${new_path}.exe"; then 20402 input_to_shortpath="${new_path}.exe" 20403 elif test -f "${new_path}.cmd"; then 20404 input_to_shortpath="${new_path}.cmd" 20405 else 20406 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5 20407 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;} 20408 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 20409 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 20410 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 20411 fi 20412 else 20413 input_to_shortpath="$new_path" 20414 fi 20415 20416 # Call helper function which possibly converts this using DOS-style short mode. 20417 # If so, the updated path is stored in $new_path. 20418 new_path="$input_to_shortpath" 20419 20420 input_path="$input_to_shortpath" 20421 # Check if we need to convert this using DOS-style short mode. If the path 20422 # contains just simple characters, use it. Otherwise (spaces, weird characters), 20423 # take no chances and rewrite it. 20424 # Note: m4 eats our [], so we need to use [ and ] instead. 20425 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 20426 if test "x$has_forbidden_chars" != x; then 20427 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 20428 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 20429 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 20430 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 20431 # Going to short mode and back again did indeed matter. Since short mode is 20432 # case insensitive, let's make it lowercase to improve readability. 20433 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 20434 # Now convert it back to Unix-style (cygpath) 20435 input_path=`$CYGPATH -u "$shortmode_path"` 20436 new_path="$input_path" 20437 fi 20438 fi 20439 20440 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 20441 if test "x$test_cygdrive_prefix" = x; then 20442 # As a simple fix, exclude /usr/bin since it's not a real path. 20443 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 20444 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 20445 # a path prefixed by /cygdrive for fixpath to work. 20446 new_path="$CYGWIN_ROOT_PATH$input_path" 20447 fi 20448 fi 20449 20450 # remove trailing .exe if any 20451 new_path="${new_path/%.exe/}" 20452 20453 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 20454 20455 # First separate the path from the arguments. This will split at the first 20456 # space. 20457 complete="$FOUND_MAKE" 20458 path="${complete%% *}" 20459 tmp="$complete EOL" 20460 arguments="${tmp#* }" 20461 20462 # Input might be given as Windows format, start by converting to 20463 # unix format. 20464 new_path="$path" 20465 20466 windows_path="$new_path" 20467 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 20468 unix_path=`$CYGPATH -u "$windows_path"` 20469 new_path="$unix_path" 20470 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 20471 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 20472 new_path="$unix_path" 20473 fi 20474 20475 20476 # Now try to locate executable using which 20477 new_path=`$WHICH "$new_path" 2> /dev/null` 20478 20479 if test "x$new_path" = x; then 20480 # Oops. Which didn't find the executable. 20481 # The splitting of arguments from the executable at a space might have been incorrect, 20482 # since paths with space are more likely in Windows. Give it another try with the whole 20483 # argument. 20484 path="$complete" 20485 arguments="EOL" 20486 new_path="$path" 20487 20488 windows_path="$new_path" 20489 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 20490 unix_path=`$CYGPATH -u "$windows_path"` 20491 new_path="$unix_path" 20492 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 20493 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 20494 new_path="$unix_path" 20495 fi 20496 20497 20498 new_path=`$WHICH "$new_path" 2> /dev/null` 20499 # bat and cmd files are not always considered executable in MSYS causing which 20500 # to not find them 20501 if test "x$new_path" = x \ 20502 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 20503 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 20504 new_path="$path" 20505 20506 windows_path="$new_path" 20507 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 20508 unix_path=`$CYGPATH -u "$windows_path"` 20509 new_path="$unix_path" 20510 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 20511 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 20512 new_path="$unix_path" 20513 fi 20514 20515 fi 20516 20517 if test "x$new_path" = x; then 20518 # It's still not found. Now this is an unrecoverable error. 20519 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 20520 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 20521 has_space=`$ECHO "$complete" | $GREP " "` 20522 if test "x$has_space" != x; then 20523 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 20524 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 20525 fi 20526 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 20527 fi 20528 fi 20529 20530 # Now new_path has a complete unix path to the binary 20531 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 20532 # Keep paths in /bin as-is, but remove trailing .exe if any 20533 new_path="${new_path/%.exe/}" 20534 # Do not save /bin paths to all_fixpath_prefixes! 20535 else 20536 # Not in mixed or Windows style, start by that. 20537 new_path=`cmd //c echo $new_path` 20538 20539 input_path="$new_path" 20540 # Check if we need to convert this using DOS-style short mode. If the path 20541 # contains just simple characters, use it. Otherwise (spaces, weird characters), 20542 # take no chances and rewrite it. 20543 # Note: m4 eats our [], so we need to use [ and ] instead. 20544 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 20545 if test "x$has_forbidden_chars" != x; then 20546 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 20547 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 20548 fi 20549 20550 # Output is in $new_path 20551 20552 windows_path="$new_path" 20553 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 20554 unix_path=`$CYGPATH -u "$windows_path"` 20555 new_path="$unix_path" 20556 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 20557 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 20558 new_path="$unix_path" 20559 fi 20560 20561 # remove trailing .exe if any 20562 new_path="${new_path/%.exe/}" 20563 20564 # Save the first 10 bytes of this path to the storage, so fixpath can work. 20565 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 20566 fi 20567 20568 else 20569 # We're on a unix platform. Hooray! :) 20570 # First separate the path from the arguments. This will split at the first 20571 # space. 20572 complete="$FOUND_MAKE" 20573 path="${complete%% *}" 20574 tmp="$complete EOL" 20575 arguments="${tmp#* }" 20576 20577 # Cannot rely on the command "which" here since it doesn't always work. 20578 is_absolute_path=`$ECHO "$path" | $GREP ^/` 20579 if test -z "$is_absolute_path"; then 20580 # Path to executable is not absolute. Find it. 20581 IFS_save="$IFS" 20582 IFS=: 20583 for p in $PATH; do 20584 if test -f "$p/$path" && test -x "$p/$path"; then 20585 new_path="$p/$path" 20586 break 20587 fi 20588 done 20589 IFS="$IFS_save" 20590 else 20591 # This is an absolute path, we can use it without further modifications. 20592 new_path="$path" 20593 fi 20594 20595 if test "x$new_path" = x; then 20596 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 20597 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 20598 has_space=`$ECHO "$complete" | $GREP " "` 20599 if test "x$has_space" != x; then 20600 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 20601 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 20602 fi 20603 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 20604 fi 20605 fi 20606 20607 # Now join together the path and the arguments once again 20608 if test "x$arguments" != xEOL; then 20609 new_complete="$new_path ${arguments% *}" 20610 else 20611 new_complete="$new_path" 20612 fi 20613 20614 if test "x$complete" != "x$new_complete"; then 20615 FOUND_MAKE="$new_complete" 20616 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5 20617 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;} 20618 fi 20619 fi 20620 20621 fi 20622 fi 20623 fi 20624 fi 20625 20626 fi 20627 PATH=$OLD_PATH 20628 fi 20629 fi 20630 20631 if test "x$FOUND_MAKE" = x; then 20632 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 20633 fi 20634 20635 else 20636 # If it succeeded, then it was overridden by the user. We will use it 20637 # for the tool. 20638 20639 # First remove it from the list of overridden variables, so we can test 20640 # for unknown variables in the end. 20641 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 20642 20643 # Check if we try to supply an empty value 20644 if test "x$MAKE" = x; then 20645 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool MAKE= (no value)" >&5 20646 $as_echo "$as_me: Setting user supplied tool MAKE= (no value)" >&6;} 20647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAKE" >&5 20648 $as_echo_n "checking for MAKE... " >&6; } 20649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 20650 $as_echo "disabled" >&6; } 20651 else 20652 # Check if the provided tool contains a complete path. 20653 tool_specified="$MAKE" 20654 tool_basename="${tool_specified##*/}" 20655 if test "x$tool_basename" = "x$tool_specified"; then 20656 # A command without a complete path is provided, search $PATH. 20657 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool MAKE=$tool_basename" >&5 20658 $as_echo "$as_me: Will search for user supplied tool MAKE=$tool_basename" >&6;} 20659 # Extract the first word of "$tool_basename", so it can be a program name with args. 20660 set dummy $tool_basename; ac_word=$2 20661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 20662 $as_echo_n "checking for $ac_word... " >&6; } 20663 if ${ac_cv_path_MAKE+:} false; then : 20664 $as_echo_n "(cached) " >&6 20665 else 20666 case $MAKE in 20667 [\\/]* | ?:[\\/]*) 20668 ac_cv_path_MAKE="$MAKE" # Let the user override the test with a path. 20669 ;; 20670 *) 20671 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 20672 for as_dir in $PATH 20673 do 20674 IFS=$as_save_IFS 20675 test -z "$as_dir" && as_dir=. 20676 for ac_exec_ext in '' $ac_executable_extensions; do 20677 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 20678 ac_cv_path_MAKE="$as_dir/$ac_word$ac_exec_ext" 20679 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 20680 break 2 20681 fi 20682 done 20683 done 20684 IFS=$as_save_IFS 20685 20686 ;; 20687 esac 20688 fi 20689 MAKE=$ac_cv_path_MAKE 20690 if test -n "$MAKE"; then 20691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKE" >&5 20692 $as_echo "$MAKE" >&6; } 20693 else 20694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 20695 $as_echo "no" >&6; } 20696 fi 20697 20698 20699 if test "x$MAKE" = x; then 20700 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 20701 fi 20702 else 20703 # Otherwise we believe it is a complete path. Use it as it is. 20704 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool MAKE=$tool_specified" >&5 20705 $as_echo "$as_me: Will use user supplied tool MAKE=$tool_specified" >&6;} 20706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAKE" >&5 20707 $as_echo_n "checking for MAKE... " >&6; } 20708 if test ! -x "$tool_specified"; then 20709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 20710 $as_echo "not found" >&6; } 20711 as_fn_error $? "User supplied tool MAKE=$tool_specified does not exist or is not executable" "$LINENO" 5 20712 fi 20713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 20714 $as_echo "$tool_specified" >&6; } 20715 fi 20716 fi 20717 fi 20718 20719 # If MAKE was set by user, verify the version 20720 20721 MAKE_CANDIDATE=""$MAKE"" 20722 DESCRIPTION="user supplied MAKE=$MAKE" 20723 20724 # On Cygwin, we require a newer version of make than on other platforms 20725 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 20726 MAKE_VERSION_EXPR="-e 4\." 20727 MAKE_REQUIRED_VERSION="4.0" 20728 else 20729 MAKE_VERSION_EXPR="-e 3\.8[12] -e 4\." 20730 MAKE_REQUIRED_VERSION="3.81" 20731 fi 20732 20733 if test "x$MAKE_CANDIDATE" != x; then 20734 { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5 20735 $as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;} 20736 MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1` 20737 IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'` 20738 if test "x$IS_GNU_MAKE" = x; then 20739 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5 20740 $as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;} 20741 else 20742 IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP $MAKE_VERSION_EXPR` 20743 if test "x$IS_MODERN_MAKE" = x; then 20744 { $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 20745 $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;} 20746 else 20747 if test "x$OPENJDK_BUILD_OS" = "xwindows"; then 20748 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 20749 MAKE_EXPECTED_ENV='cygwin' 20750 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 20751 MAKE_EXPECTED_ENV='msys' 20752 else 20753 as_fn_error $? "Unknown Windows environment" "$LINENO" 5 20754 fi 20755 MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'` 20756 IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV` 20757 else 20758 # Not relevant for non-Windows 20759 IS_MAKE_CORRECT_ENV=true 20760 fi 20761 if test "x$IS_MAKE_CORRECT_ENV" = x; then 20762 { $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 20763 $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;} 20764 else 20765 FOUND_MAKE=$MAKE_CANDIDATE 20766 20767 # Only process if variable expands to non-empty 20768 20769 if test "x$FOUND_MAKE" != x; then 20770 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 20771 20772 # First separate the path from the arguments. This will split at the first 20773 # space. 20774 complete="$FOUND_MAKE" 20775 path="${complete%% *}" 20776 tmp="$complete EOL" 20777 arguments="${tmp#* }" 20778 20779 # Input might be given as Windows format, start by converting to 20780 # unix format. 20781 new_path=`$CYGPATH -u "$path"` 20782 20783 # Now try to locate executable using which 20784 new_path=`$WHICH "$new_path" 2> /dev/null` 20785 # bat and cmd files are not always considered executable in cygwin causing which 20786 # to not find them 20787 if test "x$new_path" = x \ 20788 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 20789 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 20790 new_path=`$CYGPATH -u "$path"` 20791 fi 20792 if test "x$new_path" = x; then 20793 # Oops. Which didn't find the executable. 20794 # The splitting of arguments from the executable at a space might have been incorrect, 20795 # since paths with space are more likely in Windows. Give it another try with the whole 20796 # argument. 20797 path="$complete" 20798 arguments="EOL" 20799 new_path=`$CYGPATH -u "$path"` 20800 new_path=`$WHICH "$new_path" 2> /dev/null` 20801 # bat and cmd files are not always considered executable in cygwin causing which 20802 # to not find them 20803 if test "x$new_path" = x \ 20804 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 20805 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 20806 new_path=`$CYGPATH -u "$path"` 20807 fi 20808 if test "x$new_path" = x; then 20809 # It's still not found. Now this is an unrecoverable error. 20810 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 20811 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 20812 has_space=`$ECHO "$complete" | $GREP " "` 20813 if test "x$has_space" != x; then 20814 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 20815 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 20816 fi 20817 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 20818 fi 20819 fi 20820 20821 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 20822 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 20823 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 20824 # "foo.exe" is OK but "foo" is an error. 20825 # 20826 # This test is therefore slightly more accurate than "test -f" to check for file presence. 20827 # It is also a way to make sure we got the proper file name for the real test later on. 20828 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 20829 if test "x$test_shortpath" = x; then 20830 # Short path failed, file does not exist as specified. 20831 # Try adding .exe or .cmd 20832 if test -f "${new_path}.exe"; then 20833 input_to_shortpath="${new_path}.exe" 20834 elif test -f "${new_path}.cmd"; then 20835 input_to_shortpath="${new_path}.cmd" 20836 else 20837 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5 20838 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;} 20839 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 20840 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 20841 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 20842 fi 20843 else 20844 input_to_shortpath="$new_path" 20845 fi 20846 20847 # Call helper function which possibly converts this using DOS-style short mode. 20848 # If so, the updated path is stored in $new_path. 20849 new_path="$input_to_shortpath" 20850 20851 input_path="$input_to_shortpath" 20852 # Check if we need to convert this using DOS-style short mode. If the path 20853 # contains just simple characters, use it. Otherwise (spaces, weird characters), 20854 # take no chances and rewrite it. 20855 # Note: m4 eats our [], so we need to use [ and ] instead. 20856 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 20857 if test "x$has_forbidden_chars" != x; then 20858 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 20859 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 20860 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 20861 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 20862 # Going to short mode and back again did indeed matter. Since short mode is 20863 # case insensitive, let's make it lowercase to improve readability. 20864 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 20865 # Now convert it back to Unix-style (cygpath) 20866 input_path=`$CYGPATH -u "$shortmode_path"` 20867 new_path="$input_path" 20868 fi 20869 fi 20870 20871 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 20872 if test "x$test_cygdrive_prefix" = x; then 20873 # As a simple fix, exclude /usr/bin since it's not a real path. 20874 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 20875 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 20876 # a path prefixed by /cygdrive for fixpath to work. 20877 new_path="$CYGWIN_ROOT_PATH$input_path" 20878 fi 20879 fi 20880 20881 # remove trailing .exe if any 20882 new_path="${new_path/%.exe/}" 20883 20884 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 20885 20886 # First separate the path from the arguments. This will split at the first 20887 # space. 20888 complete="$FOUND_MAKE" 20889 path="${complete%% *}" 20890 tmp="$complete EOL" 20891 arguments="${tmp#* }" 20892 20893 # Input might be given as Windows format, start by converting to 20894 # unix format. 20895 new_path="$path" 20896 20897 windows_path="$new_path" 20898 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 20899 unix_path=`$CYGPATH -u "$windows_path"` 20900 new_path="$unix_path" 20901 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 20902 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 20903 new_path="$unix_path" 20904 fi 20905 20906 20907 # Now try to locate executable using which 20908 new_path=`$WHICH "$new_path" 2> /dev/null` 20909 20910 if test "x$new_path" = x; then 20911 # Oops. Which didn't find the executable. 20912 # The splitting of arguments from the executable at a space might have been incorrect, 20913 # since paths with space are more likely in Windows. Give it another try with the whole 20914 # argument. 20915 path="$complete" 20916 arguments="EOL" 20917 new_path="$path" 20918 20919 windows_path="$new_path" 20920 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 20921 unix_path=`$CYGPATH -u "$windows_path"` 20922 new_path="$unix_path" 20923 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 20924 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 20925 new_path="$unix_path" 20926 fi 20927 20928 20929 new_path=`$WHICH "$new_path" 2> /dev/null` 20930 # bat and cmd files are not always considered executable in MSYS causing which 20931 # to not find them 20932 if test "x$new_path" = x \ 20933 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 20934 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 20935 new_path="$path" 20936 20937 windows_path="$new_path" 20938 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 20939 unix_path=`$CYGPATH -u "$windows_path"` 20940 new_path="$unix_path" 20941 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 20942 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 20943 new_path="$unix_path" 20944 fi 20945 20946 fi 20947 20948 if test "x$new_path" = x; then 20949 # It's still not found. Now this is an unrecoverable error. 20950 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 20951 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 20952 has_space=`$ECHO "$complete" | $GREP " "` 20953 if test "x$has_space" != x; then 20954 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 20955 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 20956 fi 20957 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 20958 fi 20959 fi 20960 20961 # Now new_path has a complete unix path to the binary 20962 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 20963 # Keep paths in /bin as-is, but remove trailing .exe if any 20964 new_path="${new_path/%.exe/}" 20965 # Do not save /bin paths to all_fixpath_prefixes! 20966 else 20967 # Not in mixed or Windows style, start by that. 20968 new_path=`cmd //c echo $new_path` 20969 20970 input_path="$new_path" 20971 # Check if we need to convert this using DOS-style short mode. If the path 20972 # contains just simple characters, use it. Otherwise (spaces, weird characters), 20973 # take no chances and rewrite it. 20974 # Note: m4 eats our [], so we need to use [ and ] instead. 20975 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 20976 if test "x$has_forbidden_chars" != x; then 20977 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 20978 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 20979 fi 20980 20981 # Output is in $new_path 20982 20983 windows_path="$new_path" 20984 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 20985 unix_path=`$CYGPATH -u "$windows_path"` 20986 new_path="$unix_path" 20987 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 20988 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 20989 new_path="$unix_path" 20990 fi 20991 20992 # remove trailing .exe if any 20993 new_path="${new_path/%.exe/}" 20994 20995 # Save the first 10 bytes of this path to the storage, so fixpath can work. 20996 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 20997 fi 20998 20999 else 21000 # We're on a unix platform. Hooray! :) 21001 # First separate the path from the arguments. This will split at the first 21002 # space. 21003 complete="$FOUND_MAKE" 21004 path="${complete%% *}" 21005 tmp="$complete EOL" 21006 arguments="${tmp#* }" 21007 21008 # Cannot rely on the command "which" here since it doesn't always work. 21009 is_absolute_path=`$ECHO "$path" | $GREP ^/` 21010 if test -z "$is_absolute_path"; then 21011 # Path to executable is not absolute. Find it. 21012 IFS_save="$IFS" 21013 IFS=: 21014 for p in $PATH; do 21015 if test -f "$p/$path" && test -x "$p/$path"; then 21016 new_path="$p/$path" 21017 break 21018 fi 21019 done 21020 IFS="$IFS_save" 21021 else 21022 # This is an absolute path, we can use it without further modifications. 21023 new_path="$path" 21024 fi 21025 21026 if test "x$new_path" = x; then 21027 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 21028 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 21029 has_space=`$ECHO "$complete" | $GREP " "` 21030 if test "x$has_space" != x; then 21031 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 21032 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 21033 fi 21034 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 21035 fi 21036 fi 21037 21038 # Now join together the path and the arguments once again 21039 if test "x$arguments" != xEOL; then 21040 new_complete="$new_path ${arguments% *}" 21041 else 21042 new_complete="$new_path" 21043 fi 21044 21045 if test "x$complete" != "x$new_complete"; then 21046 FOUND_MAKE="$new_complete" 21047 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5 21048 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;} 21049 fi 21050 fi 21051 21052 fi 21053 fi 21054 fi 21055 fi 21056 21057 if test "x$FOUND_MAKE" = x; then 21058 as_fn_error $? "The specified make (by MAKE=$MAKE) is not GNU make $MAKE_REQUIRED_VERSION or newer." "$LINENO" 5 21059 fi 21060 21061 fi 21062 21063 21064 MAKE=$FOUND_MAKE 21065 21066 { $as_echo "$as_me:${as_lineno-$LINENO}: Using GNU make at $FOUND_MAKE (version: $MAKE_VERSION_STRING)" >&5 21067 $as_echo "$as_me: Using GNU make at $FOUND_MAKE (version: $MAKE_VERSION_STRING)" >&6;} 21068 21069 21070 # Check if make supports the output sync option and if so, setup using it. 21071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if make --output-sync is supported" >&5 21072 $as_echo_n "checking if make --output-sync is supported... " >&6; } 21073 if $MAKE --version -O > /dev/null 2>&1; then 21074 OUTPUT_SYNC_SUPPORTED=true 21075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 21076 $as_echo "yes" >&6; } 21077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for output-sync value" >&5 21078 $as_echo_n "checking for output-sync value... " >&6; } 21079 21080 # Check whether --with-output-sync was given. 21081 if test "${with_output_sync+set}" = set; then : 21082 withval=$with_output_sync; OUTPUT_SYNC=$with_output_sync 21083 fi 21084 21085 if test "x$OUTPUT_SYNC" = "x"; then 21086 OUTPUT_SYNC=none 21087 fi 21088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OUTPUT_SYNC" >&5 21089 $as_echo "$OUTPUT_SYNC" >&6; } 21090 if ! $MAKE --version -O$OUTPUT_SYNC > /dev/null 2>&1; then 21091 as_fn_error $? "Make did not the support the value $OUTPUT_SYNC as output sync type." "$LINENO" 5 21092 fi 21093 else 21094 OUTPUT_SYNC_SUPPORTED=false 21095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 21096 $as_echo "no" >&6; } 21097 fi 21098 21099 21100 21101 21102 21103 21104 # Test if find supports -delete 21105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if find supports -delete" >&5 21106 $as_echo_n "checking if find supports -delete... " >&6; } 21107 FIND_DELETE="-delete" 21108 21109 DELETEDIR=`$MKTEMP -d tmp.XXXXXXXXXX` || (echo Could not create temporary directory!; exit $?) 21110 21111 echo Hejsan > $DELETEDIR/TestIfFindSupportsDelete 21112 21113 TEST_DELETE=`$FIND "$DELETEDIR" -name TestIfFindSupportsDelete $FIND_DELETE 2>&1` 21114 if test -f $DELETEDIR/TestIfFindSupportsDelete; then 21115 # No, it does not. 21116 $RM $DELETEDIR/TestIfFindSupportsDelete 21117 if test "x$OPENJDK_TARGET_OS" = "xaix"; then 21118 # AIX 'find' is buggy if called with '-exec {} \+' and an empty file list 21119 FIND_DELETE="-print | $XARGS $RM" 21120 else 21121 FIND_DELETE="-exec $RM \{\} \+" 21122 fi 21123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 21124 $as_echo "no" >&6; } 21125 else 21126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 21127 $as_echo "yes" >&6; } 21128 fi 21129 $RMDIR $DELETEDIR 21130 21131 21132 21133 # Test which kind of tar was found 21134 if test "x$($TAR --version | $GREP "GNU tar")" != "x"; then 21135 TAR_TYPE="gnu" 21136 elif test "x$($TAR -v | $GREP "bsdtar")" != "x"; then 21137 TAR_TYPE="bsd" 21138 elif test "x$OPENJDK_BUILD_OS" = "xsolaris"; then 21139 TAR_TYPE="solaris" 21140 fi 21141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what type of tar was found" >&5 21142 $as_echo_n "checking what type of tar was found... " >&6; } 21143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR_TYPE" >&5 21144 $as_echo "$TAR_TYPE" >&6; } 21145 21146 TAR_CREATE_FILE_PARAM="" 21147 21148 if test "x$TAR_TYPE" = "xgnu"; then 21149 TAR_INCLUDE_PARAM="T" 21150 TAR_SUPPORTS_TRANSFORM="true" 21151 if test "x$OPENJDK_TARGET_OS" = "xsolaris"; then 21152 # When using gnu tar for Solaris targets, need to use compatibility mode 21153 TAR_CREATE_EXTRA_PARAM="--format=ustar" 21154 fi 21155 else 21156 TAR_INCLUDE_PARAM="I" 21157 TAR_SUPPORTS_TRANSFORM="false" 21158 fi 21159 21160 21161 21162 21163 21164 21165 # These tools might not be installed by default, 21166 # need hint on how to install them. 21167 21168 21169 21170 # Publish this variable in the help. 21171 21172 21173 if [ -z "${UNZIP+x}" ]; then 21174 # The variable is not set by user, try to locate tool using the code snippet 21175 for ac_prog in unzip 21176 do 21177 # Extract the first word of "$ac_prog", so it can be a program name with args. 21178 set dummy $ac_prog; ac_word=$2 21179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 21180 $as_echo_n "checking for $ac_word... " >&6; } 21181 if ${ac_cv_path_UNZIP+:} false; then : 21182 $as_echo_n "(cached) " >&6 21183 else 21184 case $UNZIP in 21185 [\\/]* | ?:[\\/]*) 21186 ac_cv_path_UNZIP="$UNZIP" # Let the user override the test with a path. 21187 ;; 21188 *) 21189 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 21190 for as_dir in $PATH 21191 do 21192 IFS=$as_save_IFS 21193 test -z "$as_dir" && as_dir=. 21194 for ac_exec_ext in '' $ac_executable_extensions; do 21195 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 21196 ac_cv_path_UNZIP="$as_dir/$ac_word$ac_exec_ext" 21197 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 21198 break 2 21199 fi 21200 done 21201 done 21202 IFS=$as_save_IFS 21203 21204 ;; 21205 esac 21206 fi 21207 UNZIP=$ac_cv_path_UNZIP 21208 if test -n "$UNZIP"; then 21209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNZIP" >&5 21210 $as_echo "$UNZIP" >&6; } 21211 else 21212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 21213 $as_echo "no" >&6; } 21214 fi 21215 21216 21217 test -n "$UNZIP" && break 21218 done 21219 21220 else 21221 # The variable is set, but is it from the command line or the environment? 21222 21223 # Try to remove the string !UNZIP! from our list. 21224 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!UNZIP!/} 21225 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 21226 # If it failed, the variable was not from the command line. Ignore it, 21227 # but warn the user (except for BASH, which is always set by the calling BASH). 21228 if test "xUNZIP" != xBASH; then 21229 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of UNZIP from the environment. Use command line variables instead." >&5 21230 $as_echo "$as_me: WARNING: Ignoring value of UNZIP from the environment. Use command line variables instead." >&2;} 21231 fi 21232 # Try to locate tool using the code snippet 21233 for ac_prog in unzip 21234 do 21235 # Extract the first word of "$ac_prog", so it can be a program name with args. 21236 set dummy $ac_prog; ac_word=$2 21237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 21238 $as_echo_n "checking for $ac_word... " >&6; } 21239 if ${ac_cv_path_UNZIP+:} false; then : 21240 $as_echo_n "(cached) " >&6 21241 else 21242 case $UNZIP in 21243 [\\/]* | ?:[\\/]*) 21244 ac_cv_path_UNZIP="$UNZIP" # Let the user override the test with a path. 21245 ;; 21246 *) 21247 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 21248 for as_dir in $PATH 21249 do 21250 IFS=$as_save_IFS 21251 test -z "$as_dir" && as_dir=. 21252 for ac_exec_ext in '' $ac_executable_extensions; do 21253 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 21254 ac_cv_path_UNZIP="$as_dir/$ac_word$ac_exec_ext" 21255 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 21256 break 2 21257 fi 21258 done 21259 done 21260 IFS=$as_save_IFS 21261 21262 ;; 21263 esac 21264 fi 21265 UNZIP=$ac_cv_path_UNZIP 21266 if test -n "$UNZIP"; then 21267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNZIP" >&5 21268 $as_echo "$UNZIP" >&6; } 21269 else 21270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 21271 $as_echo "no" >&6; } 21272 fi 21273 21274 21275 test -n "$UNZIP" && break 21276 done 21277 21278 else 21279 # If it succeeded, then it was overridden by the user. We will use it 21280 # for the tool. 21281 21282 # First remove it from the list of overridden variables, so we can test 21283 # for unknown variables in the end. 21284 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 21285 21286 # Check if we try to supply an empty value 21287 if test "x$UNZIP" = x; then 21288 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool UNZIP= (no value)" >&5 21289 $as_echo "$as_me: Setting user supplied tool UNZIP= (no value)" >&6;} 21290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UNZIP" >&5 21291 $as_echo_n "checking for UNZIP... " >&6; } 21292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 21293 $as_echo "disabled" >&6; } 21294 else 21295 # Check if the provided tool contains a complete path. 21296 tool_specified="$UNZIP" 21297 tool_basename="${tool_specified##*/}" 21298 if test "x$tool_basename" = "x$tool_specified"; then 21299 # A command without a complete path is provided, search $PATH. 21300 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool UNZIP=$tool_basename" >&5 21301 $as_echo "$as_me: Will search for user supplied tool UNZIP=$tool_basename" >&6;} 21302 # Extract the first word of "$tool_basename", so it can be a program name with args. 21303 set dummy $tool_basename; ac_word=$2 21304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 21305 $as_echo_n "checking for $ac_word... " >&6; } 21306 if ${ac_cv_path_UNZIP+:} false; then : 21307 $as_echo_n "(cached) " >&6 21308 else 21309 case $UNZIP in 21310 [\\/]* | ?:[\\/]*) 21311 ac_cv_path_UNZIP="$UNZIP" # Let the user override the test with a path. 21312 ;; 21313 *) 21314 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 21315 for as_dir in $PATH 21316 do 21317 IFS=$as_save_IFS 21318 test -z "$as_dir" && as_dir=. 21319 for ac_exec_ext in '' $ac_executable_extensions; do 21320 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 21321 ac_cv_path_UNZIP="$as_dir/$ac_word$ac_exec_ext" 21322 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 21323 break 2 21324 fi 21325 done 21326 done 21327 IFS=$as_save_IFS 21328 21329 ;; 21330 esac 21331 fi 21332 UNZIP=$ac_cv_path_UNZIP 21333 if test -n "$UNZIP"; then 21334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNZIP" >&5 21335 $as_echo "$UNZIP" >&6; } 21336 else 21337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 21338 $as_echo "no" >&6; } 21339 fi 21340 21341 21342 if test "x$UNZIP" = x; then 21343 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 21344 fi 21345 else 21346 # Otherwise we believe it is a complete path. Use it as it is. 21347 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool UNZIP=$tool_specified" >&5 21348 $as_echo "$as_me: Will use user supplied tool UNZIP=$tool_specified" >&6;} 21349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UNZIP" >&5 21350 $as_echo_n "checking for UNZIP... " >&6; } 21351 if test ! -x "$tool_specified"; then 21352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 21353 $as_echo "not found" >&6; } 21354 as_fn_error $? "User supplied tool UNZIP=$tool_specified does not exist or is not executable" "$LINENO" 5 21355 fi 21356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 21357 $as_echo "$tool_specified" >&6; } 21358 fi 21359 fi 21360 fi 21361 21362 fi 21363 21364 21365 21366 if test "x$UNZIP" = x; then 21367 as_fn_error $? "Could not find required tool for UNZIP" "$LINENO" 5 21368 fi 21369 21370 21371 # Since zip uses "ZIP" as a environment variable for passing options, we need 21372 # to name our variable differently, hence ZIPEXE. 21373 21374 21375 21376 # Publish this variable in the help. 21377 21378 21379 if [ -z "${ZIPEXE+x}" ]; then 21380 # The variable is not set by user, try to locate tool using the code snippet 21381 for ac_prog in zip 21382 do 21383 # Extract the first word of "$ac_prog", so it can be a program name with args. 21384 set dummy $ac_prog; ac_word=$2 21385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 21386 $as_echo_n "checking for $ac_word... " >&6; } 21387 if ${ac_cv_path_ZIPEXE+:} false; then : 21388 $as_echo_n "(cached) " >&6 21389 else 21390 case $ZIPEXE in 21391 [\\/]* | ?:[\\/]*) 21392 ac_cv_path_ZIPEXE="$ZIPEXE" # Let the user override the test with a path. 21393 ;; 21394 *) 21395 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 21396 for as_dir in $PATH 21397 do 21398 IFS=$as_save_IFS 21399 test -z "$as_dir" && as_dir=. 21400 for ac_exec_ext in '' $ac_executable_extensions; do 21401 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 21402 ac_cv_path_ZIPEXE="$as_dir/$ac_word$ac_exec_ext" 21403 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 21404 break 2 21405 fi 21406 done 21407 done 21408 IFS=$as_save_IFS 21409 21410 ;; 21411 esac 21412 fi 21413 ZIPEXE=$ac_cv_path_ZIPEXE 21414 if test -n "$ZIPEXE"; then 21415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZIPEXE" >&5 21416 $as_echo "$ZIPEXE" >&6; } 21417 else 21418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 21419 $as_echo "no" >&6; } 21420 fi 21421 21422 21423 test -n "$ZIPEXE" && break 21424 done 21425 21426 else 21427 # The variable is set, but is it from the command line or the environment? 21428 21429 # Try to remove the string !ZIPEXE! from our list. 21430 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!ZIPEXE!/} 21431 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 21432 # If it failed, the variable was not from the command line. Ignore it, 21433 # but warn the user (except for BASH, which is always set by the calling BASH). 21434 if test "xZIPEXE" != xBASH; then 21435 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of ZIPEXE from the environment. Use command line variables instead." >&5 21436 $as_echo "$as_me: WARNING: Ignoring value of ZIPEXE from the environment. Use command line variables instead." >&2;} 21437 fi 21438 # Try to locate tool using the code snippet 21439 for ac_prog in zip 21440 do 21441 # Extract the first word of "$ac_prog", so it can be a program name with args. 21442 set dummy $ac_prog; ac_word=$2 21443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 21444 $as_echo_n "checking for $ac_word... " >&6; } 21445 if ${ac_cv_path_ZIPEXE+:} false; then : 21446 $as_echo_n "(cached) " >&6 21447 else 21448 case $ZIPEXE in 21449 [\\/]* | ?:[\\/]*) 21450 ac_cv_path_ZIPEXE="$ZIPEXE" # Let the user override the test with a path. 21451 ;; 21452 *) 21453 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 21454 for as_dir in $PATH 21455 do 21456 IFS=$as_save_IFS 21457 test -z "$as_dir" && as_dir=. 21458 for ac_exec_ext in '' $ac_executable_extensions; do 21459 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 21460 ac_cv_path_ZIPEXE="$as_dir/$ac_word$ac_exec_ext" 21461 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 21462 break 2 21463 fi 21464 done 21465 done 21466 IFS=$as_save_IFS 21467 21468 ;; 21469 esac 21470 fi 21471 ZIPEXE=$ac_cv_path_ZIPEXE 21472 if test -n "$ZIPEXE"; then 21473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZIPEXE" >&5 21474 $as_echo "$ZIPEXE" >&6; } 21475 else 21476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 21477 $as_echo "no" >&6; } 21478 fi 21479 21480 21481 test -n "$ZIPEXE" && break 21482 done 21483 21484 else 21485 # If it succeeded, then it was overridden by the user. We will use it 21486 # for the tool. 21487 21488 # First remove it from the list of overridden variables, so we can test 21489 # for unknown variables in the end. 21490 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 21491 21492 # Check if we try to supply an empty value 21493 if test "x$ZIPEXE" = x; then 21494 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool ZIPEXE= (no value)" >&5 21495 $as_echo "$as_me: Setting user supplied tool ZIPEXE= (no value)" >&6;} 21496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ZIPEXE" >&5 21497 $as_echo_n "checking for ZIPEXE... " >&6; } 21498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 21499 $as_echo "disabled" >&6; } 21500 else 21501 # Check if the provided tool contains a complete path. 21502 tool_specified="$ZIPEXE" 21503 tool_basename="${tool_specified##*/}" 21504 if test "x$tool_basename" = "x$tool_specified"; then 21505 # A command without a complete path is provided, search $PATH. 21506 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool ZIPEXE=$tool_basename" >&5 21507 $as_echo "$as_me: Will search for user supplied tool ZIPEXE=$tool_basename" >&6;} 21508 # Extract the first word of "$tool_basename", so it can be a program name with args. 21509 set dummy $tool_basename; ac_word=$2 21510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 21511 $as_echo_n "checking for $ac_word... " >&6; } 21512 if ${ac_cv_path_ZIPEXE+:} false; then : 21513 $as_echo_n "(cached) " >&6 21514 else 21515 case $ZIPEXE in 21516 [\\/]* | ?:[\\/]*) 21517 ac_cv_path_ZIPEXE="$ZIPEXE" # Let the user override the test with a path. 21518 ;; 21519 *) 21520 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 21521 for as_dir in $PATH 21522 do 21523 IFS=$as_save_IFS 21524 test -z "$as_dir" && as_dir=. 21525 for ac_exec_ext in '' $ac_executable_extensions; do 21526 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 21527 ac_cv_path_ZIPEXE="$as_dir/$ac_word$ac_exec_ext" 21528 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 21529 break 2 21530 fi 21531 done 21532 done 21533 IFS=$as_save_IFS 21534 21535 ;; 21536 esac 21537 fi 21538 ZIPEXE=$ac_cv_path_ZIPEXE 21539 if test -n "$ZIPEXE"; then 21540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZIPEXE" >&5 21541 $as_echo "$ZIPEXE" >&6; } 21542 else 21543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 21544 $as_echo "no" >&6; } 21545 fi 21546 21547 21548 if test "x$ZIPEXE" = x; then 21549 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 21550 fi 21551 else 21552 # Otherwise we believe it is a complete path. Use it as it is. 21553 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool ZIPEXE=$tool_specified" >&5 21554 $as_echo "$as_me: Will use user supplied tool ZIPEXE=$tool_specified" >&6;} 21555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ZIPEXE" >&5 21556 $as_echo_n "checking for ZIPEXE... " >&6; } 21557 if test ! -x "$tool_specified"; then 21558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 21559 $as_echo "not found" >&6; } 21560 as_fn_error $? "User supplied tool ZIPEXE=$tool_specified does not exist or is not executable" "$LINENO" 5 21561 fi 21562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 21563 $as_echo "$tool_specified" >&6; } 21564 fi 21565 fi 21566 fi 21567 21568 fi 21569 21570 21571 21572 if test "x$ZIPEXE" = x; then 21573 as_fn_error $? "Could not find required tool for ZIPEXE" "$LINENO" 5 21574 fi 21575 21576 21577 21578 # Non-required basic tools 21579 21580 21581 21582 # Publish this variable in the help. 21583 21584 21585 if [ -z "${LDD+x}" ]; then 21586 # The variable is not set by user, try to locate tool using the code snippet 21587 for ac_prog in ldd 21588 do 21589 # Extract the first word of "$ac_prog", so it can be a program name with args. 21590 set dummy $ac_prog; ac_word=$2 21591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 21592 $as_echo_n "checking for $ac_word... " >&6; } 21593 if ${ac_cv_path_LDD+:} false; then : 21594 $as_echo_n "(cached) " >&6 21595 else 21596 case $LDD in 21597 [\\/]* | ?:[\\/]*) 21598 ac_cv_path_LDD="$LDD" # Let the user override the test with a path. 21599 ;; 21600 *) 21601 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 21602 for as_dir in $PATH 21603 do 21604 IFS=$as_save_IFS 21605 test -z "$as_dir" && as_dir=. 21606 for ac_exec_ext in '' $ac_executable_extensions; do 21607 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 21608 ac_cv_path_LDD="$as_dir/$ac_word$ac_exec_ext" 21609 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 21610 break 2 21611 fi 21612 done 21613 done 21614 IFS=$as_save_IFS 21615 21616 ;; 21617 esac 21618 fi 21619 LDD=$ac_cv_path_LDD 21620 if test -n "$LDD"; then 21621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDD" >&5 21622 $as_echo "$LDD" >&6; } 21623 else 21624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 21625 $as_echo "no" >&6; } 21626 fi 21627 21628 21629 test -n "$LDD" && break 21630 done 21631 21632 else 21633 # The variable is set, but is it from the command line or the environment? 21634 21635 # Try to remove the string !LDD! from our list. 21636 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!LDD!/} 21637 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 21638 # If it failed, the variable was not from the command line. Ignore it, 21639 # but warn the user (except for BASH, which is always set by the calling BASH). 21640 if test "xLDD" != xBASH; then 21641 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of LDD from the environment. Use command line variables instead." >&5 21642 $as_echo "$as_me: WARNING: Ignoring value of LDD from the environment. Use command line variables instead." >&2;} 21643 fi 21644 # Try to locate tool using the code snippet 21645 for ac_prog in ldd 21646 do 21647 # Extract the first word of "$ac_prog", so it can be a program name with args. 21648 set dummy $ac_prog; ac_word=$2 21649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 21650 $as_echo_n "checking for $ac_word... " >&6; } 21651 if ${ac_cv_path_LDD+:} false; then : 21652 $as_echo_n "(cached) " >&6 21653 else 21654 case $LDD in 21655 [\\/]* | ?:[\\/]*) 21656 ac_cv_path_LDD="$LDD" # Let the user override the test with a path. 21657 ;; 21658 *) 21659 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 21660 for as_dir in $PATH 21661 do 21662 IFS=$as_save_IFS 21663 test -z "$as_dir" && as_dir=. 21664 for ac_exec_ext in '' $ac_executable_extensions; do 21665 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 21666 ac_cv_path_LDD="$as_dir/$ac_word$ac_exec_ext" 21667 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 21668 break 2 21669 fi 21670 done 21671 done 21672 IFS=$as_save_IFS 21673 21674 ;; 21675 esac 21676 fi 21677 LDD=$ac_cv_path_LDD 21678 if test -n "$LDD"; then 21679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDD" >&5 21680 $as_echo "$LDD" >&6; } 21681 else 21682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 21683 $as_echo "no" >&6; } 21684 fi 21685 21686 21687 test -n "$LDD" && break 21688 done 21689 21690 else 21691 # If it succeeded, then it was overridden by the user. We will use it 21692 # for the tool. 21693 21694 # First remove it from the list of overridden variables, so we can test 21695 # for unknown variables in the end. 21696 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 21697 21698 # Check if we try to supply an empty value 21699 if test "x$LDD" = x; then 21700 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool LDD= (no value)" >&5 21701 $as_echo "$as_me: Setting user supplied tool LDD= (no value)" >&6;} 21702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LDD" >&5 21703 $as_echo_n "checking for LDD... " >&6; } 21704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 21705 $as_echo "disabled" >&6; } 21706 else 21707 # Check if the provided tool contains a complete path. 21708 tool_specified="$LDD" 21709 tool_basename="${tool_specified##*/}" 21710 if test "x$tool_basename" = "x$tool_specified"; then 21711 # A command without a complete path is provided, search $PATH. 21712 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool LDD=$tool_basename" >&5 21713 $as_echo "$as_me: Will search for user supplied tool LDD=$tool_basename" >&6;} 21714 # Extract the first word of "$tool_basename", so it can be a program name with args. 21715 set dummy $tool_basename; ac_word=$2 21716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 21717 $as_echo_n "checking for $ac_word... " >&6; } 21718 if ${ac_cv_path_LDD+:} false; then : 21719 $as_echo_n "(cached) " >&6 21720 else 21721 case $LDD in 21722 [\\/]* | ?:[\\/]*) 21723 ac_cv_path_LDD="$LDD" # Let the user override the test with a path. 21724 ;; 21725 *) 21726 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 21727 for as_dir in $PATH 21728 do 21729 IFS=$as_save_IFS 21730 test -z "$as_dir" && as_dir=. 21731 for ac_exec_ext in '' $ac_executable_extensions; do 21732 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 21733 ac_cv_path_LDD="$as_dir/$ac_word$ac_exec_ext" 21734 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 21735 break 2 21736 fi 21737 done 21738 done 21739 IFS=$as_save_IFS 21740 21741 ;; 21742 esac 21743 fi 21744 LDD=$ac_cv_path_LDD 21745 if test -n "$LDD"; then 21746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDD" >&5 21747 $as_echo "$LDD" >&6; } 21748 else 21749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 21750 $as_echo "no" >&6; } 21751 fi 21752 21753 21754 if test "x$LDD" = x; then 21755 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 21756 fi 21757 else 21758 # Otherwise we believe it is a complete path. Use it as it is. 21759 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool LDD=$tool_specified" >&5 21760 $as_echo "$as_me: Will use user supplied tool LDD=$tool_specified" >&6;} 21761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LDD" >&5 21762 $as_echo_n "checking for LDD... " >&6; } 21763 if test ! -x "$tool_specified"; then 21764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 21765 $as_echo "not found" >&6; } 21766 as_fn_error $? "User supplied tool LDD=$tool_specified does not exist or is not executable" "$LINENO" 5 21767 fi 21768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 21769 $as_echo "$tool_specified" >&6; } 21770 fi 21771 fi 21772 fi 21773 21774 fi 21775 21776 21777 if test "x$LDD" = "x"; then 21778 # List shared lib dependencies is used for 21779 # debug output and checking for forbidden dependencies. 21780 # We can build without it. 21781 LDD="true" 21782 fi 21783 21784 21785 # Publish this variable in the help. 21786 21787 21788 if [ -z "${OTOOL+x}" ]; then 21789 # The variable is not set by user, try to locate tool using the code snippet 21790 for ac_prog in otool 21791 do 21792 # Extract the first word of "$ac_prog", so it can be a program name with args. 21793 set dummy $ac_prog; ac_word=$2 21794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 21795 $as_echo_n "checking for $ac_word... " >&6; } 21796 if ${ac_cv_path_OTOOL+:} false; then : 21797 $as_echo_n "(cached) " >&6 21798 else 21799 case $OTOOL in 21800 [\\/]* | ?:[\\/]*) 21801 ac_cv_path_OTOOL="$OTOOL" # Let the user override the test with a path. 21802 ;; 21803 *) 21804 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 21805 for as_dir in $PATH 21806 do 21807 IFS=$as_save_IFS 21808 test -z "$as_dir" && as_dir=. 21809 for ac_exec_ext in '' $ac_executable_extensions; do 21810 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 21811 ac_cv_path_OTOOL="$as_dir/$ac_word$ac_exec_ext" 21812 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 21813 break 2 21814 fi 21815 done 21816 done 21817 IFS=$as_save_IFS 21818 21819 ;; 21820 esac 21821 fi 21822 OTOOL=$ac_cv_path_OTOOL 21823 if test -n "$OTOOL"; then 21824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 21825 $as_echo "$OTOOL" >&6; } 21826 else 21827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 21828 $as_echo "no" >&6; } 21829 fi 21830 21831 21832 test -n "$OTOOL" && break 21833 done 21834 21835 else 21836 # The variable is set, but is it from the command line or the environment? 21837 21838 # Try to remove the string !OTOOL! from our list. 21839 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!OTOOL!/} 21840 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 21841 # If it failed, the variable was not from the command line. Ignore it, 21842 # but warn the user (except for BASH, which is always set by the calling BASH). 21843 if test "xOTOOL" != xBASH; then 21844 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of OTOOL from the environment. Use command line variables instead." >&5 21845 $as_echo "$as_me: WARNING: Ignoring value of OTOOL from the environment. Use command line variables instead." >&2;} 21846 fi 21847 # Try to locate tool using the code snippet 21848 for ac_prog in otool 21849 do 21850 # Extract the first word of "$ac_prog", so it can be a program name with args. 21851 set dummy $ac_prog; ac_word=$2 21852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 21853 $as_echo_n "checking for $ac_word... " >&6; } 21854 if ${ac_cv_path_OTOOL+:} false; then : 21855 $as_echo_n "(cached) " >&6 21856 else 21857 case $OTOOL in 21858 [\\/]* | ?:[\\/]*) 21859 ac_cv_path_OTOOL="$OTOOL" # Let the user override the test with a path. 21860 ;; 21861 *) 21862 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 21863 for as_dir in $PATH 21864 do 21865 IFS=$as_save_IFS 21866 test -z "$as_dir" && as_dir=. 21867 for ac_exec_ext in '' $ac_executable_extensions; do 21868 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 21869 ac_cv_path_OTOOL="$as_dir/$ac_word$ac_exec_ext" 21870 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 21871 break 2 21872 fi 21873 done 21874 done 21875 IFS=$as_save_IFS 21876 21877 ;; 21878 esac 21879 fi 21880 OTOOL=$ac_cv_path_OTOOL 21881 if test -n "$OTOOL"; then 21882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 21883 $as_echo "$OTOOL" >&6; } 21884 else 21885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 21886 $as_echo "no" >&6; } 21887 fi 21888 21889 21890 test -n "$OTOOL" && break 21891 done 21892 21893 else 21894 # If it succeeded, then it was overridden by the user. We will use it 21895 # for the tool. 21896 21897 # First remove it from the list of overridden variables, so we can test 21898 # for unknown variables in the end. 21899 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 21900 21901 # Check if we try to supply an empty value 21902 if test "x$OTOOL" = x; then 21903 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool OTOOL= (no value)" >&5 21904 $as_echo "$as_me: Setting user supplied tool OTOOL= (no value)" >&6;} 21905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OTOOL" >&5 21906 $as_echo_n "checking for OTOOL... " >&6; } 21907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 21908 $as_echo "disabled" >&6; } 21909 else 21910 # Check if the provided tool contains a complete path. 21911 tool_specified="$OTOOL" 21912 tool_basename="${tool_specified##*/}" 21913 if test "x$tool_basename" = "x$tool_specified"; then 21914 # A command without a complete path is provided, search $PATH. 21915 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool OTOOL=$tool_basename" >&5 21916 $as_echo "$as_me: Will search for user supplied tool OTOOL=$tool_basename" >&6;} 21917 # Extract the first word of "$tool_basename", so it can be a program name with args. 21918 set dummy $tool_basename; ac_word=$2 21919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 21920 $as_echo_n "checking for $ac_word... " >&6; } 21921 if ${ac_cv_path_OTOOL+:} false; then : 21922 $as_echo_n "(cached) " >&6 21923 else 21924 case $OTOOL in 21925 [\\/]* | ?:[\\/]*) 21926 ac_cv_path_OTOOL="$OTOOL" # Let the user override the test with a path. 21927 ;; 21928 *) 21929 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 21930 for as_dir in $PATH 21931 do 21932 IFS=$as_save_IFS 21933 test -z "$as_dir" && as_dir=. 21934 for ac_exec_ext in '' $ac_executable_extensions; do 21935 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 21936 ac_cv_path_OTOOL="$as_dir/$ac_word$ac_exec_ext" 21937 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 21938 break 2 21939 fi 21940 done 21941 done 21942 IFS=$as_save_IFS 21943 21944 ;; 21945 esac 21946 fi 21947 OTOOL=$ac_cv_path_OTOOL 21948 if test -n "$OTOOL"; then 21949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 21950 $as_echo "$OTOOL" >&6; } 21951 else 21952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 21953 $as_echo "no" >&6; } 21954 fi 21955 21956 21957 if test "x$OTOOL" = x; then 21958 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 21959 fi 21960 else 21961 # Otherwise we believe it is a complete path. Use it as it is. 21962 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool OTOOL=$tool_specified" >&5 21963 $as_echo "$as_me: Will use user supplied tool OTOOL=$tool_specified" >&6;} 21964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OTOOL" >&5 21965 $as_echo_n "checking for OTOOL... " >&6; } 21966 if test ! -x "$tool_specified"; then 21967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 21968 $as_echo "not found" >&6; } 21969 as_fn_error $? "User supplied tool OTOOL=$tool_specified does not exist or is not executable" "$LINENO" 5 21970 fi 21971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 21972 $as_echo "$tool_specified" >&6; } 21973 fi 21974 fi 21975 fi 21976 21977 fi 21978 21979 21980 if test "x$OTOOL" = "x"; then 21981 OTOOL="true" 21982 fi 21983 21984 21985 # Publish this variable in the help. 21986 21987 21988 if [ -z "${READELF+x}" ]; then 21989 # The variable is not set by user, try to locate tool using the code snippet 21990 for ac_prog in greadelf readelf 21991 do 21992 # Extract the first word of "$ac_prog", so it can be a program name with args. 21993 set dummy $ac_prog; ac_word=$2 21994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 21995 $as_echo_n "checking for $ac_word... " >&6; } 21996 if ${ac_cv_path_READELF+:} false; then : 21997 $as_echo_n "(cached) " >&6 21998 else 21999 case $READELF in 22000 [\\/]* | ?:[\\/]*) 22001 ac_cv_path_READELF="$READELF" # Let the user override the test with a path. 22002 ;; 22003 *) 22004 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 22005 for as_dir in $PATH 22006 do 22007 IFS=$as_save_IFS 22008 test -z "$as_dir" && as_dir=. 22009 for ac_exec_ext in '' $ac_executable_extensions; do 22010 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 22011 ac_cv_path_READELF="$as_dir/$ac_word$ac_exec_ext" 22012 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 22013 break 2 22014 fi 22015 done 22016 done 22017 IFS=$as_save_IFS 22018 22019 ;; 22020 esac 22021 fi 22022 READELF=$ac_cv_path_READELF 22023 if test -n "$READELF"; then 22024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5 22025 $as_echo "$READELF" >&6; } 22026 else 22027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 22028 $as_echo "no" >&6; } 22029 fi 22030 22031 22032 test -n "$READELF" && break 22033 done 22034 22035 else 22036 # The variable is set, but is it from the command line or the environment? 22037 22038 # Try to remove the string !READELF! from our list. 22039 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!READELF!/} 22040 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 22041 # If it failed, the variable was not from the command line. Ignore it, 22042 # but warn the user (except for BASH, which is always set by the calling BASH). 22043 if test "xREADELF" != xBASH; then 22044 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of READELF from the environment. Use command line variables instead." >&5 22045 $as_echo "$as_me: WARNING: Ignoring value of READELF from the environment. Use command line variables instead." >&2;} 22046 fi 22047 # Try to locate tool using the code snippet 22048 for ac_prog in greadelf readelf 22049 do 22050 # Extract the first word of "$ac_prog", so it can be a program name with args. 22051 set dummy $ac_prog; ac_word=$2 22052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 22053 $as_echo_n "checking for $ac_word... " >&6; } 22054 if ${ac_cv_path_READELF+:} false; then : 22055 $as_echo_n "(cached) " >&6 22056 else 22057 case $READELF in 22058 [\\/]* | ?:[\\/]*) 22059 ac_cv_path_READELF="$READELF" # Let the user override the test with a path. 22060 ;; 22061 *) 22062 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 22063 for as_dir in $PATH 22064 do 22065 IFS=$as_save_IFS 22066 test -z "$as_dir" && as_dir=. 22067 for ac_exec_ext in '' $ac_executable_extensions; do 22068 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 22069 ac_cv_path_READELF="$as_dir/$ac_word$ac_exec_ext" 22070 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 22071 break 2 22072 fi 22073 done 22074 done 22075 IFS=$as_save_IFS 22076 22077 ;; 22078 esac 22079 fi 22080 READELF=$ac_cv_path_READELF 22081 if test -n "$READELF"; then 22082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5 22083 $as_echo "$READELF" >&6; } 22084 else 22085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 22086 $as_echo "no" >&6; } 22087 fi 22088 22089 22090 test -n "$READELF" && break 22091 done 22092 22093 else 22094 # If it succeeded, then it was overridden by the user. We will use it 22095 # for the tool. 22096 22097 # First remove it from the list of overridden variables, so we can test 22098 # for unknown variables in the end. 22099 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 22100 22101 # Check if we try to supply an empty value 22102 if test "x$READELF" = x; then 22103 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool READELF= (no value)" >&5 22104 $as_echo "$as_me: Setting user supplied tool READELF= (no value)" >&6;} 22105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for READELF" >&5 22106 $as_echo_n "checking for READELF... " >&6; } 22107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 22108 $as_echo "disabled" >&6; } 22109 else 22110 # Check if the provided tool contains a complete path. 22111 tool_specified="$READELF" 22112 tool_basename="${tool_specified##*/}" 22113 if test "x$tool_basename" = "x$tool_specified"; then 22114 # A command without a complete path is provided, search $PATH. 22115 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool READELF=$tool_basename" >&5 22116 $as_echo "$as_me: Will search for user supplied tool READELF=$tool_basename" >&6;} 22117 # Extract the first word of "$tool_basename", so it can be a program name with args. 22118 set dummy $tool_basename; ac_word=$2 22119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 22120 $as_echo_n "checking for $ac_word... " >&6; } 22121 if ${ac_cv_path_READELF+:} false; then : 22122 $as_echo_n "(cached) " >&6 22123 else 22124 case $READELF in 22125 [\\/]* | ?:[\\/]*) 22126 ac_cv_path_READELF="$READELF" # Let the user override the test with a path. 22127 ;; 22128 *) 22129 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 22130 for as_dir in $PATH 22131 do 22132 IFS=$as_save_IFS 22133 test -z "$as_dir" && as_dir=. 22134 for ac_exec_ext in '' $ac_executable_extensions; do 22135 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 22136 ac_cv_path_READELF="$as_dir/$ac_word$ac_exec_ext" 22137 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 22138 break 2 22139 fi 22140 done 22141 done 22142 IFS=$as_save_IFS 22143 22144 ;; 22145 esac 22146 fi 22147 READELF=$ac_cv_path_READELF 22148 if test -n "$READELF"; then 22149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5 22150 $as_echo "$READELF" >&6; } 22151 else 22152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 22153 $as_echo "no" >&6; } 22154 fi 22155 22156 22157 if test "x$READELF" = x; then 22158 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 22159 fi 22160 else 22161 # Otherwise we believe it is a complete path. Use it as it is. 22162 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool READELF=$tool_specified" >&5 22163 $as_echo "$as_me: Will use user supplied tool READELF=$tool_specified" >&6;} 22164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for READELF" >&5 22165 $as_echo_n "checking for READELF... " >&6; } 22166 if test ! -x "$tool_specified"; then 22167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 22168 $as_echo "not found" >&6; } 22169 as_fn_error $? "User supplied tool READELF=$tool_specified does not exist or is not executable" "$LINENO" 5 22170 fi 22171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 22172 $as_echo "$tool_specified" >&6; } 22173 fi 22174 fi 22175 fi 22176 22177 fi 22178 22179 22180 22181 22182 # Publish this variable in the help. 22183 22184 22185 if [ -z "${HG+x}" ]; then 22186 # The variable is not set by user, try to locate tool using the code snippet 22187 for ac_prog in hg 22188 do 22189 # Extract the first word of "$ac_prog", so it can be a program name with args. 22190 set dummy $ac_prog; ac_word=$2 22191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 22192 $as_echo_n "checking for $ac_word... " >&6; } 22193 if ${ac_cv_path_HG+:} false; then : 22194 $as_echo_n "(cached) " >&6 22195 else 22196 case $HG in 22197 [\\/]* | ?:[\\/]*) 22198 ac_cv_path_HG="$HG" # Let the user override the test with a path. 22199 ;; 22200 *) 22201 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 22202 for as_dir in $PATH 22203 do 22204 IFS=$as_save_IFS 22205 test -z "$as_dir" && as_dir=. 22206 for ac_exec_ext in '' $ac_executable_extensions; do 22207 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 22208 ac_cv_path_HG="$as_dir/$ac_word$ac_exec_ext" 22209 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 22210 break 2 22211 fi 22212 done 22213 done 22214 IFS=$as_save_IFS 22215 22216 ;; 22217 esac 22218 fi 22219 HG=$ac_cv_path_HG 22220 if test -n "$HG"; then 22221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HG" >&5 22222 $as_echo "$HG" >&6; } 22223 else 22224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 22225 $as_echo "no" >&6; } 22226 fi 22227 22228 22229 test -n "$HG" && break 22230 done 22231 22232 else 22233 # The variable is set, but is it from the command line or the environment? 22234 22235 # Try to remove the string !HG! from our list. 22236 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!HG!/} 22237 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 22238 # If it failed, the variable was not from the command line. Ignore it, 22239 # but warn the user (except for BASH, which is always set by the calling BASH). 22240 if test "xHG" != xBASH; then 22241 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of HG from the environment. Use command line variables instead." >&5 22242 $as_echo "$as_me: WARNING: Ignoring value of HG from the environment. Use command line variables instead." >&2;} 22243 fi 22244 # Try to locate tool using the code snippet 22245 for ac_prog in hg 22246 do 22247 # Extract the first word of "$ac_prog", so it can be a program name with args. 22248 set dummy $ac_prog; ac_word=$2 22249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 22250 $as_echo_n "checking for $ac_word... " >&6; } 22251 if ${ac_cv_path_HG+:} false; then : 22252 $as_echo_n "(cached) " >&6 22253 else 22254 case $HG in 22255 [\\/]* | ?:[\\/]*) 22256 ac_cv_path_HG="$HG" # Let the user override the test with a path. 22257 ;; 22258 *) 22259 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 22260 for as_dir in $PATH 22261 do 22262 IFS=$as_save_IFS 22263 test -z "$as_dir" && as_dir=. 22264 for ac_exec_ext in '' $ac_executable_extensions; do 22265 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 22266 ac_cv_path_HG="$as_dir/$ac_word$ac_exec_ext" 22267 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 22268 break 2 22269 fi 22270 done 22271 done 22272 IFS=$as_save_IFS 22273 22274 ;; 22275 esac 22276 fi 22277 HG=$ac_cv_path_HG 22278 if test -n "$HG"; then 22279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HG" >&5 22280 $as_echo "$HG" >&6; } 22281 else 22282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 22283 $as_echo "no" >&6; } 22284 fi 22285 22286 22287 test -n "$HG" && break 22288 done 22289 22290 else 22291 # If it succeeded, then it was overridden by the user. We will use it 22292 # for the tool. 22293 22294 # First remove it from the list of overridden variables, so we can test 22295 # for unknown variables in the end. 22296 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 22297 22298 # Check if we try to supply an empty value 22299 if test "x$HG" = x; then 22300 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool HG= (no value)" >&5 22301 $as_echo "$as_me: Setting user supplied tool HG= (no value)" >&6;} 22302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for HG" >&5 22303 $as_echo_n "checking for HG... " >&6; } 22304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 22305 $as_echo "disabled" >&6; } 22306 else 22307 # Check if the provided tool contains a complete path. 22308 tool_specified="$HG" 22309 tool_basename="${tool_specified##*/}" 22310 if test "x$tool_basename" = "x$tool_specified"; then 22311 # A command without a complete path is provided, search $PATH. 22312 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool HG=$tool_basename" >&5 22313 $as_echo "$as_me: Will search for user supplied tool HG=$tool_basename" >&6;} 22314 # Extract the first word of "$tool_basename", so it can be a program name with args. 22315 set dummy $tool_basename; ac_word=$2 22316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 22317 $as_echo_n "checking for $ac_word... " >&6; } 22318 if ${ac_cv_path_HG+:} false; then : 22319 $as_echo_n "(cached) " >&6 22320 else 22321 case $HG in 22322 [\\/]* | ?:[\\/]*) 22323 ac_cv_path_HG="$HG" # Let the user override the test with a path. 22324 ;; 22325 *) 22326 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 22327 for as_dir in $PATH 22328 do 22329 IFS=$as_save_IFS 22330 test -z "$as_dir" && as_dir=. 22331 for ac_exec_ext in '' $ac_executable_extensions; do 22332 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 22333 ac_cv_path_HG="$as_dir/$ac_word$ac_exec_ext" 22334 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 22335 break 2 22336 fi 22337 done 22338 done 22339 IFS=$as_save_IFS 22340 22341 ;; 22342 esac 22343 fi 22344 HG=$ac_cv_path_HG 22345 if test -n "$HG"; then 22346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HG" >&5 22347 $as_echo "$HG" >&6; } 22348 else 22349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 22350 $as_echo "no" >&6; } 22351 fi 22352 22353 22354 if test "x$HG" = x; then 22355 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 22356 fi 22357 else 22358 # Otherwise we believe it is a complete path. Use it as it is. 22359 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool HG=$tool_specified" >&5 22360 $as_echo "$as_me: Will use user supplied tool HG=$tool_specified" >&6;} 22361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for HG" >&5 22362 $as_echo_n "checking for HG... " >&6; } 22363 if test ! -x "$tool_specified"; then 22364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 22365 $as_echo "not found" >&6; } 22366 as_fn_error $? "User supplied tool HG=$tool_specified does not exist or is not executable" "$LINENO" 5 22367 fi 22368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 22369 $as_echo "$tool_specified" >&6; } 22370 fi 22371 fi 22372 fi 22373 22374 fi 22375 22376 22377 22378 22379 # Publish this variable in the help. 22380 22381 22382 if [ -z "${STAT+x}" ]; then 22383 # The variable is not set by user, try to locate tool using the code snippet 22384 for ac_prog in stat 22385 do 22386 # Extract the first word of "$ac_prog", so it can be a program name with args. 22387 set dummy $ac_prog; ac_word=$2 22388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 22389 $as_echo_n "checking for $ac_word... " >&6; } 22390 if ${ac_cv_path_STAT+:} false; then : 22391 $as_echo_n "(cached) " >&6 22392 else 22393 case $STAT in 22394 [\\/]* | ?:[\\/]*) 22395 ac_cv_path_STAT="$STAT" # Let the user override the test with a path. 22396 ;; 22397 *) 22398 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 22399 for as_dir in $PATH 22400 do 22401 IFS=$as_save_IFS 22402 test -z "$as_dir" && as_dir=. 22403 for ac_exec_ext in '' $ac_executable_extensions; do 22404 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 22405 ac_cv_path_STAT="$as_dir/$ac_word$ac_exec_ext" 22406 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 22407 break 2 22408 fi 22409 done 22410 done 22411 IFS=$as_save_IFS 22412 22413 ;; 22414 esac 22415 fi 22416 STAT=$ac_cv_path_STAT 22417 if test -n "$STAT"; then 22418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STAT" >&5 22419 $as_echo "$STAT" >&6; } 22420 else 22421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 22422 $as_echo "no" >&6; } 22423 fi 22424 22425 22426 test -n "$STAT" && break 22427 done 22428 22429 else 22430 # The variable is set, but is it from the command line or the environment? 22431 22432 # Try to remove the string !STAT! from our list. 22433 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!STAT!/} 22434 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 22435 # If it failed, the variable was not from the command line. Ignore it, 22436 # but warn the user (except for BASH, which is always set by the calling BASH). 22437 if test "xSTAT" != xBASH; then 22438 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of STAT from the environment. Use command line variables instead." >&5 22439 $as_echo "$as_me: WARNING: Ignoring value of STAT from the environment. Use command line variables instead." >&2;} 22440 fi 22441 # Try to locate tool using the code snippet 22442 for ac_prog in stat 22443 do 22444 # Extract the first word of "$ac_prog", so it can be a program name with args. 22445 set dummy $ac_prog; ac_word=$2 22446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 22447 $as_echo_n "checking for $ac_word... " >&6; } 22448 if ${ac_cv_path_STAT+:} false; then : 22449 $as_echo_n "(cached) " >&6 22450 else 22451 case $STAT in 22452 [\\/]* | ?:[\\/]*) 22453 ac_cv_path_STAT="$STAT" # Let the user override the test with a path. 22454 ;; 22455 *) 22456 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 22457 for as_dir in $PATH 22458 do 22459 IFS=$as_save_IFS 22460 test -z "$as_dir" && as_dir=. 22461 for ac_exec_ext in '' $ac_executable_extensions; do 22462 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 22463 ac_cv_path_STAT="$as_dir/$ac_word$ac_exec_ext" 22464 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 22465 break 2 22466 fi 22467 done 22468 done 22469 IFS=$as_save_IFS 22470 22471 ;; 22472 esac 22473 fi 22474 STAT=$ac_cv_path_STAT 22475 if test -n "$STAT"; then 22476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STAT" >&5 22477 $as_echo "$STAT" >&6; } 22478 else 22479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 22480 $as_echo "no" >&6; } 22481 fi 22482 22483 22484 test -n "$STAT" && break 22485 done 22486 22487 else 22488 # If it succeeded, then it was overridden by the user. We will use it 22489 # for the tool. 22490 22491 # First remove it from the list of overridden variables, so we can test 22492 # for unknown variables in the end. 22493 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 22494 22495 # Check if we try to supply an empty value 22496 if test "x$STAT" = x; then 22497 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool STAT= (no value)" >&5 22498 $as_echo "$as_me: Setting user supplied tool STAT= (no value)" >&6;} 22499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for STAT" >&5 22500 $as_echo_n "checking for STAT... " >&6; } 22501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 22502 $as_echo "disabled" >&6; } 22503 else 22504 # Check if the provided tool contains a complete path. 22505 tool_specified="$STAT" 22506 tool_basename="${tool_specified##*/}" 22507 if test "x$tool_basename" = "x$tool_specified"; then 22508 # A command without a complete path is provided, search $PATH. 22509 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool STAT=$tool_basename" >&5 22510 $as_echo "$as_me: Will search for user supplied tool STAT=$tool_basename" >&6;} 22511 # Extract the first word of "$tool_basename", so it can be a program name with args. 22512 set dummy $tool_basename; ac_word=$2 22513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 22514 $as_echo_n "checking for $ac_word... " >&6; } 22515 if ${ac_cv_path_STAT+:} false; then : 22516 $as_echo_n "(cached) " >&6 22517 else 22518 case $STAT in 22519 [\\/]* | ?:[\\/]*) 22520 ac_cv_path_STAT="$STAT" # Let the user override the test with a path. 22521 ;; 22522 *) 22523 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 22524 for as_dir in $PATH 22525 do 22526 IFS=$as_save_IFS 22527 test -z "$as_dir" && as_dir=. 22528 for ac_exec_ext in '' $ac_executable_extensions; do 22529 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 22530 ac_cv_path_STAT="$as_dir/$ac_word$ac_exec_ext" 22531 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 22532 break 2 22533 fi 22534 done 22535 done 22536 IFS=$as_save_IFS 22537 22538 ;; 22539 esac 22540 fi 22541 STAT=$ac_cv_path_STAT 22542 if test -n "$STAT"; then 22543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STAT" >&5 22544 $as_echo "$STAT" >&6; } 22545 else 22546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 22547 $as_echo "no" >&6; } 22548 fi 22549 22550 22551 if test "x$STAT" = x; then 22552 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 22553 fi 22554 else 22555 # Otherwise we believe it is a complete path. Use it as it is. 22556 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool STAT=$tool_specified" >&5 22557 $as_echo "$as_me: Will use user supplied tool STAT=$tool_specified" >&6;} 22558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for STAT" >&5 22559 $as_echo_n "checking for STAT... " >&6; } 22560 if test ! -x "$tool_specified"; then 22561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 22562 $as_echo "not found" >&6; } 22563 as_fn_error $? "User supplied tool STAT=$tool_specified does not exist or is not executable" "$LINENO" 5 22564 fi 22565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 22566 $as_echo "$tool_specified" >&6; } 22567 fi 22568 fi 22569 fi 22570 22571 fi 22572 22573 22574 22575 22576 # Publish this variable in the help. 22577 22578 22579 if [ -z "${TIME+x}" ]; then 22580 # The variable is not set by user, try to locate tool using the code snippet 22581 for ac_prog in time 22582 do 22583 # Extract the first word of "$ac_prog", so it can be a program name with args. 22584 set dummy $ac_prog; ac_word=$2 22585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 22586 $as_echo_n "checking for $ac_word... " >&6; } 22587 if ${ac_cv_path_TIME+:} false; then : 22588 $as_echo_n "(cached) " >&6 22589 else 22590 case $TIME in 22591 [\\/]* | ?:[\\/]*) 22592 ac_cv_path_TIME="$TIME" # Let the user override the test with a path. 22593 ;; 22594 *) 22595 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 22596 for as_dir in $PATH 22597 do 22598 IFS=$as_save_IFS 22599 test -z "$as_dir" && as_dir=. 22600 for ac_exec_ext in '' $ac_executable_extensions; do 22601 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 22602 ac_cv_path_TIME="$as_dir/$ac_word$ac_exec_ext" 22603 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 22604 break 2 22605 fi 22606 done 22607 done 22608 IFS=$as_save_IFS 22609 22610 ;; 22611 esac 22612 fi 22613 TIME=$ac_cv_path_TIME 22614 if test -n "$TIME"; then 22615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TIME" >&5 22616 $as_echo "$TIME" >&6; } 22617 else 22618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 22619 $as_echo "no" >&6; } 22620 fi 22621 22622 22623 test -n "$TIME" && break 22624 done 22625 22626 else 22627 # The variable is set, but is it from the command line or the environment? 22628 22629 # Try to remove the string !TIME! from our list. 22630 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!TIME!/} 22631 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 22632 # If it failed, the variable was not from the command line. Ignore it, 22633 # but warn the user (except for BASH, which is always set by the calling BASH). 22634 if test "xTIME" != xBASH; then 22635 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of TIME from the environment. Use command line variables instead." >&5 22636 $as_echo "$as_me: WARNING: Ignoring value of TIME from the environment. Use command line variables instead." >&2;} 22637 fi 22638 # Try to locate tool using the code snippet 22639 for ac_prog in time 22640 do 22641 # Extract the first word of "$ac_prog", so it can be a program name with args. 22642 set dummy $ac_prog; ac_word=$2 22643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 22644 $as_echo_n "checking for $ac_word... " >&6; } 22645 if ${ac_cv_path_TIME+:} false; then : 22646 $as_echo_n "(cached) " >&6 22647 else 22648 case $TIME in 22649 [\\/]* | ?:[\\/]*) 22650 ac_cv_path_TIME="$TIME" # Let the user override the test with a path. 22651 ;; 22652 *) 22653 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 22654 for as_dir in $PATH 22655 do 22656 IFS=$as_save_IFS 22657 test -z "$as_dir" && as_dir=. 22658 for ac_exec_ext in '' $ac_executable_extensions; do 22659 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 22660 ac_cv_path_TIME="$as_dir/$ac_word$ac_exec_ext" 22661 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 22662 break 2 22663 fi 22664 done 22665 done 22666 IFS=$as_save_IFS 22667 22668 ;; 22669 esac 22670 fi 22671 TIME=$ac_cv_path_TIME 22672 if test -n "$TIME"; then 22673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TIME" >&5 22674 $as_echo "$TIME" >&6; } 22675 else 22676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 22677 $as_echo "no" >&6; } 22678 fi 22679 22680 22681 test -n "$TIME" && break 22682 done 22683 22684 else 22685 # If it succeeded, then it was overridden by the user. We will use it 22686 # for the tool. 22687 22688 # First remove it from the list of overridden variables, so we can test 22689 # for unknown variables in the end. 22690 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 22691 22692 # Check if we try to supply an empty value 22693 if test "x$TIME" = x; then 22694 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool TIME= (no value)" >&5 22695 $as_echo "$as_me: Setting user supplied tool TIME= (no value)" >&6;} 22696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIME" >&5 22697 $as_echo_n "checking for TIME... " >&6; } 22698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 22699 $as_echo "disabled" >&6; } 22700 else 22701 # Check if the provided tool contains a complete path. 22702 tool_specified="$TIME" 22703 tool_basename="${tool_specified##*/}" 22704 if test "x$tool_basename" = "x$tool_specified"; then 22705 # A command without a complete path is provided, search $PATH. 22706 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool TIME=$tool_basename" >&5 22707 $as_echo "$as_me: Will search for user supplied tool TIME=$tool_basename" >&6;} 22708 # Extract the first word of "$tool_basename", so it can be a program name with args. 22709 set dummy $tool_basename; ac_word=$2 22710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 22711 $as_echo_n "checking for $ac_word... " >&6; } 22712 if ${ac_cv_path_TIME+:} false; then : 22713 $as_echo_n "(cached) " >&6 22714 else 22715 case $TIME in 22716 [\\/]* | ?:[\\/]*) 22717 ac_cv_path_TIME="$TIME" # Let the user override the test with a path. 22718 ;; 22719 *) 22720 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 22721 for as_dir in $PATH 22722 do 22723 IFS=$as_save_IFS 22724 test -z "$as_dir" && as_dir=. 22725 for ac_exec_ext in '' $ac_executable_extensions; do 22726 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 22727 ac_cv_path_TIME="$as_dir/$ac_word$ac_exec_ext" 22728 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 22729 break 2 22730 fi 22731 done 22732 done 22733 IFS=$as_save_IFS 22734 22735 ;; 22736 esac 22737 fi 22738 TIME=$ac_cv_path_TIME 22739 if test -n "$TIME"; then 22740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TIME" >&5 22741 $as_echo "$TIME" >&6; } 22742 else 22743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 22744 $as_echo "no" >&6; } 22745 fi 22746 22747 22748 if test "x$TIME" = x; then 22749 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 22750 fi 22751 else 22752 # Otherwise we believe it is a complete path. Use it as it is. 22753 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool TIME=$tool_specified" >&5 22754 $as_echo "$as_me: Will use user supplied tool TIME=$tool_specified" >&6;} 22755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIME" >&5 22756 $as_echo_n "checking for TIME... " >&6; } 22757 if test ! -x "$tool_specified"; then 22758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 22759 $as_echo "not found" >&6; } 22760 as_fn_error $? "User supplied tool TIME=$tool_specified does not exist or is not executable" "$LINENO" 5 22761 fi 22762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 22763 $as_echo "$tool_specified" >&6; } 22764 fi 22765 fi 22766 fi 22767 22768 fi 22769 22770 22771 # Dtrace is usually found in /usr/sbin on Solaris, but that directory may not 22772 # be in the user path. 22773 22774 22775 # Publish this variable in the help. 22776 22777 22778 if [ -z "${DTRACE+x}" ]; then 22779 # The variable is not set by user, try to locate tool using the code snippet 22780 for ac_prog in dtrace 22781 do 22782 # Extract the first word of "$ac_prog", so it can be a program name with args. 22783 set dummy $ac_prog; ac_word=$2 22784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 22785 $as_echo_n "checking for $ac_word... " >&6; } 22786 if ${ac_cv_path_DTRACE+:} false; then : 22787 $as_echo_n "(cached) " >&6 22788 else 22789 case $DTRACE in 22790 [\\/]* | ?:[\\/]*) 22791 ac_cv_path_DTRACE="$DTRACE" # Let the user override the test with a path. 22792 ;; 22793 *) 22794 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 22795 as_dummy="$PATH:/usr/sbin" 22796 for as_dir in $as_dummy 22797 do 22798 IFS=$as_save_IFS 22799 test -z "$as_dir" && as_dir=. 22800 for ac_exec_ext in '' $ac_executable_extensions; do 22801 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 22802 ac_cv_path_DTRACE="$as_dir/$ac_word$ac_exec_ext" 22803 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 22804 break 2 22805 fi 22806 done 22807 done 22808 IFS=$as_save_IFS 22809 22810 ;; 22811 esac 22812 fi 22813 DTRACE=$ac_cv_path_DTRACE 22814 if test -n "$DTRACE"; then 22815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DTRACE" >&5 22816 $as_echo "$DTRACE" >&6; } 22817 else 22818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 22819 $as_echo "no" >&6; } 22820 fi 22821 22822 22823 test -n "$DTRACE" && break 22824 done 22825 22826 else 22827 # The variable is set, but is it from the command line or the environment? 22828 22829 # Try to remove the string !DTRACE! from our list. 22830 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!DTRACE!/} 22831 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 22832 # If it failed, the variable was not from the command line. Ignore it, 22833 # but warn the user (except for BASH, which is always set by the calling BASH). 22834 if test "xDTRACE" != xBASH; then 22835 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of DTRACE from the environment. Use command line variables instead." >&5 22836 $as_echo "$as_me: WARNING: Ignoring value of DTRACE from the environment. Use command line variables instead." >&2;} 22837 fi 22838 # Try to locate tool using the code snippet 22839 for ac_prog in dtrace 22840 do 22841 # Extract the first word of "$ac_prog", so it can be a program name with args. 22842 set dummy $ac_prog; ac_word=$2 22843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 22844 $as_echo_n "checking for $ac_word... " >&6; } 22845 if ${ac_cv_path_DTRACE+:} false; then : 22846 $as_echo_n "(cached) " >&6 22847 else 22848 case $DTRACE in 22849 [\\/]* | ?:[\\/]*) 22850 ac_cv_path_DTRACE="$DTRACE" # Let the user override the test with a path. 22851 ;; 22852 *) 22853 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 22854 as_dummy="$PATH:/usr/sbin" 22855 for as_dir in $as_dummy 22856 do 22857 IFS=$as_save_IFS 22858 test -z "$as_dir" && as_dir=. 22859 for ac_exec_ext in '' $ac_executable_extensions; do 22860 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 22861 ac_cv_path_DTRACE="$as_dir/$ac_word$ac_exec_ext" 22862 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 22863 break 2 22864 fi 22865 done 22866 done 22867 IFS=$as_save_IFS 22868 22869 ;; 22870 esac 22871 fi 22872 DTRACE=$ac_cv_path_DTRACE 22873 if test -n "$DTRACE"; then 22874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DTRACE" >&5 22875 $as_echo "$DTRACE" >&6; } 22876 else 22877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 22878 $as_echo "no" >&6; } 22879 fi 22880 22881 22882 test -n "$DTRACE" && break 22883 done 22884 22885 else 22886 # If it succeeded, then it was overridden by the user. We will use it 22887 # for the tool. 22888 22889 # First remove it from the list of overridden variables, so we can test 22890 # for unknown variables in the end. 22891 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 22892 22893 # Check if we try to supply an empty value 22894 if test "x$DTRACE" = x; then 22895 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool DTRACE= (no value)" >&5 22896 $as_echo "$as_me: Setting user supplied tool DTRACE= (no value)" >&6;} 22897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DTRACE" >&5 22898 $as_echo_n "checking for DTRACE... " >&6; } 22899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 22900 $as_echo "disabled" >&6; } 22901 else 22902 # Check if the provided tool contains a complete path. 22903 tool_specified="$DTRACE" 22904 tool_basename="${tool_specified##*/}" 22905 if test "x$tool_basename" = "x$tool_specified"; then 22906 # A command without a complete path is provided, search $PATH. 22907 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool DTRACE=$tool_basename" >&5 22908 $as_echo "$as_me: Will search for user supplied tool DTRACE=$tool_basename" >&6;} 22909 # Extract the first word of "$tool_basename", so it can be a program name with args. 22910 set dummy $tool_basename; ac_word=$2 22911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 22912 $as_echo_n "checking for $ac_word... " >&6; } 22913 if ${ac_cv_path_DTRACE+:} false; then : 22914 $as_echo_n "(cached) " >&6 22915 else 22916 case $DTRACE in 22917 [\\/]* | ?:[\\/]*) 22918 ac_cv_path_DTRACE="$DTRACE" # Let the user override the test with a path. 22919 ;; 22920 *) 22921 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 22922 for as_dir in $PATH 22923 do 22924 IFS=$as_save_IFS 22925 test -z "$as_dir" && as_dir=. 22926 for ac_exec_ext in '' $ac_executable_extensions; do 22927 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 22928 ac_cv_path_DTRACE="$as_dir/$ac_word$ac_exec_ext" 22929 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 22930 break 2 22931 fi 22932 done 22933 done 22934 IFS=$as_save_IFS 22935 22936 ;; 22937 esac 22938 fi 22939 DTRACE=$ac_cv_path_DTRACE 22940 if test -n "$DTRACE"; then 22941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DTRACE" >&5 22942 $as_echo "$DTRACE" >&6; } 22943 else 22944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 22945 $as_echo "no" >&6; } 22946 fi 22947 22948 22949 if test "x$DTRACE" = x; then 22950 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 22951 fi 22952 else 22953 # Otherwise we believe it is a complete path. Use it as it is. 22954 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool DTRACE=$tool_specified" >&5 22955 $as_echo "$as_me: Will use user supplied tool DTRACE=$tool_specified" >&6;} 22956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DTRACE" >&5 22957 $as_echo_n "checking for DTRACE... " >&6; } 22958 if test ! -x "$tool_specified"; then 22959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 22960 $as_echo "not found" >&6; } 22961 as_fn_error $? "User supplied tool DTRACE=$tool_specified does not exist or is not executable" "$LINENO" 5 22962 fi 22963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 22964 $as_echo "$tool_specified" >&6; } 22965 fi 22966 fi 22967 fi 22968 22969 fi 22970 22971 22972 22973 22974 # Publish this variable in the help. 22975 22976 22977 if [ -z "${PATCH+x}" ]; then 22978 # The variable is not set by user, try to locate tool using the code snippet 22979 for ac_prog in gpatch patch 22980 do 22981 # Extract the first word of "$ac_prog", so it can be a program name with args. 22982 set dummy $ac_prog; ac_word=$2 22983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 22984 $as_echo_n "checking for $ac_word... " >&6; } 22985 if ${ac_cv_path_PATCH+:} false; then : 22986 $as_echo_n "(cached) " >&6 22987 else 22988 case $PATCH in 22989 [\\/]* | ?:[\\/]*) 22990 ac_cv_path_PATCH="$PATCH" # Let the user override the test with a path. 22991 ;; 22992 *) 22993 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 22994 for as_dir in $PATH 22995 do 22996 IFS=$as_save_IFS 22997 test -z "$as_dir" && as_dir=. 22998 for ac_exec_ext in '' $ac_executable_extensions; do 22999 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 23000 ac_cv_path_PATCH="$as_dir/$ac_word$ac_exec_ext" 23001 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 23002 break 2 23003 fi 23004 done 23005 done 23006 IFS=$as_save_IFS 23007 23008 ;; 23009 esac 23010 fi 23011 PATCH=$ac_cv_path_PATCH 23012 if test -n "$PATCH"; then 23013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATCH" >&5 23014 $as_echo "$PATCH" >&6; } 23015 else 23016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 23017 $as_echo "no" >&6; } 23018 fi 23019 23020 23021 test -n "$PATCH" && break 23022 done 23023 23024 else 23025 # The variable is set, but is it from the command line or the environment? 23026 23027 # Try to remove the string !PATCH! from our list. 23028 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!PATCH!/} 23029 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 23030 # If it failed, the variable was not from the command line. Ignore it, 23031 # but warn the user (except for BASH, which is always set by the calling BASH). 23032 if test "xPATCH" != xBASH; then 23033 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of PATCH from the environment. Use command line variables instead." >&5 23034 $as_echo "$as_me: WARNING: Ignoring value of PATCH from the environment. Use command line variables instead." >&2;} 23035 fi 23036 # Try to locate tool using the code snippet 23037 for ac_prog in gpatch patch 23038 do 23039 # Extract the first word of "$ac_prog", so it can be a program name with args. 23040 set dummy $ac_prog; ac_word=$2 23041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 23042 $as_echo_n "checking for $ac_word... " >&6; } 23043 if ${ac_cv_path_PATCH+:} false; then : 23044 $as_echo_n "(cached) " >&6 23045 else 23046 case $PATCH in 23047 [\\/]* | ?:[\\/]*) 23048 ac_cv_path_PATCH="$PATCH" # Let the user override the test with a path. 23049 ;; 23050 *) 23051 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 23052 for as_dir in $PATH 23053 do 23054 IFS=$as_save_IFS 23055 test -z "$as_dir" && as_dir=. 23056 for ac_exec_ext in '' $ac_executable_extensions; do 23057 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 23058 ac_cv_path_PATCH="$as_dir/$ac_word$ac_exec_ext" 23059 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 23060 break 2 23061 fi 23062 done 23063 done 23064 IFS=$as_save_IFS 23065 23066 ;; 23067 esac 23068 fi 23069 PATCH=$ac_cv_path_PATCH 23070 if test -n "$PATCH"; then 23071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATCH" >&5 23072 $as_echo "$PATCH" >&6; } 23073 else 23074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 23075 $as_echo "no" >&6; } 23076 fi 23077 23078 23079 test -n "$PATCH" && break 23080 done 23081 23082 else 23083 # If it succeeded, then it was overridden by the user. We will use it 23084 # for the tool. 23085 23086 # First remove it from the list of overridden variables, so we can test 23087 # for unknown variables in the end. 23088 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 23089 23090 # Check if we try to supply an empty value 23091 if test "x$PATCH" = x; then 23092 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool PATCH= (no value)" >&5 23093 $as_echo "$as_me: Setting user supplied tool PATCH= (no value)" >&6;} 23094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PATCH" >&5 23095 $as_echo_n "checking for PATCH... " >&6; } 23096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 23097 $as_echo "disabled" >&6; } 23098 else 23099 # Check if the provided tool contains a complete path. 23100 tool_specified="$PATCH" 23101 tool_basename="${tool_specified##*/}" 23102 if test "x$tool_basename" = "x$tool_specified"; then 23103 # A command without a complete path is provided, search $PATH. 23104 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool PATCH=$tool_basename" >&5 23105 $as_echo "$as_me: Will search for user supplied tool PATCH=$tool_basename" >&6;} 23106 # Extract the first word of "$tool_basename", so it can be a program name with args. 23107 set dummy $tool_basename; ac_word=$2 23108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 23109 $as_echo_n "checking for $ac_word... " >&6; } 23110 if ${ac_cv_path_PATCH+:} false; then : 23111 $as_echo_n "(cached) " >&6 23112 else 23113 case $PATCH in 23114 [\\/]* | ?:[\\/]*) 23115 ac_cv_path_PATCH="$PATCH" # Let the user override the test with a path. 23116 ;; 23117 *) 23118 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 23119 for as_dir in $PATH 23120 do 23121 IFS=$as_save_IFS 23122 test -z "$as_dir" && as_dir=. 23123 for ac_exec_ext in '' $ac_executable_extensions; do 23124 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 23125 ac_cv_path_PATCH="$as_dir/$ac_word$ac_exec_ext" 23126 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 23127 break 2 23128 fi 23129 done 23130 done 23131 IFS=$as_save_IFS 23132 23133 ;; 23134 esac 23135 fi 23136 PATCH=$ac_cv_path_PATCH 23137 if test -n "$PATCH"; then 23138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATCH" >&5 23139 $as_echo "$PATCH" >&6; } 23140 else 23141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 23142 $as_echo "no" >&6; } 23143 fi 23144 23145 23146 if test "x$PATCH" = x; then 23147 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 23148 fi 23149 else 23150 # Otherwise we believe it is a complete path. Use it as it is. 23151 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool PATCH=$tool_specified" >&5 23152 $as_echo "$as_me: Will use user supplied tool PATCH=$tool_specified" >&6;} 23153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PATCH" >&5 23154 $as_echo_n "checking for PATCH... " >&6; } 23155 if test ! -x "$tool_specified"; then 23156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 23157 $as_echo "not found" >&6; } 23158 as_fn_error $? "User supplied tool PATCH=$tool_specified does not exist or is not executable" "$LINENO" 5 23159 fi 23160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 23161 $as_echo "$tool_specified" >&6; } 23162 fi 23163 fi 23164 fi 23165 23166 fi 23167 23168 23169 # Check if it's GNU time 23170 IS_GNU_TIME=`$TIME --version 2>&1 | $GREP 'GNU time'` 23171 if test "x$IS_GNU_TIME" != x; then 23172 IS_GNU_TIME=yes 23173 else 23174 IS_GNU_TIME=no 23175 fi 23176 23177 23178 if test "x$OPENJDK_TARGET_OS" = "xmacosx"; then 23179 23180 23181 23182 # Publish this variable in the help. 23183 23184 23185 if [ -z "${DSYMUTIL+x}" ]; then 23186 # The variable is not set by user, try to locate tool using the code snippet 23187 for ac_prog in dsymutil 23188 do 23189 # Extract the first word of "$ac_prog", so it can be a program name with args. 23190 set dummy $ac_prog; ac_word=$2 23191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 23192 $as_echo_n "checking for $ac_word... " >&6; } 23193 if ${ac_cv_path_DSYMUTIL+:} false; then : 23194 $as_echo_n "(cached) " >&6 23195 else 23196 case $DSYMUTIL in 23197 [\\/]* | ?:[\\/]*) 23198 ac_cv_path_DSYMUTIL="$DSYMUTIL" # Let the user override the test with a path. 23199 ;; 23200 *) 23201 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 23202 for as_dir in $PATH 23203 do 23204 IFS=$as_save_IFS 23205 test -z "$as_dir" && as_dir=. 23206 for ac_exec_ext in '' $ac_executable_extensions; do 23207 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 23208 ac_cv_path_DSYMUTIL="$as_dir/$ac_word$ac_exec_ext" 23209 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 23210 break 2 23211 fi 23212 done 23213 done 23214 IFS=$as_save_IFS 23215 23216 ;; 23217 esac 23218 fi 23219 DSYMUTIL=$ac_cv_path_DSYMUTIL 23220 if test -n "$DSYMUTIL"; then 23221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 23222 $as_echo "$DSYMUTIL" >&6; } 23223 else 23224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 23225 $as_echo "no" >&6; } 23226 fi 23227 23228 23229 test -n "$DSYMUTIL" && break 23230 done 23231 23232 else 23233 # The variable is set, but is it from the command line or the environment? 23234 23235 # Try to remove the string !DSYMUTIL! from our list. 23236 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!DSYMUTIL!/} 23237 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 23238 # If it failed, the variable was not from the command line. Ignore it, 23239 # but warn the user (except for BASH, which is always set by the calling BASH). 23240 if test "xDSYMUTIL" != xBASH; then 23241 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of DSYMUTIL from the environment. Use command line variables instead." >&5 23242 $as_echo "$as_me: WARNING: Ignoring value of DSYMUTIL from the environment. Use command line variables instead." >&2;} 23243 fi 23244 # Try to locate tool using the code snippet 23245 for ac_prog in dsymutil 23246 do 23247 # Extract the first word of "$ac_prog", so it can be a program name with args. 23248 set dummy $ac_prog; ac_word=$2 23249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 23250 $as_echo_n "checking for $ac_word... " >&6; } 23251 if ${ac_cv_path_DSYMUTIL+:} false; then : 23252 $as_echo_n "(cached) " >&6 23253 else 23254 case $DSYMUTIL in 23255 [\\/]* | ?:[\\/]*) 23256 ac_cv_path_DSYMUTIL="$DSYMUTIL" # Let the user override the test with a path. 23257 ;; 23258 *) 23259 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 23260 for as_dir in $PATH 23261 do 23262 IFS=$as_save_IFS 23263 test -z "$as_dir" && as_dir=. 23264 for ac_exec_ext in '' $ac_executable_extensions; do 23265 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 23266 ac_cv_path_DSYMUTIL="$as_dir/$ac_word$ac_exec_ext" 23267 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 23268 break 2 23269 fi 23270 done 23271 done 23272 IFS=$as_save_IFS 23273 23274 ;; 23275 esac 23276 fi 23277 DSYMUTIL=$ac_cv_path_DSYMUTIL 23278 if test -n "$DSYMUTIL"; then 23279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 23280 $as_echo "$DSYMUTIL" >&6; } 23281 else 23282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 23283 $as_echo "no" >&6; } 23284 fi 23285 23286 23287 test -n "$DSYMUTIL" && break 23288 done 23289 23290 else 23291 # If it succeeded, then it was overridden by the user. We will use it 23292 # for the tool. 23293 23294 # First remove it from the list of overridden variables, so we can test 23295 # for unknown variables in the end. 23296 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 23297 23298 # Check if we try to supply an empty value 23299 if test "x$DSYMUTIL" = x; then 23300 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool DSYMUTIL= (no value)" >&5 23301 $as_echo "$as_me: Setting user supplied tool DSYMUTIL= (no value)" >&6;} 23302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DSYMUTIL" >&5 23303 $as_echo_n "checking for DSYMUTIL... " >&6; } 23304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 23305 $as_echo "disabled" >&6; } 23306 else 23307 # Check if the provided tool contains a complete path. 23308 tool_specified="$DSYMUTIL" 23309 tool_basename="${tool_specified##*/}" 23310 if test "x$tool_basename" = "x$tool_specified"; then 23311 # A command without a complete path is provided, search $PATH. 23312 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool DSYMUTIL=$tool_basename" >&5 23313 $as_echo "$as_me: Will search for user supplied tool DSYMUTIL=$tool_basename" >&6;} 23314 # Extract the first word of "$tool_basename", so it can be a program name with args. 23315 set dummy $tool_basename; ac_word=$2 23316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 23317 $as_echo_n "checking for $ac_word... " >&6; } 23318 if ${ac_cv_path_DSYMUTIL+:} false; then : 23319 $as_echo_n "(cached) " >&6 23320 else 23321 case $DSYMUTIL in 23322 [\\/]* | ?:[\\/]*) 23323 ac_cv_path_DSYMUTIL="$DSYMUTIL" # Let the user override the test with a path. 23324 ;; 23325 *) 23326 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 23327 for as_dir in $PATH 23328 do 23329 IFS=$as_save_IFS 23330 test -z "$as_dir" && as_dir=. 23331 for ac_exec_ext in '' $ac_executable_extensions; do 23332 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 23333 ac_cv_path_DSYMUTIL="$as_dir/$ac_word$ac_exec_ext" 23334 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 23335 break 2 23336 fi 23337 done 23338 done 23339 IFS=$as_save_IFS 23340 23341 ;; 23342 esac 23343 fi 23344 DSYMUTIL=$ac_cv_path_DSYMUTIL 23345 if test -n "$DSYMUTIL"; then 23346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 23347 $as_echo "$DSYMUTIL" >&6; } 23348 else 23349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 23350 $as_echo "no" >&6; } 23351 fi 23352 23353 23354 if test "x$DSYMUTIL" = x; then 23355 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 23356 fi 23357 else 23358 # Otherwise we believe it is a complete path. Use it as it is. 23359 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool DSYMUTIL=$tool_specified" >&5 23360 $as_echo "$as_me: Will use user supplied tool DSYMUTIL=$tool_specified" >&6;} 23361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DSYMUTIL" >&5 23362 $as_echo_n "checking for DSYMUTIL... " >&6; } 23363 if test ! -x "$tool_specified"; then 23364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 23365 $as_echo "not found" >&6; } 23366 as_fn_error $? "User supplied tool DSYMUTIL=$tool_specified does not exist or is not executable" "$LINENO" 5 23367 fi 23368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 23369 $as_echo "$tool_specified" >&6; } 23370 fi 23371 fi 23372 fi 23373 23374 fi 23375 23376 23377 23378 if test "x$DSYMUTIL" = x; then 23379 as_fn_error $? "Could not find required tool for DSYMUTIL" "$LINENO" 5 23380 fi 23381 23382 23383 23384 23385 23386 # Publish this variable in the help. 23387 23388 23389 if [ -z "${XATTR+x}" ]; then 23390 # The variable is not set by user, try to locate tool using the code snippet 23391 for ac_prog in xattr 23392 do 23393 # Extract the first word of "$ac_prog", so it can be a program name with args. 23394 set dummy $ac_prog; ac_word=$2 23395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 23396 $as_echo_n "checking for $ac_word... " >&6; } 23397 if ${ac_cv_path_XATTR+:} false; then : 23398 $as_echo_n "(cached) " >&6 23399 else 23400 case $XATTR in 23401 [\\/]* | ?:[\\/]*) 23402 ac_cv_path_XATTR="$XATTR" # Let the user override the test with a path. 23403 ;; 23404 *) 23405 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 23406 for as_dir in $PATH 23407 do 23408 IFS=$as_save_IFS 23409 test -z "$as_dir" && as_dir=. 23410 for ac_exec_ext in '' $ac_executable_extensions; do 23411 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 23412 ac_cv_path_XATTR="$as_dir/$ac_word$ac_exec_ext" 23413 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 23414 break 2 23415 fi 23416 done 23417 done 23418 IFS=$as_save_IFS 23419 23420 ;; 23421 esac 23422 fi 23423 XATTR=$ac_cv_path_XATTR 23424 if test -n "$XATTR"; then 23425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XATTR" >&5 23426 $as_echo "$XATTR" >&6; } 23427 else 23428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 23429 $as_echo "no" >&6; } 23430 fi 23431 23432 23433 test -n "$XATTR" && break 23434 done 23435 23436 else 23437 # The variable is set, but is it from the command line or the environment? 23438 23439 # Try to remove the string !XATTR! from our list. 23440 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!XATTR!/} 23441 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 23442 # If it failed, the variable was not from the command line. Ignore it, 23443 # but warn the user (except for BASH, which is always set by the calling BASH). 23444 if test "xXATTR" != xBASH; then 23445 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of XATTR from the environment. Use command line variables instead." >&5 23446 $as_echo "$as_me: WARNING: Ignoring value of XATTR from the environment. Use command line variables instead." >&2;} 23447 fi 23448 # Try to locate tool using the code snippet 23449 for ac_prog in xattr 23450 do 23451 # Extract the first word of "$ac_prog", so it can be a program name with args. 23452 set dummy $ac_prog; ac_word=$2 23453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 23454 $as_echo_n "checking for $ac_word... " >&6; } 23455 if ${ac_cv_path_XATTR+:} false; then : 23456 $as_echo_n "(cached) " >&6 23457 else 23458 case $XATTR in 23459 [\\/]* | ?:[\\/]*) 23460 ac_cv_path_XATTR="$XATTR" # Let the user override the test with a path. 23461 ;; 23462 *) 23463 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 23464 for as_dir in $PATH 23465 do 23466 IFS=$as_save_IFS 23467 test -z "$as_dir" && as_dir=. 23468 for ac_exec_ext in '' $ac_executable_extensions; do 23469 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 23470 ac_cv_path_XATTR="$as_dir/$ac_word$ac_exec_ext" 23471 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 23472 break 2 23473 fi 23474 done 23475 done 23476 IFS=$as_save_IFS 23477 23478 ;; 23479 esac 23480 fi 23481 XATTR=$ac_cv_path_XATTR 23482 if test -n "$XATTR"; then 23483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XATTR" >&5 23484 $as_echo "$XATTR" >&6; } 23485 else 23486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 23487 $as_echo "no" >&6; } 23488 fi 23489 23490 23491 test -n "$XATTR" && break 23492 done 23493 23494 else 23495 # If it succeeded, then it was overridden by the user. We will use it 23496 # for the tool. 23497 23498 # First remove it from the list of overridden variables, so we can test 23499 # for unknown variables in the end. 23500 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 23501 23502 # Check if we try to supply an empty value 23503 if test "x$XATTR" = x; then 23504 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool XATTR= (no value)" >&5 23505 $as_echo "$as_me: Setting user supplied tool XATTR= (no value)" >&6;} 23506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XATTR" >&5 23507 $as_echo_n "checking for XATTR... " >&6; } 23508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 23509 $as_echo "disabled" >&6; } 23510 else 23511 # Check if the provided tool contains a complete path. 23512 tool_specified="$XATTR" 23513 tool_basename="${tool_specified##*/}" 23514 if test "x$tool_basename" = "x$tool_specified"; then 23515 # A command without a complete path is provided, search $PATH. 23516 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool XATTR=$tool_basename" >&5 23517 $as_echo "$as_me: Will search for user supplied tool XATTR=$tool_basename" >&6;} 23518 # Extract the first word of "$tool_basename", so it can be a program name with args. 23519 set dummy $tool_basename; ac_word=$2 23520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 23521 $as_echo_n "checking for $ac_word... " >&6; } 23522 if ${ac_cv_path_XATTR+:} false; then : 23523 $as_echo_n "(cached) " >&6 23524 else 23525 case $XATTR in 23526 [\\/]* | ?:[\\/]*) 23527 ac_cv_path_XATTR="$XATTR" # Let the user override the test with a path. 23528 ;; 23529 *) 23530 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 23531 for as_dir in $PATH 23532 do 23533 IFS=$as_save_IFS 23534 test -z "$as_dir" && as_dir=. 23535 for ac_exec_ext in '' $ac_executable_extensions; do 23536 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 23537 ac_cv_path_XATTR="$as_dir/$ac_word$ac_exec_ext" 23538 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 23539 break 2 23540 fi 23541 done 23542 done 23543 IFS=$as_save_IFS 23544 23545 ;; 23546 esac 23547 fi 23548 XATTR=$ac_cv_path_XATTR 23549 if test -n "$XATTR"; then 23550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XATTR" >&5 23551 $as_echo "$XATTR" >&6; } 23552 else 23553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 23554 $as_echo "no" >&6; } 23555 fi 23556 23557 23558 if test "x$XATTR" = x; then 23559 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 23560 fi 23561 else 23562 # Otherwise we believe it is a complete path. Use it as it is. 23563 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool XATTR=$tool_specified" >&5 23564 $as_echo "$as_me: Will use user supplied tool XATTR=$tool_specified" >&6;} 23565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XATTR" >&5 23566 $as_echo_n "checking for XATTR... " >&6; } 23567 if test ! -x "$tool_specified"; then 23568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 23569 $as_echo "not found" >&6; } 23570 as_fn_error $? "User supplied tool XATTR=$tool_specified does not exist or is not executable" "$LINENO" 5 23571 fi 23572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 23573 $as_echo "$tool_specified" >&6; } 23574 fi 23575 fi 23576 fi 23577 23578 fi 23579 23580 23581 23582 if test "x$XATTR" = x; then 23583 as_fn_error $? "Could not find required tool for XATTR" "$LINENO" 5 23584 fi 23585 23586 23587 23588 23589 # Publish this variable in the help. 23590 23591 23592 if [ -z "${CODESIGN+x}" ]; then 23593 # The variable is not set by user, try to locate tool using the code snippet 23594 for ac_prog in codesign 23595 do 23596 # Extract the first word of "$ac_prog", so it can be a program name with args. 23597 set dummy $ac_prog; ac_word=$2 23598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 23599 $as_echo_n "checking for $ac_word... " >&6; } 23600 if ${ac_cv_path_CODESIGN+:} false; then : 23601 $as_echo_n "(cached) " >&6 23602 else 23603 case $CODESIGN in 23604 [\\/]* | ?:[\\/]*) 23605 ac_cv_path_CODESIGN="$CODESIGN" # Let the user override the test with a path. 23606 ;; 23607 *) 23608 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 23609 for as_dir in $PATH 23610 do 23611 IFS=$as_save_IFS 23612 test -z "$as_dir" && as_dir=. 23613 for ac_exec_ext in '' $ac_executable_extensions; do 23614 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 23615 ac_cv_path_CODESIGN="$as_dir/$ac_word$ac_exec_ext" 23616 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 23617 break 2 23618 fi 23619 done 23620 done 23621 IFS=$as_save_IFS 23622 23623 ;; 23624 esac 23625 fi 23626 CODESIGN=$ac_cv_path_CODESIGN 23627 if test -n "$CODESIGN"; then 23628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CODESIGN" >&5 23629 $as_echo "$CODESIGN" >&6; } 23630 else 23631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 23632 $as_echo "no" >&6; } 23633 fi 23634 23635 23636 test -n "$CODESIGN" && break 23637 done 23638 23639 else 23640 # The variable is set, but is it from the command line or the environment? 23641 23642 # Try to remove the string !CODESIGN! from our list. 23643 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CODESIGN!/} 23644 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 23645 # If it failed, the variable was not from the command line. Ignore it, 23646 # but warn the user (except for BASH, which is always set by the calling BASH). 23647 if test "xCODESIGN" != xBASH; then 23648 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CODESIGN from the environment. Use command line variables instead." >&5 23649 $as_echo "$as_me: WARNING: Ignoring value of CODESIGN from the environment. Use command line variables instead." >&2;} 23650 fi 23651 # Try to locate tool using the code snippet 23652 for ac_prog in codesign 23653 do 23654 # Extract the first word of "$ac_prog", so it can be a program name with args. 23655 set dummy $ac_prog; ac_word=$2 23656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 23657 $as_echo_n "checking for $ac_word... " >&6; } 23658 if ${ac_cv_path_CODESIGN+:} false; then : 23659 $as_echo_n "(cached) " >&6 23660 else 23661 case $CODESIGN in 23662 [\\/]* | ?:[\\/]*) 23663 ac_cv_path_CODESIGN="$CODESIGN" # Let the user override the test with a path. 23664 ;; 23665 *) 23666 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 23667 for as_dir in $PATH 23668 do 23669 IFS=$as_save_IFS 23670 test -z "$as_dir" && as_dir=. 23671 for ac_exec_ext in '' $ac_executable_extensions; do 23672 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 23673 ac_cv_path_CODESIGN="$as_dir/$ac_word$ac_exec_ext" 23674 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 23675 break 2 23676 fi 23677 done 23678 done 23679 IFS=$as_save_IFS 23680 23681 ;; 23682 esac 23683 fi 23684 CODESIGN=$ac_cv_path_CODESIGN 23685 if test -n "$CODESIGN"; then 23686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CODESIGN" >&5 23687 $as_echo "$CODESIGN" >&6; } 23688 else 23689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 23690 $as_echo "no" >&6; } 23691 fi 23692 23693 23694 test -n "$CODESIGN" && break 23695 done 23696 23697 else 23698 # If it succeeded, then it was overridden by the user. We will use it 23699 # for the tool. 23700 23701 # First remove it from the list of overridden variables, so we can test 23702 # for unknown variables in the end. 23703 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 23704 23705 # Check if we try to supply an empty value 23706 if test "x$CODESIGN" = x; then 23707 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool CODESIGN= (no value)" >&5 23708 $as_echo "$as_me: Setting user supplied tool CODESIGN= (no value)" >&6;} 23709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CODESIGN" >&5 23710 $as_echo_n "checking for CODESIGN... " >&6; } 23711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 23712 $as_echo "disabled" >&6; } 23713 else 23714 # Check if the provided tool contains a complete path. 23715 tool_specified="$CODESIGN" 23716 tool_basename="${tool_specified##*/}" 23717 if test "x$tool_basename" = "x$tool_specified"; then 23718 # A command without a complete path is provided, search $PATH. 23719 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CODESIGN=$tool_basename" >&5 23720 $as_echo "$as_me: Will search for user supplied tool CODESIGN=$tool_basename" >&6;} 23721 # Extract the first word of "$tool_basename", so it can be a program name with args. 23722 set dummy $tool_basename; ac_word=$2 23723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 23724 $as_echo_n "checking for $ac_word... " >&6; } 23725 if ${ac_cv_path_CODESIGN+:} false; then : 23726 $as_echo_n "(cached) " >&6 23727 else 23728 case $CODESIGN in 23729 [\\/]* | ?:[\\/]*) 23730 ac_cv_path_CODESIGN="$CODESIGN" # Let the user override the test with a path. 23731 ;; 23732 *) 23733 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 23734 for as_dir in $PATH 23735 do 23736 IFS=$as_save_IFS 23737 test -z "$as_dir" && as_dir=. 23738 for ac_exec_ext in '' $ac_executable_extensions; do 23739 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 23740 ac_cv_path_CODESIGN="$as_dir/$ac_word$ac_exec_ext" 23741 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 23742 break 2 23743 fi 23744 done 23745 done 23746 IFS=$as_save_IFS 23747 23748 ;; 23749 esac 23750 fi 23751 CODESIGN=$ac_cv_path_CODESIGN 23752 if test -n "$CODESIGN"; then 23753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CODESIGN" >&5 23754 $as_echo "$CODESIGN" >&6; } 23755 else 23756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 23757 $as_echo "no" >&6; } 23758 fi 23759 23760 23761 if test "x$CODESIGN" = x; then 23762 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 23763 fi 23764 else 23765 # Otherwise we believe it is a complete path. Use it as it is. 23766 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CODESIGN=$tool_specified" >&5 23767 $as_echo "$as_me: Will use user supplied tool CODESIGN=$tool_specified" >&6;} 23768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CODESIGN" >&5 23769 $as_echo_n "checking for CODESIGN... " >&6; } 23770 if test ! -x "$tool_specified"; then 23771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 23772 $as_echo "not found" >&6; } 23773 as_fn_error $? "User supplied tool CODESIGN=$tool_specified does not exist or is not executable" "$LINENO" 5 23774 fi 23775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 23776 $as_echo "$tool_specified" >&6; } 23777 fi 23778 fi 23779 fi 23780 23781 fi 23782 23783 23784 if test "x$CODESIGN" != "x"; then 23785 # Verify that the openjdk_codesign certificate is present 23786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if openjdk_codesign certificate is present" >&5 23787 $as_echo_n "checking if openjdk_codesign certificate is present... " >&6; } 23788 $RM codesign-testfile 23789 $TOUCH codesign-testfile 23790 $CODESIGN -s openjdk_codesign codesign-testfile 2>&5 >&5 || CODESIGN= 23791 $RM codesign-testfile 23792 if test "x$CODESIGN" = x; then 23793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 23794 $as_echo "no" >&6; } 23795 else 23796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 23797 $as_echo "yes" >&6; } 23798 fi 23799 fi 23800 23801 23802 23803 # Publish this variable in the help. 23804 23805 23806 if [ -z "${SETFILE+x}" ]; then 23807 # The variable is not set by user, try to locate tool using the code snippet 23808 for ac_prog in SetFile 23809 do 23810 # Extract the first word of "$ac_prog", so it can be a program name with args. 23811 set dummy $ac_prog; ac_word=$2 23812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 23813 $as_echo_n "checking for $ac_word... " >&6; } 23814 if ${ac_cv_path_SETFILE+:} false; then : 23815 $as_echo_n "(cached) " >&6 23816 else 23817 case $SETFILE in 23818 [\\/]* | ?:[\\/]*) 23819 ac_cv_path_SETFILE="$SETFILE" # Let the user override the test with a path. 23820 ;; 23821 *) 23822 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 23823 for as_dir in $PATH 23824 do 23825 IFS=$as_save_IFS 23826 test -z "$as_dir" && as_dir=. 23827 for ac_exec_ext in '' $ac_executable_extensions; do 23828 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 23829 ac_cv_path_SETFILE="$as_dir/$ac_word$ac_exec_ext" 23830 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 23831 break 2 23832 fi 23833 done 23834 done 23835 IFS=$as_save_IFS 23836 23837 ;; 23838 esac 23839 fi 23840 SETFILE=$ac_cv_path_SETFILE 23841 if test -n "$SETFILE"; then 23842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SETFILE" >&5 23843 $as_echo "$SETFILE" >&6; } 23844 else 23845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 23846 $as_echo "no" >&6; } 23847 fi 23848 23849 23850 test -n "$SETFILE" && break 23851 done 23852 23853 else 23854 # The variable is set, but is it from the command line or the environment? 23855 23856 # Try to remove the string !SETFILE! from our list. 23857 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!SETFILE!/} 23858 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 23859 # If it failed, the variable was not from the command line. Ignore it, 23860 # but warn the user (except for BASH, which is always set by the calling BASH). 23861 if test "xSETFILE" != xBASH; then 23862 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of SETFILE from the environment. Use command line variables instead." >&5 23863 $as_echo "$as_me: WARNING: Ignoring value of SETFILE from the environment. Use command line variables instead." >&2;} 23864 fi 23865 # Try to locate tool using the code snippet 23866 for ac_prog in SetFile 23867 do 23868 # Extract the first word of "$ac_prog", so it can be a program name with args. 23869 set dummy $ac_prog; ac_word=$2 23870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 23871 $as_echo_n "checking for $ac_word... " >&6; } 23872 if ${ac_cv_path_SETFILE+:} false; then : 23873 $as_echo_n "(cached) " >&6 23874 else 23875 case $SETFILE in 23876 [\\/]* | ?:[\\/]*) 23877 ac_cv_path_SETFILE="$SETFILE" # Let the user override the test with a path. 23878 ;; 23879 *) 23880 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 23881 for as_dir in $PATH 23882 do 23883 IFS=$as_save_IFS 23884 test -z "$as_dir" && as_dir=. 23885 for ac_exec_ext in '' $ac_executable_extensions; do 23886 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 23887 ac_cv_path_SETFILE="$as_dir/$ac_word$ac_exec_ext" 23888 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 23889 break 2 23890 fi 23891 done 23892 done 23893 IFS=$as_save_IFS 23894 23895 ;; 23896 esac 23897 fi 23898 SETFILE=$ac_cv_path_SETFILE 23899 if test -n "$SETFILE"; then 23900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SETFILE" >&5 23901 $as_echo "$SETFILE" >&6; } 23902 else 23903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 23904 $as_echo "no" >&6; } 23905 fi 23906 23907 23908 test -n "$SETFILE" && break 23909 done 23910 23911 else 23912 # If it succeeded, then it was overridden by the user. We will use it 23913 # for the tool. 23914 23915 # First remove it from the list of overridden variables, so we can test 23916 # for unknown variables in the end. 23917 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 23918 23919 # Check if we try to supply an empty value 23920 if test "x$SETFILE" = x; then 23921 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool SETFILE= (no value)" >&5 23922 $as_echo "$as_me: Setting user supplied tool SETFILE= (no value)" >&6;} 23923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SETFILE" >&5 23924 $as_echo_n "checking for SETFILE... " >&6; } 23925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 23926 $as_echo "disabled" >&6; } 23927 else 23928 # Check if the provided tool contains a complete path. 23929 tool_specified="$SETFILE" 23930 tool_basename="${tool_specified##*/}" 23931 if test "x$tool_basename" = "x$tool_specified"; then 23932 # A command without a complete path is provided, search $PATH. 23933 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool SETFILE=$tool_basename" >&5 23934 $as_echo "$as_me: Will search for user supplied tool SETFILE=$tool_basename" >&6;} 23935 # Extract the first word of "$tool_basename", so it can be a program name with args. 23936 set dummy $tool_basename; ac_word=$2 23937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 23938 $as_echo_n "checking for $ac_word... " >&6; } 23939 if ${ac_cv_path_SETFILE+:} false; then : 23940 $as_echo_n "(cached) " >&6 23941 else 23942 case $SETFILE in 23943 [\\/]* | ?:[\\/]*) 23944 ac_cv_path_SETFILE="$SETFILE" # Let the user override the test with a path. 23945 ;; 23946 *) 23947 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 23948 for as_dir in $PATH 23949 do 23950 IFS=$as_save_IFS 23951 test -z "$as_dir" && as_dir=. 23952 for ac_exec_ext in '' $ac_executable_extensions; do 23953 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 23954 ac_cv_path_SETFILE="$as_dir/$ac_word$ac_exec_ext" 23955 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 23956 break 2 23957 fi 23958 done 23959 done 23960 IFS=$as_save_IFS 23961 23962 ;; 23963 esac 23964 fi 23965 SETFILE=$ac_cv_path_SETFILE 23966 if test -n "$SETFILE"; then 23967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SETFILE" >&5 23968 $as_echo "$SETFILE" >&6; } 23969 else 23970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 23971 $as_echo "no" >&6; } 23972 fi 23973 23974 23975 if test "x$SETFILE" = x; then 23976 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 23977 fi 23978 else 23979 # Otherwise we believe it is a complete path. Use it as it is. 23980 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool SETFILE=$tool_specified" >&5 23981 $as_echo "$as_me: Will use user supplied tool SETFILE=$tool_specified" >&6;} 23982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SETFILE" >&5 23983 $as_echo_n "checking for SETFILE... " >&6; } 23984 if test ! -x "$tool_specified"; then 23985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 23986 $as_echo "not found" >&6; } 23987 as_fn_error $? "User supplied tool SETFILE=$tool_specified does not exist or is not executable" "$LINENO" 5 23988 fi 23989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 23990 $as_echo "$tool_specified" >&6; } 23991 fi 23992 fi 23993 fi 23994 23995 fi 23996 23997 23998 23999 if test "x$SETFILE" = x; then 24000 as_fn_error $? "Could not find required tool for SETFILE" "$LINENO" 5 24001 fi 24002 24003 24004 fi 24005 24006 24007 # Test if bash supports pipefail. 24008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if bash supports pipefail" >&5 24009 $as_echo_n "checking if bash supports pipefail... " >&6; } 24010 if ${BASH} -c 'set -o pipefail'; then 24011 BASH_ARGS="$BASH_ARGS -o pipefail" 24012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 24013 $as_echo "yes" >&6; } 24014 else 24015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 24016 $as_echo "no" >&6; } 24017 fi 24018 24019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if bash supports errexit (-e)" >&5 24020 $as_echo_n "checking if bash supports errexit (-e)... " >&6; } 24021 if ${BASH} -e -c 'true'; then 24022 BASH_ARGS="$BASH_ARGS -e" 24023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 24024 $as_echo "yes" >&6; } 24025 else 24026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 24027 $as_echo "no" >&6; } 24028 fi 24029 24030 24031 24032 24033 # Check if pkg-config is available. 24034 24035 24036 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 24037 if test -n "$ac_tool_prefix"; then 24038 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 24039 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 24040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 24041 $as_echo_n "checking for $ac_word... " >&6; } 24042 if ${ac_cv_path_PKG_CONFIG+:} false; then : 24043 $as_echo_n "(cached) " >&6 24044 else 24045 case $PKG_CONFIG in 24046 [\\/]* | ?:[\\/]*) 24047 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 24048 ;; 24049 *) 24050 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 24051 for as_dir in $PATH 24052 do 24053 IFS=$as_save_IFS 24054 test -z "$as_dir" && as_dir=. 24055 for ac_exec_ext in '' $ac_executable_extensions; do 24056 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 24057 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 24058 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 24059 break 2 24060 fi 24061 done 24062 done 24063 IFS=$as_save_IFS 24064 24065 ;; 24066 esac 24067 fi 24068 PKG_CONFIG=$ac_cv_path_PKG_CONFIG 24069 if test -n "$PKG_CONFIG"; then 24070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 24071 $as_echo "$PKG_CONFIG" >&6; } 24072 else 24073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 24074 $as_echo "no" >&6; } 24075 fi 24076 24077 24078 fi 24079 if test -z "$ac_cv_path_PKG_CONFIG"; then 24080 ac_pt_PKG_CONFIG=$PKG_CONFIG 24081 # Extract the first word of "pkg-config", so it can be a program name with args. 24082 set dummy pkg-config; ac_word=$2 24083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 24084 $as_echo_n "checking for $ac_word... " >&6; } 24085 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : 24086 $as_echo_n "(cached) " >&6 24087 else 24088 case $ac_pt_PKG_CONFIG in 24089 [\\/]* | ?:[\\/]*) 24090 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 24091 ;; 24092 *) 24093 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 24094 for as_dir in $PATH 24095 do 24096 IFS=$as_save_IFS 24097 test -z "$as_dir" && as_dir=. 24098 for ac_exec_ext in '' $ac_executable_extensions; do 24099 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 24100 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 24101 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 24102 break 2 24103 fi 24104 done 24105 done 24106 IFS=$as_save_IFS 24107 24108 ;; 24109 esac 24110 fi 24111 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 24112 if test -n "$ac_pt_PKG_CONFIG"; then 24113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 24114 $as_echo "$ac_pt_PKG_CONFIG" >&6; } 24115 else 24116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 24117 $as_echo "no" >&6; } 24118 fi 24119 24120 if test "x$ac_pt_PKG_CONFIG" = x; then 24121 PKG_CONFIG="" 24122 else 24123 case $cross_compiling:$ac_tool_warned in 24124 yes:) 24125 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 24126 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 24127 ac_tool_warned=yes ;; 24128 esac 24129 PKG_CONFIG=$ac_pt_PKG_CONFIG 24130 fi 24131 else 24132 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 24133 fi 24134 24135 fi 24136 if test -n "$PKG_CONFIG"; then 24137 _pkg_min_version=0.9.0 24138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 24139 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } 24140 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 24141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 24142 $as_echo "yes" >&6; } 24143 else 24144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 24145 $as_echo "no" >&6; } 24146 PKG_CONFIG="" 24147 fi 24148 24149 fi 24150 24151 # After basic tools have been setup, we can check build os specific details. 24152 24153 ############################################################################### 24154 24155 # Note that this is the build platform OS version! 24156 24157 OS_VERSION="`uname -r | ${SED} 's!\.! !g' | ${SED} 's!-! !g'`" 24158 OS_VERSION_MAJOR="`${ECHO} ${OS_VERSION} | ${CUT} -f 1 -d ' '`" 24159 OS_VERSION_MINOR="`${ECHO} ${OS_VERSION} | ${CUT} -f 2 -d ' '`" 24160 OS_VERSION_MICRO="`${ECHO} ${OS_VERSION} | ${CUT} -f 3 -d ' '`" 24161 24162 24163 24164 24165 24166 # Misc basic settings 24167 24168 24169 # Check whether --with-default-make-target was given. 24170 if test "${with_default_make_target+set}" = set; then : 24171 withval=$with_default_make_target; 24172 fi 24173 24174 if test "x$with_default_make_target" = "x" \ 24175 || test "x$with_default_make_target" = "xyes"; then 24176 DEFAULT_MAKE_TARGET="exploded-image" 24177 elif test "x$with_default_make_target" = "xno"; then 24178 as_fn_error $? "--without-default-make-target is not a valid option" "$LINENO" 5 24179 else 24180 DEFAULT_MAKE_TARGET="$with_default_make_target" 24181 fi 24182 24183 24184 24185 24186 ############################################################################### 24187 # 24188 # Determine OpenJDK variants, options and version numbers. 24189 # 24190 ############################################################################### 24191 24192 # We need build & target for this. 24193 24194 # Should we build a JDK without a graphical UI? 24195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking headless only" >&5 24196 $as_echo_n "checking headless only... " >&6; } 24197 # Check whether --enable-headless-only was given. 24198 if test "${enable_headless_only+set}" = set; then : 24199 enableval=$enable_headless_only; 24200 fi 24201 24202 24203 if test "x$enable_headless_only" = "xyes"; then 24204 ENABLE_HEADLESS_ONLY="true" 24205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 24206 $as_echo "yes" >&6; } 24207 elif test "x$enable_headless_only" = "xno"; then 24208 ENABLE_HEADLESS_ONLY="false" 24209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 24210 $as_echo "no" >&6; } 24211 elif test "x$enable_headless_only" = "x"; then 24212 ENABLE_HEADLESS_ONLY="false" 24213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 24214 $as_echo "no" >&6; } 24215 else 24216 as_fn_error $? "--enable-headless-only can only take yes or no" "$LINENO" 5 24217 fi 24218 24219 24220 24221 # Choose cacerts source file 24222 24223 # Check whether --with-cacerts-file was given. 24224 if test "${with_cacerts_file+set}" = set; then : 24225 withval=$with_cacerts_file; 24226 fi 24227 24228 if test "x$with_cacerts_file" != x; then 24229 CACERTS_FILE=$with_cacerts_file 24230 fi 24231 24232 24233 # Enable or disable unlimited crypto 24234 # Check whether --enable-unlimited-crypto was given. 24235 if test "${enable_unlimited_crypto+set}" = set; then : 24236 enableval=$enable_unlimited_crypto; 24237 else 24238 enable_unlimited_crypto=yes 24239 fi 24240 24241 if test "x$enable_unlimited_crypto" = "xyes"; then 24242 UNLIMITED_CRYPTO=true 24243 else 24244 UNLIMITED_CRYPTO=false 24245 fi 24246 24247 24248 # Should we build the serviceability agent (SA)? 24249 INCLUDE_SA=true 24250 if [[ " $JVM_VARIANTS " =~ " zero " ]] || [[ " $JVM_VARIANTS " =~ " zeroshark " ]] ; then 24251 INCLUDE_SA=false 24252 fi 24253 if test "x$OPENJDK_TARGET_OS" = xaix ; then 24254 INCLUDE_SA=false 24255 fi 24256 24257 24258 # Compress jars 24259 COMPRESS_JARS=false 24260 24261 24262 24263 # Setup default copyright year. Mostly overridden when building close to a new year. 24264 24265 # Check whether --with-copyright-year was given. 24266 if test "${with_copyright_year+set}" = set; then : 24267 withval=$with_copyright_year; 24268 fi 24269 24270 if test "x$with_copyright_year" = xyes; then 24271 as_fn_error $? "Copyright year must have a value" "$LINENO" 5 24272 elif test "x$with_copyright_year" != x; then 24273 COPYRIGHT_YEAR="$with_copyright_year" 24274 else 24275 COPYRIGHT_YEAR=`$DATE +'%Y'` 24276 fi 24277 24278 24279 24280 # Check whether --enable-keep-packaged-modules was given. 24281 if test "${enable_keep_packaged_modules+set}" = set; then : 24282 enableval=$enable_keep_packaged_modules; 24283 fi 24284 24285 24286 if test "x$enable_keep_packaged_modules" = "xyes"; then 24287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if packaged modules are kept" >&5 24288 $as_echo_n "checking if packaged modules are kept... " >&6; } 24289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 24290 $as_echo "yes" >&6; } 24291 JLINK_KEEP_PACKAGED_MODULES=true 24292 elif test "x$enable_keep_packaged_modules" = "xno"; then 24293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if packaged modules are kept" >&5 24294 $as_echo_n "checking if packaged modules are kept... " >&6; } 24295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 24296 $as_echo "no" >&6; } 24297 JLINK_KEEP_PACKAGED_MODULES=false 24298 elif test "x$enable_keep_packaged_modules" = "x"; then 24299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (default)" >&5 24300 $as_echo "yes (default)" >&6; } 24301 JLINK_KEEP_PACKAGED_MODULES=true 24302 else 24303 as_fn_error $? "--enable-keep-packaged-modules accepts no argument" "$LINENO" 5 24304 fi 24305 24306 24307 24308 24309 # Warn user that old version arguments are deprecated. 24310 24311 24312 # Check whether --with-milestone was given. 24313 if test "${with_milestone+set}" = set; then : 24314 withval=$with_milestone; { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Option --with-milestone is deprecated and will be ignored." >&5 24315 $as_echo "$as_me: WARNING: Option --with-milestone is deprecated and will be ignored." >&2;} 24316 fi 24317 24318 24319 24320 24321 # Check whether --with-update-version was given. 24322 if test "${with_update_version+set}" = set; then : 24323 withval=$with_update_version; { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Option --with-update-version is deprecated and will be ignored." >&5 24324 $as_echo "$as_me: WARNING: Option --with-update-version is deprecated and will be ignored." >&2;} 24325 fi 24326 24327 24328 24329 24330 # Check whether --with-user-release-suffix was given. 24331 if test "${with_user_release_suffix+set}" = set; then : 24332 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 24333 $as_echo "$as_me: WARNING: Option --with-user-release-suffix is deprecated and will be ignored." >&2;} 24334 fi 24335 24336 24337 24338 24339 # Check whether --with-build-number was given. 24340 if test "${with_build_number+set}" = set; then : 24341 withval=$with_build_number; { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Option --with-build-number is deprecated and will be ignored." >&5 24342 $as_echo "$as_me: WARNING: Option --with-build-number is deprecated and will be ignored." >&2;} 24343 fi 24344 24345 24346 24347 # Source the version numbers file 24348 . $AUTOCONF_DIR/version-numbers 24349 24350 # Some non-version number information is set in that file 24351 24352 24353 24354 24355 24356 24357 24358 24359 24360 # Override version from arguments 24361 24362 # If --with-version-string is set, process it first. It is possible to 24363 # override parts with more specific flags, since these are processed later. 24364 24365 # Check whether --with-version-string was given. 24366 if test "${with_version_string+set}" = set; then : 24367 withval=$with_version_string; 24368 fi 24369 24370 if test "x$with_version_string" = xyes; then 24371 as_fn_error $? "--with-version-string must have a value" "$LINENO" 5 24372 elif test "x$with_version_string" != x; then 24373 # Additional [] needed to keep m4 from mangling shell constructs. 24374 if [[ $with_version_string =~ ^([0-9]+)(\.([0-9]+))?(\.([0-9]+))?(\.([0-9]+))?(-([a-zA-Z]+))?((\+)([0-9]+)?(-([-a-zA-Z0-9.]+))?)?$ ]] ; then 24375 VERSION_MAJOR=${BASH_REMATCH[1]} 24376 VERSION_MINOR=${BASH_REMATCH[3]} 24377 VERSION_SECURITY=${BASH_REMATCH[5]} 24378 VERSION_PATCH=${BASH_REMATCH[7]} 24379 VERSION_PRE=${BASH_REMATCH[9]} 24380 version_plus_separator=${BASH_REMATCH[11]} 24381 VERSION_BUILD=${BASH_REMATCH[12]} 24382 VERSION_OPT=${BASH_REMATCH[14]} 24383 # Unspecified numerical fields are interpreted as 0. 24384 if test "x$VERSION_MINOR" = x; then 24385 VERSION_MINOR=0 24386 fi 24387 if test "x$VERSION_SECURITY" = x; then 24388 VERSION_SECURITY=0 24389 fi 24390 if test "x$VERSION_PATCH" = x; then 24391 VERSION_PATCH=0 24392 fi 24393 if test "x$version_plus_separator" != x \ 24394 && test "x$VERSION_BUILD$VERSION_OPT" = x; then 24395 as_fn_error $? "Version string contains + but both 'BUILD' and 'OPT' are missing" "$LINENO" 5 24396 fi 24397 # Stop the version part process from setting default values. 24398 # We still allow them to explicitly override though. 24399 NO_DEFAULT_VERSION_PARTS=true 24400 else 24401 as_fn_error $? "--with-version-string fails to parse as a valid version string: $with_version_string" "$LINENO" 5 24402 fi 24403 fi 24404 24405 24406 # Check whether --with-version-pre was given. 24407 if test "${with_version_pre+set}" = set; then : 24408 withval=$with_version_pre; with_version_pre_present=true 24409 else 24410 with_version_pre_present=false 24411 fi 24412 24413 24414 if test "x$with_version_pre_present" = xtrue; then 24415 if test "x$with_version_pre" = xyes; then 24416 as_fn_error $? "--with-version-pre must have a value" "$LINENO" 5 24417 elif test "x$with_version_pre" = xno; then 24418 # Interpret --without-* as empty string instead of the literal "no" 24419 VERSION_PRE= 24420 else 24421 # Only [a-zA-Z] is allowed in the VERSION_PRE. Outer [ ] to quote m4. 24422 VERSION_PRE=`$ECHO "$with_version_pre" | $TR -c -d '[a-z][A-Z]'` 24423 if test "x$VERSION_PRE" != "x$with_version_pre"; then 24424 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --with-version-pre value has been sanitized from '$with_version_pre' to '$VERSION_PRE'" >&5 24425 $as_echo "$as_me: WARNING: --with-version-pre value has been sanitized from '$with_version_pre' to '$VERSION_PRE'" >&2;} 24426 fi 24427 fi 24428 else 24429 if test "x$NO_DEFAULT_VERSION_PARTS" != xtrue; then 24430 # Default is to use "internal" as pre 24431 VERSION_PRE="internal" 24432 fi 24433 fi 24434 24435 24436 # Check whether --with-version-opt was given. 24437 if test "${with_version_opt+set}" = set; then : 24438 withval=$with_version_opt; with_version_opt_present=true 24439 else 24440 with_version_opt_present=false 24441 fi 24442 24443 24444 if test "x$with_version_opt_present" = xtrue; then 24445 if test "x$with_version_opt" = xyes; then 24446 as_fn_error $? "--with-version-opt must have a value" "$LINENO" 5 24447 elif test "x$with_version_opt" = xno; then 24448 # Interpret --without-* as empty string instead of the literal "no" 24449 VERSION_OPT= 24450 else 24451 # Only [-.a-zA-Z0-9] is allowed in the VERSION_OPT. Outer [ ] to quote m4. 24452 VERSION_OPT=`$ECHO "$with_version_opt" | $TR -c -d '[a-z][A-Z][0-9].-'` 24453 if test "x$VERSION_OPT" != "x$with_version_opt"; then 24454 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --with-version-opt value has been sanitized from '$with_version_opt' to '$VERSION_OPT'" >&5 24455 $as_echo "$as_me: WARNING: --with-version-opt value has been sanitized from '$with_version_opt' to '$VERSION_OPT'" >&2;} 24456 fi 24457 fi 24458 else 24459 if test "x$NO_DEFAULT_VERSION_PARTS" != xtrue; then 24460 # Default is to calculate a string like this 'adhoc.<username>.<base dir name>' 24461 # Outer [ ] to quote m4. 24462 basedirname=`$BASENAME "$TOPDIR" | $TR -d -c '[a-z][A-Z][0-9].-'` 24463 VERSION_OPT="adhoc.$USERNAME.$basedirname" 24464 fi 24465 fi 24466 24467 24468 # Check whether --with-version-build was given. 24469 if test "${with_version_build+set}" = set; then : 24470 withval=$with_version_build; with_version_build_present=true 24471 else 24472 with_version_build_present=false 24473 fi 24474 24475 24476 if test "x$with_version_build_present" = xtrue; then 24477 if test "x$with_version_build" = xyes; then 24478 as_fn_error $? "--with-version-build must have a value" "$LINENO" 5 24479 elif test "x$with_version_build" = xno; then 24480 # Interpret --without-* as empty string instead of the literal "no" 24481 VERSION_BUILD= 24482 elif test "x$with_version_build" = x; then 24483 VERSION_BUILD= 24484 else 24485 24486 # Additional [] needed to keep m4 from mangling shell constructs. 24487 if ! [[ "$with_version_build" =~ ^0*([1-9][0-9]*)|(0)$ ]] ; then 24488 as_fn_error $? "\"$with_version_build\" is not a valid numerical value for VERSION_BUILD" "$LINENO" 5 24489 fi 24490 # Extract the version number without leading zeros. 24491 cleaned_value=${BASH_REMATCH[1]} 24492 if test "x$cleaned_value" = x; then 24493 # Special case for zero 24494 cleaned_value=${BASH_REMATCH[2]} 24495 fi 24496 24497 if test $cleaned_value -gt 255; then 24498 as_fn_error $? "VERSION_BUILD is given as $with_version_build. This is greater than 255 which is not allowed." "$LINENO" 5 24499 fi 24500 if test "x$cleaned_value" != "x$with_version_build"; then 24501 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Value for VERSION_BUILD has been sanitized from '$with_version_build' to '$cleaned_value'" >&5 24502 $as_echo "$as_me: WARNING: Value for VERSION_BUILD has been sanitized from '$with_version_build' to '$cleaned_value'" >&2;} 24503 fi 24504 VERSION_BUILD=$cleaned_value 24505 24506 fi 24507 else 24508 if test "x$NO_DEFAULT_VERSION_PARTS" != xtrue; then 24509 # Default is to not have a build number. 24510 VERSION_BUILD="" 24511 # FIXME: Until all code can cope with an empty VERSION_BUILD, set it to 0. 24512 VERSION_BUILD=0 24513 fi 24514 fi 24515 24516 24517 # Check whether --with-version-major was given. 24518 if test "${with_version_major+set}" = set; then : 24519 withval=$with_version_major; with_version_major_present=true 24520 else 24521 with_version_major_present=false 24522 fi 24523 24524 24525 if test "x$with_version_major_present" = xtrue; then 24526 if test "x$with_version_major" = xyes; then 24527 as_fn_error $? "--with-version-major must have a value" "$LINENO" 5 24528 else 24529 24530 # Additional [] needed to keep m4 from mangling shell constructs. 24531 if ! [[ "$with_version_major" =~ ^0*([1-9][0-9]*)|(0)$ ]] ; then 24532 as_fn_error $? "\"$with_version_major\" is not a valid numerical value for VERSION_MAJOR" "$LINENO" 5 24533 fi 24534 # Extract the version number without leading zeros. 24535 cleaned_value=${BASH_REMATCH[1]} 24536 if test "x$cleaned_value" = x; then 24537 # Special case for zero 24538 cleaned_value=${BASH_REMATCH[2]} 24539 fi 24540 24541 if test $cleaned_value -gt 255; then 24542 as_fn_error $? "VERSION_MAJOR is given as $with_version_major. This is greater than 255 which is not allowed." "$LINENO" 5 24543 fi 24544 if test "x$cleaned_value" != "x$with_version_major"; then 24545 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Value for VERSION_MAJOR has been sanitized from '$with_version_major' to '$cleaned_value'" >&5 24546 $as_echo "$as_me: WARNING: Value for VERSION_MAJOR has been sanitized from '$with_version_major' to '$cleaned_value'" >&2;} 24547 fi 24548 VERSION_MAJOR=$cleaned_value 24549 24550 fi 24551 else 24552 if test "x$NO_DEFAULT_VERSION_PARTS" != xtrue; then 24553 # Default is to get value from version-numbers 24554 VERSION_MAJOR="$DEFAULT_VERSION_MAJOR" 24555 fi 24556 fi 24557 24558 24559 # Check whether --with-version-minor was given. 24560 if test "${with_version_minor+set}" = set; then : 24561 withval=$with_version_minor; with_version_minor_present=true 24562 else 24563 with_version_minor_present=false 24564 fi 24565 24566 24567 if test "x$with_version_minor_present" = xtrue; then 24568 if test "x$with_version_minor" = xyes; then 24569 as_fn_error $? "--with-version-minor must have a value" "$LINENO" 5 24570 elif test "x$with_version_minor" = xno; then 24571 # Interpret --without-* as empty string (i.e. 0) instead of the literal "no" 24572 VERSION_MINOR=0 24573 elif test "x$with_version_minor" = x; then 24574 VERSION_MINOR=0 24575 else 24576 24577 # Additional [] needed to keep m4 from mangling shell constructs. 24578 if ! [[ "$with_version_minor" =~ ^0*([1-9][0-9]*)|(0)$ ]] ; then 24579 as_fn_error $? "\"$with_version_minor\" is not a valid numerical value for VERSION_MINOR" "$LINENO" 5 24580 fi 24581 # Extract the version number without leading zeros. 24582 cleaned_value=${BASH_REMATCH[1]} 24583 if test "x$cleaned_value" = x; then 24584 # Special case for zero 24585 cleaned_value=${BASH_REMATCH[2]} 24586 fi 24587 24588 if test $cleaned_value -gt 255; then 24589 as_fn_error $? "VERSION_MINOR is given as $with_version_minor. This is greater than 255 which is not allowed." "$LINENO" 5 24590 fi 24591 if test "x$cleaned_value" != "x$with_version_minor"; then 24592 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Value for VERSION_MINOR has been sanitized from '$with_version_minor' to '$cleaned_value'" >&5 24593 $as_echo "$as_me: WARNING: Value for VERSION_MINOR has been sanitized from '$with_version_minor' to '$cleaned_value'" >&2;} 24594 fi 24595 VERSION_MINOR=$cleaned_value 24596 24597 fi 24598 else 24599 if test "x$NO_DEFAULT_VERSION_PARTS" != xtrue; then 24600 # Default is 0, if unspecified 24601 VERSION_MINOR=0 24602 fi 24603 fi 24604 24605 24606 # Check whether --with-version-security was given. 24607 if test "${with_version_security+set}" = set; then : 24608 withval=$with_version_security; with_version_security_present=true 24609 else 24610 with_version_security_present=false 24611 fi 24612 24613 24614 if test "x$with_version_security_present" = xtrue; then 24615 if test "x$with_version_security" = xyes; then 24616 as_fn_error $? "--with-version-security must have a value" "$LINENO" 5 24617 elif test "x$with_version_security" = xno; then 24618 # Interpret --without-* as empty string (i.e. 0) instead of the literal "no" 24619 VERSION_SECURITY=0 24620 elif test "x$with_version_security" = x; then 24621 VERSION_SECURITY=0 24622 else 24623 24624 # Additional [] needed to keep m4 from mangling shell constructs. 24625 if ! [[ "$with_version_security" =~ ^0*([1-9][0-9]*)|(0)$ ]] ; then 24626 as_fn_error $? "\"$with_version_security\" is not a valid numerical value for VERSION_SECURITY" "$LINENO" 5 24627 fi 24628 # Extract the version number without leading zeros. 24629 cleaned_value=${BASH_REMATCH[1]} 24630 if test "x$cleaned_value" = x; then 24631 # Special case for zero 24632 cleaned_value=${BASH_REMATCH[2]} 24633 fi 24634 24635 if test $cleaned_value -gt 255; then 24636 as_fn_error $? "VERSION_SECURITY is given as $with_version_security. This is greater than 255 which is not allowed." "$LINENO" 5 24637 fi 24638 if test "x$cleaned_value" != "x$with_version_security"; then 24639 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Value for VERSION_SECURITY has been sanitized from '$with_version_security' to '$cleaned_value'" >&5 24640 $as_echo "$as_me: WARNING: Value for VERSION_SECURITY has been sanitized from '$with_version_security' to '$cleaned_value'" >&2;} 24641 fi 24642 VERSION_SECURITY=$cleaned_value 24643 24644 fi 24645 else 24646 if test "x$NO_DEFAULT_VERSION_PARTS" != xtrue; then 24647 # Default is 0, if unspecified 24648 VERSION_SECURITY=0 24649 fi 24650 fi 24651 24652 24653 # Check whether --with-version-patch was given. 24654 if test "${with_version_patch+set}" = set; then : 24655 withval=$with_version_patch; with_version_patch_present=true 24656 else 24657 with_version_patch_present=false 24658 fi 24659 24660 24661 if test "x$with_version_patch_present" = xtrue; then 24662 if test "x$with_version_patch" = xyes; then 24663 as_fn_error $? "--with-version-patch must have a value" "$LINENO" 5 24664 elif test "x$with_version_patch" = xno; then 24665 # Interpret --without-* as empty string (i.e. 0) instead of the literal "no" 24666 VERSION_PATCH=0 24667 elif test "x$with_version_patch" = x; then 24668 VERSION_PATCH=0 24669 else 24670 24671 # Additional [] needed to keep m4 from mangling shell constructs. 24672 if ! [[ "$with_version_patch" =~ ^0*([1-9][0-9]*)|(0)$ ]] ; then 24673 as_fn_error $? "\"$with_version_patch\" is not a valid numerical value for VERSION_PATCH" "$LINENO" 5 24674 fi 24675 # Extract the version number without leading zeros. 24676 cleaned_value=${BASH_REMATCH[1]} 24677 if test "x$cleaned_value" = x; then 24678 # Special case for zero 24679 cleaned_value=${BASH_REMATCH[2]} 24680 fi 24681 24682 if test $cleaned_value -gt 255; then 24683 as_fn_error $? "VERSION_PATCH is given as $with_version_patch. This is greater than 255 which is not allowed." "$LINENO" 5 24684 fi 24685 if test "x$cleaned_value" != "x$with_version_patch"; then 24686 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Value for VERSION_PATCH has been sanitized from '$with_version_patch' to '$cleaned_value'" >&5 24687 $as_echo "$as_me: WARNING: Value for VERSION_PATCH has been sanitized from '$with_version_patch' to '$cleaned_value'" >&2;} 24688 fi 24689 VERSION_PATCH=$cleaned_value 24690 24691 fi 24692 else 24693 if test "x$NO_DEFAULT_VERSION_PARTS" != xtrue; then 24694 # Default is 0, if unspecified 24695 VERSION_PATCH=0 24696 fi 24697 fi 24698 24699 # Calculate derived version properties 24700 24701 # Set VERSION_IS_GA based on if VERSION_PRE has a value 24702 if test "x$VERSION_PRE" = x; then 24703 VERSION_IS_GA=true 24704 else 24705 VERSION_IS_GA=false 24706 fi 24707 24708 # VERSION_NUMBER but always with exactly 4 positions, with 0 for empty positions. 24709 VERSION_NUMBER_FOUR_POSITIONS=$VERSION_MAJOR.$VERSION_MINOR.$VERSION_SECURITY.$VERSION_PATCH 24710 24711 stripped_version_number=$VERSION_NUMBER_FOUR_POSITIONS 24712 # Strip trailing zeroes from stripped_version_number 24713 for i in 1 2 3 ; do stripped_version_number=${stripped_version_number%.0} ; done 24714 VERSION_NUMBER=$stripped_version_number 24715 24716 # The complete version string, with additional build information 24717 if test "x$VERSION_BUILD$VERSION_OPT" = x; then 24718 VERSION_STRING=$VERSION_NUMBER${VERSION_PRE:+-$VERSION_PRE} 24719 else 24720 # If either build or opt is set, we need a + separator 24721 VERSION_STRING=$VERSION_NUMBER${VERSION_PRE:+-$VERSION_PRE}+$VERSION_BUILD${VERSION_OPT:+-$VERSION_OPT} 24722 fi 24723 24724 # The short version string, just VERSION_NUMBER and PRE, if present. 24725 VERSION_SHORT=$VERSION_NUMBER${VERSION_PRE:+-$VERSION_PRE} 24726 24727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for version string" >&5 24728 $as_echo_n "checking for version string... " >&6; } 24729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $VERSION_STRING" >&5 24730 $as_echo "$VERSION_STRING" >&6; } 24731 24732 24733 24734 24735 24736 24737 24738 24739 24740 24741 24742 24743 24744 24745 24746 ############################################################################### 24747 # 24748 # Setup BootJDK, used to bootstrap the build. 24749 # 24750 ############################################################################### 24751 24752 24753 BOOT_JDK_FOUND=no 24754 24755 # Check whether --with-boot-jdk was given. 24756 if test "${with_boot_jdk+set}" = set; then : 24757 withval=$with_boot_jdk; 24758 fi 24759 24760 24761 # We look for the Boot JDK through various means, going from more certain to 24762 # more of a guess-work. After each test, BOOT_JDK_FOUND is set to "yes" if 24763 # we detected something (if so, the path to the jdk is in BOOT_JDK). But we 24764 # must check if this is indeed valid; otherwise we'll continue looking. 24765 24766 # Test: Is bootjdk explicitly set by command line arguments? 24767 24768 if test "x$BOOT_JDK_FOUND" = xno; then 24769 # Now execute the test 24770 24771 if test "x$with_boot_jdk" != x; then 24772 BOOT_JDK=$with_boot_jdk 24773 BOOT_JDK_FOUND=maybe 24774 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using configure arguments" >&5 24775 $as_echo "$as_me: Found potential Boot JDK using configure arguments" >&6;} 24776 fi 24777 24778 24779 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 24780 if test "x$BOOT_JDK_FOUND" = xmaybe; then 24781 # Do we have a bin/java? 24782 if test ! -x "$BOOT_JDK/bin/java"; then 24783 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 24784 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 24785 BOOT_JDK_FOUND=no 24786 else 24787 # Do we have a bin/javac? 24788 if test ! -x "$BOOT_JDK/bin/javac"; then 24789 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 24790 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 24791 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 24792 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 24793 BOOT_JDK_FOUND=no 24794 else 24795 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 24796 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $HEAD -n 1` 24797 24798 # Extra M4 quote needed to protect [] in grep expression. 24799 FOUND_CORRECT_VERSION=`$ECHO $BOOT_JDK_VERSION | $EGREP '\"9([\.+-].*)?\"|(1\.[89]\.)'` 24800 if test "x$FOUND_CORRECT_VERSION" = x; then 24801 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 24802 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 24803 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5 24804 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;} 24805 BOOT_JDK_FOUND=no 24806 else 24807 # We're done! :-) 24808 BOOT_JDK_FOUND=yes 24809 24810 # Only process if variable expands to non-empty 24811 24812 if test "x$BOOT_JDK" != x; then 24813 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 24814 24815 # Input might be given as Windows format, start by converting to 24816 # unix format. 24817 path="$BOOT_JDK" 24818 new_path=`$CYGPATH -u "$path"` 24819 24820 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 24821 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 24822 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 24823 # "foo.exe" is OK but "foo" is an error. 24824 # 24825 # This test is therefore slightly more accurate than "test -f" to check for file precense. 24826 # It is also a way to make sure we got the proper file name for the real test later on. 24827 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 24828 if test "x$test_shortpath" = x; then 24829 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 24830 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 24831 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 24832 fi 24833 24834 # Call helper function which possibly converts this using DOS-style short mode. 24835 # If so, the updated path is stored in $new_path. 24836 24837 input_path="$new_path" 24838 # Check if we need to convert this using DOS-style short mode. If the path 24839 # contains just simple characters, use it. Otherwise (spaces, weird characters), 24840 # take no chances and rewrite it. 24841 # Note: m4 eats our [], so we need to use [ and ] instead. 24842 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 24843 if test "x$has_forbidden_chars" != x; then 24844 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 24845 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 24846 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 24847 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 24848 # Going to short mode and back again did indeed matter. Since short mode is 24849 # case insensitive, let's make it lowercase to improve readability. 24850 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 24851 # Now convert it back to Unix-style (cygpath) 24852 input_path=`$CYGPATH -u "$shortmode_path"` 24853 new_path="$input_path" 24854 fi 24855 fi 24856 24857 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 24858 if test "x$test_cygdrive_prefix" = x; then 24859 # As a simple fix, exclude /usr/bin since it's not a real path. 24860 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 24861 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 24862 # a path prefixed by /cygdrive for fixpath to work. 24863 new_path="$CYGWIN_ROOT_PATH$input_path" 24864 fi 24865 fi 24866 24867 24868 if test "x$path" != "x$new_path"; then 24869 BOOT_JDK="$new_path" 24870 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 24871 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 24872 fi 24873 24874 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 24875 24876 path="$BOOT_JDK" 24877 has_colon=`$ECHO $path | $GREP ^.:` 24878 new_path="$path" 24879 if test "x$has_colon" = x; then 24880 # Not in mixed or Windows style, start by that. 24881 new_path=`cmd //c echo $path` 24882 fi 24883 24884 24885 input_path="$new_path" 24886 # Check if we need to convert this using DOS-style short mode. If the path 24887 # contains just simple characters, use it. Otherwise (spaces, weird characters), 24888 # take no chances and rewrite it. 24889 # Note: m4 eats our [], so we need to use [ and ] instead. 24890 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 24891 if test "x$has_forbidden_chars" != x; then 24892 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 24893 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 24894 fi 24895 24896 24897 windows_path="$new_path" 24898 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 24899 unix_path=`$CYGPATH -u "$windows_path"` 24900 new_path="$unix_path" 24901 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 24902 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 24903 new_path="$unix_path" 24904 fi 24905 24906 if test "x$path" != "x$new_path"; then 24907 BOOT_JDK="$new_path" 24908 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 24909 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 24910 fi 24911 24912 # Save the first 10 bytes of this path to the storage, so fixpath can work. 24913 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 24914 24915 else 24916 # We're on a unix platform. Hooray! :) 24917 path="$BOOT_JDK" 24918 has_space=`$ECHO "$path" | $GREP " "` 24919 if test "x$has_space" != x; then 24920 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 24921 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 24922 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 24923 fi 24924 24925 # Use eval to expand a potential ~ 24926 eval path="$path" 24927 if test ! -f "$path" && test ! -d "$path"; then 24928 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 24929 fi 24930 24931 if test -d "$path"; then 24932 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 24933 else 24934 dir="`$DIRNAME "$path"`" 24935 base="`$BASENAME "$path"`" 24936 BOOT_JDK="`cd "$dir"; $THEPWDCMD -L`/$base" 24937 fi 24938 fi 24939 fi 24940 24941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 24942 $as_echo_n "checking for Boot JDK... " >&6; } 24943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 24944 $as_echo "$BOOT_JDK" >&6; } 24945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 24946 $as_echo_n "checking Boot JDK version... " >&6; } 24947 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 24948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 24949 $as_echo "$BOOT_JDK_VERSION" >&6; } 24950 fi # end check jdk version 24951 fi # end check javac 24952 fi # end check java 24953 fi # end check boot jdk found 24954 fi 24955 24956 if test "x$with_boot_jdk" != x && test "x$BOOT_JDK_FOUND" = xno; then 24957 # Having specified an argument which is incorrect will produce an instant failure; 24958 # we should not go on looking 24959 as_fn_error $? "The path given by --with-boot-jdk does not contain a valid Boot JDK" "$LINENO" 5 24960 fi 24961 24962 # Test: On MacOS X, can we find a boot jdk using /usr/libexec/java_home? 24963 24964 if test "x$BOOT_JDK_FOUND" = xno; then 24965 # Now execute the test 24966 24967 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 24968 # First check at user selected default 24969 24970 if test "x$BOOT_JDK_FOUND" = xno; then 24971 # Now execute the test 24972 24973 if test -x /usr/libexec/java_home; then 24974 BOOT_JDK=`/usr/libexec/java_home ` 24975 BOOT_JDK_FOUND=maybe 24976 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using /usr/libexec/java_home " >&5 24977 $as_echo "$as_me: Found potential Boot JDK using /usr/libexec/java_home " >&6;} 24978 fi 24979 24980 24981 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 24982 if test "x$BOOT_JDK_FOUND" = xmaybe; then 24983 # Do we have a bin/java? 24984 if test ! -x "$BOOT_JDK/bin/java"; then 24985 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 24986 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 24987 BOOT_JDK_FOUND=no 24988 else 24989 # Do we have a bin/javac? 24990 if test ! -x "$BOOT_JDK/bin/javac"; then 24991 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 24992 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 24993 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 24994 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 24995 BOOT_JDK_FOUND=no 24996 else 24997 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 24998 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $HEAD -n 1` 24999 25000 # Extra M4 quote needed to protect [] in grep expression. 25001 FOUND_CORRECT_VERSION=`$ECHO $BOOT_JDK_VERSION | $EGREP '\"9([\.+-].*)?\"|(1\.[89]\.)'` 25002 if test "x$FOUND_CORRECT_VERSION" = x; then 25003 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 25004 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 25005 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5 25006 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;} 25007 BOOT_JDK_FOUND=no 25008 else 25009 # We're done! :-) 25010 BOOT_JDK_FOUND=yes 25011 25012 # Only process if variable expands to non-empty 25013 25014 if test "x$BOOT_JDK" != x; then 25015 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 25016 25017 # Input might be given as Windows format, start by converting to 25018 # unix format. 25019 path="$BOOT_JDK" 25020 new_path=`$CYGPATH -u "$path"` 25021 25022 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 25023 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 25024 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 25025 # "foo.exe" is OK but "foo" is an error. 25026 # 25027 # This test is therefore slightly more accurate than "test -f" to check for file precense. 25028 # It is also a way to make sure we got the proper file name for the real test later on. 25029 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 25030 if test "x$test_shortpath" = x; then 25031 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 25032 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 25033 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 25034 fi 25035 25036 # Call helper function which possibly converts this using DOS-style short mode. 25037 # If so, the updated path is stored in $new_path. 25038 25039 input_path="$new_path" 25040 # Check if we need to convert this using DOS-style short mode. If the path 25041 # contains just simple characters, use it. Otherwise (spaces, weird characters), 25042 # take no chances and rewrite it. 25043 # Note: m4 eats our [], so we need to use [ and ] instead. 25044 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 25045 if test "x$has_forbidden_chars" != x; then 25046 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 25047 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 25048 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 25049 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 25050 # Going to short mode and back again did indeed matter. Since short mode is 25051 # case insensitive, let's make it lowercase to improve readability. 25052 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 25053 # Now convert it back to Unix-style (cygpath) 25054 input_path=`$CYGPATH -u "$shortmode_path"` 25055 new_path="$input_path" 25056 fi 25057 fi 25058 25059 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 25060 if test "x$test_cygdrive_prefix" = x; then 25061 # As a simple fix, exclude /usr/bin since it's not a real path. 25062 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 25063 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 25064 # a path prefixed by /cygdrive for fixpath to work. 25065 new_path="$CYGWIN_ROOT_PATH$input_path" 25066 fi 25067 fi 25068 25069 25070 if test "x$path" != "x$new_path"; then 25071 BOOT_JDK="$new_path" 25072 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 25073 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 25074 fi 25075 25076 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 25077 25078 path="$BOOT_JDK" 25079 has_colon=`$ECHO $path | $GREP ^.:` 25080 new_path="$path" 25081 if test "x$has_colon" = x; then 25082 # Not in mixed or Windows style, start by that. 25083 new_path=`cmd //c echo $path` 25084 fi 25085 25086 25087 input_path="$new_path" 25088 # Check if we need to convert this using DOS-style short mode. If the path 25089 # contains just simple characters, use it. Otherwise (spaces, weird characters), 25090 # take no chances and rewrite it. 25091 # Note: m4 eats our [], so we need to use [ and ] instead. 25092 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 25093 if test "x$has_forbidden_chars" != x; then 25094 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 25095 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 25096 fi 25097 25098 25099 windows_path="$new_path" 25100 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 25101 unix_path=`$CYGPATH -u "$windows_path"` 25102 new_path="$unix_path" 25103 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 25104 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 25105 new_path="$unix_path" 25106 fi 25107 25108 if test "x$path" != "x$new_path"; then 25109 BOOT_JDK="$new_path" 25110 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 25111 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 25112 fi 25113 25114 # Save the first 10 bytes of this path to the storage, so fixpath can work. 25115 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 25116 25117 else 25118 # We're on a unix platform. Hooray! :) 25119 path="$BOOT_JDK" 25120 has_space=`$ECHO "$path" | $GREP " "` 25121 if test "x$has_space" != x; then 25122 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 25123 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 25124 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 25125 fi 25126 25127 # Use eval to expand a potential ~ 25128 eval path="$path" 25129 if test ! -f "$path" && test ! -d "$path"; then 25130 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 25131 fi 25132 25133 if test -d "$path"; then 25134 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 25135 else 25136 dir="`$DIRNAME "$path"`" 25137 base="`$BASENAME "$path"`" 25138 BOOT_JDK="`cd "$dir"; $THEPWDCMD -L`/$base" 25139 fi 25140 fi 25141 fi 25142 25143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 25144 $as_echo_n "checking for Boot JDK... " >&6; } 25145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 25146 $as_echo "$BOOT_JDK" >&6; } 25147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 25148 $as_echo_n "checking Boot JDK version... " >&6; } 25149 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 25150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 25151 $as_echo "$BOOT_JDK_VERSION" >&6; } 25152 fi # end check jdk version 25153 fi # end check javac 25154 fi # end check java 25155 fi # end check boot jdk found 25156 fi 25157 25158 # If that did not work out (e.g. too old), try explicit versions instead 25159 25160 if test "x$BOOT_JDK_FOUND" = xno; then 25161 # Now execute the test 25162 25163 if test -x /usr/libexec/java_home; then 25164 BOOT_JDK=`/usr/libexec/java_home -v 1.9` 25165 BOOT_JDK_FOUND=maybe 25166 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using /usr/libexec/java_home -v 1.9" >&5 25167 $as_echo "$as_me: Found potential Boot JDK using /usr/libexec/java_home -v 1.9" >&6;} 25168 fi 25169 25170 25171 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 25172 if test "x$BOOT_JDK_FOUND" = xmaybe; then 25173 # Do we have a bin/java? 25174 if test ! -x "$BOOT_JDK/bin/java"; then 25175 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 25176 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 25177 BOOT_JDK_FOUND=no 25178 else 25179 # Do we have a bin/javac? 25180 if test ! -x "$BOOT_JDK/bin/javac"; then 25181 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 25182 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 25183 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 25184 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 25185 BOOT_JDK_FOUND=no 25186 else 25187 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 25188 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $HEAD -n 1` 25189 25190 # Extra M4 quote needed to protect [] in grep expression. 25191 FOUND_CORRECT_VERSION=`$ECHO $BOOT_JDK_VERSION | $EGREP '\"9([\.+-].*)?\"|(1\.[89]\.)'` 25192 if test "x$FOUND_CORRECT_VERSION" = x; then 25193 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 25194 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 25195 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5 25196 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;} 25197 BOOT_JDK_FOUND=no 25198 else 25199 # We're done! :-) 25200 BOOT_JDK_FOUND=yes 25201 25202 # Only process if variable expands to non-empty 25203 25204 if test "x$BOOT_JDK" != x; then 25205 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 25206 25207 # Input might be given as Windows format, start by converting to 25208 # unix format. 25209 path="$BOOT_JDK" 25210 new_path=`$CYGPATH -u "$path"` 25211 25212 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 25213 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 25214 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 25215 # "foo.exe" is OK but "foo" is an error. 25216 # 25217 # This test is therefore slightly more accurate than "test -f" to check for file precense. 25218 # It is also a way to make sure we got the proper file name for the real test later on. 25219 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 25220 if test "x$test_shortpath" = x; then 25221 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 25222 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 25223 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 25224 fi 25225 25226 # Call helper function which possibly converts this using DOS-style short mode. 25227 # If so, the updated path is stored in $new_path. 25228 25229 input_path="$new_path" 25230 # Check if we need to convert this using DOS-style short mode. If the path 25231 # contains just simple characters, use it. Otherwise (spaces, weird characters), 25232 # take no chances and rewrite it. 25233 # Note: m4 eats our [], so we need to use [ and ] instead. 25234 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 25235 if test "x$has_forbidden_chars" != x; then 25236 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 25237 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 25238 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 25239 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 25240 # Going to short mode and back again did indeed matter. Since short mode is 25241 # case insensitive, let's make it lowercase to improve readability. 25242 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 25243 # Now convert it back to Unix-style (cygpath) 25244 input_path=`$CYGPATH -u "$shortmode_path"` 25245 new_path="$input_path" 25246 fi 25247 fi 25248 25249 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 25250 if test "x$test_cygdrive_prefix" = x; then 25251 # As a simple fix, exclude /usr/bin since it's not a real path. 25252 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 25253 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 25254 # a path prefixed by /cygdrive for fixpath to work. 25255 new_path="$CYGWIN_ROOT_PATH$input_path" 25256 fi 25257 fi 25258 25259 25260 if test "x$path" != "x$new_path"; then 25261 BOOT_JDK="$new_path" 25262 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 25263 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 25264 fi 25265 25266 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 25267 25268 path="$BOOT_JDK" 25269 has_colon=`$ECHO $path | $GREP ^.:` 25270 new_path="$path" 25271 if test "x$has_colon" = x; then 25272 # Not in mixed or Windows style, start by that. 25273 new_path=`cmd //c echo $path` 25274 fi 25275 25276 25277 input_path="$new_path" 25278 # Check if we need to convert this using DOS-style short mode. If the path 25279 # contains just simple characters, use it. Otherwise (spaces, weird characters), 25280 # take no chances and rewrite it. 25281 # Note: m4 eats our [], so we need to use [ and ] instead. 25282 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 25283 if test "x$has_forbidden_chars" != x; then 25284 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 25285 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 25286 fi 25287 25288 25289 windows_path="$new_path" 25290 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 25291 unix_path=`$CYGPATH -u "$windows_path"` 25292 new_path="$unix_path" 25293 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 25294 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 25295 new_path="$unix_path" 25296 fi 25297 25298 if test "x$path" != "x$new_path"; then 25299 BOOT_JDK="$new_path" 25300 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 25301 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 25302 fi 25303 25304 # Save the first 10 bytes of this path to the storage, so fixpath can work. 25305 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 25306 25307 else 25308 # We're on a unix platform. Hooray! :) 25309 path="$BOOT_JDK" 25310 has_space=`$ECHO "$path" | $GREP " "` 25311 if test "x$has_space" != x; then 25312 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 25313 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 25314 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 25315 fi 25316 25317 # Use eval to expand a potential ~ 25318 eval path="$path" 25319 if test ! -f "$path" && test ! -d "$path"; then 25320 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 25321 fi 25322 25323 if test -d "$path"; then 25324 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 25325 else 25326 dir="`$DIRNAME "$path"`" 25327 base="`$BASENAME "$path"`" 25328 BOOT_JDK="`cd "$dir"; $THEPWDCMD -L`/$base" 25329 fi 25330 fi 25331 fi 25332 25333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 25334 $as_echo_n "checking for Boot JDK... " >&6; } 25335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 25336 $as_echo "$BOOT_JDK" >&6; } 25337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 25338 $as_echo_n "checking Boot JDK version... " >&6; } 25339 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 25340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 25341 $as_echo "$BOOT_JDK_VERSION" >&6; } 25342 fi # end check jdk version 25343 fi # end check javac 25344 fi # end check java 25345 fi # end check boot jdk found 25346 fi 25347 25348 25349 if test "x$BOOT_JDK_FOUND" = xno; then 25350 # Now execute the test 25351 25352 if test -x /usr/libexec/java_home; then 25353 BOOT_JDK=`/usr/libexec/java_home -v 1.8` 25354 BOOT_JDK_FOUND=maybe 25355 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using /usr/libexec/java_home -v 1.8" >&5 25356 $as_echo "$as_me: Found potential Boot JDK using /usr/libexec/java_home -v 1.8" >&6;} 25357 fi 25358 25359 25360 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 25361 if test "x$BOOT_JDK_FOUND" = xmaybe; then 25362 # Do we have a bin/java? 25363 if test ! -x "$BOOT_JDK/bin/java"; then 25364 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 25365 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 25366 BOOT_JDK_FOUND=no 25367 else 25368 # Do we have a bin/javac? 25369 if test ! -x "$BOOT_JDK/bin/javac"; then 25370 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 25371 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 25372 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 25373 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 25374 BOOT_JDK_FOUND=no 25375 else 25376 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 25377 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $HEAD -n 1` 25378 25379 # Extra M4 quote needed to protect [] in grep expression. 25380 FOUND_CORRECT_VERSION=`$ECHO $BOOT_JDK_VERSION | $EGREP '\"9([\.+-].*)?\"|(1\.[89]\.)'` 25381 if test "x$FOUND_CORRECT_VERSION" = x; then 25382 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 25383 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 25384 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5 25385 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;} 25386 BOOT_JDK_FOUND=no 25387 else 25388 # We're done! :-) 25389 BOOT_JDK_FOUND=yes 25390 25391 # Only process if variable expands to non-empty 25392 25393 if test "x$BOOT_JDK" != x; then 25394 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 25395 25396 # Input might be given as Windows format, start by converting to 25397 # unix format. 25398 path="$BOOT_JDK" 25399 new_path=`$CYGPATH -u "$path"` 25400 25401 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 25402 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 25403 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 25404 # "foo.exe" is OK but "foo" is an error. 25405 # 25406 # This test is therefore slightly more accurate than "test -f" to check for file precense. 25407 # It is also a way to make sure we got the proper file name for the real test later on. 25408 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 25409 if test "x$test_shortpath" = x; then 25410 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 25411 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 25412 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 25413 fi 25414 25415 # Call helper function which possibly converts this using DOS-style short mode. 25416 # If so, the updated path is stored in $new_path. 25417 25418 input_path="$new_path" 25419 # Check if we need to convert this using DOS-style short mode. If the path 25420 # contains just simple characters, use it. Otherwise (spaces, weird characters), 25421 # take no chances and rewrite it. 25422 # Note: m4 eats our [], so we need to use [ and ] instead. 25423 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 25424 if test "x$has_forbidden_chars" != x; then 25425 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 25426 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 25427 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 25428 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 25429 # Going to short mode and back again did indeed matter. Since short mode is 25430 # case insensitive, let's make it lowercase to improve readability. 25431 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 25432 # Now convert it back to Unix-style (cygpath) 25433 input_path=`$CYGPATH -u "$shortmode_path"` 25434 new_path="$input_path" 25435 fi 25436 fi 25437 25438 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 25439 if test "x$test_cygdrive_prefix" = x; then 25440 # As a simple fix, exclude /usr/bin since it's not a real path. 25441 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 25442 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 25443 # a path prefixed by /cygdrive for fixpath to work. 25444 new_path="$CYGWIN_ROOT_PATH$input_path" 25445 fi 25446 fi 25447 25448 25449 if test "x$path" != "x$new_path"; then 25450 BOOT_JDK="$new_path" 25451 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 25452 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 25453 fi 25454 25455 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 25456 25457 path="$BOOT_JDK" 25458 has_colon=`$ECHO $path | $GREP ^.:` 25459 new_path="$path" 25460 if test "x$has_colon" = x; then 25461 # Not in mixed or Windows style, start by that. 25462 new_path=`cmd //c echo $path` 25463 fi 25464 25465 25466 input_path="$new_path" 25467 # Check if we need to convert this using DOS-style short mode. If the path 25468 # contains just simple characters, use it. Otherwise (spaces, weird characters), 25469 # take no chances and rewrite it. 25470 # Note: m4 eats our [], so we need to use [ and ] instead. 25471 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 25472 if test "x$has_forbidden_chars" != x; then 25473 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 25474 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 25475 fi 25476 25477 25478 windows_path="$new_path" 25479 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 25480 unix_path=`$CYGPATH -u "$windows_path"` 25481 new_path="$unix_path" 25482 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 25483 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 25484 new_path="$unix_path" 25485 fi 25486 25487 if test "x$path" != "x$new_path"; then 25488 BOOT_JDK="$new_path" 25489 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 25490 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 25491 fi 25492 25493 # Save the first 10 bytes of this path to the storage, so fixpath can work. 25494 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 25495 25496 else 25497 # We're on a unix platform. Hooray! :) 25498 path="$BOOT_JDK" 25499 has_space=`$ECHO "$path" | $GREP " "` 25500 if test "x$has_space" != x; then 25501 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 25502 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 25503 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 25504 fi 25505 25506 # Use eval to expand a potential ~ 25507 eval path="$path" 25508 if test ! -f "$path" && test ! -d "$path"; then 25509 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 25510 fi 25511 25512 if test -d "$path"; then 25513 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 25514 else 25515 dir="`$DIRNAME "$path"`" 25516 base="`$BASENAME "$path"`" 25517 BOOT_JDK="`cd "$dir"; $THEPWDCMD -L`/$base" 25518 fi 25519 fi 25520 fi 25521 25522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 25523 $as_echo_n "checking for Boot JDK... " >&6; } 25524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 25525 $as_echo "$BOOT_JDK" >&6; } 25526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 25527 $as_echo_n "checking Boot JDK version... " >&6; } 25528 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 25529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 25530 $as_echo "$BOOT_JDK_VERSION" >&6; } 25531 fi # end check jdk version 25532 fi # end check javac 25533 fi # end check java 25534 fi # end check boot jdk found 25535 fi 25536 25537 25538 if test "x$BOOT_JDK_FOUND" = xno; then 25539 # Now execute the test 25540 25541 if test -x /usr/libexec/java_home; then 25542 BOOT_JDK=`/usr/libexec/java_home -v 1.7` 25543 BOOT_JDK_FOUND=maybe 25544 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using /usr/libexec/java_home -v 1.7" >&5 25545 $as_echo "$as_me: Found potential Boot JDK using /usr/libexec/java_home -v 1.7" >&6;} 25546 fi 25547 25548 25549 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 25550 if test "x$BOOT_JDK_FOUND" = xmaybe; then 25551 # Do we have a bin/java? 25552 if test ! -x "$BOOT_JDK/bin/java"; then 25553 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 25554 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 25555 BOOT_JDK_FOUND=no 25556 else 25557 # Do we have a bin/javac? 25558 if test ! -x "$BOOT_JDK/bin/javac"; then 25559 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 25560 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 25561 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 25562 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 25563 BOOT_JDK_FOUND=no 25564 else 25565 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 25566 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $HEAD -n 1` 25567 25568 # Extra M4 quote needed to protect [] in grep expression. 25569 FOUND_CORRECT_VERSION=`$ECHO $BOOT_JDK_VERSION | $EGREP '\"9([\.+-].*)?\"|(1\.[89]\.)'` 25570 if test "x$FOUND_CORRECT_VERSION" = x; then 25571 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 25572 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 25573 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5 25574 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;} 25575 BOOT_JDK_FOUND=no 25576 else 25577 # We're done! :-) 25578 BOOT_JDK_FOUND=yes 25579 25580 # Only process if variable expands to non-empty 25581 25582 if test "x$BOOT_JDK" != x; then 25583 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 25584 25585 # Input might be given as Windows format, start by converting to 25586 # unix format. 25587 path="$BOOT_JDK" 25588 new_path=`$CYGPATH -u "$path"` 25589 25590 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 25591 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 25592 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 25593 # "foo.exe" is OK but "foo" is an error. 25594 # 25595 # This test is therefore slightly more accurate than "test -f" to check for file precense. 25596 # It is also a way to make sure we got the proper file name for the real test later on. 25597 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 25598 if test "x$test_shortpath" = x; then 25599 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 25600 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 25601 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 25602 fi 25603 25604 # Call helper function which possibly converts this using DOS-style short mode. 25605 # If so, the updated path is stored in $new_path. 25606 25607 input_path="$new_path" 25608 # Check if we need to convert this using DOS-style short mode. If the path 25609 # contains just simple characters, use it. Otherwise (spaces, weird characters), 25610 # take no chances and rewrite it. 25611 # Note: m4 eats our [], so we need to use [ and ] instead. 25612 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 25613 if test "x$has_forbidden_chars" != x; then 25614 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 25615 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 25616 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 25617 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 25618 # Going to short mode and back again did indeed matter. Since short mode is 25619 # case insensitive, let's make it lowercase to improve readability. 25620 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 25621 # Now convert it back to Unix-style (cygpath) 25622 input_path=`$CYGPATH -u "$shortmode_path"` 25623 new_path="$input_path" 25624 fi 25625 fi 25626 25627 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 25628 if test "x$test_cygdrive_prefix" = x; then 25629 # As a simple fix, exclude /usr/bin since it's not a real path. 25630 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 25631 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 25632 # a path prefixed by /cygdrive for fixpath to work. 25633 new_path="$CYGWIN_ROOT_PATH$input_path" 25634 fi 25635 fi 25636 25637 25638 if test "x$path" != "x$new_path"; then 25639 BOOT_JDK="$new_path" 25640 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 25641 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 25642 fi 25643 25644 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 25645 25646 path="$BOOT_JDK" 25647 has_colon=`$ECHO $path | $GREP ^.:` 25648 new_path="$path" 25649 if test "x$has_colon" = x; then 25650 # Not in mixed or Windows style, start by that. 25651 new_path=`cmd //c echo $path` 25652 fi 25653 25654 25655 input_path="$new_path" 25656 # Check if we need to convert this using DOS-style short mode. If the path 25657 # contains just simple characters, use it. Otherwise (spaces, weird characters), 25658 # take no chances and rewrite it. 25659 # Note: m4 eats our [], so we need to use [ and ] instead. 25660 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 25661 if test "x$has_forbidden_chars" != x; then 25662 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 25663 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 25664 fi 25665 25666 25667 windows_path="$new_path" 25668 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 25669 unix_path=`$CYGPATH -u "$windows_path"` 25670 new_path="$unix_path" 25671 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 25672 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 25673 new_path="$unix_path" 25674 fi 25675 25676 if test "x$path" != "x$new_path"; then 25677 BOOT_JDK="$new_path" 25678 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 25679 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 25680 fi 25681 25682 # Save the first 10 bytes of this path to the storage, so fixpath can work. 25683 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 25684 25685 else 25686 # We're on a unix platform. Hooray! :) 25687 path="$BOOT_JDK" 25688 has_space=`$ECHO "$path" | $GREP " "` 25689 if test "x$has_space" != x; then 25690 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 25691 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 25692 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 25693 fi 25694 25695 # Use eval to expand a potential ~ 25696 eval path="$path" 25697 if test ! -f "$path" && test ! -d "$path"; then 25698 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 25699 fi 25700 25701 if test -d "$path"; then 25702 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 25703 else 25704 dir="`$DIRNAME "$path"`" 25705 base="`$BASENAME "$path"`" 25706 BOOT_JDK="`cd "$dir"; $THEPWDCMD -L`/$base" 25707 fi 25708 fi 25709 fi 25710 25711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 25712 $as_echo_n "checking for Boot JDK... " >&6; } 25713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 25714 $as_echo "$BOOT_JDK" >&6; } 25715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 25716 $as_echo_n "checking Boot JDK version... " >&6; } 25717 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 25718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 25719 $as_echo "$BOOT_JDK_VERSION" >&6; } 25720 fi # end check jdk version 25721 fi # end check javac 25722 fi # end check java 25723 fi # end check boot jdk found 25724 fi 25725 25726 fi 25727 25728 25729 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 25730 if test "x$BOOT_JDK_FOUND" = xmaybe; then 25731 # Do we have a bin/java? 25732 if test ! -x "$BOOT_JDK/bin/java"; then 25733 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 25734 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 25735 BOOT_JDK_FOUND=no 25736 else 25737 # Do we have a bin/javac? 25738 if test ! -x "$BOOT_JDK/bin/javac"; then 25739 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 25740 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 25741 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 25742 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 25743 BOOT_JDK_FOUND=no 25744 else 25745 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 25746 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $HEAD -n 1` 25747 25748 # Extra M4 quote needed to protect [] in grep expression. 25749 FOUND_CORRECT_VERSION=`$ECHO $BOOT_JDK_VERSION | $EGREP '\"9([\.+-].*)?\"|(1\.[89]\.)'` 25750 if test "x$FOUND_CORRECT_VERSION" = x; then 25751 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 25752 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 25753 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5 25754 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;} 25755 BOOT_JDK_FOUND=no 25756 else 25757 # We're done! :-) 25758 BOOT_JDK_FOUND=yes 25759 25760 # Only process if variable expands to non-empty 25761 25762 if test "x$BOOT_JDK" != x; then 25763 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 25764 25765 # Input might be given as Windows format, start by converting to 25766 # unix format. 25767 path="$BOOT_JDK" 25768 new_path=`$CYGPATH -u "$path"` 25769 25770 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 25771 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 25772 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 25773 # "foo.exe" is OK but "foo" is an error. 25774 # 25775 # This test is therefore slightly more accurate than "test -f" to check for file precense. 25776 # It is also a way to make sure we got the proper file name for the real test later on. 25777 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 25778 if test "x$test_shortpath" = x; then 25779 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 25780 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 25781 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 25782 fi 25783 25784 # Call helper function which possibly converts this using DOS-style short mode. 25785 # If so, the updated path is stored in $new_path. 25786 25787 input_path="$new_path" 25788 # Check if we need to convert this using DOS-style short mode. If the path 25789 # contains just simple characters, use it. Otherwise (spaces, weird characters), 25790 # take no chances and rewrite it. 25791 # Note: m4 eats our [], so we need to use [ and ] instead. 25792 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 25793 if test "x$has_forbidden_chars" != x; then 25794 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 25795 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 25796 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 25797 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 25798 # Going to short mode and back again did indeed matter. Since short mode is 25799 # case insensitive, let's make it lowercase to improve readability. 25800 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 25801 # Now convert it back to Unix-style (cygpath) 25802 input_path=`$CYGPATH -u "$shortmode_path"` 25803 new_path="$input_path" 25804 fi 25805 fi 25806 25807 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 25808 if test "x$test_cygdrive_prefix" = x; then 25809 # As a simple fix, exclude /usr/bin since it's not a real path. 25810 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 25811 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 25812 # a path prefixed by /cygdrive for fixpath to work. 25813 new_path="$CYGWIN_ROOT_PATH$input_path" 25814 fi 25815 fi 25816 25817 25818 if test "x$path" != "x$new_path"; then 25819 BOOT_JDK="$new_path" 25820 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 25821 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 25822 fi 25823 25824 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 25825 25826 path="$BOOT_JDK" 25827 has_colon=`$ECHO $path | $GREP ^.:` 25828 new_path="$path" 25829 if test "x$has_colon" = x; then 25830 # Not in mixed or Windows style, start by that. 25831 new_path=`cmd //c echo $path` 25832 fi 25833 25834 25835 input_path="$new_path" 25836 # Check if we need to convert this using DOS-style short mode. If the path 25837 # contains just simple characters, use it. Otherwise (spaces, weird characters), 25838 # take no chances and rewrite it. 25839 # Note: m4 eats our [], so we need to use [ and ] instead. 25840 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 25841 if test "x$has_forbidden_chars" != x; then 25842 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 25843 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 25844 fi 25845 25846 25847 windows_path="$new_path" 25848 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 25849 unix_path=`$CYGPATH -u "$windows_path"` 25850 new_path="$unix_path" 25851 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 25852 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 25853 new_path="$unix_path" 25854 fi 25855 25856 if test "x$path" != "x$new_path"; then 25857 BOOT_JDK="$new_path" 25858 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 25859 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 25860 fi 25861 25862 # Save the first 10 bytes of this path to the storage, so fixpath can work. 25863 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 25864 25865 else 25866 # We're on a unix platform. Hooray! :) 25867 path="$BOOT_JDK" 25868 has_space=`$ECHO "$path" | $GREP " "` 25869 if test "x$has_space" != x; then 25870 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 25871 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 25872 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 25873 fi 25874 25875 # Use eval to expand a potential ~ 25876 eval path="$path" 25877 if test ! -f "$path" && test ! -d "$path"; then 25878 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 25879 fi 25880 25881 if test -d "$path"; then 25882 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 25883 else 25884 dir="`$DIRNAME "$path"`" 25885 base="`$BASENAME "$path"`" 25886 BOOT_JDK="`cd "$dir"; $THEPWDCMD -L`/$base" 25887 fi 25888 fi 25889 fi 25890 25891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 25892 $as_echo_n "checking for Boot JDK... " >&6; } 25893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 25894 $as_echo "$BOOT_JDK" >&6; } 25895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 25896 $as_echo_n "checking Boot JDK version... " >&6; } 25897 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 25898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 25899 $as_echo "$BOOT_JDK_VERSION" >&6; } 25900 fi # end check jdk version 25901 fi # end check javac 25902 fi # end check java 25903 fi # end check boot jdk found 25904 fi 25905 25906 25907 # Test: Is $JAVA_HOME set? 25908 25909 if test "x$BOOT_JDK_FOUND" = xno; then 25910 # Now execute the test 25911 25912 if test "x$JAVA_HOME" != x; then 25913 JAVA_HOME_PROCESSED="$JAVA_HOME" 25914 25915 # Only process if variable expands to non-empty 25916 25917 if test "x$JAVA_HOME_PROCESSED" != x; then 25918 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 25919 25920 # Input might be given as Windows format, start by converting to 25921 # unix format. 25922 path="$JAVA_HOME_PROCESSED" 25923 new_path=`$CYGPATH -u "$path"` 25924 25925 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 25926 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 25927 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 25928 # "foo.exe" is OK but "foo" is an error. 25929 # 25930 # This test is therefore slightly more accurate than "test -f" to check for file precense. 25931 # It is also a way to make sure we got the proper file name for the real test later on. 25932 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 25933 if test "x$test_shortpath" = x; then 25934 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of JAVA_HOME_PROCESSED, which resolves as \"$path\", is invalid." >&5 25935 $as_echo "$as_me: The path of JAVA_HOME_PROCESSED, which resolves as \"$path\", is invalid." >&6;} 25936 as_fn_error $? "Cannot locate the the path of JAVA_HOME_PROCESSED" "$LINENO" 5 25937 fi 25938 25939 # Call helper function which possibly converts this using DOS-style short mode. 25940 # If so, the updated path is stored in $new_path. 25941 25942 input_path="$new_path" 25943 # Check if we need to convert this using DOS-style short mode. If the path 25944 # contains just simple characters, use it. Otherwise (spaces, weird characters), 25945 # take no chances and rewrite it. 25946 # Note: m4 eats our [], so we need to use [ and ] instead. 25947 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 25948 if test "x$has_forbidden_chars" != x; then 25949 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 25950 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 25951 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 25952 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 25953 # Going to short mode and back again did indeed matter. Since short mode is 25954 # case insensitive, let's make it lowercase to improve readability. 25955 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 25956 # Now convert it back to Unix-style (cygpath) 25957 input_path=`$CYGPATH -u "$shortmode_path"` 25958 new_path="$input_path" 25959 fi 25960 fi 25961 25962 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 25963 if test "x$test_cygdrive_prefix" = x; then 25964 # As a simple fix, exclude /usr/bin since it's not a real path. 25965 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 25966 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 25967 # a path prefixed by /cygdrive for fixpath to work. 25968 new_path="$CYGWIN_ROOT_PATH$input_path" 25969 fi 25970 fi 25971 25972 25973 if test "x$path" != "x$new_path"; then 25974 JAVA_HOME_PROCESSED="$new_path" 25975 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting JAVA_HOME_PROCESSED to \"$new_path\"" >&5 25976 $as_echo "$as_me: Rewriting JAVA_HOME_PROCESSED to \"$new_path\"" >&6;} 25977 fi 25978 25979 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 25980 25981 path="$JAVA_HOME_PROCESSED" 25982 has_colon=`$ECHO $path | $GREP ^.:` 25983 new_path="$path" 25984 if test "x$has_colon" = x; then 25985 # Not in mixed or Windows style, start by that. 25986 new_path=`cmd //c echo $path` 25987 fi 25988 25989 25990 input_path="$new_path" 25991 # Check if we need to convert this using DOS-style short mode. If the path 25992 # contains just simple characters, use it. Otherwise (spaces, weird characters), 25993 # take no chances and rewrite it. 25994 # Note: m4 eats our [], so we need to use [ and ] instead. 25995 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 25996 if test "x$has_forbidden_chars" != x; then 25997 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 25998 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 25999 fi 26000 26001 26002 windows_path="$new_path" 26003 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 26004 unix_path=`$CYGPATH -u "$windows_path"` 26005 new_path="$unix_path" 26006 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 26007 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 26008 new_path="$unix_path" 26009 fi 26010 26011 if test "x$path" != "x$new_path"; then 26012 JAVA_HOME_PROCESSED="$new_path" 26013 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting JAVA_HOME_PROCESSED to \"$new_path\"" >&5 26014 $as_echo "$as_me: Rewriting JAVA_HOME_PROCESSED to \"$new_path\"" >&6;} 26015 fi 26016 26017 # Save the first 10 bytes of this path to the storage, so fixpath can work. 26018 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 26019 26020 else 26021 # We're on a unix platform. Hooray! :) 26022 path="$JAVA_HOME_PROCESSED" 26023 has_space=`$ECHO "$path" | $GREP " "` 26024 if test "x$has_space" != x; then 26025 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of JAVA_HOME_PROCESSED, which resolves as \"$path\", is invalid." >&5 26026 $as_echo "$as_me: The path of JAVA_HOME_PROCESSED, which resolves as \"$path\", is invalid." >&6;} 26027 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 26028 fi 26029 26030 # Use eval to expand a potential ~ 26031 eval path="$path" 26032 if test ! -f "$path" && test ! -d "$path"; then 26033 as_fn_error $? "The path of JAVA_HOME_PROCESSED, which resolves as \"$path\", is not found." "$LINENO" 5 26034 fi 26035 26036 if test -d "$path"; then 26037 JAVA_HOME_PROCESSED="`cd "$path"; $THEPWDCMD -L`" 26038 else 26039 dir="`$DIRNAME "$path"`" 26040 base="`$BASENAME "$path"`" 26041 JAVA_HOME_PROCESSED="`cd "$dir"; $THEPWDCMD -L`/$base" 26042 fi 26043 fi 26044 fi 26045 26046 if test ! -d "$JAVA_HOME_PROCESSED"; then 26047 { $as_echo "$as_me:${as_lineno-$LINENO}: Your JAVA_HOME points to a non-existing directory!" >&5 26048 $as_echo "$as_me: Your JAVA_HOME points to a non-existing directory!" >&6;} 26049 else 26050 # Aha, the user has set a JAVA_HOME 26051 # let us use that as the Boot JDK. 26052 BOOT_JDK="$JAVA_HOME_PROCESSED" 26053 BOOT_JDK_FOUND=maybe 26054 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using JAVA_HOME" >&5 26055 $as_echo "$as_me: Found potential Boot JDK using JAVA_HOME" >&6;} 26056 fi 26057 fi 26058 26059 26060 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 26061 if test "x$BOOT_JDK_FOUND" = xmaybe; then 26062 # Do we have a bin/java? 26063 if test ! -x "$BOOT_JDK/bin/java"; then 26064 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 26065 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 26066 BOOT_JDK_FOUND=no 26067 else 26068 # Do we have a bin/javac? 26069 if test ! -x "$BOOT_JDK/bin/javac"; then 26070 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 26071 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 26072 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 26073 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 26074 BOOT_JDK_FOUND=no 26075 else 26076 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 26077 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $HEAD -n 1` 26078 26079 # Extra M4 quote needed to protect [] in grep expression. 26080 FOUND_CORRECT_VERSION=`$ECHO $BOOT_JDK_VERSION | $EGREP '\"9([\.+-].*)?\"|(1\.[89]\.)'` 26081 if test "x$FOUND_CORRECT_VERSION" = x; then 26082 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 26083 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 26084 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5 26085 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;} 26086 BOOT_JDK_FOUND=no 26087 else 26088 # We're done! :-) 26089 BOOT_JDK_FOUND=yes 26090 26091 # Only process if variable expands to non-empty 26092 26093 if test "x$BOOT_JDK" != x; then 26094 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 26095 26096 # Input might be given as Windows format, start by converting to 26097 # unix format. 26098 path="$BOOT_JDK" 26099 new_path=`$CYGPATH -u "$path"` 26100 26101 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 26102 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 26103 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 26104 # "foo.exe" is OK but "foo" is an error. 26105 # 26106 # This test is therefore slightly more accurate than "test -f" to check for file precense. 26107 # It is also a way to make sure we got the proper file name for the real test later on. 26108 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 26109 if test "x$test_shortpath" = x; then 26110 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 26111 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 26112 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 26113 fi 26114 26115 # Call helper function which possibly converts this using DOS-style short mode. 26116 # If so, the updated path is stored in $new_path. 26117 26118 input_path="$new_path" 26119 # Check if we need to convert this using DOS-style short mode. If the path 26120 # contains just simple characters, use it. Otherwise (spaces, weird characters), 26121 # take no chances and rewrite it. 26122 # Note: m4 eats our [], so we need to use [ and ] instead. 26123 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 26124 if test "x$has_forbidden_chars" != x; then 26125 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 26126 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 26127 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 26128 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 26129 # Going to short mode and back again did indeed matter. Since short mode is 26130 # case insensitive, let's make it lowercase to improve readability. 26131 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 26132 # Now convert it back to Unix-style (cygpath) 26133 input_path=`$CYGPATH -u "$shortmode_path"` 26134 new_path="$input_path" 26135 fi 26136 fi 26137 26138 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 26139 if test "x$test_cygdrive_prefix" = x; then 26140 # As a simple fix, exclude /usr/bin since it's not a real path. 26141 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 26142 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 26143 # a path prefixed by /cygdrive for fixpath to work. 26144 new_path="$CYGWIN_ROOT_PATH$input_path" 26145 fi 26146 fi 26147 26148 26149 if test "x$path" != "x$new_path"; then 26150 BOOT_JDK="$new_path" 26151 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 26152 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 26153 fi 26154 26155 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 26156 26157 path="$BOOT_JDK" 26158 has_colon=`$ECHO $path | $GREP ^.:` 26159 new_path="$path" 26160 if test "x$has_colon" = x; then 26161 # Not in mixed or Windows style, start by that. 26162 new_path=`cmd //c echo $path` 26163 fi 26164 26165 26166 input_path="$new_path" 26167 # Check if we need to convert this using DOS-style short mode. If the path 26168 # contains just simple characters, use it. Otherwise (spaces, weird characters), 26169 # take no chances and rewrite it. 26170 # Note: m4 eats our [], so we need to use [ and ] instead. 26171 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 26172 if test "x$has_forbidden_chars" != x; then 26173 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 26174 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 26175 fi 26176 26177 26178 windows_path="$new_path" 26179 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 26180 unix_path=`$CYGPATH -u "$windows_path"` 26181 new_path="$unix_path" 26182 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 26183 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 26184 new_path="$unix_path" 26185 fi 26186 26187 if test "x$path" != "x$new_path"; then 26188 BOOT_JDK="$new_path" 26189 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 26190 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 26191 fi 26192 26193 # Save the first 10 bytes of this path to the storage, so fixpath can work. 26194 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 26195 26196 else 26197 # We're on a unix platform. Hooray! :) 26198 path="$BOOT_JDK" 26199 has_space=`$ECHO "$path" | $GREP " "` 26200 if test "x$has_space" != x; then 26201 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 26202 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 26203 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 26204 fi 26205 26206 # Use eval to expand a potential ~ 26207 eval path="$path" 26208 if test ! -f "$path" && test ! -d "$path"; then 26209 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 26210 fi 26211 26212 if test -d "$path"; then 26213 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 26214 else 26215 dir="`$DIRNAME "$path"`" 26216 base="`$BASENAME "$path"`" 26217 BOOT_JDK="`cd "$dir"; $THEPWDCMD -L`/$base" 26218 fi 26219 fi 26220 fi 26221 26222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 26223 $as_echo_n "checking for Boot JDK... " >&6; } 26224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 26225 $as_echo "$BOOT_JDK" >&6; } 26226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 26227 $as_echo_n "checking Boot JDK version... " >&6; } 26228 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 26229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 26230 $as_echo "$BOOT_JDK_VERSION" >&6; } 26231 fi # end check jdk version 26232 fi # end check javac 26233 fi # end check java 26234 fi # end check boot jdk found 26235 fi 26236 26237 26238 # Test: Is there a java or javac in the PATH, which is a symlink to the JDK? 26239 26240 if test "x$BOOT_JDK_FOUND" = xno; then 26241 # Now execute the test 26242 26243 # Extract the first word of "javac", so it can be a program name with args. 26244 set dummy javac; ac_word=$2 26245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 26246 $as_echo_n "checking for $ac_word... " >&6; } 26247 if ${ac_cv_path_JAVAC_CHECK+:} false; then : 26248 $as_echo_n "(cached) " >&6 26249 else 26250 case $JAVAC_CHECK in 26251 [\\/]* | ?:[\\/]*) 26252 ac_cv_path_JAVAC_CHECK="$JAVAC_CHECK" # Let the user override the test with a path. 26253 ;; 26254 *) 26255 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 26256 for as_dir in $PATH 26257 do 26258 IFS=$as_save_IFS 26259 test -z "$as_dir" && as_dir=. 26260 for ac_exec_ext in '' $ac_executable_extensions; do 26261 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 26262 ac_cv_path_JAVAC_CHECK="$as_dir/$ac_word$ac_exec_ext" 26263 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 26264 break 2 26265 fi 26266 done 26267 done 26268 IFS=$as_save_IFS 26269 26270 ;; 26271 esac 26272 fi 26273 JAVAC_CHECK=$ac_cv_path_JAVAC_CHECK 26274 if test -n "$JAVAC_CHECK"; then 26275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVAC_CHECK" >&5 26276 $as_echo "$JAVAC_CHECK" >&6; } 26277 else 26278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 26279 $as_echo "no" >&6; } 26280 fi 26281 26282 26283 # Extract the first word of "java", so it can be a program name with args. 26284 set dummy java; ac_word=$2 26285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 26286 $as_echo_n "checking for $ac_word... " >&6; } 26287 if ${ac_cv_path_JAVA_CHECK+:} false; then : 26288 $as_echo_n "(cached) " >&6 26289 else 26290 case $JAVA_CHECK in 26291 [\\/]* | ?:[\\/]*) 26292 ac_cv_path_JAVA_CHECK="$JAVA_CHECK" # Let the user override the test with a path. 26293 ;; 26294 *) 26295 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 26296 for as_dir in $PATH 26297 do 26298 IFS=$as_save_IFS 26299 test -z "$as_dir" && as_dir=. 26300 for ac_exec_ext in '' $ac_executable_extensions; do 26301 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 26302 ac_cv_path_JAVA_CHECK="$as_dir/$ac_word$ac_exec_ext" 26303 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 26304 break 2 26305 fi 26306 done 26307 done 26308 IFS=$as_save_IFS 26309 26310 ;; 26311 esac 26312 fi 26313 JAVA_CHECK=$ac_cv_path_JAVA_CHECK 26314 if test -n "$JAVA_CHECK"; then 26315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVA_CHECK" >&5 26316 $as_echo "$JAVA_CHECK" >&6; } 26317 else 26318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 26319 $as_echo "no" >&6; } 26320 fi 26321 26322 26323 BINARY="$JAVAC_CHECK" 26324 if test "x$JAVAC_CHECK" = x; then 26325 BINARY="$JAVA_CHECK" 26326 fi 26327 if test "x$BINARY" != x; then 26328 # So there is a java(c) binary, it might be part of a JDK. 26329 # Lets find the JDK/JRE directory by following symbolic links. 26330 # Linux/GNU systems often have links from /usr/bin/java to 26331 # /etc/alternatives/java to the real JDK binary. 26332 26333 if test "x$OPENJDK_BUILD_OS" != xwindows; then 26334 # Follow a chain of symbolic links. Use readlink 26335 # where it exists, else fall back to horribly 26336 # complicated shell code. 26337 if test "x$READLINK_TESTED" != yes; then 26338 # On MacOSX there is a readlink tool with a different 26339 # purpose than the GNU readlink tool. Check the found readlink. 26340 ISGNU=`$READLINK --version 2>&1 | $GREP GNU` 26341 if test "x$ISGNU" = x; then 26342 # A readlink that we do not know how to use. 26343 # Are there other non-GNU readlinks out there? 26344 READLINK_TESTED=yes 26345 READLINK= 26346 fi 26347 fi 26348 26349 if test "x$READLINK" != x; then 26350 BINARY=`$READLINK -f $BINARY` 26351 else 26352 # Save the current directory for restoring afterwards 26353 STARTDIR=$PWD 26354 COUNTER=0 26355 sym_link_dir=`$DIRNAME $BINARY` 26356 sym_link_file=`$BASENAME $BINARY` 26357 cd $sym_link_dir 26358 # Use -P flag to resolve symlinks in directories. 26359 cd `$THEPWDCMD -P` 26360 sym_link_dir=`$THEPWDCMD -P` 26361 # Resolve file symlinks 26362 while test $COUNTER -lt 20; do 26363 ISLINK=`$LS -l $sym_link_dir/$sym_link_file | $GREP '\->' | $SED -e 's/.*-> \(.*\)/\1/'` 26364 if test "x$ISLINK" == x; then 26365 # This is not a symbolic link! We are done! 26366 break 26367 fi 26368 # Again resolve directory symlinks since the target of the just found 26369 # link could be in a different directory 26370 cd `$DIRNAME $ISLINK` 26371 sym_link_dir=`$THEPWDCMD -P` 26372 sym_link_file=`$BASENAME $ISLINK` 26373 let COUNTER=COUNTER+1 26374 done 26375 cd $STARTDIR 26376 BINARY=$sym_link_dir/$sym_link_file 26377 fi 26378 fi 26379 26380 BOOT_JDK=`dirname "$BINARY"` 26381 BOOT_JDK=`cd "$BOOT_JDK/.."; pwd` 26382 if test -x "$BOOT_JDK/bin/javac" && test -x "$BOOT_JDK/bin/java"; then 26383 # Looks like we found ourselves an JDK 26384 BOOT_JDK_FOUND=maybe 26385 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using java(c) in PATH" >&5 26386 $as_echo "$as_me: Found potential Boot JDK using java(c) in PATH" >&6;} 26387 fi 26388 fi 26389 26390 26391 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 26392 if test "x$BOOT_JDK_FOUND" = xmaybe; then 26393 # Do we have a bin/java? 26394 if test ! -x "$BOOT_JDK/bin/java"; then 26395 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 26396 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 26397 BOOT_JDK_FOUND=no 26398 else 26399 # Do we have a bin/javac? 26400 if test ! -x "$BOOT_JDK/bin/javac"; then 26401 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 26402 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 26403 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 26404 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 26405 BOOT_JDK_FOUND=no 26406 else 26407 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 26408 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $HEAD -n 1` 26409 26410 # Extra M4 quote needed to protect [] in grep expression. 26411 FOUND_CORRECT_VERSION=`$ECHO $BOOT_JDK_VERSION | $EGREP '\"9([\.+-].*)?\"|(1\.[89]\.)'` 26412 if test "x$FOUND_CORRECT_VERSION" = x; then 26413 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 26414 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 26415 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5 26416 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;} 26417 BOOT_JDK_FOUND=no 26418 else 26419 # We're done! :-) 26420 BOOT_JDK_FOUND=yes 26421 26422 # Only process if variable expands to non-empty 26423 26424 if test "x$BOOT_JDK" != x; then 26425 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 26426 26427 # Input might be given as Windows format, start by converting to 26428 # unix format. 26429 path="$BOOT_JDK" 26430 new_path=`$CYGPATH -u "$path"` 26431 26432 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 26433 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 26434 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 26435 # "foo.exe" is OK but "foo" is an error. 26436 # 26437 # This test is therefore slightly more accurate than "test -f" to check for file precense. 26438 # It is also a way to make sure we got the proper file name for the real test later on. 26439 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 26440 if test "x$test_shortpath" = x; then 26441 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 26442 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 26443 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 26444 fi 26445 26446 # Call helper function which possibly converts this using DOS-style short mode. 26447 # If so, the updated path is stored in $new_path. 26448 26449 input_path="$new_path" 26450 # Check if we need to convert this using DOS-style short mode. If the path 26451 # contains just simple characters, use it. Otherwise (spaces, weird characters), 26452 # take no chances and rewrite it. 26453 # Note: m4 eats our [], so we need to use [ and ] instead. 26454 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 26455 if test "x$has_forbidden_chars" != x; then 26456 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 26457 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 26458 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 26459 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 26460 # Going to short mode and back again did indeed matter. Since short mode is 26461 # case insensitive, let's make it lowercase to improve readability. 26462 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 26463 # Now convert it back to Unix-style (cygpath) 26464 input_path=`$CYGPATH -u "$shortmode_path"` 26465 new_path="$input_path" 26466 fi 26467 fi 26468 26469 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 26470 if test "x$test_cygdrive_prefix" = x; then 26471 # As a simple fix, exclude /usr/bin since it's not a real path. 26472 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 26473 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 26474 # a path prefixed by /cygdrive for fixpath to work. 26475 new_path="$CYGWIN_ROOT_PATH$input_path" 26476 fi 26477 fi 26478 26479 26480 if test "x$path" != "x$new_path"; then 26481 BOOT_JDK="$new_path" 26482 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 26483 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 26484 fi 26485 26486 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 26487 26488 path="$BOOT_JDK" 26489 has_colon=`$ECHO $path | $GREP ^.:` 26490 new_path="$path" 26491 if test "x$has_colon" = x; then 26492 # Not in mixed or Windows style, start by that. 26493 new_path=`cmd //c echo $path` 26494 fi 26495 26496 26497 input_path="$new_path" 26498 # Check if we need to convert this using DOS-style short mode. If the path 26499 # contains just simple characters, use it. Otherwise (spaces, weird characters), 26500 # take no chances and rewrite it. 26501 # Note: m4 eats our [], so we need to use [ and ] instead. 26502 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 26503 if test "x$has_forbidden_chars" != x; then 26504 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 26505 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 26506 fi 26507 26508 26509 windows_path="$new_path" 26510 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 26511 unix_path=`$CYGPATH -u "$windows_path"` 26512 new_path="$unix_path" 26513 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 26514 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 26515 new_path="$unix_path" 26516 fi 26517 26518 if test "x$path" != "x$new_path"; then 26519 BOOT_JDK="$new_path" 26520 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 26521 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 26522 fi 26523 26524 # Save the first 10 bytes of this path to the storage, so fixpath can work. 26525 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 26526 26527 else 26528 # We're on a unix platform. Hooray! :) 26529 path="$BOOT_JDK" 26530 has_space=`$ECHO "$path" | $GREP " "` 26531 if test "x$has_space" != x; then 26532 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 26533 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 26534 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 26535 fi 26536 26537 # Use eval to expand a potential ~ 26538 eval path="$path" 26539 if test ! -f "$path" && test ! -d "$path"; then 26540 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 26541 fi 26542 26543 if test -d "$path"; then 26544 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 26545 else 26546 dir="`$DIRNAME "$path"`" 26547 base="`$BASENAME "$path"`" 26548 BOOT_JDK="`cd "$dir"; $THEPWDCMD -L`/$base" 26549 fi 26550 fi 26551 fi 26552 26553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 26554 $as_echo_n "checking for Boot JDK... " >&6; } 26555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 26556 $as_echo "$BOOT_JDK" >&6; } 26557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 26558 $as_echo_n "checking Boot JDK version... " >&6; } 26559 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 26560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 26561 $as_echo "$BOOT_JDK_VERSION" >&6; } 26562 fi # end check jdk version 26563 fi # end check javac 26564 fi # end check java 26565 fi # end check boot jdk found 26566 fi 26567 26568 26569 # Test: Is there a JDK installed in default, well-known locations? 26570 26571 if test "x$BOOT_JDK_FOUND" = xno; then 26572 # Now execute the test 26573 26574 if test "x$OPENJDK_TARGET_OS" = xwindows; then 26575 26576 if test "x$BOOT_JDK_FOUND" = xno; then 26577 # Now execute the test 26578 26579 if test "x$ProgramW6432" != x; then 26580 VIRTUAL_DIR="$ProgramW6432/Java" 26581 26582 windows_path="$VIRTUAL_DIR" 26583 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 26584 unix_path=`$CYGPATH -u "$windows_path"` 26585 VIRTUAL_DIR="$unix_path" 26586 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 26587 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 26588 VIRTUAL_DIR="$unix_path" 26589 fi 26590 26591 26592 BOOT_JDK_PREFIX="$VIRTUAL_DIR" 26593 BOOT_JDK_SUFFIX="" 26594 ALL_JDKS_FOUND=`$LS "$BOOT_JDK_PREFIX" 2> /dev/null | $SORT -r` 26595 if test "x$ALL_JDKS_FOUND" != x; then 26596 for JDK_TO_TRY in $ALL_JDKS_FOUND ; do 26597 26598 if test "x$BOOT_JDK_FOUND" = xno; then 26599 # Now execute the test 26600 26601 BOOT_JDK="${BOOT_JDK_PREFIX}/${JDK_TO_TRY}${BOOT_JDK_SUFFIX}" 26602 if test -d "$BOOT_JDK"; then 26603 BOOT_JDK_FOUND=maybe 26604 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&5 26605 $as_echo "$as_me: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&6;} 26606 fi 26607 26608 26609 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 26610 if test "x$BOOT_JDK_FOUND" = xmaybe; then 26611 # Do we have a bin/java? 26612 if test ! -x "$BOOT_JDK/bin/java"; then 26613 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 26614 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 26615 BOOT_JDK_FOUND=no 26616 else 26617 # Do we have a bin/javac? 26618 if test ! -x "$BOOT_JDK/bin/javac"; then 26619 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 26620 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 26621 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 26622 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 26623 BOOT_JDK_FOUND=no 26624 else 26625 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 26626 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $HEAD -n 1` 26627 26628 # Extra M4 quote needed to protect [] in grep expression. 26629 FOUND_CORRECT_VERSION=`$ECHO $BOOT_JDK_VERSION | $EGREP '\"9([\.+-].*)?\"|(1\.[89]\.)'` 26630 if test "x$FOUND_CORRECT_VERSION" = x; then 26631 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 26632 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 26633 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5 26634 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;} 26635 BOOT_JDK_FOUND=no 26636 else 26637 # We're done! :-) 26638 BOOT_JDK_FOUND=yes 26639 26640 # Only process if variable expands to non-empty 26641 26642 if test "x$BOOT_JDK" != x; then 26643 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 26644 26645 # Input might be given as Windows format, start by converting to 26646 # unix format. 26647 path="$BOOT_JDK" 26648 new_path=`$CYGPATH -u "$path"` 26649 26650 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 26651 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 26652 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 26653 # "foo.exe" is OK but "foo" is an error. 26654 # 26655 # This test is therefore slightly more accurate than "test -f" to check for file precense. 26656 # It is also a way to make sure we got the proper file name for the real test later on. 26657 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 26658 if test "x$test_shortpath" = x; then 26659 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 26660 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 26661 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 26662 fi 26663 26664 # Call helper function which possibly converts this using DOS-style short mode. 26665 # If so, the updated path is stored in $new_path. 26666 26667 input_path="$new_path" 26668 # Check if we need to convert this using DOS-style short mode. If the path 26669 # contains just simple characters, use it. Otherwise (spaces, weird characters), 26670 # take no chances and rewrite it. 26671 # Note: m4 eats our [], so we need to use [ and ] instead. 26672 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 26673 if test "x$has_forbidden_chars" != x; then 26674 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 26675 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 26676 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 26677 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 26678 # Going to short mode and back again did indeed matter. Since short mode is 26679 # case insensitive, let's make it lowercase to improve readability. 26680 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 26681 # Now convert it back to Unix-style (cygpath) 26682 input_path=`$CYGPATH -u "$shortmode_path"` 26683 new_path="$input_path" 26684 fi 26685 fi 26686 26687 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 26688 if test "x$test_cygdrive_prefix" = x; then 26689 # As a simple fix, exclude /usr/bin since it's not a real path. 26690 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 26691 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 26692 # a path prefixed by /cygdrive for fixpath to work. 26693 new_path="$CYGWIN_ROOT_PATH$input_path" 26694 fi 26695 fi 26696 26697 26698 if test "x$path" != "x$new_path"; then 26699 BOOT_JDK="$new_path" 26700 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 26701 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 26702 fi 26703 26704 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 26705 26706 path="$BOOT_JDK" 26707 has_colon=`$ECHO $path | $GREP ^.:` 26708 new_path="$path" 26709 if test "x$has_colon" = x; then 26710 # Not in mixed or Windows style, start by that. 26711 new_path=`cmd //c echo $path` 26712 fi 26713 26714 26715 input_path="$new_path" 26716 # Check if we need to convert this using DOS-style short mode. If the path 26717 # contains just simple characters, use it. Otherwise (spaces, weird characters), 26718 # take no chances and rewrite it. 26719 # Note: m4 eats our [], so we need to use [ and ] instead. 26720 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 26721 if test "x$has_forbidden_chars" != x; then 26722 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 26723 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 26724 fi 26725 26726 26727 windows_path="$new_path" 26728 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 26729 unix_path=`$CYGPATH -u "$windows_path"` 26730 new_path="$unix_path" 26731 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 26732 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 26733 new_path="$unix_path" 26734 fi 26735 26736 if test "x$path" != "x$new_path"; then 26737 BOOT_JDK="$new_path" 26738 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 26739 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 26740 fi 26741 26742 # Save the first 10 bytes of this path to the storage, so fixpath can work. 26743 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 26744 26745 else 26746 # We're on a unix platform. Hooray! :) 26747 path="$BOOT_JDK" 26748 has_space=`$ECHO "$path" | $GREP " "` 26749 if test "x$has_space" != x; then 26750 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 26751 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 26752 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 26753 fi 26754 26755 # Use eval to expand a potential ~ 26756 eval path="$path" 26757 if test ! -f "$path" && test ! -d "$path"; then 26758 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 26759 fi 26760 26761 if test -d "$path"; then 26762 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 26763 else 26764 dir="`$DIRNAME "$path"`" 26765 base="`$BASENAME "$path"`" 26766 BOOT_JDK="`cd "$dir"; $THEPWDCMD -L`/$base" 26767 fi 26768 fi 26769 fi 26770 26771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 26772 $as_echo_n "checking for Boot JDK... " >&6; } 26773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 26774 $as_echo "$BOOT_JDK" >&6; } 26775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 26776 $as_echo_n "checking Boot JDK version... " >&6; } 26777 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 26778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 26779 $as_echo "$BOOT_JDK_VERSION" >&6; } 26780 fi # end check jdk version 26781 fi # end check javac 26782 fi # end check java 26783 fi # end check boot jdk found 26784 fi 26785 26786 done 26787 fi 26788 26789 fi 26790 26791 26792 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 26793 if test "x$BOOT_JDK_FOUND" = xmaybe; then 26794 # Do we have a bin/java? 26795 if test ! -x "$BOOT_JDK/bin/java"; then 26796 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 26797 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 26798 BOOT_JDK_FOUND=no 26799 else 26800 # Do we have a bin/javac? 26801 if test ! -x "$BOOT_JDK/bin/javac"; then 26802 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 26803 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 26804 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 26805 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 26806 BOOT_JDK_FOUND=no 26807 else 26808 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 26809 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $HEAD -n 1` 26810 26811 # Extra M4 quote needed to protect [] in grep expression. 26812 FOUND_CORRECT_VERSION=`$ECHO $BOOT_JDK_VERSION | $EGREP '\"9([\.+-].*)?\"|(1\.[89]\.)'` 26813 if test "x$FOUND_CORRECT_VERSION" = x; then 26814 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 26815 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 26816 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5 26817 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;} 26818 BOOT_JDK_FOUND=no 26819 else 26820 # We're done! :-) 26821 BOOT_JDK_FOUND=yes 26822 26823 # Only process if variable expands to non-empty 26824 26825 if test "x$BOOT_JDK" != x; then 26826 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 26827 26828 # Input might be given as Windows format, start by converting to 26829 # unix format. 26830 path="$BOOT_JDK" 26831 new_path=`$CYGPATH -u "$path"` 26832 26833 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 26834 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 26835 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 26836 # "foo.exe" is OK but "foo" is an error. 26837 # 26838 # This test is therefore slightly more accurate than "test -f" to check for file precense. 26839 # It is also a way to make sure we got the proper file name for the real test later on. 26840 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 26841 if test "x$test_shortpath" = x; then 26842 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 26843 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 26844 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 26845 fi 26846 26847 # Call helper function which possibly converts this using DOS-style short mode. 26848 # If so, the updated path is stored in $new_path. 26849 26850 input_path="$new_path" 26851 # Check if we need to convert this using DOS-style short mode. If the path 26852 # contains just simple characters, use it. Otherwise (spaces, weird characters), 26853 # take no chances and rewrite it. 26854 # Note: m4 eats our [], so we need to use [ and ] instead. 26855 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 26856 if test "x$has_forbidden_chars" != x; then 26857 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 26858 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 26859 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 26860 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 26861 # Going to short mode and back again did indeed matter. Since short mode is 26862 # case insensitive, let's make it lowercase to improve readability. 26863 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 26864 # Now convert it back to Unix-style (cygpath) 26865 input_path=`$CYGPATH -u "$shortmode_path"` 26866 new_path="$input_path" 26867 fi 26868 fi 26869 26870 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 26871 if test "x$test_cygdrive_prefix" = x; then 26872 # As a simple fix, exclude /usr/bin since it's not a real path. 26873 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 26874 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 26875 # a path prefixed by /cygdrive for fixpath to work. 26876 new_path="$CYGWIN_ROOT_PATH$input_path" 26877 fi 26878 fi 26879 26880 26881 if test "x$path" != "x$new_path"; then 26882 BOOT_JDK="$new_path" 26883 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 26884 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 26885 fi 26886 26887 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 26888 26889 path="$BOOT_JDK" 26890 has_colon=`$ECHO $path | $GREP ^.:` 26891 new_path="$path" 26892 if test "x$has_colon" = x; then 26893 # Not in mixed or Windows style, start by that. 26894 new_path=`cmd //c echo $path` 26895 fi 26896 26897 26898 input_path="$new_path" 26899 # Check if we need to convert this using DOS-style short mode. If the path 26900 # contains just simple characters, use it. Otherwise (spaces, weird characters), 26901 # take no chances and rewrite it. 26902 # Note: m4 eats our [], so we need to use [ and ] instead. 26903 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 26904 if test "x$has_forbidden_chars" != x; then 26905 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 26906 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 26907 fi 26908 26909 26910 windows_path="$new_path" 26911 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 26912 unix_path=`$CYGPATH -u "$windows_path"` 26913 new_path="$unix_path" 26914 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 26915 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 26916 new_path="$unix_path" 26917 fi 26918 26919 if test "x$path" != "x$new_path"; then 26920 BOOT_JDK="$new_path" 26921 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 26922 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 26923 fi 26924 26925 # Save the first 10 bytes of this path to the storage, so fixpath can work. 26926 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 26927 26928 else 26929 # We're on a unix platform. Hooray! :) 26930 path="$BOOT_JDK" 26931 has_space=`$ECHO "$path" | $GREP " "` 26932 if test "x$has_space" != x; then 26933 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 26934 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 26935 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 26936 fi 26937 26938 # Use eval to expand a potential ~ 26939 eval path="$path" 26940 if test ! -f "$path" && test ! -d "$path"; then 26941 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 26942 fi 26943 26944 if test -d "$path"; then 26945 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 26946 else 26947 dir="`$DIRNAME "$path"`" 26948 base="`$BASENAME "$path"`" 26949 BOOT_JDK="`cd "$dir"; $THEPWDCMD -L`/$base" 26950 fi 26951 fi 26952 fi 26953 26954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 26955 $as_echo_n "checking for Boot JDK... " >&6; } 26956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 26957 $as_echo "$BOOT_JDK" >&6; } 26958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 26959 $as_echo_n "checking Boot JDK version... " >&6; } 26960 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 26961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 26962 $as_echo "$BOOT_JDK_VERSION" >&6; } 26963 fi # end check jdk version 26964 fi # end check javac 26965 fi # end check java 26966 fi # end check boot jdk found 26967 fi 26968 26969 26970 if test "x$BOOT_JDK_FOUND" = xno; then 26971 # Now execute the test 26972 26973 if test "x$PROGRAMW6432" != x; then 26974 VIRTUAL_DIR="$PROGRAMW6432/Java" 26975 26976 windows_path="$VIRTUAL_DIR" 26977 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 26978 unix_path=`$CYGPATH -u "$windows_path"` 26979 VIRTUAL_DIR="$unix_path" 26980 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 26981 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 26982 VIRTUAL_DIR="$unix_path" 26983 fi 26984 26985 26986 BOOT_JDK_PREFIX="$VIRTUAL_DIR" 26987 BOOT_JDK_SUFFIX="" 26988 ALL_JDKS_FOUND=`$LS "$BOOT_JDK_PREFIX" 2> /dev/null | $SORT -r` 26989 if test "x$ALL_JDKS_FOUND" != x; then 26990 for JDK_TO_TRY in $ALL_JDKS_FOUND ; do 26991 26992 if test "x$BOOT_JDK_FOUND" = xno; then 26993 # Now execute the test 26994 26995 BOOT_JDK="${BOOT_JDK_PREFIX}/${JDK_TO_TRY}${BOOT_JDK_SUFFIX}" 26996 if test -d "$BOOT_JDK"; then 26997 BOOT_JDK_FOUND=maybe 26998 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&5 26999 $as_echo "$as_me: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&6;} 27000 fi 27001 27002 27003 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 27004 if test "x$BOOT_JDK_FOUND" = xmaybe; then 27005 # Do we have a bin/java? 27006 if test ! -x "$BOOT_JDK/bin/java"; then 27007 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 27008 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 27009 BOOT_JDK_FOUND=no 27010 else 27011 # Do we have a bin/javac? 27012 if test ! -x "$BOOT_JDK/bin/javac"; then 27013 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 27014 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 27015 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 27016 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 27017 BOOT_JDK_FOUND=no 27018 else 27019 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 27020 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $HEAD -n 1` 27021 27022 # Extra M4 quote needed to protect [] in grep expression. 27023 FOUND_CORRECT_VERSION=`$ECHO $BOOT_JDK_VERSION | $EGREP '\"9([\.+-].*)?\"|(1\.[89]\.)'` 27024 if test "x$FOUND_CORRECT_VERSION" = x; then 27025 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 27026 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 27027 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5 27028 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;} 27029 BOOT_JDK_FOUND=no 27030 else 27031 # We're done! :-) 27032 BOOT_JDK_FOUND=yes 27033 27034 # Only process if variable expands to non-empty 27035 27036 if test "x$BOOT_JDK" != x; then 27037 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 27038 27039 # Input might be given as Windows format, start by converting to 27040 # unix format. 27041 path="$BOOT_JDK" 27042 new_path=`$CYGPATH -u "$path"` 27043 27044 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 27045 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 27046 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 27047 # "foo.exe" is OK but "foo" is an error. 27048 # 27049 # This test is therefore slightly more accurate than "test -f" to check for file precense. 27050 # It is also a way to make sure we got the proper file name for the real test later on. 27051 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 27052 if test "x$test_shortpath" = x; then 27053 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 27054 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 27055 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 27056 fi 27057 27058 # Call helper function which possibly converts this using DOS-style short mode. 27059 # If so, the updated path is stored in $new_path. 27060 27061 input_path="$new_path" 27062 # Check if we need to convert this using DOS-style short mode. If the path 27063 # contains just simple characters, use it. Otherwise (spaces, weird characters), 27064 # take no chances and rewrite it. 27065 # Note: m4 eats our [], so we need to use [ and ] instead. 27066 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 27067 if test "x$has_forbidden_chars" != x; then 27068 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 27069 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 27070 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 27071 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 27072 # Going to short mode and back again did indeed matter. Since short mode is 27073 # case insensitive, let's make it lowercase to improve readability. 27074 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 27075 # Now convert it back to Unix-style (cygpath) 27076 input_path=`$CYGPATH -u "$shortmode_path"` 27077 new_path="$input_path" 27078 fi 27079 fi 27080 27081 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 27082 if test "x$test_cygdrive_prefix" = x; then 27083 # As a simple fix, exclude /usr/bin since it's not a real path. 27084 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 27085 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 27086 # a path prefixed by /cygdrive for fixpath to work. 27087 new_path="$CYGWIN_ROOT_PATH$input_path" 27088 fi 27089 fi 27090 27091 27092 if test "x$path" != "x$new_path"; then 27093 BOOT_JDK="$new_path" 27094 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 27095 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 27096 fi 27097 27098 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 27099 27100 path="$BOOT_JDK" 27101 has_colon=`$ECHO $path | $GREP ^.:` 27102 new_path="$path" 27103 if test "x$has_colon" = x; then 27104 # Not in mixed or Windows style, start by that. 27105 new_path=`cmd //c echo $path` 27106 fi 27107 27108 27109 input_path="$new_path" 27110 # Check if we need to convert this using DOS-style short mode. If the path 27111 # contains just simple characters, use it. Otherwise (spaces, weird characters), 27112 # take no chances and rewrite it. 27113 # Note: m4 eats our [], so we need to use [ and ] instead. 27114 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 27115 if test "x$has_forbidden_chars" != x; then 27116 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 27117 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 27118 fi 27119 27120 27121 windows_path="$new_path" 27122 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 27123 unix_path=`$CYGPATH -u "$windows_path"` 27124 new_path="$unix_path" 27125 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 27126 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 27127 new_path="$unix_path" 27128 fi 27129 27130 if test "x$path" != "x$new_path"; then 27131 BOOT_JDK="$new_path" 27132 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 27133 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 27134 fi 27135 27136 # Save the first 10 bytes of this path to the storage, so fixpath can work. 27137 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 27138 27139 else 27140 # We're on a unix platform. Hooray! :) 27141 path="$BOOT_JDK" 27142 has_space=`$ECHO "$path" | $GREP " "` 27143 if test "x$has_space" != x; then 27144 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 27145 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 27146 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 27147 fi 27148 27149 # Use eval to expand a potential ~ 27150 eval path="$path" 27151 if test ! -f "$path" && test ! -d "$path"; then 27152 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 27153 fi 27154 27155 if test -d "$path"; then 27156 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 27157 else 27158 dir="`$DIRNAME "$path"`" 27159 base="`$BASENAME "$path"`" 27160 BOOT_JDK="`cd "$dir"; $THEPWDCMD -L`/$base" 27161 fi 27162 fi 27163 fi 27164 27165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 27166 $as_echo_n "checking for Boot JDK... " >&6; } 27167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 27168 $as_echo "$BOOT_JDK" >&6; } 27169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 27170 $as_echo_n "checking Boot JDK version... " >&6; } 27171 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 27172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 27173 $as_echo "$BOOT_JDK_VERSION" >&6; } 27174 fi # end check jdk version 27175 fi # end check javac 27176 fi # end check java 27177 fi # end check boot jdk found 27178 fi 27179 27180 done 27181 fi 27182 27183 fi 27184 27185 27186 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 27187 if test "x$BOOT_JDK_FOUND" = xmaybe; then 27188 # Do we have a bin/java? 27189 if test ! -x "$BOOT_JDK/bin/java"; then 27190 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 27191 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 27192 BOOT_JDK_FOUND=no 27193 else 27194 # Do we have a bin/javac? 27195 if test ! -x "$BOOT_JDK/bin/javac"; then 27196 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 27197 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 27198 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 27199 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 27200 BOOT_JDK_FOUND=no 27201 else 27202 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 27203 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $HEAD -n 1` 27204 27205 # Extra M4 quote needed to protect [] in grep expression. 27206 FOUND_CORRECT_VERSION=`$ECHO $BOOT_JDK_VERSION | $EGREP '\"9([\.+-].*)?\"|(1\.[89]\.)'` 27207 if test "x$FOUND_CORRECT_VERSION" = x; then 27208 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 27209 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 27210 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5 27211 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;} 27212 BOOT_JDK_FOUND=no 27213 else 27214 # We're done! :-) 27215 BOOT_JDK_FOUND=yes 27216 27217 # Only process if variable expands to non-empty 27218 27219 if test "x$BOOT_JDK" != x; then 27220 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 27221 27222 # Input might be given as Windows format, start by converting to 27223 # unix format. 27224 path="$BOOT_JDK" 27225 new_path=`$CYGPATH -u "$path"` 27226 27227 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 27228 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 27229 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 27230 # "foo.exe" is OK but "foo" is an error. 27231 # 27232 # This test is therefore slightly more accurate than "test -f" to check for file precense. 27233 # It is also a way to make sure we got the proper file name for the real test later on. 27234 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 27235 if test "x$test_shortpath" = x; then 27236 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 27237 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 27238 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 27239 fi 27240 27241 # Call helper function which possibly converts this using DOS-style short mode. 27242 # If so, the updated path is stored in $new_path. 27243 27244 input_path="$new_path" 27245 # Check if we need to convert this using DOS-style short mode. If the path 27246 # contains just simple characters, use it. Otherwise (spaces, weird characters), 27247 # take no chances and rewrite it. 27248 # Note: m4 eats our [], so we need to use [ and ] instead. 27249 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 27250 if test "x$has_forbidden_chars" != x; then 27251 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 27252 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 27253 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 27254 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 27255 # Going to short mode and back again did indeed matter. Since short mode is 27256 # case insensitive, let's make it lowercase to improve readability. 27257 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 27258 # Now convert it back to Unix-style (cygpath) 27259 input_path=`$CYGPATH -u "$shortmode_path"` 27260 new_path="$input_path" 27261 fi 27262 fi 27263 27264 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 27265 if test "x$test_cygdrive_prefix" = x; then 27266 # As a simple fix, exclude /usr/bin since it's not a real path. 27267 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 27268 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 27269 # a path prefixed by /cygdrive for fixpath to work. 27270 new_path="$CYGWIN_ROOT_PATH$input_path" 27271 fi 27272 fi 27273 27274 27275 if test "x$path" != "x$new_path"; then 27276 BOOT_JDK="$new_path" 27277 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 27278 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 27279 fi 27280 27281 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 27282 27283 path="$BOOT_JDK" 27284 has_colon=`$ECHO $path | $GREP ^.:` 27285 new_path="$path" 27286 if test "x$has_colon" = x; then 27287 # Not in mixed or Windows style, start by that. 27288 new_path=`cmd //c echo $path` 27289 fi 27290 27291 27292 input_path="$new_path" 27293 # Check if we need to convert this using DOS-style short mode. If the path 27294 # contains just simple characters, use it. Otherwise (spaces, weird characters), 27295 # take no chances and rewrite it. 27296 # Note: m4 eats our [], so we need to use [ and ] instead. 27297 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 27298 if test "x$has_forbidden_chars" != x; then 27299 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 27300 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 27301 fi 27302 27303 27304 windows_path="$new_path" 27305 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 27306 unix_path=`$CYGPATH -u "$windows_path"` 27307 new_path="$unix_path" 27308 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 27309 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 27310 new_path="$unix_path" 27311 fi 27312 27313 if test "x$path" != "x$new_path"; then 27314 BOOT_JDK="$new_path" 27315 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 27316 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 27317 fi 27318 27319 # Save the first 10 bytes of this path to the storage, so fixpath can work. 27320 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 27321 27322 else 27323 # We're on a unix platform. Hooray! :) 27324 path="$BOOT_JDK" 27325 has_space=`$ECHO "$path" | $GREP " "` 27326 if test "x$has_space" != x; then 27327 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 27328 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 27329 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 27330 fi 27331 27332 # Use eval to expand a potential ~ 27333 eval path="$path" 27334 if test ! -f "$path" && test ! -d "$path"; then 27335 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 27336 fi 27337 27338 if test -d "$path"; then 27339 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 27340 else 27341 dir="`$DIRNAME "$path"`" 27342 base="`$BASENAME "$path"`" 27343 BOOT_JDK="`cd "$dir"; $THEPWDCMD -L`/$base" 27344 fi 27345 fi 27346 fi 27347 27348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 27349 $as_echo_n "checking for Boot JDK... " >&6; } 27350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 27351 $as_echo "$BOOT_JDK" >&6; } 27352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 27353 $as_echo_n "checking Boot JDK version... " >&6; } 27354 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 27355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 27356 $as_echo "$BOOT_JDK_VERSION" >&6; } 27357 fi # end check jdk version 27358 fi # end check javac 27359 fi # end check java 27360 fi # end check boot jdk found 27361 fi 27362 27363 27364 if test "x$BOOT_JDK_FOUND" = xno; then 27365 # Now execute the test 27366 27367 if test "x$PROGRAMFILES" != x; then 27368 VIRTUAL_DIR="$PROGRAMFILES/Java" 27369 27370 windows_path="$VIRTUAL_DIR" 27371 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 27372 unix_path=`$CYGPATH -u "$windows_path"` 27373 VIRTUAL_DIR="$unix_path" 27374 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 27375 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 27376 VIRTUAL_DIR="$unix_path" 27377 fi 27378 27379 27380 BOOT_JDK_PREFIX="$VIRTUAL_DIR" 27381 BOOT_JDK_SUFFIX="" 27382 ALL_JDKS_FOUND=`$LS "$BOOT_JDK_PREFIX" 2> /dev/null | $SORT -r` 27383 if test "x$ALL_JDKS_FOUND" != x; then 27384 for JDK_TO_TRY in $ALL_JDKS_FOUND ; do 27385 27386 if test "x$BOOT_JDK_FOUND" = xno; then 27387 # Now execute the test 27388 27389 BOOT_JDK="${BOOT_JDK_PREFIX}/${JDK_TO_TRY}${BOOT_JDK_SUFFIX}" 27390 if test -d "$BOOT_JDK"; then 27391 BOOT_JDK_FOUND=maybe 27392 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&5 27393 $as_echo "$as_me: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&6;} 27394 fi 27395 27396 27397 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 27398 if test "x$BOOT_JDK_FOUND" = xmaybe; then 27399 # Do we have a bin/java? 27400 if test ! -x "$BOOT_JDK/bin/java"; then 27401 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 27402 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 27403 BOOT_JDK_FOUND=no 27404 else 27405 # Do we have a bin/javac? 27406 if test ! -x "$BOOT_JDK/bin/javac"; then 27407 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 27408 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 27409 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 27410 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 27411 BOOT_JDK_FOUND=no 27412 else 27413 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 27414 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $HEAD -n 1` 27415 27416 # Extra M4 quote needed to protect [] in grep expression. 27417 FOUND_CORRECT_VERSION=`$ECHO $BOOT_JDK_VERSION | $EGREP '\"9([\.+-].*)?\"|(1\.[89]\.)'` 27418 if test "x$FOUND_CORRECT_VERSION" = x; then 27419 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 27420 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 27421 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5 27422 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;} 27423 BOOT_JDK_FOUND=no 27424 else 27425 # We're done! :-) 27426 BOOT_JDK_FOUND=yes 27427 27428 # Only process if variable expands to non-empty 27429 27430 if test "x$BOOT_JDK" != x; then 27431 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 27432 27433 # Input might be given as Windows format, start by converting to 27434 # unix format. 27435 path="$BOOT_JDK" 27436 new_path=`$CYGPATH -u "$path"` 27437 27438 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 27439 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 27440 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 27441 # "foo.exe" is OK but "foo" is an error. 27442 # 27443 # This test is therefore slightly more accurate than "test -f" to check for file precense. 27444 # It is also a way to make sure we got the proper file name for the real test later on. 27445 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 27446 if test "x$test_shortpath" = x; then 27447 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 27448 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 27449 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 27450 fi 27451 27452 # Call helper function which possibly converts this using DOS-style short mode. 27453 # If so, the updated path is stored in $new_path. 27454 27455 input_path="$new_path" 27456 # Check if we need to convert this using DOS-style short mode. If the path 27457 # contains just simple characters, use it. Otherwise (spaces, weird characters), 27458 # take no chances and rewrite it. 27459 # Note: m4 eats our [], so we need to use [ and ] instead. 27460 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 27461 if test "x$has_forbidden_chars" != x; then 27462 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 27463 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 27464 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 27465 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 27466 # Going to short mode and back again did indeed matter. Since short mode is 27467 # case insensitive, let's make it lowercase to improve readability. 27468 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 27469 # Now convert it back to Unix-style (cygpath) 27470 input_path=`$CYGPATH -u "$shortmode_path"` 27471 new_path="$input_path" 27472 fi 27473 fi 27474 27475 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 27476 if test "x$test_cygdrive_prefix" = x; then 27477 # As a simple fix, exclude /usr/bin since it's not a real path. 27478 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 27479 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 27480 # a path prefixed by /cygdrive for fixpath to work. 27481 new_path="$CYGWIN_ROOT_PATH$input_path" 27482 fi 27483 fi 27484 27485 27486 if test "x$path" != "x$new_path"; then 27487 BOOT_JDK="$new_path" 27488 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 27489 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 27490 fi 27491 27492 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 27493 27494 path="$BOOT_JDK" 27495 has_colon=`$ECHO $path | $GREP ^.:` 27496 new_path="$path" 27497 if test "x$has_colon" = x; then 27498 # Not in mixed or Windows style, start by that. 27499 new_path=`cmd //c echo $path` 27500 fi 27501 27502 27503 input_path="$new_path" 27504 # Check if we need to convert this using DOS-style short mode. If the path 27505 # contains just simple characters, use it. Otherwise (spaces, weird characters), 27506 # take no chances and rewrite it. 27507 # Note: m4 eats our [], so we need to use [ and ] instead. 27508 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 27509 if test "x$has_forbidden_chars" != x; then 27510 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 27511 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 27512 fi 27513 27514 27515 windows_path="$new_path" 27516 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 27517 unix_path=`$CYGPATH -u "$windows_path"` 27518 new_path="$unix_path" 27519 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 27520 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 27521 new_path="$unix_path" 27522 fi 27523 27524 if test "x$path" != "x$new_path"; then 27525 BOOT_JDK="$new_path" 27526 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 27527 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 27528 fi 27529 27530 # Save the first 10 bytes of this path to the storage, so fixpath can work. 27531 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 27532 27533 else 27534 # We're on a unix platform. Hooray! :) 27535 path="$BOOT_JDK" 27536 has_space=`$ECHO "$path" | $GREP " "` 27537 if test "x$has_space" != x; then 27538 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 27539 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 27540 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 27541 fi 27542 27543 # Use eval to expand a potential ~ 27544 eval path="$path" 27545 if test ! -f "$path" && test ! -d "$path"; then 27546 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 27547 fi 27548 27549 if test -d "$path"; then 27550 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 27551 else 27552 dir="`$DIRNAME "$path"`" 27553 base="`$BASENAME "$path"`" 27554 BOOT_JDK="`cd "$dir"; $THEPWDCMD -L`/$base" 27555 fi 27556 fi 27557 fi 27558 27559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 27560 $as_echo_n "checking for Boot JDK... " >&6; } 27561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 27562 $as_echo "$BOOT_JDK" >&6; } 27563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 27564 $as_echo_n "checking Boot JDK version... " >&6; } 27565 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 27566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 27567 $as_echo "$BOOT_JDK_VERSION" >&6; } 27568 fi # end check jdk version 27569 fi # end check javac 27570 fi # end check java 27571 fi # end check boot jdk found 27572 fi 27573 27574 done 27575 fi 27576 27577 fi 27578 27579 27580 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 27581 if test "x$BOOT_JDK_FOUND" = xmaybe; then 27582 # Do we have a bin/java? 27583 if test ! -x "$BOOT_JDK/bin/java"; then 27584 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 27585 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 27586 BOOT_JDK_FOUND=no 27587 else 27588 # Do we have a bin/javac? 27589 if test ! -x "$BOOT_JDK/bin/javac"; then 27590 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 27591 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 27592 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 27593 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 27594 BOOT_JDK_FOUND=no 27595 else 27596 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 27597 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $HEAD -n 1` 27598 27599 # Extra M4 quote needed to protect [] in grep expression. 27600 FOUND_CORRECT_VERSION=`$ECHO $BOOT_JDK_VERSION | $EGREP '\"9([\.+-].*)?\"|(1\.[89]\.)'` 27601 if test "x$FOUND_CORRECT_VERSION" = x; then 27602 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 27603 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 27604 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5 27605 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;} 27606 BOOT_JDK_FOUND=no 27607 else 27608 # We're done! :-) 27609 BOOT_JDK_FOUND=yes 27610 27611 # Only process if variable expands to non-empty 27612 27613 if test "x$BOOT_JDK" != x; then 27614 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 27615 27616 # Input might be given as Windows format, start by converting to 27617 # unix format. 27618 path="$BOOT_JDK" 27619 new_path=`$CYGPATH -u "$path"` 27620 27621 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 27622 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 27623 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 27624 # "foo.exe" is OK but "foo" is an error. 27625 # 27626 # This test is therefore slightly more accurate than "test -f" to check for file precense. 27627 # It is also a way to make sure we got the proper file name for the real test later on. 27628 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 27629 if test "x$test_shortpath" = x; then 27630 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 27631 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 27632 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 27633 fi 27634 27635 # Call helper function which possibly converts this using DOS-style short mode. 27636 # If so, the updated path is stored in $new_path. 27637 27638 input_path="$new_path" 27639 # Check if we need to convert this using DOS-style short mode. If the path 27640 # contains just simple characters, use it. Otherwise (spaces, weird characters), 27641 # take no chances and rewrite it. 27642 # Note: m4 eats our [], so we need to use [ and ] instead. 27643 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 27644 if test "x$has_forbidden_chars" != x; then 27645 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 27646 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 27647 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 27648 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 27649 # Going to short mode and back again did indeed matter. Since short mode is 27650 # case insensitive, let's make it lowercase to improve readability. 27651 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 27652 # Now convert it back to Unix-style (cygpath) 27653 input_path=`$CYGPATH -u "$shortmode_path"` 27654 new_path="$input_path" 27655 fi 27656 fi 27657 27658 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 27659 if test "x$test_cygdrive_prefix" = x; then 27660 # As a simple fix, exclude /usr/bin since it's not a real path. 27661 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 27662 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 27663 # a path prefixed by /cygdrive for fixpath to work. 27664 new_path="$CYGWIN_ROOT_PATH$input_path" 27665 fi 27666 fi 27667 27668 27669 if test "x$path" != "x$new_path"; then 27670 BOOT_JDK="$new_path" 27671 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 27672 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 27673 fi 27674 27675 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 27676 27677 path="$BOOT_JDK" 27678 has_colon=`$ECHO $path | $GREP ^.:` 27679 new_path="$path" 27680 if test "x$has_colon" = x; then 27681 # Not in mixed or Windows style, start by that. 27682 new_path=`cmd //c echo $path` 27683 fi 27684 27685 27686 input_path="$new_path" 27687 # Check if we need to convert this using DOS-style short mode. If the path 27688 # contains just simple characters, use it. Otherwise (spaces, weird characters), 27689 # take no chances and rewrite it. 27690 # Note: m4 eats our [], so we need to use [ and ] instead. 27691 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 27692 if test "x$has_forbidden_chars" != x; then 27693 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 27694 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 27695 fi 27696 27697 27698 windows_path="$new_path" 27699 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 27700 unix_path=`$CYGPATH -u "$windows_path"` 27701 new_path="$unix_path" 27702 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 27703 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 27704 new_path="$unix_path" 27705 fi 27706 27707 if test "x$path" != "x$new_path"; then 27708 BOOT_JDK="$new_path" 27709 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 27710 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 27711 fi 27712 27713 # Save the first 10 bytes of this path to the storage, so fixpath can work. 27714 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 27715 27716 else 27717 # We're on a unix platform. Hooray! :) 27718 path="$BOOT_JDK" 27719 has_space=`$ECHO "$path" | $GREP " "` 27720 if test "x$has_space" != x; then 27721 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 27722 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 27723 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 27724 fi 27725 27726 # Use eval to expand a potential ~ 27727 eval path="$path" 27728 if test ! -f "$path" && test ! -d "$path"; then 27729 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 27730 fi 27731 27732 if test -d "$path"; then 27733 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 27734 else 27735 dir="`$DIRNAME "$path"`" 27736 base="`$BASENAME "$path"`" 27737 BOOT_JDK="`cd "$dir"; $THEPWDCMD -L`/$base" 27738 fi 27739 fi 27740 fi 27741 27742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 27743 $as_echo_n "checking for Boot JDK... " >&6; } 27744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 27745 $as_echo "$BOOT_JDK" >&6; } 27746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 27747 $as_echo_n "checking Boot JDK version... " >&6; } 27748 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 27749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 27750 $as_echo "$BOOT_JDK_VERSION" >&6; } 27751 fi # end check jdk version 27752 fi # end check javac 27753 fi # end check java 27754 fi # end check boot jdk found 27755 fi 27756 27757 27758 if test "x$BOOT_JDK_FOUND" = xno; then 27759 # Now execute the test 27760 27761 if test "x$ProgramFiles" != x; then 27762 VIRTUAL_DIR="$ProgramFiles/Java" 27763 27764 windows_path="$VIRTUAL_DIR" 27765 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 27766 unix_path=`$CYGPATH -u "$windows_path"` 27767 VIRTUAL_DIR="$unix_path" 27768 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 27769 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 27770 VIRTUAL_DIR="$unix_path" 27771 fi 27772 27773 27774 BOOT_JDK_PREFIX="$VIRTUAL_DIR" 27775 BOOT_JDK_SUFFIX="" 27776 ALL_JDKS_FOUND=`$LS "$BOOT_JDK_PREFIX" 2> /dev/null | $SORT -r` 27777 if test "x$ALL_JDKS_FOUND" != x; then 27778 for JDK_TO_TRY in $ALL_JDKS_FOUND ; do 27779 27780 if test "x$BOOT_JDK_FOUND" = xno; then 27781 # Now execute the test 27782 27783 BOOT_JDK="${BOOT_JDK_PREFIX}/${JDK_TO_TRY}${BOOT_JDK_SUFFIX}" 27784 if test -d "$BOOT_JDK"; then 27785 BOOT_JDK_FOUND=maybe 27786 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&5 27787 $as_echo "$as_me: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&6;} 27788 fi 27789 27790 27791 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 27792 if test "x$BOOT_JDK_FOUND" = xmaybe; then 27793 # Do we have a bin/java? 27794 if test ! -x "$BOOT_JDK/bin/java"; then 27795 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 27796 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 27797 BOOT_JDK_FOUND=no 27798 else 27799 # Do we have a bin/javac? 27800 if test ! -x "$BOOT_JDK/bin/javac"; then 27801 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 27802 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 27803 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 27804 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 27805 BOOT_JDK_FOUND=no 27806 else 27807 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 27808 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $HEAD -n 1` 27809 27810 # Extra M4 quote needed to protect [] in grep expression. 27811 FOUND_CORRECT_VERSION=`$ECHO $BOOT_JDK_VERSION | $EGREP '\"9([\.+-].*)?\"|(1\.[89]\.)'` 27812 if test "x$FOUND_CORRECT_VERSION" = x; then 27813 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 27814 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 27815 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5 27816 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;} 27817 BOOT_JDK_FOUND=no 27818 else 27819 # We're done! :-) 27820 BOOT_JDK_FOUND=yes 27821 27822 # Only process if variable expands to non-empty 27823 27824 if test "x$BOOT_JDK" != x; then 27825 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 27826 27827 # Input might be given as Windows format, start by converting to 27828 # unix format. 27829 path="$BOOT_JDK" 27830 new_path=`$CYGPATH -u "$path"` 27831 27832 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 27833 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 27834 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 27835 # "foo.exe" is OK but "foo" is an error. 27836 # 27837 # This test is therefore slightly more accurate than "test -f" to check for file precense. 27838 # It is also a way to make sure we got the proper file name for the real test later on. 27839 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 27840 if test "x$test_shortpath" = x; then 27841 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 27842 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 27843 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 27844 fi 27845 27846 # Call helper function which possibly converts this using DOS-style short mode. 27847 # If so, the updated path is stored in $new_path. 27848 27849 input_path="$new_path" 27850 # Check if we need to convert this using DOS-style short mode. If the path 27851 # contains just simple characters, use it. Otherwise (spaces, weird characters), 27852 # take no chances and rewrite it. 27853 # Note: m4 eats our [], so we need to use [ and ] instead. 27854 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 27855 if test "x$has_forbidden_chars" != x; then 27856 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 27857 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 27858 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 27859 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 27860 # Going to short mode and back again did indeed matter. Since short mode is 27861 # case insensitive, let's make it lowercase to improve readability. 27862 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 27863 # Now convert it back to Unix-style (cygpath) 27864 input_path=`$CYGPATH -u "$shortmode_path"` 27865 new_path="$input_path" 27866 fi 27867 fi 27868 27869 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 27870 if test "x$test_cygdrive_prefix" = x; then 27871 # As a simple fix, exclude /usr/bin since it's not a real path. 27872 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 27873 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 27874 # a path prefixed by /cygdrive for fixpath to work. 27875 new_path="$CYGWIN_ROOT_PATH$input_path" 27876 fi 27877 fi 27878 27879 27880 if test "x$path" != "x$new_path"; then 27881 BOOT_JDK="$new_path" 27882 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 27883 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 27884 fi 27885 27886 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 27887 27888 path="$BOOT_JDK" 27889 has_colon=`$ECHO $path | $GREP ^.:` 27890 new_path="$path" 27891 if test "x$has_colon" = x; then 27892 # Not in mixed or Windows style, start by that. 27893 new_path=`cmd //c echo $path` 27894 fi 27895 27896 27897 input_path="$new_path" 27898 # Check if we need to convert this using DOS-style short mode. If the path 27899 # contains just simple characters, use it. Otherwise (spaces, weird characters), 27900 # take no chances and rewrite it. 27901 # Note: m4 eats our [], so we need to use [ and ] instead. 27902 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 27903 if test "x$has_forbidden_chars" != x; then 27904 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 27905 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 27906 fi 27907 27908 27909 windows_path="$new_path" 27910 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 27911 unix_path=`$CYGPATH -u "$windows_path"` 27912 new_path="$unix_path" 27913 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 27914 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 27915 new_path="$unix_path" 27916 fi 27917 27918 if test "x$path" != "x$new_path"; then 27919 BOOT_JDK="$new_path" 27920 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 27921 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 27922 fi 27923 27924 # Save the first 10 bytes of this path to the storage, so fixpath can work. 27925 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 27926 27927 else 27928 # We're on a unix platform. Hooray! :) 27929 path="$BOOT_JDK" 27930 has_space=`$ECHO "$path" | $GREP " "` 27931 if test "x$has_space" != x; then 27932 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 27933 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 27934 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 27935 fi 27936 27937 # Use eval to expand a potential ~ 27938 eval path="$path" 27939 if test ! -f "$path" && test ! -d "$path"; then 27940 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 27941 fi 27942 27943 if test -d "$path"; then 27944 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 27945 else 27946 dir="`$DIRNAME "$path"`" 27947 base="`$BASENAME "$path"`" 27948 BOOT_JDK="`cd "$dir"; $THEPWDCMD -L`/$base" 27949 fi 27950 fi 27951 fi 27952 27953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 27954 $as_echo_n "checking for Boot JDK... " >&6; } 27955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 27956 $as_echo "$BOOT_JDK" >&6; } 27957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 27958 $as_echo_n "checking Boot JDK version... " >&6; } 27959 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 27960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 27961 $as_echo "$BOOT_JDK_VERSION" >&6; } 27962 fi # end check jdk version 27963 fi # end check javac 27964 fi # end check java 27965 fi # end check boot jdk found 27966 fi 27967 27968 done 27969 fi 27970 27971 fi 27972 27973 27974 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 27975 if test "x$BOOT_JDK_FOUND" = xmaybe; then 27976 # Do we have a bin/java? 27977 if test ! -x "$BOOT_JDK/bin/java"; then 27978 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 27979 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 27980 BOOT_JDK_FOUND=no 27981 else 27982 # Do we have a bin/javac? 27983 if test ! -x "$BOOT_JDK/bin/javac"; then 27984 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 27985 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 27986 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 27987 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 27988 BOOT_JDK_FOUND=no 27989 else 27990 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 27991 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $HEAD -n 1` 27992 27993 # Extra M4 quote needed to protect [] in grep expression. 27994 FOUND_CORRECT_VERSION=`$ECHO $BOOT_JDK_VERSION | $EGREP '\"9([\.+-].*)?\"|(1\.[89]\.)'` 27995 if test "x$FOUND_CORRECT_VERSION" = x; then 27996 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 27997 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 27998 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5 27999 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;} 28000 BOOT_JDK_FOUND=no 28001 else 28002 # We're done! :-) 28003 BOOT_JDK_FOUND=yes 28004 28005 # Only process if variable expands to non-empty 28006 28007 if test "x$BOOT_JDK" != x; then 28008 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 28009 28010 # Input might be given as Windows format, start by converting to 28011 # unix format. 28012 path="$BOOT_JDK" 28013 new_path=`$CYGPATH -u "$path"` 28014 28015 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 28016 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 28017 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 28018 # "foo.exe" is OK but "foo" is an error. 28019 # 28020 # This test is therefore slightly more accurate than "test -f" to check for file precense. 28021 # It is also a way to make sure we got the proper file name for the real test later on. 28022 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 28023 if test "x$test_shortpath" = x; then 28024 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 28025 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 28026 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 28027 fi 28028 28029 # Call helper function which possibly converts this using DOS-style short mode. 28030 # If so, the updated path is stored in $new_path. 28031 28032 input_path="$new_path" 28033 # Check if we need to convert this using DOS-style short mode. If the path 28034 # contains just simple characters, use it. Otherwise (spaces, weird characters), 28035 # take no chances and rewrite it. 28036 # Note: m4 eats our [], so we need to use [ and ] instead. 28037 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 28038 if test "x$has_forbidden_chars" != x; then 28039 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 28040 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 28041 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 28042 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 28043 # Going to short mode and back again did indeed matter. Since short mode is 28044 # case insensitive, let's make it lowercase to improve readability. 28045 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 28046 # Now convert it back to Unix-style (cygpath) 28047 input_path=`$CYGPATH -u "$shortmode_path"` 28048 new_path="$input_path" 28049 fi 28050 fi 28051 28052 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 28053 if test "x$test_cygdrive_prefix" = x; then 28054 # As a simple fix, exclude /usr/bin since it's not a real path. 28055 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 28056 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 28057 # a path prefixed by /cygdrive for fixpath to work. 28058 new_path="$CYGWIN_ROOT_PATH$input_path" 28059 fi 28060 fi 28061 28062 28063 if test "x$path" != "x$new_path"; then 28064 BOOT_JDK="$new_path" 28065 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 28066 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 28067 fi 28068 28069 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 28070 28071 path="$BOOT_JDK" 28072 has_colon=`$ECHO $path | $GREP ^.:` 28073 new_path="$path" 28074 if test "x$has_colon" = x; then 28075 # Not in mixed or Windows style, start by that. 28076 new_path=`cmd //c echo $path` 28077 fi 28078 28079 28080 input_path="$new_path" 28081 # Check if we need to convert this using DOS-style short mode. If the path 28082 # contains just simple characters, use it. Otherwise (spaces, weird characters), 28083 # take no chances and rewrite it. 28084 # Note: m4 eats our [], so we need to use [ and ] instead. 28085 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 28086 if test "x$has_forbidden_chars" != x; then 28087 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 28088 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 28089 fi 28090 28091 28092 windows_path="$new_path" 28093 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 28094 unix_path=`$CYGPATH -u "$windows_path"` 28095 new_path="$unix_path" 28096 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 28097 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 28098 new_path="$unix_path" 28099 fi 28100 28101 if test "x$path" != "x$new_path"; then 28102 BOOT_JDK="$new_path" 28103 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 28104 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 28105 fi 28106 28107 # Save the first 10 bytes of this path to the storage, so fixpath can work. 28108 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 28109 28110 else 28111 # We're on a unix platform. Hooray! :) 28112 path="$BOOT_JDK" 28113 has_space=`$ECHO "$path" | $GREP " "` 28114 if test "x$has_space" != x; then 28115 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 28116 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 28117 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 28118 fi 28119 28120 # Use eval to expand a potential ~ 28121 eval path="$path" 28122 if test ! -f "$path" && test ! -d "$path"; then 28123 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 28124 fi 28125 28126 if test -d "$path"; then 28127 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 28128 else 28129 dir="`$DIRNAME "$path"`" 28130 base="`$BASENAME "$path"`" 28131 BOOT_JDK="`cd "$dir"; $THEPWDCMD -L`/$base" 28132 fi 28133 fi 28134 fi 28135 28136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 28137 $as_echo_n "checking for Boot JDK... " >&6; } 28138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 28139 $as_echo "$BOOT_JDK" >&6; } 28140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 28141 $as_echo_n "checking Boot JDK version... " >&6; } 28142 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 28143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 28144 $as_echo "$BOOT_JDK_VERSION" >&6; } 28145 fi # end check jdk version 28146 fi # end check javac 28147 fi # end check java 28148 fi # end check boot jdk found 28149 fi 28150 28151 28152 if test "x$BOOT_JDK_FOUND" = xno; then 28153 # Now execute the test 28154 28155 BOOT_JDK_PREFIX="/cygdrive/c/Program Files/Java" 28156 BOOT_JDK_SUFFIX="" 28157 ALL_JDKS_FOUND=`$LS "$BOOT_JDK_PREFIX" 2> /dev/null | $SORT -r` 28158 if test "x$ALL_JDKS_FOUND" != x; then 28159 for JDK_TO_TRY in $ALL_JDKS_FOUND ; do 28160 28161 if test "x$BOOT_JDK_FOUND" = xno; then 28162 # Now execute the test 28163 28164 BOOT_JDK="${BOOT_JDK_PREFIX}/${JDK_TO_TRY}${BOOT_JDK_SUFFIX}" 28165 if test -d "$BOOT_JDK"; then 28166 BOOT_JDK_FOUND=maybe 28167 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&5 28168 $as_echo "$as_me: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&6;} 28169 fi 28170 28171 28172 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 28173 if test "x$BOOT_JDK_FOUND" = xmaybe; then 28174 # Do we have a bin/java? 28175 if test ! -x "$BOOT_JDK/bin/java"; then 28176 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 28177 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 28178 BOOT_JDK_FOUND=no 28179 else 28180 # Do we have a bin/javac? 28181 if test ! -x "$BOOT_JDK/bin/javac"; then 28182 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 28183 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 28184 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 28185 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 28186 BOOT_JDK_FOUND=no 28187 else 28188 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 28189 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $HEAD -n 1` 28190 28191 # Extra M4 quote needed to protect [] in grep expression. 28192 FOUND_CORRECT_VERSION=`$ECHO $BOOT_JDK_VERSION | $EGREP '\"9([\.+-].*)?\"|(1\.[89]\.)'` 28193 if test "x$FOUND_CORRECT_VERSION" = x; then 28194 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 28195 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 28196 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5 28197 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;} 28198 BOOT_JDK_FOUND=no 28199 else 28200 # We're done! :-) 28201 BOOT_JDK_FOUND=yes 28202 28203 # Only process if variable expands to non-empty 28204 28205 if test "x$BOOT_JDK" != x; then 28206 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 28207 28208 # Input might be given as Windows format, start by converting to 28209 # unix format. 28210 path="$BOOT_JDK" 28211 new_path=`$CYGPATH -u "$path"` 28212 28213 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 28214 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 28215 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 28216 # "foo.exe" is OK but "foo" is an error. 28217 # 28218 # This test is therefore slightly more accurate than "test -f" to check for file precense. 28219 # It is also a way to make sure we got the proper file name for the real test later on. 28220 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 28221 if test "x$test_shortpath" = x; then 28222 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 28223 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 28224 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 28225 fi 28226 28227 # Call helper function which possibly converts this using DOS-style short mode. 28228 # If so, the updated path is stored in $new_path. 28229 28230 input_path="$new_path" 28231 # Check if we need to convert this using DOS-style short mode. If the path 28232 # contains just simple characters, use it. Otherwise (spaces, weird characters), 28233 # take no chances and rewrite it. 28234 # Note: m4 eats our [], so we need to use [ and ] instead. 28235 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 28236 if test "x$has_forbidden_chars" != x; then 28237 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 28238 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 28239 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 28240 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 28241 # Going to short mode and back again did indeed matter. Since short mode is 28242 # case insensitive, let's make it lowercase to improve readability. 28243 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 28244 # Now convert it back to Unix-style (cygpath) 28245 input_path=`$CYGPATH -u "$shortmode_path"` 28246 new_path="$input_path" 28247 fi 28248 fi 28249 28250 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 28251 if test "x$test_cygdrive_prefix" = x; then 28252 # As a simple fix, exclude /usr/bin since it's not a real path. 28253 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 28254 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 28255 # a path prefixed by /cygdrive for fixpath to work. 28256 new_path="$CYGWIN_ROOT_PATH$input_path" 28257 fi 28258 fi 28259 28260 28261 if test "x$path" != "x$new_path"; then 28262 BOOT_JDK="$new_path" 28263 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 28264 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 28265 fi 28266 28267 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 28268 28269 path="$BOOT_JDK" 28270 has_colon=`$ECHO $path | $GREP ^.:` 28271 new_path="$path" 28272 if test "x$has_colon" = x; then 28273 # Not in mixed or Windows style, start by that. 28274 new_path=`cmd //c echo $path` 28275 fi 28276 28277 28278 input_path="$new_path" 28279 # Check if we need to convert this using DOS-style short mode. If the path 28280 # contains just simple characters, use it. Otherwise (spaces, weird characters), 28281 # take no chances and rewrite it. 28282 # Note: m4 eats our [], so we need to use [ and ] instead. 28283 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 28284 if test "x$has_forbidden_chars" != x; then 28285 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 28286 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 28287 fi 28288 28289 28290 windows_path="$new_path" 28291 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 28292 unix_path=`$CYGPATH -u "$windows_path"` 28293 new_path="$unix_path" 28294 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 28295 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 28296 new_path="$unix_path" 28297 fi 28298 28299 if test "x$path" != "x$new_path"; then 28300 BOOT_JDK="$new_path" 28301 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 28302 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 28303 fi 28304 28305 # Save the first 10 bytes of this path to the storage, so fixpath can work. 28306 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 28307 28308 else 28309 # We're on a unix platform. Hooray! :) 28310 path="$BOOT_JDK" 28311 has_space=`$ECHO "$path" | $GREP " "` 28312 if test "x$has_space" != x; then 28313 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 28314 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 28315 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 28316 fi 28317 28318 # Use eval to expand a potential ~ 28319 eval path="$path" 28320 if test ! -f "$path" && test ! -d "$path"; then 28321 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 28322 fi 28323 28324 if test -d "$path"; then 28325 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 28326 else 28327 dir="`$DIRNAME "$path"`" 28328 base="`$BASENAME "$path"`" 28329 BOOT_JDK="`cd "$dir"; $THEPWDCMD -L`/$base" 28330 fi 28331 fi 28332 fi 28333 28334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 28335 $as_echo_n "checking for Boot JDK... " >&6; } 28336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 28337 $as_echo "$BOOT_JDK" >&6; } 28338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 28339 $as_echo_n "checking Boot JDK version... " >&6; } 28340 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 28341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 28342 $as_echo "$BOOT_JDK_VERSION" >&6; } 28343 fi # end check jdk version 28344 fi # end check javac 28345 fi # end check java 28346 fi # end check boot jdk found 28347 fi 28348 28349 done 28350 fi 28351 28352 28353 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 28354 if test "x$BOOT_JDK_FOUND" = xmaybe; then 28355 # Do we have a bin/java? 28356 if test ! -x "$BOOT_JDK/bin/java"; then 28357 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 28358 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 28359 BOOT_JDK_FOUND=no 28360 else 28361 # Do we have a bin/javac? 28362 if test ! -x "$BOOT_JDK/bin/javac"; then 28363 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 28364 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 28365 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 28366 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 28367 BOOT_JDK_FOUND=no 28368 else 28369 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 28370 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $HEAD -n 1` 28371 28372 # Extra M4 quote needed to protect [] in grep expression. 28373 FOUND_CORRECT_VERSION=`$ECHO $BOOT_JDK_VERSION | $EGREP '\"9([\.+-].*)?\"|(1\.[89]\.)'` 28374 if test "x$FOUND_CORRECT_VERSION" = x; then 28375 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 28376 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 28377 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5 28378 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;} 28379 BOOT_JDK_FOUND=no 28380 else 28381 # We're done! :-) 28382 BOOT_JDK_FOUND=yes 28383 28384 # Only process if variable expands to non-empty 28385 28386 if test "x$BOOT_JDK" != x; then 28387 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 28388 28389 # Input might be given as Windows format, start by converting to 28390 # unix format. 28391 path="$BOOT_JDK" 28392 new_path=`$CYGPATH -u "$path"` 28393 28394 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 28395 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 28396 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 28397 # "foo.exe" is OK but "foo" is an error. 28398 # 28399 # This test is therefore slightly more accurate than "test -f" to check for file precense. 28400 # It is also a way to make sure we got the proper file name for the real test later on. 28401 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 28402 if test "x$test_shortpath" = x; then 28403 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 28404 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 28405 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 28406 fi 28407 28408 # Call helper function which possibly converts this using DOS-style short mode. 28409 # If so, the updated path is stored in $new_path. 28410 28411 input_path="$new_path" 28412 # Check if we need to convert this using DOS-style short mode. If the path 28413 # contains just simple characters, use it. Otherwise (spaces, weird characters), 28414 # take no chances and rewrite it. 28415 # Note: m4 eats our [], so we need to use [ and ] instead. 28416 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 28417 if test "x$has_forbidden_chars" != x; then 28418 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 28419 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 28420 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 28421 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 28422 # Going to short mode and back again did indeed matter. Since short mode is 28423 # case insensitive, let's make it lowercase to improve readability. 28424 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 28425 # Now convert it back to Unix-style (cygpath) 28426 input_path=`$CYGPATH -u "$shortmode_path"` 28427 new_path="$input_path" 28428 fi 28429 fi 28430 28431 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 28432 if test "x$test_cygdrive_prefix" = x; then 28433 # As a simple fix, exclude /usr/bin since it's not a real path. 28434 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 28435 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 28436 # a path prefixed by /cygdrive for fixpath to work. 28437 new_path="$CYGWIN_ROOT_PATH$input_path" 28438 fi 28439 fi 28440 28441 28442 if test "x$path" != "x$new_path"; then 28443 BOOT_JDK="$new_path" 28444 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 28445 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 28446 fi 28447 28448 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 28449 28450 path="$BOOT_JDK" 28451 has_colon=`$ECHO $path | $GREP ^.:` 28452 new_path="$path" 28453 if test "x$has_colon" = x; then 28454 # Not in mixed or Windows style, start by that. 28455 new_path=`cmd //c echo $path` 28456 fi 28457 28458 28459 input_path="$new_path" 28460 # Check if we need to convert this using DOS-style short mode. If the path 28461 # contains just simple characters, use it. Otherwise (spaces, weird characters), 28462 # take no chances and rewrite it. 28463 # Note: m4 eats our [], so we need to use [ and ] instead. 28464 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 28465 if test "x$has_forbidden_chars" != x; then 28466 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 28467 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 28468 fi 28469 28470 28471 windows_path="$new_path" 28472 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 28473 unix_path=`$CYGPATH -u "$windows_path"` 28474 new_path="$unix_path" 28475 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 28476 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 28477 new_path="$unix_path" 28478 fi 28479 28480 if test "x$path" != "x$new_path"; then 28481 BOOT_JDK="$new_path" 28482 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 28483 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 28484 fi 28485 28486 # Save the first 10 bytes of this path to the storage, so fixpath can work. 28487 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 28488 28489 else 28490 # We're on a unix platform. Hooray! :) 28491 path="$BOOT_JDK" 28492 has_space=`$ECHO "$path" | $GREP " "` 28493 if test "x$has_space" != x; then 28494 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 28495 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 28496 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 28497 fi 28498 28499 # Use eval to expand a potential ~ 28500 eval path="$path" 28501 if test ! -f "$path" && test ! -d "$path"; then 28502 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 28503 fi 28504 28505 if test -d "$path"; then 28506 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 28507 else 28508 dir="`$DIRNAME "$path"`" 28509 base="`$BASENAME "$path"`" 28510 BOOT_JDK="`cd "$dir"; $THEPWDCMD -L`/$base" 28511 fi 28512 fi 28513 fi 28514 28515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 28516 $as_echo_n "checking for Boot JDK... " >&6; } 28517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 28518 $as_echo "$BOOT_JDK" >&6; } 28519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 28520 $as_echo_n "checking Boot JDK version... " >&6; } 28521 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 28522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 28523 $as_echo "$BOOT_JDK_VERSION" >&6; } 28524 fi # end check jdk version 28525 fi # end check javac 28526 fi # end check java 28527 fi # end check boot jdk found 28528 fi 28529 28530 elif test "x$OPENJDK_TARGET_OS" = xmacosx; then 28531 28532 if test "x$BOOT_JDK_FOUND" = xno; then 28533 # Now execute the test 28534 28535 BOOT_JDK_PREFIX="/Library/Java/JavaVirtualMachines" 28536 BOOT_JDK_SUFFIX="/Contents/Home" 28537 ALL_JDKS_FOUND=`$LS "$BOOT_JDK_PREFIX" 2> /dev/null | $SORT -r` 28538 if test "x$ALL_JDKS_FOUND" != x; then 28539 for JDK_TO_TRY in $ALL_JDKS_FOUND ; do 28540 28541 if test "x$BOOT_JDK_FOUND" = xno; then 28542 # Now execute the test 28543 28544 BOOT_JDK="${BOOT_JDK_PREFIX}/${JDK_TO_TRY}${BOOT_JDK_SUFFIX}" 28545 if test -d "$BOOT_JDK"; then 28546 BOOT_JDK_FOUND=maybe 28547 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&5 28548 $as_echo "$as_me: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&6;} 28549 fi 28550 28551 28552 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 28553 if test "x$BOOT_JDK_FOUND" = xmaybe; then 28554 # Do we have a bin/java? 28555 if test ! -x "$BOOT_JDK/bin/java"; then 28556 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 28557 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 28558 BOOT_JDK_FOUND=no 28559 else 28560 # Do we have a bin/javac? 28561 if test ! -x "$BOOT_JDK/bin/javac"; then 28562 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 28563 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 28564 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 28565 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 28566 BOOT_JDK_FOUND=no 28567 else 28568 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 28569 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $HEAD -n 1` 28570 28571 # Extra M4 quote needed to protect [] in grep expression. 28572 FOUND_CORRECT_VERSION=`$ECHO $BOOT_JDK_VERSION | $EGREP '\"9([\.+-].*)?\"|(1\.[89]\.)'` 28573 if test "x$FOUND_CORRECT_VERSION" = x; then 28574 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 28575 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 28576 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5 28577 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;} 28578 BOOT_JDK_FOUND=no 28579 else 28580 # We're done! :-) 28581 BOOT_JDK_FOUND=yes 28582 28583 # Only process if variable expands to non-empty 28584 28585 if test "x$BOOT_JDK" != x; then 28586 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 28587 28588 # Input might be given as Windows format, start by converting to 28589 # unix format. 28590 path="$BOOT_JDK" 28591 new_path=`$CYGPATH -u "$path"` 28592 28593 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 28594 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 28595 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 28596 # "foo.exe" is OK but "foo" is an error. 28597 # 28598 # This test is therefore slightly more accurate than "test -f" to check for file precense. 28599 # It is also a way to make sure we got the proper file name for the real test later on. 28600 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 28601 if test "x$test_shortpath" = x; then 28602 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 28603 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 28604 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 28605 fi 28606 28607 # Call helper function which possibly converts this using DOS-style short mode. 28608 # If so, the updated path is stored in $new_path. 28609 28610 input_path="$new_path" 28611 # Check if we need to convert this using DOS-style short mode. If the path 28612 # contains just simple characters, use it. Otherwise (spaces, weird characters), 28613 # take no chances and rewrite it. 28614 # Note: m4 eats our [], so we need to use [ and ] instead. 28615 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 28616 if test "x$has_forbidden_chars" != x; then 28617 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 28618 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 28619 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 28620 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 28621 # Going to short mode and back again did indeed matter. Since short mode is 28622 # case insensitive, let's make it lowercase to improve readability. 28623 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 28624 # Now convert it back to Unix-style (cygpath) 28625 input_path=`$CYGPATH -u "$shortmode_path"` 28626 new_path="$input_path" 28627 fi 28628 fi 28629 28630 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 28631 if test "x$test_cygdrive_prefix" = x; then 28632 # As a simple fix, exclude /usr/bin since it's not a real path. 28633 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 28634 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 28635 # a path prefixed by /cygdrive for fixpath to work. 28636 new_path="$CYGWIN_ROOT_PATH$input_path" 28637 fi 28638 fi 28639 28640 28641 if test "x$path" != "x$new_path"; then 28642 BOOT_JDK="$new_path" 28643 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 28644 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 28645 fi 28646 28647 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 28648 28649 path="$BOOT_JDK" 28650 has_colon=`$ECHO $path | $GREP ^.:` 28651 new_path="$path" 28652 if test "x$has_colon" = x; then 28653 # Not in mixed or Windows style, start by that. 28654 new_path=`cmd //c echo $path` 28655 fi 28656 28657 28658 input_path="$new_path" 28659 # Check if we need to convert this using DOS-style short mode. If the path 28660 # contains just simple characters, use it. Otherwise (spaces, weird characters), 28661 # take no chances and rewrite it. 28662 # Note: m4 eats our [], so we need to use [ and ] instead. 28663 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 28664 if test "x$has_forbidden_chars" != x; then 28665 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 28666 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 28667 fi 28668 28669 28670 windows_path="$new_path" 28671 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 28672 unix_path=`$CYGPATH -u "$windows_path"` 28673 new_path="$unix_path" 28674 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 28675 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 28676 new_path="$unix_path" 28677 fi 28678 28679 if test "x$path" != "x$new_path"; then 28680 BOOT_JDK="$new_path" 28681 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 28682 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 28683 fi 28684 28685 # Save the first 10 bytes of this path to the storage, so fixpath can work. 28686 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 28687 28688 else 28689 # We're on a unix platform. Hooray! :) 28690 path="$BOOT_JDK" 28691 has_space=`$ECHO "$path" | $GREP " "` 28692 if test "x$has_space" != x; then 28693 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 28694 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 28695 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 28696 fi 28697 28698 # Use eval to expand a potential ~ 28699 eval path="$path" 28700 if test ! -f "$path" && test ! -d "$path"; then 28701 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 28702 fi 28703 28704 if test -d "$path"; then 28705 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 28706 else 28707 dir="`$DIRNAME "$path"`" 28708 base="`$BASENAME "$path"`" 28709 BOOT_JDK="`cd "$dir"; $THEPWDCMD -L`/$base" 28710 fi 28711 fi 28712 fi 28713 28714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 28715 $as_echo_n "checking for Boot JDK... " >&6; } 28716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 28717 $as_echo "$BOOT_JDK" >&6; } 28718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 28719 $as_echo_n "checking Boot JDK version... " >&6; } 28720 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 28721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 28722 $as_echo "$BOOT_JDK_VERSION" >&6; } 28723 fi # end check jdk version 28724 fi # end check javac 28725 fi # end check java 28726 fi # end check boot jdk found 28727 fi 28728 28729 done 28730 fi 28731 28732 28733 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 28734 if test "x$BOOT_JDK_FOUND" = xmaybe; then 28735 # Do we have a bin/java? 28736 if test ! -x "$BOOT_JDK/bin/java"; then 28737 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 28738 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 28739 BOOT_JDK_FOUND=no 28740 else 28741 # Do we have a bin/javac? 28742 if test ! -x "$BOOT_JDK/bin/javac"; then 28743 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 28744 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 28745 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 28746 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 28747 BOOT_JDK_FOUND=no 28748 else 28749 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 28750 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $HEAD -n 1` 28751 28752 # Extra M4 quote needed to protect [] in grep expression. 28753 FOUND_CORRECT_VERSION=`$ECHO $BOOT_JDK_VERSION | $EGREP '\"9([\.+-].*)?\"|(1\.[89]\.)'` 28754 if test "x$FOUND_CORRECT_VERSION" = x; then 28755 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 28756 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 28757 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5 28758 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;} 28759 BOOT_JDK_FOUND=no 28760 else 28761 # We're done! :-) 28762 BOOT_JDK_FOUND=yes 28763 28764 # Only process if variable expands to non-empty 28765 28766 if test "x$BOOT_JDK" != x; then 28767 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 28768 28769 # Input might be given as Windows format, start by converting to 28770 # unix format. 28771 path="$BOOT_JDK" 28772 new_path=`$CYGPATH -u "$path"` 28773 28774 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 28775 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 28776 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 28777 # "foo.exe" is OK but "foo" is an error. 28778 # 28779 # This test is therefore slightly more accurate than "test -f" to check for file precense. 28780 # It is also a way to make sure we got the proper file name for the real test later on. 28781 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 28782 if test "x$test_shortpath" = x; then 28783 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 28784 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 28785 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 28786 fi 28787 28788 # Call helper function which possibly converts this using DOS-style short mode. 28789 # If so, the updated path is stored in $new_path. 28790 28791 input_path="$new_path" 28792 # Check if we need to convert this using DOS-style short mode. If the path 28793 # contains just simple characters, use it. Otherwise (spaces, weird characters), 28794 # take no chances and rewrite it. 28795 # Note: m4 eats our [], so we need to use [ and ] instead. 28796 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 28797 if test "x$has_forbidden_chars" != x; then 28798 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 28799 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 28800 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 28801 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 28802 # Going to short mode and back again did indeed matter. Since short mode is 28803 # case insensitive, let's make it lowercase to improve readability. 28804 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 28805 # Now convert it back to Unix-style (cygpath) 28806 input_path=`$CYGPATH -u "$shortmode_path"` 28807 new_path="$input_path" 28808 fi 28809 fi 28810 28811 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 28812 if test "x$test_cygdrive_prefix" = x; then 28813 # As a simple fix, exclude /usr/bin since it's not a real path. 28814 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 28815 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 28816 # a path prefixed by /cygdrive for fixpath to work. 28817 new_path="$CYGWIN_ROOT_PATH$input_path" 28818 fi 28819 fi 28820 28821 28822 if test "x$path" != "x$new_path"; then 28823 BOOT_JDK="$new_path" 28824 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 28825 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 28826 fi 28827 28828 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 28829 28830 path="$BOOT_JDK" 28831 has_colon=`$ECHO $path | $GREP ^.:` 28832 new_path="$path" 28833 if test "x$has_colon" = x; then 28834 # Not in mixed or Windows style, start by that. 28835 new_path=`cmd //c echo $path` 28836 fi 28837 28838 28839 input_path="$new_path" 28840 # Check if we need to convert this using DOS-style short mode. If the path 28841 # contains just simple characters, use it. Otherwise (spaces, weird characters), 28842 # take no chances and rewrite it. 28843 # Note: m4 eats our [], so we need to use [ and ] instead. 28844 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 28845 if test "x$has_forbidden_chars" != x; then 28846 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 28847 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 28848 fi 28849 28850 28851 windows_path="$new_path" 28852 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 28853 unix_path=`$CYGPATH -u "$windows_path"` 28854 new_path="$unix_path" 28855 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 28856 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 28857 new_path="$unix_path" 28858 fi 28859 28860 if test "x$path" != "x$new_path"; then 28861 BOOT_JDK="$new_path" 28862 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 28863 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 28864 fi 28865 28866 # Save the first 10 bytes of this path to the storage, so fixpath can work. 28867 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 28868 28869 else 28870 # We're on a unix platform. Hooray! :) 28871 path="$BOOT_JDK" 28872 has_space=`$ECHO "$path" | $GREP " "` 28873 if test "x$has_space" != x; then 28874 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 28875 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 28876 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 28877 fi 28878 28879 # Use eval to expand a potential ~ 28880 eval path="$path" 28881 if test ! -f "$path" && test ! -d "$path"; then 28882 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 28883 fi 28884 28885 if test -d "$path"; then 28886 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 28887 else 28888 dir="`$DIRNAME "$path"`" 28889 base="`$BASENAME "$path"`" 28890 BOOT_JDK="`cd "$dir"; $THEPWDCMD -L`/$base" 28891 fi 28892 fi 28893 fi 28894 28895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 28896 $as_echo_n "checking for Boot JDK... " >&6; } 28897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 28898 $as_echo "$BOOT_JDK" >&6; } 28899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 28900 $as_echo_n "checking Boot JDK version... " >&6; } 28901 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 28902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 28903 $as_echo "$BOOT_JDK_VERSION" >&6; } 28904 fi # end check jdk version 28905 fi # end check javac 28906 fi # end check java 28907 fi # end check boot jdk found 28908 fi 28909 28910 28911 if test "x$BOOT_JDK_FOUND" = xno; then 28912 # Now execute the test 28913 28914 BOOT_JDK_PREFIX="/System/Library/Java/JavaVirtualMachines" 28915 BOOT_JDK_SUFFIX="/Contents/Home" 28916 ALL_JDKS_FOUND=`$LS "$BOOT_JDK_PREFIX" 2> /dev/null | $SORT -r` 28917 if test "x$ALL_JDKS_FOUND" != x; then 28918 for JDK_TO_TRY in $ALL_JDKS_FOUND ; do 28919 28920 if test "x$BOOT_JDK_FOUND" = xno; then 28921 # Now execute the test 28922 28923 BOOT_JDK="${BOOT_JDK_PREFIX}/${JDK_TO_TRY}${BOOT_JDK_SUFFIX}" 28924 if test -d "$BOOT_JDK"; then 28925 BOOT_JDK_FOUND=maybe 28926 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&5 28927 $as_echo "$as_me: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&6;} 28928 fi 28929 28930 28931 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 28932 if test "x$BOOT_JDK_FOUND" = xmaybe; then 28933 # Do we have a bin/java? 28934 if test ! -x "$BOOT_JDK/bin/java"; then 28935 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 28936 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 28937 BOOT_JDK_FOUND=no 28938 else 28939 # Do we have a bin/javac? 28940 if test ! -x "$BOOT_JDK/bin/javac"; then 28941 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 28942 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 28943 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 28944 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 28945 BOOT_JDK_FOUND=no 28946 else 28947 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 28948 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $HEAD -n 1` 28949 28950 # Extra M4 quote needed to protect [] in grep expression. 28951 FOUND_CORRECT_VERSION=`$ECHO $BOOT_JDK_VERSION | $EGREP '\"9([\.+-].*)?\"|(1\.[89]\.)'` 28952 if test "x$FOUND_CORRECT_VERSION" = x; then 28953 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 28954 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 28955 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5 28956 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;} 28957 BOOT_JDK_FOUND=no 28958 else 28959 # We're done! :-) 28960 BOOT_JDK_FOUND=yes 28961 28962 # Only process if variable expands to non-empty 28963 28964 if test "x$BOOT_JDK" != x; then 28965 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 28966 28967 # Input might be given as Windows format, start by converting to 28968 # unix format. 28969 path="$BOOT_JDK" 28970 new_path=`$CYGPATH -u "$path"` 28971 28972 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 28973 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 28974 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 28975 # "foo.exe" is OK but "foo" is an error. 28976 # 28977 # This test is therefore slightly more accurate than "test -f" to check for file precense. 28978 # It is also a way to make sure we got the proper file name for the real test later on. 28979 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 28980 if test "x$test_shortpath" = x; then 28981 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 28982 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 28983 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 28984 fi 28985 28986 # Call helper function which possibly converts this using DOS-style short mode. 28987 # If so, the updated path is stored in $new_path. 28988 28989 input_path="$new_path" 28990 # Check if we need to convert this using DOS-style short mode. If the path 28991 # contains just simple characters, use it. Otherwise (spaces, weird characters), 28992 # take no chances and rewrite it. 28993 # Note: m4 eats our [], so we need to use [ and ] instead. 28994 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 28995 if test "x$has_forbidden_chars" != x; then 28996 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 28997 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 28998 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 28999 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 29000 # Going to short mode and back again did indeed matter. Since short mode is 29001 # case insensitive, let's make it lowercase to improve readability. 29002 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 29003 # Now convert it back to Unix-style (cygpath) 29004 input_path=`$CYGPATH -u "$shortmode_path"` 29005 new_path="$input_path" 29006 fi 29007 fi 29008 29009 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 29010 if test "x$test_cygdrive_prefix" = x; then 29011 # As a simple fix, exclude /usr/bin since it's not a real path. 29012 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 29013 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 29014 # a path prefixed by /cygdrive for fixpath to work. 29015 new_path="$CYGWIN_ROOT_PATH$input_path" 29016 fi 29017 fi 29018 29019 29020 if test "x$path" != "x$new_path"; then 29021 BOOT_JDK="$new_path" 29022 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 29023 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 29024 fi 29025 29026 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 29027 29028 path="$BOOT_JDK" 29029 has_colon=`$ECHO $path | $GREP ^.:` 29030 new_path="$path" 29031 if test "x$has_colon" = x; then 29032 # Not in mixed or Windows style, start by that. 29033 new_path=`cmd //c echo $path` 29034 fi 29035 29036 29037 input_path="$new_path" 29038 # Check if we need to convert this using DOS-style short mode. If the path 29039 # contains just simple characters, use it. Otherwise (spaces, weird characters), 29040 # take no chances and rewrite it. 29041 # Note: m4 eats our [], so we need to use [ and ] instead. 29042 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 29043 if test "x$has_forbidden_chars" != x; then 29044 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 29045 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 29046 fi 29047 29048 29049 windows_path="$new_path" 29050 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 29051 unix_path=`$CYGPATH -u "$windows_path"` 29052 new_path="$unix_path" 29053 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 29054 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 29055 new_path="$unix_path" 29056 fi 29057 29058 if test "x$path" != "x$new_path"; then 29059 BOOT_JDK="$new_path" 29060 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 29061 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 29062 fi 29063 29064 # Save the first 10 bytes of this path to the storage, so fixpath can work. 29065 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 29066 29067 else 29068 # We're on a unix platform. Hooray! :) 29069 path="$BOOT_JDK" 29070 has_space=`$ECHO "$path" | $GREP " "` 29071 if test "x$has_space" != x; then 29072 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 29073 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 29074 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 29075 fi 29076 29077 # Use eval to expand a potential ~ 29078 eval path="$path" 29079 if test ! -f "$path" && test ! -d "$path"; then 29080 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 29081 fi 29082 29083 if test -d "$path"; then 29084 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 29085 else 29086 dir="`$DIRNAME "$path"`" 29087 base="`$BASENAME "$path"`" 29088 BOOT_JDK="`cd "$dir"; $THEPWDCMD -L`/$base" 29089 fi 29090 fi 29091 fi 29092 29093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 29094 $as_echo_n "checking for Boot JDK... " >&6; } 29095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 29096 $as_echo "$BOOT_JDK" >&6; } 29097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 29098 $as_echo_n "checking Boot JDK version... " >&6; } 29099 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 29100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 29101 $as_echo "$BOOT_JDK_VERSION" >&6; } 29102 fi # end check jdk version 29103 fi # end check javac 29104 fi # end check java 29105 fi # end check boot jdk found 29106 fi 29107 29108 done 29109 fi 29110 29111 29112 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 29113 if test "x$BOOT_JDK_FOUND" = xmaybe; then 29114 # Do we have a bin/java? 29115 if test ! -x "$BOOT_JDK/bin/java"; then 29116 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 29117 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 29118 BOOT_JDK_FOUND=no 29119 else 29120 # Do we have a bin/javac? 29121 if test ! -x "$BOOT_JDK/bin/javac"; then 29122 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 29123 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 29124 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 29125 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 29126 BOOT_JDK_FOUND=no 29127 else 29128 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 29129 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $HEAD -n 1` 29130 29131 # Extra M4 quote needed to protect [] in grep expression. 29132 FOUND_CORRECT_VERSION=`$ECHO $BOOT_JDK_VERSION | $EGREP '\"9([\.+-].*)?\"|(1\.[89]\.)'` 29133 if test "x$FOUND_CORRECT_VERSION" = x; then 29134 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 29135 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 29136 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5 29137 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;} 29138 BOOT_JDK_FOUND=no 29139 else 29140 # We're done! :-) 29141 BOOT_JDK_FOUND=yes 29142 29143 # Only process if variable expands to non-empty 29144 29145 if test "x$BOOT_JDK" != x; then 29146 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 29147 29148 # Input might be given as Windows format, start by converting to 29149 # unix format. 29150 path="$BOOT_JDK" 29151 new_path=`$CYGPATH -u "$path"` 29152 29153 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 29154 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 29155 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 29156 # "foo.exe" is OK but "foo" is an error. 29157 # 29158 # This test is therefore slightly more accurate than "test -f" to check for file precense. 29159 # It is also a way to make sure we got the proper file name for the real test later on. 29160 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 29161 if test "x$test_shortpath" = x; then 29162 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 29163 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 29164 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 29165 fi 29166 29167 # Call helper function which possibly converts this using DOS-style short mode. 29168 # If so, the updated path is stored in $new_path. 29169 29170 input_path="$new_path" 29171 # Check if we need to convert this using DOS-style short mode. If the path 29172 # contains just simple characters, use it. Otherwise (spaces, weird characters), 29173 # take no chances and rewrite it. 29174 # Note: m4 eats our [], so we need to use [ and ] instead. 29175 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 29176 if test "x$has_forbidden_chars" != x; then 29177 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 29178 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 29179 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 29180 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 29181 # Going to short mode and back again did indeed matter. Since short mode is 29182 # case insensitive, let's make it lowercase to improve readability. 29183 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 29184 # Now convert it back to Unix-style (cygpath) 29185 input_path=`$CYGPATH -u "$shortmode_path"` 29186 new_path="$input_path" 29187 fi 29188 fi 29189 29190 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 29191 if test "x$test_cygdrive_prefix" = x; then 29192 # As a simple fix, exclude /usr/bin since it's not a real path. 29193 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 29194 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 29195 # a path prefixed by /cygdrive for fixpath to work. 29196 new_path="$CYGWIN_ROOT_PATH$input_path" 29197 fi 29198 fi 29199 29200 29201 if test "x$path" != "x$new_path"; then 29202 BOOT_JDK="$new_path" 29203 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 29204 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 29205 fi 29206 29207 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 29208 29209 path="$BOOT_JDK" 29210 has_colon=`$ECHO $path | $GREP ^.:` 29211 new_path="$path" 29212 if test "x$has_colon" = x; then 29213 # Not in mixed or Windows style, start by that. 29214 new_path=`cmd //c echo $path` 29215 fi 29216 29217 29218 input_path="$new_path" 29219 # Check if we need to convert this using DOS-style short mode. If the path 29220 # contains just simple characters, use it. Otherwise (spaces, weird characters), 29221 # take no chances and rewrite it. 29222 # Note: m4 eats our [], so we need to use [ and ] instead. 29223 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 29224 if test "x$has_forbidden_chars" != x; then 29225 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 29226 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 29227 fi 29228 29229 29230 windows_path="$new_path" 29231 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 29232 unix_path=`$CYGPATH -u "$windows_path"` 29233 new_path="$unix_path" 29234 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 29235 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 29236 new_path="$unix_path" 29237 fi 29238 29239 if test "x$path" != "x$new_path"; then 29240 BOOT_JDK="$new_path" 29241 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 29242 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 29243 fi 29244 29245 # Save the first 10 bytes of this path to the storage, so fixpath can work. 29246 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 29247 29248 else 29249 # We're on a unix platform. Hooray! :) 29250 path="$BOOT_JDK" 29251 has_space=`$ECHO "$path" | $GREP " "` 29252 if test "x$has_space" != x; then 29253 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 29254 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 29255 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 29256 fi 29257 29258 # Use eval to expand a potential ~ 29259 eval path="$path" 29260 if test ! -f "$path" && test ! -d "$path"; then 29261 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 29262 fi 29263 29264 if test -d "$path"; then 29265 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 29266 else 29267 dir="`$DIRNAME "$path"`" 29268 base="`$BASENAME "$path"`" 29269 BOOT_JDK="`cd "$dir"; $THEPWDCMD -L`/$base" 29270 fi 29271 fi 29272 fi 29273 29274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 29275 $as_echo_n "checking for Boot JDK... " >&6; } 29276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 29277 $as_echo "$BOOT_JDK" >&6; } 29278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 29279 $as_echo_n "checking Boot JDK version... " >&6; } 29280 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 29281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 29282 $as_echo "$BOOT_JDK_VERSION" >&6; } 29283 fi # end check jdk version 29284 fi # end check javac 29285 fi # end check java 29286 fi # end check boot jdk found 29287 fi 29288 29289 elif test "x$OPENJDK_TARGET_OS" = xlinux; then 29290 29291 if test "x$BOOT_JDK_FOUND" = xno; then 29292 # Now execute the test 29293 29294 BOOT_JDK_PREFIX="/usr/lib/jvm" 29295 BOOT_JDK_SUFFIX="" 29296 ALL_JDKS_FOUND=`$LS "$BOOT_JDK_PREFIX" 2> /dev/null | $SORT -r` 29297 if test "x$ALL_JDKS_FOUND" != x; then 29298 for JDK_TO_TRY in $ALL_JDKS_FOUND ; do 29299 29300 if test "x$BOOT_JDK_FOUND" = xno; then 29301 # Now execute the test 29302 29303 BOOT_JDK="${BOOT_JDK_PREFIX}/${JDK_TO_TRY}${BOOT_JDK_SUFFIX}" 29304 if test -d "$BOOT_JDK"; then 29305 BOOT_JDK_FOUND=maybe 29306 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&5 29307 $as_echo "$as_me: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&6;} 29308 fi 29309 29310 29311 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 29312 if test "x$BOOT_JDK_FOUND" = xmaybe; then 29313 # Do we have a bin/java? 29314 if test ! -x "$BOOT_JDK/bin/java"; then 29315 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 29316 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 29317 BOOT_JDK_FOUND=no 29318 else 29319 # Do we have a bin/javac? 29320 if test ! -x "$BOOT_JDK/bin/javac"; then 29321 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 29322 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 29323 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 29324 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 29325 BOOT_JDK_FOUND=no 29326 else 29327 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 29328 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $HEAD -n 1` 29329 29330 # Extra M4 quote needed to protect [] in grep expression. 29331 FOUND_CORRECT_VERSION=`$ECHO $BOOT_JDK_VERSION | $EGREP '\"9([\.+-].*)?\"|(1\.[89]\.)'` 29332 if test "x$FOUND_CORRECT_VERSION" = x; then 29333 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 29334 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 29335 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5 29336 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;} 29337 BOOT_JDK_FOUND=no 29338 else 29339 # We're done! :-) 29340 BOOT_JDK_FOUND=yes 29341 29342 # Only process if variable expands to non-empty 29343 29344 if test "x$BOOT_JDK" != x; then 29345 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 29346 29347 # Input might be given as Windows format, start by converting to 29348 # unix format. 29349 path="$BOOT_JDK" 29350 new_path=`$CYGPATH -u "$path"` 29351 29352 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 29353 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 29354 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 29355 # "foo.exe" is OK but "foo" is an error. 29356 # 29357 # This test is therefore slightly more accurate than "test -f" to check for file precense. 29358 # It is also a way to make sure we got the proper file name for the real test later on. 29359 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 29360 if test "x$test_shortpath" = x; then 29361 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 29362 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 29363 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 29364 fi 29365 29366 # Call helper function which possibly converts this using DOS-style short mode. 29367 # If so, the updated path is stored in $new_path. 29368 29369 input_path="$new_path" 29370 # Check if we need to convert this using DOS-style short mode. If the path 29371 # contains just simple characters, use it. Otherwise (spaces, weird characters), 29372 # take no chances and rewrite it. 29373 # Note: m4 eats our [], so we need to use [ and ] instead. 29374 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 29375 if test "x$has_forbidden_chars" != x; then 29376 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 29377 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 29378 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 29379 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 29380 # Going to short mode and back again did indeed matter. Since short mode is 29381 # case insensitive, let's make it lowercase to improve readability. 29382 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 29383 # Now convert it back to Unix-style (cygpath) 29384 input_path=`$CYGPATH -u "$shortmode_path"` 29385 new_path="$input_path" 29386 fi 29387 fi 29388 29389 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 29390 if test "x$test_cygdrive_prefix" = x; then 29391 # As a simple fix, exclude /usr/bin since it's not a real path. 29392 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 29393 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 29394 # a path prefixed by /cygdrive for fixpath to work. 29395 new_path="$CYGWIN_ROOT_PATH$input_path" 29396 fi 29397 fi 29398 29399 29400 if test "x$path" != "x$new_path"; then 29401 BOOT_JDK="$new_path" 29402 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 29403 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 29404 fi 29405 29406 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 29407 29408 path="$BOOT_JDK" 29409 has_colon=`$ECHO $path | $GREP ^.:` 29410 new_path="$path" 29411 if test "x$has_colon" = x; then 29412 # Not in mixed or Windows style, start by that. 29413 new_path=`cmd //c echo $path` 29414 fi 29415 29416 29417 input_path="$new_path" 29418 # Check if we need to convert this using DOS-style short mode. If the path 29419 # contains just simple characters, use it. Otherwise (spaces, weird characters), 29420 # take no chances and rewrite it. 29421 # Note: m4 eats our [], so we need to use [ and ] instead. 29422 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 29423 if test "x$has_forbidden_chars" != x; then 29424 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 29425 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 29426 fi 29427 29428 29429 windows_path="$new_path" 29430 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 29431 unix_path=`$CYGPATH -u "$windows_path"` 29432 new_path="$unix_path" 29433 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 29434 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 29435 new_path="$unix_path" 29436 fi 29437 29438 if test "x$path" != "x$new_path"; then 29439 BOOT_JDK="$new_path" 29440 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 29441 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 29442 fi 29443 29444 # Save the first 10 bytes of this path to the storage, so fixpath can work. 29445 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 29446 29447 else 29448 # We're on a unix platform. Hooray! :) 29449 path="$BOOT_JDK" 29450 has_space=`$ECHO "$path" | $GREP " "` 29451 if test "x$has_space" != x; then 29452 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 29453 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 29454 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 29455 fi 29456 29457 # Use eval to expand a potential ~ 29458 eval path="$path" 29459 if test ! -f "$path" && test ! -d "$path"; then 29460 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 29461 fi 29462 29463 if test -d "$path"; then 29464 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 29465 else 29466 dir="`$DIRNAME "$path"`" 29467 base="`$BASENAME "$path"`" 29468 BOOT_JDK="`cd "$dir"; $THEPWDCMD -L`/$base" 29469 fi 29470 fi 29471 fi 29472 29473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 29474 $as_echo_n "checking for Boot JDK... " >&6; } 29475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 29476 $as_echo "$BOOT_JDK" >&6; } 29477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 29478 $as_echo_n "checking Boot JDK version... " >&6; } 29479 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 29480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 29481 $as_echo "$BOOT_JDK_VERSION" >&6; } 29482 fi # end check jdk version 29483 fi # end check javac 29484 fi # end check java 29485 fi # end check boot jdk found 29486 fi 29487 29488 done 29489 fi 29490 29491 29492 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 29493 if test "x$BOOT_JDK_FOUND" = xmaybe; then 29494 # Do we have a bin/java? 29495 if test ! -x "$BOOT_JDK/bin/java"; then 29496 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 29497 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 29498 BOOT_JDK_FOUND=no 29499 else 29500 # Do we have a bin/javac? 29501 if test ! -x "$BOOT_JDK/bin/javac"; then 29502 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 29503 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 29504 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 29505 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 29506 BOOT_JDK_FOUND=no 29507 else 29508 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 29509 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $HEAD -n 1` 29510 29511 # Extra M4 quote needed to protect [] in grep expression. 29512 FOUND_CORRECT_VERSION=`$ECHO $BOOT_JDK_VERSION | $EGREP '\"9([\.+-].*)?\"|(1\.[89]\.)'` 29513 if test "x$FOUND_CORRECT_VERSION" = x; then 29514 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 29515 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 29516 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5 29517 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;} 29518 BOOT_JDK_FOUND=no 29519 else 29520 # We're done! :-) 29521 BOOT_JDK_FOUND=yes 29522 29523 # Only process if variable expands to non-empty 29524 29525 if test "x$BOOT_JDK" != x; then 29526 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 29527 29528 # Input might be given as Windows format, start by converting to 29529 # unix format. 29530 path="$BOOT_JDK" 29531 new_path=`$CYGPATH -u "$path"` 29532 29533 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 29534 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 29535 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 29536 # "foo.exe" is OK but "foo" is an error. 29537 # 29538 # This test is therefore slightly more accurate than "test -f" to check for file precense. 29539 # It is also a way to make sure we got the proper file name for the real test later on. 29540 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 29541 if test "x$test_shortpath" = x; then 29542 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 29543 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 29544 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 29545 fi 29546 29547 # Call helper function which possibly converts this using DOS-style short mode. 29548 # If so, the updated path is stored in $new_path. 29549 29550 input_path="$new_path" 29551 # Check if we need to convert this using DOS-style short mode. If the path 29552 # contains just simple characters, use it. Otherwise (spaces, weird characters), 29553 # take no chances and rewrite it. 29554 # Note: m4 eats our [], so we need to use [ and ] instead. 29555 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 29556 if test "x$has_forbidden_chars" != x; then 29557 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 29558 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 29559 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 29560 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 29561 # Going to short mode and back again did indeed matter. Since short mode is 29562 # case insensitive, let's make it lowercase to improve readability. 29563 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 29564 # Now convert it back to Unix-style (cygpath) 29565 input_path=`$CYGPATH -u "$shortmode_path"` 29566 new_path="$input_path" 29567 fi 29568 fi 29569 29570 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 29571 if test "x$test_cygdrive_prefix" = x; then 29572 # As a simple fix, exclude /usr/bin since it's not a real path. 29573 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 29574 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 29575 # a path prefixed by /cygdrive for fixpath to work. 29576 new_path="$CYGWIN_ROOT_PATH$input_path" 29577 fi 29578 fi 29579 29580 29581 if test "x$path" != "x$new_path"; then 29582 BOOT_JDK="$new_path" 29583 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 29584 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 29585 fi 29586 29587 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 29588 29589 path="$BOOT_JDK" 29590 has_colon=`$ECHO $path | $GREP ^.:` 29591 new_path="$path" 29592 if test "x$has_colon" = x; then 29593 # Not in mixed or Windows style, start by that. 29594 new_path=`cmd //c echo $path` 29595 fi 29596 29597 29598 input_path="$new_path" 29599 # Check if we need to convert this using DOS-style short mode. If the path 29600 # contains just simple characters, use it. Otherwise (spaces, weird characters), 29601 # take no chances and rewrite it. 29602 # Note: m4 eats our [], so we need to use [ and ] instead. 29603 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 29604 if test "x$has_forbidden_chars" != x; then 29605 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 29606 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 29607 fi 29608 29609 29610 windows_path="$new_path" 29611 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 29612 unix_path=`$CYGPATH -u "$windows_path"` 29613 new_path="$unix_path" 29614 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 29615 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 29616 new_path="$unix_path" 29617 fi 29618 29619 if test "x$path" != "x$new_path"; then 29620 BOOT_JDK="$new_path" 29621 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 29622 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 29623 fi 29624 29625 # Save the first 10 bytes of this path to the storage, so fixpath can work. 29626 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 29627 29628 else 29629 # We're on a unix platform. Hooray! :) 29630 path="$BOOT_JDK" 29631 has_space=`$ECHO "$path" | $GREP " "` 29632 if test "x$has_space" != x; then 29633 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 29634 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 29635 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 29636 fi 29637 29638 # Use eval to expand a potential ~ 29639 eval path="$path" 29640 if test ! -f "$path" && test ! -d "$path"; then 29641 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 29642 fi 29643 29644 if test -d "$path"; then 29645 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 29646 else 29647 dir="`$DIRNAME "$path"`" 29648 base="`$BASENAME "$path"`" 29649 BOOT_JDK="`cd "$dir"; $THEPWDCMD -L`/$base" 29650 fi 29651 fi 29652 fi 29653 29654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 29655 $as_echo_n "checking for Boot JDK... " >&6; } 29656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 29657 $as_echo "$BOOT_JDK" >&6; } 29658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 29659 $as_echo_n "checking Boot JDK version... " >&6; } 29660 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 29661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 29662 $as_echo "$BOOT_JDK_VERSION" >&6; } 29663 fi # end check jdk version 29664 fi # end check javac 29665 fi # end check java 29666 fi # end check boot jdk found 29667 fi 29668 29669 fi 29670 29671 29672 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 29673 if test "x$BOOT_JDK_FOUND" = xmaybe; then 29674 # Do we have a bin/java? 29675 if test ! -x "$BOOT_JDK/bin/java"; then 29676 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 29677 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 29678 BOOT_JDK_FOUND=no 29679 else 29680 # Do we have a bin/javac? 29681 if test ! -x "$BOOT_JDK/bin/javac"; then 29682 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 29683 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 29684 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 29685 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 29686 BOOT_JDK_FOUND=no 29687 else 29688 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 29689 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $HEAD -n 1` 29690 29691 # Extra M4 quote needed to protect [] in grep expression. 29692 FOUND_CORRECT_VERSION=`$ECHO $BOOT_JDK_VERSION | $EGREP '\"9([\.+-].*)?\"|(1\.[89]\.)'` 29693 if test "x$FOUND_CORRECT_VERSION" = x; then 29694 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 29695 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 29696 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5 29697 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;} 29698 BOOT_JDK_FOUND=no 29699 else 29700 # We're done! :-) 29701 BOOT_JDK_FOUND=yes 29702 29703 # Only process if variable expands to non-empty 29704 29705 if test "x$BOOT_JDK" != x; then 29706 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 29707 29708 # Input might be given as Windows format, start by converting to 29709 # unix format. 29710 path="$BOOT_JDK" 29711 new_path=`$CYGPATH -u "$path"` 29712 29713 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 29714 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 29715 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 29716 # "foo.exe" is OK but "foo" is an error. 29717 # 29718 # This test is therefore slightly more accurate than "test -f" to check for file precense. 29719 # It is also a way to make sure we got the proper file name for the real test later on. 29720 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 29721 if test "x$test_shortpath" = x; then 29722 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 29723 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 29724 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 29725 fi 29726 29727 # Call helper function which possibly converts this using DOS-style short mode. 29728 # If so, the updated path is stored in $new_path. 29729 29730 input_path="$new_path" 29731 # Check if we need to convert this using DOS-style short mode. If the path 29732 # contains just simple characters, use it. Otherwise (spaces, weird characters), 29733 # take no chances and rewrite it. 29734 # Note: m4 eats our [], so we need to use [ and ] instead. 29735 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 29736 if test "x$has_forbidden_chars" != x; then 29737 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 29738 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 29739 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 29740 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 29741 # Going to short mode and back again did indeed matter. Since short mode is 29742 # case insensitive, let's make it lowercase to improve readability. 29743 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 29744 # Now convert it back to Unix-style (cygpath) 29745 input_path=`$CYGPATH -u "$shortmode_path"` 29746 new_path="$input_path" 29747 fi 29748 fi 29749 29750 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 29751 if test "x$test_cygdrive_prefix" = x; then 29752 # As a simple fix, exclude /usr/bin since it's not a real path. 29753 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 29754 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 29755 # a path prefixed by /cygdrive for fixpath to work. 29756 new_path="$CYGWIN_ROOT_PATH$input_path" 29757 fi 29758 fi 29759 29760 29761 if test "x$path" != "x$new_path"; then 29762 BOOT_JDK="$new_path" 29763 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 29764 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 29765 fi 29766 29767 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 29768 29769 path="$BOOT_JDK" 29770 has_colon=`$ECHO $path | $GREP ^.:` 29771 new_path="$path" 29772 if test "x$has_colon" = x; then 29773 # Not in mixed or Windows style, start by that. 29774 new_path=`cmd //c echo $path` 29775 fi 29776 29777 29778 input_path="$new_path" 29779 # Check if we need to convert this using DOS-style short mode. If the path 29780 # contains just simple characters, use it. Otherwise (spaces, weird characters), 29781 # take no chances and rewrite it. 29782 # Note: m4 eats our [], so we need to use [ and ] instead. 29783 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 29784 if test "x$has_forbidden_chars" != x; then 29785 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 29786 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 29787 fi 29788 29789 29790 windows_path="$new_path" 29791 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 29792 unix_path=`$CYGPATH -u "$windows_path"` 29793 new_path="$unix_path" 29794 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 29795 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 29796 new_path="$unix_path" 29797 fi 29798 29799 if test "x$path" != "x$new_path"; then 29800 BOOT_JDK="$new_path" 29801 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 29802 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 29803 fi 29804 29805 # Save the first 10 bytes of this path to the storage, so fixpath can work. 29806 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 29807 29808 else 29809 # We're on a unix platform. Hooray! :) 29810 path="$BOOT_JDK" 29811 has_space=`$ECHO "$path" | $GREP " "` 29812 if test "x$has_space" != x; then 29813 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 29814 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 29815 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 29816 fi 29817 29818 # Use eval to expand a potential ~ 29819 eval path="$path" 29820 if test ! -f "$path" && test ! -d "$path"; then 29821 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 29822 fi 29823 29824 if test -d "$path"; then 29825 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 29826 else 29827 dir="`$DIRNAME "$path"`" 29828 base="`$BASENAME "$path"`" 29829 BOOT_JDK="`cd "$dir"; $THEPWDCMD -L`/$base" 29830 fi 29831 fi 29832 fi 29833 29834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 29835 $as_echo_n "checking for Boot JDK... " >&6; } 29836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 29837 $as_echo "$BOOT_JDK" >&6; } 29838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 29839 $as_echo_n "checking Boot JDK version... " >&6; } 29840 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 29841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 29842 $as_echo "$BOOT_JDK_VERSION" >&6; } 29843 fi # end check jdk version 29844 fi # end check javac 29845 fi # end check java 29846 fi # end check boot jdk found 29847 fi 29848 29849 29850 # If we haven't found anything yet, we've truly lost. Give up. 29851 if test "x$BOOT_JDK_FOUND" = xno; then 29852 29853 # Print a helpful message on how to acquire the necessary build dependency. 29854 # openjdk is the help tag: freetype, cups, alsa etc 29855 MISSING_DEPENDENCY=openjdk 29856 29857 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 29858 cygwin_help $MISSING_DEPENDENCY 29859 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 29860 msys_help $MISSING_DEPENDENCY 29861 else 29862 PKGHANDLER_COMMAND= 29863 29864 case $PKGHANDLER in 29865 apt-get) 29866 apt_help $MISSING_DEPENDENCY ;; 29867 yum) 29868 yum_help $MISSING_DEPENDENCY ;; 29869 port) 29870 port_help $MISSING_DEPENDENCY ;; 29871 pkgutil) 29872 pkgutil_help $MISSING_DEPENDENCY ;; 29873 pkgadd) 29874 pkgadd_help $MISSING_DEPENDENCY ;; 29875 esac 29876 29877 if test "x$PKGHANDLER_COMMAND" != x; then 29878 HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'." 29879 fi 29880 fi 29881 29882 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find a valid Boot JDK. $HELP_MSG" >&5 29883 $as_echo "$as_me: Could not find a valid Boot JDK. $HELP_MSG" >&6;} 29884 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be fixed by explicitly setting --with-boot-jdk" >&5 29885 $as_echo "$as_me: This might be fixed by explicitly setting --with-boot-jdk" >&6;} 29886 as_fn_error $? "Cannot continue" "$LINENO" 5 29887 fi 29888 29889 29890 29891 # Setup tools from the Boot JDK. 29892 29893 # Use user overridden value if available, otherwise locate tool in the Boot JDK. 29894 29895 # Publish this variable in the help. 29896 29897 29898 if [ -z "${JAVA+x}" ]; then 29899 # The variable is not set by user, try to locate tool using the code snippet 29900 29901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for java in Boot JDK" >&5 29902 $as_echo_n "checking for java in Boot JDK... " >&6; } 29903 JAVA=$BOOT_JDK/bin/java 29904 if test ! -x $JAVA; then 29905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 29906 $as_echo "not found" >&6; } 29907 { $as_echo "$as_me:${as_lineno-$LINENO}: Your Boot JDK seems broken. This might be fixed by explicitly setting --with-boot-jdk" >&5 29908 $as_echo "$as_me: Your Boot JDK seems broken. This might be fixed by explicitly setting --with-boot-jdk" >&6;} 29909 as_fn_error $? "Could not find java in the Boot JDK" "$LINENO" 5 29910 fi 29911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 29912 $as_echo "ok" >&6; } 29913 29914 29915 else 29916 # The variable is set, but is it from the command line or the environment? 29917 29918 # Try to remove the string !JAVA! from our list. 29919 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!JAVA!/} 29920 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 29921 # If it failed, the variable was not from the command line. Ignore it, 29922 # but warn the user (except for BASH, which is always set by the calling BASH). 29923 if test "xJAVA" != xBASH; then 29924 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of JAVA from the environment. Use command line variables instead." >&5 29925 $as_echo "$as_me: WARNING: Ignoring value of JAVA from the environment. Use command line variables instead." >&2;} 29926 fi 29927 # Try to locate tool using the code snippet 29928 29929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for java in Boot JDK" >&5 29930 $as_echo_n "checking for java in Boot JDK... " >&6; } 29931 JAVA=$BOOT_JDK/bin/java 29932 if test ! -x $JAVA; then 29933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 29934 $as_echo "not found" >&6; } 29935 { $as_echo "$as_me:${as_lineno-$LINENO}: Your Boot JDK seems broken. This might be fixed by explicitly setting --with-boot-jdk" >&5 29936 $as_echo "$as_me: Your Boot JDK seems broken. This might be fixed by explicitly setting --with-boot-jdk" >&6;} 29937 as_fn_error $? "Could not find java in the Boot JDK" "$LINENO" 5 29938 fi 29939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 29940 $as_echo "ok" >&6; } 29941 29942 29943 else 29944 # If it succeeded, then it was overridden by the user. We will use it 29945 # for the tool. 29946 29947 # First remove it from the list of overridden variables, so we can test 29948 # for unknown variables in the end. 29949 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 29950 29951 # Check if we try to supply an empty value 29952 if test "x$JAVA" = x; then 29953 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool JAVA= (no value)" >&5 29954 $as_echo "$as_me: Setting user supplied tool JAVA= (no value)" >&6;} 29955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JAVA" >&5 29956 $as_echo_n "checking for JAVA... " >&6; } 29957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 29958 $as_echo "disabled" >&6; } 29959 else 29960 # Check if the provided tool contains a complete path. 29961 tool_specified="$JAVA" 29962 tool_basename="${tool_specified##*/}" 29963 if test "x$tool_basename" = "x$tool_specified"; then 29964 # A command without a complete path is provided, search $PATH. 29965 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool JAVA=$tool_basename" >&5 29966 $as_echo "$as_me: Will search for user supplied tool JAVA=$tool_basename" >&6;} 29967 # Extract the first word of "$tool_basename", so it can be a program name with args. 29968 set dummy $tool_basename; ac_word=$2 29969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 29970 $as_echo_n "checking for $ac_word... " >&6; } 29971 if ${ac_cv_path_JAVA+:} false; then : 29972 $as_echo_n "(cached) " >&6 29973 else 29974 case $JAVA in 29975 [\\/]* | ?:[\\/]*) 29976 ac_cv_path_JAVA="$JAVA" # Let the user override the test with a path. 29977 ;; 29978 *) 29979 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 29980 for as_dir in $PATH 29981 do 29982 IFS=$as_save_IFS 29983 test -z "$as_dir" && as_dir=. 29984 for ac_exec_ext in '' $ac_executable_extensions; do 29985 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 29986 ac_cv_path_JAVA="$as_dir/$ac_word$ac_exec_ext" 29987 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 29988 break 2 29989 fi 29990 done 29991 done 29992 IFS=$as_save_IFS 29993 29994 ;; 29995 esac 29996 fi 29997 JAVA=$ac_cv_path_JAVA 29998 if test -n "$JAVA"; then 29999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVA" >&5 30000 $as_echo "$JAVA" >&6; } 30001 else 30002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 30003 $as_echo "no" >&6; } 30004 fi 30005 30006 30007 if test "x$JAVA" = x; then 30008 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 30009 fi 30010 else 30011 # Otherwise we believe it is a complete path. Use it as it is. 30012 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool JAVA=$tool_specified" >&5 30013 $as_echo "$as_me: Will use user supplied tool JAVA=$tool_specified" >&6;} 30014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JAVA" >&5 30015 $as_echo_n "checking for JAVA... " >&6; } 30016 if test ! -x "$tool_specified"; then 30017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 30018 $as_echo "not found" >&6; } 30019 as_fn_error $? "User supplied tool JAVA=$tool_specified does not exist or is not executable" "$LINENO" 5 30020 fi 30021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 30022 $as_echo "$tool_specified" >&6; } 30023 fi 30024 fi 30025 fi 30026 30027 fi 30028 30029 30030 30031 # Use user overridden value if available, otherwise locate tool in the Boot JDK. 30032 30033 # Publish this variable in the help. 30034 30035 30036 if [ -z "${JAVAC+x}" ]; then 30037 # The variable is not set by user, try to locate tool using the code snippet 30038 30039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for javac in Boot JDK" >&5 30040 $as_echo_n "checking for javac in Boot JDK... " >&6; } 30041 JAVAC=$BOOT_JDK/bin/javac 30042 if test ! -x $JAVAC; then 30043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 30044 $as_echo "not found" >&6; } 30045 { $as_echo "$as_me:${as_lineno-$LINENO}: Your Boot JDK seems broken. This might be fixed by explicitly setting --with-boot-jdk" >&5 30046 $as_echo "$as_me: Your Boot JDK seems broken. This might be fixed by explicitly setting --with-boot-jdk" >&6;} 30047 as_fn_error $? "Could not find javac in the Boot JDK" "$LINENO" 5 30048 fi 30049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 30050 $as_echo "ok" >&6; } 30051 30052 30053 else 30054 # The variable is set, but is it from the command line or the environment? 30055 30056 # Try to remove the string !JAVAC! from our list. 30057 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!JAVAC!/} 30058 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 30059 # If it failed, the variable was not from the command line. Ignore it, 30060 # but warn the user (except for BASH, which is always set by the calling BASH). 30061 if test "xJAVAC" != xBASH; then 30062 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of JAVAC from the environment. Use command line variables instead." >&5 30063 $as_echo "$as_me: WARNING: Ignoring value of JAVAC from the environment. Use command line variables instead." >&2;} 30064 fi 30065 # Try to locate tool using the code snippet 30066 30067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for javac in Boot JDK" >&5 30068 $as_echo_n "checking for javac in Boot JDK... " >&6; } 30069 JAVAC=$BOOT_JDK/bin/javac 30070 if test ! -x $JAVAC; then 30071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 30072 $as_echo "not found" >&6; } 30073 { $as_echo "$as_me:${as_lineno-$LINENO}: Your Boot JDK seems broken. This might be fixed by explicitly setting --with-boot-jdk" >&5 30074 $as_echo "$as_me: Your Boot JDK seems broken. This might be fixed by explicitly setting --with-boot-jdk" >&6;} 30075 as_fn_error $? "Could not find javac in the Boot JDK" "$LINENO" 5 30076 fi 30077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 30078 $as_echo "ok" >&6; } 30079 30080 30081 else 30082 # If it succeeded, then it was overridden by the user. We will use it 30083 # for the tool. 30084 30085 # First remove it from the list of overridden variables, so we can test 30086 # for unknown variables in the end. 30087 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 30088 30089 # Check if we try to supply an empty value 30090 if test "x$JAVAC" = x; then 30091 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool JAVAC= (no value)" >&5 30092 $as_echo "$as_me: Setting user supplied tool JAVAC= (no value)" >&6;} 30093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JAVAC" >&5 30094 $as_echo_n "checking for JAVAC... " >&6; } 30095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 30096 $as_echo "disabled" >&6; } 30097 else 30098 # Check if the provided tool contains a complete path. 30099 tool_specified="$JAVAC" 30100 tool_basename="${tool_specified##*/}" 30101 if test "x$tool_basename" = "x$tool_specified"; then 30102 # A command without a complete path is provided, search $PATH. 30103 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool JAVAC=$tool_basename" >&5 30104 $as_echo "$as_me: Will search for user supplied tool JAVAC=$tool_basename" >&6;} 30105 # Extract the first word of "$tool_basename", so it can be a program name with args. 30106 set dummy $tool_basename; ac_word=$2 30107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 30108 $as_echo_n "checking for $ac_word... " >&6; } 30109 if ${ac_cv_path_JAVAC+:} false; then : 30110 $as_echo_n "(cached) " >&6 30111 else 30112 case $JAVAC in 30113 [\\/]* | ?:[\\/]*) 30114 ac_cv_path_JAVAC="$JAVAC" # Let the user override the test with a path. 30115 ;; 30116 *) 30117 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 30118 for as_dir in $PATH 30119 do 30120 IFS=$as_save_IFS 30121 test -z "$as_dir" && as_dir=. 30122 for ac_exec_ext in '' $ac_executable_extensions; do 30123 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 30124 ac_cv_path_JAVAC="$as_dir/$ac_word$ac_exec_ext" 30125 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 30126 break 2 30127 fi 30128 done 30129 done 30130 IFS=$as_save_IFS 30131 30132 ;; 30133 esac 30134 fi 30135 JAVAC=$ac_cv_path_JAVAC 30136 if test -n "$JAVAC"; then 30137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVAC" >&5 30138 $as_echo "$JAVAC" >&6; } 30139 else 30140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 30141 $as_echo "no" >&6; } 30142 fi 30143 30144 30145 if test "x$JAVAC" = x; then 30146 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 30147 fi 30148 else 30149 # Otherwise we believe it is a complete path. Use it as it is. 30150 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool JAVAC=$tool_specified" >&5 30151 $as_echo "$as_me: Will use user supplied tool JAVAC=$tool_specified" >&6;} 30152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JAVAC" >&5 30153 $as_echo_n "checking for JAVAC... " >&6; } 30154 if test ! -x "$tool_specified"; then 30155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 30156 $as_echo "not found" >&6; } 30157 as_fn_error $? "User supplied tool JAVAC=$tool_specified does not exist or is not executable" "$LINENO" 5 30158 fi 30159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 30160 $as_echo "$tool_specified" >&6; } 30161 fi 30162 fi 30163 fi 30164 30165 fi 30166 30167 30168 30169 # Use user overridden value if available, otherwise locate tool in the Boot JDK. 30170 30171 # Publish this variable in the help. 30172 30173 30174 if [ -z "${JAVAH+x}" ]; then 30175 # The variable is not set by user, try to locate tool using the code snippet 30176 30177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for javah in Boot JDK" >&5 30178 $as_echo_n "checking for javah in Boot JDK... " >&6; } 30179 JAVAH=$BOOT_JDK/bin/javah 30180 if test ! -x $JAVAH; then 30181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 30182 $as_echo "not found" >&6; } 30183 { $as_echo "$as_me:${as_lineno-$LINENO}: Your Boot JDK seems broken. This might be fixed by explicitly setting --with-boot-jdk" >&5 30184 $as_echo "$as_me: Your Boot JDK seems broken. This might be fixed by explicitly setting --with-boot-jdk" >&6;} 30185 as_fn_error $? "Could not find javah in the Boot JDK" "$LINENO" 5 30186 fi 30187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 30188 $as_echo "ok" >&6; } 30189 30190 30191 else 30192 # The variable is set, but is it from the command line or the environment? 30193 30194 # Try to remove the string !JAVAH! from our list. 30195 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!JAVAH!/} 30196 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 30197 # If it failed, the variable was not from the command line. Ignore it, 30198 # but warn the user (except for BASH, which is always set by the calling BASH). 30199 if test "xJAVAH" != xBASH; then 30200 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of JAVAH from the environment. Use command line variables instead." >&5 30201 $as_echo "$as_me: WARNING: Ignoring value of JAVAH from the environment. Use command line variables instead." >&2;} 30202 fi 30203 # Try to locate tool using the code snippet 30204 30205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for javah in Boot JDK" >&5 30206 $as_echo_n "checking for javah in Boot JDK... " >&6; } 30207 JAVAH=$BOOT_JDK/bin/javah 30208 if test ! -x $JAVAH; then 30209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 30210 $as_echo "not found" >&6; } 30211 { $as_echo "$as_me:${as_lineno-$LINENO}: Your Boot JDK seems broken. This might be fixed by explicitly setting --with-boot-jdk" >&5 30212 $as_echo "$as_me: Your Boot JDK seems broken. This might be fixed by explicitly setting --with-boot-jdk" >&6;} 30213 as_fn_error $? "Could not find javah in the Boot JDK" "$LINENO" 5 30214 fi 30215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 30216 $as_echo "ok" >&6; } 30217 30218 30219 else 30220 # If it succeeded, then it was overridden by the user. We will use it 30221 # for the tool. 30222 30223 # First remove it from the list of overridden variables, so we can test 30224 # for unknown variables in the end. 30225 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 30226 30227 # Check if we try to supply an empty value 30228 if test "x$JAVAH" = x; then 30229 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool JAVAH= (no value)" >&5 30230 $as_echo "$as_me: Setting user supplied tool JAVAH= (no value)" >&6;} 30231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JAVAH" >&5 30232 $as_echo_n "checking for JAVAH... " >&6; } 30233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 30234 $as_echo "disabled" >&6; } 30235 else 30236 # Check if the provided tool contains a complete path. 30237 tool_specified="$JAVAH" 30238 tool_basename="${tool_specified##*/}" 30239 if test "x$tool_basename" = "x$tool_specified"; then 30240 # A command without a complete path is provided, search $PATH. 30241 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool JAVAH=$tool_basename" >&5 30242 $as_echo "$as_me: Will search for user supplied tool JAVAH=$tool_basename" >&6;} 30243 # Extract the first word of "$tool_basename", so it can be a program name with args. 30244 set dummy $tool_basename; ac_word=$2 30245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 30246 $as_echo_n "checking for $ac_word... " >&6; } 30247 if ${ac_cv_path_JAVAH+:} false; then : 30248 $as_echo_n "(cached) " >&6 30249 else 30250 case $JAVAH in 30251 [\\/]* | ?:[\\/]*) 30252 ac_cv_path_JAVAH="$JAVAH" # Let the user override the test with a path. 30253 ;; 30254 *) 30255 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 30256 for as_dir in $PATH 30257 do 30258 IFS=$as_save_IFS 30259 test -z "$as_dir" && as_dir=. 30260 for ac_exec_ext in '' $ac_executable_extensions; do 30261 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 30262 ac_cv_path_JAVAH="$as_dir/$ac_word$ac_exec_ext" 30263 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 30264 break 2 30265 fi 30266 done 30267 done 30268 IFS=$as_save_IFS 30269 30270 ;; 30271 esac 30272 fi 30273 JAVAH=$ac_cv_path_JAVAH 30274 if test -n "$JAVAH"; then 30275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVAH" >&5 30276 $as_echo "$JAVAH" >&6; } 30277 else 30278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 30279 $as_echo "no" >&6; } 30280 fi 30281 30282 30283 if test "x$JAVAH" = x; then 30284 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 30285 fi 30286 else 30287 # Otherwise we believe it is a complete path. Use it as it is. 30288 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool JAVAH=$tool_specified" >&5 30289 $as_echo "$as_me: Will use user supplied tool JAVAH=$tool_specified" >&6;} 30290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JAVAH" >&5 30291 $as_echo_n "checking for JAVAH... " >&6; } 30292 if test ! -x "$tool_specified"; then 30293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 30294 $as_echo "not found" >&6; } 30295 as_fn_error $? "User supplied tool JAVAH=$tool_specified does not exist or is not executable" "$LINENO" 5 30296 fi 30297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 30298 $as_echo "$tool_specified" >&6; } 30299 fi 30300 fi 30301 fi 30302 30303 fi 30304 30305 30306 30307 # Use user overridden value if available, otherwise locate tool in the Boot JDK. 30308 30309 # Publish this variable in the help. 30310 30311 30312 if [ -z "${JAR+x}" ]; then 30313 # The variable is not set by user, try to locate tool using the code snippet 30314 30315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jar in Boot JDK" >&5 30316 $as_echo_n "checking for jar in Boot JDK... " >&6; } 30317 JAR=$BOOT_JDK/bin/jar 30318 if test ! -x $JAR; then 30319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 30320 $as_echo "not found" >&6; } 30321 { $as_echo "$as_me:${as_lineno-$LINENO}: Your Boot JDK seems broken. This might be fixed by explicitly setting --with-boot-jdk" >&5 30322 $as_echo "$as_me: Your Boot JDK seems broken. This might be fixed by explicitly setting --with-boot-jdk" >&6;} 30323 as_fn_error $? "Could not find jar in the Boot JDK" "$LINENO" 5 30324 fi 30325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 30326 $as_echo "ok" >&6; } 30327 30328 30329 else 30330 # The variable is set, but is it from the command line or the environment? 30331 30332 # Try to remove the string !JAR! from our list. 30333 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!JAR!/} 30334 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 30335 # If it failed, the variable was not from the command line. Ignore it, 30336 # but warn the user (except for BASH, which is always set by the calling BASH). 30337 if test "xJAR" != xBASH; then 30338 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of JAR from the environment. Use command line variables instead." >&5 30339 $as_echo "$as_me: WARNING: Ignoring value of JAR from the environment. Use command line variables instead." >&2;} 30340 fi 30341 # Try to locate tool using the code snippet 30342 30343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jar in Boot JDK" >&5 30344 $as_echo_n "checking for jar in Boot JDK... " >&6; } 30345 JAR=$BOOT_JDK/bin/jar 30346 if test ! -x $JAR; then 30347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 30348 $as_echo "not found" >&6; } 30349 { $as_echo "$as_me:${as_lineno-$LINENO}: Your Boot JDK seems broken. This might be fixed by explicitly setting --with-boot-jdk" >&5 30350 $as_echo "$as_me: Your Boot JDK seems broken. This might be fixed by explicitly setting --with-boot-jdk" >&6;} 30351 as_fn_error $? "Could not find jar in the Boot JDK" "$LINENO" 5 30352 fi 30353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 30354 $as_echo "ok" >&6; } 30355 30356 30357 else 30358 # If it succeeded, then it was overridden by the user. We will use it 30359 # for the tool. 30360 30361 # First remove it from the list of overridden variables, so we can test 30362 # for unknown variables in the end. 30363 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 30364 30365 # Check if we try to supply an empty value 30366 if test "x$JAR" = x; then 30367 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool JAR= (no value)" >&5 30368 $as_echo "$as_me: Setting user supplied tool JAR= (no value)" >&6;} 30369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JAR" >&5 30370 $as_echo_n "checking for JAR... " >&6; } 30371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 30372 $as_echo "disabled" >&6; } 30373 else 30374 # Check if the provided tool contains a complete path. 30375 tool_specified="$JAR" 30376 tool_basename="${tool_specified##*/}" 30377 if test "x$tool_basename" = "x$tool_specified"; then 30378 # A command without a complete path is provided, search $PATH. 30379 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool JAR=$tool_basename" >&5 30380 $as_echo "$as_me: Will search for user supplied tool JAR=$tool_basename" >&6;} 30381 # Extract the first word of "$tool_basename", so it can be a program name with args. 30382 set dummy $tool_basename; ac_word=$2 30383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 30384 $as_echo_n "checking for $ac_word... " >&6; } 30385 if ${ac_cv_path_JAR+:} false; then : 30386 $as_echo_n "(cached) " >&6 30387 else 30388 case $JAR in 30389 [\\/]* | ?:[\\/]*) 30390 ac_cv_path_JAR="$JAR" # Let the user override the test with a path. 30391 ;; 30392 *) 30393 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 30394 for as_dir in $PATH 30395 do 30396 IFS=$as_save_IFS 30397 test -z "$as_dir" && as_dir=. 30398 for ac_exec_ext in '' $ac_executable_extensions; do 30399 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 30400 ac_cv_path_JAR="$as_dir/$ac_word$ac_exec_ext" 30401 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 30402 break 2 30403 fi 30404 done 30405 done 30406 IFS=$as_save_IFS 30407 30408 ;; 30409 esac 30410 fi 30411 JAR=$ac_cv_path_JAR 30412 if test -n "$JAR"; then 30413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAR" >&5 30414 $as_echo "$JAR" >&6; } 30415 else 30416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 30417 $as_echo "no" >&6; } 30418 fi 30419 30420 30421 if test "x$JAR" = x; then 30422 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 30423 fi 30424 else 30425 # Otherwise we believe it is a complete path. Use it as it is. 30426 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool JAR=$tool_specified" >&5 30427 $as_echo "$as_me: Will use user supplied tool JAR=$tool_specified" >&6;} 30428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JAR" >&5 30429 $as_echo_n "checking for JAR... " >&6; } 30430 if test ! -x "$tool_specified"; then 30431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 30432 $as_echo "not found" >&6; } 30433 as_fn_error $? "User supplied tool JAR=$tool_specified does not exist or is not executable" "$LINENO" 5 30434 fi 30435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 30436 $as_echo "$tool_specified" >&6; } 30437 fi 30438 fi 30439 fi 30440 30441 fi 30442 30443 30444 30445 # Use user overridden value if available, otherwise locate tool in the Boot JDK. 30446 30447 # Publish this variable in the help. 30448 30449 30450 if [ -z "${JARSIGNER+x}" ]; then 30451 # The variable is not set by user, try to locate tool using the code snippet 30452 30453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jarsigner in Boot JDK" >&5 30454 $as_echo_n "checking for jarsigner in Boot JDK... " >&6; } 30455 JARSIGNER=$BOOT_JDK/bin/jarsigner 30456 if test ! -x $JARSIGNER; then 30457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 30458 $as_echo "not found" >&6; } 30459 { $as_echo "$as_me:${as_lineno-$LINENO}: Your Boot JDK seems broken. This might be fixed by explicitly setting --with-boot-jdk" >&5 30460 $as_echo "$as_me: Your Boot JDK seems broken. This might be fixed by explicitly setting --with-boot-jdk" >&6;} 30461 as_fn_error $? "Could not find jarsigner in the Boot JDK" "$LINENO" 5 30462 fi 30463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 30464 $as_echo "ok" >&6; } 30465 30466 30467 else 30468 # The variable is set, but is it from the command line or the environment? 30469 30470 # Try to remove the string !JARSIGNER! from our list. 30471 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!JARSIGNER!/} 30472 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 30473 # If it failed, the variable was not from the command line. Ignore it, 30474 # but warn the user (except for BASH, which is always set by the calling BASH). 30475 if test "xJARSIGNER" != xBASH; then 30476 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of JARSIGNER from the environment. Use command line variables instead." >&5 30477 $as_echo "$as_me: WARNING: Ignoring value of JARSIGNER from the environment. Use command line variables instead." >&2;} 30478 fi 30479 # Try to locate tool using the code snippet 30480 30481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jarsigner in Boot JDK" >&5 30482 $as_echo_n "checking for jarsigner in Boot JDK... " >&6; } 30483 JARSIGNER=$BOOT_JDK/bin/jarsigner 30484 if test ! -x $JARSIGNER; then 30485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 30486 $as_echo "not found" >&6; } 30487 { $as_echo "$as_me:${as_lineno-$LINENO}: Your Boot JDK seems broken. This might be fixed by explicitly setting --with-boot-jdk" >&5 30488 $as_echo "$as_me: Your Boot JDK seems broken. This might be fixed by explicitly setting --with-boot-jdk" >&6;} 30489 as_fn_error $? "Could not find jarsigner in the Boot JDK" "$LINENO" 5 30490 fi 30491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 30492 $as_echo "ok" >&6; } 30493 30494 30495 else 30496 # If it succeeded, then it was overridden by the user. We will use it 30497 # for the tool. 30498 30499 # First remove it from the list of overridden variables, so we can test 30500 # for unknown variables in the end. 30501 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 30502 30503 # Check if we try to supply an empty value 30504 if test "x$JARSIGNER" = x; then 30505 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool JARSIGNER= (no value)" >&5 30506 $as_echo "$as_me: Setting user supplied tool JARSIGNER= (no value)" >&6;} 30507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JARSIGNER" >&5 30508 $as_echo_n "checking for JARSIGNER... " >&6; } 30509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 30510 $as_echo "disabled" >&6; } 30511 else 30512 # Check if the provided tool contains a complete path. 30513 tool_specified="$JARSIGNER" 30514 tool_basename="${tool_specified##*/}" 30515 if test "x$tool_basename" = "x$tool_specified"; then 30516 # A command without a complete path is provided, search $PATH. 30517 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool JARSIGNER=$tool_basename" >&5 30518 $as_echo "$as_me: Will search for user supplied tool JARSIGNER=$tool_basename" >&6;} 30519 # Extract the first word of "$tool_basename", so it can be a program name with args. 30520 set dummy $tool_basename; ac_word=$2 30521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 30522 $as_echo_n "checking for $ac_word... " >&6; } 30523 if ${ac_cv_path_JARSIGNER+:} false; then : 30524 $as_echo_n "(cached) " >&6 30525 else 30526 case $JARSIGNER in 30527 [\\/]* | ?:[\\/]*) 30528 ac_cv_path_JARSIGNER="$JARSIGNER" # Let the user override the test with a path. 30529 ;; 30530 *) 30531 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 30532 for as_dir in $PATH 30533 do 30534 IFS=$as_save_IFS 30535 test -z "$as_dir" && as_dir=. 30536 for ac_exec_ext in '' $ac_executable_extensions; do 30537 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 30538 ac_cv_path_JARSIGNER="$as_dir/$ac_word$ac_exec_ext" 30539 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 30540 break 2 30541 fi 30542 done 30543 done 30544 IFS=$as_save_IFS 30545 30546 ;; 30547 esac 30548 fi 30549 JARSIGNER=$ac_cv_path_JARSIGNER 30550 if test -n "$JARSIGNER"; then 30551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JARSIGNER" >&5 30552 $as_echo "$JARSIGNER" >&6; } 30553 else 30554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 30555 $as_echo "no" >&6; } 30556 fi 30557 30558 30559 if test "x$JARSIGNER" = x; then 30560 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 30561 fi 30562 else 30563 # Otherwise we believe it is a complete path. Use it as it is. 30564 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool JARSIGNER=$tool_specified" >&5 30565 $as_echo "$as_me: Will use user supplied tool JARSIGNER=$tool_specified" >&6;} 30566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JARSIGNER" >&5 30567 $as_echo_n "checking for JARSIGNER... " >&6; } 30568 if test ! -x "$tool_specified"; then 30569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 30570 $as_echo "not found" >&6; } 30571 as_fn_error $? "User supplied tool JARSIGNER=$tool_specified does not exist or is not executable" "$LINENO" 5 30572 fi 30573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 30574 $as_echo "$tool_specified" >&6; } 30575 fi 30576 fi 30577 fi 30578 30579 fi 30580 30581 30582 30583 # Finally, set some other options... 30584 30585 # When compiling code to be executed by the Boot JDK, force jdk8 compatibility. 30586 BOOT_JDK_SOURCETARGET="-source 8 -target 8" 30587 30588 30589 30590 $ECHO "Check if jvm arg is ok: --patch-module foo=bar" >&5 30591 $ECHO "Command: $JAVA --patch-module foo=bar -version" >&5 30592 OUTPUT=`$JAVA --patch-module foo=bar -version 2>&1` 30593 FOUND_WARN=`$ECHO "$OUTPUT" | $GREP -i warn` 30594 FOUND_VERSION=`$ECHO $OUTPUT | $GREP " version \""` 30595 if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then 30596 dummy="$dummy --patch-module foo=bar" 30597 JVM_ARG_OK=true 30598 else 30599 $ECHO "Arg failed:" >&5 30600 $ECHO "$OUTPUT" >&5 30601 JVM_ARG_OK=false 30602 fi 30603 30604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Boot JDK supports modules" >&5 30605 $as_echo_n "checking if Boot JDK supports modules... " >&6; } 30606 if test "x$JVM_ARG_OK" = "xtrue"; then 30607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 30608 $as_echo "yes" >&6; } 30609 BOOT_JDK_MODULAR="true" 30610 else 30611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 30612 $as_echo "no" >&6; } 30613 BOOT_JDK_MODULAR="false" 30614 fi 30615 30616 30617 30618 30619 # Check if the boot jdk is 32 or 64 bit 30620 if "$JAVA" -d64 -version > /dev/null 2>&1; then 30621 BOOT_JDK_BITS="64" 30622 else 30623 BOOT_JDK_BITS="32" 30624 fi 30625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Boot JDK is 32 or 64 bits" >&5 30626 $as_echo_n "checking if Boot JDK is 32 or 64 bits... " >&6; } 30627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_BITS" >&5 30628 $as_echo "$BOOT_JDK_BITS" >&6; } 30629 30630 30631 30632 30633 # Check whether --with-build-jdk was given. 30634 if test "${with_build_jdk+set}" = set; then : 30635 withval=$with_build_jdk; 30636 fi 30637 30638 30639 CREATE_BUILDJDK=false 30640 EXTERNAL_BUILDJDK=false 30641 BUILD_JDK_FOUND="no" 30642 if test "x$with_build_jdk" != "x"; then 30643 30644 if test "x$BUILD_JDK_FOUND" = xno; then 30645 # Execute the test 30646 30647 if test "x$with_build_jdk" != x; then 30648 BUILD_JDK=$with_build_jdk 30649 BUILD_JDK_FOUND=maybe 30650 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Build JDK using configure arguments" >&5 30651 $as_echo "$as_me: Found potential Build JDK using configure arguments" >&6;} 30652 fi 30653 30654 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 30655 if test "x$BUILD_JDK_FOUND" = xmaybe; then 30656 # Do we have a bin/java? 30657 if test ! -x "$BUILD_JDK/bin/java"; then 30658 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Build JDK found at $BUILD_JDK did not contain bin/java; ignoring" >&5 30659 $as_echo "$as_me: Potential Build JDK found at $BUILD_JDK did not contain bin/java; ignoring" >&6;} 30660 BUILD_JDK_FOUND=no 30661 elif test ! -x "$BUILD_JDK/bin/jlink"; then 30662 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Build JDK found at $BUILD_JDK did not contain bin/jlink; ignoring" >&5 30663 $as_echo "$as_me: Potential Build JDK found at $BUILD_JDK did not contain bin/jlink; ignoring" >&6;} 30664 BUILD_JDK_FOUND=no 30665 elif test ! -x "$BUILD_JDK/bin/jmod"; then 30666 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Build JDK found at $BUILD_JDK did not contain bin/jmod; ignoring" >&5 30667 $as_echo "$as_me: Potential Build JDK found at $BUILD_JDK did not contain bin/jmod; ignoring" >&6;} 30668 BUILD_JDK_FOUND=no 30669 elif test ! -x "$BUILD_JDK/bin/javac"; then 30670 # Do we have a bin/javac? 30671 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Build JDK found at $BUILD_JDK did not contain bin/javac; ignoring" >&5 30672 $as_echo "$as_me: Potential Build JDK found at $BUILD_JDK did not contain bin/javac; ignoring" >&6;} 30673 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be a JRE instead of an JDK)" >&5 30674 $as_echo "$as_me: (This might be a JRE instead of an JDK)" >&6;} 30675 BUILD_JDK_FOUND=no 30676 else 30677 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 30678 BUILD_JDK_VERSION=`"$BUILD_JDK/bin/java" -version 2>&1 | $HEAD -n 1` 30679 30680 # Extra M4 quote needed to protect [] in grep expression. 30681 FOUND_CORRECT_VERSION=`echo $BUILD_JDK_VERSION | $EGREP '\"9([\.+-].*)?\"'` 30682 if test "x$FOUND_CORRECT_VERSION" = x; then 30683 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Build JDK found at $BUILD_JDK is incorrect JDK version ($BUILD_JDK_VERSION); ignoring" >&5 30684 $as_echo "$as_me: Potential Build JDK found at $BUILD_JDK is incorrect JDK version ($BUILD_JDK_VERSION); ignoring" >&6;} 30685 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Build JDK must be version 9)" >&5 30686 $as_echo "$as_me: (Your Build JDK must be version 9)" >&6;} 30687 BUILD_JDK_FOUND=no 30688 else 30689 # We're done! 30690 BUILD_JDK_FOUND=yes 30691 30692 # Only process if variable expands to non-empty 30693 30694 if test "x$BUILD_JDK" != x; then 30695 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 30696 30697 # Input might be given as Windows format, start by converting to 30698 # unix format. 30699 path="$BUILD_JDK" 30700 new_path=`$CYGPATH -u "$path"` 30701 30702 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 30703 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 30704 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 30705 # "foo.exe" is OK but "foo" is an error. 30706 # 30707 # This test is therefore slightly more accurate than "test -f" to check for file precense. 30708 # It is also a way to make sure we got the proper file name for the real test later on. 30709 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 30710 if test "x$test_shortpath" = x; then 30711 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_JDK, which resolves as \"$path\", is invalid." >&5 30712 $as_echo "$as_me: The path of BUILD_JDK, which resolves as \"$path\", is invalid." >&6;} 30713 as_fn_error $? "Cannot locate the the path of BUILD_JDK" "$LINENO" 5 30714 fi 30715 30716 # Call helper function which possibly converts this using DOS-style short mode. 30717 # If so, the updated path is stored in $new_path. 30718 30719 input_path="$new_path" 30720 # Check if we need to convert this using DOS-style short mode. If the path 30721 # contains just simple characters, use it. Otherwise (spaces, weird characters), 30722 # take no chances and rewrite it. 30723 # Note: m4 eats our [], so we need to use [ and ] instead. 30724 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 30725 if test "x$has_forbidden_chars" != x; then 30726 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 30727 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 30728 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 30729 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 30730 # Going to short mode and back again did indeed matter. Since short mode is 30731 # case insensitive, let's make it lowercase to improve readability. 30732 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 30733 # Now convert it back to Unix-style (cygpath) 30734 input_path=`$CYGPATH -u "$shortmode_path"` 30735 new_path="$input_path" 30736 fi 30737 fi 30738 30739 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 30740 if test "x$test_cygdrive_prefix" = x; then 30741 # As a simple fix, exclude /usr/bin since it's not a real path. 30742 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 30743 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 30744 # a path prefixed by /cygdrive for fixpath to work. 30745 new_path="$CYGWIN_ROOT_PATH$input_path" 30746 fi 30747 fi 30748 30749 30750 if test "x$path" != "x$new_path"; then 30751 BUILD_JDK="$new_path" 30752 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BUILD_JDK to \"$new_path\"" >&5 30753 $as_echo "$as_me: Rewriting BUILD_JDK to \"$new_path\"" >&6;} 30754 fi 30755 30756 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 30757 30758 path="$BUILD_JDK" 30759 has_colon=`$ECHO $path | $GREP ^.:` 30760 new_path="$path" 30761 if test "x$has_colon" = x; then 30762 # Not in mixed or Windows style, start by that. 30763 new_path=`cmd //c echo $path` 30764 fi 30765 30766 30767 input_path="$new_path" 30768 # Check if we need to convert this using DOS-style short mode. If the path 30769 # contains just simple characters, use it. Otherwise (spaces, weird characters), 30770 # take no chances and rewrite it. 30771 # Note: m4 eats our [], so we need to use [ and ] instead. 30772 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 30773 if test "x$has_forbidden_chars" != x; then 30774 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 30775 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 30776 fi 30777 30778 30779 windows_path="$new_path" 30780 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 30781 unix_path=`$CYGPATH -u "$windows_path"` 30782 new_path="$unix_path" 30783 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 30784 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 30785 new_path="$unix_path" 30786 fi 30787 30788 if test "x$path" != "x$new_path"; then 30789 BUILD_JDK="$new_path" 30790 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BUILD_JDK to \"$new_path\"" >&5 30791 $as_echo "$as_me: Rewriting BUILD_JDK to \"$new_path\"" >&6;} 30792 fi 30793 30794 # Save the first 10 bytes of this path to the storage, so fixpath can work. 30795 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 30796 30797 else 30798 # We're on a unix platform. Hooray! :) 30799 path="$BUILD_JDK" 30800 has_space=`$ECHO "$path" | $GREP " "` 30801 if test "x$has_space" != x; then 30802 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_JDK, which resolves as \"$path\", is invalid." >&5 30803 $as_echo "$as_me: The path of BUILD_JDK, which resolves as \"$path\", is invalid." >&6;} 30804 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 30805 fi 30806 30807 # Use eval to expand a potential ~ 30808 eval path="$path" 30809 if test ! -f "$path" && test ! -d "$path"; then 30810 as_fn_error $? "The path of BUILD_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 30811 fi 30812 30813 if test -d "$path"; then 30814 BUILD_JDK="`cd "$path"; $THEPWDCMD -L`" 30815 else 30816 dir="`$DIRNAME "$path"`" 30817 base="`$BASENAME "$path"`" 30818 BUILD_JDK="`cd "$dir"; $THEPWDCMD -L`/$base" 30819 fi 30820 fi 30821 fi 30822 30823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Build JDK" >&5 30824 $as_echo_n "checking for Build JDK... " >&6; } 30825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_JDK" >&5 30826 $as_echo "$BUILD_JDK" >&6; } 30827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Build JDK version" >&5 30828 $as_echo_n "checking Build JDK version... " >&6; } 30829 BUILD_JDK_VERSION=`"$BUILD_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 30830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_JDK_VERSION" >&5 30831 $as_echo "$BUILD_JDK_VERSION" >&6; } 30832 fi # end check jdk version 30833 fi # end check java 30834 fi # end check build jdk found 30835 fi 30836 30837 EXTERNAL_BUILDJDK=true 30838 else 30839 if test "x$COMPILE_TYPE" = "xcross"; then 30840 BUILD_JDK="\$(BUILDJDK_OUTPUTDIR)/jdk" 30841 BUILD_JDK_FOUND=yes 30842 CREATE_BUILDJDK=true 30843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Build JDK" >&5 30844 $as_echo_n "checking for Build JDK... " >&6; } 30845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, will build it for the host platform" >&5 30846 $as_echo "yes, will build it for the host platform" >&6; } 30847 else 30848 BUILD_JDK="\$(JDK_OUTPUTDIR)" 30849 BUILD_JDK_FOUND=yes 30850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Build JDK" >&5 30851 $as_echo_n "checking for Build JDK... " >&6; } 30852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, will use output dir" >&5 30853 $as_echo "yes, will use output dir" >&6; } 30854 fi 30855 fi 30856 30857 JMOD="$BUILD_JDK/bin/jmod" 30858 JLINK="$BUILD_JDK/bin/jlink" 30859 30860 30861 30862 if test "x$BUILD_JDK_FOUND" != "xyes"; then 30863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Build JDK" >&5 30864 $as_echo_n "checking for Build JDK... " >&6; } 30865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 30866 $as_echo "no" >&6; } 30867 as_fn_error $? "Could not find a suitable Build JDK" "$LINENO" 5 30868 fi 30869 30870 30871 30872 30873 30874 30875 ############################################################################### 30876 # 30877 # Configure the sources to use. We can add or override individual directories. 30878 # 30879 ############################################################################### 30880 30881 30882 # Where are the sources. 30883 LANGTOOLS_TOPDIR="$SRC_ROOT/langtools" 30884 CORBA_TOPDIR="$SRC_ROOT/corba" 30885 JAXP_TOPDIR="$SRC_ROOT/jaxp" 30886 JAXWS_TOPDIR="$SRC_ROOT/jaxws" 30887 HOTSPOT_TOPDIR="$SRC_ROOT/hotspot" 30888 NASHORN_TOPDIR="$SRC_ROOT/nashorn" 30889 JDK_TOPDIR="$SRC_ROOT/jdk" 30890 30891 30892 30893 30894 30895 30896 30897 30898 30899 # This feature is no longer supported. 30900 30901 30902 30903 # Check whether --with-add-source-root was given. 30904 if test "${with_add_source_root+set}" = set; then : 30905 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 30906 $as_echo "$as_me: WARNING: Option --with-add-source-root is deprecated and will be ignored." >&2;} 30907 fi 30908 30909 30910 30911 30912 # Check whether --with-override-source-root was given. 30913 if test "${with_override_source_root+set}" = set; then : 30914 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 30915 $as_echo "$as_me: WARNING: Option --with-override-source-root is deprecated and will be ignored." >&2;} 30916 fi 30917 30918 30919 30920 30921 # Check whether --with-adds-and-overrides was given. 30922 if test "${with_adds_and_overrides+set}" = set; then : 30923 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 30924 $as_echo "$as_me: WARNING: Option --with-adds-and-overrides is deprecated and will be ignored." >&2;} 30925 fi 30926 30927 30928 30929 30930 # Check whether --with-override-langtools was given. 30931 if test "${with_override_langtools+set}" = set; then : 30932 withval=$with_override_langtools; { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Option --with-override-langtools is deprecated and will be ignored." >&5 30933 $as_echo "$as_me: WARNING: Option --with-override-langtools is deprecated and will be ignored." >&2;} 30934 fi 30935 30936 30937 30938 30939 # Check whether --with-override-corba was given. 30940 if test "${with_override_corba+set}" = set; then : 30941 withval=$with_override_corba; { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Option --with-override-corba is deprecated and will be ignored." >&5 30942 $as_echo "$as_me: WARNING: Option --with-override-corba is deprecated and will be ignored." >&2;} 30943 fi 30944 30945 30946 30947 30948 # Check whether --with-override-jaxp was given. 30949 if test "${with_override_jaxp+set}" = set; then : 30950 withval=$with_override_jaxp; { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Option --with-override-jaxp is deprecated and will be ignored." >&5 30951 $as_echo "$as_me: WARNING: Option --with-override-jaxp is deprecated and will be ignored." >&2;} 30952 fi 30953 30954 30955 30956 30957 # Check whether --with-override-jaxws was given. 30958 if test "${with_override_jaxws+set}" = set; then : 30959 withval=$with_override_jaxws; { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Option --with-override-jaxws is deprecated and will be ignored." >&5 30960 $as_echo "$as_me: WARNING: Option --with-override-jaxws is deprecated and will be ignored." >&2;} 30961 fi 30962 30963 30964 30965 30966 # Check whether --with-override-hotspot was given. 30967 if test "${with_override_hotspot+set}" = set; then : 30968 withval=$with_override_hotspot; { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Option --with-override-hotspot is deprecated and will be ignored." >&5 30969 $as_echo "$as_me: WARNING: Option --with-override-hotspot is deprecated and will be ignored." >&2;} 30970 fi 30971 30972 30973 30974 30975 # Check whether --with-override-nashorn was given. 30976 if test "${with_override_nashorn+set}" = set; then : 30977 withval=$with_override_nashorn; { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Option --with-override-nashorn is deprecated and will be ignored." >&5 30978 $as_echo "$as_me: WARNING: Option --with-override-nashorn is deprecated and will be ignored." >&2;} 30979 fi 30980 30981 30982 30983 30984 # Check whether --with-override-jdk was given. 30985 if test "${with_override_jdk+set}" = set; then : 30986 withval=$with_override_jdk; { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Option --with-override-jdk is deprecated and will be ignored." >&5 30987 $as_echo "$as_me: WARNING: Option --with-override-jdk is deprecated and will be ignored." >&2;} 30988 fi 30989 30990 30991 30992 30993 BUILD_OUTPUT="$OUTPUT_ROOT" 30994 30995 30996 HOTSPOT_DIST="$OUTPUT_ROOT/hotspot/dist" 30997 BUILD_HOTSPOT=true 30998 30999 31000 31001 # Check whether --with-import-hotspot was given. 31002 if test "${with_import_hotspot+set}" = set; then : 31003 withval=$with_import_hotspot; 31004 fi 31005 31006 if test "x$with_import_hotspot" != x; then 31007 CURDIR="$PWD" 31008 cd "$with_import_hotspot" 31009 HOTSPOT_DIST="`pwd`" 31010 cd "$CURDIR" 31011 if ! (test -d $HOTSPOT_DIST/lib && test -d $HOTSPOT_DIST/jre/lib); then 31012 as_fn_error $? "You have to import hotspot from a full jdk image or hotspot build dist dir!" "$LINENO" 5 31013 fi 31014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if hotspot should be imported" >&5 31015 $as_echo_n "checking if hotspot should be imported... " >&6; } 31016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes from $HOTSPOT_DIST" >&5 31017 $as_echo "yes from $HOTSPOT_DIST" >&6; } 31018 BUILD_HOTSPOT=false 31019 fi 31020 31021 JDK_OUTPUTDIR="$OUTPUT_ROOT/jdk" 31022 31023 31024 31025 31026 # Check whether --with-import-modules was given. 31027 if test "${with_import_modules+set}" = set; then : 31028 withval=$with_import_modules; 31029 fi 31030 31031 31032 if test "x$with_import_modules" != x \ 31033 && test "x$with_import_modules" != "xno"; then 31034 if test -d "$with_import_modules"; then 31035 IMPORT_MODULES_TOPDIR="$with_import_modules" 31036 31037 # Only process if variable expands to non-empty 31038 31039 if test "x$IMPORT_MODULES_TOPDIR" != x; then 31040 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 31041 31042 # Input might be given as Windows format, start by converting to 31043 # unix format. 31044 path="$IMPORT_MODULES_TOPDIR" 31045 new_path=`$CYGPATH -u "$path"` 31046 31047 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 31048 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 31049 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 31050 # "foo.exe" is OK but "foo" is an error. 31051 # 31052 # This test is therefore slightly more accurate than "test -f" to check for file precense. 31053 # It is also a way to make sure we got the proper file name for the real test later on. 31054 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 31055 if test "x$test_shortpath" = x; then 31056 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of IMPORT_MODULES_TOPDIR, which resolves as \"$path\", is invalid." >&5 31057 $as_echo "$as_me: The path of IMPORT_MODULES_TOPDIR, which resolves as \"$path\", is invalid." >&6;} 31058 as_fn_error $? "Cannot locate the the path of IMPORT_MODULES_TOPDIR" "$LINENO" 5 31059 fi 31060 31061 # Call helper function which possibly converts this using DOS-style short mode. 31062 # If so, the updated path is stored in $new_path. 31063 31064 input_path="$new_path" 31065 # Check if we need to convert this using DOS-style short mode. If the path 31066 # contains just simple characters, use it. Otherwise (spaces, weird characters), 31067 # take no chances and rewrite it. 31068 # Note: m4 eats our [], so we need to use [ and ] instead. 31069 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 31070 if test "x$has_forbidden_chars" != x; then 31071 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 31072 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 31073 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 31074 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 31075 # Going to short mode and back again did indeed matter. Since short mode is 31076 # case insensitive, let's make it lowercase to improve readability. 31077 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 31078 # Now convert it back to Unix-style (cygpath) 31079 input_path=`$CYGPATH -u "$shortmode_path"` 31080 new_path="$input_path" 31081 fi 31082 fi 31083 31084 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 31085 if test "x$test_cygdrive_prefix" = x; then 31086 # As a simple fix, exclude /usr/bin since it's not a real path. 31087 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 31088 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 31089 # a path prefixed by /cygdrive for fixpath to work. 31090 new_path="$CYGWIN_ROOT_PATH$input_path" 31091 fi 31092 fi 31093 31094 31095 if test "x$path" != "x$new_path"; then 31096 IMPORT_MODULES_TOPDIR="$new_path" 31097 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting IMPORT_MODULES_TOPDIR to \"$new_path\"" >&5 31098 $as_echo "$as_me: Rewriting IMPORT_MODULES_TOPDIR to \"$new_path\"" >&6;} 31099 fi 31100 31101 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 31102 31103 path="$IMPORT_MODULES_TOPDIR" 31104 has_colon=`$ECHO $path | $GREP ^.:` 31105 new_path="$path" 31106 if test "x$has_colon" = x; then 31107 # Not in mixed or Windows style, start by that. 31108 new_path=`cmd //c echo $path` 31109 fi 31110 31111 31112 input_path="$new_path" 31113 # Check if we need to convert this using DOS-style short mode. If the path 31114 # contains just simple characters, use it. Otherwise (spaces, weird characters), 31115 # take no chances and rewrite it. 31116 # Note: m4 eats our [], so we need to use [ and ] instead. 31117 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 31118 if test "x$has_forbidden_chars" != x; then 31119 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 31120 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 31121 fi 31122 31123 31124 windows_path="$new_path" 31125 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 31126 unix_path=`$CYGPATH -u "$windows_path"` 31127 new_path="$unix_path" 31128 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 31129 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 31130 new_path="$unix_path" 31131 fi 31132 31133 if test "x$path" != "x$new_path"; then 31134 IMPORT_MODULES_TOPDIR="$new_path" 31135 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting IMPORT_MODULES_TOPDIR to \"$new_path\"" >&5 31136 $as_echo "$as_me: Rewriting IMPORT_MODULES_TOPDIR to \"$new_path\"" >&6;} 31137 fi 31138 31139 # Save the first 10 bytes of this path to the storage, so fixpath can work. 31140 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 31141 31142 else 31143 # We're on a unix platform. Hooray! :) 31144 path="$IMPORT_MODULES_TOPDIR" 31145 has_space=`$ECHO "$path" | $GREP " "` 31146 if test "x$has_space" != x; then 31147 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of IMPORT_MODULES_TOPDIR, which resolves as \"$path\", is invalid." >&5 31148 $as_echo "$as_me: The path of IMPORT_MODULES_TOPDIR, which resolves as \"$path\", is invalid." >&6;} 31149 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 31150 fi 31151 31152 # Use eval to expand a potential ~ 31153 eval path="$path" 31154 if test ! -f "$path" && test ! -d "$path"; then 31155 as_fn_error $? "The path of IMPORT_MODULES_TOPDIR, which resolves as \"$path\", is not found." "$LINENO" 5 31156 fi 31157 31158 if test -d "$path"; then 31159 IMPORT_MODULES_TOPDIR="`cd "$path"; $THEPWDCMD -L`" 31160 else 31161 dir="`$DIRNAME "$path"`" 31162 base="`$BASENAME "$path"`" 31163 IMPORT_MODULES_TOPDIR="`cd "$dir"; $THEPWDCMD -L`/$base" 31164 fi 31165 fi 31166 fi 31167 31168 elif test -e "$with_import_modules"; then 31169 IMPORT_MODULES_TOPDIR="$CONFIGURESUPPORT_OUTPUTDIR/import-modules" 31170 $RM -rf "$IMPORT_MODULES_TOPDIR" 31171 $MKDIR -p "$IMPORT_MODULES_TOPDIR" 31172 if ! $UNZIP -q "$with_import_modules" -d "$IMPORT_MODULES_TOPDIR"; then 31173 as_fn_error $? "--with-import-modules=\"$with_import_modules\" must point to a dir or a zip file" "$LINENO" 5 31174 fi 31175 else 31176 as_fn_error $? "--with-import-modules=\"$with_import_modules\" must point to a dir or a zip file" "$LINENO" 5 31177 fi 31178 fi 31179 31180 if test -d "$IMPORT_MODULES_TOPDIR/modules"; then 31181 IMPORT_MODULES_CLASSES="$IMPORT_MODULES_TOPDIR/modules" 31182 fi 31183 if test -d "$IMPORT_MODULES_TOPDIR/modules_cmds"; then 31184 IMPORT_MODULES_CMDS="$IMPORT_MODULES_TOPDIR/modules_cmds" 31185 fi 31186 if test -d "$IMPORT_MODULES_TOPDIR/modules_libs"; then 31187 IMPORT_MODULES_LIBS="$IMPORT_MODULES_TOPDIR/modules_libs" 31188 fi 31189 if test -d "$IMPORT_MODULES_TOPDIR/modules_conf"; then 31190 IMPORT_MODULES_CONF="$IMPORT_MODULES_TOPDIR/modules_conf" 31191 fi 31192 if test -d "$IMPORT_MODULES_TOPDIR/modules_legal"; then 31193 IMPORT_MODULES_LEGAL="$IMPORT_MODULES_TOPDIR/modules_legal" 31194 fi 31195 if test -d "$IMPORT_MODULES_TOPDIR/modules_man"; then 31196 IMPORT_MODULES_MAN="$IMPORT_MODULES_TOPDIR/modules_man" 31197 fi 31198 if test -d "$IMPORT_MODULES_TOPDIR/modules_src"; then 31199 IMPORT_MODULES_SRC="$IMPORT_MODULES_TOPDIR/modules_src" 31200 fi 31201 # Workaround for using different imported module-info.java in Jake due to a 31202 # change in format. Remove once new format is standard in JDK 9 and javafx 31203 # delivers just that. 31204 if test -d "$IMPORT_MODULES_TOPDIR/modules_src_jake"; then 31205 IMPORT_MODULES_SRC="$IMPORT_MODULES_TOPDIR/modules_src_jake $IMPORT_MODULES_SRC" 31206 fi 31207 if test -d "$IMPORT_MODULES_TOPDIR/make"; then 31208 IMPORT_MODULES_MAKE="$IMPORT_MODULES_TOPDIR/make" 31209 fi 31210 31211 31212 31213 31214 31215 31216 31217 31218 31219 ############################################################################### 31220 # 31221 # Setup the toolchain (compilers etc), i.e. tools used to compile and process 31222 # native code. 31223 # 31224 ############################################################################### 31225 31226 # See if we are doing a complete static build or not 31227 31228 # Check whether --enable-static-build was given. 31229 if test "${enable_static_build+set}" = set; then : 31230 enableval=$enable_static_build; 31231 fi 31232 31233 STATIC_BUILD=false 31234 if test "x$enable_static_build" = "xyes"; then 31235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if static build is enabled" >&5 31236 $as_echo_n "checking if static build is enabled... " >&6; } 31237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 31238 $as_echo "yes" >&6; } 31239 if test "x$OPENJDK_TARGET_OS" != "xmacosx"; then 31240 as_fn_error $? "--enable-static-build is only supported for macosx builds" "$LINENO" 5 31241 fi 31242 STATIC_BUILD_CFLAGS="-DSTATIC_BUILD=1" 31243 LEGACY_EXTRA_CFLAGS="$LEGACY_EXTRA_CFLAGS $STATIC_BUILD_CFLAGS" 31244 LEGACY_EXTRA_CXXFLAGS="$LEGACY_EXTRA_CXXFLAGS $STATIC_BUILD_CFLAGS" 31245 CFLAGS_JDKLIB_EXTRA="$CFLAGS_JDKLIB_EXTRA $STATIC_BUILD_CFLAGS" 31246 CXXFLAGS_JDKLIB_EXTRA="$CXXFLAGS_JDKLIB_EXTRA $STATIC_BUILD_CFLAGS" 31247 STATIC_BUILD=true 31248 elif test "x$enable_static_build" = "xno"; then 31249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if static build is enabled" >&5 31250 $as_echo_n "checking if static build is enabled... " >&6; } 31251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 31252 $as_echo "no" >&6; } 31253 elif test "x$enable_static_build" != "x"; then 31254 as_fn_error $? "--enable-static-build can only be assigned \"yes\" or \"no\"" "$LINENO" 5 31255 fi 31256 31257 31258 31259 31260 # First determine the toolchain type (compiler family) 31261 31262 31263 # Check whether --with-toolchain-type was given. 31264 if test "${with_toolchain_type+set}" = set; then : 31265 withval=$with_toolchain_type; 31266 fi 31267 31268 31269 # Use indirect variable referencing 31270 toolchain_var_name=VALID_TOOLCHAINS_$OPENJDK_BUILD_OS 31271 VALID_TOOLCHAINS=${!toolchain_var_name} 31272 31273 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 31274 if test -n "$XCODEBUILD"; then 31275 # On Mac OS X, default toolchain to clang after Xcode 5 31276 XCODE_VERSION_OUTPUT=`"$XCODEBUILD" -version 2>&1 | $HEAD -n 1` 31277 $ECHO "$XCODE_VERSION_OUTPUT" | $GREP "Xcode " > /dev/null 31278 if test $? -ne 0; then 31279 as_fn_error $? "Failed to determine Xcode version." "$LINENO" 5 31280 fi 31281 XCODE_MAJOR_VERSION=`$ECHO $XCODE_VERSION_OUTPUT | \ 31282 $SED -e 's/^Xcode \([1-9][0-9.]*\)/\1/' | \ 31283 $CUT -f 1 -d .` 31284 { $as_echo "$as_me:${as_lineno-$LINENO}: Xcode major version: $XCODE_MAJOR_VERSION" >&5 31285 $as_echo "$as_me: Xcode major version: $XCODE_MAJOR_VERSION" >&6;} 31286 if test $XCODE_MAJOR_VERSION -ge 5; then 31287 DEFAULT_TOOLCHAIN="clang" 31288 else 31289 DEFAULT_TOOLCHAIN="gcc" 31290 fi 31291 else 31292 # If Xcode is not installed, but the command line tools are 31293 # then we can't run xcodebuild. On these systems we should 31294 # default to clang 31295 DEFAULT_TOOLCHAIN="clang" 31296 fi 31297 else 31298 # First toolchain type in the list is the default 31299 DEFAULT_TOOLCHAIN=${VALID_TOOLCHAINS%% *} 31300 fi 31301 31302 if test "x$with_toolchain_type" = xlist; then 31303 # List all toolchains 31304 { $as_echo "$as_me:${as_lineno-$LINENO}: The following toolchains are valid on this platform:" >&5 31305 $as_echo "$as_me: The following toolchains are valid on this platform:" >&6;} 31306 for toolchain in $VALID_TOOLCHAINS; do 31307 toolchain_var_name=TOOLCHAIN_DESCRIPTION_$toolchain 31308 TOOLCHAIN_DESCRIPTION=${!toolchain_var_name} 31309 $PRINTF " %-10s %s\n" $toolchain "$TOOLCHAIN_DESCRIPTION" 31310 done 31311 31312 exit 0 31313 elif test "x$with_toolchain_type" != x; then 31314 # User override; check that it is valid 31315 if test "x${VALID_TOOLCHAINS/$with_toolchain_type/}" = "x${VALID_TOOLCHAINS}"; then 31316 { $as_echo "$as_me:${as_lineno-$LINENO}: Toolchain type $with_toolchain_type is not valid on this platform." >&5 31317 $as_echo "$as_me: Toolchain type $with_toolchain_type is not valid on this platform." >&6;} 31318 { $as_echo "$as_me:${as_lineno-$LINENO}: Valid toolchains: $VALID_TOOLCHAINS." >&5 31319 $as_echo "$as_me: Valid toolchains: $VALID_TOOLCHAINS." >&6;} 31320 as_fn_error $? "Cannot continue." "$LINENO" 5 31321 fi 31322 TOOLCHAIN_TYPE=$with_toolchain_type 31323 else 31324 # No flag given, use default 31325 TOOLCHAIN_TYPE=$DEFAULT_TOOLCHAIN 31326 fi 31327 31328 31329 TOOLCHAIN_CC_BINARY_clang="clang" 31330 TOOLCHAIN_CC_BINARY_gcc="gcc" 31331 TOOLCHAIN_CC_BINARY_microsoft="cl" 31332 TOOLCHAIN_CC_BINARY_solstudio="cc" 31333 TOOLCHAIN_CC_BINARY_xlc="xlc_r" 31334 31335 TOOLCHAIN_CXX_BINARY_clang="clang++" 31336 TOOLCHAIN_CXX_BINARY_gcc="g++" 31337 TOOLCHAIN_CXX_BINARY_microsoft="cl" 31338 TOOLCHAIN_CXX_BINARY_solstudio="CC" 31339 TOOLCHAIN_CXX_BINARY_xlc="xlC_r" 31340 31341 # Use indirect variable referencing 31342 toolchain_var_name=TOOLCHAIN_DESCRIPTION_$TOOLCHAIN_TYPE 31343 TOOLCHAIN_DESCRIPTION=${!toolchain_var_name} 31344 toolchain_var_name=TOOLCHAIN_MINIMUM_VERSION_$TOOLCHAIN_TYPE 31345 TOOLCHAIN_MINIMUM_VERSION=${!toolchain_var_name} 31346 toolchain_var_name=TOOLCHAIN_CC_BINARY_$TOOLCHAIN_TYPE 31347 TOOLCHAIN_CC_BINARY=${!toolchain_var_name} 31348 toolchain_var_name=TOOLCHAIN_CXX_BINARY_$TOOLCHAIN_TYPE 31349 TOOLCHAIN_CXX_BINARY=${!toolchain_var_name} 31350 31351 31352 # Define filename patterns 31353 if test "x$OPENJDK_TARGET_OS" = xwindows; then 31354 LIBRARY_PREFIX= 31355 SHARED_LIBRARY_SUFFIX='.dll' 31356 STATIC_LIBRARY_SUFFIX='.lib' 31357 SHARED_LIBRARY='$1.dll' 31358 STATIC_LIBRARY='$1.lib' 31359 OBJ_SUFFIX='.obj' 31360 EXE_SUFFIX='.exe' 31361 else 31362 LIBRARY_PREFIX=lib 31363 SHARED_LIBRARY_SUFFIX='.so' 31364 STATIC_LIBRARY_SUFFIX='.a' 31365 SHARED_LIBRARY='lib$1.so' 31366 STATIC_LIBRARY='lib$1.a' 31367 OBJ_SUFFIX='.o' 31368 EXE_SUFFIX='' 31369 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 31370 # For full static builds, we're overloading the SHARED_LIBRARY 31371 # variables in order to limit the amount of changes required. 31372 # It would be better to remove SHARED and just use LIBRARY and 31373 # LIBRARY_SUFFIX for libraries that can be built either 31374 # shared or static and use STATIC_* for libraries that are 31375 # always built statically. 31376 if test "x$STATIC_BUILD" = xtrue; then 31377 SHARED_LIBRARY='lib$1.a' 31378 SHARED_LIBRARY_SUFFIX='.a' 31379 else 31380 SHARED_LIBRARY='lib$1.dylib' 31381 SHARED_LIBRARY_SUFFIX='.dylib' 31382 fi 31383 fi 31384 fi 31385 31386 31387 31388 31389 31390 31391 31392 31393 31394 31395 if test "x$TOOLCHAIN_TYPE" = "x$DEFAULT_TOOLCHAIN"; then 31396 { $as_echo "$as_me:${as_lineno-$LINENO}: Using default toolchain $TOOLCHAIN_TYPE ($TOOLCHAIN_DESCRIPTION)" >&5 31397 $as_echo "$as_me: Using default toolchain $TOOLCHAIN_TYPE ($TOOLCHAIN_DESCRIPTION)" >&6;} 31398 else 31399 { $as_echo "$as_me:${as_lineno-$LINENO}: Using user selected toolchain $TOOLCHAIN_TYPE ($TOOLCHAIN_DESCRIPTION). Default toolchain is $DEFAULT_TOOLCHAIN." >&5 31400 $as_echo "$as_me: Using user selected toolchain $TOOLCHAIN_TYPE ($TOOLCHAIN_DESCRIPTION). Default toolchain is $DEFAULT_TOOLCHAIN." >&6;} 31401 fi 31402 31403 31404 # User supplied flags should be used when configure detects compilers 31405 31406 if test "x$CFLAGS" != "x${ADDED_CFLAGS}"; then 31407 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring CFLAGS($CFLAGS) found in environment. Use --with-extra-cflags" >&5 31408 $as_echo "$as_me: WARNING: Ignoring CFLAGS($CFLAGS) found in environment. Use --with-extra-cflags" >&2;} 31409 fi 31410 31411 if test "x$CXXFLAGS" != "x${ADDED_CXXFLAGS}"; then 31412 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring CXXFLAGS($CXXFLAGS) found in environment. Use --with-extra-cxxflags" >&5 31413 $as_echo "$as_me: WARNING: Ignoring CXXFLAGS($CXXFLAGS) found in environment. Use --with-extra-cxxflags" >&2;} 31414 fi 31415 31416 if test "x$LDFLAGS" != "x${ADDED_LDFLAGS}"; then 31417 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring LDFLAGS($LDFLAGS) found in environment. Use --with-extra-ldflags" >&5 31418 $as_echo "$as_me: WARNING: Ignoring LDFLAGS($LDFLAGS) found in environment. Use --with-extra-ldflags" >&2;} 31419 fi 31420 31421 31422 # Check whether --with-extra-cflags was given. 31423 if test "${with_extra_cflags+set}" = set; then : 31424 withval=$with_extra_cflags; 31425 fi 31426 31427 31428 31429 # Check whether --with-extra-cxxflags was given. 31430 if test "${with_extra_cxxflags+set}" = set; then : 31431 withval=$with_extra_cxxflags; 31432 fi 31433 31434 31435 31436 # Check whether --with-extra-ldflags was given. 31437 if test "${with_extra_ldflags+set}" = set; then : 31438 withval=$with_extra_ldflags; 31439 fi 31440 31441 31442 EXTRA_CFLAGS="$with_extra_cflags" 31443 EXTRA_CXXFLAGS="$with_extra_cxxflags" 31444 EXTRA_LDFLAGS="$with_extra_ldflags" 31445 31446 # Hotspot needs these set in their legacy form 31447 LEGACY_EXTRA_CFLAGS="$LEGACY_EXTRA_CFLAGS $EXTRA_CFLAGS" 31448 LEGACY_EXTRA_CXXFLAGS="$LEGACY_EXTRA_CXXFLAGS $EXTRA_CXXFLAGS" 31449 LEGACY_EXTRA_LDFLAGS="$LEGACY_EXTRA_LDFLAGS $EXTRA_LDFLAGS" 31450 31451 31452 31453 31454 31455 31456 31457 31458 31459 # The global CFLAGS and LDLAGS variables are used by configure tests and 31460 # should include the extra parameters 31461 CFLAGS="$EXTRA_CFLAGS" 31462 CXXFLAGS="$EXTRA_CXXFLAGS" 31463 LDFLAGS="$EXTRA_LDFLAGS" 31464 CPPFLAGS="" 31465 31466 # The sysroot cflags are needed for configure to be able to run the compilers 31467 31468 if test "x$SYSROOT" != "x"; then 31469 if test "x$TOOLCHAIN_TYPE" = xsolstudio; then 31470 if test "x$OPENJDK_TARGET_OS" = xsolaris; then 31471 # Solaris Studio does not have a concept of sysroot. Instead we must 31472 # make sure the default include and lib dirs are appended to each 31473 # compile and link command line. Must also add -I-xbuiltin to enable 31474 # inlining of system functions and intrinsics. 31475 SYSROOT_CFLAGS="-I-xbuiltin -I$SYSROOT/usr/include" 31476 SYSROOT_LDFLAGS="-L$SYSROOT/usr/lib$OPENJDK_TARGET_CPU_ISADIR \ 31477 -L$SYSROOT/lib$OPENJDK_TARGET_CPU_ISADIR" 31478 fi 31479 elif test "x$TOOLCHAIN_TYPE" = xgcc; then 31480 SYSROOT_CFLAGS="--sysroot=$SYSROOT" 31481 SYSROOT_LDFLAGS="--sysroot=$SYSROOT" 31482 elif test "x$TOOLCHAIN_TYPE" = xclang; then 31483 SYSROOT_CFLAGS="-isysroot $SYSROOT" 31484 SYSROOT_LDFLAGS="-isysroot $SYSROOT" 31485 fi 31486 # Propagate the sysroot args to hotspot 31487 LEGACY_EXTRA_CFLAGS="$LEGACY_EXTRA_CFLAGS $SYSROOT_CFLAGS" 31488 LEGACY_EXTRA_CXXFLAGS="$LEGACY_EXTRA_CXXFLAGS $SYSROOT_CFLAGS" 31489 LEGACY_EXTRA_LDFLAGS="$LEGACY_EXTRA_LDFLAGS $SYSROOT_LDFLAGS" 31490 # The global CFLAGS and LDFLAGS variables need these for configure to function 31491 CFLAGS="$CFLAGS $SYSROOT_CFLAGS" 31492 CPPFLAGS="$CPPFLAGS $SYSROOT_CFLAGS" 31493 CXXFLAGS="$CXXFLAGS $SYSROOT_CFLAGS" 31494 LDFLAGS="$LDFLAGS $SYSROOT_LDFLAGS" 31495 fi 31496 31497 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 31498 # We also need -iframework<path>/System/Library/Frameworks 31499 SYSROOT_CFLAGS="$SYSROOT_CFLAGS -iframework $SYSROOT/System/Library/Frameworks" 31500 SYSROOT_LDFLAGS="$SYSROOT_LDFLAGS -iframework $SYSROOT/System/Library/Frameworks" 31501 # These always need to be set, or we can't find the frameworks embedded in JavaVM.framework 31502 # set this here so it doesn't have to be peppered throughout the forest 31503 SYSROOT_CFLAGS="$SYSROOT_CFLAGS -F $SYSROOT/System/Library/Frameworks/JavaVM.framework/Frameworks" 31504 SYSROOT_LDFLAGS="$SYSROOT_LDFLAGS -F $SYSROOT/System/Library/Frameworks/JavaVM.framework/Frameworks" 31505 fi 31506 31507 31508 31509 31510 31511 # Then detect the actual binaries needed 31512 31513 # FIXME: Is this needed? 31514 ac_ext=cpp 31515 ac_cpp='$CXXCPP $CPPFLAGS' 31516 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 31517 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 31518 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 31519 31520 31521 # Store the CFLAGS etc passed to the configure script. 31522 ORG_CFLAGS="$CFLAGS" 31523 ORG_CXXFLAGS="$CXXFLAGS" 31524 31525 # autoconf magic only relies on PATH, so update it if tools dir is specified 31526 OLD_PATH="$PATH" 31527 31528 # On Windows, we need to detect the visual studio installation first. 31529 # This will change the PATH, but we need to keep that new PATH even 31530 # after toolchain detection is done, since the compiler (on x86) uses 31531 # it for DLL resolution in runtime. 31532 if test "x$OPENJDK_BUILD_OS" = "xwindows" \ 31533 && test "x$TOOLCHAIN_TYPE" = "xmicrosoft"; then 31534 31535 # Store path to cygwin link.exe to help excluding it when searching for 31536 # VS linker. This must be done before changing the PATH when looking for VS. 31537 # Extract the first word of "link", so it can be a program name with args. 31538 set dummy link; ac_word=$2 31539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 31540 $as_echo_n "checking for $ac_word... " >&6; } 31541 if ${ac_cv_path_CYGWIN_LINK+:} false; then : 31542 $as_echo_n "(cached) " >&6 31543 else 31544 case $CYGWIN_LINK in 31545 [\\/]* | ?:[\\/]*) 31546 ac_cv_path_CYGWIN_LINK="$CYGWIN_LINK" # Let the user override the test with a path. 31547 ;; 31548 *) 31549 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 31550 for as_dir in $PATH 31551 do 31552 IFS=$as_save_IFS 31553 test -z "$as_dir" && as_dir=. 31554 for ac_exec_ext in '' $ac_executable_extensions; do 31555 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 31556 ac_cv_path_CYGWIN_LINK="$as_dir/$ac_word$ac_exec_ext" 31557 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 31558 break 2 31559 fi 31560 done 31561 done 31562 IFS=$as_save_IFS 31563 31564 ;; 31565 esac 31566 fi 31567 CYGWIN_LINK=$ac_cv_path_CYGWIN_LINK 31568 if test -n "$CYGWIN_LINK"; then 31569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CYGWIN_LINK" >&5 31570 $as_echo "$CYGWIN_LINK" >&6; } 31571 else 31572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 31573 $as_echo "no" >&6; } 31574 fi 31575 31576 31577 if test "x$CYGWIN_LINK" != x; then 31578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the first found link.exe is actually the Cygwin link tool" >&5 31579 $as_echo_n "checking if the first found link.exe is actually the Cygwin link tool... " >&6; } 31580 "$CYGWIN_LINK" --version > /dev/null 31581 if test $? -eq 0 ; then 31582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 31583 $as_echo "yes" >&6; } 31584 else 31585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 31586 $as_echo "no" >&6; } 31587 # This might be the VS linker. Don't exclude it later on. 31588 CYGWIN_LINK="" 31589 fi 31590 fi 31591 31592 # First-hand choice is to locate and run the vsvars bat file. 31593 31594 31595 # Check whether --with-toolchain-version was given. 31596 if test "${with_toolchain_version+set}" = set; then : 31597 withval=$with_toolchain_version; 31598 fi 31599 31600 31601 if test "x$with_toolchain_version" = xlist; then 31602 # List all toolchains 31603 { $as_echo "$as_me:${as_lineno-$LINENO}: The following toolchain versions are valid on this platform:" >&5 31604 $as_echo "$as_me: The following toolchain versions are valid on this platform:" >&6;} 31605 for version in $VALID_VS_VERSIONS; do 31606 eval VS_DESCRIPTION=\${VS_DESCRIPTION_$version} 31607 $PRINTF " %-10s %s\n" $version "$VS_DESCRIPTION" 31608 done 31609 31610 exit 0 31611 elif test "x$DEVKIT_VS_VERSION" != x; then 31612 VS_VERSION=$DEVKIT_VS_VERSION 31613 TOOLCHAIN_VERSION=$VS_VERSION 31614 eval VS_DESCRIPTION="\${VS_DESCRIPTION_${VS_VERSION}}" 31615 eval VS_VERSION_INTERNAL="\${VS_VERSION_INTERNAL_${VS_VERSION}}" 31616 eval MSVCR_NAME="\${VS_MSVCR_${VS_VERSION}}" 31617 eval MSVCP_NAME="\${VS_MSVCP_${VS_VERSION}}" 31618 eval PLATFORM_TOOLSET="\${VS_VS_PLATFORM_NAME_${VS_VERSION}}" 31619 VS_PATH="$TOOLCHAIN_PATH:$PATH" 31620 31621 # Convert DEVKIT_VS_INCLUDE into windows style VS_INCLUDE so that it 31622 # can still be exported as INCLUDE for compiler invocations without 31623 # SYSROOT_CFLAGS 31624 OLDIFS="$IFS" 31625 IFS=";" 31626 for i in $DEVKIT_VS_INCLUDE; do 31627 ipath=$i 31628 31629 unix_path="$ipath" 31630 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 31631 windows_path=`$CYGPATH -m "$unix_path"` 31632 ipath="$windows_path" 31633 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 31634 windows_path=`cmd //c echo $unix_path` 31635 ipath="$windows_path" 31636 fi 31637 31638 VS_INCLUDE="$VS_INCLUDE;$ipath" 31639 done 31640 # Convert DEVKIT_VS_LIB into VS_LIB so that it can still be exported 31641 # as LIB for compiler invocations without SYSROOT_LDFLAGS 31642 for i in $DEVKIT_VS_LIB; do 31643 libpath=$i 31644 31645 unix_path="$libpath" 31646 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 31647 windows_path=`$CYGPATH -m "$unix_path"` 31648 libpath="$windows_path" 31649 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 31650 windows_path=`cmd //c echo $unix_path` 31651 libpath="$windows_path" 31652 fi 31653 31654 VS_LIB="$VS_LIB;$libpath" 31655 done 31656 IFS="$OLDIFS" 31657 31658 { $as_echo "$as_me:${as_lineno-$LINENO}: Found devkit $VS_DESCRIPTION" >&5 31659 $as_echo "$as_me: Found devkit $VS_DESCRIPTION" >&6;} 31660 31661 elif test "x$with_toolchain_version" != x; then 31662 # User override; check that it is valid 31663 if test "x${VALID_VS_VERSIONS/$with_toolchain_version/}" = "x${VALID_VS_VERSIONS}"; then 31664 { $as_echo "$as_me:${as_lineno-$LINENO}: Visual Studio version $with_toolchain_version is not valid." >&5 31665 $as_echo "$as_me: Visual Studio version $with_toolchain_version is not valid." >&6;} 31666 { $as_echo "$as_me:${as_lineno-$LINENO}: Valid Visual Studio versions: $VALID_VS_VERSIONS." >&5 31667 $as_echo "$as_me: Valid Visual Studio versions: $VALID_VS_VERSIONS." >&6;} 31668 as_fn_error $? "Cannot continue." "$LINENO" 5 31669 fi 31670 VS_VERSIONS_PROBE_LIST="$with_toolchain_version" 31671 else 31672 # No flag given, use default 31673 VS_VERSIONS_PROBE_LIST="$VALID_VS_VERSIONS" 31674 fi 31675 31676 for VS_VERSION in $VS_VERSIONS_PROBE_LIST; do 31677 31678 VS_VERSION="$VS_VERSION" 31679 eval VS_COMNTOOLS_VAR="\${VS_ENVVAR_${VS_VERSION}}" 31680 eval VS_COMNTOOLS="\$${VS_COMNTOOLS_VAR}" 31681 eval VS_INSTALL_DIR="\${VS_VS_INSTALLDIR_${VS_VERSION}}" 31682 eval SDK_INSTALL_DIR="\${VS_SDK_INSTALLDIR_${VS_VERSION}}" 31683 31684 # When using --with-tools-dir, assume it points to the correct and default 31685 # version of Visual Studio or that --with-toolchain-version was also set. 31686 if test "x$with_tools_dir" != x; then 31687 31688 if test "x$VS_ENV_CMD" = x; then 31689 VS_VERSION="${VS_VERSION}" 31690 VS_BASE="$with_tools_dir/../.." 31691 METHOD="--with-tools-dir" 31692 31693 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 31694 VCVARSFILE="vc/bin/vcvars32.bat" 31695 else 31696 VCVARSFILE="vc/bin/amd64/vcvars64.bat" 31697 fi 31698 31699 31700 windows_path="$VS_BASE" 31701 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 31702 unix_path=`$CYGPATH -u "$windows_path"` 31703 VS_BASE="$unix_path" 31704 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 31705 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 31706 VS_BASE="$unix_path" 31707 fi 31708 31709 if test -d "$VS_BASE"; then 31710 if test -f "$VS_BASE/$VCVARSFILE"; then 31711 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Visual Studio installation at $VS_BASE using $METHOD" >&5 31712 $as_echo "$as_me: Found Visual Studio installation at $VS_BASE using $METHOD" >&6;} 31713 VS_ENV_CMD="$VS_BASE/$VCVARSFILE" 31714 # PLATFORM_TOOLSET is used during the compilation of the freetype sources (see 31715 # 'LIB_BUILD_FREETYPE' in libraries.m4) and must be one of 'v100', 'v110' or 'v120' for VS 2010, 2012 or VS2013 31716 eval PLATFORM_TOOLSET="\${VS_VS_PLATFORM_NAME_${VS_VERSION}}" 31717 else 31718 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Visual Studio installation at $VS_BASE using $METHOD" >&5 31719 $as_echo "$as_me: Found Visual Studio installation at $VS_BASE using $METHOD" >&6;} 31720 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: $VCVARSFILE is missing, this is probably Visual Studio Express. Ignoring" >&5 31721 $as_echo "$as_me: Warning: $VCVARSFILE is missing, this is probably Visual Studio Express. Ignoring" >&6;} 31722 fi 31723 fi 31724 fi 31725 31726 31727 if test "x$VS_ENV_CMD" = x; then 31728 VS_VERSION="${VS_VERSION}" 31729 VS_BASE="$with_tools_dir/../../.." 31730 METHOD="--with-tools-dir" 31731 31732 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 31733 VCVARSFILE="vc/bin/vcvars32.bat" 31734 else 31735 VCVARSFILE="vc/bin/amd64/vcvars64.bat" 31736 fi 31737 31738 31739 windows_path="$VS_BASE" 31740 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 31741 unix_path=`$CYGPATH -u "$windows_path"` 31742 VS_BASE="$unix_path" 31743 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 31744 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 31745 VS_BASE="$unix_path" 31746 fi 31747 31748 if test -d "$VS_BASE"; then 31749 if test -f "$VS_BASE/$VCVARSFILE"; then 31750 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Visual Studio installation at $VS_BASE using $METHOD" >&5 31751 $as_echo "$as_me: Found Visual Studio installation at $VS_BASE using $METHOD" >&6;} 31752 VS_ENV_CMD="$VS_BASE/$VCVARSFILE" 31753 # PLATFORM_TOOLSET is used during the compilation of the freetype sources (see 31754 # 'LIB_BUILD_FREETYPE' in libraries.m4) and must be one of 'v100', 'v110' or 'v120' for VS 2010, 2012 or VS2013 31755 eval PLATFORM_TOOLSET="\${VS_VS_PLATFORM_NAME_${VS_VERSION}}" 31756 else 31757 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Visual Studio installation at $VS_BASE using $METHOD" >&5 31758 $as_echo "$as_me: Found Visual Studio installation at $VS_BASE using $METHOD" >&6;} 31759 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: $VCVARSFILE is missing, this is probably Visual Studio Express. Ignoring" >&5 31760 $as_echo "$as_me: Warning: $VCVARSFILE is missing, this is probably Visual Studio Express. Ignoring" >&6;} 31761 fi 31762 fi 31763 fi 31764 31765 if test "x$VS_ENV_CMD" = x; then 31766 # Having specified an argument which is incorrect will produce an instant failure; 31767 # we should not go on looking 31768 { $as_echo "$as_me:${as_lineno-$LINENO}: The path given by --with-tools-dir does not contain a valid" >&5 31769 $as_echo "$as_me: The path given by --with-tools-dir does not contain a valid" >&6;} 31770 { $as_echo "$as_me:${as_lineno-$LINENO}: Visual Studio installation. Please point to the VC/bin or VC/bin/amd64" >&5 31771 $as_echo "$as_me: Visual Studio installation. Please point to the VC/bin or VC/bin/amd64" >&6;} 31772 { $as_echo "$as_me:${as_lineno-$LINENO}: directory within the Visual Studio installation" >&5 31773 $as_echo "$as_me: directory within the Visual Studio installation" >&6;} 31774 as_fn_error $? "Cannot locate a valid Visual Studio installation" "$LINENO" 5 31775 fi 31776 fi 31777 31778 VS_ENV_CMD="" 31779 VS_ENV_ARGS="" 31780 31781 if test "x$VS_COMNTOOLS" != x; then 31782 31783 if test "x$VS_ENV_CMD" = x; then 31784 VS_VERSION="${VS_VERSION}" 31785 VS_BASE="$VS_COMNTOOLS/../.." 31786 METHOD="$VS_COMNTOOLS_VAR variable" 31787 31788 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 31789 VCVARSFILE="vc/bin/vcvars32.bat" 31790 else 31791 VCVARSFILE="vc/bin/amd64/vcvars64.bat" 31792 fi 31793 31794 31795 windows_path="$VS_BASE" 31796 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 31797 unix_path=`$CYGPATH -u "$windows_path"` 31798 VS_BASE="$unix_path" 31799 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 31800 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 31801 VS_BASE="$unix_path" 31802 fi 31803 31804 if test -d "$VS_BASE"; then 31805 if test -f "$VS_BASE/$VCVARSFILE"; then 31806 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Visual Studio installation at $VS_BASE using $METHOD" >&5 31807 $as_echo "$as_me: Found Visual Studio installation at $VS_BASE using $METHOD" >&6;} 31808 VS_ENV_CMD="$VS_BASE/$VCVARSFILE" 31809 # PLATFORM_TOOLSET is used during the compilation of the freetype sources (see 31810 # 'LIB_BUILD_FREETYPE' in libraries.m4) and must be one of 'v100', 'v110' or 'v120' for VS 2010, 2012 or VS2013 31811 eval PLATFORM_TOOLSET="\${VS_VS_PLATFORM_NAME_${VS_VERSION}}" 31812 else 31813 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Visual Studio installation at $VS_BASE using $METHOD" >&5 31814 $as_echo "$as_me: Found Visual Studio installation at $VS_BASE using $METHOD" >&6;} 31815 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: $VCVARSFILE is missing, this is probably Visual Studio Express. Ignoring" >&5 31816 $as_echo "$as_me: Warning: $VCVARSFILE is missing, this is probably Visual Studio Express. Ignoring" >&6;} 31817 fi 31818 fi 31819 fi 31820 31821 fi 31822 if test "x$PROGRAMFILES" != x; then 31823 31824 if test "x$VS_ENV_CMD" = x; then 31825 VS_VERSION="${VS_VERSION}" 31826 VS_BASE="$PROGRAMFILES/$VS_INSTALL_DIR" 31827 METHOD="well-known name" 31828 31829 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 31830 VCVARSFILE="vc/bin/vcvars32.bat" 31831 else 31832 VCVARSFILE="vc/bin/amd64/vcvars64.bat" 31833 fi 31834 31835 31836 windows_path="$VS_BASE" 31837 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 31838 unix_path=`$CYGPATH -u "$windows_path"` 31839 VS_BASE="$unix_path" 31840 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 31841 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 31842 VS_BASE="$unix_path" 31843 fi 31844 31845 if test -d "$VS_BASE"; then 31846 if test -f "$VS_BASE/$VCVARSFILE"; then 31847 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Visual Studio installation at $VS_BASE using $METHOD" >&5 31848 $as_echo "$as_me: Found Visual Studio installation at $VS_BASE using $METHOD" >&6;} 31849 VS_ENV_CMD="$VS_BASE/$VCVARSFILE" 31850 # PLATFORM_TOOLSET is used during the compilation of the freetype sources (see 31851 # 'LIB_BUILD_FREETYPE' in libraries.m4) and must be one of 'v100', 'v110' or 'v120' for VS 2010, 2012 or VS2013 31852 eval PLATFORM_TOOLSET="\${VS_VS_PLATFORM_NAME_${VS_VERSION}}" 31853 else 31854 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Visual Studio installation at $VS_BASE using $METHOD" >&5 31855 $as_echo "$as_me: Found Visual Studio installation at $VS_BASE using $METHOD" >&6;} 31856 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: $VCVARSFILE is missing, this is probably Visual Studio Express. Ignoring" >&5 31857 $as_echo "$as_me: Warning: $VCVARSFILE is missing, this is probably Visual Studio Express. Ignoring" >&6;} 31858 fi 31859 fi 31860 fi 31861 31862 fi 31863 # Work around the insanely named ProgramFiles(x86) env variable 31864 PROGRAMFILES_X86="`env | $SED -n 's/^ProgramFiles(x86)=//p'`" 31865 if test "x$PROGRAMFILES_X86" != x; then 31866 31867 if test "x$VS_ENV_CMD" = x; then 31868 VS_VERSION="${VS_VERSION}" 31869 VS_BASE="$PROGRAMFILES_X86/$VS_INSTALL_DIR" 31870 METHOD="well-known name" 31871 31872 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 31873 VCVARSFILE="vc/bin/vcvars32.bat" 31874 else 31875 VCVARSFILE="vc/bin/amd64/vcvars64.bat" 31876 fi 31877 31878 31879 windows_path="$VS_BASE" 31880 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 31881 unix_path=`$CYGPATH -u "$windows_path"` 31882 VS_BASE="$unix_path" 31883 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 31884 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 31885 VS_BASE="$unix_path" 31886 fi 31887 31888 if test -d "$VS_BASE"; then 31889 if test -f "$VS_BASE/$VCVARSFILE"; then 31890 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Visual Studio installation at $VS_BASE using $METHOD" >&5 31891 $as_echo "$as_me: Found Visual Studio installation at $VS_BASE using $METHOD" >&6;} 31892 VS_ENV_CMD="$VS_BASE/$VCVARSFILE" 31893 # PLATFORM_TOOLSET is used during the compilation of the freetype sources (see 31894 # 'LIB_BUILD_FREETYPE' in libraries.m4) and must be one of 'v100', 'v110' or 'v120' for VS 2010, 2012 or VS2013 31895 eval PLATFORM_TOOLSET="\${VS_VS_PLATFORM_NAME_${VS_VERSION}}" 31896 else 31897 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Visual Studio installation at $VS_BASE using $METHOD" >&5 31898 $as_echo "$as_me: Found Visual Studio installation at $VS_BASE using $METHOD" >&6;} 31899 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: $VCVARSFILE is missing, this is probably Visual Studio Express. Ignoring" >&5 31900 $as_echo "$as_me: Warning: $VCVARSFILE is missing, this is probably Visual Studio Express. Ignoring" >&6;} 31901 fi 31902 fi 31903 fi 31904 31905 fi 31906 31907 if test "x$VS_ENV_CMD" = x; then 31908 VS_VERSION="${VS_VERSION}" 31909 VS_BASE="C:/Program Files/$VS_INSTALL_DIR" 31910 METHOD="well-known name" 31911 31912 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 31913 VCVARSFILE="vc/bin/vcvars32.bat" 31914 else 31915 VCVARSFILE="vc/bin/amd64/vcvars64.bat" 31916 fi 31917 31918 31919 windows_path="$VS_BASE" 31920 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 31921 unix_path=`$CYGPATH -u "$windows_path"` 31922 VS_BASE="$unix_path" 31923 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 31924 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 31925 VS_BASE="$unix_path" 31926 fi 31927 31928 if test -d "$VS_BASE"; then 31929 if test -f "$VS_BASE/$VCVARSFILE"; then 31930 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Visual Studio installation at $VS_BASE using $METHOD" >&5 31931 $as_echo "$as_me: Found Visual Studio installation at $VS_BASE using $METHOD" >&6;} 31932 VS_ENV_CMD="$VS_BASE/$VCVARSFILE" 31933 # PLATFORM_TOOLSET is used during the compilation of the freetype sources (see 31934 # 'LIB_BUILD_FREETYPE' in libraries.m4) and must be one of 'v100', 'v110' or 'v120' for VS 2010, 2012 or VS2013 31935 eval PLATFORM_TOOLSET="\${VS_VS_PLATFORM_NAME_${VS_VERSION}}" 31936 else 31937 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Visual Studio installation at $VS_BASE using $METHOD" >&5 31938 $as_echo "$as_me: Found Visual Studio installation at $VS_BASE using $METHOD" >&6;} 31939 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: $VCVARSFILE is missing, this is probably Visual Studio Express. Ignoring" >&5 31940 $as_echo "$as_me: Warning: $VCVARSFILE is missing, this is probably Visual Studio Express. Ignoring" >&6;} 31941 fi 31942 fi 31943 fi 31944 31945 31946 if test "x$VS_ENV_CMD" = x; then 31947 VS_VERSION="${VS_VERSION}" 31948 VS_BASE="C:/Program Files (x86)/$VS_INSTALL_DIR" 31949 METHOD="well-known name" 31950 31951 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 31952 VCVARSFILE="vc/bin/vcvars32.bat" 31953 else 31954 VCVARSFILE="vc/bin/amd64/vcvars64.bat" 31955 fi 31956 31957 31958 windows_path="$VS_BASE" 31959 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 31960 unix_path=`$CYGPATH -u "$windows_path"` 31961 VS_BASE="$unix_path" 31962 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 31963 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 31964 VS_BASE="$unix_path" 31965 fi 31966 31967 if test -d "$VS_BASE"; then 31968 if test -f "$VS_BASE/$VCVARSFILE"; then 31969 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Visual Studio installation at $VS_BASE using $METHOD" >&5 31970 $as_echo "$as_me: Found Visual Studio installation at $VS_BASE using $METHOD" >&6;} 31971 VS_ENV_CMD="$VS_BASE/$VCVARSFILE" 31972 # PLATFORM_TOOLSET is used during the compilation of the freetype sources (see 31973 # 'LIB_BUILD_FREETYPE' in libraries.m4) and must be one of 'v100', 'v110' or 'v120' for VS 2010, 2012 or VS2013 31974 eval PLATFORM_TOOLSET="\${VS_VS_PLATFORM_NAME_${VS_VERSION}}" 31975 else 31976 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Visual Studio installation at $VS_BASE using $METHOD" >&5 31977 $as_echo "$as_me: Found Visual Studio installation at $VS_BASE using $METHOD" >&6;} 31978 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: $VCVARSFILE is missing, this is probably Visual Studio Express. Ignoring" >&5 31979 $as_echo "$as_me: Warning: $VCVARSFILE is missing, this is probably Visual Studio Express. Ignoring" >&6;} 31980 fi 31981 fi 31982 fi 31983 31984 31985 if test "x$SDK_INSTALL_DIR" != x; then 31986 if test "x$ProgramW6432" != x; then 31987 31988 if test "x$VS_ENV_CMD" = x; then 31989 VS_VERSION="${VS_VERSION}" 31990 WIN_SDK_BASE="$ProgramW6432/$SDK_INSTALL_DIR" 31991 METHOD="well-known name" 31992 31993 windows_path="$WIN_SDK_BASE" 31994 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 31995 unix_path=`$CYGPATH -u "$windows_path"` 31996 WIN_SDK_BASE="$unix_path" 31997 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 31998 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 31999 WIN_SDK_BASE="$unix_path" 32000 fi 32001 32002 if test -d "$WIN_SDK_BASE"; then 32003 # There have been cases of partial or broken SDK installations. A missing 32004 # lib dir is not going to work. 32005 if test ! -d "$WIN_SDK_BASE/lib"; then 32006 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5 32007 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;} 32008 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: Installation is broken, lib dir is missing. Ignoring" >&5 32009 $as_echo "$as_me: Warning: Installation is broken, lib dir is missing. Ignoring" >&6;} 32010 elif test -f "$WIN_SDK_BASE/Bin/SetEnv.Cmd"; then 32011 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5 32012 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;} 32013 VS_ENV_CMD="$WIN_SDK_BASE/Bin/SetEnv.Cmd" 32014 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 32015 VS_ENV_ARGS="/x86" 32016 else 32017 VS_ENV_ARGS="/x64" 32018 fi 32019 # PLATFORM_TOOLSET is used during the compilation of the freetype sources (see 32020 # 'LIB_BUILD_FREETYPE' in libraries.m4) and must be 'Windows7.1SDK' for Windows7.1SDK 32021 # TODO: improve detection for other versions of SDK 32022 eval PLATFORM_TOOLSET="\${VS_SDK_PLATFORM_NAME_${VS_VERSION}}" 32023 else 32024 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5 32025 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;} 32026 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: Installation is broken, SetEnv.Cmd is missing. Ignoring" >&5 32027 $as_echo "$as_me: Warning: Installation is broken, SetEnv.Cmd is missing. Ignoring" >&6;} 32028 fi 32029 fi 32030 fi 32031 32032 fi 32033 if test "x$PROGRAMW6432" != x; then 32034 32035 if test "x$VS_ENV_CMD" = x; then 32036 VS_VERSION="${VS_VERSION}" 32037 WIN_SDK_BASE="$PROGRAMW6432/$SDK_INSTALL_DIR" 32038 METHOD="well-known name" 32039 32040 windows_path="$WIN_SDK_BASE" 32041 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 32042 unix_path=`$CYGPATH -u "$windows_path"` 32043 WIN_SDK_BASE="$unix_path" 32044 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 32045 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 32046 WIN_SDK_BASE="$unix_path" 32047 fi 32048 32049 if test -d "$WIN_SDK_BASE"; then 32050 # There have been cases of partial or broken SDK installations. A missing 32051 # lib dir is not going to work. 32052 if test ! -d "$WIN_SDK_BASE/lib"; then 32053 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5 32054 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;} 32055 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: Installation is broken, lib dir is missing. Ignoring" >&5 32056 $as_echo "$as_me: Warning: Installation is broken, lib dir is missing. Ignoring" >&6;} 32057 elif test -f "$WIN_SDK_BASE/Bin/SetEnv.Cmd"; then 32058 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5 32059 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;} 32060 VS_ENV_CMD="$WIN_SDK_BASE/Bin/SetEnv.Cmd" 32061 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 32062 VS_ENV_ARGS="/x86" 32063 else 32064 VS_ENV_ARGS="/x64" 32065 fi 32066 # PLATFORM_TOOLSET is used during the compilation of the freetype sources (see 32067 # 'LIB_BUILD_FREETYPE' in libraries.m4) and must be 'Windows7.1SDK' for Windows7.1SDK 32068 # TODO: improve detection for other versions of SDK 32069 eval PLATFORM_TOOLSET="\${VS_SDK_PLATFORM_NAME_${VS_VERSION}}" 32070 else 32071 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5 32072 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;} 32073 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: Installation is broken, SetEnv.Cmd is missing. Ignoring" >&5 32074 $as_echo "$as_me: Warning: Installation is broken, SetEnv.Cmd is missing. Ignoring" >&6;} 32075 fi 32076 fi 32077 fi 32078 32079 fi 32080 if test "x$PROGRAMFILES" != x; then 32081 32082 if test "x$VS_ENV_CMD" = x; then 32083 VS_VERSION="${VS_VERSION}" 32084 WIN_SDK_BASE="$PROGRAMFILES/$SDK_INSTALL_DIR" 32085 METHOD="well-known name" 32086 32087 windows_path="$WIN_SDK_BASE" 32088 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 32089 unix_path=`$CYGPATH -u "$windows_path"` 32090 WIN_SDK_BASE="$unix_path" 32091 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 32092 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 32093 WIN_SDK_BASE="$unix_path" 32094 fi 32095 32096 if test -d "$WIN_SDK_BASE"; then 32097 # There have been cases of partial or broken SDK installations. A missing 32098 # lib dir is not going to work. 32099 if test ! -d "$WIN_SDK_BASE/lib"; then 32100 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5 32101 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;} 32102 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: Installation is broken, lib dir is missing. Ignoring" >&5 32103 $as_echo "$as_me: Warning: Installation is broken, lib dir is missing. Ignoring" >&6;} 32104 elif test -f "$WIN_SDK_BASE/Bin/SetEnv.Cmd"; then 32105 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5 32106 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;} 32107 VS_ENV_CMD="$WIN_SDK_BASE/Bin/SetEnv.Cmd" 32108 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 32109 VS_ENV_ARGS="/x86" 32110 else 32111 VS_ENV_ARGS="/x64" 32112 fi 32113 # PLATFORM_TOOLSET is used during the compilation of the freetype sources (see 32114 # 'LIB_BUILD_FREETYPE' in libraries.m4) and must be 'Windows7.1SDK' for Windows7.1SDK 32115 # TODO: improve detection for other versions of SDK 32116 eval PLATFORM_TOOLSET="\${VS_SDK_PLATFORM_NAME_${VS_VERSION}}" 32117 else 32118 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5 32119 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;} 32120 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: Installation is broken, SetEnv.Cmd is missing. Ignoring" >&5 32121 $as_echo "$as_me: Warning: Installation is broken, SetEnv.Cmd is missing. Ignoring" >&6;} 32122 fi 32123 fi 32124 fi 32125 32126 fi 32127 32128 if test "x$VS_ENV_CMD" = x; then 32129 VS_VERSION="${VS_VERSION}" 32130 WIN_SDK_BASE="C:/Program Files/$SDK_INSTALL_DIR" 32131 METHOD="well-known name" 32132 32133 windows_path="$WIN_SDK_BASE" 32134 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 32135 unix_path=`$CYGPATH -u "$windows_path"` 32136 WIN_SDK_BASE="$unix_path" 32137 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 32138 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 32139 WIN_SDK_BASE="$unix_path" 32140 fi 32141 32142 if test -d "$WIN_SDK_BASE"; then 32143 # There have been cases of partial or broken SDK installations. A missing 32144 # lib dir is not going to work. 32145 if test ! -d "$WIN_SDK_BASE/lib"; then 32146 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5 32147 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;} 32148 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: Installation is broken, lib dir is missing. Ignoring" >&5 32149 $as_echo "$as_me: Warning: Installation is broken, lib dir is missing. Ignoring" >&6;} 32150 elif test -f "$WIN_SDK_BASE/Bin/SetEnv.Cmd"; then 32151 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5 32152 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;} 32153 VS_ENV_CMD="$WIN_SDK_BASE/Bin/SetEnv.Cmd" 32154 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 32155 VS_ENV_ARGS="/x86" 32156 else 32157 VS_ENV_ARGS="/x64" 32158 fi 32159 # PLATFORM_TOOLSET is used during the compilation of the freetype sources (see 32160 # 'LIB_BUILD_FREETYPE' in libraries.m4) and must be 'Windows7.1SDK' for Windows7.1SDK 32161 # TODO: improve detection for other versions of SDK 32162 eval PLATFORM_TOOLSET="\${VS_SDK_PLATFORM_NAME_${VS_VERSION}}" 32163 else 32164 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5 32165 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;} 32166 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: Installation is broken, SetEnv.Cmd is missing. Ignoring" >&5 32167 $as_echo "$as_me: Warning: Installation is broken, SetEnv.Cmd is missing. Ignoring" >&6;} 32168 fi 32169 fi 32170 fi 32171 32172 32173 if test "x$VS_ENV_CMD" = x; then 32174 VS_VERSION="${VS_VERSION}" 32175 WIN_SDK_BASE="C:/Program Files (x86)/$SDK_INSTALL_DIR" 32176 METHOD="well-known name" 32177 32178 windows_path="$WIN_SDK_BASE" 32179 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 32180 unix_path=`$CYGPATH -u "$windows_path"` 32181 WIN_SDK_BASE="$unix_path" 32182 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 32183 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 32184 WIN_SDK_BASE="$unix_path" 32185 fi 32186 32187 if test -d "$WIN_SDK_BASE"; then 32188 # There have been cases of partial or broken SDK installations. A missing 32189 # lib dir is not going to work. 32190 if test ! -d "$WIN_SDK_BASE/lib"; then 32191 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5 32192 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;} 32193 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: Installation is broken, lib dir is missing. Ignoring" >&5 32194 $as_echo "$as_me: Warning: Installation is broken, lib dir is missing. Ignoring" >&6;} 32195 elif test -f "$WIN_SDK_BASE/Bin/SetEnv.Cmd"; then 32196 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5 32197 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;} 32198 VS_ENV_CMD="$WIN_SDK_BASE/Bin/SetEnv.Cmd" 32199 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 32200 VS_ENV_ARGS="/x86" 32201 else 32202 VS_ENV_ARGS="/x64" 32203 fi 32204 # PLATFORM_TOOLSET is used during the compilation of the freetype sources (see 32205 # 'LIB_BUILD_FREETYPE' in libraries.m4) and must be 'Windows7.1SDK' for Windows7.1SDK 32206 # TODO: improve detection for other versions of SDK 32207 eval PLATFORM_TOOLSET="\${VS_SDK_PLATFORM_NAME_${VS_VERSION}}" 32208 else 32209 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5 32210 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;} 32211 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: Installation is broken, SetEnv.Cmd is missing. Ignoring" >&5 32212 $as_echo "$as_me: Warning: Installation is broken, SetEnv.Cmd is missing. Ignoring" >&6;} 32213 fi 32214 fi 32215 fi 32216 32217 fi 32218 32219 if test "x$VS_ENV_CMD" != x; then 32220 TOOLCHAIN_VERSION=$VS_VERSION 32221 eval VS_DESCRIPTION="\${VS_DESCRIPTION_${VS_VERSION}}" 32222 eval VS_VERSION_INTERNAL="\${VS_VERSION_INTERNAL_${VS_VERSION}}" 32223 eval MSVCR_NAME="\${VS_MSVCR_${VS_VERSION}}" 32224 eval MSVCP_NAME="\${VS_MSVCP_${VS_VERSION}}" 32225 # The rest of the variables are already evaled while probing 32226 { $as_echo "$as_me:${as_lineno-$LINENO}: Found $VS_DESCRIPTION" >&5 32227 $as_echo "$as_me: Found $VS_DESCRIPTION" >&6;} 32228 break 32229 fi 32230 done 32231 32232 32233 # If we have a devkit, skip all of the below. 32234 if test "x$DEVKIT_VS_VERSION" = x; then 32235 if test "x$VS_ENV_CMD" != x; then 32236 # We have found a Visual Studio environment on disk, let's extract variables from the vsvars bat file. 32237 32238 # Only process if variable expands to non-empty 32239 32240 if test "x$VS_ENV_CMD" != x; then 32241 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 32242 32243 # First separate the path from the arguments. This will split at the first 32244 # space. 32245 complete="$VS_ENV_CMD" 32246 path="${complete%% *}" 32247 tmp="$complete EOL" 32248 arguments="${tmp#* }" 32249 32250 # Input might be given as Windows format, start by converting to 32251 # unix format. 32252 new_path=`$CYGPATH -u "$path"` 32253 32254 # Now try to locate executable using which 32255 new_path=`$WHICH "$new_path" 2> /dev/null` 32256 # bat and cmd files are not always considered executable in cygwin causing which 32257 # to not find them 32258 if test "x$new_path" = x \ 32259 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 32260 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 32261 new_path=`$CYGPATH -u "$path"` 32262 fi 32263 if test "x$new_path" = x; then 32264 # Oops. Which didn't find the executable. 32265 # The splitting of arguments from the executable at a space might have been incorrect, 32266 # since paths with space are more likely in Windows. Give it another try with the whole 32267 # argument. 32268 path="$complete" 32269 arguments="EOL" 32270 new_path=`$CYGPATH -u "$path"` 32271 new_path=`$WHICH "$new_path" 2> /dev/null` 32272 # bat and cmd files are not always considered executable in cygwin causing which 32273 # to not find them 32274 if test "x$new_path" = x \ 32275 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 32276 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 32277 new_path=`$CYGPATH -u "$path"` 32278 fi 32279 if test "x$new_path" = x; then 32280 # It's still not found. Now this is an unrecoverable error. 32281 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of VS_ENV_CMD, which resolves as \"$complete\", is not found." >&5 32282 $as_echo "$as_me: The path of VS_ENV_CMD, which resolves as \"$complete\", is not found." >&6;} 32283 has_space=`$ECHO "$complete" | $GREP " "` 32284 if test "x$has_space" != x; then 32285 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 32286 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 32287 fi 32288 as_fn_error $? "Cannot locate the the path of VS_ENV_CMD" "$LINENO" 5 32289 fi 32290 fi 32291 32292 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 32293 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 32294 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 32295 # "foo.exe" is OK but "foo" is an error. 32296 # 32297 # This test is therefore slightly more accurate than "test -f" to check for file presence. 32298 # It is also a way to make sure we got the proper file name for the real test later on. 32299 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 32300 if test "x$test_shortpath" = x; then 32301 # Short path failed, file does not exist as specified. 32302 # Try adding .exe or .cmd 32303 if test -f "${new_path}.exe"; then 32304 input_to_shortpath="${new_path}.exe" 32305 elif test -f "${new_path}.cmd"; then 32306 input_to_shortpath="${new_path}.cmd" 32307 else 32308 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of VS_ENV_CMD, which resolves as \"$new_path\", is invalid." >&5 32309 $as_echo "$as_me: The path of VS_ENV_CMD, which resolves as \"$new_path\", is invalid." >&6;} 32310 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 32311 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 32312 as_fn_error $? "Cannot locate the the path of VS_ENV_CMD" "$LINENO" 5 32313 fi 32314 else 32315 input_to_shortpath="$new_path" 32316 fi 32317 32318 # Call helper function which possibly converts this using DOS-style short mode. 32319 # If so, the updated path is stored in $new_path. 32320 new_path="$input_to_shortpath" 32321 32322 input_path="$input_to_shortpath" 32323 # Check if we need to convert this using DOS-style short mode. If the path 32324 # contains just simple characters, use it. Otherwise (spaces, weird characters), 32325 # take no chances and rewrite it. 32326 # Note: m4 eats our [], so we need to use [ and ] instead. 32327 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 32328 if test "x$has_forbidden_chars" != x; then 32329 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 32330 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 32331 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 32332 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 32333 # Going to short mode and back again did indeed matter. Since short mode is 32334 # case insensitive, let's make it lowercase to improve readability. 32335 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 32336 # Now convert it back to Unix-style (cygpath) 32337 input_path=`$CYGPATH -u "$shortmode_path"` 32338 new_path="$input_path" 32339 fi 32340 fi 32341 32342 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 32343 if test "x$test_cygdrive_prefix" = x; then 32344 # As a simple fix, exclude /usr/bin since it's not a real path. 32345 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 32346 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 32347 # a path prefixed by /cygdrive for fixpath to work. 32348 new_path="$CYGWIN_ROOT_PATH$input_path" 32349 fi 32350 fi 32351 32352 # remove trailing .exe if any 32353 new_path="${new_path/%.exe/}" 32354 32355 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 32356 32357 # First separate the path from the arguments. This will split at the first 32358 # space. 32359 complete="$VS_ENV_CMD" 32360 path="${complete%% *}" 32361 tmp="$complete EOL" 32362 arguments="${tmp#* }" 32363 32364 # Input might be given as Windows format, start by converting to 32365 # unix format. 32366 new_path="$path" 32367 32368 windows_path="$new_path" 32369 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 32370 unix_path=`$CYGPATH -u "$windows_path"` 32371 new_path="$unix_path" 32372 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 32373 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 32374 new_path="$unix_path" 32375 fi 32376 32377 32378 # Now try to locate executable using which 32379 new_path=`$WHICH "$new_path" 2> /dev/null` 32380 32381 if test "x$new_path" = x; then 32382 # Oops. Which didn't find the executable. 32383 # The splitting of arguments from the executable at a space might have been incorrect, 32384 # since paths with space are more likely in Windows. Give it another try with the whole 32385 # argument. 32386 path="$complete" 32387 arguments="EOL" 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 new_path=`$WHICH "$new_path" 2> /dev/null` 32401 # bat and cmd files are not always considered executable in MSYS causing which 32402 # to not find them 32403 if test "x$new_path" = x \ 32404 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 32405 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 32406 new_path="$path" 32407 32408 windows_path="$new_path" 32409 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 32410 unix_path=`$CYGPATH -u "$windows_path"` 32411 new_path="$unix_path" 32412 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 32413 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 32414 new_path="$unix_path" 32415 fi 32416 32417 fi 32418 32419 if test "x$new_path" = x; then 32420 # It's still not found. Now this is an unrecoverable error. 32421 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of VS_ENV_CMD, which resolves as \"$complete\", is not found." >&5 32422 $as_echo "$as_me: The path of VS_ENV_CMD, which resolves as \"$complete\", is not found." >&6;} 32423 has_space=`$ECHO "$complete" | $GREP " "` 32424 if test "x$has_space" != x; then 32425 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 32426 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 32427 fi 32428 as_fn_error $? "Cannot locate the the path of VS_ENV_CMD" "$LINENO" 5 32429 fi 32430 fi 32431 32432 # Now new_path has a complete unix path to the binary 32433 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 32434 # Keep paths in /bin as-is, but remove trailing .exe if any 32435 new_path="${new_path/%.exe/}" 32436 # Do not save /bin paths to all_fixpath_prefixes! 32437 else 32438 # Not in mixed or Windows style, start by that. 32439 new_path=`cmd //c echo $new_path` 32440 32441 input_path="$new_path" 32442 # Check if we need to convert this using DOS-style short mode. If the path 32443 # contains just simple characters, use it. Otherwise (spaces, weird characters), 32444 # take no chances and rewrite it. 32445 # Note: m4 eats our [], so we need to use [ and ] instead. 32446 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 32447 if test "x$has_forbidden_chars" != x; then 32448 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 32449 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 32450 fi 32451 32452 # Output is in $new_path 32453 32454 windows_path="$new_path" 32455 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 32456 unix_path=`$CYGPATH -u "$windows_path"` 32457 new_path="$unix_path" 32458 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 32459 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 32460 new_path="$unix_path" 32461 fi 32462 32463 # remove trailing .exe if any 32464 new_path="${new_path/%.exe/}" 32465 32466 # Save the first 10 bytes of this path to the storage, so fixpath can work. 32467 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 32468 fi 32469 32470 else 32471 # We're on a unix platform. Hooray! :) 32472 # First separate the path from the arguments. This will split at the first 32473 # space. 32474 complete="$VS_ENV_CMD" 32475 path="${complete%% *}" 32476 tmp="$complete EOL" 32477 arguments="${tmp#* }" 32478 32479 # Cannot rely on the command "which" here since it doesn't always work. 32480 is_absolute_path=`$ECHO "$path" | $GREP ^/` 32481 if test -z "$is_absolute_path"; then 32482 # Path to executable is not absolute. Find it. 32483 IFS_save="$IFS" 32484 IFS=: 32485 for p in $PATH; do 32486 if test -f "$p/$path" && test -x "$p/$path"; then 32487 new_path="$p/$path" 32488 break 32489 fi 32490 done 32491 IFS="$IFS_save" 32492 else 32493 # This is an absolute path, we can use it without further modifications. 32494 new_path="$path" 32495 fi 32496 32497 if test "x$new_path" = x; then 32498 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of VS_ENV_CMD, which resolves as \"$complete\", is not found." >&5 32499 $as_echo "$as_me: The path of VS_ENV_CMD, which resolves as \"$complete\", is not found." >&6;} 32500 has_space=`$ECHO "$complete" | $GREP " "` 32501 if test "x$has_space" != x; then 32502 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 32503 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 32504 fi 32505 as_fn_error $? "Cannot locate the the path of VS_ENV_CMD" "$LINENO" 5 32506 fi 32507 fi 32508 32509 # Now join together the path and the arguments once again 32510 if test "x$arguments" != xEOL; then 32511 new_complete="$new_path ${arguments% *}" 32512 else 32513 new_complete="$new_path" 32514 fi 32515 32516 if test "x$complete" != "x$new_complete"; then 32517 VS_ENV_CMD="$new_complete" 32518 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting VS_ENV_CMD to \"$new_complete\"" >&5 32519 $as_echo "$as_me: Rewriting VS_ENV_CMD to \"$new_complete\"" >&6;} 32520 fi 32521 fi 32522 32523 32524 # Lets extract the variables that are set by vcvarsall.bat/vsvars32.bat/vsvars64.bat 32525 { $as_echo "$as_me:${as_lineno-$LINENO}: Trying to extract Visual Studio environment variables" >&5 32526 $as_echo "$as_me: Trying to extract Visual Studio environment variables" >&6;} 32527 32528 # We need to create a couple of temporary files. 32529 VS_ENV_TMP_DIR="$CONFIGURESUPPORT_OUTPUTDIR/vs-env" 32530 $MKDIR -p $VS_ENV_TMP_DIR 32531 32532 # Cannot use the VS10 setup script directly (since it only updates the DOS subshell environment). 32533 # Instead create a shell script which will set the relevant variables when run. 32534 WINPATH_VS_ENV_CMD="$VS_ENV_CMD" 32535 32536 unix_path="$WINPATH_VS_ENV_CMD" 32537 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 32538 windows_path=`$CYGPATH -m "$unix_path"` 32539 WINPATH_VS_ENV_CMD="$windows_path" 32540 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 32541 windows_path=`cmd //c echo $unix_path` 32542 WINPATH_VS_ENV_CMD="$windows_path" 32543 fi 32544 32545 WINPATH_BASH="$BASH" 32546 32547 unix_path="$WINPATH_BASH" 32548 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 32549 windows_path=`$CYGPATH -m "$unix_path"` 32550 WINPATH_BASH="$windows_path" 32551 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 32552 windows_path=`cmd //c echo $unix_path` 32553 WINPATH_BASH="$windows_path" 32554 fi 32555 32556 32557 # Generate a DOS batch file which runs $VS_ENV_CMD, and then creates a shell 32558 # script (executable by bash) that will setup the important variables. 32559 EXTRACT_VC_ENV_BAT_FILE="$VS_ENV_TMP_DIR/extract-vs-env.bat" 32560 $ECHO "@echo off" > $EXTRACT_VC_ENV_BAT_FILE 32561 # This will end up something like: 32562 # call C:/progra~2/micros~2.0/vc/bin/amd64/vcvars64.bat 32563 $ECHO "call $WINPATH_VS_ENV_CMD $VS_ENV_ARGS" >> $EXTRACT_VC_ENV_BAT_FILE 32564 # These will end up something like: 32565 # C:/CygWin/bin/bash -c 'echo VS_PATH=\"$PATH\" > localdevenv.sh 32566 # The trailing space for everyone except PATH is no typo, but is needed due 32567 # to trailing \ in the Windows paths. These will be stripped later. 32568 $ECHO "$WINPATH_BASH -c 'echo VS_PATH="'\"$PATH\" > set-vs-env.sh' \ 32569 >> $EXTRACT_VC_ENV_BAT_FILE 32570 $ECHO "$WINPATH_BASH -c 'echo VS_INCLUDE="'\"$INCLUDE\;$include \" >> set-vs-env.sh' \ 32571 >> $EXTRACT_VC_ENV_BAT_FILE 32572 $ECHO "$WINPATH_BASH -c 'echo VS_LIB="'\"$LIB\;$lib \" >> set-vs-env.sh' \ 32573 >> $EXTRACT_VC_ENV_BAT_FILE 32574 $ECHO "$WINPATH_BASH -c 'echo VCINSTALLDIR="'\"$VCINSTALLDIR \" >> set-vs-env.sh' \ 32575 >> $EXTRACT_VC_ENV_BAT_FILE 32576 $ECHO "$WINPATH_BASH -c 'echo WindowsSdkDir="'\"$WindowsSdkDir \" >> set-vs-env.sh' \ 32577 >> $EXTRACT_VC_ENV_BAT_FILE 32578 $ECHO "$WINPATH_BASH -c 'echo WINDOWSSDKDIR="'\"$WINDOWSSDKDIR \" >> set-vs-env.sh' \ 32579 >> $EXTRACT_VC_ENV_BAT_FILE 32580 32581 # Now execute the newly created bat file. 32582 # The | cat is to stop SetEnv.Cmd to mess with system colors on msys. 32583 # Change directory so we don't need to mess with Windows paths in redirects. 32584 cd $VS_ENV_TMP_DIR 32585 cmd /c extract-vs-env.bat | $CAT 32586 cd $CURDIR 32587 32588 if test ! -s $VS_ENV_TMP_DIR/set-vs-env.sh; then 32589 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not succesfully extract the envionment variables needed for the VS setup." >&5 32590 $as_echo "$as_me: Could not succesfully extract the envionment variables needed for the VS setup." >&6;} 32591 { $as_echo "$as_me:${as_lineno-$LINENO}: Try setting --with-tools-dir to the VC/bin directory within the VS installation" >&5 32592 $as_echo "$as_me: Try setting --with-tools-dir to the VC/bin directory within the VS installation" >&6;} 32593 { $as_echo "$as_me:${as_lineno-$LINENO}: or run \"bash.exe -l\" from a VS command prompt and then run configure from there." >&5 32594 $as_echo "$as_me: or run \"bash.exe -l\" from a VS command prompt and then run configure from there." >&6;} 32595 as_fn_error $? "Cannot continue" "$LINENO" 5 32596 fi 32597 32598 # Now set all paths and other env variables. This will allow the rest of 32599 # the configure script to find and run the compiler in the proper way. 32600 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting extracted environment variables" >&5 32601 $as_echo "$as_me: Setting extracted environment variables" >&6;} 32602 . $VS_ENV_TMP_DIR/set-vs-env.sh 32603 # Now we have VS_PATH, VS_INCLUDE, VS_LIB. For further checking, we 32604 # also define VCINSTALLDIR, WindowsSdkDir and WINDOWSSDKDIR. 32605 else 32606 # We did not find a vsvars bat file, let's hope we are run from a VS command prompt. 32607 { $as_echo "$as_me:${as_lineno-$LINENO}: Cannot locate a valid Visual Studio installation, checking current environment" >&5 32608 $as_echo "$as_me: Cannot locate a valid Visual Studio installation, checking current environment" >&6;} 32609 fi 32610 fi 32611 32612 # At this point, we should have correct variables in the environment, or we can't continue. 32613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Visual Studio variables" >&5 32614 $as_echo_n "checking for Visual Studio variables... " >&6; } 32615 32616 if test "x$VCINSTALLDIR" != x || test "x$WindowsSDKDir" != x \ 32617 || test "x$WINDOWSSDKDIR" != x || test "x$DEVKIT_NAME" != x; then 32618 if test "x$VS_INCLUDE" = x || test "x$VS_LIB" = x; then 32619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: present but broken" >&5 32620 $as_echo "present but broken" >&6; } 32621 as_fn_error $? "Your VC command prompt seems broken, INCLUDE and/or LIB is missing." "$LINENO" 5 32622 else 32623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 32624 $as_echo "ok" >&6; } 32625 # Remove any trailing "\" ";" and " " from the variables. 32626 VS_INCLUDE=`$ECHO "$VS_INCLUDE" | $SED -e 's/\\\\*;* *$//'` 32627 VS_LIB=`$ECHO "$VS_LIB" | $SED 's/\\\\*;* *$//'` 32628 VCINSTALLDIR=`$ECHO "$VCINSTALLDIR" | $SED 's/\\\\* *$//'` 32629 WindowsSDKDir=`$ECHO "$WindowsSDKDir" | $SED 's/\\\\* *$//'` 32630 WINDOWSSDKDIR=`$ECHO "$WINDOWSSDKDIR" | $SED 's/\\\\* *$//'` 32631 # Remove any paths containing # (typically F#) as that messes up make. This 32632 # is needed if visual studio was installed with F# support. 32633 VS_PATH=`$ECHO "$VS_PATH" | $SED 's/[^:#]*#[^:]*://g'` 32634 32635 32636 32637 32638 32639 # Convert VS_INCLUDE into SYSROOT_CFLAGS 32640 OLDIFS="$IFS" 32641 IFS=";" 32642 for i in $VS_INCLUDE; do 32643 ipath=$i 32644 # Only process non-empty elements 32645 if test "x$ipath" != x; then 32646 IFS="$OLDIFS" 32647 # Check that directory exists before calling fixup_path 32648 testpath=$ipath 32649 32650 windows_path="$testpath" 32651 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 32652 unix_path=`$CYGPATH -u "$windows_path"` 32653 testpath="$unix_path" 32654 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 32655 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 32656 testpath="$unix_path" 32657 fi 32658 32659 if test -d "$testpath"; then 32660 32661 # Only process if variable expands to non-empty 32662 32663 if test "x$ipath" != x; then 32664 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 32665 32666 # Input might be given as Windows format, start by converting to 32667 # unix format. 32668 path="$ipath" 32669 new_path=`$CYGPATH -u "$path"` 32670 32671 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 32672 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 32673 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 32674 # "foo.exe" is OK but "foo" is an error. 32675 # 32676 # This test is therefore slightly more accurate than "test -f" to check for file precense. 32677 # It is also a way to make sure we got the proper file name for the real test later on. 32678 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 32679 if test "x$test_shortpath" = x; then 32680 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of ipath, which resolves as \"$path\", is invalid." >&5 32681 $as_echo "$as_me: The path of ipath, which resolves as \"$path\", is invalid." >&6;} 32682 as_fn_error $? "Cannot locate the the path of ipath" "$LINENO" 5 32683 fi 32684 32685 # Call helper function which possibly converts this using DOS-style short mode. 32686 # If so, the updated path is stored in $new_path. 32687 32688 input_path="$new_path" 32689 # Check if we need to convert this using DOS-style short mode. If the path 32690 # contains just simple characters, use it. Otherwise (spaces, weird characters), 32691 # take no chances and rewrite it. 32692 # Note: m4 eats our [], so we need to use [ and ] instead. 32693 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 32694 if test "x$has_forbidden_chars" != x; then 32695 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 32696 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 32697 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 32698 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 32699 # Going to short mode and back again did indeed matter. Since short mode is 32700 # case insensitive, let's make it lowercase to improve readability. 32701 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 32702 # Now convert it back to Unix-style (cygpath) 32703 input_path=`$CYGPATH -u "$shortmode_path"` 32704 new_path="$input_path" 32705 fi 32706 fi 32707 32708 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 32709 if test "x$test_cygdrive_prefix" = x; then 32710 # As a simple fix, exclude /usr/bin since it's not a real path. 32711 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 32712 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 32713 # a path prefixed by /cygdrive for fixpath to work. 32714 new_path="$CYGWIN_ROOT_PATH$input_path" 32715 fi 32716 fi 32717 32718 32719 if test "x$path" != "x$new_path"; then 32720 ipath="$new_path" 32721 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting ipath to \"$new_path\"" >&5 32722 $as_echo "$as_me: Rewriting ipath to \"$new_path\"" >&6;} 32723 fi 32724 32725 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 32726 32727 path="$ipath" 32728 has_colon=`$ECHO $path | $GREP ^.:` 32729 new_path="$path" 32730 if test "x$has_colon" = x; then 32731 # Not in mixed or Windows style, start by that. 32732 new_path=`cmd //c echo $path` 32733 fi 32734 32735 32736 input_path="$new_path" 32737 # Check if we need to convert this using DOS-style short mode. If the path 32738 # contains just simple characters, use it. Otherwise (spaces, weird characters), 32739 # take no chances and rewrite it. 32740 # Note: m4 eats our [], so we need to use [ and ] instead. 32741 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 32742 if test "x$has_forbidden_chars" != x; then 32743 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 32744 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 32745 fi 32746 32747 32748 windows_path="$new_path" 32749 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 32750 unix_path=`$CYGPATH -u "$windows_path"` 32751 new_path="$unix_path" 32752 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 32753 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 32754 new_path="$unix_path" 32755 fi 32756 32757 if test "x$path" != "x$new_path"; then 32758 ipath="$new_path" 32759 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting ipath to \"$new_path\"" >&5 32760 $as_echo "$as_me: Rewriting ipath to \"$new_path\"" >&6;} 32761 fi 32762 32763 # Save the first 10 bytes of this path to the storage, so fixpath can work. 32764 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 32765 32766 else 32767 # We're on a unix platform. Hooray! :) 32768 path="$ipath" 32769 has_space=`$ECHO "$path" | $GREP " "` 32770 if test "x$has_space" != x; then 32771 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of ipath, which resolves as \"$path\", is invalid." >&5 32772 $as_echo "$as_me: The path of ipath, which resolves as \"$path\", is invalid." >&6;} 32773 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 32774 fi 32775 32776 # Use eval to expand a potential ~ 32777 eval path="$path" 32778 if test ! -f "$path" && test ! -d "$path"; then 32779 as_fn_error $? "The path of ipath, which resolves as \"$path\", is not found." "$LINENO" 5 32780 fi 32781 32782 if test -d "$path"; then 32783 ipath="`cd "$path"; $THEPWDCMD -L`" 32784 else 32785 dir="`$DIRNAME "$path"`" 32786 base="`$BASENAME "$path"`" 32787 ipath="`cd "$dir"; $THEPWDCMD -L`/$base" 32788 fi 32789 fi 32790 fi 32791 32792 SYSROOT_CFLAGS="$SYSROOT_CFLAGS -I$ipath" 32793 fi 32794 IFS=";" 32795 fi 32796 done 32797 # Convert VS_LIB into SYSROOT_LDFLAGS 32798 for i in $VS_LIB; do 32799 libpath=$i 32800 # Only process non-empty elements 32801 if test "x$libpath" != x; then 32802 IFS="$OLDIFS" 32803 # Check that directory exists before calling fixup_path 32804 testpath=$libpath 32805 32806 windows_path="$testpath" 32807 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 32808 unix_path=`$CYGPATH -u "$windows_path"` 32809 testpath="$unix_path" 32810 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 32811 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 32812 testpath="$unix_path" 32813 fi 32814 32815 if test -d "$testpath"; then 32816 32817 # Only process if variable expands to non-empty 32818 32819 if test "x$libpath" != x; then 32820 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 32821 32822 # Input might be given as Windows format, start by converting to 32823 # unix format. 32824 path="$libpath" 32825 new_path=`$CYGPATH -u "$path"` 32826 32827 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 32828 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 32829 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 32830 # "foo.exe" is OK but "foo" is an error. 32831 # 32832 # This test is therefore slightly more accurate than "test -f" to check for file precense. 32833 # It is also a way to make sure we got the proper file name for the real test later on. 32834 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 32835 if test "x$test_shortpath" = x; then 32836 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of libpath, which resolves as \"$path\", is invalid." >&5 32837 $as_echo "$as_me: The path of libpath, which resolves as \"$path\", is invalid." >&6;} 32838 as_fn_error $? "Cannot locate the the path of libpath" "$LINENO" 5 32839 fi 32840 32841 # Call helper function which possibly converts this using DOS-style short mode. 32842 # If so, the updated path is stored in $new_path. 32843 32844 input_path="$new_path" 32845 # Check if we need to convert this using DOS-style short mode. If the path 32846 # contains just simple characters, use it. Otherwise (spaces, weird characters), 32847 # take no chances and rewrite it. 32848 # Note: m4 eats our [], so we need to use [ and ] instead. 32849 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 32850 if test "x$has_forbidden_chars" != x; then 32851 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 32852 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 32853 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 32854 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 32855 # Going to short mode and back again did indeed matter. Since short mode is 32856 # case insensitive, let's make it lowercase to improve readability. 32857 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 32858 # Now convert it back to Unix-style (cygpath) 32859 input_path=`$CYGPATH -u "$shortmode_path"` 32860 new_path="$input_path" 32861 fi 32862 fi 32863 32864 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 32865 if test "x$test_cygdrive_prefix" = x; then 32866 # As a simple fix, exclude /usr/bin since it's not a real path. 32867 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 32868 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 32869 # a path prefixed by /cygdrive for fixpath to work. 32870 new_path="$CYGWIN_ROOT_PATH$input_path" 32871 fi 32872 fi 32873 32874 32875 if test "x$path" != "x$new_path"; then 32876 libpath="$new_path" 32877 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting libpath to \"$new_path\"" >&5 32878 $as_echo "$as_me: Rewriting libpath to \"$new_path\"" >&6;} 32879 fi 32880 32881 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 32882 32883 path="$libpath" 32884 has_colon=`$ECHO $path | $GREP ^.:` 32885 new_path="$path" 32886 if test "x$has_colon" = x; then 32887 # Not in mixed or Windows style, start by that. 32888 new_path=`cmd //c echo $path` 32889 fi 32890 32891 32892 input_path="$new_path" 32893 # Check if we need to convert this using DOS-style short mode. If the path 32894 # contains just simple characters, use it. Otherwise (spaces, weird characters), 32895 # take no chances and rewrite it. 32896 # Note: m4 eats our [], so we need to use [ and ] instead. 32897 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 32898 if test "x$has_forbidden_chars" != x; then 32899 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 32900 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 32901 fi 32902 32903 32904 windows_path="$new_path" 32905 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 32906 unix_path=`$CYGPATH -u "$windows_path"` 32907 new_path="$unix_path" 32908 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 32909 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 32910 new_path="$unix_path" 32911 fi 32912 32913 if test "x$path" != "x$new_path"; then 32914 libpath="$new_path" 32915 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting libpath to \"$new_path\"" >&5 32916 $as_echo "$as_me: Rewriting libpath to \"$new_path\"" >&6;} 32917 fi 32918 32919 # Save the first 10 bytes of this path to the storage, so fixpath can work. 32920 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 32921 32922 else 32923 # We're on a unix platform. Hooray! :) 32924 path="$libpath" 32925 has_space=`$ECHO "$path" | $GREP " "` 32926 if test "x$has_space" != x; then 32927 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of libpath, which resolves as \"$path\", is invalid." >&5 32928 $as_echo "$as_me: The path of libpath, which resolves as \"$path\", is invalid." >&6;} 32929 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 32930 fi 32931 32932 # Use eval to expand a potential ~ 32933 eval path="$path" 32934 if test ! -f "$path" && test ! -d "$path"; then 32935 as_fn_error $? "The path of libpath, which resolves as \"$path\", is not found." "$LINENO" 5 32936 fi 32937 32938 if test -d "$path"; then 32939 libpath="`cd "$path"; $THEPWDCMD -L`" 32940 else 32941 dir="`$DIRNAME "$path"`" 32942 base="`$BASENAME "$path"`" 32943 libpath="`cd "$dir"; $THEPWDCMD -L`/$base" 32944 fi 32945 fi 32946 fi 32947 32948 SYSROOT_LDFLAGS="$SYSROOT_LDFLAGS -libpath:$libpath" 32949 fi 32950 IFS=";" 32951 fi 32952 done 32953 IFS="$OLDIFS" 32954 fi 32955 else 32956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 32957 $as_echo "not found" >&6; } 32958 32959 if test "x$VS_ENV_CMD" = x; then 32960 { $as_echo "$as_me:${as_lineno-$LINENO}: Cannot locate a valid Visual Studio or Windows SDK installation on disk," >&5 32961 $as_echo "$as_me: Cannot locate a valid Visual Studio or Windows SDK installation on disk," >&6;} 32962 { $as_echo "$as_me:${as_lineno-$LINENO}: nor is this script run from a Visual Studio command prompt." >&5 32963 $as_echo "$as_me: nor is this script run from a Visual Studio command prompt." >&6;} 32964 else 32965 { $as_echo "$as_me:${as_lineno-$LINENO}: Running the extraction script failed." >&5 32966 $as_echo "$as_me: Running the extraction script failed." >&6;} 32967 fi 32968 { $as_echo "$as_me:${as_lineno-$LINENO}: Try setting --with-tools-dir to the VC/bin directory within the VS installation" >&5 32969 $as_echo "$as_me: Try setting --with-tools-dir to the VC/bin directory within the VS installation" >&6;} 32970 { $as_echo "$as_me:${as_lineno-$LINENO}: or run \"bash.exe -l\" from a VS command prompt and then run configure from there." >&5 32971 $as_echo "$as_me: or run \"bash.exe -l\" from a VS command prompt and then run configure from there." >&6;} 32972 as_fn_error $? "Cannot continue" "$LINENO" 5 32973 fi 32974 32975 # Reset path to VS_PATH. It will include everything that was on PATH at the time we 32976 # ran TOOLCHAIN_SETUP_VISUAL_STUDIO_ENV. 32977 PATH="$VS_PATH" 32978 # The microsoft toolchain also requires INCLUDE and LIB to be set. 32979 export INCLUDE="$VS_INCLUDE" 32980 export LIB="$VS_LIB" 32981 else 32982 if test "x$XCODE_VERSION_OUTPUT" != x; then 32983 # For Xcode, we set the Xcode version as TOOLCHAIN_VERSION 32984 TOOLCHAIN_VERSION=`$ECHO $XCODE_VERSION_OUTPUT | $CUT -f 2 -d ' '` 32985 TOOLCHAIN_DESCRIPTION="$TOOLCHAIN_DESCRIPTION from Xcode" 32986 else 32987 # Currently we do not define this for other toolchains. This might change as the need arise. 32988 TOOLCHAIN_VERSION= 32989 fi 32990 fi 32991 32992 32993 # Finally add TOOLCHAIN_PATH at the beginning, to allow --with-tools-dir to 32994 # override all other locations. 32995 if test "x$TOOLCHAIN_PATH" != x; then 32996 PATH=$TOOLCHAIN_PATH:$PATH 32997 fi 32998 32999 33000 # 33001 # Setup the compilers (CC and CXX) 33002 # 33003 33004 COMPILER_NAME=C 33005 SEARCH_LIST="$TOOLCHAIN_CC_BINARY" 33006 33007 if test "x$CC" != x; then 33008 # User has supplied compiler name already, always let that override. 33009 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied compiler CC=$CC" >&5 33010 $as_echo "$as_me: Will use user supplied compiler CC=$CC" >&6;} 33011 if test "x`basename $CC`" = "x$CC"; then 33012 # A command without a complete path is provided, search $PATH. 33013 33014 for ac_prog in $CC 33015 do 33016 # Extract the first word of "$ac_prog", so it can be a program name with args. 33017 set dummy $ac_prog; ac_word=$2 33018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 33019 $as_echo_n "checking for $ac_word... " >&6; } 33020 if ${ac_cv_path_POTENTIAL_CC+:} false; then : 33021 $as_echo_n "(cached) " >&6 33022 else 33023 case $POTENTIAL_CC in 33024 [\\/]* | ?:[\\/]*) 33025 ac_cv_path_POTENTIAL_CC="$POTENTIAL_CC" # Let the user override the test with a path. 33026 ;; 33027 *) 33028 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 33029 for as_dir in $PATH 33030 do 33031 IFS=$as_save_IFS 33032 test -z "$as_dir" && as_dir=. 33033 for ac_exec_ext in '' $ac_executable_extensions; do 33034 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 33035 ac_cv_path_POTENTIAL_CC="$as_dir/$ac_word$ac_exec_ext" 33036 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 33037 break 2 33038 fi 33039 done 33040 done 33041 IFS=$as_save_IFS 33042 33043 ;; 33044 esac 33045 fi 33046 POTENTIAL_CC=$ac_cv_path_POTENTIAL_CC 33047 if test -n "$POTENTIAL_CC"; then 33048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $POTENTIAL_CC" >&5 33049 $as_echo "$POTENTIAL_CC" >&6; } 33050 else 33051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 33052 $as_echo "no" >&6; } 33053 fi 33054 33055 33056 test -n "$POTENTIAL_CC" && break 33057 done 33058 33059 if test "x$POTENTIAL_CC" != x; then 33060 CC=$POTENTIAL_CC 33061 else 33062 as_fn_error $? "User supplied compiler CC=$CC could not be found" "$LINENO" 5 33063 fi 33064 else 33065 # Otherwise it might already be a complete path 33066 if test ! -x "$CC"; then 33067 as_fn_error $? "User supplied compiler CC=$CC does not exist" "$LINENO" 5 33068 fi 33069 fi 33070 else 33071 # No user supplied value. Locate compiler ourselves. 33072 33073 # If we are cross compiling, assume cross compilation tools follows the 33074 # cross compilation standard where they are prefixed with the autoconf 33075 # standard name for the target. For example the binary 33076 # i686-sun-solaris2.10-gcc will cross compile for i686-sun-solaris2.10. 33077 # If we are not cross compiling, then the default compiler name will be 33078 # used. 33079 33080 CC= 33081 # If TOOLCHAIN_PATH is set, check for all compiler names in there first 33082 # before checking the rest of the PATH. 33083 # FIXME: Now that we prefix the TOOLS_DIR to the PATH in the PRE_DETECTION 33084 # step, this should not be necessary. 33085 if test -n "$TOOLCHAIN_PATH"; then 33086 PATH_save="$PATH" 33087 PATH="$TOOLCHAIN_PATH" 33088 for ac_prog in $SEARCH_LIST 33089 do 33090 # Extract the first word of "$ac_prog", so it can be a program name with args. 33091 set dummy $ac_prog; ac_word=$2 33092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 33093 $as_echo_n "checking for $ac_word... " >&6; } 33094 if ${ac_cv_path_TOOLCHAIN_PATH_CC+:} false; then : 33095 $as_echo_n "(cached) " >&6 33096 else 33097 case $TOOLCHAIN_PATH_CC in 33098 [\\/]* | ?:[\\/]*) 33099 ac_cv_path_TOOLCHAIN_PATH_CC="$TOOLCHAIN_PATH_CC" # Let the user override the test with a path. 33100 ;; 33101 *) 33102 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 33103 for as_dir in $PATH 33104 do 33105 IFS=$as_save_IFS 33106 test -z "$as_dir" && as_dir=. 33107 for ac_exec_ext in '' $ac_executable_extensions; do 33108 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 33109 ac_cv_path_TOOLCHAIN_PATH_CC="$as_dir/$ac_word$ac_exec_ext" 33110 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 33111 break 2 33112 fi 33113 done 33114 done 33115 IFS=$as_save_IFS 33116 33117 ;; 33118 esac 33119 fi 33120 TOOLCHAIN_PATH_CC=$ac_cv_path_TOOLCHAIN_PATH_CC 33121 if test -n "$TOOLCHAIN_PATH_CC"; then 33122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOOLCHAIN_PATH_CC" >&5 33123 $as_echo "$TOOLCHAIN_PATH_CC" >&6; } 33124 else 33125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 33126 $as_echo "no" >&6; } 33127 fi 33128 33129 33130 test -n "$TOOLCHAIN_PATH_CC" && break 33131 done 33132 33133 CC=$TOOLCHAIN_PATH_CC 33134 PATH="$PATH_save" 33135 fi 33136 33137 # AC_PATH_PROGS can't be run multiple times with the same variable, 33138 # so create a new name for this run. 33139 if test "x$CC" = x; then 33140 for ac_prog in $SEARCH_LIST 33141 do 33142 # Extract the first word of "$ac_prog", so it can be a program name with args. 33143 set dummy $ac_prog; ac_word=$2 33144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 33145 $as_echo_n "checking for $ac_word... " >&6; } 33146 if ${ac_cv_path_POTENTIAL_CC+:} false; then : 33147 $as_echo_n "(cached) " >&6 33148 else 33149 case $POTENTIAL_CC in 33150 [\\/]* | ?:[\\/]*) 33151 ac_cv_path_POTENTIAL_CC="$POTENTIAL_CC" # Let the user override the test with a path. 33152 ;; 33153 *) 33154 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 33155 for as_dir in $PATH 33156 do 33157 IFS=$as_save_IFS 33158 test -z "$as_dir" && as_dir=. 33159 for ac_exec_ext in '' $ac_executable_extensions; do 33160 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 33161 ac_cv_path_POTENTIAL_CC="$as_dir/$ac_word$ac_exec_ext" 33162 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 33163 break 2 33164 fi 33165 done 33166 done 33167 IFS=$as_save_IFS 33168 33169 ;; 33170 esac 33171 fi 33172 POTENTIAL_CC=$ac_cv_path_POTENTIAL_CC 33173 if test -n "$POTENTIAL_CC"; then 33174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $POTENTIAL_CC" >&5 33175 $as_echo "$POTENTIAL_CC" >&6; } 33176 else 33177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 33178 $as_echo "no" >&6; } 33179 fi 33180 33181 33182 test -n "$POTENTIAL_CC" && break 33183 done 33184 33185 CC=$POTENTIAL_CC 33186 fi 33187 33188 if test "x$CC" = x; then 33189 33190 # Print a helpful message on how to acquire the necessary build dependency. 33191 # devkit is the help tag: freetype, cups, alsa etc 33192 MISSING_DEPENDENCY=devkit 33193 33194 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 33195 cygwin_help $MISSING_DEPENDENCY 33196 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 33197 msys_help $MISSING_DEPENDENCY 33198 else 33199 PKGHANDLER_COMMAND= 33200 33201 case $PKGHANDLER in 33202 apt-get) 33203 apt_help $MISSING_DEPENDENCY ;; 33204 yum) 33205 yum_help $MISSING_DEPENDENCY ;; 33206 port) 33207 port_help $MISSING_DEPENDENCY ;; 33208 pkgutil) 33209 pkgutil_help $MISSING_DEPENDENCY ;; 33210 pkgadd) 33211 pkgadd_help $MISSING_DEPENDENCY ;; 33212 esac 33213 33214 if test "x$PKGHANDLER_COMMAND" != x; then 33215 HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'." 33216 fi 33217 fi 33218 33219 as_fn_error $? "Could not find a $COMPILER_NAME compiler. $HELP_MSG" "$LINENO" 5 33220 fi 33221 fi 33222 33223 # Now we have a compiler binary in CC. Make sure it's okay. 33224 33225 # Only process if variable expands to non-empty 33226 33227 if test "x$CC" != x; then 33228 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 33229 33230 # First separate the path from the arguments. This will split at the first 33231 # space. 33232 complete="$CC" 33233 path="${complete%% *}" 33234 tmp="$complete EOL" 33235 arguments="${tmp#* }" 33236 33237 # Input might be given as Windows format, start by converting to 33238 # unix format. 33239 new_path=`$CYGPATH -u "$path"` 33240 33241 # Now try to locate executable using which 33242 new_path=`$WHICH "$new_path" 2> /dev/null` 33243 # bat and cmd files are not always considered executable in cygwin causing which 33244 # to not find them 33245 if test "x$new_path" = x \ 33246 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 33247 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 33248 new_path=`$CYGPATH -u "$path"` 33249 fi 33250 if test "x$new_path" = x; then 33251 # Oops. Which didn't find the executable. 33252 # The splitting of arguments from the executable at a space might have been incorrect, 33253 # since paths with space are more likely in Windows. Give it another try with the whole 33254 # argument. 33255 path="$complete" 33256 arguments="EOL" 33257 new_path=`$CYGPATH -u "$path"` 33258 new_path=`$WHICH "$new_path" 2> /dev/null` 33259 # bat and cmd files are not always considered executable in cygwin causing which 33260 # to not find them 33261 if test "x$new_path" = x \ 33262 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 33263 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 33264 new_path=`$CYGPATH -u "$path"` 33265 fi 33266 if test "x$new_path" = x; then 33267 # It's still not found. Now this is an unrecoverable error. 33268 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CC, which resolves as \"$complete\", is not found." >&5 33269 $as_echo "$as_me: The path of CC, which resolves as \"$complete\", is not found." >&6;} 33270 has_space=`$ECHO "$complete" | $GREP " "` 33271 if test "x$has_space" != x; then 33272 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 33273 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 33274 fi 33275 as_fn_error $? "Cannot locate the the path of CC" "$LINENO" 5 33276 fi 33277 fi 33278 33279 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 33280 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 33281 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 33282 # "foo.exe" is OK but "foo" is an error. 33283 # 33284 # This test is therefore slightly more accurate than "test -f" to check for file presence. 33285 # It is also a way to make sure we got the proper file name for the real test later on. 33286 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 33287 if test "x$test_shortpath" = x; then 33288 # Short path failed, file does not exist as specified. 33289 # Try adding .exe or .cmd 33290 if test -f "${new_path}.exe"; then 33291 input_to_shortpath="${new_path}.exe" 33292 elif test -f "${new_path}.cmd"; then 33293 input_to_shortpath="${new_path}.cmd" 33294 else 33295 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CC, which resolves as \"$new_path\", is invalid." >&5 33296 $as_echo "$as_me: The path of CC, which resolves as \"$new_path\", is invalid." >&6;} 33297 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 33298 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 33299 as_fn_error $? "Cannot locate the the path of CC" "$LINENO" 5 33300 fi 33301 else 33302 input_to_shortpath="$new_path" 33303 fi 33304 33305 # Call helper function which possibly converts this using DOS-style short mode. 33306 # If so, the updated path is stored in $new_path. 33307 new_path="$input_to_shortpath" 33308 33309 input_path="$input_to_shortpath" 33310 # Check if we need to convert this using DOS-style short mode. If the path 33311 # contains just simple characters, use it. Otherwise (spaces, weird characters), 33312 # take no chances and rewrite it. 33313 # Note: m4 eats our [], so we need to use [ and ] instead. 33314 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 33315 if test "x$has_forbidden_chars" != x; then 33316 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 33317 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 33318 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 33319 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 33320 # Going to short mode and back again did indeed matter. Since short mode is 33321 # case insensitive, let's make it lowercase to improve readability. 33322 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 33323 # Now convert it back to Unix-style (cygpath) 33324 input_path=`$CYGPATH -u "$shortmode_path"` 33325 new_path="$input_path" 33326 fi 33327 fi 33328 33329 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 33330 if test "x$test_cygdrive_prefix" = x; then 33331 # As a simple fix, exclude /usr/bin since it's not a real path. 33332 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 33333 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 33334 # a path prefixed by /cygdrive for fixpath to work. 33335 new_path="$CYGWIN_ROOT_PATH$input_path" 33336 fi 33337 fi 33338 33339 # remove trailing .exe if any 33340 new_path="${new_path/%.exe/}" 33341 33342 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 33343 33344 # First separate the path from the arguments. This will split at the first 33345 # space. 33346 complete="$CC" 33347 path="${complete%% *}" 33348 tmp="$complete EOL" 33349 arguments="${tmp#* }" 33350 33351 # Input might be given as Windows format, start by converting to 33352 # unix format. 33353 new_path="$path" 33354 33355 windows_path="$new_path" 33356 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 33357 unix_path=`$CYGPATH -u "$windows_path"` 33358 new_path="$unix_path" 33359 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 33360 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 33361 new_path="$unix_path" 33362 fi 33363 33364 33365 # Now try to locate executable using which 33366 new_path=`$WHICH "$new_path" 2> /dev/null` 33367 33368 if test "x$new_path" = x; then 33369 # Oops. Which didn't find the executable. 33370 # The splitting of arguments from the executable at a space might have been incorrect, 33371 # since paths with space are more likely in Windows. Give it another try with the whole 33372 # argument. 33373 path="$complete" 33374 arguments="EOL" 33375 new_path="$path" 33376 33377 windows_path="$new_path" 33378 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 33379 unix_path=`$CYGPATH -u "$windows_path"` 33380 new_path="$unix_path" 33381 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 33382 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 33383 new_path="$unix_path" 33384 fi 33385 33386 33387 new_path=`$WHICH "$new_path" 2> /dev/null` 33388 # bat and cmd files are not always considered executable in MSYS causing which 33389 # to not find them 33390 if test "x$new_path" = x \ 33391 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 33392 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 33393 new_path="$path" 33394 33395 windows_path="$new_path" 33396 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 33397 unix_path=`$CYGPATH -u "$windows_path"` 33398 new_path="$unix_path" 33399 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 33400 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 33401 new_path="$unix_path" 33402 fi 33403 33404 fi 33405 33406 if test "x$new_path" = x; then 33407 # It's still not found. Now this is an unrecoverable error. 33408 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CC, which resolves as \"$complete\", is not found." >&5 33409 $as_echo "$as_me: The path of CC, which resolves as \"$complete\", is not found." >&6;} 33410 has_space=`$ECHO "$complete" | $GREP " "` 33411 if test "x$has_space" != x; then 33412 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 33413 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 33414 fi 33415 as_fn_error $? "Cannot locate the the path of CC" "$LINENO" 5 33416 fi 33417 fi 33418 33419 # Now new_path has a complete unix path to the binary 33420 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 33421 # Keep paths in /bin as-is, but remove trailing .exe if any 33422 new_path="${new_path/%.exe/}" 33423 # Do not save /bin paths to all_fixpath_prefixes! 33424 else 33425 # Not in mixed or Windows style, start by that. 33426 new_path=`cmd //c echo $new_path` 33427 33428 input_path="$new_path" 33429 # Check if we need to convert this using DOS-style short mode. If the path 33430 # contains just simple characters, use it. Otherwise (spaces, weird characters), 33431 # take no chances and rewrite it. 33432 # Note: m4 eats our [], so we need to use [ and ] instead. 33433 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 33434 if test "x$has_forbidden_chars" != x; then 33435 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 33436 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 33437 fi 33438 33439 # Output is in $new_path 33440 33441 windows_path="$new_path" 33442 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 33443 unix_path=`$CYGPATH -u "$windows_path"` 33444 new_path="$unix_path" 33445 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 33446 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 33447 new_path="$unix_path" 33448 fi 33449 33450 # remove trailing .exe if any 33451 new_path="${new_path/%.exe/}" 33452 33453 # Save the first 10 bytes of this path to the storage, so fixpath can work. 33454 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 33455 fi 33456 33457 else 33458 # We're on a unix platform. Hooray! :) 33459 # First separate the path from the arguments. This will split at the first 33460 # space. 33461 complete="$CC" 33462 path="${complete%% *}" 33463 tmp="$complete EOL" 33464 arguments="${tmp#* }" 33465 33466 # Cannot rely on the command "which" here since it doesn't always work. 33467 is_absolute_path=`$ECHO "$path" | $GREP ^/` 33468 if test -z "$is_absolute_path"; then 33469 # Path to executable is not absolute. Find it. 33470 IFS_save="$IFS" 33471 IFS=: 33472 for p in $PATH; do 33473 if test -f "$p/$path" && test -x "$p/$path"; then 33474 new_path="$p/$path" 33475 break 33476 fi 33477 done 33478 IFS="$IFS_save" 33479 else 33480 # This is an absolute path, we can use it without further modifications. 33481 new_path="$path" 33482 fi 33483 33484 if test "x$new_path" = x; then 33485 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CC, which resolves as \"$complete\", is not found." >&5 33486 $as_echo "$as_me: The path of CC, which resolves as \"$complete\", is not found." >&6;} 33487 has_space=`$ECHO "$complete" | $GREP " "` 33488 if test "x$has_space" != x; then 33489 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 33490 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 33491 fi 33492 as_fn_error $? "Cannot locate the the path of CC" "$LINENO" 5 33493 fi 33494 fi 33495 33496 # Now join together the path and the arguments once again 33497 if test "x$arguments" != xEOL; then 33498 new_complete="$new_path ${arguments% *}" 33499 else 33500 new_complete="$new_path" 33501 fi 33502 33503 if test "x$complete" != "x$new_complete"; then 33504 CC="$new_complete" 33505 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting CC to \"$new_complete\"" >&5 33506 $as_echo "$as_me: Rewriting CC to \"$new_complete\"" >&6;} 33507 fi 33508 fi 33509 33510 TEST_COMPILER="$CC" 33511 33512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking resolved symbolic links for CC" >&5 33513 $as_echo_n "checking resolved symbolic links for CC... " >&6; } 33514 SYMLINK_ORIGINAL="$TEST_COMPILER" 33515 33516 if test "x$OPENJDK_BUILD_OS" != xwindows; then 33517 # Follow a chain of symbolic links. Use readlink 33518 # where it exists, else fall back to horribly 33519 # complicated shell code. 33520 if test "x$READLINK_TESTED" != yes; then 33521 # On MacOSX there is a readlink tool with a different 33522 # purpose than the GNU readlink tool. Check the found readlink. 33523 ISGNU=`$READLINK --version 2>&1 | $GREP GNU` 33524 if test "x$ISGNU" = x; then 33525 # A readlink that we do not know how to use. 33526 # Are there other non-GNU readlinks out there? 33527 READLINK_TESTED=yes 33528 READLINK= 33529 fi 33530 fi 33531 33532 if test "x$READLINK" != x; then 33533 SYMLINK_ORIGINAL=`$READLINK -f $SYMLINK_ORIGINAL` 33534 else 33535 # Save the current directory for restoring afterwards 33536 STARTDIR=$PWD 33537 COUNTER=0 33538 sym_link_dir=`$DIRNAME $SYMLINK_ORIGINAL` 33539 sym_link_file=`$BASENAME $SYMLINK_ORIGINAL` 33540 cd $sym_link_dir 33541 # Use -P flag to resolve symlinks in directories. 33542 cd `$THEPWDCMD -P` 33543 sym_link_dir=`$THEPWDCMD -P` 33544 # Resolve file symlinks 33545 while test $COUNTER -lt 20; do 33546 ISLINK=`$LS -l $sym_link_dir/$sym_link_file | $GREP '\->' | $SED -e 's/.*-> \(.*\)/\1/'` 33547 if test "x$ISLINK" == x; then 33548 # This is not a symbolic link! We are done! 33549 break 33550 fi 33551 # Again resolve directory symlinks since the target of the just found 33552 # link could be in a different directory 33553 cd `$DIRNAME $ISLINK` 33554 sym_link_dir=`$THEPWDCMD -P` 33555 sym_link_file=`$BASENAME $ISLINK` 33556 let COUNTER=COUNTER+1 33557 done 33558 cd $STARTDIR 33559 SYMLINK_ORIGINAL=$sym_link_dir/$sym_link_file 33560 fi 33561 fi 33562 33563 if test "x$TEST_COMPILER" = "x$SYMLINK_ORIGINAL"; then 33564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no symlink" >&5 33565 $as_echo "no symlink" >&6; } 33566 else 33567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SYMLINK_ORIGINAL" >&5 33568 $as_echo "$SYMLINK_ORIGINAL" >&6; } 33569 33570 # We can't handle ccache by gcc wrappers, since we need to know if we're 33571 # using ccache. Instead ccache usage must be controlled by a configure option. 33572 COMPILER_BASENAME=`$BASENAME "$SYMLINK_ORIGINAL"` 33573 if test "x$COMPILER_BASENAME" = "xccache"; then 33574 { $as_echo "$as_me:${as_lineno-$LINENO}: Please use --enable-ccache instead of providing a wrapped compiler." >&5 33575 $as_echo "$as_me: Please use --enable-ccache instead of providing a wrapped compiler." >&6;} 33576 as_fn_error $? "$TEST_COMPILER is a symbolic link to ccache. This is not supported." "$LINENO" 5 33577 fi 33578 fi 33579 33580 33581 COMPILER=$CC 33582 COMPILER_NAME=$COMPILER_NAME 33583 33584 if test "x$TOOLCHAIN_TYPE" = xsolstudio; then 33585 # cc -V output typically looks like 33586 # cc: Sun C 5.12 Linux_i386 2011/11/16 33587 # or 33588 # cc: Studio 12.5 Sun C 5.14 SunOS_sparc 2016/05/31 33589 COMPILER_VERSION_OUTPUT=`$COMPILER -V 2>&1` 33590 # Check that this is likely to be the Solaris Studio cc. 33591 $ECHO "$COMPILER_VERSION_OUTPUT" | $GREP "^.* Sun $COMPILER_NAME" > /dev/null 33592 if test $? -ne 0; then 33593 ALT_VERSION_OUTPUT=`$COMPILER --version 2>&1` 33594 { $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 33595 $as_echo "$as_me: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required $TOOLCHAIN_TYPE compiler." >&6;} 33596 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with -V was: \"$COMPILER_VERSION_OUTPUT\"" >&5 33597 $as_echo "$as_me: The result from running with -V was: \"$COMPILER_VERSION_OUTPUT\"" >&6;} 33598 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with --version was: \"$ALT_VERSION_OUTPUT\"" >&5 33599 $as_echo "$as_me: The result from running with --version was: \"$ALT_VERSION_OUTPUT\"" >&6;} 33600 as_fn_error $? "A $TOOLCHAIN_TYPE compiler is required. Try setting --with-tools-dir." "$LINENO" 5 33601 fi 33602 # Remove usage instructions (if present), and 33603 # collapse compiler output into a single line 33604 COMPILER_VERSION_STRING=`$ECHO $COMPILER_VERSION_OUTPUT | \ 33605 $SED -e 's/ *[Uu]sage:.*//'` 33606 COMPILER_VERSION_NUMBER=`$ECHO $COMPILER_VERSION_OUTPUT | \ 33607 $SED -e "s/^.*[ ,\t]$COMPILER_NAME[ ,\t]\([1-9]\.[0-9][0-9]*\).*/\1/"` 33608 elif test "x$TOOLCHAIN_TYPE" = xxlc; then 33609 # xlc -qversion output typically looks like 33610 # IBM XL C/C++ for AIX, V11.1 (5724-X13) 33611 # Version: 11.01.0000.0015 33612 COMPILER_VERSION_OUTPUT=`$COMPILER -qversion 2>&1` 33613 # Check that this is likely to be the IBM XL C compiler. 33614 $ECHO "$COMPILER_VERSION_OUTPUT" | $GREP "IBM XL C" > /dev/null 33615 if test $? -ne 0; then 33616 ALT_VERSION_OUTPUT=`$COMPILER --version 2>&1` 33617 { $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 33618 $as_echo "$as_me: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required $TOOLCHAIN_TYPE compiler." >&6;} 33619 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with -qversion was: \"$COMPILER_VERSION_OUTPUT\"" >&5 33620 $as_echo "$as_me: The result from running with -qversion was: \"$COMPILER_VERSION_OUTPUT\"" >&6;} 33621 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with --version was: \"$ALT_VERSION_OUTPUT\"" >&5 33622 $as_echo "$as_me: The result from running with --version was: \"$ALT_VERSION_OUTPUT\"" >&6;} 33623 as_fn_error $? "A $TOOLCHAIN_TYPE compiler is required. Try setting --with-tools-dir." "$LINENO" 5 33624 fi 33625 # Collapse compiler output into a single line 33626 COMPILER_VERSION_STRING=`$ECHO $COMPILER_VERSION_OUTPUT` 33627 COMPILER_VERSION_NUMBER=`$ECHO $COMPILER_VERSION_OUTPUT | \ 33628 $SED -e 's/^.*, V\([1-9][0-9.]*\).*$/\1/'` 33629 elif test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 33630 # There is no specific version flag, but all output starts with a version string. 33631 # First line typically looks something like: 33632 # Microsoft (R) 32-bit C/C++ Optimizing Compiler Version 16.00.40219.01 for 80x86 33633 COMPILER_VERSION_OUTPUT=`$COMPILER 2>&1 | $HEAD -n 1 | $TR -d '\r'` 33634 # Check that this is likely to be Microsoft CL.EXE. 33635 $ECHO "$COMPILER_VERSION_OUTPUT" | $GREP "Microsoft.*Compiler" > /dev/null 33636 if test $? -ne 0; then 33637 { $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 33638 $as_echo "$as_me: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required $TOOLCHAIN_TYPE compiler." >&6;} 33639 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running it was: \"$COMPILER_VERSION_OUTPUT\"" >&5 33640 $as_echo "$as_me: The result from running it was: \"$COMPILER_VERSION_OUTPUT\"" >&6;} 33641 as_fn_error $? "A $TOOLCHAIN_TYPE compiler is required. Try setting --with-tools-dir." "$LINENO" 5 33642 fi 33643 # Collapse compiler output into a single line 33644 COMPILER_VERSION_STRING=`$ECHO $COMPILER_VERSION_OUTPUT` 33645 COMPILER_VERSION_NUMBER=`$ECHO $COMPILER_VERSION_OUTPUT | \ 33646 $SED -e 's/^.*ersion.\([1-9][0-9.]*\) .*$/\1/'` 33647 elif test "x$TOOLCHAIN_TYPE" = xgcc; then 33648 # gcc --version output typically looks like 33649 # gcc (Ubuntu/Linaro 4.8.1-10ubuntu9) 4.8.1 33650 # Copyright (C) 2013 Free Software Foundation, Inc. 33651 # This is free software; see the source for copying conditions. There is NO 33652 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 33653 COMPILER_VERSION_OUTPUT=`$COMPILER --version 2>&1` 33654 # Check that this is likely to be GCC. 33655 $ECHO "$COMPILER_VERSION_OUTPUT" | $GREP "Free Software Foundation" > /dev/null 33656 if test $? -ne 0; then 33657 { $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 33658 $as_echo "$as_me: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required $TOOLCHAIN_TYPE compiler." >&6;} 33659 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with --version was: \"$COMPILER_VERSION\"" >&5 33660 $as_echo "$as_me: The result from running with --version was: \"$COMPILER_VERSION\"" >&6;} 33661 as_fn_error $? "A $TOOLCHAIN_TYPE compiler is required. Try setting --with-tools-dir." "$LINENO" 5 33662 fi 33663 # Remove Copyright and legalese from version string, and 33664 # collapse into a single line 33665 COMPILER_VERSION_STRING=`$ECHO $COMPILER_VERSION_OUTPUT | \ 33666 $SED -e 's/ *Copyright .*//'` 33667 COMPILER_VERSION_NUMBER=`$ECHO $COMPILER_VERSION_OUTPUT | \ 33668 $SED -e 's/^.* \([1-9]\.[0-9.]*\)[^0-9.].*$/\1/'` 33669 elif test "x$TOOLCHAIN_TYPE" = xclang; then 33670 # clang --version output typically looks like 33671 # Apple LLVM version 5.0 (clang-500.2.79) (based on LLVM 3.3svn) 33672 # clang version 3.3 (tags/RELEASE_33/final) 33673 # or 33674 # Debian clang version 3.2-7ubuntu1 (tags/RELEASE_32/final) (based on LLVM 3.2) 33675 # Target: x86_64-pc-linux-gnu 33676 # Thread model: posix 33677 COMPILER_VERSION_OUTPUT=`$COMPILER --version 2>&1` 33678 # Check that this is likely to be clang 33679 $ECHO "$COMPILER_VERSION_OUTPUT" | $GREP "clang" > /dev/null 33680 if test $? -ne 0; then 33681 { $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 33682 $as_echo "$as_me: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required $TOOLCHAIN_TYPE compiler." >&6;} 33683 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with --version was: \"$COMPILER_VERSION_OUTPUT\"" >&5 33684 $as_echo "$as_me: The result from running with --version was: \"$COMPILER_VERSION_OUTPUT\"" >&6;} 33685 as_fn_error $? "A $TOOLCHAIN_TYPE compiler is required. Try setting --with-tools-dir." "$LINENO" 5 33686 fi 33687 # Collapse compiler output into a single line 33688 COMPILER_VERSION_STRING=`$ECHO $COMPILER_VERSION_OUTPUT` 33689 COMPILER_VERSION_NUMBER=`$ECHO $COMPILER_VERSION_OUTPUT | \ 33690 $SED -e 's/^.* version \([1-9][0-9.]*\).*$/\1/'` 33691 else 33692 as_fn_error $? "Unknown toolchain type $TOOLCHAIN_TYPE." "$LINENO" 5 33693 fi 33694 # This sets CC_VERSION_NUMBER or CXX_VERSION_NUMBER. (This comment is a grep marker) 33695 CC_VERSION_NUMBER="$COMPILER_VERSION_NUMBER" 33696 # This sets CC_VERSION_STRING or CXX_VERSION_STRING. (This comment is a grep marker) 33697 CC_VERSION_STRING="$COMPILER_VERSION_STRING" 33698 33699 { $as_echo "$as_me:${as_lineno-$LINENO}: Using $TOOLCHAIN_TYPE $COMPILER_NAME compiler version $COMPILER_VERSION_NUMBER [$COMPILER_VERSION_STRING]" >&5 33700 $as_echo "$as_me: Using $TOOLCHAIN_TYPE $COMPILER_NAME compiler version $COMPILER_VERSION_NUMBER [$COMPILER_VERSION_STRING]" >&6;} 33701 33702 33703 # Now that we have resolved CC ourself, let autoconf have its go at it 33704 ac_ext=c 33705 ac_cpp='$CPP $CPPFLAGS' 33706 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 33707 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 33708 ac_compiler_gnu=$ac_cv_c_compiler_gnu 33709 if test -n "$ac_tool_prefix"; then 33710 for ac_prog in $CC 33711 do 33712 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 33713 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 33714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 33715 $as_echo_n "checking for $ac_word... " >&6; } 33716 if ${ac_cv_prog_CC+:} false; then : 33717 $as_echo_n "(cached) " >&6 33718 else 33719 if test -n "$CC"; then 33720 ac_cv_prog_CC="$CC" # Let the user override the test. 33721 else 33722 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 33723 for as_dir in $PATH 33724 do 33725 IFS=$as_save_IFS 33726 test -z "$as_dir" && as_dir=. 33727 for ac_exec_ext in '' $ac_executable_extensions; do 33728 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 33729 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 33730 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 33731 break 2 33732 fi 33733 done 33734 done 33735 IFS=$as_save_IFS 33736 33737 fi 33738 fi 33739 CC=$ac_cv_prog_CC 33740 if test -n "$CC"; then 33741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 33742 $as_echo "$CC" >&6; } 33743 else 33744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 33745 $as_echo "no" >&6; } 33746 fi 33747 33748 33749 test -n "$CC" && break 33750 done 33751 fi 33752 if test -z "$CC"; then 33753 ac_ct_CC=$CC 33754 for ac_prog in $CC 33755 do 33756 # Extract the first word of "$ac_prog", so it can be a program name with args. 33757 set dummy $ac_prog; ac_word=$2 33758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 33759 $as_echo_n "checking for $ac_word... " >&6; } 33760 if ${ac_cv_prog_ac_ct_CC+:} false; then : 33761 $as_echo_n "(cached) " >&6 33762 else 33763 if test -n "$ac_ct_CC"; then 33764 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 33765 else 33766 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 33767 for as_dir in $PATH 33768 do 33769 IFS=$as_save_IFS 33770 test -z "$as_dir" && as_dir=. 33771 for ac_exec_ext in '' $ac_executable_extensions; do 33772 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 33773 ac_cv_prog_ac_ct_CC="$ac_prog" 33774 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 33775 break 2 33776 fi 33777 done 33778 done 33779 IFS=$as_save_IFS 33780 33781 fi 33782 fi 33783 ac_ct_CC=$ac_cv_prog_ac_ct_CC 33784 if test -n "$ac_ct_CC"; then 33785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 33786 $as_echo "$ac_ct_CC" >&6; } 33787 else 33788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 33789 $as_echo "no" >&6; } 33790 fi 33791 33792 33793 test -n "$ac_ct_CC" && break 33794 done 33795 33796 if test "x$ac_ct_CC" = x; then 33797 CC="" 33798 else 33799 case $cross_compiling:$ac_tool_warned in 33800 yes:) 33801 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 33802 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 33803 ac_tool_warned=yes ;; 33804 esac 33805 CC=$ac_ct_CC 33806 fi 33807 fi 33808 33809 33810 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 33811 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 33812 as_fn_error $? "no acceptable C compiler found in \$PATH 33813 See \`config.log' for more details" "$LINENO" 5; } 33814 33815 # Provide some information about the compiler. 33816 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 33817 set X $ac_compile 33818 ac_compiler=$2 33819 for ac_option in --version -v -V -qversion; do 33820 { { ac_try="$ac_compiler $ac_option >&5" 33821 case "(($ac_try" in 33822 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 33823 *) ac_try_echo=$ac_try;; 33824 esac 33825 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 33826 $as_echo "$ac_try_echo"; } >&5 33827 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 33828 ac_status=$? 33829 if test -s conftest.err; then 33830 sed '10a\ 33831 ... rest of stderr output deleted ... 33832 10q' conftest.err >conftest.er1 33833 cat conftest.er1 >&5 33834 fi 33835 rm -f conftest.er1 conftest.err 33836 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 33837 test $ac_status = 0; } 33838 done 33839 33840 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 33841 /* end confdefs.h. */ 33842 33843 int 33844 main () 33845 { 33846 33847 ; 33848 return 0; 33849 } 33850 _ACEOF 33851 ac_clean_files_save=$ac_clean_files 33852 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 33853 # Try to create an executable without -o first, disregard a.out. 33854 # It will help us diagnose broken compilers, and finding out an intuition 33855 # of exeext. 33856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 33857 $as_echo_n "checking whether the C compiler works... " >&6; } 33858 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 33859 33860 # The possible output files: 33861 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 33862 33863 ac_rmfiles= 33864 for ac_file in $ac_files 33865 do 33866 case $ac_file in 33867 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 33868 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 33869 esac 33870 done 33871 rm -f $ac_rmfiles 33872 33873 if { { ac_try="$ac_link_default" 33874 case "(($ac_try" in 33875 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 33876 *) ac_try_echo=$ac_try;; 33877 esac 33878 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 33879 $as_echo "$ac_try_echo"; } >&5 33880 (eval "$ac_link_default") 2>&5 33881 ac_status=$? 33882 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 33883 test $ac_status = 0; }; then : 33884 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 33885 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 33886 # in a Makefile. We should not override ac_cv_exeext if it was cached, 33887 # so that the user can short-circuit this test for compilers unknown to 33888 # Autoconf. 33889 for ac_file in $ac_files '' 33890 do 33891 test -f "$ac_file" || continue 33892 case $ac_file in 33893 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 33894 ;; 33895 [ab].out ) 33896 # We found the default executable, but exeext='' is most 33897 # certainly right. 33898 break;; 33899 *.* ) 33900 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 33901 then :; else 33902 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 33903 fi 33904 # We set ac_cv_exeext here because the later test for it is not 33905 # safe: cross compilers may not add the suffix if given an `-o' 33906 # argument, so we may need to know it at that point already. 33907 # Even if this section looks crufty: it has the advantage of 33908 # actually working. 33909 break;; 33910 * ) 33911 break;; 33912 esac 33913 done 33914 test "$ac_cv_exeext" = no && ac_cv_exeext= 33915 33916 else 33917 ac_file='' 33918 fi 33919 if test -z "$ac_file"; then : 33920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 33921 $as_echo "no" >&6; } 33922 $as_echo "$as_me: failed program was:" >&5 33923 sed 's/^/| /' conftest.$ac_ext >&5 33924 33925 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 33926 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 33927 as_fn_error 77 "C compiler cannot create executables 33928 See \`config.log' for more details" "$LINENO" 5; } 33929 else 33930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 33931 $as_echo "yes" >&6; } 33932 fi 33933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 33934 $as_echo_n "checking for C compiler default output file name... " >&6; } 33935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 33936 $as_echo "$ac_file" >&6; } 33937 ac_exeext=$ac_cv_exeext 33938 33939 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 33940 ac_clean_files=$ac_clean_files_save 33941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 33942 $as_echo_n "checking for suffix of executables... " >&6; } 33943 if { { ac_try="$ac_link" 33944 case "(($ac_try" in 33945 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 33946 *) ac_try_echo=$ac_try;; 33947 esac 33948 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 33949 $as_echo "$ac_try_echo"; } >&5 33950 (eval "$ac_link") 2>&5 33951 ac_status=$? 33952 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 33953 test $ac_status = 0; }; then : 33954 # If both `conftest.exe' and `conftest' are `present' (well, observable) 33955 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 33956 # work properly (i.e., refer to `conftest.exe'), while it won't with 33957 # `rm'. 33958 for ac_file in conftest.exe conftest conftest.*; do 33959 test -f "$ac_file" || continue 33960 case $ac_file in 33961 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 33962 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 33963 break;; 33964 * ) break;; 33965 esac 33966 done 33967 else 33968 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 33969 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 33970 as_fn_error $? "cannot compute suffix of executables: cannot compile and link 33971 See \`config.log' for more details" "$LINENO" 5; } 33972 fi 33973 rm -f conftest conftest$ac_cv_exeext 33974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 33975 $as_echo "$ac_cv_exeext" >&6; } 33976 33977 rm -f conftest.$ac_ext 33978 EXEEXT=$ac_cv_exeext 33979 ac_exeext=$EXEEXT 33980 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 33981 /* end confdefs.h. */ 33982 #include <stdio.h> 33983 int 33984 main () 33985 { 33986 FILE *f = fopen ("conftest.out", "w"); 33987 return ferror (f) || fclose (f) != 0; 33988 33989 ; 33990 return 0; 33991 } 33992 _ACEOF 33993 ac_clean_files="$ac_clean_files conftest.out" 33994 # Check that the compiler produces executables we can run. If not, either 33995 # the compiler is broken, or we cross compile. 33996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 33997 $as_echo_n "checking whether we are cross compiling... " >&6; } 33998 if test "$cross_compiling" != yes; then 33999 { { ac_try="$ac_link" 34000 case "(($ac_try" in 34001 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 34002 *) ac_try_echo=$ac_try;; 34003 esac 34004 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 34005 $as_echo "$ac_try_echo"; } >&5 34006 (eval "$ac_link") 2>&5 34007 ac_status=$? 34008 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 34009 test $ac_status = 0; } 34010 if { ac_try='./conftest$ac_cv_exeext' 34011 { { case "(($ac_try" in 34012 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 34013 *) ac_try_echo=$ac_try;; 34014 esac 34015 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 34016 $as_echo "$ac_try_echo"; } >&5 34017 (eval "$ac_try") 2>&5 34018 ac_status=$? 34019 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 34020 test $ac_status = 0; }; }; then 34021 cross_compiling=no 34022 else 34023 if test "$cross_compiling" = maybe; then 34024 cross_compiling=yes 34025 else 34026 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 34027 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 34028 as_fn_error $? "cannot run C compiled programs. 34029 If you meant to cross compile, use \`--host'. 34030 See \`config.log' for more details" "$LINENO" 5; } 34031 fi 34032 fi 34033 fi 34034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 34035 $as_echo "$cross_compiling" >&6; } 34036 34037 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 34038 ac_clean_files=$ac_clean_files_save 34039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 34040 $as_echo_n "checking for suffix of object files... " >&6; } 34041 if ${ac_cv_objext+:} false; then : 34042 $as_echo_n "(cached) " >&6 34043 else 34044 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 34045 /* end confdefs.h. */ 34046 34047 int 34048 main () 34049 { 34050 34051 ; 34052 return 0; 34053 } 34054 _ACEOF 34055 rm -f conftest.o conftest.obj 34056 if { { ac_try="$ac_compile" 34057 case "(($ac_try" in 34058 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 34059 *) ac_try_echo=$ac_try;; 34060 esac 34061 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 34062 $as_echo "$ac_try_echo"; } >&5 34063 (eval "$ac_compile") 2>&5 34064 ac_status=$? 34065 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 34066 test $ac_status = 0; }; then : 34067 for ac_file in conftest.o conftest.obj conftest.*; do 34068 test -f "$ac_file" || continue; 34069 case $ac_file in 34070 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 34071 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 34072 break;; 34073 esac 34074 done 34075 else 34076 $as_echo "$as_me: failed program was:" >&5 34077 sed 's/^/| /' conftest.$ac_ext >&5 34078 34079 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 34080 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 34081 as_fn_error $? "cannot compute suffix of object files: cannot compile 34082 See \`config.log' for more details" "$LINENO" 5; } 34083 fi 34084 rm -f conftest.$ac_cv_objext conftest.$ac_ext 34085 fi 34086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 34087 $as_echo "$ac_cv_objext" >&6; } 34088 OBJEXT=$ac_cv_objext 34089 ac_objext=$OBJEXT 34090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 34091 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 34092 if ${ac_cv_c_compiler_gnu+:} false; then : 34093 $as_echo_n "(cached) " >&6 34094 else 34095 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 34096 /* end confdefs.h. */ 34097 34098 int 34099 main () 34100 { 34101 #ifndef __GNUC__ 34102 choke me 34103 #endif 34104 34105 ; 34106 return 0; 34107 } 34108 _ACEOF 34109 if ac_fn_c_try_compile "$LINENO"; then : 34110 ac_compiler_gnu=yes 34111 else 34112 ac_compiler_gnu=no 34113 fi 34114 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 34115 ac_cv_c_compiler_gnu=$ac_compiler_gnu 34116 34117 fi 34118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 34119 $as_echo "$ac_cv_c_compiler_gnu" >&6; } 34120 if test $ac_compiler_gnu = yes; then 34121 GCC=yes 34122 else 34123 GCC= 34124 fi 34125 ac_test_CFLAGS=${CFLAGS+set} 34126 ac_save_CFLAGS=$CFLAGS 34127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 34128 $as_echo_n "checking whether $CC accepts -g... " >&6; } 34129 if ${ac_cv_prog_cc_g+:} false; then : 34130 $as_echo_n "(cached) " >&6 34131 else 34132 ac_save_c_werror_flag=$ac_c_werror_flag 34133 ac_c_werror_flag=yes 34134 ac_cv_prog_cc_g=no 34135 CFLAGS="-g" 34136 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 34137 /* end confdefs.h. */ 34138 34139 int 34140 main () 34141 { 34142 34143 ; 34144 return 0; 34145 } 34146 _ACEOF 34147 if ac_fn_c_try_compile "$LINENO"; then : 34148 ac_cv_prog_cc_g=yes 34149 else 34150 CFLAGS="" 34151 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 34152 /* end confdefs.h. */ 34153 34154 int 34155 main () 34156 { 34157 34158 ; 34159 return 0; 34160 } 34161 _ACEOF 34162 if ac_fn_c_try_compile "$LINENO"; then : 34163 34164 else 34165 ac_c_werror_flag=$ac_save_c_werror_flag 34166 CFLAGS="-g" 34167 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 34168 /* end confdefs.h. */ 34169 34170 int 34171 main () 34172 { 34173 34174 ; 34175 return 0; 34176 } 34177 _ACEOF 34178 if ac_fn_c_try_compile "$LINENO"; then : 34179 ac_cv_prog_cc_g=yes 34180 fi 34181 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 34182 fi 34183 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 34184 fi 34185 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 34186 ac_c_werror_flag=$ac_save_c_werror_flag 34187 fi 34188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 34189 $as_echo "$ac_cv_prog_cc_g" >&6; } 34190 if test "$ac_test_CFLAGS" = set; then 34191 CFLAGS=$ac_save_CFLAGS 34192 elif test $ac_cv_prog_cc_g = yes; then 34193 if test "$GCC" = yes; then 34194 CFLAGS="-g -O2" 34195 else 34196 CFLAGS="-g" 34197 fi 34198 else 34199 if test "$GCC" = yes; then 34200 CFLAGS="-O2" 34201 else 34202 CFLAGS= 34203 fi 34204 fi 34205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 34206 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 34207 if ${ac_cv_prog_cc_c89+:} false; then : 34208 $as_echo_n "(cached) " >&6 34209 else 34210 ac_cv_prog_cc_c89=no 34211 ac_save_CC=$CC 34212 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 34213 /* end confdefs.h. */ 34214 #include <stdarg.h> 34215 #include <stdio.h> 34216 struct stat; 34217 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 34218 struct buf { int x; }; 34219 FILE * (*rcsopen) (struct buf *, struct stat *, int); 34220 static char *e (p, i) 34221 char **p; 34222 int i; 34223 { 34224 return p[i]; 34225 } 34226 static char *f (char * (*g) (char **, int), char **p, ...) 34227 { 34228 char *s; 34229 va_list v; 34230 va_start (v,p); 34231 s = g (p, va_arg (v,int)); 34232 va_end (v); 34233 return s; 34234 } 34235 34236 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 34237 function prototypes and stuff, but not '\xHH' hex character constants. 34238 These don't provoke an error unfortunately, instead are silently treated 34239 as 'x'. The following induces an error, until -std is added to get 34240 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 34241 array size at least. It's necessary to write '\x00'==0 to get something 34242 that's true only with -std. */ 34243 int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 34244 34245 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 34246 inside strings and character constants. */ 34247 #define FOO(x) 'x' 34248 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 34249 34250 int test (int i, double x); 34251 struct s1 {int (*f) (int a);}; 34252 struct s2 {int (*f) (double a);}; 34253 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 34254 int argc; 34255 char **argv; 34256 int 34257 main () 34258 { 34259 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 34260 ; 34261 return 0; 34262 } 34263 _ACEOF 34264 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 34265 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 34266 do 34267 CC="$ac_save_CC $ac_arg" 34268 if ac_fn_c_try_compile "$LINENO"; then : 34269 ac_cv_prog_cc_c89=$ac_arg 34270 fi 34271 rm -f core conftest.err conftest.$ac_objext 34272 test "x$ac_cv_prog_cc_c89" != "xno" && break 34273 done 34274 rm -f conftest.$ac_ext 34275 CC=$ac_save_CC 34276 34277 fi 34278 # AC_CACHE_VAL 34279 case "x$ac_cv_prog_cc_c89" in 34280 x) 34281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 34282 $as_echo "none needed" >&6; } ;; 34283 xno) 34284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 34285 $as_echo "unsupported" >&6; } ;; 34286 *) 34287 CC="$CC $ac_cv_prog_cc_c89" 34288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 34289 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 34290 esac 34291 if test "x$ac_cv_prog_cc_c89" != xno; then : 34292 34293 fi 34294 34295 ac_ext=cpp 34296 ac_cpp='$CXXCPP $CPPFLAGS' 34297 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 34298 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 34299 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 34300 34301 34302 34303 COMPILER_NAME=C++ 34304 SEARCH_LIST="$TOOLCHAIN_CXX_BINARY" 34305 34306 if test "x$CXX" != x; then 34307 # User has supplied compiler name already, always let that override. 34308 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied compiler CXX=$CXX" >&5 34309 $as_echo "$as_me: Will use user supplied compiler CXX=$CXX" >&6;} 34310 if test "x`basename $CXX`" = "x$CXX"; then 34311 # A command without a complete path is provided, search $PATH. 34312 34313 for ac_prog in $CXX 34314 do 34315 # Extract the first word of "$ac_prog", so it can be a program name with args. 34316 set dummy $ac_prog; ac_word=$2 34317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 34318 $as_echo_n "checking for $ac_word... " >&6; } 34319 if ${ac_cv_path_POTENTIAL_CXX+:} false; then : 34320 $as_echo_n "(cached) " >&6 34321 else 34322 case $POTENTIAL_CXX in 34323 [\\/]* | ?:[\\/]*) 34324 ac_cv_path_POTENTIAL_CXX="$POTENTIAL_CXX" # Let the user override the test with a path. 34325 ;; 34326 *) 34327 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 34328 for as_dir in $PATH 34329 do 34330 IFS=$as_save_IFS 34331 test -z "$as_dir" && as_dir=. 34332 for ac_exec_ext in '' $ac_executable_extensions; do 34333 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 34334 ac_cv_path_POTENTIAL_CXX="$as_dir/$ac_word$ac_exec_ext" 34335 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 34336 break 2 34337 fi 34338 done 34339 done 34340 IFS=$as_save_IFS 34341 34342 ;; 34343 esac 34344 fi 34345 POTENTIAL_CXX=$ac_cv_path_POTENTIAL_CXX 34346 if test -n "$POTENTIAL_CXX"; then 34347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $POTENTIAL_CXX" >&5 34348 $as_echo "$POTENTIAL_CXX" >&6; } 34349 else 34350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 34351 $as_echo "no" >&6; } 34352 fi 34353 34354 34355 test -n "$POTENTIAL_CXX" && break 34356 done 34357 34358 if test "x$POTENTIAL_CXX" != x; then 34359 CXX=$POTENTIAL_CXX 34360 else 34361 as_fn_error $? "User supplied compiler CXX=$CXX could not be found" "$LINENO" 5 34362 fi 34363 else 34364 # Otherwise it might already be a complete path 34365 if test ! -x "$CXX"; then 34366 as_fn_error $? "User supplied compiler CXX=$CXX does not exist" "$LINENO" 5 34367 fi 34368 fi 34369 else 34370 # No user supplied value. Locate compiler ourselves. 34371 34372 # If we are cross compiling, assume cross compilation tools follows the 34373 # cross compilation standard where they are prefixed with the autoconf 34374 # standard name for the target. For example the binary 34375 # i686-sun-solaris2.10-gcc will cross compile for i686-sun-solaris2.10. 34376 # If we are not cross compiling, then the default compiler name will be 34377 # used. 34378 34379 CXX= 34380 # If TOOLCHAIN_PATH is set, check for all compiler names in there first 34381 # before checking the rest of the PATH. 34382 # FIXME: Now that we prefix the TOOLS_DIR to the PATH in the PRE_DETECTION 34383 # step, this should not be necessary. 34384 if test -n "$TOOLCHAIN_PATH"; then 34385 PATH_save="$PATH" 34386 PATH="$TOOLCHAIN_PATH" 34387 for ac_prog in $SEARCH_LIST 34388 do 34389 # Extract the first word of "$ac_prog", so it can be a program name with args. 34390 set dummy $ac_prog; ac_word=$2 34391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 34392 $as_echo_n "checking for $ac_word... " >&6; } 34393 if ${ac_cv_path_TOOLCHAIN_PATH_CXX+:} false; then : 34394 $as_echo_n "(cached) " >&6 34395 else 34396 case $TOOLCHAIN_PATH_CXX in 34397 [\\/]* | ?:[\\/]*) 34398 ac_cv_path_TOOLCHAIN_PATH_CXX="$TOOLCHAIN_PATH_CXX" # Let the user override the test with a path. 34399 ;; 34400 *) 34401 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 34402 for as_dir in $PATH 34403 do 34404 IFS=$as_save_IFS 34405 test -z "$as_dir" && as_dir=. 34406 for ac_exec_ext in '' $ac_executable_extensions; do 34407 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 34408 ac_cv_path_TOOLCHAIN_PATH_CXX="$as_dir/$ac_word$ac_exec_ext" 34409 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 34410 break 2 34411 fi 34412 done 34413 done 34414 IFS=$as_save_IFS 34415 34416 ;; 34417 esac 34418 fi 34419 TOOLCHAIN_PATH_CXX=$ac_cv_path_TOOLCHAIN_PATH_CXX 34420 if test -n "$TOOLCHAIN_PATH_CXX"; then 34421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOOLCHAIN_PATH_CXX" >&5 34422 $as_echo "$TOOLCHAIN_PATH_CXX" >&6; } 34423 else 34424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 34425 $as_echo "no" >&6; } 34426 fi 34427 34428 34429 test -n "$TOOLCHAIN_PATH_CXX" && break 34430 done 34431 34432 CXX=$TOOLCHAIN_PATH_CXX 34433 PATH="$PATH_save" 34434 fi 34435 34436 # AC_PATH_PROGS can't be run multiple times with the same variable, 34437 # so create a new name for this run. 34438 if test "x$CXX" = x; then 34439 for ac_prog in $SEARCH_LIST 34440 do 34441 # Extract the first word of "$ac_prog", so it can be a program name with args. 34442 set dummy $ac_prog; ac_word=$2 34443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 34444 $as_echo_n "checking for $ac_word... " >&6; } 34445 if ${ac_cv_path_POTENTIAL_CXX+:} false; then : 34446 $as_echo_n "(cached) " >&6 34447 else 34448 case $POTENTIAL_CXX in 34449 [\\/]* | ?:[\\/]*) 34450 ac_cv_path_POTENTIAL_CXX="$POTENTIAL_CXX" # Let the user override the test with a path. 34451 ;; 34452 *) 34453 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 34454 for as_dir in $PATH 34455 do 34456 IFS=$as_save_IFS 34457 test -z "$as_dir" && as_dir=. 34458 for ac_exec_ext in '' $ac_executable_extensions; do 34459 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 34460 ac_cv_path_POTENTIAL_CXX="$as_dir/$ac_word$ac_exec_ext" 34461 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 34462 break 2 34463 fi 34464 done 34465 done 34466 IFS=$as_save_IFS 34467 34468 ;; 34469 esac 34470 fi 34471 POTENTIAL_CXX=$ac_cv_path_POTENTIAL_CXX 34472 if test -n "$POTENTIAL_CXX"; then 34473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $POTENTIAL_CXX" >&5 34474 $as_echo "$POTENTIAL_CXX" >&6; } 34475 else 34476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 34477 $as_echo "no" >&6; } 34478 fi 34479 34480 34481 test -n "$POTENTIAL_CXX" && break 34482 done 34483 34484 CXX=$POTENTIAL_CXX 34485 fi 34486 34487 if test "x$CXX" = x; then 34488 34489 # Print a helpful message on how to acquire the necessary build dependency. 34490 # devkit is the help tag: freetype, cups, alsa etc 34491 MISSING_DEPENDENCY=devkit 34492 34493 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 34494 cygwin_help $MISSING_DEPENDENCY 34495 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 34496 msys_help $MISSING_DEPENDENCY 34497 else 34498 PKGHANDLER_COMMAND= 34499 34500 case $PKGHANDLER in 34501 apt-get) 34502 apt_help $MISSING_DEPENDENCY ;; 34503 yum) 34504 yum_help $MISSING_DEPENDENCY ;; 34505 port) 34506 port_help $MISSING_DEPENDENCY ;; 34507 pkgutil) 34508 pkgutil_help $MISSING_DEPENDENCY ;; 34509 pkgadd) 34510 pkgadd_help $MISSING_DEPENDENCY ;; 34511 esac 34512 34513 if test "x$PKGHANDLER_COMMAND" != x; then 34514 HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'." 34515 fi 34516 fi 34517 34518 as_fn_error $? "Could not find a $COMPILER_NAME compiler. $HELP_MSG" "$LINENO" 5 34519 fi 34520 fi 34521 34522 # Now we have a compiler binary in CXX. Make sure it's okay. 34523 34524 # Only process if variable expands to non-empty 34525 34526 if test "x$CXX" != x; then 34527 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 34528 34529 # First separate the path from the arguments. This will split at the first 34530 # space. 34531 complete="$CXX" 34532 path="${complete%% *}" 34533 tmp="$complete EOL" 34534 arguments="${tmp#* }" 34535 34536 # Input might be given as Windows format, start by converting to 34537 # unix format. 34538 new_path=`$CYGPATH -u "$path"` 34539 34540 # Now try to locate executable using which 34541 new_path=`$WHICH "$new_path" 2> /dev/null` 34542 # bat and cmd files are not always considered executable in cygwin causing which 34543 # to not find them 34544 if test "x$new_path" = x \ 34545 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 34546 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 34547 new_path=`$CYGPATH -u "$path"` 34548 fi 34549 if test "x$new_path" = x; then 34550 # Oops. Which didn't find the executable. 34551 # The splitting of arguments from the executable at a space might have been incorrect, 34552 # since paths with space are more likely in Windows. Give it another try with the whole 34553 # argument. 34554 path="$complete" 34555 arguments="EOL" 34556 new_path=`$CYGPATH -u "$path"` 34557 new_path=`$WHICH "$new_path" 2> /dev/null` 34558 # bat and cmd files are not always considered executable in cygwin causing which 34559 # to not find them 34560 if test "x$new_path" = x \ 34561 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 34562 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 34563 new_path=`$CYGPATH -u "$path"` 34564 fi 34565 if test "x$new_path" = x; then 34566 # It's still not found. Now this is an unrecoverable error. 34567 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CXX, which resolves as \"$complete\", is not found." >&5 34568 $as_echo "$as_me: The path of CXX, which resolves as \"$complete\", is not found." >&6;} 34569 has_space=`$ECHO "$complete" | $GREP " "` 34570 if test "x$has_space" != x; then 34571 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 34572 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 34573 fi 34574 as_fn_error $? "Cannot locate the the path of CXX" "$LINENO" 5 34575 fi 34576 fi 34577 34578 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 34579 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 34580 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 34581 # "foo.exe" is OK but "foo" is an error. 34582 # 34583 # This test is therefore slightly more accurate than "test -f" to check for file presence. 34584 # It is also a way to make sure we got the proper file name for the real test later on. 34585 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 34586 if test "x$test_shortpath" = x; then 34587 # Short path failed, file does not exist as specified. 34588 # Try adding .exe or .cmd 34589 if test -f "${new_path}.exe"; then 34590 input_to_shortpath="${new_path}.exe" 34591 elif test -f "${new_path}.cmd"; then 34592 input_to_shortpath="${new_path}.cmd" 34593 else 34594 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CXX, which resolves as \"$new_path\", is invalid." >&5 34595 $as_echo "$as_me: The path of CXX, which resolves as \"$new_path\", is invalid." >&6;} 34596 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 34597 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 34598 as_fn_error $? "Cannot locate the the path of CXX" "$LINENO" 5 34599 fi 34600 else 34601 input_to_shortpath="$new_path" 34602 fi 34603 34604 # Call helper function which possibly converts this using DOS-style short mode. 34605 # If so, the updated path is stored in $new_path. 34606 new_path="$input_to_shortpath" 34607 34608 input_path="$input_to_shortpath" 34609 # Check if we need to convert this using DOS-style short mode. If the path 34610 # contains just simple characters, use it. Otherwise (spaces, weird characters), 34611 # take no chances and rewrite it. 34612 # Note: m4 eats our [], so we need to use [ and ] instead. 34613 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 34614 if test "x$has_forbidden_chars" != x; then 34615 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 34616 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 34617 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 34618 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 34619 # Going to short mode and back again did indeed matter. Since short mode is 34620 # case insensitive, let's make it lowercase to improve readability. 34621 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 34622 # Now convert it back to Unix-style (cygpath) 34623 input_path=`$CYGPATH -u "$shortmode_path"` 34624 new_path="$input_path" 34625 fi 34626 fi 34627 34628 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 34629 if test "x$test_cygdrive_prefix" = x; then 34630 # As a simple fix, exclude /usr/bin since it's not a real path. 34631 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 34632 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 34633 # a path prefixed by /cygdrive for fixpath to work. 34634 new_path="$CYGWIN_ROOT_PATH$input_path" 34635 fi 34636 fi 34637 34638 # remove trailing .exe if any 34639 new_path="${new_path/%.exe/}" 34640 34641 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 34642 34643 # First separate the path from the arguments. This will split at the first 34644 # space. 34645 complete="$CXX" 34646 path="${complete%% *}" 34647 tmp="$complete EOL" 34648 arguments="${tmp#* }" 34649 34650 # Input might be given as Windows format, start by converting to 34651 # unix format. 34652 new_path="$path" 34653 34654 windows_path="$new_path" 34655 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 34656 unix_path=`$CYGPATH -u "$windows_path"` 34657 new_path="$unix_path" 34658 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 34659 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 34660 new_path="$unix_path" 34661 fi 34662 34663 34664 # Now try to locate executable using which 34665 new_path=`$WHICH "$new_path" 2> /dev/null` 34666 34667 if test "x$new_path" = x; then 34668 # Oops. Which didn't find the executable. 34669 # The splitting of arguments from the executable at a space might have been incorrect, 34670 # since paths with space are more likely in Windows. Give it another try with the whole 34671 # argument. 34672 path="$complete" 34673 arguments="EOL" 34674 new_path="$path" 34675 34676 windows_path="$new_path" 34677 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 34678 unix_path=`$CYGPATH -u "$windows_path"` 34679 new_path="$unix_path" 34680 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 34681 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 34682 new_path="$unix_path" 34683 fi 34684 34685 34686 new_path=`$WHICH "$new_path" 2> /dev/null` 34687 # bat and cmd files are not always considered executable in MSYS causing which 34688 # to not find them 34689 if test "x$new_path" = x \ 34690 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 34691 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 34692 new_path="$path" 34693 34694 windows_path="$new_path" 34695 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 34696 unix_path=`$CYGPATH -u "$windows_path"` 34697 new_path="$unix_path" 34698 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 34699 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 34700 new_path="$unix_path" 34701 fi 34702 34703 fi 34704 34705 if test "x$new_path" = x; then 34706 # It's still not found. Now this is an unrecoverable error. 34707 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CXX, which resolves as \"$complete\", is not found." >&5 34708 $as_echo "$as_me: The path of CXX, which resolves as \"$complete\", is not found." >&6;} 34709 has_space=`$ECHO "$complete" | $GREP " "` 34710 if test "x$has_space" != x; then 34711 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 34712 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 34713 fi 34714 as_fn_error $? "Cannot locate the the path of CXX" "$LINENO" 5 34715 fi 34716 fi 34717 34718 # Now new_path has a complete unix path to the binary 34719 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 34720 # Keep paths in /bin as-is, but remove trailing .exe if any 34721 new_path="${new_path/%.exe/}" 34722 # Do not save /bin paths to all_fixpath_prefixes! 34723 else 34724 # Not in mixed or Windows style, start by that. 34725 new_path=`cmd //c echo $new_path` 34726 34727 input_path="$new_path" 34728 # Check if we need to convert this using DOS-style short mode. If the path 34729 # contains just simple characters, use it. Otherwise (spaces, weird characters), 34730 # take no chances and rewrite it. 34731 # Note: m4 eats our [], so we need to use [ and ] instead. 34732 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 34733 if test "x$has_forbidden_chars" != x; then 34734 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 34735 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 34736 fi 34737 34738 # Output is in $new_path 34739 34740 windows_path="$new_path" 34741 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 34742 unix_path=`$CYGPATH -u "$windows_path"` 34743 new_path="$unix_path" 34744 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 34745 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 34746 new_path="$unix_path" 34747 fi 34748 34749 # remove trailing .exe if any 34750 new_path="${new_path/%.exe/}" 34751 34752 # Save the first 10 bytes of this path to the storage, so fixpath can work. 34753 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 34754 fi 34755 34756 else 34757 # We're on a unix platform. Hooray! :) 34758 # First separate the path from the arguments. This will split at the first 34759 # space. 34760 complete="$CXX" 34761 path="${complete%% *}" 34762 tmp="$complete EOL" 34763 arguments="${tmp#* }" 34764 34765 # Cannot rely on the command "which" here since it doesn't always work. 34766 is_absolute_path=`$ECHO "$path" | $GREP ^/` 34767 if test -z "$is_absolute_path"; then 34768 # Path to executable is not absolute. Find it. 34769 IFS_save="$IFS" 34770 IFS=: 34771 for p in $PATH; do 34772 if test -f "$p/$path" && test -x "$p/$path"; then 34773 new_path="$p/$path" 34774 break 34775 fi 34776 done 34777 IFS="$IFS_save" 34778 else 34779 # This is an absolute path, we can use it without further modifications. 34780 new_path="$path" 34781 fi 34782 34783 if test "x$new_path" = x; then 34784 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CXX, which resolves as \"$complete\", is not found." >&5 34785 $as_echo "$as_me: The path of CXX, which resolves as \"$complete\", is not found." >&6;} 34786 has_space=`$ECHO "$complete" | $GREP " "` 34787 if test "x$has_space" != x; then 34788 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 34789 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 34790 fi 34791 as_fn_error $? "Cannot locate the the path of CXX" "$LINENO" 5 34792 fi 34793 fi 34794 34795 # Now join together the path and the arguments once again 34796 if test "x$arguments" != xEOL; then 34797 new_complete="$new_path ${arguments% *}" 34798 else 34799 new_complete="$new_path" 34800 fi 34801 34802 if test "x$complete" != "x$new_complete"; then 34803 CXX="$new_complete" 34804 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting CXX to \"$new_complete\"" >&5 34805 $as_echo "$as_me: Rewriting CXX to \"$new_complete\"" >&6;} 34806 fi 34807 fi 34808 34809 TEST_COMPILER="$CXX" 34810 34811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking resolved symbolic links for CXX" >&5 34812 $as_echo_n "checking resolved symbolic links for CXX... " >&6; } 34813 SYMLINK_ORIGINAL="$TEST_COMPILER" 34814 34815 if test "x$OPENJDK_BUILD_OS" != xwindows; then 34816 # Follow a chain of symbolic links. Use readlink 34817 # where it exists, else fall back to horribly 34818 # complicated shell code. 34819 if test "x$READLINK_TESTED" != yes; then 34820 # On MacOSX there is a readlink tool with a different 34821 # purpose than the GNU readlink tool. Check the found readlink. 34822 ISGNU=`$READLINK --version 2>&1 | $GREP GNU` 34823 if test "x$ISGNU" = x; then 34824 # A readlink that we do not know how to use. 34825 # Are there other non-GNU readlinks out there? 34826 READLINK_TESTED=yes 34827 READLINK= 34828 fi 34829 fi 34830 34831 if test "x$READLINK" != x; then 34832 SYMLINK_ORIGINAL=`$READLINK -f $SYMLINK_ORIGINAL` 34833 else 34834 # Save the current directory for restoring afterwards 34835 STARTDIR=$PWD 34836 COUNTER=0 34837 sym_link_dir=`$DIRNAME $SYMLINK_ORIGINAL` 34838 sym_link_file=`$BASENAME $SYMLINK_ORIGINAL` 34839 cd $sym_link_dir 34840 # Use -P flag to resolve symlinks in directories. 34841 cd `$THEPWDCMD -P` 34842 sym_link_dir=`$THEPWDCMD -P` 34843 # Resolve file symlinks 34844 while test $COUNTER -lt 20; do 34845 ISLINK=`$LS -l $sym_link_dir/$sym_link_file | $GREP '\->' | $SED -e 's/.*-> \(.*\)/\1/'` 34846 if test "x$ISLINK" == x; then 34847 # This is not a symbolic link! We are done! 34848 break 34849 fi 34850 # Again resolve directory symlinks since the target of the just found 34851 # link could be in a different directory 34852 cd `$DIRNAME $ISLINK` 34853 sym_link_dir=`$THEPWDCMD -P` 34854 sym_link_file=`$BASENAME $ISLINK` 34855 let COUNTER=COUNTER+1 34856 done 34857 cd $STARTDIR 34858 SYMLINK_ORIGINAL=$sym_link_dir/$sym_link_file 34859 fi 34860 fi 34861 34862 if test "x$TEST_COMPILER" = "x$SYMLINK_ORIGINAL"; then 34863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no symlink" >&5 34864 $as_echo "no symlink" >&6; } 34865 else 34866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SYMLINK_ORIGINAL" >&5 34867 $as_echo "$SYMLINK_ORIGINAL" >&6; } 34868 34869 # We can't handle ccache by gcc wrappers, since we need to know if we're 34870 # using ccache. Instead ccache usage must be controlled by a configure option. 34871 COMPILER_BASENAME=`$BASENAME "$SYMLINK_ORIGINAL"` 34872 if test "x$COMPILER_BASENAME" = "xccache"; then 34873 { $as_echo "$as_me:${as_lineno-$LINENO}: Please use --enable-ccache instead of providing a wrapped compiler." >&5 34874 $as_echo "$as_me: Please use --enable-ccache instead of providing a wrapped compiler." >&6;} 34875 as_fn_error $? "$TEST_COMPILER is a symbolic link to ccache. This is not supported." "$LINENO" 5 34876 fi 34877 fi 34878 34879 34880 COMPILER=$CXX 34881 COMPILER_NAME=$COMPILER_NAME 34882 34883 if test "x$TOOLCHAIN_TYPE" = xsolstudio; then 34884 # cc -V output typically looks like 34885 # cc: Sun C 5.12 Linux_i386 2011/11/16 34886 # or 34887 # cc: Studio 12.5 Sun C 5.14 SunOS_sparc 2016/05/31 34888 COMPILER_VERSION_OUTPUT=`$COMPILER -V 2>&1` 34889 # Check that this is likely to be the Solaris Studio cc. 34890 $ECHO "$COMPILER_VERSION_OUTPUT" | $GREP "^.* Sun $COMPILER_NAME" > /dev/null 34891 if test $? -ne 0; then 34892 ALT_VERSION_OUTPUT=`$COMPILER --version 2>&1` 34893 { $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 34894 $as_echo "$as_me: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required $TOOLCHAIN_TYPE compiler." >&6;} 34895 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with -V was: \"$COMPILER_VERSION_OUTPUT\"" >&5 34896 $as_echo "$as_me: The result from running with -V was: \"$COMPILER_VERSION_OUTPUT\"" >&6;} 34897 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with --version was: \"$ALT_VERSION_OUTPUT\"" >&5 34898 $as_echo "$as_me: The result from running with --version was: \"$ALT_VERSION_OUTPUT\"" >&6;} 34899 as_fn_error $? "A $TOOLCHAIN_TYPE compiler is required. Try setting --with-tools-dir." "$LINENO" 5 34900 fi 34901 # Remove usage instructions (if present), and 34902 # collapse compiler output into a single line 34903 COMPILER_VERSION_STRING=`$ECHO $COMPILER_VERSION_OUTPUT | \ 34904 $SED -e 's/ *[Uu]sage:.*//'` 34905 COMPILER_VERSION_NUMBER=`$ECHO $COMPILER_VERSION_OUTPUT | \ 34906 $SED -e "s/^.*[ ,\t]$COMPILER_NAME[ ,\t]\([1-9]\.[0-9][0-9]*\).*/\1/"` 34907 elif test "x$TOOLCHAIN_TYPE" = xxlc; then 34908 # xlc -qversion output typically looks like 34909 # IBM XL C/C++ for AIX, V11.1 (5724-X13) 34910 # Version: 11.01.0000.0015 34911 COMPILER_VERSION_OUTPUT=`$COMPILER -qversion 2>&1` 34912 # Check that this is likely to be the IBM XL C compiler. 34913 $ECHO "$COMPILER_VERSION_OUTPUT" | $GREP "IBM XL C" > /dev/null 34914 if test $? -ne 0; then 34915 ALT_VERSION_OUTPUT=`$COMPILER --version 2>&1` 34916 { $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 34917 $as_echo "$as_me: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required $TOOLCHAIN_TYPE compiler." >&6;} 34918 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with -qversion was: \"$COMPILER_VERSION_OUTPUT\"" >&5 34919 $as_echo "$as_me: The result from running with -qversion was: \"$COMPILER_VERSION_OUTPUT\"" >&6;} 34920 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with --version was: \"$ALT_VERSION_OUTPUT\"" >&5 34921 $as_echo "$as_me: The result from running with --version was: \"$ALT_VERSION_OUTPUT\"" >&6;} 34922 as_fn_error $? "A $TOOLCHAIN_TYPE compiler is required. Try setting --with-tools-dir." "$LINENO" 5 34923 fi 34924 # Collapse compiler output into a single line 34925 COMPILER_VERSION_STRING=`$ECHO $COMPILER_VERSION_OUTPUT` 34926 COMPILER_VERSION_NUMBER=`$ECHO $COMPILER_VERSION_OUTPUT | \ 34927 $SED -e 's/^.*, V\([1-9][0-9.]*\).*$/\1/'` 34928 elif test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 34929 # There is no specific version flag, but all output starts with a version string. 34930 # First line typically looks something like: 34931 # Microsoft (R) 32-bit C/C++ Optimizing Compiler Version 16.00.40219.01 for 80x86 34932 COMPILER_VERSION_OUTPUT=`$COMPILER 2>&1 | $HEAD -n 1 | $TR -d '\r'` 34933 # Check that this is likely to be Microsoft CL.EXE. 34934 $ECHO "$COMPILER_VERSION_OUTPUT" | $GREP "Microsoft.*Compiler" > /dev/null 34935 if test $? -ne 0; then 34936 { $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 34937 $as_echo "$as_me: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required $TOOLCHAIN_TYPE compiler." >&6;} 34938 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running it was: \"$COMPILER_VERSION_OUTPUT\"" >&5 34939 $as_echo "$as_me: The result from running it was: \"$COMPILER_VERSION_OUTPUT\"" >&6;} 34940 as_fn_error $? "A $TOOLCHAIN_TYPE compiler is required. Try setting --with-tools-dir." "$LINENO" 5 34941 fi 34942 # Collapse compiler output into a single line 34943 COMPILER_VERSION_STRING=`$ECHO $COMPILER_VERSION_OUTPUT` 34944 COMPILER_VERSION_NUMBER=`$ECHO $COMPILER_VERSION_OUTPUT | \ 34945 $SED -e 's/^.*ersion.\([1-9][0-9.]*\) .*$/\1/'` 34946 elif test "x$TOOLCHAIN_TYPE" = xgcc; then 34947 # gcc --version output typically looks like 34948 # gcc (Ubuntu/Linaro 4.8.1-10ubuntu9) 4.8.1 34949 # Copyright (C) 2013 Free Software Foundation, Inc. 34950 # This is free software; see the source for copying conditions. There is NO 34951 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 34952 COMPILER_VERSION_OUTPUT=`$COMPILER --version 2>&1` 34953 # Check that this is likely to be GCC. 34954 $ECHO "$COMPILER_VERSION_OUTPUT" | $GREP "Free Software Foundation" > /dev/null 34955 if test $? -ne 0; then 34956 { $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 34957 $as_echo "$as_me: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required $TOOLCHAIN_TYPE compiler." >&6;} 34958 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with --version was: \"$COMPILER_VERSION\"" >&5 34959 $as_echo "$as_me: The result from running with --version was: \"$COMPILER_VERSION\"" >&6;} 34960 as_fn_error $? "A $TOOLCHAIN_TYPE compiler is required. Try setting --with-tools-dir." "$LINENO" 5 34961 fi 34962 # Remove Copyright and legalese from version string, and 34963 # collapse into a single line 34964 COMPILER_VERSION_STRING=`$ECHO $COMPILER_VERSION_OUTPUT | \ 34965 $SED -e 's/ *Copyright .*//'` 34966 COMPILER_VERSION_NUMBER=`$ECHO $COMPILER_VERSION_OUTPUT | \ 34967 $SED -e 's/^.* \([1-9]\.[0-9.]*\)[^0-9.].*$/\1/'` 34968 elif test "x$TOOLCHAIN_TYPE" = xclang; then 34969 # clang --version output typically looks like 34970 # Apple LLVM version 5.0 (clang-500.2.79) (based on LLVM 3.3svn) 34971 # clang version 3.3 (tags/RELEASE_33/final) 34972 # or 34973 # Debian clang version 3.2-7ubuntu1 (tags/RELEASE_32/final) (based on LLVM 3.2) 34974 # Target: x86_64-pc-linux-gnu 34975 # Thread model: posix 34976 COMPILER_VERSION_OUTPUT=`$COMPILER --version 2>&1` 34977 # Check that this is likely to be clang 34978 $ECHO "$COMPILER_VERSION_OUTPUT" | $GREP "clang" > /dev/null 34979 if test $? -ne 0; then 34980 { $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 34981 $as_echo "$as_me: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required $TOOLCHAIN_TYPE compiler." >&6;} 34982 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with --version was: \"$COMPILER_VERSION_OUTPUT\"" >&5 34983 $as_echo "$as_me: The result from running with --version was: \"$COMPILER_VERSION_OUTPUT\"" >&6;} 34984 as_fn_error $? "A $TOOLCHAIN_TYPE compiler is required. Try setting --with-tools-dir." "$LINENO" 5 34985 fi 34986 # Collapse compiler output into a single line 34987 COMPILER_VERSION_STRING=`$ECHO $COMPILER_VERSION_OUTPUT` 34988 COMPILER_VERSION_NUMBER=`$ECHO $COMPILER_VERSION_OUTPUT | \ 34989 $SED -e 's/^.* version \([1-9][0-9.]*\).*$/\1/'` 34990 else 34991 as_fn_error $? "Unknown toolchain type $TOOLCHAIN_TYPE." "$LINENO" 5 34992 fi 34993 # This sets CC_VERSION_NUMBER or CXX_VERSION_NUMBER. (This comment is a grep marker) 34994 CXX_VERSION_NUMBER="$COMPILER_VERSION_NUMBER" 34995 # This sets CC_VERSION_STRING or CXX_VERSION_STRING. (This comment is a grep marker) 34996 CXX_VERSION_STRING="$COMPILER_VERSION_STRING" 34997 34998 { $as_echo "$as_me:${as_lineno-$LINENO}: Using $TOOLCHAIN_TYPE $COMPILER_NAME compiler version $COMPILER_VERSION_NUMBER [$COMPILER_VERSION_STRING]" >&5 34999 $as_echo "$as_me: Using $TOOLCHAIN_TYPE $COMPILER_NAME compiler version $COMPILER_VERSION_NUMBER [$COMPILER_VERSION_STRING]" >&6;} 35000 35001 35002 # Now that we have resolved CXX ourself, let autoconf have its go at it 35003 ac_ext=cpp 35004 ac_cpp='$CXXCPP $CPPFLAGS' 35005 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 35006 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 35007 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 35008 if test -z "$CXX"; then 35009 if test -n "$CCC"; then 35010 CXX=$CCC 35011 else 35012 if test -n "$ac_tool_prefix"; then 35013 for ac_prog in $CXX 35014 do 35015 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 35016 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 35017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 35018 $as_echo_n "checking for $ac_word... " >&6; } 35019 if ${ac_cv_prog_CXX+:} false; then : 35020 $as_echo_n "(cached) " >&6 35021 else 35022 if test -n "$CXX"; then 35023 ac_cv_prog_CXX="$CXX" # Let the user override the test. 35024 else 35025 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 35026 for as_dir in $PATH 35027 do 35028 IFS=$as_save_IFS 35029 test -z "$as_dir" && as_dir=. 35030 for ac_exec_ext in '' $ac_executable_extensions; do 35031 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 35032 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" 35033 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 35034 break 2 35035 fi 35036 done 35037 done 35038 IFS=$as_save_IFS 35039 35040 fi 35041 fi 35042 CXX=$ac_cv_prog_CXX 35043 if test -n "$CXX"; then 35044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 35045 $as_echo "$CXX" >&6; } 35046 else 35047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 35048 $as_echo "no" >&6; } 35049 fi 35050 35051 35052 test -n "$CXX" && break 35053 done 35054 fi 35055 if test -z "$CXX"; then 35056 ac_ct_CXX=$CXX 35057 for ac_prog in $CXX 35058 do 35059 # Extract the first word of "$ac_prog", so it can be a program name with args. 35060 set dummy $ac_prog; ac_word=$2 35061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 35062 $as_echo_n "checking for $ac_word... " >&6; } 35063 if ${ac_cv_prog_ac_ct_CXX+:} false; then : 35064 $as_echo_n "(cached) " >&6 35065 else 35066 if test -n "$ac_ct_CXX"; then 35067 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. 35068 else 35069 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 35070 for as_dir in $PATH 35071 do 35072 IFS=$as_save_IFS 35073 test -z "$as_dir" && as_dir=. 35074 for ac_exec_ext in '' $ac_executable_extensions; do 35075 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 35076 ac_cv_prog_ac_ct_CXX="$ac_prog" 35077 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 35078 break 2 35079 fi 35080 done 35081 done 35082 IFS=$as_save_IFS 35083 35084 fi 35085 fi 35086 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX 35087 if test -n "$ac_ct_CXX"; then 35088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 35089 $as_echo "$ac_ct_CXX" >&6; } 35090 else 35091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 35092 $as_echo "no" >&6; } 35093 fi 35094 35095 35096 test -n "$ac_ct_CXX" && break 35097 done 35098 35099 if test "x$ac_ct_CXX" = x; then 35100 CXX="g++" 35101 else 35102 case $cross_compiling:$ac_tool_warned in 35103 yes:) 35104 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 35105 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 35106 ac_tool_warned=yes ;; 35107 esac 35108 CXX=$ac_ct_CXX 35109 fi 35110 fi 35111 35112 fi 35113 fi 35114 # Provide some information about the compiler. 35115 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5 35116 set X $ac_compile 35117 ac_compiler=$2 35118 for ac_option in --version -v -V -qversion; do 35119 { { ac_try="$ac_compiler $ac_option >&5" 35120 case "(($ac_try" in 35121 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 35122 *) ac_try_echo=$ac_try;; 35123 esac 35124 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 35125 $as_echo "$ac_try_echo"; } >&5 35126 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 35127 ac_status=$? 35128 if test -s conftest.err; then 35129 sed '10a\ 35130 ... rest of stderr output deleted ... 35131 10q' conftest.err >conftest.er1 35132 cat conftest.er1 >&5 35133 fi 35134 rm -f conftest.er1 conftest.err 35135 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 35136 test $ac_status = 0; } 35137 done 35138 35139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5 35140 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; } 35141 if ${ac_cv_cxx_compiler_gnu+:} false; then : 35142 $as_echo_n "(cached) " >&6 35143 else 35144 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 35145 /* end confdefs.h. */ 35146 35147 int 35148 main () 35149 { 35150 #ifndef __GNUC__ 35151 choke me 35152 #endif 35153 35154 ; 35155 return 0; 35156 } 35157 _ACEOF 35158 if ac_fn_cxx_try_compile "$LINENO"; then : 35159 ac_compiler_gnu=yes 35160 else 35161 ac_compiler_gnu=no 35162 fi 35163 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 35164 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu 35165 35166 fi 35167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5 35168 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; } 35169 if test $ac_compiler_gnu = yes; then 35170 GXX=yes 35171 else 35172 GXX= 35173 fi 35174 ac_test_CXXFLAGS=${CXXFLAGS+set} 35175 ac_save_CXXFLAGS=$CXXFLAGS 35176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5 35177 $as_echo_n "checking whether $CXX accepts -g... " >&6; } 35178 if ${ac_cv_prog_cxx_g+:} false; then : 35179 $as_echo_n "(cached) " >&6 35180 else 35181 ac_save_cxx_werror_flag=$ac_cxx_werror_flag 35182 ac_cxx_werror_flag=yes 35183 ac_cv_prog_cxx_g=no 35184 CXXFLAGS="-g" 35185 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 35186 /* end confdefs.h. */ 35187 35188 int 35189 main () 35190 { 35191 35192 ; 35193 return 0; 35194 } 35195 _ACEOF 35196 if ac_fn_cxx_try_compile "$LINENO"; then : 35197 ac_cv_prog_cxx_g=yes 35198 else 35199 CXXFLAGS="" 35200 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 35201 /* end confdefs.h. */ 35202 35203 int 35204 main () 35205 { 35206 35207 ; 35208 return 0; 35209 } 35210 _ACEOF 35211 if ac_fn_cxx_try_compile "$LINENO"; then : 35212 35213 else 35214 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 35215 CXXFLAGS="-g" 35216 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 35217 /* end confdefs.h. */ 35218 35219 int 35220 main () 35221 { 35222 35223 ; 35224 return 0; 35225 } 35226 _ACEOF 35227 if ac_fn_cxx_try_compile "$LINENO"; then : 35228 ac_cv_prog_cxx_g=yes 35229 fi 35230 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 35231 fi 35232 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 35233 fi 35234 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 35235 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 35236 fi 35237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5 35238 $as_echo "$ac_cv_prog_cxx_g" >&6; } 35239 if test "$ac_test_CXXFLAGS" = set; then 35240 CXXFLAGS=$ac_save_CXXFLAGS 35241 elif test $ac_cv_prog_cxx_g = yes; then 35242 if test "$GXX" = yes; then 35243 CXXFLAGS="-g -O2" 35244 else 35245 CXXFLAGS="-g" 35246 fi 35247 else 35248 if test "$GXX" = yes; then 35249 CXXFLAGS="-O2" 35250 else 35251 CXXFLAGS= 35252 fi 35253 fi 35254 ac_ext=cpp 35255 ac_cpp='$CXXCPP $CPPFLAGS' 35256 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 35257 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 35258 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 35259 35260 35261 # This is the compiler version number on the form X.Y[.Z] 35262 35263 35264 35265 35266 if test "x$CC_VERSION_NUMBER" != "x$CXX_VERSION_NUMBER"; then 35267 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: C and C++ compiler have different version numbers, $CC_VERSION_NUMBER vs $CXX_VERSION_NUMBER." >&5 35268 $as_echo "$as_me: WARNING: C and C++ compiler have different version numbers, $CC_VERSION_NUMBER vs $CXX_VERSION_NUMBER." >&2;} 35269 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This typically indicates a broken setup, and is not supported" >&5 35270 $as_echo "$as_me: WARNING: This typically indicates a broken setup, and is not supported" >&2;} 35271 fi 35272 35273 # We only check CC_VERSION_NUMBER since we assume CXX_VERSION_NUMBER is equal. 35274 if [[ "[$]CC_VERSION_NUMBER" =~ (.*\.){4} ]] ; then 35275 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: C compiler version number has more than four parts (W.X.Y.Z): $CC_VERSION_NUMBER. Comparisons might be wrong." >&5 35276 $as_echo "$as_me: WARNING: C compiler version number has more than four parts (W.X.Y.Z): $CC_VERSION_NUMBER. Comparisons might be wrong." >&2;} 35277 fi 35278 35279 if [[ "[$]CC_VERSION_NUMBER" =~ [0-9]{6} ]] ; then 35280 { $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 35281 $as_echo "$as_me: WARNING: C compiler version number has a part larger than 99999: $CC_VERSION_NUMBER. Comparisons might be wrong." >&2;} 35282 fi 35283 35284 COMPARABLE_ACTUAL_VERSION=`$AWK -F. '{ printf("%05d%05d%05d%05d\n", $1, $2, $3, $4) }' <<< "$CC_VERSION_NUMBER"` 35285 35286 35287 if test "x$TOOLCHAIN_MINIMUM_VERSION" != x; then 35288 35289 35290 35291 35292 35293 35294 35295 35296 35297 35298 35299 35300 35301 35302 35303 35304 35305 35306 35307 35308 35309 35310 35311 35312 35313 35314 35315 35316 35317 35318 35319 35320 35321 35322 35323 35324 35325 35326 35327 35328 35329 35330 35331 35332 35333 35334 35335 35336 35337 # Execute function body 35338 35339 # Need to assign to a variable since m4 is blocked from modifying parts in []. 35340 REFERENCE_VERSION=$TOOLCHAIN_MINIMUM_VERSION 35341 35342 if [[ "$REFERENCE_VERSION" =~ (.*\.){4} ]] ; then 35343 as_fn_error $? "Internal error: Cannot compare to $TOOLCHAIN_MINIMUM_VERSION, only four parts (W.X.Y.Z) is supported" "$LINENO" 5 35344 fi 35345 35346 if [[ "$REFERENCE_VERSION" =~ [0-9]{6} ]] ; then 35347 as_fn_error $? "Internal error: Cannot compare to $TOOLCHAIN_MINIMUM_VERSION, only parts < 99999 is supported" "$LINENO" 5 35348 fi 35349 35350 # Version comparison method inspired by http://stackoverflow.com/a/24067243 35351 COMPARABLE_REFERENCE_VERSION=`$AWK -F. '{ printf("%05d%05d%05d%05d\n", $1, $2, $3, $4) }' <<< "$REFERENCE_VERSION"` 35352 35353 if test $COMPARABLE_ACTUAL_VERSION -ge $COMPARABLE_REFERENCE_VERSION ; then 35354 : 35355 35356 else 35357 : 35358 35359 { $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 35360 $as_echo "$as_me: WARNING: You are using $TOOLCHAIN_TYPE older than $TOOLCHAIN_MINIMUM_VERSION. This is not a supported configuration." >&2;} 35361 35362 35363 fi 35364 35365 35366 35367 35368 35369 35370 35371 35372 35373 35374 35375 35376 35377 35378 fi 35379 35380 # 35381 # Setup the preprocessor (CPP and CXXCPP) 35382 # 35383 ac_ext=c 35384 ac_cpp='$CPP $CPPFLAGS' 35385 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 35386 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 35387 ac_compiler_gnu=$ac_cv_c_compiler_gnu 35388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 35389 $as_echo_n "checking how to run the C preprocessor... " >&6; } 35390 # On Suns, sometimes $CPP names a directory. 35391 if test -n "$CPP" && test -d "$CPP"; then 35392 CPP= 35393 fi 35394 if test -z "$CPP"; then 35395 if ${ac_cv_prog_CPP+:} false; then : 35396 $as_echo_n "(cached) " >&6 35397 else 35398 # Double quotes because CPP needs to be expanded 35399 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 35400 do 35401 ac_preproc_ok=false 35402 for ac_c_preproc_warn_flag in '' yes 35403 do 35404 # Use a header file that comes with gcc, so configuring glibc 35405 # with a fresh cross-compiler works. 35406 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 35407 # <limits.h> exists even on freestanding compilers. 35408 # On the NeXT, cc -E runs the code through the compiler's parser, 35409 # not just through cpp. "Syntax error" is here to catch this case. 35410 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 35411 /* end confdefs.h. */ 35412 #ifdef __STDC__ 35413 # include <limits.h> 35414 #else 35415 # include <assert.h> 35416 #endif 35417 Syntax error 35418 _ACEOF 35419 if ac_fn_c_try_cpp "$LINENO"; then : 35420 35421 else 35422 # Broken: fails on valid input. 35423 continue 35424 fi 35425 rm -f conftest.err conftest.i conftest.$ac_ext 35426 35427 # OK, works on sane cases. Now check whether nonexistent headers 35428 # can be detected and how. 35429 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 35430 /* end confdefs.h. */ 35431 #include <ac_nonexistent.h> 35432 _ACEOF 35433 if ac_fn_c_try_cpp "$LINENO"; then : 35434 # Broken: success on invalid input. 35435 continue 35436 else 35437 # Passes both tests. 35438 ac_preproc_ok=: 35439 break 35440 fi 35441 rm -f conftest.err conftest.i conftest.$ac_ext 35442 35443 done 35444 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 35445 rm -f conftest.i conftest.err conftest.$ac_ext 35446 if $ac_preproc_ok; then : 35447 break 35448 fi 35449 35450 done 35451 ac_cv_prog_CPP=$CPP 35452 35453 fi 35454 CPP=$ac_cv_prog_CPP 35455 else 35456 ac_cv_prog_CPP=$CPP 35457 fi 35458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 35459 $as_echo "$CPP" >&6; } 35460 ac_preproc_ok=false 35461 for ac_c_preproc_warn_flag in '' yes 35462 do 35463 # Use a header file that comes with gcc, so configuring glibc 35464 # with a fresh cross-compiler works. 35465 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 35466 # <limits.h> exists even on freestanding compilers. 35467 # On the NeXT, cc -E runs the code through the compiler's parser, 35468 # not just through cpp. "Syntax error" is here to catch this case. 35469 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 35470 /* end confdefs.h. */ 35471 #ifdef __STDC__ 35472 # include <limits.h> 35473 #else 35474 # include <assert.h> 35475 #endif 35476 Syntax error 35477 _ACEOF 35478 if ac_fn_c_try_cpp "$LINENO"; then : 35479 35480 else 35481 # Broken: fails on valid input. 35482 continue 35483 fi 35484 rm -f conftest.err conftest.i conftest.$ac_ext 35485 35486 # OK, works on sane cases. Now check whether nonexistent headers 35487 # can be detected and how. 35488 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 35489 /* end confdefs.h. */ 35490 #include <ac_nonexistent.h> 35491 _ACEOF 35492 if ac_fn_c_try_cpp "$LINENO"; then : 35493 # Broken: success on invalid input. 35494 continue 35495 else 35496 # Passes both tests. 35497 ac_preproc_ok=: 35498 break 35499 fi 35500 rm -f conftest.err conftest.i conftest.$ac_ext 35501 35502 done 35503 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 35504 rm -f conftest.i conftest.err conftest.$ac_ext 35505 if $ac_preproc_ok; then : 35506 35507 else 35508 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 35509 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 35510 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 35511 See \`config.log' for more details" "$LINENO" 5; } 35512 fi 35513 35514 ac_ext=cpp 35515 ac_cpp='$CXXCPP $CPPFLAGS' 35516 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 35517 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 35518 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 35519 35520 35521 # Only process if variable expands to non-empty 35522 35523 if test "x$CPP" != x; then 35524 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 35525 35526 # First separate the path from the arguments. This will split at the first 35527 # space. 35528 complete="$CPP" 35529 path="${complete%% *}" 35530 tmp="$complete EOL" 35531 arguments="${tmp#* }" 35532 35533 # Input might be given as Windows format, start by converting to 35534 # unix format. 35535 new_path=`$CYGPATH -u "$path"` 35536 35537 # Now try to locate executable using which 35538 new_path=`$WHICH "$new_path" 2> /dev/null` 35539 # bat and cmd files are not always considered executable in cygwin causing which 35540 # to not find them 35541 if test "x$new_path" = x \ 35542 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 35543 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 35544 new_path=`$CYGPATH -u "$path"` 35545 fi 35546 if test "x$new_path" = x; then 35547 # Oops. Which didn't find the executable. 35548 # The splitting of arguments from the executable at a space might have been incorrect, 35549 # since paths with space are more likely in Windows. Give it another try with the whole 35550 # argument. 35551 path="$complete" 35552 arguments="EOL" 35553 new_path=`$CYGPATH -u "$path"` 35554 new_path=`$WHICH "$new_path" 2> /dev/null` 35555 # bat and cmd files are not always considered executable in cygwin causing which 35556 # to not find them 35557 if test "x$new_path" = x \ 35558 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 35559 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 35560 new_path=`$CYGPATH -u "$path"` 35561 fi 35562 if test "x$new_path" = x; then 35563 # It's still not found. Now this is an unrecoverable error. 35564 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CPP, which resolves as \"$complete\", is not found." >&5 35565 $as_echo "$as_me: The path of CPP, which resolves as \"$complete\", is not found." >&6;} 35566 has_space=`$ECHO "$complete" | $GREP " "` 35567 if test "x$has_space" != x; then 35568 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 35569 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 35570 fi 35571 as_fn_error $? "Cannot locate the the path of CPP" "$LINENO" 5 35572 fi 35573 fi 35574 35575 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 35576 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 35577 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 35578 # "foo.exe" is OK but "foo" is an error. 35579 # 35580 # This test is therefore slightly more accurate than "test -f" to check for file presence. 35581 # It is also a way to make sure we got the proper file name for the real test later on. 35582 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 35583 if test "x$test_shortpath" = x; then 35584 # Short path failed, file does not exist as specified. 35585 # Try adding .exe or .cmd 35586 if test -f "${new_path}.exe"; then 35587 input_to_shortpath="${new_path}.exe" 35588 elif test -f "${new_path}.cmd"; then 35589 input_to_shortpath="${new_path}.cmd" 35590 else 35591 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CPP, which resolves as \"$new_path\", is invalid." >&5 35592 $as_echo "$as_me: The path of CPP, which resolves as \"$new_path\", is invalid." >&6;} 35593 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 35594 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 35595 as_fn_error $? "Cannot locate the the path of CPP" "$LINENO" 5 35596 fi 35597 else 35598 input_to_shortpath="$new_path" 35599 fi 35600 35601 # Call helper function which possibly converts this using DOS-style short mode. 35602 # If so, the updated path is stored in $new_path. 35603 new_path="$input_to_shortpath" 35604 35605 input_path="$input_to_shortpath" 35606 # Check if we need to convert this using DOS-style short mode. If the path 35607 # contains just simple characters, use it. Otherwise (spaces, weird characters), 35608 # take no chances and rewrite it. 35609 # Note: m4 eats our [], so we need to use [ and ] instead. 35610 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 35611 if test "x$has_forbidden_chars" != x; then 35612 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 35613 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 35614 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 35615 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 35616 # Going to short mode and back again did indeed matter. Since short mode is 35617 # case insensitive, let's make it lowercase to improve readability. 35618 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 35619 # Now convert it back to Unix-style (cygpath) 35620 input_path=`$CYGPATH -u "$shortmode_path"` 35621 new_path="$input_path" 35622 fi 35623 fi 35624 35625 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 35626 if test "x$test_cygdrive_prefix" = x; then 35627 # As a simple fix, exclude /usr/bin since it's not a real path. 35628 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 35629 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 35630 # a path prefixed by /cygdrive for fixpath to work. 35631 new_path="$CYGWIN_ROOT_PATH$input_path" 35632 fi 35633 fi 35634 35635 # remove trailing .exe if any 35636 new_path="${new_path/%.exe/}" 35637 35638 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 35639 35640 # First separate the path from the arguments. This will split at the first 35641 # space. 35642 complete="$CPP" 35643 path="${complete%% *}" 35644 tmp="$complete EOL" 35645 arguments="${tmp#* }" 35646 35647 # Input might be given as Windows format, start by converting to 35648 # unix format. 35649 new_path="$path" 35650 35651 windows_path="$new_path" 35652 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 35653 unix_path=`$CYGPATH -u "$windows_path"` 35654 new_path="$unix_path" 35655 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 35656 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 35657 new_path="$unix_path" 35658 fi 35659 35660 35661 # Now try to locate executable using which 35662 new_path=`$WHICH "$new_path" 2> /dev/null` 35663 35664 if test "x$new_path" = x; then 35665 # Oops. Which didn't find the executable. 35666 # The splitting of arguments from the executable at a space might have been incorrect, 35667 # since paths with space are more likely in Windows. Give it another try with the whole 35668 # argument. 35669 path="$complete" 35670 arguments="EOL" 35671 new_path="$path" 35672 35673 windows_path="$new_path" 35674 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 35675 unix_path=`$CYGPATH -u "$windows_path"` 35676 new_path="$unix_path" 35677 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 35678 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 35679 new_path="$unix_path" 35680 fi 35681 35682 35683 new_path=`$WHICH "$new_path" 2> /dev/null` 35684 # bat and cmd files are not always considered executable in MSYS causing which 35685 # to not find them 35686 if test "x$new_path" = x \ 35687 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 35688 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 35689 new_path="$path" 35690 35691 windows_path="$new_path" 35692 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 35693 unix_path=`$CYGPATH -u "$windows_path"` 35694 new_path="$unix_path" 35695 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 35696 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 35697 new_path="$unix_path" 35698 fi 35699 35700 fi 35701 35702 if test "x$new_path" = x; then 35703 # It's still not found. Now this is an unrecoverable error. 35704 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CPP, which resolves as \"$complete\", is not found." >&5 35705 $as_echo "$as_me: The path of CPP, which resolves as \"$complete\", is not found." >&6;} 35706 has_space=`$ECHO "$complete" | $GREP " "` 35707 if test "x$has_space" != x; then 35708 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 35709 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 35710 fi 35711 as_fn_error $? "Cannot locate the the path of CPP" "$LINENO" 5 35712 fi 35713 fi 35714 35715 # Now new_path has a complete unix path to the binary 35716 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 35717 # Keep paths in /bin as-is, but remove trailing .exe if any 35718 new_path="${new_path/%.exe/}" 35719 # Do not save /bin paths to all_fixpath_prefixes! 35720 else 35721 # Not in mixed or Windows style, start by that. 35722 new_path=`cmd //c echo $new_path` 35723 35724 input_path="$new_path" 35725 # Check if we need to convert this using DOS-style short mode. If the path 35726 # contains just simple characters, use it. Otherwise (spaces, weird characters), 35727 # take no chances and rewrite it. 35728 # Note: m4 eats our [], so we need to use [ and ] instead. 35729 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 35730 if test "x$has_forbidden_chars" != x; then 35731 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 35732 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 35733 fi 35734 35735 # Output is in $new_path 35736 35737 windows_path="$new_path" 35738 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 35739 unix_path=`$CYGPATH -u "$windows_path"` 35740 new_path="$unix_path" 35741 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 35742 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 35743 new_path="$unix_path" 35744 fi 35745 35746 # remove trailing .exe if any 35747 new_path="${new_path/%.exe/}" 35748 35749 # Save the first 10 bytes of this path to the storage, so fixpath can work. 35750 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 35751 fi 35752 35753 else 35754 # We're on a unix platform. Hooray! :) 35755 # First separate the path from the arguments. This will split at the first 35756 # space. 35757 complete="$CPP" 35758 path="${complete%% *}" 35759 tmp="$complete EOL" 35760 arguments="${tmp#* }" 35761 35762 # Cannot rely on the command "which" here since it doesn't always work. 35763 is_absolute_path=`$ECHO "$path" | $GREP ^/` 35764 if test -z "$is_absolute_path"; then 35765 # Path to executable is not absolute. Find it. 35766 IFS_save="$IFS" 35767 IFS=: 35768 for p in $PATH; do 35769 if test -f "$p/$path" && test -x "$p/$path"; then 35770 new_path="$p/$path" 35771 break 35772 fi 35773 done 35774 IFS="$IFS_save" 35775 else 35776 # This is an absolute path, we can use it without further modifications. 35777 new_path="$path" 35778 fi 35779 35780 if test "x$new_path" = x; then 35781 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CPP, which resolves as \"$complete\", is not found." >&5 35782 $as_echo "$as_me: The path of CPP, which resolves as \"$complete\", is not found." >&6;} 35783 has_space=`$ECHO "$complete" | $GREP " "` 35784 if test "x$has_space" != x; then 35785 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 35786 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 35787 fi 35788 as_fn_error $? "Cannot locate the the path of CPP" "$LINENO" 5 35789 fi 35790 fi 35791 35792 # Now join together the path and the arguments once again 35793 if test "x$arguments" != xEOL; then 35794 new_complete="$new_path ${arguments% *}" 35795 else 35796 new_complete="$new_path" 35797 fi 35798 35799 if test "x$complete" != "x$new_complete"; then 35800 CPP="$new_complete" 35801 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting CPP to \"$new_complete\"" >&5 35802 $as_echo "$as_me: Rewriting CPP to \"$new_complete\"" >&6;} 35803 fi 35804 fi 35805 35806 ac_ext=cpp 35807 ac_cpp='$CXXCPP $CPPFLAGS' 35808 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 35809 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 35810 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 35811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5 35812 $as_echo_n "checking how to run the C++ preprocessor... " >&6; } 35813 if test -z "$CXXCPP"; then 35814 if ${ac_cv_prog_CXXCPP+:} false; then : 35815 $as_echo_n "(cached) " >&6 35816 else 35817 # Double quotes because CXXCPP needs to be expanded 35818 for CXXCPP in "$CXX -E" "/lib/cpp" 35819 do 35820 ac_preproc_ok=false 35821 for ac_cxx_preproc_warn_flag in '' yes 35822 do 35823 # Use a header file that comes with gcc, so configuring glibc 35824 # with a fresh cross-compiler works. 35825 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 35826 # <limits.h> exists even on freestanding compilers. 35827 # On the NeXT, cc -E runs the code through the compiler's parser, 35828 # not just through cpp. "Syntax error" is here to catch this case. 35829 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 35830 /* end confdefs.h. */ 35831 #ifdef __STDC__ 35832 # include <limits.h> 35833 #else 35834 # include <assert.h> 35835 #endif 35836 Syntax error 35837 _ACEOF 35838 if ac_fn_cxx_try_cpp "$LINENO"; then : 35839 35840 else 35841 # Broken: fails on valid input. 35842 continue 35843 fi 35844 rm -f conftest.err conftest.i conftest.$ac_ext 35845 35846 # OK, works on sane cases. Now check whether nonexistent headers 35847 # can be detected and how. 35848 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 35849 /* end confdefs.h. */ 35850 #include <ac_nonexistent.h> 35851 _ACEOF 35852 if ac_fn_cxx_try_cpp "$LINENO"; then : 35853 # Broken: success on invalid input. 35854 continue 35855 else 35856 # Passes both tests. 35857 ac_preproc_ok=: 35858 break 35859 fi 35860 rm -f conftest.err conftest.i conftest.$ac_ext 35861 35862 done 35863 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 35864 rm -f conftest.i conftest.err conftest.$ac_ext 35865 if $ac_preproc_ok; then : 35866 break 35867 fi 35868 35869 done 35870 ac_cv_prog_CXXCPP=$CXXCPP 35871 35872 fi 35873 CXXCPP=$ac_cv_prog_CXXCPP 35874 else 35875 ac_cv_prog_CXXCPP=$CXXCPP 35876 fi 35877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5 35878 $as_echo "$CXXCPP" >&6; } 35879 ac_preproc_ok=false 35880 for ac_cxx_preproc_warn_flag in '' yes 35881 do 35882 # Use a header file that comes with gcc, so configuring glibc 35883 # with a fresh cross-compiler works. 35884 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 35885 # <limits.h> exists even on freestanding compilers. 35886 # On the NeXT, cc -E runs the code through the compiler's parser, 35887 # not just through cpp. "Syntax error" is here to catch this case. 35888 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 35889 /* end confdefs.h. */ 35890 #ifdef __STDC__ 35891 # include <limits.h> 35892 #else 35893 # include <assert.h> 35894 #endif 35895 Syntax error 35896 _ACEOF 35897 if ac_fn_cxx_try_cpp "$LINENO"; then : 35898 35899 else 35900 # Broken: fails on valid input. 35901 continue 35902 fi 35903 rm -f conftest.err conftest.i conftest.$ac_ext 35904 35905 # OK, works on sane cases. Now check whether nonexistent headers 35906 # can be detected and how. 35907 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 35908 /* end confdefs.h. */ 35909 #include <ac_nonexistent.h> 35910 _ACEOF 35911 if ac_fn_cxx_try_cpp "$LINENO"; then : 35912 # Broken: success on invalid input. 35913 continue 35914 else 35915 # Passes both tests. 35916 ac_preproc_ok=: 35917 break 35918 fi 35919 rm -f conftest.err conftest.i conftest.$ac_ext 35920 35921 done 35922 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 35923 rm -f conftest.i conftest.err conftest.$ac_ext 35924 if $ac_preproc_ok; then : 35925 35926 else 35927 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 35928 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 35929 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check 35930 See \`config.log' for more details" "$LINENO" 5; } 35931 fi 35932 35933 ac_ext=cpp 35934 ac_cpp='$CXXCPP $CPPFLAGS' 35935 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 35936 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 35937 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 35938 35939 35940 # Only process if variable expands to non-empty 35941 35942 if test "x$CXXCPP" != x; then 35943 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 35944 35945 # First separate the path from the arguments. This will split at the first 35946 # space. 35947 complete="$CXXCPP" 35948 path="${complete%% *}" 35949 tmp="$complete EOL" 35950 arguments="${tmp#* }" 35951 35952 # Input might be given as Windows format, start by converting to 35953 # unix format. 35954 new_path=`$CYGPATH -u "$path"` 35955 35956 # Now try to locate executable using which 35957 new_path=`$WHICH "$new_path" 2> /dev/null` 35958 # bat and cmd files are not always considered executable in cygwin causing which 35959 # to not find them 35960 if test "x$new_path" = x \ 35961 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 35962 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 35963 new_path=`$CYGPATH -u "$path"` 35964 fi 35965 if test "x$new_path" = x; then 35966 # Oops. Which didn't find the executable. 35967 # The splitting of arguments from the executable at a space might have been incorrect, 35968 # since paths with space are more likely in Windows. Give it another try with the whole 35969 # argument. 35970 path="$complete" 35971 arguments="EOL" 35972 new_path=`$CYGPATH -u "$path"` 35973 new_path=`$WHICH "$new_path" 2> /dev/null` 35974 # bat and cmd files are not always considered executable in cygwin causing which 35975 # to not find them 35976 if test "x$new_path" = x \ 35977 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 35978 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 35979 new_path=`$CYGPATH -u "$path"` 35980 fi 35981 if test "x$new_path" = x; then 35982 # It's still not found. Now this is an unrecoverable error. 35983 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CXXCPP, which resolves as \"$complete\", is not found." >&5 35984 $as_echo "$as_me: The path of CXXCPP, which resolves as \"$complete\", is not found." >&6;} 35985 has_space=`$ECHO "$complete" | $GREP " "` 35986 if test "x$has_space" != x; then 35987 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 35988 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 35989 fi 35990 as_fn_error $? "Cannot locate the the path of CXXCPP" "$LINENO" 5 35991 fi 35992 fi 35993 35994 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 35995 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 35996 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 35997 # "foo.exe" is OK but "foo" is an error. 35998 # 35999 # This test is therefore slightly more accurate than "test -f" to check for file presence. 36000 # It is also a way to make sure we got the proper file name for the real test later on. 36001 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 36002 if test "x$test_shortpath" = x; then 36003 # Short path failed, file does not exist as specified. 36004 # Try adding .exe or .cmd 36005 if test -f "${new_path}.exe"; then 36006 input_to_shortpath="${new_path}.exe" 36007 elif test -f "${new_path}.cmd"; then 36008 input_to_shortpath="${new_path}.cmd" 36009 else 36010 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CXXCPP, which resolves as \"$new_path\", is invalid." >&5 36011 $as_echo "$as_me: The path of CXXCPP, which resolves as \"$new_path\", is invalid." >&6;} 36012 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 36013 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 36014 as_fn_error $? "Cannot locate the the path of CXXCPP" "$LINENO" 5 36015 fi 36016 else 36017 input_to_shortpath="$new_path" 36018 fi 36019 36020 # Call helper function which possibly converts this using DOS-style short mode. 36021 # If so, the updated path is stored in $new_path. 36022 new_path="$input_to_shortpath" 36023 36024 input_path="$input_to_shortpath" 36025 # Check if we need to convert this using DOS-style short mode. If the path 36026 # contains just simple characters, use it. Otherwise (spaces, weird characters), 36027 # take no chances and rewrite it. 36028 # Note: m4 eats our [], so we need to use [ and ] instead. 36029 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 36030 if test "x$has_forbidden_chars" != x; then 36031 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 36032 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 36033 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 36034 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 36035 # Going to short mode and back again did indeed matter. Since short mode is 36036 # case insensitive, let's make it lowercase to improve readability. 36037 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 36038 # Now convert it back to Unix-style (cygpath) 36039 input_path=`$CYGPATH -u "$shortmode_path"` 36040 new_path="$input_path" 36041 fi 36042 fi 36043 36044 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 36045 if test "x$test_cygdrive_prefix" = x; then 36046 # As a simple fix, exclude /usr/bin since it's not a real path. 36047 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 36048 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 36049 # a path prefixed by /cygdrive for fixpath to work. 36050 new_path="$CYGWIN_ROOT_PATH$input_path" 36051 fi 36052 fi 36053 36054 # remove trailing .exe if any 36055 new_path="${new_path/%.exe/}" 36056 36057 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 36058 36059 # First separate the path from the arguments. This will split at the first 36060 # space. 36061 complete="$CXXCPP" 36062 path="${complete%% *}" 36063 tmp="$complete EOL" 36064 arguments="${tmp#* }" 36065 36066 # Input might be given as Windows format, start by converting to 36067 # unix format. 36068 new_path="$path" 36069 36070 windows_path="$new_path" 36071 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 36072 unix_path=`$CYGPATH -u "$windows_path"` 36073 new_path="$unix_path" 36074 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 36075 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 36076 new_path="$unix_path" 36077 fi 36078 36079 36080 # Now try to locate executable using which 36081 new_path=`$WHICH "$new_path" 2> /dev/null` 36082 36083 if test "x$new_path" = x; then 36084 # Oops. Which didn't find the executable. 36085 # The splitting of arguments from the executable at a space might have been incorrect, 36086 # since paths with space are more likely in Windows. Give it another try with the whole 36087 # argument. 36088 path="$complete" 36089 arguments="EOL" 36090 new_path="$path" 36091 36092 windows_path="$new_path" 36093 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 36094 unix_path=`$CYGPATH -u "$windows_path"` 36095 new_path="$unix_path" 36096 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 36097 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 36098 new_path="$unix_path" 36099 fi 36100 36101 36102 new_path=`$WHICH "$new_path" 2> /dev/null` 36103 # bat and cmd files are not always considered executable in MSYS causing which 36104 # to not find them 36105 if test "x$new_path" = x \ 36106 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 36107 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 36108 new_path="$path" 36109 36110 windows_path="$new_path" 36111 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 36112 unix_path=`$CYGPATH -u "$windows_path"` 36113 new_path="$unix_path" 36114 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 36115 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 36116 new_path="$unix_path" 36117 fi 36118 36119 fi 36120 36121 if test "x$new_path" = x; then 36122 # It's still not found. Now this is an unrecoverable error. 36123 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CXXCPP, which resolves as \"$complete\", is not found." >&5 36124 $as_echo "$as_me: The path of CXXCPP, which resolves as \"$complete\", is not found." >&6;} 36125 has_space=`$ECHO "$complete" | $GREP " "` 36126 if test "x$has_space" != x; then 36127 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 36128 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 36129 fi 36130 as_fn_error $? "Cannot locate the the path of CXXCPP" "$LINENO" 5 36131 fi 36132 fi 36133 36134 # Now new_path has a complete unix path to the binary 36135 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 36136 # Keep paths in /bin as-is, but remove trailing .exe if any 36137 new_path="${new_path/%.exe/}" 36138 # Do not save /bin paths to all_fixpath_prefixes! 36139 else 36140 # Not in mixed or Windows style, start by that. 36141 new_path=`cmd //c echo $new_path` 36142 36143 input_path="$new_path" 36144 # Check if we need to convert this using DOS-style short mode. If the path 36145 # contains just simple characters, use it. Otherwise (spaces, weird characters), 36146 # take no chances and rewrite it. 36147 # Note: m4 eats our [], so we need to use [ and ] instead. 36148 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 36149 if test "x$has_forbidden_chars" != x; then 36150 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 36151 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 36152 fi 36153 36154 # Output is in $new_path 36155 36156 windows_path="$new_path" 36157 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 36158 unix_path=`$CYGPATH -u "$windows_path"` 36159 new_path="$unix_path" 36160 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 36161 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 36162 new_path="$unix_path" 36163 fi 36164 36165 # remove trailing .exe if any 36166 new_path="${new_path/%.exe/}" 36167 36168 # Save the first 10 bytes of this path to the storage, so fixpath can work. 36169 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 36170 fi 36171 36172 else 36173 # We're on a unix platform. Hooray! :) 36174 # First separate the path from the arguments. This will split at the first 36175 # space. 36176 complete="$CXXCPP" 36177 path="${complete%% *}" 36178 tmp="$complete EOL" 36179 arguments="${tmp#* }" 36180 36181 # Cannot rely on the command "which" here since it doesn't always work. 36182 is_absolute_path=`$ECHO "$path" | $GREP ^/` 36183 if test -z "$is_absolute_path"; then 36184 # Path to executable is not absolute. Find it. 36185 IFS_save="$IFS" 36186 IFS=: 36187 for p in $PATH; do 36188 if test -f "$p/$path" && test -x "$p/$path"; then 36189 new_path="$p/$path" 36190 break 36191 fi 36192 done 36193 IFS="$IFS_save" 36194 else 36195 # This is an absolute path, we can use it without further modifications. 36196 new_path="$path" 36197 fi 36198 36199 if test "x$new_path" = x; then 36200 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CXXCPP, which resolves as \"$complete\", is not found." >&5 36201 $as_echo "$as_me: The path of CXXCPP, which resolves as \"$complete\", is not found." >&6;} 36202 has_space=`$ECHO "$complete" | $GREP " "` 36203 if test "x$has_space" != x; then 36204 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 36205 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 36206 fi 36207 as_fn_error $? "Cannot locate the the path of CXXCPP" "$LINENO" 5 36208 fi 36209 fi 36210 36211 # Now join together the path and the arguments once again 36212 if test "x$arguments" != xEOL; then 36213 new_complete="$new_path ${arguments% *}" 36214 else 36215 new_complete="$new_path" 36216 fi 36217 36218 if test "x$complete" != "x$new_complete"; then 36219 CXXCPP="$new_complete" 36220 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting CXXCPP to \"$new_complete\"" >&5 36221 $as_echo "$as_me: Rewriting CXXCPP to \"$new_complete\"" >&6;} 36222 fi 36223 fi 36224 36225 36226 # 36227 # Setup the linker (LD) 36228 # 36229 if test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 36230 # In the Microsoft toolchain we have a separate LD command "link". 36231 # Make sure we reject /usr/bin/link (as determined in CYGWIN_LINK), which is 36232 # a cygwin program for something completely different. 36233 # Extract the first word of "link", so it can be a program name with args. 36234 set dummy link; ac_word=$2 36235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 36236 $as_echo_n "checking for $ac_word... " >&6; } 36237 if ${ac_cv_prog_LD+:} false; then : 36238 $as_echo_n "(cached) " >&6 36239 else 36240 if test -n "$LD"; then 36241 ac_cv_prog_LD="$LD" # Let the user override the test. 36242 else 36243 ac_prog_rejected=no 36244 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 36245 for as_dir in $PATH 36246 do 36247 IFS=$as_save_IFS 36248 test -z "$as_dir" && as_dir=. 36249 for ac_exec_ext in '' $ac_executable_extensions; do 36250 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 36251 if test "$as_dir/$ac_word$ac_exec_ext" = "$CYGWIN_LINK"; then 36252 ac_prog_rejected=yes 36253 continue 36254 fi 36255 ac_cv_prog_LD="link" 36256 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 36257 break 2 36258 fi 36259 done 36260 done 36261 IFS=$as_save_IFS 36262 36263 if test $ac_prog_rejected = yes; then 36264 # We found a bogon in the path, so make sure we never use it. 36265 set dummy $ac_cv_prog_LD 36266 shift 36267 if test $# != 0; then 36268 # We chose a different compiler from the bogus one. 36269 # However, it has the same basename, so the bogon will be chosen 36270 # first if we set LD to just the basename; use the full file name. 36271 shift 36272 ac_cv_prog_LD="$as_dir/$ac_word${1+' '}$@" 36273 fi 36274 fi 36275 fi 36276 fi 36277 LD=$ac_cv_prog_LD 36278 if test -n "$LD"; then 36279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 36280 $as_echo "$LD" >&6; } 36281 else 36282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 36283 $as_echo "no" >&6; } 36284 fi 36285 36286 36287 36288 # Only process if variable expands to non-empty 36289 36290 if test "x$LD" != x; then 36291 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 36292 36293 # First separate the path from the arguments. This will split at the first 36294 # space. 36295 complete="$LD" 36296 path="${complete%% *}" 36297 tmp="$complete EOL" 36298 arguments="${tmp#* }" 36299 36300 # Input might be given as Windows format, start by converting to 36301 # unix format. 36302 new_path=`$CYGPATH -u "$path"` 36303 36304 # Now try to locate executable using which 36305 new_path=`$WHICH "$new_path" 2> /dev/null` 36306 # bat and cmd files are not always considered executable in cygwin causing which 36307 # to not find them 36308 if test "x$new_path" = x \ 36309 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 36310 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 36311 new_path=`$CYGPATH -u "$path"` 36312 fi 36313 if test "x$new_path" = x; then 36314 # Oops. Which didn't find the executable. 36315 # The splitting of arguments from the executable at a space might have been incorrect, 36316 # since paths with space are more likely in Windows. Give it another try with the whole 36317 # argument. 36318 path="$complete" 36319 arguments="EOL" 36320 new_path=`$CYGPATH -u "$path"` 36321 new_path=`$WHICH "$new_path" 2> /dev/null` 36322 # bat and cmd files are not always considered executable in cygwin causing which 36323 # to not find them 36324 if test "x$new_path" = x \ 36325 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 36326 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 36327 new_path=`$CYGPATH -u "$path"` 36328 fi 36329 if test "x$new_path" = x; then 36330 # It's still not found. Now this is an unrecoverable error. 36331 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of LD, which resolves as \"$complete\", is not found." >&5 36332 $as_echo "$as_me: The path of LD, which resolves as \"$complete\", is not found." >&6;} 36333 has_space=`$ECHO "$complete" | $GREP " "` 36334 if test "x$has_space" != x; then 36335 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 36336 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 36337 fi 36338 as_fn_error $? "Cannot locate the the path of LD" "$LINENO" 5 36339 fi 36340 fi 36341 36342 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 36343 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 36344 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 36345 # "foo.exe" is OK but "foo" is an error. 36346 # 36347 # This test is therefore slightly more accurate than "test -f" to check for file presence. 36348 # It is also a way to make sure we got the proper file name for the real test later on. 36349 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 36350 if test "x$test_shortpath" = x; then 36351 # Short path failed, file does not exist as specified. 36352 # Try adding .exe or .cmd 36353 if test -f "${new_path}.exe"; then 36354 input_to_shortpath="${new_path}.exe" 36355 elif test -f "${new_path}.cmd"; then 36356 input_to_shortpath="${new_path}.cmd" 36357 else 36358 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of LD, which resolves as \"$new_path\", is invalid." >&5 36359 $as_echo "$as_me: The path of LD, which resolves as \"$new_path\", is invalid." >&6;} 36360 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 36361 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 36362 as_fn_error $? "Cannot locate the the path of LD" "$LINENO" 5 36363 fi 36364 else 36365 input_to_shortpath="$new_path" 36366 fi 36367 36368 # Call helper function which possibly converts this using DOS-style short mode. 36369 # If so, the updated path is stored in $new_path. 36370 new_path="$input_to_shortpath" 36371 36372 input_path="$input_to_shortpath" 36373 # Check if we need to convert this using DOS-style short mode. If the path 36374 # contains just simple characters, use it. Otherwise (spaces, weird characters), 36375 # take no chances and rewrite it. 36376 # Note: m4 eats our [], so we need to use [ and ] instead. 36377 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 36378 if test "x$has_forbidden_chars" != x; then 36379 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 36380 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 36381 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 36382 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 36383 # Going to short mode and back again did indeed matter. Since short mode is 36384 # case insensitive, let's make it lowercase to improve readability. 36385 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 36386 # Now convert it back to Unix-style (cygpath) 36387 input_path=`$CYGPATH -u "$shortmode_path"` 36388 new_path="$input_path" 36389 fi 36390 fi 36391 36392 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 36393 if test "x$test_cygdrive_prefix" = x; then 36394 # As a simple fix, exclude /usr/bin since it's not a real path. 36395 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 36396 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 36397 # a path prefixed by /cygdrive for fixpath to work. 36398 new_path="$CYGWIN_ROOT_PATH$input_path" 36399 fi 36400 fi 36401 36402 # remove trailing .exe if any 36403 new_path="${new_path/%.exe/}" 36404 36405 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 36406 36407 # First separate the path from the arguments. This will split at the first 36408 # space. 36409 complete="$LD" 36410 path="${complete%% *}" 36411 tmp="$complete EOL" 36412 arguments="${tmp#* }" 36413 36414 # Input might be given as Windows format, start by converting to 36415 # unix format. 36416 new_path="$path" 36417 36418 windows_path="$new_path" 36419 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 36420 unix_path=`$CYGPATH -u "$windows_path"` 36421 new_path="$unix_path" 36422 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 36423 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 36424 new_path="$unix_path" 36425 fi 36426 36427 36428 # Now try to locate executable using which 36429 new_path=`$WHICH "$new_path" 2> /dev/null` 36430 36431 if test "x$new_path" = x; then 36432 # Oops. Which didn't find the executable. 36433 # The splitting of arguments from the executable at a space might have been incorrect, 36434 # since paths with space are more likely in Windows. Give it another try with the whole 36435 # argument. 36436 path="$complete" 36437 arguments="EOL" 36438 new_path="$path" 36439 36440 windows_path="$new_path" 36441 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 36442 unix_path=`$CYGPATH -u "$windows_path"` 36443 new_path="$unix_path" 36444 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 36445 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 36446 new_path="$unix_path" 36447 fi 36448 36449 36450 new_path=`$WHICH "$new_path" 2> /dev/null` 36451 # bat and cmd files are not always considered executable in MSYS causing which 36452 # to not find them 36453 if test "x$new_path" = x \ 36454 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 36455 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 36456 new_path="$path" 36457 36458 windows_path="$new_path" 36459 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 36460 unix_path=`$CYGPATH -u "$windows_path"` 36461 new_path="$unix_path" 36462 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 36463 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 36464 new_path="$unix_path" 36465 fi 36466 36467 fi 36468 36469 if test "x$new_path" = x; then 36470 # It's still not found. Now this is an unrecoverable error. 36471 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of LD, which resolves as \"$complete\", is not found." >&5 36472 $as_echo "$as_me: The path of LD, which resolves as \"$complete\", is not found." >&6;} 36473 has_space=`$ECHO "$complete" | $GREP " "` 36474 if test "x$has_space" != x; then 36475 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 36476 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 36477 fi 36478 as_fn_error $? "Cannot locate the the path of LD" "$LINENO" 5 36479 fi 36480 fi 36481 36482 # Now new_path has a complete unix path to the binary 36483 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 36484 # Keep paths in /bin as-is, but remove trailing .exe if any 36485 new_path="${new_path/%.exe/}" 36486 # Do not save /bin paths to all_fixpath_prefixes! 36487 else 36488 # Not in mixed or Windows style, start by that. 36489 new_path=`cmd //c echo $new_path` 36490 36491 input_path="$new_path" 36492 # Check if we need to convert this using DOS-style short mode. If the path 36493 # contains just simple characters, use it. Otherwise (spaces, weird characters), 36494 # take no chances and rewrite it. 36495 # Note: m4 eats our [], so we need to use [ and ] instead. 36496 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 36497 if test "x$has_forbidden_chars" != x; then 36498 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 36499 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 36500 fi 36501 36502 # Output is in $new_path 36503 36504 windows_path="$new_path" 36505 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 36506 unix_path=`$CYGPATH -u "$windows_path"` 36507 new_path="$unix_path" 36508 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 36509 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 36510 new_path="$unix_path" 36511 fi 36512 36513 # remove trailing .exe if any 36514 new_path="${new_path/%.exe/}" 36515 36516 # Save the first 10 bytes of this path to the storage, so fixpath can work. 36517 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 36518 fi 36519 36520 else 36521 # We're on a unix platform. Hooray! :) 36522 # First separate the path from the arguments. This will split at the first 36523 # space. 36524 complete="$LD" 36525 path="${complete%% *}" 36526 tmp="$complete EOL" 36527 arguments="${tmp#* }" 36528 36529 # Cannot rely on the command "which" here since it doesn't always work. 36530 is_absolute_path=`$ECHO "$path" | $GREP ^/` 36531 if test -z "$is_absolute_path"; then 36532 # Path to executable is not absolute. Find it. 36533 IFS_save="$IFS" 36534 IFS=: 36535 for p in $PATH; do 36536 if test -f "$p/$path" && test -x "$p/$path"; then 36537 new_path="$p/$path" 36538 break 36539 fi 36540 done 36541 IFS="$IFS_save" 36542 else 36543 # This is an absolute path, we can use it without further modifications. 36544 new_path="$path" 36545 fi 36546 36547 if test "x$new_path" = x; then 36548 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of LD, which resolves as \"$complete\", is not found." >&5 36549 $as_echo "$as_me: The path of LD, which resolves as \"$complete\", is not found." >&6;} 36550 has_space=`$ECHO "$complete" | $GREP " "` 36551 if test "x$has_space" != x; then 36552 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 36553 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 36554 fi 36555 as_fn_error $? "Cannot locate the the path of LD" "$LINENO" 5 36556 fi 36557 fi 36558 36559 # Now join together the path and the arguments once again 36560 if test "x$arguments" != xEOL; then 36561 new_complete="$new_path ${arguments% *}" 36562 else 36563 new_complete="$new_path" 36564 fi 36565 36566 if test "x$complete" != "x$new_complete"; then 36567 LD="$new_complete" 36568 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting LD to \"$new_complete\"" >&5 36569 $as_echo "$as_me: Rewriting LD to \"$new_complete\"" >&6;} 36570 fi 36571 fi 36572 36573 # Verify that we indeed succeeded with this trick. 36574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the found link.exe is actually the Visual Studio linker" >&5 36575 $as_echo_n "checking if the found link.exe is actually the Visual Studio linker... " >&6; } 36576 "$LD" --version > /dev/null 36577 if test $? -eq 0 ; then 36578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 36579 $as_echo "no" >&6; } 36580 as_fn_error $? "This is the Cygwin link tool. Please check your PATH and rerun configure." "$LINENO" 5 36581 else 36582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 36583 $as_echo "yes" >&6; } 36584 fi 36585 LDCXX="$LD" 36586 else 36587 # All other toolchains use the compiler to link. 36588 LD="$CC" 36589 LDCXX="$CXX" 36590 fi 36591 36592 # FIXME: it should be CXXLD, according to standard (cf CXXCPP) 36593 36594 36595 # 36596 # Setup the assembler (AS) 36597 # 36598 if test "x$OPENJDK_TARGET_OS" = xsolaris; then 36599 36600 36601 # Publish this variable in the help. 36602 36603 36604 if [ -z "${AS+x}" ]; then 36605 # The variable is not set by user, try to locate tool using the code snippet 36606 for ac_prog in as 36607 do 36608 # Extract the first word of "$ac_prog", so it can be a program name with args. 36609 set dummy $ac_prog; ac_word=$2 36610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 36611 $as_echo_n "checking for $ac_word... " >&6; } 36612 if ${ac_cv_path_AS+:} false; then : 36613 $as_echo_n "(cached) " >&6 36614 else 36615 case $AS in 36616 [\\/]* | ?:[\\/]*) 36617 ac_cv_path_AS="$AS" # Let the user override the test with a path. 36618 ;; 36619 *) 36620 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 36621 for as_dir in $PATH 36622 do 36623 IFS=$as_save_IFS 36624 test -z "$as_dir" && as_dir=. 36625 for ac_exec_ext in '' $ac_executable_extensions; do 36626 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 36627 ac_cv_path_AS="$as_dir/$ac_word$ac_exec_ext" 36628 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 36629 break 2 36630 fi 36631 done 36632 done 36633 IFS=$as_save_IFS 36634 36635 ;; 36636 esac 36637 fi 36638 AS=$ac_cv_path_AS 36639 if test -n "$AS"; then 36640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5 36641 $as_echo "$AS" >&6; } 36642 else 36643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 36644 $as_echo "no" >&6; } 36645 fi 36646 36647 36648 test -n "$AS" && break 36649 done 36650 36651 else 36652 # The variable is set, but is it from the command line or the environment? 36653 36654 # Try to remove the string !AS! from our list. 36655 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!AS!/} 36656 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 36657 # If it failed, the variable was not from the command line. Ignore it, 36658 # but warn the user (except for BASH, which is always set by the calling BASH). 36659 if test "xAS" != xBASH; then 36660 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of AS from the environment. Use command line variables instead." >&5 36661 $as_echo "$as_me: WARNING: Ignoring value of AS from the environment. Use command line variables instead." >&2;} 36662 fi 36663 # Try to locate tool using the code snippet 36664 for ac_prog in as 36665 do 36666 # Extract the first word of "$ac_prog", so it can be a program name with args. 36667 set dummy $ac_prog; ac_word=$2 36668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 36669 $as_echo_n "checking for $ac_word... " >&6; } 36670 if ${ac_cv_path_AS+:} false; then : 36671 $as_echo_n "(cached) " >&6 36672 else 36673 case $AS in 36674 [\\/]* | ?:[\\/]*) 36675 ac_cv_path_AS="$AS" # Let the user override the test with a path. 36676 ;; 36677 *) 36678 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 36679 for as_dir in $PATH 36680 do 36681 IFS=$as_save_IFS 36682 test -z "$as_dir" && as_dir=. 36683 for ac_exec_ext in '' $ac_executable_extensions; do 36684 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 36685 ac_cv_path_AS="$as_dir/$ac_word$ac_exec_ext" 36686 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 36687 break 2 36688 fi 36689 done 36690 done 36691 IFS=$as_save_IFS 36692 36693 ;; 36694 esac 36695 fi 36696 AS=$ac_cv_path_AS 36697 if test -n "$AS"; then 36698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5 36699 $as_echo "$AS" >&6; } 36700 else 36701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 36702 $as_echo "no" >&6; } 36703 fi 36704 36705 36706 test -n "$AS" && break 36707 done 36708 36709 else 36710 # If it succeeded, then it was overridden by the user. We will use it 36711 # for the tool. 36712 36713 # First remove it from the list of overridden variables, so we can test 36714 # for unknown variables in the end. 36715 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 36716 36717 # Check if we try to supply an empty value 36718 if test "x$AS" = x; then 36719 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool AS= (no value)" >&5 36720 $as_echo "$as_me: Setting user supplied tool AS= (no value)" >&6;} 36721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AS" >&5 36722 $as_echo_n "checking for AS... " >&6; } 36723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 36724 $as_echo "disabled" >&6; } 36725 else 36726 # Check if the provided tool contains a complete path. 36727 tool_specified="$AS" 36728 tool_basename="${tool_specified##*/}" 36729 if test "x$tool_basename" = "x$tool_specified"; then 36730 # A command without a complete path is provided, search $PATH. 36731 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool AS=$tool_basename" >&5 36732 $as_echo "$as_me: Will search for user supplied tool AS=$tool_basename" >&6;} 36733 # Extract the first word of "$tool_basename", so it can be a program name with args. 36734 set dummy $tool_basename; ac_word=$2 36735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 36736 $as_echo_n "checking for $ac_word... " >&6; } 36737 if ${ac_cv_path_AS+:} false; then : 36738 $as_echo_n "(cached) " >&6 36739 else 36740 case $AS in 36741 [\\/]* | ?:[\\/]*) 36742 ac_cv_path_AS="$AS" # Let the user override the test with a path. 36743 ;; 36744 *) 36745 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 36746 for as_dir in $PATH 36747 do 36748 IFS=$as_save_IFS 36749 test -z "$as_dir" && as_dir=. 36750 for ac_exec_ext in '' $ac_executable_extensions; do 36751 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 36752 ac_cv_path_AS="$as_dir/$ac_word$ac_exec_ext" 36753 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 36754 break 2 36755 fi 36756 done 36757 done 36758 IFS=$as_save_IFS 36759 36760 ;; 36761 esac 36762 fi 36763 AS=$ac_cv_path_AS 36764 if test -n "$AS"; then 36765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5 36766 $as_echo "$AS" >&6; } 36767 else 36768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 36769 $as_echo "no" >&6; } 36770 fi 36771 36772 36773 if test "x$AS" = x; then 36774 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 36775 fi 36776 else 36777 # Otherwise we believe it is a complete path. Use it as it is. 36778 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool AS=$tool_specified" >&5 36779 $as_echo "$as_me: Will use user supplied tool AS=$tool_specified" >&6;} 36780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AS" >&5 36781 $as_echo_n "checking for AS... " >&6; } 36782 if test ! -x "$tool_specified"; then 36783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 36784 $as_echo "not found" >&6; } 36785 as_fn_error $? "User supplied tool AS=$tool_specified does not exist or is not executable" "$LINENO" 5 36786 fi 36787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 36788 $as_echo "$tool_specified" >&6; } 36789 fi 36790 fi 36791 fi 36792 36793 fi 36794 36795 36796 36797 # Only process if variable expands to non-empty 36798 36799 if test "x$AS" != x; then 36800 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 36801 36802 # First separate the path from the arguments. This will split at the first 36803 # space. 36804 complete="$AS" 36805 path="${complete%% *}" 36806 tmp="$complete EOL" 36807 arguments="${tmp#* }" 36808 36809 # Input might be given as Windows format, start by converting to 36810 # unix format. 36811 new_path=`$CYGPATH -u "$path"` 36812 36813 # Now try to locate executable using which 36814 new_path=`$WHICH "$new_path" 2> /dev/null` 36815 # bat and cmd files are not always considered executable in cygwin causing which 36816 # to not find them 36817 if test "x$new_path" = x \ 36818 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 36819 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 36820 new_path=`$CYGPATH -u "$path"` 36821 fi 36822 if test "x$new_path" = x; then 36823 # Oops. Which didn't find the executable. 36824 # The splitting of arguments from the executable at a space might have been incorrect, 36825 # since paths with space are more likely in Windows. Give it another try with the whole 36826 # argument. 36827 path="$complete" 36828 arguments="EOL" 36829 new_path=`$CYGPATH -u "$path"` 36830 new_path=`$WHICH "$new_path" 2> /dev/null` 36831 # bat and cmd files are not always considered executable in cygwin causing which 36832 # to not find them 36833 if test "x$new_path" = x \ 36834 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 36835 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 36836 new_path=`$CYGPATH -u "$path"` 36837 fi 36838 if test "x$new_path" = x; then 36839 # It's still not found. Now this is an unrecoverable error. 36840 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of AS, which resolves as \"$complete\", is not found." >&5 36841 $as_echo "$as_me: The path of AS, which resolves as \"$complete\", is not found." >&6;} 36842 has_space=`$ECHO "$complete" | $GREP " "` 36843 if test "x$has_space" != x; then 36844 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 36845 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 36846 fi 36847 as_fn_error $? "Cannot locate the the path of AS" "$LINENO" 5 36848 fi 36849 fi 36850 36851 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 36852 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 36853 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 36854 # "foo.exe" is OK but "foo" is an error. 36855 # 36856 # This test is therefore slightly more accurate than "test -f" to check for file presence. 36857 # It is also a way to make sure we got the proper file name for the real test later on. 36858 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 36859 if test "x$test_shortpath" = x; then 36860 # Short path failed, file does not exist as specified. 36861 # Try adding .exe or .cmd 36862 if test -f "${new_path}.exe"; then 36863 input_to_shortpath="${new_path}.exe" 36864 elif test -f "${new_path}.cmd"; then 36865 input_to_shortpath="${new_path}.cmd" 36866 else 36867 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of AS, which resolves as \"$new_path\", is invalid." >&5 36868 $as_echo "$as_me: The path of AS, which resolves as \"$new_path\", is invalid." >&6;} 36869 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 36870 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 36871 as_fn_error $? "Cannot locate the the path of AS" "$LINENO" 5 36872 fi 36873 else 36874 input_to_shortpath="$new_path" 36875 fi 36876 36877 # Call helper function which possibly converts this using DOS-style short mode. 36878 # If so, the updated path is stored in $new_path. 36879 new_path="$input_to_shortpath" 36880 36881 input_path="$input_to_shortpath" 36882 # Check if we need to convert this using DOS-style short mode. If the path 36883 # contains just simple characters, use it. Otherwise (spaces, weird characters), 36884 # take no chances and rewrite it. 36885 # Note: m4 eats our [], so we need to use [ and ] instead. 36886 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 36887 if test "x$has_forbidden_chars" != x; then 36888 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 36889 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 36890 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 36891 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 36892 # Going to short mode and back again did indeed matter. Since short mode is 36893 # case insensitive, let's make it lowercase to improve readability. 36894 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 36895 # Now convert it back to Unix-style (cygpath) 36896 input_path=`$CYGPATH -u "$shortmode_path"` 36897 new_path="$input_path" 36898 fi 36899 fi 36900 36901 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 36902 if test "x$test_cygdrive_prefix" = x; then 36903 # As a simple fix, exclude /usr/bin since it's not a real path. 36904 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 36905 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 36906 # a path prefixed by /cygdrive for fixpath to work. 36907 new_path="$CYGWIN_ROOT_PATH$input_path" 36908 fi 36909 fi 36910 36911 # remove trailing .exe if any 36912 new_path="${new_path/%.exe/}" 36913 36914 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 36915 36916 # First separate the path from the arguments. This will split at the first 36917 # space. 36918 complete="$AS" 36919 path="${complete%% *}" 36920 tmp="$complete EOL" 36921 arguments="${tmp#* }" 36922 36923 # Input might be given as Windows format, start by converting to 36924 # unix format. 36925 new_path="$path" 36926 36927 windows_path="$new_path" 36928 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 36929 unix_path=`$CYGPATH -u "$windows_path"` 36930 new_path="$unix_path" 36931 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 36932 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 36933 new_path="$unix_path" 36934 fi 36935 36936 36937 # Now try to locate executable using which 36938 new_path=`$WHICH "$new_path" 2> /dev/null` 36939 36940 if test "x$new_path" = x; then 36941 # Oops. Which didn't find the executable. 36942 # The splitting of arguments from the executable at a space might have been incorrect, 36943 # since paths with space are more likely in Windows. Give it another try with the whole 36944 # argument. 36945 path="$complete" 36946 arguments="EOL" 36947 new_path="$path" 36948 36949 windows_path="$new_path" 36950 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 36951 unix_path=`$CYGPATH -u "$windows_path"` 36952 new_path="$unix_path" 36953 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 36954 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 36955 new_path="$unix_path" 36956 fi 36957 36958 36959 new_path=`$WHICH "$new_path" 2> /dev/null` 36960 # bat and cmd files are not always considered executable in MSYS causing which 36961 # to not find them 36962 if test "x$new_path" = x \ 36963 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 36964 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 36965 new_path="$path" 36966 36967 windows_path="$new_path" 36968 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 36969 unix_path=`$CYGPATH -u "$windows_path"` 36970 new_path="$unix_path" 36971 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 36972 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 36973 new_path="$unix_path" 36974 fi 36975 36976 fi 36977 36978 if test "x$new_path" = x; then 36979 # It's still not found. Now this is an unrecoverable error. 36980 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of AS, which resolves as \"$complete\", is not found." >&5 36981 $as_echo "$as_me: The path of AS, which resolves as \"$complete\", is not found." >&6;} 36982 has_space=`$ECHO "$complete" | $GREP " "` 36983 if test "x$has_space" != x; then 36984 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 36985 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 36986 fi 36987 as_fn_error $? "Cannot locate the the path of AS" "$LINENO" 5 36988 fi 36989 fi 36990 36991 # Now new_path has a complete unix path to the binary 36992 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 36993 # Keep paths in /bin as-is, but remove trailing .exe if any 36994 new_path="${new_path/%.exe/}" 36995 # Do not save /bin paths to all_fixpath_prefixes! 36996 else 36997 # Not in mixed or Windows style, start by that. 36998 new_path=`cmd //c echo $new_path` 36999 37000 input_path="$new_path" 37001 # Check if we need to convert this using DOS-style short mode. If the path 37002 # contains just simple characters, use it. Otherwise (spaces, weird characters), 37003 # take no chances and rewrite it. 37004 # Note: m4 eats our [], so we need to use [ and ] instead. 37005 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 37006 if test "x$has_forbidden_chars" != x; then 37007 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 37008 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 37009 fi 37010 37011 # Output is in $new_path 37012 37013 windows_path="$new_path" 37014 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 37015 unix_path=`$CYGPATH -u "$windows_path"` 37016 new_path="$unix_path" 37017 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 37018 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 37019 new_path="$unix_path" 37020 fi 37021 37022 # remove trailing .exe if any 37023 new_path="${new_path/%.exe/}" 37024 37025 # Save the first 10 bytes of this path to the storage, so fixpath can work. 37026 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 37027 fi 37028 37029 else 37030 # We're on a unix platform. Hooray! :) 37031 # First separate the path from the arguments. This will split at the first 37032 # space. 37033 complete="$AS" 37034 path="${complete%% *}" 37035 tmp="$complete EOL" 37036 arguments="${tmp#* }" 37037 37038 # Cannot rely on the command "which" here since it doesn't always work. 37039 is_absolute_path=`$ECHO "$path" | $GREP ^/` 37040 if test -z "$is_absolute_path"; then 37041 # Path to executable is not absolute. Find it. 37042 IFS_save="$IFS" 37043 IFS=: 37044 for p in $PATH; do 37045 if test -f "$p/$path" && test -x "$p/$path"; then 37046 new_path="$p/$path" 37047 break 37048 fi 37049 done 37050 IFS="$IFS_save" 37051 else 37052 # This is an absolute path, we can use it without further modifications. 37053 new_path="$path" 37054 fi 37055 37056 if test "x$new_path" = x; then 37057 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of AS, which resolves as \"$complete\", is not found." >&5 37058 $as_echo "$as_me: The path of AS, which resolves as \"$complete\", is not found." >&6;} 37059 has_space=`$ECHO "$complete" | $GREP " "` 37060 if test "x$has_space" != x; then 37061 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 37062 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 37063 fi 37064 as_fn_error $? "Cannot locate the the path of AS" "$LINENO" 5 37065 fi 37066 fi 37067 37068 # Now join together the path and the arguments once again 37069 if test "x$arguments" != xEOL; then 37070 new_complete="$new_path ${arguments% *}" 37071 else 37072 new_complete="$new_path" 37073 fi 37074 37075 if test "x$complete" != "x$new_complete"; then 37076 AS="$new_complete" 37077 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting AS to \"$new_complete\"" >&5 37078 $as_echo "$as_me: Rewriting AS to \"$new_complete\"" >&6;} 37079 fi 37080 fi 37081 37082 if test "x$AS" = x; then 37083 as_fn_error $? "Solaris assembler (as) is required. Please install via \"pkg install pkg:/developer/assembler\"." "$LINENO" 5 37084 fi 37085 else 37086 # FIXME: is this correct for microsoft? 37087 AS="$CC -c" 37088 fi 37089 37090 37091 # 37092 # Setup the archiver (AR) 37093 # 37094 if test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 37095 # The corresponding ar tool is lib.exe (used to create static libraries) 37096 # Extract the first word of "lib", so it can be a program name with args. 37097 set dummy lib; ac_word=$2 37098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 37099 $as_echo_n "checking for $ac_word... " >&6; } 37100 if ${ac_cv_prog_AR+:} false; then : 37101 $as_echo_n "(cached) " >&6 37102 else 37103 if test -n "$AR"; then 37104 ac_cv_prog_AR="$AR" # Let the user override the test. 37105 else 37106 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 37107 for as_dir in $PATH 37108 do 37109 IFS=$as_save_IFS 37110 test -z "$as_dir" && as_dir=. 37111 for ac_exec_ext in '' $ac_executable_extensions; do 37112 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 37113 ac_cv_prog_AR="lib" 37114 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 37115 break 2 37116 fi 37117 done 37118 done 37119 IFS=$as_save_IFS 37120 37121 fi 37122 fi 37123 AR=$ac_cv_prog_AR 37124 if test -n "$AR"; then 37125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 37126 $as_echo "$AR" >&6; } 37127 else 37128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 37129 $as_echo "no" >&6; } 37130 fi 37131 37132 37133 elif test "x$TOOLCHAIN_TYPE" = xgcc; then 37134 37135 37136 # Publish this variable in the help. 37137 37138 37139 if [ -z "${AR+x}" ]; then 37140 # The variable is not set by user, try to locate tool using the code snippet 37141 if test -n "$ac_tool_prefix"; then 37142 for ac_prog in ar gcc-ar 37143 do 37144 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 37145 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 37146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 37147 $as_echo_n "checking for $ac_word... " >&6; } 37148 if ${ac_cv_prog_AR+:} false; then : 37149 $as_echo_n "(cached) " >&6 37150 else 37151 if test -n "$AR"; then 37152 ac_cv_prog_AR="$AR" # Let the user override the test. 37153 else 37154 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 37155 for as_dir in $PATH 37156 do 37157 IFS=$as_save_IFS 37158 test -z "$as_dir" && as_dir=. 37159 for ac_exec_ext in '' $ac_executable_extensions; do 37160 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 37161 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 37162 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 37163 break 2 37164 fi 37165 done 37166 done 37167 IFS=$as_save_IFS 37168 37169 fi 37170 fi 37171 AR=$ac_cv_prog_AR 37172 if test -n "$AR"; then 37173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 37174 $as_echo "$AR" >&6; } 37175 else 37176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 37177 $as_echo "no" >&6; } 37178 fi 37179 37180 37181 test -n "$AR" && break 37182 done 37183 fi 37184 if test -z "$AR"; then 37185 ac_ct_AR=$AR 37186 for ac_prog in ar gcc-ar 37187 do 37188 # Extract the first word of "$ac_prog", so it can be a program name with args. 37189 set dummy $ac_prog; ac_word=$2 37190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 37191 $as_echo_n "checking for $ac_word... " >&6; } 37192 if ${ac_cv_prog_ac_ct_AR+:} false; then : 37193 $as_echo_n "(cached) " >&6 37194 else 37195 if test -n "$ac_ct_AR"; then 37196 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 37197 else 37198 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 37199 for as_dir in $PATH 37200 do 37201 IFS=$as_save_IFS 37202 test -z "$as_dir" && as_dir=. 37203 for ac_exec_ext in '' $ac_executable_extensions; do 37204 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 37205 ac_cv_prog_ac_ct_AR="$ac_prog" 37206 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 37207 break 2 37208 fi 37209 done 37210 done 37211 IFS=$as_save_IFS 37212 37213 fi 37214 fi 37215 ac_ct_AR=$ac_cv_prog_ac_ct_AR 37216 if test -n "$ac_ct_AR"; then 37217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 37218 $as_echo "$ac_ct_AR" >&6; } 37219 else 37220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 37221 $as_echo "no" >&6; } 37222 fi 37223 37224 37225 test -n "$ac_ct_AR" && break 37226 done 37227 37228 if test "x$ac_ct_AR" = x; then 37229 AR="" 37230 else 37231 case $cross_compiling:$ac_tool_warned in 37232 yes:) 37233 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 37234 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 37235 ac_tool_warned=yes ;; 37236 esac 37237 AR=$ac_ct_AR 37238 fi 37239 fi 37240 37241 else 37242 # The variable is set, but is it from the command line or the environment? 37243 37244 # Try to remove the string !AR! from our list. 37245 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!AR!/} 37246 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 37247 # If it failed, the variable was not from the command line. Ignore it, 37248 # but warn the user (except for BASH, which is always set by the calling BASH). 37249 if test "xAR" != xBASH; then 37250 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of AR from the environment. Use command line variables instead." >&5 37251 $as_echo "$as_me: WARNING: Ignoring value of AR from the environment. Use command line variables instead." >&2;} 37252 fi 37253 # Try to locate tool using the code snippet 37254 if test -n "$ac_tool_prefix"; then 37255 for ac_prog in ar gcc-ar 37256 do 37257 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 37258 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 37259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 37260 $as_echo_n "checking for $ac_word... " >&6; } 37261 if ${ac_cv_prog_AR+:} false; then : 37262 $as_echo_n "(cached) " >&6 37263 else 37264 if test -n "$AR"; then 37265 ac_cv_prog_AR="$AR" # Let the user override the test. 37266 else 37267 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 37268 for as_dir in $PATH 37269 do 37270 IFS=$as_save_IFS 37271 test -z "$as_dir" && as_dir=. 37272 for ac_exec_ext in '' $ac_executable_extensions; do 37273 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 37274 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 37275 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 37276 break 2 37277 fi 37278 done 37279 done 37280 IFS=$as_save_IFS 37281 37282 fi 37283 fi 37284 AR=$ac_cv_prog_AR 37285 if test -n "$AR"; then 37286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 37287 $as_echo "$AR" >&6; } 37288 else 37289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 37290 $as_echo "no" >&6; } 37291 fi 37292 37293 37294 test -n "$AR" && break 37295 done 37296 fi 37297 if test -z "$AR"; then 37298 ac_ct_AR=$AR 37299 for ac_prog in ar gcc-ar 37300 do 37301 # Extract the first word of "$ac_prog", so it can be a program name with args. 37302 set dummy $ac_prog; ac_word=$2 37303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 37304 $as_echo_n "checking for $ac_word... " >&6; } 37305 if ${ac_cv_prog_ac_ct_AR+:} false; then : 37306 $as_echo_n "(cached) " >&6 37307 else 37308 if test -n "$ac_ct_AR"; then 37309 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 37310 else 37311 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 37312 for as_dir in $PATH 37313 do 37314 IFS=$as_save_IFS 37315 test -z "$as_dir" && as_dir=. 37316 for ac_exec_ext in '' $ac_executable_extensions; do 37317 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 37318 ac_cv_prog_ac_ct_AR="$ac_prog" 37319 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 37320 break 2 37321 fi 37322 done 37323 done 37324 IFS=$as_save_IFS 37325 37326 fi 37327 fi 37328 ac_ct_AR=$ac_cv_prog_ac_ct_AR 37329 if test -n "$ac_ct_AR"; then 37330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 37331 $as_echo "$ac_ct_AR" >&6; } 37332 else 37333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 37334 $as_echo "no" >&6; } 37335 fi 37336 37337 37338 test -n "$ac_ct_AR" && break 37339 done 37340 37341 if test "x$ac_ct_AR" = x; then 37342 AR="" 37343 else 37344 case $cross_compiling:$ac_tool_warned in 37345 yes:) 37346 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 37347 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 37348 ac_tool_warned=yes ;; 37349 esac 37350 AR=$ac_ct_AR 37351 fi 37352 fi 37353 37354 else 37355 # If it succeeded, then it was overridden by the user. We will use it 37356 # for the tool. 37357 37358 # First remove it from the list of overridden variables, so we can test 37359 # for unknown variables in the end. 37360 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 37361 37362 # Check if we try to supply an empty value 37363 if test "x$AR" = x; then 37364 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool AR= (no value)" >&5 37365 $as_echo "$as_me: Setting user supplied tool AR= (no value)" >&6;} 37366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AR" >&5 37367 $as_echo_n "checking for AR... " >&6; } 37368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 37369 $as_echo "disabled" >&6; } 37370 else 37371 # Check if the provided tool contains a complete path. 37372 tool_specified="$AR" 37373 tool_basename="${tool_specified##*/}" 37374 if test "x$tool_basename" = "x$tool_specified"; then 37375 # A command without a complete path is provided, search $PATH. 37376 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool AR=$tool_basename" >&5 37377 $as_echo "$as_me: Will search for user supplied tool AR=$tool_basename" >&6;} 37378 # Extract the first word of "$tool_basename", so it can be a program name with args. 37379 set dummy $tool_basename; ac_word=$2 37380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 37381 $as_echo_n "checking for $ac_word... " >&6; } 37382 if ${ac_cv_path_AR+:} false; then : 37383 $as_echo_n "(cached) " >&6 37384 else 37385 case $AR in 37386 [\\/]* | ?:[\\/]*) 37387 ac_cv_path_AR="$AR" # Let the user override the test with a path. 37388 ;; 37389 *) 37390 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 37391 for as_dir in $PATH 37392 do 37393 IFS=$as_save_IFS 37394 test -z "$as_dir" && as_dir=. 37395 for ac_exec_ext in '' $ac_executable_extensions; do 37396 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 37397 ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext" 37398 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 37399 break 2 37400 fi 37401 done 37402 done 37403 IFS=$as_save_IFS 37404 37405 ;; 37406 esac 37407 fi 37408 AR=$ac_cv_path_AR 37409 if test -n "$AR"; then 37410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 37411 $as_echo "$AR" >&6; } 37412 else 37413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 37414 $as_echo "no" >&6; } 37415 fi 37416 37417 37418 if test "x$AR" = x; then 37419 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 37420 fi 37421 else 37422 # Otherwise we believe it is a complete path. Use it as it is. 37423 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool AR=$tool_specified" >&5 37424 $as_echo "$as_me: Will use user supplied tool AR=$tool_specified" >&6;} 37425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AR" >&5 37426 $as_echo_n "checking for AR... " >&6; } 37427 if test ! -x "$tool_specified"; then 37428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 37429 $as_echo "not found" >&6; } 37430 as_fn_error $? "User supplied tool AR=$tool_specified does not exist or is not executable" "$LINENO" 5 37431 fi 37432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 37433 $as_echo "$tool_specified" >&6; } 37434 fi 37435 fi 37436 fi 37437 37438 fi 37439 37440 37441 else 37442 37443 37444 # Publish this variable in the help. 37445 37446 37447 if [ -z "${AR+x}" ]; then 37448 # The variable is not set by user, try to locate tool using the code snippet 37449 if test -n "$ac_tool_prefix"; then 37450 for ac_prog in ar 37451 do 37452 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 37453 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 37454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 37455 $as_echo_n "checking for $ac_word... " >&6; } 37456 if ${ac_cv_prog_AR+:} false; then : 37457 $as_echo_n "(cached) " >&6 37458 else 37459 if test -n "$AR"; then 37460 ac_cv_prog_AR="$AR" # Let the user override the test. 37461 else 37462 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 37463 for as_dir in $PATH 37464 do 37465 IFS=$as_save_IFS 37466 test -z "$as_dir" && as_dir=. 37467 for ac_exec_ext in '' $ac_executable_extensions; do 37468 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 37469 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 37470 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 37471 break 2 37472 fi 37473 done 37474 done 37475 IFS=$as_save_IFS 37476 37477 fi 37478 fi 37479 AR=$ac_cv_prog_AR 37480 if test -n "$AR"; then 37481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 37482 $as_echo "$AR" >&6; } 37483 else 37484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 37485 $as_echo "no" >&6; } 37486 fi 37487 37488 37489 test -n "$AR" && break 37490 done 37491 fi 37492 if test -z "$AR"; then 37493 ac_ct_AR=$AR 37494 for ac_prog in ar 37495 do 37496 # Extract the first word of "$ac_prog", so it can be a program name with args. 37497 set dummy $ac_prog; ac_word=$2 37498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 37499 $as_echo_n "checking for $ac_word... " >&6; } 37500 if ${ac_cv_prog_ac_ct_AR+:} false; then : 37501 $as_echo_n "(cached) " >&6 37502 else 37503 if test -n "$ac_ct_AR"; then 37504 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 37505 else 37506 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 37507 for as_dir in $PATH 37508 do 37509 IFS=$as_save_IFS 37510 test -z "$as_dir" && as_dir=. 37511 for ac_exec_ext in '' $ac_executable_extensions; do 37512 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 37513 ac_cv_prog_ac_ct_AR="$ac_prog" 37514 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 37515 break 2 37516 fi 37517 done 37518 done 37519 IFS=$as_save_IFS 37520 37521 fi 37522 fi 37523 ac_ct_AR=$ac_cv_prog_ac_ct_AR 37524 if test -n "$ac_ct_AR"; then 37525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 37526 $as_echo "$ac_ct_AR" >&6; } 37527 else 37528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 37529 $as_echo "no" >&6; } 37530 fi 37531 37532 37533 test -n "$ac_ct_AR" && break 37534 done 37535 37536 if test "x$ac_ct_AR" = x; then 37537 AR="" 37538 else 37539 case $cross_compiling:$ac_tool_warned in 37540 yes:) 37541 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 37542 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 37543 ac_tool_warned=yes ;; 37544 esac 37545 AR=$ac_ct_AR 37546 fi 37547 fi 37548 37549 else 37550 # The variable is set, but is it from the command line or the environment? 37551 37552 # Try to remove the string !AR! from our list. 37553 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!AR!/} 37554 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 37555 # If it failed, the variable was not from the command line. Ignore it, 37556 # but warn the user (except for BASH, which is always set by the calling BASH). 37557 if test "xAR" != xBASH; then 37558 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of AR from the environment. Use command line variables instead." >&5 37559 $as_echo "$as_me: WARNING: Ignoring value of AR from the environment. Use command line variables instead." >&2;} 37560 fi 37561 # Try to locate tool using the code snippet 37562 if test -n "$ac_tool_prefix"; then 37563 for ac_prog in ar 37564 do 37565 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 37566 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 37567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 37568 $as_echo_n "checking for $ac_word... " >&6; } 37569 if ${ac_cv_prog_AR+:} false; then : 37570 $as_echo_n "(cached) " >&6 37571 else 37572 if test -n "$AR"; then 37573 ac_cv_prog_AR="$AR" # Let the user override the test. 37574 else 37575 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 37576 for as_dir in $PATH 37577 do 37578 IFS=$as_save_IFS 37579 test -z "$as_dir" && as_dir=. 37580 for ac_exec_ext in '' $ac_executable_extensions; do 37581 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 37582 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 37583 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 37584 break 2 37585 fi 37586 done 37587 done 37588 IFS=$as_save_IFS 37589 37590 fi 37591 fi 37592 AR=$ac_cv_prog_AR 37593 if test -n "$AR"; then 37594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 37595 $as_echo "$AR" >&6; } 37596 else 37597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 37598 $as_echo "no" >&6; } 37599 fi 37600 37601 37602 test -n "$AR" && break 37603 done 37604 fi 37605 if test -z "$AR"; then 37606 ac_ct_AR=$AR 37607 for ac_prog in ar 37608 do 37609 # Extract the first word of "$ac_prog", so it can be a program name with args. 37610 set dummy $ac_prog; ac_word=$2 37611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 37612 $as_echo_n "checking for $ac_word... " >&6; } 37613 if ${ac_cv_prog_ac_ct_AR+:} false; then : 37614 $as_echo_n "(cached) " >&6 37615 else 37616 if test -n "$ac_ct_AR"; then 37617 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 37618 else 37619 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 37620 for as_dir in $PATH 37621 do 37622 IFS=$as_save_IFS 37623 test -z "$as_dir" && as_dir=. 37624 for ac_exec_ext in '' $ac_executable_extensions; do 37625 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 37626 ac_cv_prog_ac_ct_AR="$ac_prog" 37627 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 37628 break 2 37629 fi 37630 done 37631 done 37632 IFS=$as_save_IFS 37633 37634 fi 37635 fi 37636 ac_ct_AR=$ac_cv_prog_ac_ct_AR 37637 if test -n "$ac_ct_AR"; then 37638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 37639 $as_echo "$ac_ct_AR" >&6; } 37640 else 37641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 37642 $as_echo "no" >&6; } 37643 fi 37644 37645 37646 test -n "$ac_ct_AR" && break 37647 done 37648 37649 if test "x$ac_ct_AR" = x; then 37650 AR="" 37651 else 37652 case $cross_compiling:$ac_tool_warned in 37653 yes:) 37654 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 37655 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 37656 ac_tool_warned=yes ;; 37657 esac 37658 AR=$ac_ct_AR 37659 fi 37660 fi 37661 37662 else 37663 # If it succeeded, then it was overridden by the user. We will use it 37664 # for the tool. 37665 37666 # First remove it from the list of overridden variables, so we can test 37667 # for unknown variables in the end. 37668 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 37669 37670 # Check if we try to supply an empty value 37671 if test "x$AR" = x; then 37672 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool AR= (no value)" >&5 37673 $as_echo "$as_me: Setting user supplied tool AR= (no value)" >&6;} 37674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AR" >&5 37675 $as_echo_n "checking for AR... " >&6; } 37676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 37677 $as_echo "disabled" >&6; } 37678 else 37679 # Check if the provided tool contains a complete path. 37680 tool_specified="$AR" 37681 tool_basename="${tool_specified##*/}" 37682 if test "x$tool_basename" = "x$tool_specified"; then 37683 # A command without a complete path is provided, search $PATH. 37684 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool AR=$tool_basename" >&5 37685 $as_echo "$as_me: Will search for user supplied tool AR=$tool_basename" >&6;} 37686 # Extract the first word of "$tool_basename", so it can be a program name with args. 37687 set dummy $tool_basename; ac_word=$2 37688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 37689 $as_echo_n "checking for $ac_word... " >&6; } 37690 if ${ac_cv_path_AR+:} false; then : 37691 $as_echo_n "(cached) " >&6 37692 else 37693 case $AR in 37694 [\\/]* | ?:[\\/]*) 37695 ac_cv_path_AR="$AR" # Let the user override the test with a path. 37696 ;; 37697 *) 37698 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 37699 for as_dir in $PATH 37700 do 37701 IFS=$as_save_IFS 37702 test -z "$as_dir" && as_dir=. 37703 for ac_exec_ext in '' $ac_executable_extensions; do 37704 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 37705 ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext" 37706 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 37707 break 2 37708 fi 37709 done 37710 done 37711 IFS=$as_save_IFS 37712 37713 ;; 37714 esac 37715 fi 37716 AR=$ac_cv_path_AR 37717 if test -n "$AR"; then 37718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 37719 $as_echo "$AR" >&6; } 37720 else 37721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 37722 $as_echo "no" >&6; } 37723 fi 37724 37725 37726 if test "x$AR" = x; then 37727 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 37728 fi 37729 else 37730 # Otherwise we believe it is a complete path. Use it as it is. 37731 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool AR=$tool_specified" >&5 37732 $as_echo "$as_me: Will use user supplied tool AR=$tool_specified" >&6;} 37733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AR" >&5 37734 $as_echo_n "checking for AR... " >&6; } 37735 if test ! -x "$tool_specified"; then 37736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 37737 $as_echo "not found" >&6; } 37738 as_fn_error $? "User supplied tool AR=$tool_specified does not exist or is not executable" "$LINENO" 5 37739 fi 37740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 37741 $as_echo "$tool_specified" >&6; } 37742 fi 37743 fi 37744 fi 37745 37746 fi 37747 37748 37749 fi 37750 37751 # Only process if variable expands to non-empty 37752 37753 if test "x$AR" != x; then 37754 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 37755 37756 # First separate the path from the arguments. This will split at the first 37757 # space. 37758 complete="$AR" 37759 path="${complete%% *}" 37760 tmp="$complete EOL" 37761 arguments="${tmp#* }" 37762 37763 # Input might be given as Windows format, start by converting to 37764 # unix format. 37765 new_path=`$CYGPATH -u "$path"` 37766 37767 # Now try to locate executable using which 37768 new_path=`$WHICH "$new_path" 2> /dev/null` 37769 # bat and cmd files are not always considered executable in cygwin causing which 37770 # to not find them 37771 if test "x$new_path" = x \ 37772 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 37773 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 37774 new_path=`$CYGPATH -u "$path"` 37775 fi 37776 if test "x$new_path" = x; then 37777 # Oops. Which didn't find the executable. 37778 # The splitting of arguments from the executable at a space might have been incorrect, 37779 # since paths with space are more likely in Windows. Give it another try with the whole 37780 # argument. 37781 path="$complete" 37782 arguments="EOL" 37783 new_path=`$CYGPATH -u "$path"` 37784 new_path=`$WHICH "$new_path" 2> /dev/null` 37785 # bat and cmd files are not always considered executable in cygwin causing which 37786 # to not find them 37787 if test "x$new_path" = x \ 37788 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 37789 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 37790 new_path=`$CYGPATH -u "$path"` 37791 fi 37792 if test "x$new_path" = x; then 37793 # It's still not found. Now this is an unrecoverable error. 37794 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of AR, which resolves as \"$complete\", is not found." >&5 37795 $as_echo "$as_me: The path of AR, which resolves as \"$complete\", is not found." >&6;} 37796 has_space=`$ECHO "$complete" | $GREP " "` 37797 if test "x$has_space" != x; then 37798 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 37799 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 37800 fi 37801 as_fn_error $? "Cannot locate the the path of AR" "$LINENO" 5 37802 fi 37803 fi 37804 37805 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 37806 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 37807 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 37808 # "foo.exe" is OK but "foo" is an error. 37809 # 37810 # This test is therefore slightly more accurate than "test -f" to check for file presence. 37811 # It is also a way to make sure we got the proper file name for the real test later on. 37812 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 37813 if test "x$test_shortpath" = x; then 37814 # Short path failed, file does not exist as specified. 37815 # Try adding .exe or .cmd 37816 if test -f "${new_path}.exe"; then 37817 input_to_shortpath="${new_path}.exe" 37818 elif test -f "${new_path}.cmd"; then 37819 input_to_shortpath="${new_path}.cmd" 37820 else 37821 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of AR, which resolves as \"$new_path\", is invalid." >&5 37822 $as_echo "$as_me: The path of AR, which resolves as \"$new_path\", is invalid." >&6;} 37823 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 37824 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 37825 as_fn_error $? "Cannot locate the the path of AR" "$LINENO" 5 37826 fi 37827 else 37828 input_to_shortpath="$new_path" 37829 fi 37830 37831 # Call helper function which possibly converts this using DOS-style short mode. 37832 # If so, the updated path is stored in $new_path. 37833 new_path="$input_to_shortpath" 37834 37835 input_path="$input_to_shortpath" 37836 # Check if we need to convert this using DOS-style short mode. If the path 37837 # contains just simple characters, use it. Otherwise (spaces, weird characters), 37838 # take no chances and rewrite it. 37839 # Note: m4 eats our [], so we need to use [ and ] instead. 37840 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 37841 if test "x$has_forbidden_chars" != x; then 37842 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 37843 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 37844 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 37845 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 37846 # Going to short mode and back again did indeed matter. Since short mode is 37847 # case insensitive, let's make it lowercase to improve readability. 37848 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 37849 # Now convert it back to Unix-style (cygpath) 37850 input_path=`$CYGPATH -u "$shortmode_path"` 37851 new_path="$input_path" 37852 fi 37853 fi 37854 37855 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 37856 if test "x$test_cygdrive_prefix" = x; then 37857 # As a simple fix, exclude /usr/bin since it's not a real path. 37858 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 37859 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 37860 # a path prefixed by /cygdrive for fixpath to work. 37861 new_path="$CYGWIN_ROOT_PATH$input_path" 37862 fi 37863 fi 37864 37865 # remove trailing .exe if any 37866 new_path="${new_path/%.exe/}" 37867 37868 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 37869 37870 # First separate the path from the arguments. This will split at the first 37871 # space. 37872 complete="$AR" 37873 path="${complete%% *}" 37874 tmp="$complete EOL" 37875 arguments="${tmp#* }" 37876 37877 # Input might be given as Windows format, start by converting to 37878 # unix format. 37879 new_path="$path" 37880 37881 windows_path="$new_path" 37882 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 37883 unix_path=`$CYGPATH -u "$windows_path"` 37884 new_path="$unix_path" 37885 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 37886 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 37887 new_path="$unix_path" 37888 fi 37889 37890 37891 # Now try to locate executable using which 37892 new_path=`$WHICH "$new_path" 2> /dev/null` 37893 37894 if test "x$new_path" = x; then 37895 # Oops. Which didn't find the executable. 37896 # The splitting of arguments from the executable at a space might have been incorrect, 37897 # since paths with space are more likely in Windows. Give it another try with the whole 37898 # argument. 37899 path="$complete" 37900 arguments="EOL" 37901 new_path="$path" 37902 37903 windows_path="$new_path" 37904 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 37905 unix_path=`$CYGPATH -u "$windows_path"` 37906 new_path="$unix_path" 37907 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 37908 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 37909 new_path="$unix_path" 37910 fi 37911 37912 37913 new_path=`$WHICH "$new_path" 2> /dev/null` 37914 # bat and cmd files are not always considered executable in MSYS causing which 37915 # to not find them 37916 if test "x$new_path" = x \ 37917 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 37918 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 37919 new_path="$path" 37920 37921 windows_path="$new_path" 37922 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 37923 unix_path=`$CYGPATH -u "$windows_path"` 37924 new_path="$unix_path" 37925 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 37926 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 37927 new_path="$unix_path" 37928 fi 37929 37930 fi 37931 37932 if test "x$new_path" = x; then 37933 # It's still not found. Now this is an unrecoverable error. 37934 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of AR, which resolves as \"$complete\", is not found." >&5 37935 $as_echo "$as_me: The path of AR, which resolves as \"$complete\", is not found." >&6;} 37936 has_space=`$ECHO "$complete" | $GREP " "` 37937 if test "x$has_space" != x; then 37938 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 37939 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 37940 fi 37941 as_fn_error $? "Cannot locate the the path of AR" "$LINENO" 5 37942 fi 37943 fi 37944 37945 # Now new_path has a complete unix path to the binary 37946 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 37947 # Keep paths in /bin as-is, but remove trailing .exe if any 37948 new_path="${new_path/%.exe/}" 37949 # Do not save /bin paths to all_fixpath_prefixes! 37950 else 37951 # Not in mixed or Windows style, start by that. 37952 new_path=`cmd //c echo $new_path` 37953 37954 input_path="$new_path" 37955 # Check if we need to convert this using DOS-style short mode. If the path 37956 # contains just simple characters, use it. Otherwise (spaces, weird characters), 37957 # take no chances and rewrite it. 37958 # Note: m4 eats our [], so we need to use [ and ] instead. 37959 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 37960 if test "x$has_forbidden_chars" != x; then 37961 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 37962 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 37963 fi 37964 37965 # Output is in $new_path 37966 37967 windows_path="$new_path" 37968 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 37969 unix_path=`$CYGPATH -u "$windows_path"` 37970 new_path="$unix_path" 37971 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 37972 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 37973 new_path="$unix_path" 37974 fi 37975 37976 # remove trailing .exe if any 37977 new_path="${new_path/%.exe/}" 37978 37979 # Save the first 10 bytes of this path to the storage, so fixpath can work. 37980 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 37981 fi 37982 37983 else 37984 # We're on a unix platform. Hooray! :) 37985 # First separate the path from the arguments. This will split at the first 37986 # space. 37987 complete="$AR" 37988 path="${complete%% *}" 37989 tmp="$complete EOL" 37990 arguments="${tmp#* }" 37991 37992 # Cannot rely on the command "which" here since it doesn't always work. 37993 is_absolute_path=`$ECHO "$path" | $GREP ^/` 37994 if test -z "$is_absolute_path"; then 37995 # Path to executable is not absolute. Find it. 37996 IFS_save="$IFS" 37997 IFS=: 37998 for p in $PATH; do 37999 if test -f "$p/$path" && test -x "$p/$path"; then 38000 new_path="$p/$path" 38001 break 38002 fi 38003 done 38004 IFS="$IFS_save" 38005 else 38006 # This is an absolute path, we can use it without further modifications. 38007 new_path="$path" 38008 fi 38009 38010 if test "x$new_path" = x; then 38011 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of AR, which resolves as \"$complete\", is not found." >&5 38012 $as_echo "$as_me: The path of AR, which resolves as \"$complete\", is not found." >&6;} 38013 has_space=`$ECHO "$complete" | $GREP " "` 38014 if test "x$has_space" != x; then 38015 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 38016 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 38017 fi 38018 as_fn_error $? "Cannot locate the the path of AR" "$LINENO" 5 38019 fi 38020 fi 38021 38022 # Now join together the path and the arguments once again 38023 if test "x$arguments" != xEOL; then 38024 new_complete="$new_path ${arguments% *}" 38025 else 38026 new_complete="$new_path" 38027 fi 38028 38029 if test "x$complete" != "x$new_complete"; then 38030 AR="$new_complete" 38031 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting AR to \"$new_complete\"" >&5 38032 $as_echo "$as_me: Rewriting AR to \"$new_complete\"" >&6;} 38033 fi 38034 fi 38035 38036 38037 38038 if test "x$OPENJDK_TARGET_OS" = "xmacosx"; then 38039 38040 38041 # Publish this variable in the help. 38042 38043 38044 if [ -z "${LIPO+x}" ]; then 38045 # The variable is not set by user, try to locate tool using the code snippet 38046 for ac_prog in lipo 38047 do 38048 # Extract the first word of "$ac_prog", so it can be a program name with args. 38049 set dummy $ac_prog; ac_word=$2 38050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 38051 $as_echo_n "checking for $ac_word... " >&6; } 38052 if ${ac_cv_path_LIPO+:} false; then : 38053 $as_echo_n "(cached) " >&6 38054 else 38055 case $LIPO in 38056 [\\/]* | ?:[\\/]*) 38057 ac_cv_path_LIPO="$LIPO" # Let the user override the test with a path. 38058 ;; 38059 *) 38060 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 38061 for as_dir in $PATH 38062 do 38063 IFS=$as_save_IFS 38064 test -z "$as_dir" && as_dir=. 38065 for ac_exec_ext in '' $ac_executable_extensions; do 38066 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 38067 ac_cv_path_LIPO="$as_dir/$ac_word$ac_exec_ext" 38068 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 38069 break 2 38070 fi 38071 done 38072 done 38073 IFS=$as_save_IFS 38074 38075 ;; 38076 esac 38077 fi 38078 LIPO=$ac_cv_path_LIPO 38079 if test -n "$LIPO"; then 38080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 38081 $as_echo "$LIPO" >&6; } 38082 else 38083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 38084 $as_echo "no" >&6; } 38085 fi 38086 38087 38088 test -n "$LIPO" && break 38089 done 38090 38091 else 38092 # The variable is set, but is it from the command line or the environment? 38093 38094 # Try to remove the string !LIPO! from our list. 38095 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!LIPO!/} 38096 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 38097 # If it failed, the variable was not from the command line. Ignore it, 38098 # but warn the user (except for BASH, which is always set by the calling BASH). 38099 if test "xLIPO" != xBASH; then 38100 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of LIPO from the environment. Use command line variables instead." >&5 38101 $as_echo "$as_me: WARNING: Ignoring value of LIPO from the environment. Use command line variables instead." >&2;} 38102 fi 38103 # Try to locate tool using the code snippet 38104 for ac_prog in lipo 38105 do 38106 # Extract the first word of "$ac_prog", so it can be a program name with args. 38107 set dummy $ac_prog; ac_word=$2 38108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 38109 $as_echo_n "checking for $ac_word... " >&6; } 38110 if ${ac_cv_path_LIPO+:} false; then : 38111 $as_echo_n "(cached) " >&6 38112 else 38113 case $LIPO in 38114 [\\/]* | ?:[\\/]*) 38115 ac_cv_path_LIPO="$LIPO" # Let the user override the test with a path. 38116 ;; 38117 *) 38118 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 38119 for as_dir in $PATH 38120 do 38121 IFS=$as_save_IFS 38122 test -z "$as_dir" && as_dir=. 38123 for ac_exec_ext in '' $ac_executable_extensions; do 38124 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 38125 ac_cv_path_LIPO="$as_dir/$ac_word$ac_exec_ext" 38126 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 38127 break 2 38128 fi 38129 done 38130 done 38131 IFS=$as_save_IFS 38132 38133 ;; 38134 esac 38135 fi 38136 LIPO=$ac_cv_path_LIPO 38137 if test -n "$LIPO"; then 38138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 38139 $as_echo "$LIPO" >&6; } 38140 else 38141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 38142 $as_echo "no" >&6; } 38143 fi 38144 38145 38146 test -n "$LIPO" && break 38147 done 38148 38149 else 38150 # If it succeeded, then it was overridden by the user. We will use it 38151 # for the tool. 38152 38153 # First remove it from the list of overridden variables, so we can test 38154 # for unknown variables in the end. 38155 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 38156 38157 # Check if we try to supply an empty value 38158 if test "x$LIPO" = x; then 38159 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool LIPO= (no value)" >&5 38160 $as_echo "$as_me: Setting user supplied tool LIPO= (no value)" >&6;} 38161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIPO" >&5 38162 $as_echo_n "checking for LIPO... " >&6; } 38163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 38164 $as_echo "disabled" >&6; } 38165 else 38166 # Check if the provided tool contains a complete path. 38167 tool_specified="$LIPO" 38168 tool_basename="${tool_specified##*/}" 38169 if test "x$tool_basename" = "x$tool_specified"; then 38170 # A command without a complete path is provided, search $PATH. 38171 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool LIPO=$tool_basename" >&5 38172 $as_echo "$as_me: Will search for user supplied tool LIPO=$tool_basename" >&6;} 38173 # Extract the first word of "$tool_basename", so it can be a program name with args. 38174 set dummy $tool_basename; ac_word=$2 38175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 38176 $as_echo_n "checking for $ac_word... " >&6; } 38177 if ${ac_cv_path_LIPO+:} false; then : 38178 $as_echo_n "(cached) " >&6 38179 else 38180 case $LIPO in 38181 [\\/]* | ?:[\\/]*) 38182 ac_cv_path_LIPO="$LIPO" # Let the user override the test with a path. 38183 ;; 38184 *) 38185 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 38186 for as_dir in $PATH 38187 do 38188 IFS=$as_save_IFS 38189 test -z "$as_dir" && as_dir=. 38190 for ac_exec_ext in '' $ac_executable_extensions; do 38191 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 38192 ac_cv_path_LIPO="$as_dir/$ac_word$ac_exec_ext" 38193 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 38194 break 2 38195 fi 38196 done 38197 done 38198 IFS=$as_save_IFS 38199 38200 ;; 38201 esac 38202 fi 38203 LIPO=$ac_cv_path_LIPO 38204 if test -n "$LIPO"; then 38205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 38206 $as_echo "$LIPO" >&6; } 38207 else 38208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 38209 $as_echo "no" >&6; } 38210 fi 38211 38212 38213 if test "x$LIPO" = x; then 38214 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 38215 fi 38216 else 38217 # Otherwise we believe it is a complete path. Use it as it is. 38218 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool LIPO=$tool_specified" >&5 38219 $as_echo "$as_me: Will use user supplied tool LIPO=$tool_specified" >&6;} 38220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIPO" >&5 38221 $as_echo_n "checking for LIPO... " >&6; } 38222 if test ! -x "$tool_specified"; then 38223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 38224 $as_echo "not found" >&6; } 38225 as_fn_error $? "User supplied tool LIPO=$tool_specified does not exist or is not executable" "$LINENO" 5 38226 fi 38227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 38228 $as_echo "$tool_specified" >&6; } 38229 fi 38230 fi 38231 fi 38232 38233 fi 38234 38235 38236 38237 # Only process if variable expands to non-empty 38238 38239 if test "x$LIPO" != x; then 38240 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 38241 38242 # First separate the path from the arguments. This will split at the first 38243 # space. 38244 complete="$LIPO" 38245 path="${complete%% *}" 38246 tmp="$complete EOL" 38247 arguments="${tmp#* }" 38248 38249 # Input might be given as Windows format, start by converting to 38250 # unix format. 38251 new_path=`$CYGPATH -u "$path"` 38252 38253 # Now try to locate executable using which 38254 new_path=`$WHICH "$new_path" 2> /dev/null` 38255 # bat and cmd files are not always considered executable in cygwin causing which 38256 # to not find them 38257 if test "x$new_path" = x \ 38258 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 38259 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 38260 new_path=`$CYGPATH -u "$path"` 38261 fi 38262 if test "x$new_path" = x; then 38263 # Oops. Which didn't find the executable. 38264 # The splitting of arguments from the executable at a space might have been incorrect, 38265 # since paths with space are more likely in Windows. Give it another try with the whole 38266 # argument. 38267 path="$complete" 38268 arguments="EOL" 38269 new_path=`$CYGPATH -u "$path"` 38270 new_path=`$WHICH "$new_path" 2> /dev/null` 38271 # bat and cmd files are not always considered executable in cygwin causing which 38272 # to not find them 38273 if test "x$new_path" = x \ 38274 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 38275 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 38276 new_path=`$CYGPATH -u "$path"` 38277 fi 38278 if test "x$new_path" = x; then 38279 # It's still not found. Now this is an unrecoverable error. 38280 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of LIPO, which resolves as \"$complete\", is not found." >&5 38281 $as_echo "$as_me: The path of LIPO, which resolves as \"$complete\", is not found." >&6;} 38282 has_space=`$ECHO "$complete" | $GREP " "` 38283 if test "x$has_space" != x; then 38284 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 38285 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 38286 fi 38287 as_fn_error $? "Cannot locate the the path of LIPO" "$LINENO" 5 38288 fi 38289 fi 38290 38291 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 38292 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 38293 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 38294 # "foo.exe" is OK but "foo" is an error. 38295 # 38296 # This test is therefore slightly more accurate than "test -f" to check for file presence. 38297 # It is also a way to make sure we got the proper file name for the real test later on. 38298 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 38299 if test "x$test_shortpath" = x; then 38300 # Short path failed, file does not exist as specified. 38301 # Try adding .exe or .cmd 38302 if test -f "${new_path}.exe"; then 38303 input_to_shortpath="${new_path}.exe" 38304 elif test -f "${new_path}.cmd"; then 38305 input_to_shortpath="${new_path}.cmd" 38306 else 38307 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of LIPO, which resolves as \"$new_path\", is invalid." >&5 38308 $as_echo "$as_me: The path of LIPO, which resolves as \"$new_path\", is invalid." >&6;} 38309 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 38310 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 38311 as_fn_error $? "Cannot locate the the path of LIPO" "$LINENO" 5 38312 fi 38313 else 38314 input_to_shortpath="$new_path" 38315 fi 38316 38317 # Call helper function which possibly converts this using DOS-style short mode. 38318 # If so, the updated path is stored in $new_path. 38319 new_path="$input_to_shortpath" 38320 38321 input_path="$input_to_shortpath" 38322 # Check if we need to convert this using DOS-style short mode. If the path 38323 # contains just simple characters, use it. Otherwise (spaces, weird characters), 38324 # take no chances and rewrite it. 38325 # Note: m4 eats our [], so we need to use [ and ] instead. 38326 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 38327 if test "x$has_forbidden_chars" != x; then 38328 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 38329 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 38330 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 38331 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 38332 # Going to short mode and back again did indeed matter. Since short mode is 38333 # case insensitive, let's make it lowercase to improve readability. 38334 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 38335 # Now convert it back to Unix-style (cygpath) 38336 input_path=`$CYGPATH -u "$shortmode_path"` 38337 new_path="$input_path" 38338 fi 38339 fi 38340 38341 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 38342 if test "x$test_cygdrive_prefix" = x; then 38343 # As a simple fix, exclude /usr/bin since it's not a real path. 38344 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 38345 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 38346 # a path prefixed by /cygdrive for fixpath to work. 38347 new_path="$CYGWIN_ROOT_PATH$input_path" 38348 fi 38349 fi 38350 38351 # remove trailing .exe if any 38352 new_path="${new_path/%.exe/}" 38353 38354 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 38355 38356 # First separate the path from the arguments. This will split at the first 38357 # space. 38358 complete="$LIPO" 38359 path="${complete%% *}" 38360 tmp="$complete EOL" 38361 arguments="${tmp#* }" 38362 38363 # Input might be given as Windows format, start by converting to 38364 # unix format. 38365 new_path="$path" 38366 38367 windows_path="$new_path" 38368 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 38369 unix_path=`$CYGPATH -u "$windows_path"` 38370 new_path="$unix_path" 38371 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 38372 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 38373 new_path="$unix_path" 38374 fi 38375 38376 38377 # Now try to locate executable using which 38378 new_path=`$WHICH "$new_path" 2> /dev/null` 38379 38380 if test "x$new_path" = x; then 38381 # Oops. Which didn't find the executable. 38382 # The splitting of arguments from the executable at a space might have been incorrect, 38383 # since paths with space are more likely in Windows. Give it another try with the whole 38384 # argument. 38385 path="$complete" 38386 arguments="EOL" 38387 new_path="$path" 38388 38389 windows_path="$new_path" 38390 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 38391 unix_path=`$CYGPATH -u "$windows_path"` 38392 new_path="$unix_path" 38393 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 38394 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 38395 new_path="$unix_path" 38396 fi 38397 38398 38399 new_path=`$WHICH "$new_path" 2> /dev/null` 38400 # bat and cmd files are not always considered executable in MSYS causing which 38401 # to not find them 38402 if test "x$new_path" = x \ 38403 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 38404 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 38405 new_path="$path" 38406 38407 windows_path="$new_path" 38408 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 38409 unix_path=`$CYGPATH -u "$windows_path"` 38410 new_path="$unix_path" 38411 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 38412 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 38413 new_path="$unix_path" 38414 fi 38415 38416 fi 38417 38418 if test "x$new_path" = x; then 38419 # It's still not found. Now this is an unrecoverable error. 38420 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of LIPO, which resolves as \"$complete\", is not found." >&5 38421 $as_echo "$as_me: The path of LIPO, which resolves as \"$complete\", is not found." >&6;} 38422 has_space=`$ECHO "$complete" | $GREP " "` 38423 if test "x$has_space" != x; then 38424 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 38425 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 38426 fi 38427 as_fn_error $? "Cannot locate the the path of LIPO" "$LINENO" 5 38428 fi 38429 fi 38430 38431 # Now new_path has a complete unix path to the binary 38432 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 38433 # Keep paths in /bin as-is, but remove trailing .exe if any 38434 new_path="${new_path/%.exe/}" 38435 # Do not save /bin paths to all_fixpath_prefixes! 38436 else 38437 # Not in mixed or Windows style, start by that. 38438 new_path=`cmd //c echo $new_path` 38439 38440 input_path="$new_path" 38441 # Check if we need to convert this using DOS-style short mode. If the path 38442 # contains just simple characters, use it. Otherwise (spaces, weird characters), 38443 # take no chances and rewrite it. 38444 # Note: m4 eats our [], so we need to use [ and ] instead. 38445 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 38446 if test "x$has_forbidden_chars" != x; then 38447 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 38448 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 38449 fi 38450 38451 # Output is in $new_path 38452 38453 windows_path="$new_path" 38454 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 38455 unix_path=`$CYGPATH -u "$windows_path"` 38456 new_path="$unix_path" 38457 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 38458 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 38459 new_path="$unix_path" 38460 fi 38461 38462 # remove trailing .exe if any 38463 new_path="${new_path/%.exe/}" 38464 38465 # Save the first 10 bytes of this path to the storage, so fixpath can work. 38466 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 38467 fi 38468 38469 else 38470 # We're on a unix platform. Hooray! :) 38471 # First separate the path from the arguments. This will split at the first 38472 # space. 38473 complete="$LIPO" 38474 path="${complete%% *}" 38475 tmp="$complete EOL" 38476 arguments="${tmp#* }" 38477 38478 # Cannot rely on the command "which" here since it doesn't always work. 38479 is_absolute_path=`$ECHO "$path" | $GREP ^/` 38480 if test -z "$is_absolute_path"; then 38481 # Path to executable is not absolute. Find it. 38482 IFS_save="$IFS" 38483 IFS=: 38484 for p in $PATH; do 38485 if test -f "$p/$path" && test -x "$p/$path"; then 38486 new_path="$p/$path" 38487 break 38488 fi 38489 done 38490 IFS="$IFS_save" 38491 else 38492 # This is an absolute path, we can use it without further modifications. 38493 new_path="$path" 38494 fi 38495 38496 if test "x$new_path" = x; then 38497 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of LIPO, which resolves as \"$complete\", is not found." >&5 38498 $as_echo "$as_me: The path of LIPO, which resolves as \"$complete\", is not found." >&6;} 38499 has_space=`$ECHO "$complete" | $GREP " "` 38500 if test "x$has_space" != x; then 38501 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 38502 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 38503 fi 38504 as_fn_error $? "Cannot locate the the path of LIPO" "$LINENO" 5 38505 fi 38506 fi 38507 38508 # Now join together the path and the arguments once again 38509 if test "x$arguments" != xEOL; then 38510 new_complete="$new_path ${arguments% *}" 38511 else 38512 new_complete="$new_path" 38513 fi 38514 38515 if test "x$complete" != "x$new_complete"; then 38516 LIPO="$new_complete" 38517 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting LIPO to \"$new_complete\"" >&5 38518 $as_echo "$as_me: Rewriting LIPO to \"$new_complete\"" >&6;} 38519 fi 38520 fi 38521 38522 fi 38523 38524 if test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 38525 # Extract the first word of "mt", so it can be a program name with args. 38526 set dummy mt; ac_word=$2 38527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 38528 $as_echo_n "checking for $ac_word... " >&6; } 38529 if ${ac_cv_prog_MT+:} false; then : 38530 $as_echo_n "(cached) " >&6 38531 else 38532 if test -n "$MT"; then 38533 ac_cv_prog_MT="$MT" # Let the user override the test. 38534 else 38535 ac_prog_rejected=no 38536 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 38537 for as_dir in $PATH 38538 do 38539 IFS=$as_save_IFS 38540 test -z "$as_dir" && as_dir=. 38541 for ac_exec_ext in '' $ac_executable_extensions; do 38542 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 38543 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/bin/mt"; then 38544 ac_prog_rejected=yes 38545 continue 38546 fi 38547 ac_cv_prog_MT="mt" 38548 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 38549 break 2 38550 fi 38551 done 38552 done 38553 IFS=$as_save_IFS 38554 38555 if test $ac_prog_rejected = yes; then 38556 # We found a bogon in the path, so make sure we never use it. 38557 set dummy $ac_cv_prog_MT 38558 shift 38559 if test $# != 0; then 38560 # We chose a different compiler from the bogus one. 38561 # However, it has the same basename, so the bogon will be chosen 38562 # first if we set MT to just the basename; use the full file name. 38563 shift 38564 ac_cv_prog_MT="$as_dir/$ac_word${1+' '}$@" 38565 fi 38566 fi 38567 fi 38568 fi 38569 MT=$ac_cv_prog_MT 38570 if test -n "$MT"; then 38571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MT" >&5 38572 $as_echo "$MT" >&6; } 38573 else 38574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 38575 $as_echo "no" >&6; } 38576 fi 38577 38578 38579 38580 # Only process if variable expands to non-empty 38581 38582 if test "x$MT" != x; then 38583 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 38584 38585 # First separate the path from the arguments. This will split at the first 38586 # space. 38587 complete="$MT" 38588 path="${complete%% *}" 38589 tmp="$complete EOL" 38590 arguments="${tmp#* }" 38591 38592 # Input might be given as Windows format, start by converting to 38593 # unix format. 38594 new_path=`$CYGPATH -u "$path"` 38595 38596 # Now try to locate executable using which 38597 new_path=`$WHICH "$new_path" 2> /dev/null` 38598 # bat and cmd files are not always considered executable in cygwin causing which 38599 # to not find them 38600 if test "x$new_path" = x \ 38601 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 38602 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 38603 new_path=`$CYGPATH -u "$path"` 38604 fi 38605 if test "x$new_path" = x; then 38606 # Oops. Which didn't find the executable. 38607 # The splitting of arguments from the executable at a space might have been incorrect, 38608 # since paths with space are more likely in Windows. Give it another try with the whole 38609 # argument. 38610 path="$complete" 38611 arguments="EOL" 38612 new_path=`$CYGPATH -u "$path"` 38613 new_path=`$WHICH "$new_path" 2> /dev/null` 38614 # bat and cmd files are not always considered executable in cygwin causing which 38615 # to not find them 38616 if test "x$new_path" = x \ 38617 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 38618 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 38619 new_path=`$CYGPATH -u "$path"` 38620 fi 38621 if test "x$new_path" = x; then 38622 # It's still not found. Now this is an unrecoverable error. 38623 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MT, which resolves as \"$complete\", is not found." >&5 38624 $as_echo "$as_me: The path of MT, which resolves as \"$complete\", is not found." >&6;} 38625 has_space=`$ECHO "$complete" | $GREP " "` 38626 if test "x$has_space" != x; then 38627 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 38628 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 38629 fi 38630 as_fn_error $? "Cannot locate the the path of MT" "$LINENO" 5 38631 fi 38632 fi 38633 38634 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 38635 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 38636 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 38637 # "foo.exe" is OK but "foo" is an error. 38638 # 38639 # This test is therefore slightly more accurate than "test -f" to check for file presence. 38640 # It is also a way to make sure we got the proper file name for the real test later on. 38641 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 38642 if test "x$test_shortpath" = x; then 38643 # Short path failed, file does not exist as specified. 38644 # Try adding .exe or .cmd 38645 if test -f "${new_path}.exe"; then 38646 input_to_shortpath="${new_path}.exe" 38647 elif test -f "${new_path}.cmd"; then 38648 input_to_shortpath="${new_path}.cmd" 38649 else 38650 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MT, which resolves as \"$new_path\", is invalid." >&5 38651 $as_echo "$as_me: The path of MT, which resolves as \"$new_path\", is invalid." >&6;} 38652 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 38653 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 38654 as_fn_error $? "Cannot locate the the path of MT" "$LINENO" 5 38655 fi 38656 else 38657 input_to_shortpath="$new_path" 38658 fi 38659 38660 # Call helper function which possibly converts this using DOS-style short mode. 38661 # If so, the updated path is stored in $new_path. 38662 new_path="$input_to_shortpath" 38663 38664 input_path="$input_to_shortpath" 38665 # Check if we need to convert this using DOS-style short mode. If the path 38666 # contains just simple characters, use it. Otherwise (spaces, weird characters), 38667 # take no chances and rewrite it. 38668 # Note: m4 eats our [], so we need to use [ and ] instead. 38669 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 38670 if test "x$has_forbidden_chars" != x; then 38671 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 38672 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 38673 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 38674 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 38675 # Going to short mode and back again did indeed matter. Since short mode is 38676 # case insensitive, let's make it lowercase to improve readability. 38677 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 38678 # Now convert it back to Unix-style (cygpath) 38679 input_path=`$CYGPATH -u "$shortmode_path"` 38680 new_path="$input_path" 38681 fi 38682 fi 38683 38684 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 38685 if test "x$test_cygdrive_prefix" = x; then 38686 # As a simple fix, exclude /usr/bin since it's not a real path. 38687 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 38688 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 38689 # a path prefixed by /cygdrive for fixpath to work. 38690 new_path="$CYGWIN_ROOT_PATH$input_path" 38691 fi 38692 fi 38693 38694 # remove trailing .exe if any 38695 new_path="${new_path/%.exe/}" 38696 38697 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 38698 38699 # First separate the path from the arguments. This will split at the first 38700 # space. 38701 complete="$MT" 38702 path="${complete%% *}" 38703 tmp="$complete EOL" 38704 arguments="${tmp#* }" 38705 38706 # Input might be given as Windows format, start by converting to 38707 # unix format. 38708 new_path="$path" 38709 38710 windows_path="$new_path" 38711 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 38712 unix_path=`$CYGPATH -u "$windows_path"` 38713 new_path="$unix_path" 38714 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 38715 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 38716 new_path="$unix_path" 38717 fi 38718 38719 38720 # Now try to locate executable using which 38721 new_path=`$WHICH "$new_path" 2> /dev/null` 38722 38723 if test "x$new_path" = x; then 38724 # Oops. Which didn't find the executable. 38725 # The splitting of arguments from the executable at a space might have been incorrect, 38726 # since paths with space are more likely in Windows. Give it another try with the whole 38727 # argument. 38728 path="$complete" 38729 arguments="EOL" 38730 new_path="$path" 38731 38732 windows_path="$new_path" 38733 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 38734 unix_path=`$CYGPATH -u "$windows_path"` 38735 new_path="$unix_path" 38736 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 38737 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 38738 new_path="$unix_path" 38739 fi 38740 38741 38742 new_path=`$WHICH "$new_path" 2> /dev/null` 38743 # bat and cmd files are not always considered executable in MSYS causing which 38744 # to not find them 38745 if test "x$new_path" = x \ 38746 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 38747 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 38748 new_path="$path" 38749 38750 windows_path="$new_path" 38751 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 38752 unix_path=`$CYGPATH -u "$windows_path"` 38753 new_path="$unix_path" 38754 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 38755 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 38756 new_path="$unix_path" 38757 fi 38758 38759 fi 38760 38761 if test "x$new_path" = x; then 38762 # It's still not found. Now this is an unrecoverable error. 38763 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MT, which resolves as \"$complete\", is not found." >&5 38764 $as_echo "$as_me: The path of MT, which resolves as \"$complete\", is not found." >&6;} 38765 has_space=`$ECHO "$complete" | $GREP " "` 38766 if test "x$has_space" != x; then 38767 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 38768 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 38769 fi 38770 as_fn_error $? "Cannot locate the the path of MT" "$LINENO" 5 38771 fi 38772 fi 38773 38774 # Now new_path has a complete unix path to the binary 38775 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 38776 # Keep paths in /bin as-is, but remove trailing .exe if any 38777 new_path="${new_path/%.exe/}" 38778 # Do not save /bin paths to all_fixpath_prefixes! 38779 else 38780 # Not in mixed or Windows style, start by that. 38781 new_path=`cmd //c echo $new_path` 38782 38783 input_path="$new_path" 38784 # Check if we need to convert this using DOS-style short mode. If the path 38785 # contains just simple characters, use it. Otherwise (spaces, weird characters), 38786 # take no chances and rewrite it. 38787 # Note: m4 eats our [], so we need to use [ and ] instead. 38788 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 38789 if test "x$has_forbidden_chars" != x; then 38790 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 38791 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 38792 fi 38793 38794 # Output is in $new_path 38795 38796 windows_path="$new_path" 38797 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 38798 unix_path=`$CYGPATH -u "$windows_path"` 38799 new_path="$unix_path" 38800 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 38801 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 38802 new_path="$unix_path" 38803 fi 38804 38805 # remove trailing .exe if any 38806 new_path="${new_path/%.exe/}" 38807 38808 # Save the first 10 bytes of this path to the storage, so fixpath can work. 38809 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 38810 fi 38811 38812 else 38813 # We're on a unix platform. Hooray! :) 38814 # First separate the path from the arguments. This will split at the first 38815 # space. 38816 complete="$MT" 38817 path="${complete%% *}" 38818 tmp="$complete EOL" 38819 arguments="${tmp#* }" 38820 38821 # Cannot rely on the command "which" here since it doesn't always work. 38822 is_absolute_path=`$ECHO "$path" | $GREP ^/` 38823 if test -z "$is_absolute_path"; then 38824 # Path to executable is not absolute. Find it. 38825 IFS_save="$IFS" 38826 IFS=: 38827 for p in $PATH; do 38828 if test -f "$p/$path" && test -x "$p/$path"; then 38829 new_path="$p/$path" 38830 break 38831 fi 38832 done 38833 IFS="$IFS_save" 38834 else 38835 # This is an absolute path, we can use it without further modifications. 38836 new_path="$path" 38837 fi 38838 38839 if test "x$new_path" = x; then 38840 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MT, which resolves as \"$complete\", is not found." >&5 38841 $as_echo "$as_me: The path of MT, which resolves as \"$complete\", is not found." >&6;} 38842 has_space=`$ECHO "$complete" | $GREP " "` 38843 if test "x$has_space" != x; then 38844 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 38845 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 38846 fi 38847 as_fn_error $? "Cannot locate the the path of MT" "$LINENO" 5 38848 fi 38849 fi 38850 38851 # Now join together the path and the arguments once again 38852 if test "x$arguments" != xEOL; then 38853 new_complete="$new_path ${arguments% *}" 38854 else 38855 new_complete="$new_path" 38856 fi 38857 38858 if test "x$complete" != "x$new_complete"; then 38859 MT="$new_complete" 38860 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MT to \"$new_complete\"" >&5 38861 $as_echo "$as_me: Rewriting MT to \"$new_complete\"" >&6;} 38862 fi 38863 fi 38864 38865 # Setup the resource compiler (RC) 38866 # Extract the first word of "rc", so it can be a program name with args. 38867 set dummy rc; ac_word=$2 38868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 38869 $as_echo_n "checking for $ac_word... " >&6; } 38870 if ${ac_cv_prog_RC+:} false; then : 38871 $as_echo_n "(cached) " >&6 38872 else 38873 if test -n "$RC"; then 38874 ac_cv_prog_RC="$RC" # Let the user override the test. 38875 else 38876 ac_prog_rejected=no 38877 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 38878 for as_dir in $PATH 38879 do 38880 IFS=$as_save_IFS 38881 test -z "$as_dir" && as_dir=. 38882 for ac_exec_ext in '' $ac_executable_extensions; do 38883 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 38884 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/bin/rc"; then 38885 ac_prog_rejected=yes 38886 continue 38887 fi 38888 ac_cv_prog_RC="rc" 38889 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 38890 break 2 38891 fi 38892 done 38893 done 38894 IFS=$as_save_IFS 38895 38896 if test $ac_prog_rejected = yes; then 38897 # We found a bogon in the path, so make sure we never use it. 38898 set dummy $ac_cv_prog_RC 38899 shift 38900 if test $# != 0; then 38901 # We chose a different compiler from the bogus one. 38902 # However, it has the same basename, so the bogon will be chosen 38903 # first if we set RC to just the basename; use the full file name. 38904 shift 38905 ac_cv_prog_RC="$as_dir/$ac_word${1+' '}$@" 38906 fi 38907 fi 38908 fi 38909 fi 38910 RC=$ac_cv_prog_RC 38911 if test -n "$RC"; then 38912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RC" >&5 38913 $as_echo "$RC" >&6; } 38914 else 38915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 38916 $as_echo "no" >&6; } 38917 fi 38918 38919 38920 38921 # Only process if variable expands to non-empty 38922 38923 if test "x$RC" != x; then 38924 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 38925 38926 # First separate the path from the arguments. This will split at the first 38927 # space. 38928 complete="$RC" 38929 path="${complete%% *}" 38930 tmp="$complete EOL" 38931 arguments="${tmp#* }" 38932 38933 # Input might be given as Windows format, start by converting to 38934 # unix format. 38935 new_path=`$CYGPATH -u "$path"` 38936 38937 # Now try to locate executable using which 38938 new_path=`$WHICH "$new_path" 2> /dev/null` 38939 # bat and cmd files are not always considered executable in cygwin causing which 38940 # to not find them 38941 if test "x$new_path" = x \ 38942 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 38943 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 38944 new_path=`$CYGPATH -u "$path"` 38945 fi 38946 if test "x$new_path" = x; then 38947 # Oops. Which didn't find the executable. 38948 # The splitting of arguments from the executable at a space might have been incorrect, 38949 # since paths with space are more likely in Windows. Give it another try with the whole 38950 # argument. 38951 path="$complete" 38952 arguments="EOL" 38953 new_path=`$CYGPATH -u "$path"` 38954 new_path=`$WHICH "$new_path" 2> /dev/null` 38955 # bat and cmd files are not always considered executable in cygwin causing which 38956 # to not find them 38957 if test "x$new_path" = x \ 38958 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 38959 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 38960 new_path=`$CYGPATH -u "$path"` 38961 fi 38962 if test "x$new_path" = x; then 38963 # It's still not found. Now this is an unrecoverable error. 38964 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of RC, which resolves as \"$complete\", is not found." >&5 38965 $as_echo "$as_me: The path of RC, which resolves as \"$complete\", is not found." >&6;} 38966 has_space=`$ECHO "$complete" | $GREP " "` 38967 if test "x$has_space" != x; then 38968 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 38969 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 38970 fi 38971 as_fn_error $? "Cannot locate the the path of RC" "$LINENO" 5 38972 fi 38973 fi 38974 38975 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 38976 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 38977 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 38978 # "foo.exe" is OK but "foo" is an error. 38979 # 38980 # This test is therefore slightly more accurate than "test -f" to check for file presence. 38981 # It is also a way to make sure we got the proper file name for the real test later on. 38982 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 38983 if test "x$test_shortpath" = x; then 38984 # Short path failed, file does not exist as specified. 38985 # Try adding .exe or .cmd 38986 if test -f "${new_path}.exe"; then 38987 input_to_shortpath="${new_path}.exe" 38988 elif test -f "${new_path}.cmd"; then 38989 input_to_shortpath="${new_path}.cmd" 38990 else 38991 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of RC, which resolves as \"$new_path\", is invalid." >&5 38992 $as_echo "$as_me: The path of RC, which resolves as \"$new_path\", is invalid." >&6;} 38993 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 38994 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 38995 as_fn_error $? "Cannot locate the the path of RC" "$LINENO" 5 38996 fi 38997 else 38998 input_to_shortpath="$new_path" 38999 fi 39000 39001 # Call helper function which possibly converts this using DOS-style short mode. 39002 # If so, the updated path is stored in $new_path. 39003 new_path="$input_to_shortpath" 39004 39005 input_path="$input_to_shortpath" 39006 # Check if we need to convert this using DOS-style short mode. If the path 39007 # contains just simple characters, use it. Otherwise (spaces, weird characters), 39008 # take no chances and rewrite it. 39009 # Note: m4 eats our [], so we need to use [ and ] instead. 39010 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 39011 if test "x$has_forbidden_chars" != x; then 39012 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 39013 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 39014 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 39015 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 39016 # Going to short mode and back again did indeed matter. Since short mode is 39017 # case insensitive, let's make it lowercase to improve readability. 39018 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 39019 # Now convert it back to Unix-style (cygpath) 39020 input_path=`$CYGPATH -u "$shortmode_path"` 39021 new_path="$input_path" 39022 fi 39023 fi 39024 39025 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 39026 if test "x$test_cygdrive_prefix" = x; then 39027 # As a simple fix, exclude /usr/bin since it's not a real path. 39028 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 39029 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 39030 # a path prefixed by /cygdrive for fixpath to work. 39031 new_path="$CYGWIN_ROOT_PATH$input_path" 39032 fi 39033 fi 39034 39035 # remove trailing .exe if any 39036 new_path="${new_path/%.exe/}" 39037 39038 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 39039 39040 # First separate the path from the arguments. This will split at the first 39041 # space. 39042 complete="$RC" 39043 path="${complete%% *}" 39044 tmp="$complete EOL" 39045 arguments="${tmp#* }" 39046 39047 # Input might be given as Windows format, start by converting to 39048 # unix format. 39049 new_path="$path" 39050 39051 windows_path="$new_path" 39052 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 39053 unix_path=`$CYGPATH -u "$windows_path"` 39054 new_path="$unix_path" 39055 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 39056 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 39057 new_path="$unix_path" 39058 fi 39059 39060 39061 # Now try to locate executable using which 39062 new_path=`$WHICH "$new_path" 2> /dev/null` 39063 39064 if test "x$new_path" = x; then 39065 # Oops. Which didn't find the executable. 39066 # The splitting of arguments from the executable at a space might have been incorrect, 39067 # since paths with space are more likely in Windows. Give it another try with the whole 39068 # argument. 39069 path="$complete" 39070 arguments="EOL" 39071 new_path="$path" 39072 39073 windows_path="$new_path" 39074 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 39075 unix_path=`$CYGPATH -u "$windows_path"` 39076 new_path="$unix_path" 39077 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 39078 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 39079 new_path="$unix_path" 39080 fi 39081 39082 39083 new_path=`$WHICH "$new_path" 2> /dev/null` 39084 # bat and cmd files are not always considered executable in MSYS causing which 39085 # to not find them 39086 if test "x$new_path" = x \ 39087 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 39088 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 39089 new_path="$path" 39090 39091 windows_path="$new_path" 39092 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 39093 unix_path=`$CYGPATH -u "$windows_path"` 39094 new_path="$unix_path" 39095 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 39096 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 39097 new_path="$unix_path" 39098 fi 39099 39100 fi 39101 39102 if test "x$new_path" = x; then 39103 # It's still not found. Now this is an unrecoverable error. 39104 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of RC, which resolves as \"$complete\", is not found." >&5 39105 $as_echo "$as_me: The path of RC, which resolves as \"$complete\", is not found." >&6;} 39106 has_space=`$ECHO "$complete" | $GREP " "` 39107 if test "x$has_space" != x; then 39108 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 39109 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 39110 fi 39111 as_fn_error $? "Cannot locate the the path of RC" "$LINENO" 5 39112 fi 39113 fi 39114 39115 # Now new_path has a complete unix path to the binary 39116 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 39117 # Keep paths in /bin as-is, but remove trailing .exe if any 39118 new_path="${new_path/%.exe/}" 39119 # Do not save /bin paths to all_fixpath_prefixes! 39120 else 39121 # Not in mixed or Windows style, start by that. 39122 new_path=`cmd //c echo $new_path` 39123 39124 input_path="$new_path" 39125 # Check if we need to convert this using DOS-style short mode. If the path 39126 # contains just simple characters, use it. Otherwise (spaces, weird characters), 39127 # take no chances and rewrite it. 39128 # Note: m4 eats our [], so we need to use [ and ] instead. 39129 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 39130 if test "x$has_forbidden_chars" != x; then 39131 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 39132 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 39133 fi 39134 39135 # Output is in $new_path 39136 39137 windows_path="$new_path" 39138 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 39139 unix_path=`$CYGPATH -u "$windows_path"` 39140 new_path="$unix_path" 39141 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 39142 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 39143 new_path="$unix_path" 39144 fi 39145 39146 # remove trailing .exe if any 39147 new_path="${new_path/%.exe/}" 39148 39149 # Save the first 10 bytes of this path to the storage, so fixpath can work. 39150 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 39151 fi 39152 39153 else 39154 # We're on a unix platform. Hooray! :) 39155 # First separate the path from the arguments. This will split at the first 39156 # space. 39157 complete="$RC" 39158 path="${complete%% *}" 39159 tmp="$complete EOL" 39160 arguments="${tmp#* }" 39161 39162 # Cannot rely on the command "which" here since it doesn't always work. 39163 is_absolute_path=`$ECHO "$path" | $GREP ^/` 39164 if test -z "$is_absolute_path"; then 39165 # Path to executable is not absolute. Find it. 39166 IFS_save="$IFS" 39167 IFS=: 39168 for p in $PATH; do 39169 if test -f "$p/$path" && test -x "$p/$path"; then 39170 new_path="$p/$path" 39171 break 39172 fi 39173 done 39174 IFS="$IFS_save" 39175 else 39176 # This is an absolute path, we can use it without further modifications. 39177 new_path="$path" 39178 fi 39179 39180 if test "x$new_path" = x; then 39181 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of RC, which resolves as \"$complete\", is not found." >&5 39182 $as_echo "$as_me: The path of RC, which resolves as \"$complete\", is not found." >&6;} 39183 has_space=`$ECHO "$complete" | $GREP " "` 39184 if test "x$has_space" != x; then 39185 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 39186 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 39187 fi 39188 as_fn_error $? "Cannot locate the the path of RC" "$LINENO" 5 39189 fi 39190 fi 39191 39192 # Now join together the path and the arguments once again 39193 if test "x$arguments" != xEOL; then 39194 new_complete="$new_path ${arguments% *}" 39195 else 39196 new_complete="$new_path" 39197 fi 39198 39199 if test "x$complete" != "x$new_complete"; then 39200 RC="$new_complete" 39201 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting RC to \"$new_complete\"" >&5 39202 $as_echo "$as_me: Rewriting RC to \"$new_complete\"" >&6;} 39203 fi 39204 fi 39205 39206 # Extract the first word of "dumpbin", so it can be a program name with args. 39207 set dummy dumpbin; ac_word=$2 39208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 39209 $as_echo_n "checking for $ac_word... " >&6; } 39210 if ${ac_cv_prog_DUMPBIN+:} false; then : 39211 $as_echo_n "(cached) " >&6 39212 else 39213 if test -n "$DUMPBIN"; then 39214 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 39215 else 39216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 39217 for as_dir in $PATH 39218 do 39219 IFS=$as_save_IFS 39220 test -z "$as_dir" && as_dir=. 39221 for ac_exec_ext in '' $ac_executable_extensions; do 39222 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 39223 ac_cv_prog_DUMPBIN="dumpbin" 39224 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 39225 break 2 39226 fi 39227 done 39228 done 39229 IFS=$as_save_IFS 39230 39231 fi 39232 fi 39233 DUMPBIN=$ac_cv_prog_DUMPBIN 39234 if test -n "$DUMPBIN"; then 39235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 39236 $as_echo "$DUMPBIN" >&6; } 39237 else 39238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 39239 $as_echo "no" >&6; } 39240 fi 39241 39242 39243 39244 # Only process if variable expands to non-empty 39245 39246 if test "x$DUMPBIN" != x; then 39247 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 39248 39249 # First separate the path from the arguments. This will split at the first 39250 # space. 39251 complete="$DUMPBIN" 39252 path="${complete%% *}" 39253 tmp="$complete EOL" 39254 arguments="${tmp#* }" 39255 39256 # Input might be given as Windows format, start by converting to 39257 # unix format. 39258 new_path=`$CYGPATH -u "$path"` 39259 39260 # Now try to locate executable using which 39261 new_path=`$WHICH "$new_path" 2> /dev/null` 39262 # bat and cmd files are not always considered executable in cygwin causing which 39263 # to not find them 39264 if test "x$new_path" = x \ 39265 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 39266 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 39267 new_path=`$CYGPATH -u "$path"` 39268 fi 39269 if test "x$new_path" = x; then 39270 # Oops. Which didn't find the executable. 39271 # The splitting of arguments from the executable at a space might have been incorrect, 39272 # since paths with space are more likely in Windows. Give it another try with the whole 39273 # argument. 39274 path="$complete" 39275 arguments="EOL" 39276 new_path=`$CYGPATH -u "$path"` 39277 new_path=`$WHICH "$new_path" 2> /dev/null` 39278 # bat and cmd files are not always considered executable in cygwin causing which 39279 # to not find them 39280 if test "x$new_path" = x \ 39281 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 39282 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 39283 new_path=`$CYGPATH -u "$path"` 39284 fi 39285 if test "x$new_path" = x; then 39286 # It's still not found. Now this is an unrecoverable error. 39287 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of DUMPBIN, which resolves as \"$complete\", is not found." >&5 39288 $as_echo "$as_me: The path of DUMPBIN, which resolves as \"$complete\", is not found." >&6;} 39289 has_space=`$ECHO "$complete" | $GREP " "` 39290 if test "x$has_space" != x; then 39291 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 39292 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 39293 fi 39294 as_fn_error $? "Cannot locate the the path of DUMPBIN" "$LINENO" 5 39295 fi 39296 fi 39297 39298 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 39299 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 39300 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 39301 # "foo.exe" is OK but "foo" is an error. 39302 # 39303 # This test is therefore slightly more accurate than "test -f" to check for file presence. 39304 # It is also a way to make sure we got the proper file name for the real test later on. 39305 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 39306 if test "x$test_shortpath" = x; then 39307 # Short path failed, file does not exist as specified. 39308 # Try adding .exe or .cmd 39309 if test -f "${new_path}.exe"; then 39310 input_to_shortpath="${new_path}.exe" 39311 elif test -f "${new_path}.cmd"; then 39312 input_to_shortpath="${new_path}.cmd" 39313 else 39314 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of DUMPBIN, which resolves as \"$new_path\", is invalid." >&5 39315 $as_echo "$as_me: The path of DUMPBIN, which resolves as \"$new_path\", is invalid." >&6;} 39316 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 39317 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 39318 as_fn_error $? "Cannot locate the the path of DUMPBIN" "$LINENO" 5 39319 fi 39320 else 39321 input_to_shortpath="$new_path" 39322 fi 39323 39324 # Call helper function which possibly converts this using DOS-style short mode. 39325 # If so, the updated path is stored in $new_path. 39326 new_path="$input_to_shortpath" 39327 39328 input_path="$input_to_shortpath" 39329 # Check if we need to convert this using DOS-style short mode. If the path 39330 # contains just simple characters, use it. Otherwise (spaces, weird characters), 39331 # take no chances and rewrite it. 39332 # Note: m4 eats our [], so we need to use [ and ] instead. 39333 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 39334 if test "x$has_forbidden_chars" != x; then 39335 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 39336 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 39337 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 39338 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 39339 # Going to short mode and back again did indeed matter. Since short mode is 39340 # case insensitive, let's make it lowercase to improve readability. 39341 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 39342 # Now convert it back to Unix-style (cygpath) 39343 input_path=`$CYGPATH -u "$shortmode_path"` 39344 new_path="$input_path" 39345 fi 39346 fi 39347 39348 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 39349 if test "x$test_cygdrive_prefix" = x; then 39350 # As a simple fix, exclude /usr/bin since it's not a real path. 39351 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 39352 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 39353 # a path prefixed by /cygdrive for fixpath to work. 39354 new_path="$CYGWIN_ROOT_PATH$input_path" 39355 fi 39356 fi 39357 39358 # remove trailing .exe if any 39359 new_path="${new_path/%.exe/}" 39360 39361 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 39362 39363 # First separate the path from the arguments. This will split at the first 39364 # space. 39365 complete="$DUMPBIN" 39366 path="${complete%% *}" 39367 tmp="$complete EOL" 39368 arguments="${tmp#* }" 39369 39370 # Input might be given as Windows format, start by converting to 39371 # unix format. 39372 new_path="$path" 39373 39374 windows_path="$new_path" 39375 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 39376 unix_path=`$CYGPATH -u "$windows_path"` 39377 new_path="$unix_path" 39378 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 39379 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 39380 new_path="$unix_path" 39381 fi 39382 39383 39384 # Now try to locate executable using which 39385 new_path=`$WHICH "$new_path" 2> /dev/null` 39386 39387 if test "x$new_path" = x; then 39388 # Oops. Which didn't find the executable. 39389 # The splitting of arguments from the executable at a space might have been incorrect, 39390 # since paths with space are more likely in Windows. Give it another try with the whole 39391 # argument. 39392 path="$complete" 39393 arguments="EOL" 39394 new_path="$path" 39395 39396 windows_path="$new_path" 39397 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 39398 unix_path=`$CYGPATH -u "$windows_path"` 39399 new_path="$unix_path" 39400 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 39401 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 39402 new_path="$unix_path" 39403 fi 39404 39405 39406 new_path=`$WHICH "$new_path" 2> /dev/null` 39407 # bat and cmd files are not always considered executable in MSYS causing which 39408 # to not find them 39409 if test "x$new_path" = x \ 39410 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 39411 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 39412 new_path="$path" 39413 39414 windows_path="$new_path" 39415 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 39416 unix_path=`$CYGPATH -u "$windows_path"` 39417 new_path="$unix_path" 39418 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 39419 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 39420 new_path="$unix_path" 39421 fi 39422 39423 fi 39424 39425 if test "x$new_path" = x; then 39426 # It's still not found. Now this is an unrecoverable error. 39427 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of DUMPBIN, which resolves as \"$complete\", is not found." >&5 39428 $as_echo "$as_me: The path of DUMPBIN, which resolves as \"$complete\", is not found." >&6;} 39429 has_space=`$ECHO "$complete" | $GREP " "` 39430 if test "x$has_space" != x; then 39431 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 39432 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 39433 fi 39434 as_fn_error $? "Cannot locate the the path of DUMPBIN" "$LINENO" 5 39435 fi 39436 fi 39437 39438 # Now new_path has a complete unix path to the binary 39439 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 39440 # Keep paths in /bin as-is, but remove trailing .exe if any 39441 new_path="${new_path/%.exe/}" 39442 # Do not save /bin paths to all_fixpath_prefixes! 39443 else 39444 # Not in mixed or Windows style, start by that. 39445 new_path=`cmd //c echo $new_path` 39446 39447 input_path="$new_path" 39448 # Check if we need to convert this using DOS-style short mode. If the path 39449 # contains just simple characters, use it. Otherwise (spaces, weird characters), 39450 # take no chances and rewrite it. 39451 # Note: m4 eats our [], so we need to use [ and ] instead. 39452 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 39453 if test "x$has_forbidden_chars" != x; then 39454 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 39455 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 39456 fi 39457 39458 # Output is in $new_path 39459 39460 windows_path="$new_path" 39461 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 39462 unix_path=`$CYGPATH -u "$windows_path"` 39463 new_path="$unix_path" 39464 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 39465 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 39466 new_path="$unix_path" 39467 fi 39468 39469 # remove trailing .exe if any 39470 new_path="${new_path/%.exe/}" 39471 39472 # Save the first 10 bytes of this path to the storage, so fixpath can work. 39473 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 39474 fi 39475 39476 else 39477 # We're on a unix platform. Hooray! :) 39478 # First separate the path from the arguments. This will split at the first 39479 # space. 39480 complete="$DUMPBIN" 39481 path="${complete%% *}" 39482 tmp="$complete EOL" 39483 arguments="${tmp#* }" 39484 39485 # Cannot rely on the command "which" here since it doesn't always work. 39486 is_absolute_path=`$ECHO "$path" | $GREP ^/` 39487 if test -z "$is_absolute_path"; then 39488 # Path to executable is not absolute. Find it. 39489 IFS_save="$IFS" 39490 IFS=: 39491 for p in $PATH; do 39492 if test -f "$p/$path" && test -x "$p/$path"; then 39493 new_path="$p/$path" 39494 break 39495 fi 39496 done 39497 IFS="$IFS_save" 39498 else 39499 # This is an absolute path, we can use it without further modifications. 39500 new_path="$path" 39501 fi 39502 39503 if test "x$new_path" = x; then 39504 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of DUMPBIN, which resolves as \"$complete\", is not found." >&5 39505 $as_echo "$as_me: The path of DUMPBIN, which resolves as \"$complete\", is not found." >&6;} 39506 has_space=`$ECHO "$complete" | $GREP " "` 39507 if test "x$has_space" != x; then 39508 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 39509 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 39510 fi 39511 as_fn_error $? "Cannot locate the the path of DUMPBIN" "$LINENO" 5 39512 fi 39513 fi 39514 39515 # Now join together the path and the arguments once again 39516 if test "x$arguments" != xEOL; then 39517 new_complete="$new_path ${arguments% *}" 39518 else 39519 new_complete="$new_path" 39520 fi 39521 39522 if test "x$complete" != "x$new_complete"; then 39523 DUMPBIN="$new_complete" 39524 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting DUMPBIN to \"$new_complete\"" >&5 39525 $as_echo "$as_me: Rewriting DUMPBIN to \"$new_complete\"" >&6;} 39526 fi 39527 fi 39528 39529 # We need to check for 'msbuild.exe' because at the place where we expect to 39530 # find 'msbuild.exe' there's also a directory called 'msbuild' and configure 39531 # won't find the 'msbuild.exe' executable in that case (and the 39532 # 'ac_executable_extensions' is unusable due to performance reasons). 39533 # Notice that we intentionally don't fix up the path to MSBUILD because we 39534 # will call it in a DOS shell during freetype detection on Windows (see 39535 # 'LIB_SETUP_FREETYPE' in "libraries.m4" 39536 # Extract the first word of "msbuild.exe", so it can be a program name with args. 39537 set dummy msbuild.exe; ac_word=$2 39538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 39539 $as_echo_n "checking for $ac_word... " >&6; } 39540 if ${ac_cv_prog_MSBUILD+:} false; then : 39541 $as_echo_n "(cached) " >&6 39542 else 39543 if test -n "$MSBUILD"; then 39544 ac_cv_prog_MSBUILD="$MSBUILD" # Let the user override the test. 39545 else 39546 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 39547 for as_dir in $PATH 39548 do 39549 IFS=$as_save_IFS 39550 test -z "$as_dir" && as_dir=. 39551 for ac_exec_ext in '' $ac_executable_extensions; do 39552 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 39553 ac_cv_prog_MSBUILD="msbuild.exe" 39554 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 39555 break 2 39556 fi 39557 done 39558 done 39559 IFS=$as_save_IFS 39560 39561 fi 39562 fi 39563 MSBUILD=$ac_cv_prog_MSBUILD 39564 if test -n "$MSBUILD"; then 39565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSBUILD" >&5 39566 $as_echo "$MSBUILD" >&6; } 39567 else 39568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 39569 $as_echo "no" >&6; } 39570 fi 39571 39572 39573 fi 39574 39575 if test "x$OPENJDK_TARGET_OS" = xsolaris; then 39576 39577 39578 # Publish this variable in the help. 39579 39580 39581 if [ -z "${STRIP+x}" ]; then 39582 # The variable is not set by user, try to locate tool using the code snippet 39583 for ac_prog in strip 39584 do 39585 # Extract the first word of "$ac_prog", so it can be a program name with args. 39586 set dummy $ac_prog; ac_word=$2 39587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 39588 $as_echo_n "checking for $ac_word... " >&6; } 39589 if ${ac_cv_path_STRIP+:} false; then : 39590 $as_echo_n "(cached) " >&6 39591 else 39592 case $STRIP in 39593 [\\/]* | ?:[\\/]*) 39594 ac_cv_path_STRIP="$STRIP" # Let the user override the test with a path. 39595 ;; 39596 *) 39597 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 39598 for as_dir in $PATH 39599 do 39600 IFS=$as_save_IFS 39601 test -z "$as_dir" && as_dir=. 39602 for ac_exec_ext in '' $ac_executable_extensions; do 39603 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 39604 ac_cv_path_STRIP="$as_dir/$ac_word$ac_exec_ext" 39605 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 39606 break 2 39607 fi 39608 done 39609 done 39610 IFS=$as_save_IFS 39611 39612 ;; 39613 esac 39614 fi 39615 STRIP=$ac_cv_path_STRIP 39616 if test -n "$STRIP"; then 39617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 39618 $as_echo "$STRIP" >&6; } 39619 else 39620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 39621 $as_echo "no" >&6; } 39622 fi 39623 39624 39625 test -n "$STRIP" && break 39626 done 39627 39628 else 39629 # The variable is set, but is it from the command line or the environment? 39630 39631 # Try to remove the string !STRIP! from our list. 39632 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!STRIP!/} 39633 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 39634 # If it failed, the variable was not from the command line. Ignore it, 39635 # but warn the user (except for BASH, which is always set by the calling BASH). 39636 if test "xSTRIP" != xBASH; then 39637 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of STRIP from the environment. Use command line variables instead." >&5 39638 $as_echo "$as_me: WARNING: Ignoring value of STRIP from the environment. Use command line variables instead." >&2;} 39639 fi 39640 # Try to locate tool using the code snippet 39641 for ac_prog in strip 39642 do 39643 # Extract the first word of "$ac_prog", so it can be a program name with args. 39644 set dummy $ac_prog; ac_word=$2 39645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 39646 $as_echo_n "checking for $ac_word... " >&6; } 39647 if ${ac_cv_path_STRIP+:} false; then : 39648 $as_echo_n "(cached) " >&6 39649 else 39650 case $STRIP in 39651 [\\/]* | ?:[\\/]*) 39652 ac_cv_path_STRIP="$STRIP" # Let the user override the test with a path. 39653 ;; 39654 *) 39655 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 39656 for as_dir in $PATH 39657 do 39658 IFS=$as_save_IFS 39659 test -z "$as_dir" && as_dir=. 39660 for ac_exec_ext in '' $ac_executable_extensions; do 39661 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 39662 ac_cv_path_STRIP="$as_dir/$ac_word$ac_exec_ext" 39663 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 39664 break 2 39665 fi 39666 done 39667 done 39668 IFS=$as_save_IFS 39669 39670 ;; 39671 esac 39672 fi 39673 STRIP=$ac_cv_path_STRIP 39674 if test -n "$STRIP"; then 39675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 39676 $as_echo "$STRIP" >&6; } 39677 else 39678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 39679 $as_echo "no" >&6; } 39680 fi 39681 39682 39683 test -n "$STRIP" && break 39684 done 39685 39686 else 39687 # If it succeeded, then it was overridden by the user. We will use it 39688 # for the tool. 39689 39690 # First remove it from the list of overridden variables, so we can test 39691 # for unknown variables in the end. 39692 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 39693 39694 # Check if we try to supply an empty value 39695 if test "x$STRIP" = x; then 39696 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool STRIP= (no value)" >&5 39697 $as_echo "$as_me: Setting user supplied tool STRIP= (no value)" >&6;} 39698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for STRIP" >&5 39699 $as_echo_n "checking for STRIP... " >&6; } 39700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 39701 $as_echo "disabled" >&6; } 39702 else 39703 # Check if the provided tool contains a complete path. 39704 tool_specified="$STRIP" 39705 tool_basename="${tool_specified##*/}" 39706 if test "x$tool_basename" = "x$tool_specified"; then 39707 # A command without a complete path is provided, search $PATH. 39708 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool STRIP=$tool_basename" >&5 39709 $as_echo "$as_me: Will search for user supplied tool STRIP=$tool_basename" >&6;} 39710 # Extract the first word of "$tool_basename", so it can be a program name with args. 39711 set dummy $tool_basename; ac_word=$2 39712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 39713 $as_echo_n "checking for $ac_word... " >&6; } 39714 if ${ac_cv_path_STRIP+:} false; then : 39715 $as_echo_n "(cached) " >&6 39716 else 39717 case $STRIP in 39718 [\\/]* | ?:[\\/]*) 39719 ac_cv_path_STRIP="$STRIP" # Let the user override the test with a path. 39720 ;; 39721 *) 39722 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 39723 for as_dir in $PATH 39724 do 39725 IFS=$as_save_IFS 39726 test -z "$as_dir" && as_dir=. 39727 for ac_exec_ext in '' $ac_executable_extensions; do 39728 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 39729 ac_cv_path_STRIP="$as_dir/$ac_word$ac_exec_ext" 39730 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 39731 break 2 39732 fi 39733 done 39734 done 39735 IFS=$as_save_IFS 39736 39737 ;; 39738 esac 39739 fi 39740 STRIP=$ac_cv_path_STRIP 39741 if test -n "$STRIP"; then 39742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 39743 $as_echo "$STRIP" >&6; } 39744 else 39745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 39746 $as_echo "no" >&6; } 39747 fi 39748 39749 39750 if test "x$STRIP" = x; then 39751 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 39752 fi 39753 else 39754 # Otherwise we believe it is a complete path. Use it as it is. 39755 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool STRIP=$tool_specified" >&5 39756 $as_echo "$as_me: Will use user supplied tool STRIP=$tool_specified" >&6;} 39757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for STRIP" >&5 39758 $as_echo_n "checking for STRIP... " >&6; } 39759 if test ! -x "$tool_specified"; then 39760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 39761 $as_echo "not found" >&6; } 39762 as_fn_error $? "User supplied tool STRIP=$tool_specified does not exist or is not executable" "$LINENO" 5 39763 fi 39764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 39765 $as_echo "$tool_specified" >&6; } 39766 fi 39767 fi 39768 fi 39769 39770 fi 39771 39772 39773 39774 # Only process if variable expands to non-empty 39775 39776 if test "x$STRIP" != x; then 39777 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 39778 39779 # First separate the path from the arguments. This will split at the first 39780 # space. 39781 complete="$STRIP" 39782 path="${complete%% *}" 39783 tmp="$complete EOL" 39784 arguments="${tmp#* }" 39785 39786 # Input might be given as Windows format, start by converting to 39787 # unix format. 39788 new_path=`$CYGPATH -u "$path"` 39789 39790 # Now try to locate executable using which 39791 new_path=`$WHICH "$new_path" 2> /dev/null` 39792 # bat and cmd files are not always considered executable in cygwin causing which 39793 # to not find them 39794 if test "x$new_path" = x \ 39795 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 39796 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 39797 new_path=`$CYGPATH -u "$path"` 39798 fi 39799 if test "x$new_path" = x; then 39800 # Oops. Which didn't find the executable. 39801 # The splitting of arguments from the executable at a space might have been incorrect, 39802 # since paths with space are more likely in Windows. Give it another try with the whole 39803 # argument. 39804 path="$complete" 39805 arguments="EOL" 39806 new_path=`$CYGPATH -u "$path"` 39807 new_path=`$WHICH "$new_path" 2> /dev/null` 39808 # bat and cmd files are not always considered executable in cygwin causing which 39809 # to not find them 39810 if test "x$new_path" = x \ 39811 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 39812 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 39813 new_path=`$CYGPATH -u "$path"` 39814 fi 39815 if test "x$new_path" = x; then 39816 # It's still not found. Now this is an unrecoverable error. 39817 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of STRIP, which resolves as \"$complete\", is not found." >&5 39818 $as_echo "$as_me: The path of STRIP, which resolves as \"$complete\", is not found." >&6;} 39819 has_space=`$ECHO "$complete" | $GREP " "` 39820 if test "x$has_space" != x; then 39821 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 39822 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 39823 fi 39824 as_fn_error $? "Cannot locate the the path of STRIP" "$LINENO" 5 39825 fi 39826 fi 39827 39828 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 39829 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 39830 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 39831 # "foo.exe" is OK but "foo" is an error. 39832 # 39833 # This test is therefore slightly more accurate than "test -f" to check for file presence. 39834 # It is also a way to make sure we got the proper file name for the real test later on. 39835 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 39836 if test "x$test_shortpath" = x; then 39837 # Short path failed, file does not exist as specified. 39838 # Try adding .exe or .cmd 39839 if test -f "${new_path}.exe"; then 39840 input_to_shortpath="${new_path}.exe" 39841 elif test -f "${new_path}.cmd"; then 39842 input_to_shortpath="${new_path}.cmd" 39843 else 39844 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of STRIP, which resolves as \"$new_path\", is invalid." >&5 39845 $as_echo "$as_me: The path of STRIP, which resolves as \"$new_path\", is invalid." >&6;} 39846 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 39847 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 39848 as_fn_error $? "Cannot locate the the path of STRIP" "$LINENO" 5 39849 fi 39850 else 39851 input_to_shortpath="$new_path" 39852 fi 39853 39854 # Call helper function which possibly converts this using DOS-style short mode. 39855 # If so, the updated path is stored in $new_path. 39856 new_path="$input_to_shortpath" 39857 39858 input_path="$input_to_shortpath" 39859 # Check if we need to convert this using DOS-style short mode. If the path 39860 # contains just simple characters, use it. Otherwise (spaces, weird characters), 39861 # take no chances and rewrite it. 39862 # Note: m4 eats our [], so we need to use [ and ] instead. 39863 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 39864 if test "x$has_forbidden_chars" != x; then 39865 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 39866 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 39867 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 39868 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 39869 # Going to short mode and back again did indeed matter. Since short mode is 39870 # case insensitive, let's make it lowercase to improve readability. 39871 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 39872 # Now convert it back to Unix-style (cygpath) 39873 input_path=`$CYGPATH -u "$shortmode_path"` 39874 new_path="$input_path" 39875 fi 39876 fi 39877 39878 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 39879 if test "x$test_cygdrive_prefix" = x; then 39880 # As a simple fix, exclude /usr/bin since it's not a real path. 39881 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 39882 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 39883 # a path prefixed by /cygdrive for fixpath to work. 39884 new_path="$CYGWIN_ROOT_PATH$input_path" 39885 fi 39886 fi 39887 39888 # remove trailing .exe if any 39889 new_path="${new_path/%.exe/}" 39890 39891 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 39892 39893 # First separate the path from the arguments. This will split at the first 39894 # space. 39895 complete="$STRIP" 39896 path="${complete%% *}" 39897 tmp="$complete EOL" 39898 arguments="${tmp#* }" 39899 39900 # Input might be given as Windows format, start by converting to 39901 # unix format. 39902 new_path="$path" 39903 39904 windows_path="$new_path" 39905 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 39906 unix_path=`$CYGPATH -u "$windows_path"` 39907 new_path="$unix_path" 39908 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 39909 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 39910 new_path="$unix_path" 39911 fi 39912 39913 39914 # Now try to locate executable using which 39915 new_path=`$WHICH "$new_path" 2> /dev/null` 39916 39917 if test "x$new_path" = x; then 39918 # Oops. Which didn't find the executable. 39919 # The splitting of arguments from the executable at a space might have been incorrect, 39920 # since paths with space are more likely in Windows. Give it another try with the whole 39921 # argument. 39922 path="$complete" 39923 arguments="EOL" 39924 new_path="$path" 39925 39926 windows_path="$new_path" 39927 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 39928 unix_path=`$CYGPATH -u "$windows_path"` 39929 new_path="$unix_path" 39930 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 39931 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 39932 new_path="$unix_path" 39933 fi 39934 39935 39936 new_path=`$WHICH "$new_path" 2> /dev/null` 39937 # bat and cmd files are not always considered executable in MSYS causing which 39938 # to not find them 39939 if test "x$new_path" = x \ 39940 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 39941 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 39942 new_path="$path" 39943 39944 windows_path="$new_path" 39945 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 39946 unix_path=`$CYGPATH -u "$windows_path"` 39947 new_path="$unix_path" 39948 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 39949 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 39950 new_path="$unix_path" 39951 fi 39952 39953 fi 39954 39955 if test "x$new_path" = x; then 39956 # It's still not found. Now this is an unrecoverable error. 39957 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of STRIP, which resolves as \"$complete\", is not found." >&5 39958 $as_echo "$as_me: The path of STRIP, which resolves as \"$complete\", is not found." >&6;} 39959 has_space=`$ECHO "$complete" | $GREP " "` 39960 if test "x$has_space" != x; then 39961 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 39962 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 39963 fi 39964 as_fn_error $? "Cannot locate the the path of STRIP" "$LINENO" 5 39965 fi 39966 fi 39967 39968 # Now new_path has a complete unix path to the binary 39969 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 39970 # Keep paths in /bin as-is, but remove trailing .exe if any 39971 new_path="${new_path/%.exe/}" 39972 # Do not save /bin paths to all_fixpath_prefixes! 39973 else 39974 # Not in mixed or Windows style, start by that. 39975 new_path=`cmd //c echo $new_path` 39976 39977 input_path="$new_path" 39978 # Check if we need to convert this using DOS-style short mode. If the path 39979 # contains just simple characters, use it. Otherwise (spaces, weird characters), 39980 # take no chances and rewrite it. 39981 # Note: m4 eats our [], so we need to use [ and ] instead. 39982 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 39983 if test "x$has_forbidden_chars" != x; then 39984 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 39985 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 39986 fi 39987 39988 # Output is in $new_path 39989 39990 windows_path="$new_path" 39991 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 39992 unix_path=`$CYGPATH -u "$windows_path"` 39993 new_path="$unix_path" 39994 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 39995 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 39996 new_path="$unix_path" 39997 fi 39998 39999 # remove trailing .exe if any 40000 new_path="${new_path/%.exe/}" 40001 40002 # Save the first 10 bytes of this path to the storage, so fixpath can work. 40003 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 40004 fi 40005 40006 else 40007 # We're on a unix platform. Hooray! :) 40008 # First separate the path from the arguments. This will split at the first 40009 # space. 40010 complete="$STRIP" 40011 path="${complete%% *}" 40012 tmp="$complete EOL" 40013 arguments="${tmp#* }" 40014 40015 # Cannot rely on the command "which" here since it doesn't always work. 40016 is_absolute_path=`$ECHO "$path" | $GREP ^/` 40017 if test -z "$is_absolute_path"; then 40018 # Path to executable is not absolute. Find it. 40019 IFS_save="$IFS" 40020 IFS=: 40021 for p in $PATH; do 40022 if test -f "$p/$path" && test -x "$p/$path"; then 40023 new_path="$p/$path" 40024 break 40025 fi 40026 done 40027 IFS="$IFS_save" 40028 else 40029 # This is an absolute path, we can use it without further modifications. 40030 new_path="$path" 40031 fi 40032 40033 if test "x$new_path" = x; then 40034 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of STRIP, which resolves as \"$complete\", is not found." >&5 40035 $as_echo "$as_me: The path of STRIP, which resolves as \"$complete\", is not found." >&6;} 40036 has_space=`$ECHO "$complete" | $GREP " "` 40037 if test "x$has_space" != x; then 40038 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 40039 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 40040 fi 40041 as_fn_error $? "Cannot locate the the path of STRIP" "$LINENO" 5 40042 fi 40043 fi 40044 40045 # Now join together the path and the arguments once again 40046 if test "x$arguments" != xEOL; then 40047 new_complete="$new_path ${arguments% *}" 40048 else 40049 new_complete="$new_path" 40050 fi 40051 40052 if test "x$complete" != "x$new_complete"; then 40053 STRIP="$new_complete" 40054 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting STRIP to \"$new_complete\"" >&5 40055 $as_echo "$as_me: Rewriting STRIP to \"$new_complete\"" >&6;} 40056 fi 40057 fi 40058 40059 40060 40061 # Publish this variable in the help. 40062 40063 40064 if [ -z "${NM+x}" ]; then 40065 # The variable is not set by user, try to locate tool using the code snippet 40066 for ac_prog in nm 40067 do 40068 # Extract the first word of "$ac_prog", so it can be a program name with args. 40069 set dummy $ac_prog; ac_word=$2 40070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 40071 $as_echo_n "checking for $ac_word... " >&6; } 40072 if ${ac_cv_path_NM+:} false; then : 40073 $as_echo_n "(cached) " >&6 40074 else 40075 case $NM in 40076 [\\/]* | ?:[\\/]*) 40077 ac_cv_path_NM="$NM" # Let the user override the test with a path. 40078 ;; 40079 *) 40080 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 40081 for as_dir in $PATH 40082 do 40083 IFS=$as_save_IFS 40084 test -z "$as_dir" && as_dir=. 40085 for ac_exec_ext in '' $ac_executable_extensions; do 40086 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 40087 ac_cv_path_NM="$as_dir/$ac_word$ac_exec_ext" 40088 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 40089 break 2 40090 fi 40091 done 40092 done 40093 IFS=$as_save_IFS 40094 40095 ;; 40096 esac 40097 fi 40098 NM=$ac_cv_path_NM 40099 if test -n "$NM"; then 40100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5 40101 $as_echo "$NM" >&6; } 40102 else 40103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 40104 $as_echo "no" >&6; } 40105 fi 40106 40107 40108 test -n "$NM" && break 40109 done 40110 40111 else 40112 # The variable is set, but is it from the command line or the environment? 40113 40114 # Try to remove the string !NM! from our list. 40115 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!NM!/} 40116 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 40117 # If it failed, the variable was not from the command line. Ignore it, 40118 # but warn the user (except for BASH, which is always set by the calling BASH). 40119 if test "xNM" != xBASH; then 40120 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of NM from the environment. Use command line variables instead." >&5 40121 $as_echo "$as_me: WARNING: Ignoring value of NM from the environment. Use command line variables instead." >&2;} 40122 fi 40123 # Try to locate tool using the code snippet 40124 for ac_prog in nm 40125 do 40126 # Extract the first word of "$ac_prog", so it can be a program name with args. 40127 set dummy $ac_prog; ac_word=$2 40128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 40129 $as_echo_n "checking for $ac_word... " >&6; } 40130 if ${ac_cv_path_NM+:} false; then : 40131 $as_echo_n "(cached) " >&6 40132 else 40133 case $NM in 40134 [\\/]* | ?:[\\/]*) 40135 ac_cv_path_NM="$NM" # Let the user override the test with a path. 40136 ;; 40137 *) 40138 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 40139 for as_dir in $PATH 40140 do 40141 IFS=$as_save_IFS 40142 test -z "$as_dir" && as_dir=. 40143 for ac_exec_ext in '' $ac_executable_extensions; do 40144 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 40145 ac_cv_path_NM="$as_dir/$ac_word$ac_exec_ext" 40146 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 40147 break 2 40148 fi 40149 done 40150 done 40151 IFS=$as_save_IFS 40152 40153 ;; 40154 esac 40155 fi 40156 NM=$ac_cv_path_NM 40157 if test -n "$NM"; then 40158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5 40159 $as_echo "$NM" >&6; } 40160 else 40161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 40162 $as_echo "no" >&6; } 40163 fi 40164 40165 40166 test -n "$NM" && break 40167 done 40168 40169 else 40170 # If it succeeded, then it was overridden by the user. We will use it 40171 # for the tool. 40172 40173 # First remove it from the list of overridden variables, so we can test 40174 # for unknown variables in the end. 40175 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 40176 40177 # Check if we try to supply an empty value 40178 if test "x$NM" = x; then 40179 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool NM= (no value)" >&5 40180 $as_echo "$as_me: Setting user supplied tool NM= (no value)" >&6;} 40181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NM" >&5 40182 $as_echo_n "checking for NM... " >&6; } 40183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 40184 $as_echo "disabled" >&6; } 40185 else 40186 # Check if the provided tool contains a complete path. 40187 tool_specified="$NM" 40188 tool_basename="${tool_specified##*/}" 40189 if test "x$tool_basename" = "x$tool_specified"; then 40190 # A command without a complete path is provided, search $PATH. 40191 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool NM=$tool_basename" >&5 40192 $as_echo "$as_me: Will search for user supplied tool NM=$tool_basename" >&6;} 40193 # Extract the first word of "$tool_basename", so it can be a program name with args. 40194 set dummy $tool_basename; ac_word=$2 40195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 40196 $as_echo_n "checking for $ac_word... " >&6; } 40197 if ${ac_cv_path_NM+:} false; then : 40198 $as_echo_n "(cached) " >&6 40199 else 40200 case $NM in 40201 [\\/]* | ?:[\\/]*) 40202 ac_cv_path_NM="$NM" # Let the user override the test with a path. 40203 ;; 40204 *) 40205 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 40206 for as_dir in $PATH 40207 do 40208 IFS=$as_save_IFS 40209 test -z "$as_dir" && as_dir=. 40210 for ac_exec_ext in '' $ac_executable_extensions; do 40211 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 40212 ac_cv_path_NM="$as_dir/$ac_word$ac_exec_ext" 40213 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 40214 break 2 40215 fi 40216 done 40217 done 40218 IFS=$as_save_IFS 40219 40220 ;; 40221 esac 40222 fi 40223 NM=$ac_cv_path_NM 40224 if test -n "$NM"; then 40225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5 40226 $as_echo "$NM" >&6; } 40227 else 40228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 40229 $as_echo "no" >&6; } 40230 fi 40231 40232 40233 if test "x$NM" = x; then 40234 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 40235 fi 40236 else 40237 # Otherwise we believe it is a complete path. Use it as it is. 40238 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool NM=$tool_specified" >&5 40239 $as_echo "$as_me: Will use user supplied tool NM=$tool_specified" >&6;} 40240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NM" >&5 40241 $as_echo_n "checking for NM... " >&6; } 40242 if test ! -x "$tool_specified"; then 40243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 40244 $as_echo "not found" >&6; } 40245 as_fn_error $? "User supplied tool NM=$tool_specified does not exist or is not executable" "$LINENO" 5 40246 fi 40247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 40248 $as_echo "$tool_specified" >&6; } 40249 fi 40250 fi 40251 fi 40252 40253 fi 40254 40255 40256 40257 # Only process if variable expands to non-empty 40258 40259 if test "x$NM" != x; then 40260 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 40261 40262 # First separate the path from the arguments. This will split at the first 40263 # space. 40264 complete="$NM" 40265 path="${complete%% *}" 40266 tmp="$complete EOL" 40267 arguments="${tmp#* }" 40268 40269 # Input might be given as Windows format, start by converting to 40270 # unix format. 40271 new_path=`$CYGPATH -u "$path"` 40272 40273 # Now try to locate executable using which 40274 new_path=`$WHICH "$new_path" 2> /dev/null` 40275 # bat and cmd files are not always considered executable in cygwin causing which 40276 # to not find them 40277 if test "x$new_path" = x \ 40278 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 40279 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 40280 new_path=`$CYGPATH -u "$path"` 40281 fi 40282 if test "x$new_path" = x; then 40283 # Oops. Which didn't find the executable. 40284 # The splitting of arguments from the executable at a space might have been incorrect, 40285 # since paths with space are more likely in Windows. Give it another try with the whole 40286 # argument. 40287 path="$complete" 40288 arguments="EOL" 40289 new_path=`$CYGPATH -u "$path"` 40290 new_path=`$WHICH "$new_path" 2> /dev/null` 40291 # bat and cmd files are not always considered executable in cygwin causing which 40292 # to not find them 40293 if test "x$new_path" = x \ 40294 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 40295 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 40296 new_path=`$CYGPATH -u "$path"` 40297 fi 40298 if test "x$new_path" = x; then 40299 # It's still not found. Now this is an unrecoverable error. 40300 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of NM, which resolves as \"$complete\", is not found." >&5 40301 $as_echo "$as_me: The path of NM, which resolves as \"$complete\", is not found." >&6;} 40302 has_space=`$ECHO "$complete" | $GREP " "` 40303 if test "x$has_space" != x; then 40304 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 40305 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 40306 fi 40307 as_fn_error $? "Cannot locate the the path of NM" "$LINENO" 5 40308 fi 40309 fi 40310 40311 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 40312 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 40313 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 40314 # "foo.exe" is OK but "foo" is an error. 40315 # 40316 # This test is therefore slightly more accurate than "test -f" to check for file presence. 40317 # It is also a way to make sure we got the proper file name for the real test later on. 40318 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 40319 if test "x$test_shortpath" = x; then 40320 # Short path failed, file does not exist as specified. 40321 # Try adding .exe or .cmd 40322 if test -f "${new_path}.exe"; then 40323 input_to_shortpath="${new_path}.exe" 40324 elif test -f "${new_path}.cmd"; then 40325 input_to_shortpath="${new_path}.cmd" 40326 else 40327 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of NM, which resolves as \"$new_path\", is invalid." >&5 40328 $as_echo "$as_me: The path of NM, which resolves as \"$new_path\", is invalid." >&6;} 40329 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 40330 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 40331 as_fn_error $? "Cannot locate the the path of NM" "$LINENO" 5 40332 fi 40333 else 40334 input_to_shortpath="$new_path" 40335 fi 40336 40337 # Call helper function which possibly converts this using DOS-style short mode. 40338 # If so, the updated path is stored in $new_path. 40339 new_path="$input_to_shortpath" 40340 40341 input_path="$input_to_shortpath" 40342 # Check if we need to convert this using DOS-style short mode. If the path 40343 # contains just simple characters, use it. Otherwise (spaces, weird characters), 40344 # take no chances and rewrite it. 40345 # Note: m4 eats our [], so we need to use [ and ] instead. 40346 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 40347 if test "x$has_forbidden_chars" != x; then 40348 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 40349 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 40350 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 40351 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 40352 # Going to short mode and back again did indeed matter. Since short mode is 40353 # case insensitive, let's make it lowercase to improve readability. 40354 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 40355 # Now convert it back to Unix-style (cygpath) 40356 input_path=`$CYGPATH -u "$shortmode_path"` 40357 new_path="$input_path" 40358 fi 40359 fi 40360 40361 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 40362 if test "x$test_cygdrive_prefix" = x; then 40363 # As a simple fix, exclude /usr/bin since it's not a real path. 40364 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 40365 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 40366 # a path prefixed by /cygdrive for fixpath to work. 40367 new_path="$CYGWIN_ROOT_PATH$input_path" 40368 fi 40369 fi 40370 40371 # remove trailing .exe if any 40372 new_path="${new_path/%.exe/}" 40373 40374 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 40375 40376 # First separate the path from the arguments. This will split at the first 40377 # space. 40378 complete="$NM" 40379 path="${complete%% *}" 40380 tmp="$complete EOL" 40381 arguments="${tmp#* }" 40382 40383 # Input might be given as Windows format, start by converting to 40384 # unix format. 40385 new_path="$path" 40386 40387 windows_path="$new_path" 40388 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 40389 unix_path=`$CYGPATH -u "$windows_path"` 40390 new_path="$unix_path" 40391 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 40392 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 40393 new_path="$unix_path" 40394 fi 40395 40396 40397 # Now try to locate executable using which 40398 new_path=`$WHICH "$new_path" 2> /dev/null` 40399 40400 if test "x$new_path" = x; then 40401 # Oops. Which didn't find the executable. 40402 # The splitting of arguments from the executable at a space might have been incorrect, 40403 # since paths with space are more likely in Windows. Give it another try with the whole 40404 # argument. 40405 path="$complete" 40406 arguments="EOL" 40407 new_path="$path" 40408 40409 windows_path="$new_path" 40410 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 40411 unix_path=`$CYGPATH -u "$windows_path"` 40412 new_path="$unix_path" 40413 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 40414 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 40415 new_path="$unix_path" 40416 fi 40417 40418 40419 new_path=`$WHICH "$new_path" 2> /dev/null` 40420 # bat and cmd files are not always considered executable in MSYS causing which 40421 # to not find them 40422 if test "x$new_path" = x \ 40423 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 40424 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 40425 new_path="$path" 40426 40427 windows_path="$new_path" 40428 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 40429 unix_path=`$CYGPATH -u "$windows_path"` 40430 new_path="$unix_path" 40431 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 40432 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 40433 new_path="$unix_path" 40434 fi 40435 40436 fi 40437 40438 if test "x$new_path" = x; then 40439 # It's still not found. Now this is an unrecoverable error. 40440 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of NM, which resolves as \"$complete\", is not found." >&5 40441 $as_echo "$as_me: The path of NM, which resolves as \"$complete\", is not found." >&6;} 40442 has_space=`$ECHO "$complete" | $GREP " "` 40443 if test "x$has_space" != x; then 40444 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 40445 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 40446 fi 40447 as_fn_error $? "Cannot locate the the path of NM" "$LINENO" 5 40448 fi 40449 fi 40450 40451 # Now new_path has a complete unix path to the binary 40452 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 40453 # Keep paths in /bin as-is, but remove trailing .exe if any 40454 new_path="${new_path/%.exe/}" 40455 # Do not save /bin paths to all_fixpath_prefixes! 40456 else 40457 # Not in mixed or Windows style, start by that. 40458 new_path=`cmd //c echo $new_path` 40459 40460 input_path="$new_path" 40461 # Check if we need to convert this using DOS-style short mode. If the path 40462 # contains just simple characters, use it. Otherwise (spaces, weird characters), 40463 # take no chances and rewrite it. 40464 # Note: m4 eats our [], so we need to use [ and ] instead. 40465 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 40466 if test "x$has_forbidden_chars" != x; then 40467 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 40468 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 40469 fi 40470 40471 # Output is in $new_path 40472 40473 windows_path="$new_path" 40474 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 40475 unix_path=`$CYGPATH -u "$windows_path"` 40476 new_path="$unix_path" 40477 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 40478 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 40479 new_path="$unix_path" 40480 fi 40481 40482 # remove trailing .exe if any 40483 new_path="${new_path/%.exe/}" 40484 40485 # Save the first 10 bytes of this path to the storage, so fixpath can work. 40486 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 40487 fi 40488 40489 else 40490 # We're on a unix platform. Hooray! :) 40491 # First separate the path from the arguments. This will split at the first 40492 # space. 40493 complete="$NM" 40494 path="${complete%% *}" 40495 tmp="$complete EOL" 40496 arguments="${tmp#* }" 40497 40498 # Cannot rely on the command "which" here since it doesn't always work. 40499 is_absolute_path=`$ECHO "$path" | $GREP ^/` 40500 if test -z "$is_absolute_path"; then 40501 # Path to executable is not absolute. Find it. 40502 IFS_save="$IFS" 40503 IFS=: 40504 for p in $PATH; do 40505 if test -f "$p/$path" && test -x "$p/$path"; then 40506 new_path="$p/$path" 40507 break 40508 fi 40509 done 40510 IFS="$IFS_save" 40511 else 40512 # This is an absolute path, we can use it without further modifications. 40513 new_path="$path" 40514 fi 40515 40516 if test "x$new_path" = x; then 40517 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of NM, which resolves as \"$complete\", is not found." >&5 40518 $as_echo "$as_me: The path of NM, which resolves as \"$complete\", is not found." >&6;} 40519 has_space=`$ECHO "$complete" | $GREP " "` 40520 if test "x$has_space" != x; then 40521 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 40522 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 40523 fi 40524 as_fn_error $? "Cannot locate the the path of NM" "$LINENO" 5 40525 fi 40526 fi 40527 40528 # Now join together the path and the arguments once again 40529 if test "x$arguments" != xEOL; then 40530 new_complete="$new_path ${arguments% *}" 40531 else 40532 new_complete="$new_path" 40533 fi 40534 40535 if test "x$complete" != "x$new_complete"; then 40536 NM="$new_complete" 40537 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting NM to \"$new_complete\"" >&5 40538 $as_echo "$as_me: Rewriting NM to \"$new_complete\"" >&6;} 40539 fi 40540 fi 40541 40542 40543 40544 # Publish this variable in the help. 40545 40546 40547 if [ -z "${GNM+x}" ]; then 40548 # The variable is not set by user, try to locate tool using the code snippet 40549 for ac_prog in gnm 40550 do 40551 # Extract the first word of "$ac_prog", so it can be a program name with args. 40552 set dummy $ac_prog; ac_word=$2 40553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 40554 $as_echo_n "checking for $ac_word... " >&6; } 40555 if ${ac_cv_path_GNM+:} false; then : 40556 $as_echo_n "(cached) " >&6 40557 else 40558 case $GNM in 40559 [\\/]* | ?:[\\/]*) 40560 ac_cv_path_GNM="$GNM" # Let the user override the test with a path. 40561 ;; 40562 *) 40563 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 40564 for as_dir in $PATH 40565 do 40566 IFS=$as_save_IFS 40567 test -z "$as_dir" && as_dir=. 40568 for ac_exec_ext in '' $ac_executable_extensions; do 40569 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 40570 ac_cv_path_GNM="$as_dir/$ac_word$ac_exec_ext" 40571 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 40572 break 2 40573 fi 40574 done 40575 done 40576 IFS=$as_save_IFS 40577 40578 ;; 40579 esac 40580 fi 40581 GNM=$ac_cv_path_GNM 40582 if test -n "$GNM"; then 40583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNM" >&5 40584 $as_echo "$GNM" >&6; } 40585 else 40586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 40587 $as_echo "no" >&6; } 40588 fi 40589 40590 40591 test -n "$GNM" && break 40592 done 40593 40594 else 40595 # The variable is set, but is it from the command line or the environment? 40596 40597 # Try to remove the string !GNM! from our list. 40598 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!GNM!/} 40599 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 40600 # If it failed, the variable was not from the command line. Ignore it, 40601 # but warn the user (except for BASH, which is always set by the calling BASH). 40602 if test "xGNM" != xBASH; then 40603 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of GNM from the environment. Use command line variables instead." >&5 40604 $as_echo "$as_me: WARNING: Ignoring value of GNM from the environment. Use command line variables instead." >&2;} 40605 fi 40606 # Try to locate tool using the code snippet 40607 for ac_prog in gnm 40608 do 40609 # Extract the first word of "$ac_prog", so it can be a program name with args. 40610 set dummy $ac_prog; ac_word=$2 40611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 40612 $as_echo_n "checking for $ac_word... " >&6; } 40613 if ${ac_cv_path_GNM+:} false; then : 40614 $as_echo_n "(cached) " >&6 40615 else 40616 case $GNM in 40617 [\\/]* | ?:[\\/]*) 40618 ac_cv_path_GNM="$GNM" # Let the user override the test with a path. 40619 ;; 40620 *) 40621 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 40622 for as_dir in $PATH 40623 do 40624 IFS=$as_save_IFS 40625 test -z "$as_dir" && as_dir=. 40626 for ac_exec_ext in '' $ac_executable_extensions; do 40627 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 40628 ac_cv_path_GNM="$as_dir/$ac_word$ac_exec_ext" 40629 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 40630 break 2 40631 fi 40632 done 40633 done 40634 IFS=$as_save_IFS 40635 40636 ;; 40637 esac 40638 fi 40639 GNM=$ac_cv_path_GNM 40640 if test -n "$GNM"; then 40641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNM" >&5 40642 $as_echo "$GNM" >&6; } 40643 else 40644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 40645 $as_echo "no" >&6; } 40646 fi 40647 40648 40649 test -n "$GNM" && break 40650 done 40651 40652 else 40653 # If it succeeded, then it was overridden by the user. We will use it 40654 # for the tool. 40655 40656 # First remove it from the list of overridden variables, so we can test 40657 # for unknown variables in the end. 40658 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 40659 40660 # Check if we try to supply an empty value 40661 if test "x$GNM" = x; then 40662 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool GNM= (no value)" >&5 40663 $as_echo "$as_me: Setting user supplied tool GNM= (no value)" >&6;} 40664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNM" >&5 40665 $as_echo_n "checking for GNM... " >&6; } 40666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 40667 $as_echo "disabled" >&6; } 40668 else 40669 # Check if the provided tool contains a complete path. 40670 tool_specified="$GNM" 40671 tool_basename="${tool_specified##*/}" 40672 if test "x$tool_basename" = "x$tool_specified"; then 40673 # A command without a complete path is provided, search $PATH. 40674 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool GNM=$tool_basename" >&5 40675 $as_echo "$as_me: Will search for user supplied tool GNM=$tool_basename" >&6;} 40676 # Extract the first word of "$tool_basename", so it can be a program name with args. 40677 set dummy $tool_basename; ac_word=$2 40678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 40679 $as_echo_n "checking for $ac_word... " >&6; } 40680 if ${ac_cv_path_GNM+:} false; then : 40681 $as_echo_n "(cached) " >&6 40682 else 40683 case $GNM in 40684 [\\/]* | ?:[\\/]*) 40685 ac_cv_path_GNM="$GNM" # Let the user override the test with a path. 40686 ;; 40687 *) 40688 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 40689 for as_dir in $PATH 40690 do 40691 IFS=$as_save_IFS 40692 test -z "$as_dir" && as_dir=. 40693 for ac_exec_ext in '' $ac_executable_extensions; do 40694 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 40695 ac_cv_path_GNM="$as_dir/$ac_word$ac_exec_ext" 40696 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 40697 break 2 40698 fi 40699 done 40700 done 40701 IFS=$as_save_IFS 40702 40703 ;; 40704 esac 40705 fi 40706 GNM=$ac_cv_path_GNM 40707 if test -n "$GNM"; then 40708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNM" >&5 40709 $as_echo "$GNM" >&6; } 40710 else 40711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 40712 $as_echo "no" >&6; } 40713 fi 40714 40715 40716 if test "x$GNM" = x; then 40717 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 40718 fi 40719 else 40720 # Otherwise we believe it is a complete path. Use it as it is. 40721 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool GNM=$tool_specified" >&5 40722 $as_echo "$as_me: Will use user supplied tool GNM=$tool_specified" >&6;} 40723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNM" >&5 40724 $as_echo_n "checking for GNM... " >&6; } 40725 if test ! -x "$tool_specified"; then 40726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 40727 $as_echo "not found" >&6; } 40728 as_fn_error $? "User supplied tool GNM=$tool_specified does not exist or is not executable" "$LINENO" 5 40729 fi 40730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 40731 $as_echo "$tool_specified" >&6; } 40732 fi 40733 fi 40734 fi 40735 40736 fi 40737 40738 40739 40740 # Only process if variable expands to non-empty 40741 40742 if test "x$GNM" != x; then 40743 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 40744 40745 # First separate the path from the arguments. This will split at the first 40746 # space. 40747 complete="$GNM" 40748 path="${complete%% *}" 40749 tmp="$complete EOL" 40750 arguments="${tmp#* }" 40751 40752 # Input might be given as Windows format, start by converting to 40753 # unix format. 40754 new_path=`$CYGPATH -u "$path"` 40755 40756 # Now try to locate executable using which 40757 new_path=`$WHICH "$new_path" 2> /dev/null` 40758 # bat and cmd files are not always considered executable in cygwin causing which 40759 # to not find them 40760 if test "x$new_path" = x \ 40761 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 40762 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 40763 new_path=`$CYGPATH -u "$path"` 40764 fi 40765 if test "x$new_path" = x; then 40766 # Oops. Which didn't find the executable. 40767 # The splitting of arguments from the executable at a space might have been incorrect, 40768 # since paths with space are more likely in Windows. Give it another try with the whole 40769 # argument. 40770 path="$complete" 40771 arguments="EOL" 40772 new_path=`$CYGPATH -u "$path"` 40773 new_path=`$WHICH "$new_path" 2> /dev/null` 40774 # bat and cmd files are not always considered executable in cygwin causing which 40775 # to not find them 40776 if test "x$new_path" = x \ 40777 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 40778 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 40779 new_path=`$CYGPATH -u "$path"` 40780 fi 40781 if test "x$new_path" = x; then 40782 # It's still not found. Now this is an unrecoverable error. 40783 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of GNM, which resolves as \"$complete\", is not found." >&5 40784 $as_echo "$as_me: The path of GNM, which resolves as \"$complete\", is not found." >&6;} 40785 has_space=`$ECHO "$complete" | $GREP " "` 40786 if test "x$has_space" != x; then 40787 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 40788 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 40789 fi 40790 as_fn_error $? "Cannot locate the the path of GNM" "$LINENO" 5 40791 fi 40792 fi 40793 40794 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 40795 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 40796 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 40797 # "foo.exe" is OK but "foo" is an error. 40798 # 40799 # This test is therefore slightly more accurate than "test -f" to check for file presence. 40800 # It is also a way to make sure we got the proper file name for the real test later on. 40801 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 40802 if test "x$test_shortpath" = x; then 40803 # Short path failed, file does not exist as specified. 40804 # Try adding .exe or .cmd 40805 if test -f "${new_path}.exe"; then 40806 input_to_shortpath="${new_path}.exe" 40807 elif test -f "${new_path}.cmd"; then 40808 input_to_shortpath="${new_path}.cmd" 40809 else 40810 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of GNM, which resolves as \"$new_path\", is invalid." >&5 40811 $as_echo "$as_me: The path of GNM, which resolves as \"$new_path\", is invalid." >&6;} 40812 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 40813 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 40814 as_fn_error $? "Cannot locate the the path of GNM" "$LINENO" 5 40815 fi 40816 else 40817 input_to_shortpath="$new_path" 40818 fi 40819 40820 # Call helper function which possibly converts this using DOS-style short mode. 40821 # If so, the updated path is stored in $new_path. 40822 new_path="$input_to_shortpath" 40823 40824 input_path="$input_to_shortpath" 40825 # Check if we need to convert this using DOS-style short mode. If the path 40826 # contains just simple characters, use it. Otherwise (spaces, weird characters), 40827 # take no chances and rewrite it. 40828 # Note: m4 eats our [], so we need to use [ and ] instead. 40829 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 40830 if test "x$has_forbidden_chars" != x; then 40831 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 40832 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 40833 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 40834 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 40835 # Going to short mode and back again did indeed matter. Since short mode is 40836 # case insensitive, let's make it lowercase to improve readability. 40837 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 40838 # Now convert it back to Unix-style (cygpath) 40839 input_path=`$CYGPATH -u "$shortmode_path"` 40840 new_path="$input_path" 40841 fi 40842 fi 40843 40844 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 40845 if test "x$test_cygdrive_prefix" = x; then 40846 # As a simple fix, exclude /usr/bin since it's not a real path. 40847 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 40848 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 40849 # a path prefixed by /cygdrive for fixpath to work. 40850 new_path="$CYGWIN_ROOT_PATH$input_path" 40851 fi 40852 fi 40853 40854 # remove trailing .exe if any 40855 new_path="${new_path/%.exe/}" 40856 40857 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 40858 40859 # First separate the path from the arguments. This will split at the first 40860 # space. 40861 complete="$GNM" 40862 path="${complete%% *}" 40863 tmp="$complete EOL" 40864 arguments="${tmp#* }" 40865 40866 # Input might be given as Windows format, start by converting to 40867 # unix format. 40868 new_path="$path" 40869 40870 windows_path="$new_path" 40871 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 40872 unix_path=`$CYGPATH -u "$windows_path"` 40873 new_path="$unix_path" 40874 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 40875 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 40876 new_path="$unix_path" 40877 fi 40878 40879 40880 # Now try to locate executable using which 40881 new_path=`$WHICH "$new_path" 2> /dev/null` 40882 40883 if test "x$new_path" = x; then 40884 # Oops. Which didn't find the executable. 40885 # The splitting of arguments from the executable at a space might have been incorrect, 40886 # since paths with space are more likely in Windows. Give it another try with the whole 40887 # argument. 40888 path="$complete" 40889 arguments="EOL" 40890 new_path="$path" 40891 40892 windows_path="$new_path" 40893 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 40894 unix_path=`$CYGPATH -u "$windows_path"` 40895 new_path="$unix_path" 40896 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 40897 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 40898 new_path="$unix_path" 40899 fi 40900 40901 40902 new_path=`$WHICH "$new_path" 2> /dev/null` 40903 # bat and cmd files are not always considered executable in MSYS causing which 40904 # to not find them 40905 if test "x$new_path" = x \ 40906 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 40907 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 40908 new_path="$path" 40909 40910 windows_path="$new_path" 40911 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 40912 unix_path=`$CYGPATH -u "$windows_path"` 40913 new_path="$unix_path" 40914 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 40915 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 40916 new_path="$unix_path" 40917 fi 40918 40919 fi 40920 40921 if test "x$new_path" = x; then 40922 # It's still not found. Now this is an unrecoverable error. 40923 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of GNM, which resolves as \"$complete\", is not found." >&5 40924 $as_echo "$as_me: The path of GNM, which resolves as \"$complete\", is not found." >&6;} 40925 has_space=`$ECHO "$complete" | $GREP " "` 40926 if test "x$has_space" != x; then 40927 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 40928 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 40929 fi 40930 as_fn_error $? "Cannot locate the the path of GNM" "$LINENO" 5 40931 fi 40932 fi 40933 40934 # Now new_path has a complete unix path to the binary 40935 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 40936 # Keep paths in /bin as-is, but remove trailing .exe if any 40937 new_path="${new_path/%.exe/}" 40938 # Do not save /bin paths to all_fixpath_prefixes! 40939 else 40940 # Not in mixed or Windows style, start by that. 40941 new_path=`cmd //c echo $new_path` 40942 40943 input_path="$new_path" 40944 # Check if we need to convert this using DOS-style short mode. If the path 40945 # contains just simple characters, use it. Otherwise (spaces, weird characters), 40946 # take no chances and rewrite it. 40947 # Note: m4 eats our [], so we need to use [ and ] instead. 40948 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 40949 if test "x$has_forbidden_chars" != x; then 40950 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 40951 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 40952 fi 40953 40954 # Output is in $new_path 40955 40956 windows_path="$new_path" 40957 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 40958 unix_path=`$CYGPATH -u "$windows_path"` 40959 new_path="$unix_path" 40960 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 40961 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 40962 new_path="$unix_path" 40963 fi 40964 40965 # remove trailing .exe if any 40966 new_path="${new_path/%.exe/}" 40967 40968 # Save the first 10 bytes of this path to the storage, so fixpath can work. 40969 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 40970 fi 40971 40972 else 40973 # We're on a unix platform. Hooray! :) 40974 # First separate the path from the arguments. This will split at the first 40975 # space. 40976 complete="$GNM" 40977 path="${complete%% *}" 40978 tmp="$complete EOL" 40979 arguments="${tmp#* }" 40980 40981 # Cannot rely on the command "which" here since it doesn't always work. 40982 is_absolute_path=`$ECHO "$path" | $GREP ^/` 40983 if test -z "$is_absolute_path"; then 40984 # Path to executable is not absolute. Find it. 40985 IFS_save="$IFS" 40986 IFS=: 40987 for p in $PATH; do 40988 if test -f "$p/$path" && test -x "$p/$path"; then 40989 new_path="$p/$path" 40990 break 40991 fi 40992 done 40993 IFS="$IFS_save" 40994 else 40995 # This is an absolute path, we can use it without further modifications. 40996 new_path="$path" 40997 fi 40998 40999 if test "x$new_path" = x; then 41000 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of GNM, which resolves as \"$complete\", is not found." >&5 41001 $as_echo "$as_me: The path of GNM, which resolves as \"$complete\", is not found." >&6;} 41002 has_space=`$ECHO "$complete" | $GREP " "` 41003 if test "x$has_space" != x; then 41004 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 41005 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 41006 fi 41007 as_fn_error $? "Cannot locate the the path of GNM" "$LINENO" 5 41008 fi 41009 fi 41010 41011 # Now join together the path and the arguments once again 41012 if test "x$arguments" != xEOL; then 41013 new_complete="$new_path ${arguments% *}" 41014 else 41015 new_complete="$new_path" 41016 fi 41017 41018 if test "x$complete" != "x$new_complete"; then 41019 GNM="$new_complete" 41020 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting GNM to \"$new_complete\"" >&5 41021 $as_echo "$as_me: Rewriting GNM to \"$new_complete\"" >&6;} 41022 fi 41023 fi 41024 41025 elif test "x$OPENJDK_TARGET_OS" != xwindows; then 41026 # FIXME: we should unify this with the solaris case above. 41027 41028 41029 # Publish this variable in the help. 41030 41031 41032 if [ -z "${STRIP+x}" ]; then 41033 # The variable is not set by user, try to locate tool using the code snippet 41034 if test -n "$ac_tool_prefix"; then 41035 for ac_prog in strip 41036 do 41037 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 41038 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 41039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 41040 $as_echo_n "checking for $ac_word... " >&6; } 41041 if ${ac_cv_prog_STRIP+:} false; then : 41042 $as_echo_n "(cached) " >&6 41043 else 41044 if test -n "$STRIP"; then 41045 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 41046 else 41047 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 41048 for as_dir in $PATH 41049 do 41050 IFS=$as_save_IFS 41051 test -z "$as_dir" && as_dir=. 41052 for ac_exec_ext in '' $ac_executable_extensions; do 41053 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 41054 ac_cv_prog_STRIP="$ac_tool_prefix$ac_prog" 41055 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 41056 break 2 41057 fi 41058 done 41059 done 41060 IFS=$as_save_IFS 41061 41062 fi 41063 fi 41064 STRIP=$ac_cv_prog_STRIP 41065 if test -n "$STRIP"; then 41066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 41067 $as_echo "$STRIP" >&6; } 41068 else 41069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 41070 $as_echo "no" >&6; } 41071 fi 41072 41073 41074 test -n "$STRIP" && break 41075 done 41076 fi 41077 if test -z "$STRIP"; then 41078 ac_ct_STRIP=$STRIP 41079 for ac_prog in strip 41080 do 41081 # Extract the first word of "$ac_prog", so it can be a program name with args. 41082 set dummy $ac_prog; ac_word=$2 41083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 41084 $as_echo_n "checking for $ac_word... " >&6; } 41085 if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 41086 $as_echo_n "(cached) " >&6 41087 else 41088 if test -n "$ac_ct_STRIP"; then 41089 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 41090 else 41091 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 41092 for as_dir in $PATH 41093 do 41094 IFS=$as_save_IFS 41095 test -z "$as_dir" && as_dir=. 41096 for ac_exec_ext in '' $ac_executable_extensions; do 41097 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 41098 ac_cv_prog_ac_ct_STRIP="$ac_prog" 41099 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 41100 break 2 41101 fi 41102 done 41103 done 41104 IFS=$as_save_IFS 41105 41106 fi 41107 fi 41108 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 41109 if test -n "$ac_ct_STRIP"; then 41110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 41111 $as_echo "$ac_ct_STRIP" >&6; } 41112 else 41113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 41114 $as_echo "no" >&6; } 41115 fi 41116 41117 41118 test -n "$ac_ct_STRIP" && break 41119 done 41120 41121 if test "x$ac_ct_STRIP" = x; then 41122 STRIP="" 41123 else 41124 case $cross_compiling:$ac_tool_warned in 41125 yes:) 41126 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 41127 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 41128 ac_tool_warned=yes ;; 41129 esac 41130 STRIP=$ac_ct_STRIP 41131 fi 41132 fi 41133 41134 else 41135 # The variable is set, but is it from the command line or the environment? 41136 41137 # Try to remove the string !STRIP! from our list. 41138 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!STRIP!/} 41139 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 41140 # If it failed, the variable was not from the command line. Ignore it, 41141 # but warn the user (except for BASH, which is always set by the calling BASH). 41142 if test "xSTRIP" != xBASH; then 41143 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of STRIP from the environment. Use command line variables instead." >&5 41144 $as_echo "$as_me: WARNING: Ignoring value of STRIP from the environment. Use command line variables instead." >&2;} 41145 fi 41146 # Try to locate tool using the code snippet 41147 if test -n "$ac_tool_prefix"; then 41148 for ac_prog in strip 41149 do 41150 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 41151 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 41152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 41153 $as_echo_n "checking for $ac_word... " >&6; } 41154 if ${ac_cv_prog_STRIP+:} false; then : 41155 $as_echo_n "(cached) " >&6 41156 else 41157 if test -n "$STRIP"; then 41158 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 41159 else 41160 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 41161 for as_dir in $PATH 41162 do 41163 IFS=$as_save_IFS 41164 test -z "$as_dir" && as_dir=. 41165 for ac_exec_ext in '' $ac_executable_extensions; do 41166 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 41167 ac_cv_prog_STRIP="$ac_tool_prefix$ac_prog" 41168 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 41169 break 2 41170 fi 41171 done 41172 done 41173 IFS=$as_save_IFS 41174 41175 fi 41176 fi 41177 STRIP=$ac_cv_prog_STRIP 41178 if test -n "$STRIP"; then 41179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 41180 $as_echo "$STRIP" >&6; } 41181 else 41182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 41183 $as_echo "no" >&6; } 41184 fi 41185 41186 41187 test -n "$STRIP" && break 41188 done 41189 fi 41190 if test -z "$STRIP"; then 41191 ac_ct_STRIP=$STRIP 41192 for ac_prog in strip 41193 do 41194 # Extract the first word of "$ac_prog", so it can be a program name with args. 41195 set dummy $ac_prog; ac_word=$2 41196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 41197 $as_echo_n "checking for $ac_word... " >&6; } 41198 if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 41199 $as_echo_n "(cached) " >&6 41200 else 41201 if test -n "$ac_ct_STRIP"; then 41202 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 41203 else 41204 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 41205 for as_dir in $PATH 41206 do 41207 IFS=$as_save_IFS 41208 test -z "$as_dir" && as_dir=. 41209 for ac_exec_ext in '' $ac_executable_extensions; do 41210 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 41211 ac_cv_prog_ac_ct_STRIP="$ac_prog" 41212 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 41213 break 2 41214 fi 41215 done 41216 done 41217 IFS=$as_save_IFS 41218 41219 fi 41220 fi 41221 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 41222 if test -n "$ac_ct_STRIP"; then 41223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 41224 $as_echo "$ac_ct_STRIP" >&6; } 41225 else 41226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 41227 $as_echo "no" >&6; } 41228 fi 41229 41230 41231 test -n "$ac_ct_STRIP" && break 41232 done 41233 41234 if test "x$ac_ct_STRIP" = x; then 41235 STRIP="" 41236 else 41237 case $cross_compiling:$ac_tool_warned in 41238 yes:) 41239 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 41240 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 41241 ac_tool_warned=yes ;; 41242 esac 41243 STRIP=$ac_ct_STRIP 41244 fi 41245 fi 41246 41247 else 41248 # If it succeeded, then it was overridden by the user. We will use it 41249 # for the tool. 41250 41251 # First remove it from the list of overridden variables, so we can test 41252 # for unknown variables in the end. 41253 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 41254 41255 # Check if we try to supply an empty value 41256 if test "x$STRIP" = x; then 41257 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool STRIP= (no value)" >&5 41258 $as_echo "$as_me: Setting user supplied tool STRIP= (no value)" >&6;} 41259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for STRIP" >&5 41260 $as_echo_n "checking for STRIP... " >&6; } 41261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 41262 $as_echo "disabled" >&6; } 41263 else 41264 # Check if the provided tool contains a complete path. 41265 tool_specified="$STRIP" 41266 tool_basename="${tool_specified##*/}" 41267 if test "x$tool_basename" = "x$tool_specified"; then 41268 # A command without a complete path is provided, search $PATH. 41269 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool STRIP=$tool_basename" >&5 41270 $as_echo "$as_me: Will search for user supplied tool STRIP=$tool_basename" >&6;} 41271 # Extract the first word of "$tool_basename", so it can be a program name with args. 41272 set dummy $tool_basename; ac_word=$2 41273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 41274 $as_echo_n "checking for $ac_word... " >&6; } 41275 if ${ac_cv_path_STRIP+:} false; then : 41276 $as_echo_n "(cached) " >&6 41277 else 41278 case $STRIP in 41279 [\\/]* | ?:[\\/]*) 41280 ac_cv_path_STRIP="$STRIP" # Let the user override the test with a path. 41281 ;; 41282 *) 41283 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 41284 for as_dir in $PATH 41285 do 41286 IFS=$as_save_IFS 41287 test -z "$as_dir" && as_dir=. 41288 for ac_exec_ext in '' $ac_executable_extensions; do 41289 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 41290 ac_cv_path_STRIP="$as_dir/$ac_word$ac_exec_ext" 41291 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 41292 break 2 41293 fi 41294 done 41295 done 41296 IFS=$as_save_IFS 41297 41298 ;; 41299 esac 41300 fi 41301 STRIP=$ac_cv_path_STRIP 41302 if test -n "$STRIP"; then 41303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 41304 $as_echo "$STRIP" >&6; } 41305 else 41306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 41307 $as_echo "no" >&6; } 41308 fi 41309 41310 41311 if test "x$STRIP" = x; then 41312 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 41313 fi 41314 else 41315 # Otherwise we believe it is a complete path. Use it as it is. 41316 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool STRIP=$tool_specified" >&5 41317 $as_echo "$as_me: Will use user supplied tool STRIP=$tool_specified" >&6;} 41318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for STRIP" >&5 41319 $as_echo_n "checking for STRIP... " >&6; } 41320 if test ! -x "$tool_specified"; then 41321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 41322 $as_echo "not found" >&6; } 41323 as_fn_error $? "User supplied tool STRIP=$tool_specified does not exist or is not executable" "$LINENO" 5 41324 fi 41325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 41326 $as_echo "$tool_specified" >&6; } 41327 fi 41328 fi 41329 fi 41330 41331 fi 41332 41333 41334 41335 # Only process if variable expands to non-empty 41336 41337 if test "x$STRIP" != x; then 41338 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 41339 41340 # First separate the path from the arguments. This will split at the first 41341 # space. 41342 complete="$STRIP" 41343 path="${complete%% *}" 41344 tmp="$complete EOL" 41345 arguments="${tmp#* }" 41346 41347 # Input might be given as Windows format, start by converting to 41348 # unix format. 41349 new_path=`$CYGPATH -u "$path"` 41350 41351 # Now try to locate executable using which 41352 new_path=`$WHICH "$new_path" 2> /dev/null` 41353 # bat and cmd files are not always considered executable in cygwin causing which 41354 # to not find them 41355 if test "x$new_path" = x \ 41356 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 41357 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 41358 new_path=`$CYGPATH -u "$path"` 41359 fi 41360 if test "x$new_path" = x; then 41361 # Oops. Which didn't find the executable. 41362 # The splitting of arguments from the executable at a space might have been incorrect, 41363 # since paths with space are more likely in Windows. Give it another try with the whole 41364 # argument. 41365 path="$complete" 41366 arguments="EOL" 41367 new_path=`$CYGPATH -u "$path"` 41368 new_path=`$WHICH "$new_path" 2> /dev/null` 41369 # bat and cmd files are not always considered executable in cygwin causing which 41370 # to not find them 41371 if test "x$new_path" = x \ 41372 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 41373 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 41374 new_path=`$CYGPATH -u "$path"` 41375 fi 41376 if test "x$new_path" = x; then 41377 # It's still not found. Now this is an unrecoverable error. 41378 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of STRIP, which resolves as \"$complete\", is not found." >&5 41379 $as_echo "$as_me: The path of STRIP, which resolves as \"$complete\", is not found." >&6;} 41380 has_space=`$ECHO "$complete" | $GREP " "` 41381 if test "x$has_space" != x; then 41382 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 41383 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 41384 fi 41385 as_fn_error $? "Cannot locate the the path of STRIP" "$LINENO" 5 41386 fi 41387 fi 41388 41389 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 41390 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 41391 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 41392 # "foo.exe" is OK but "foo" is an error. 41393 # 41394 # This test is therefore slightly more accurate than "test -f" to check for file presence. 41395 # It is also a way to make sure we got the proper file name for the real test later on. 41396 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 41397 if test "x$test_shortpath" = x; then 41398 # Short path failed, file does not exist as specified. 41399 # Try adding .exe or .cmd 41400 if test -f "${new_path}.exe"; then 41401 input_to_shortpath="${new_path}.exe" 41402 elif test -f "${new_path}.cmd"; then 41403 input_to_shortpath="${new_path}.cmd" 41404 else 41405 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of STRIP, which resolves as \"$new_path\", is invalid." >&5 41406 $as_echo "$as_me: The path of STRIP, which resolves as \"$new_path\", is invalid." >&6;} 41407 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 41408 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 41409 as_fn_error $? "Cannot locate the the path of STRIP" "$LINENO" 5 41410 fi 41411 else 41412 input_to_shortpath="$new_path" 41413 fi 41414 41415 # Call helper function which possibly converts this using DOS-style short mode. 41416 # If so, the updated path is stored in $new_path. 41417 new_path="$input_to_shortpath" 41418 41419 input_path="$input_to_shortpath" 41420 # Check if we need to convert this using DOS-style short mode. If the path 41421 # contains just simple characters, use it. Otherwise (spaces, weird characters), 41422 # take no chances and rewrite it. 41423 # Note: m4 eats our [], so we need to use [ and ] instead. 41424 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 41425 if test "x$has_forbidden_chars" != x; then 41426 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 41427 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 41428 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 41429 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 41430 # Going to short mode and back again did indeed matter. Since short mode is 41431 # case insensitive, let's make it lowercase to improve readability. 41432 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 41433 # Now convert it back to Unix-style (cygpath) 41434 input_path=`$CYGPATH -u "$shortmode_path"` 41435 new_path="$input_path" 41436 fi 41437 fi 41438 41439 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 41440 if test "x$test_cygdrive_prefix" = x; then 41441 # As a simple fix, exclude /usr/bin since it's not a real path. 41442 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 41443 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 41444 # a path prefixed by /cygdrive for fixpath to work. 41445 new_path="$CYGWIN_ROOT_PATH$input_path" 41446 fi 41447 fi 41448 41449 # remove trailing .exe if any 41450 new_path="${new_path/%.exe/}" 41451 41452 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 41453 41454 # First separate the path from the arguments. This will split at the first 41455 # space. 41456 complete="$STRIP" 41457 path="${complete%% *}" 41458 tmp="$complete EOL" 41459 arguments="${tmp#* }" 41460 41461 # Input might be given as Windows format, start by converting to 41462 # unix format. 41463 new_path="$path" 41464 41465 windows_path="$new_path" 41466 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 41467 unix_path=`$CYGPATH -u "$windows_path"` 41468 new_path="$unix_path" 41469 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 41470 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 41471 new_path="$unix_path" 41472 fi 41473 41474 41475 # Now try to locate executable using which 41476 new_path=`$WHICH "$new_path" 2> /dev/null` 41477 41478 if test "x$new_path" = x; then 41479 # Oops. Which didn't find the executable. 41480 # The splitting of arguments from the executable at a space might have been incorrect, 41481 # since paths with space are more likely in Windows. Give it another try with the whole 41482 # argument. 41483 path="$complete" 41484 arguments="EOL" 41485 new_path="$path" 41486 41487 windows_path="$new_path" 41488 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 41489 unix_path=`$CYGPATH -u "$windows_path"` 41490 new_path="$unix_path" 41491 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 41492 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 41493 new_path="$unix_path" 41494 fi 41495 41496 41497 new_path=`$WHICH "$new_path" 2> /dev/null` 41498 # bat and cmd files are not always considered executable in MSYS causing which 41499 # to not find them 41500 if test "x$new_path" = x \ 41501 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 41502 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 41503 new_path="$path" 41504 41505 windows_path="$new_path" 41506 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 41507 unix_path=`$CYGPATH -u "$windows_path"` 41508 new_path="$unix_path" 41509 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 41510 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 41511 new_path="$unix_path" 41512 fi 41513 41514 fi 41515 41516 if test "x$new_path" = x; then 41517 # It's still not found. Now this is an unrecoverable error. 41518 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of STRIP, which resolves as \"$complete\", is not found." >&5 41519 $as_echo "$as_me: The path of STRIP, which resolves as \"$complete\", is not found." >&6;} 41520 has_space=`$ECHO "$complete" | $GREP " "` 41521 if test "x$has_space" != x; then 41522 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 41523 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 41524 fi 41525 as_fn_error $? "Cannot locate the the path of STRIP" "$LINENO" 5 41526 fi 41527 fi 41528 41529 # Now new_path has a complete unix path to the binary 41530 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 41531 # Keep paths in /bin as-is, but remove trailing .exe if any 41532 new_path="${new_path/%.exe/}" 41533 # Do not save /bin paths to all_fixpath_prefixes! 41534 else 41535 # Not in mixed or Windows style, start by that. 41536 new_path=`cmd //c echo $new_path` 41537 41538 input_path="$new_path" 41539 # Check if we need to convert this using DOS-style short mode. If the path 41540 # contains just simple characters, use it. Otherwise (spaces, weird characters), 41541 # take no chances and rewrite it. 41542 # Note: m4 eats our [], so we need to use [ and ] instead. 41543 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 41544 if test "x$has_forbidden_chars" != x; then 41545 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 41546 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 41547 fi 41548 41549 # Output is in $new_path 41550 41551 windows_path="$new_path" 41552 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 41553 unix_path=`$CYGPATH -u "$windows_path"` 41554 new_path="$unix_path" 41555 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 41556 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 41557 new_path="$unix_path" 41558 fi 41559 41560 # remove trailing .exe if any 41561 new_path="${new_path/%.exe/}" 41562 41563 # Save the first 10 bytes of this path to the storage, so fixpath can work. 41564 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 41565 fi 41566 41567 else 41568 # We're on a unix platform. Hooray! :) 41569 # First separate the path from the arguments. This will split at the first 41570 # space. 41571 complete="$STRIP" 41572 path="${complete%% *}" 41573 tmp="$complete EOL" 41574 arguments="${tmp#* }" 41575 41576 # Cannot rely on the command "which" here since it doesn't always work. 41577 is_absolute_path=`$ECHO "$path" | $GREP ^/` 41578 if test -z "$is_absolute_path"; then 41579 # Path to executable is not absolute. Find it. 41580 IFS_save="$IFS" 41581 IFS=: 41582 for p in $PATH; do 41583 if test -f "$p/$path" && test -x "$p/$path"; then 41584 new_path="$p/$path" 41585 break 41586 fi 41587 done 41588 IFS="$IFS_save" 41589 else 41590 # This is an absolute path, we can use it without further modifications. 41591 new_path="$path" 41592 fi 41593 41594 if test "x$new_path" = x; then 41595 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of STRIP, which resolves as \"$complete\", is not found." >&5 41596 $as_echo "$as_me: The path of STRIP, which resolves as \"$complete\", is not found." >&6;} 41597 has_space=`$ECHO "$complete" | $GREP " "` 41598 if test "x$has_space" != x; then 41599 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 41600 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 41601 fi 41602 as_fn_error $? "Cannot locate the the path of STRIP" "$LINENO" 5 41603 fi 41604 fi 41605 41606 # Now join together the path and the arguments once again 41607 if test "x$arguments" != xEOL; then 41608 new_complete="$new_path ${arguments% *}" 41609 else 41610 new_complete="$new_path" 41611 fi 41612 41613 if test "x$complete" != "x$new_complete"; then 41614 STRIP="$new_complete" 41615 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting STRIP to \"$new_complete\"" >&5 41616 $as_echo "$as_me: Rewriting STRIP to \"$new_complete\"" >&6;} 41617 fi 41618 fi 41619 41620 if test "x$TOOLCHAIN_TYPE" = xgcc; then 41621 41622 41623 # Publish this variable in the help. 41624 41625 41626 if [ -z "${NM+x}" ]; then 41627 # The variable is not set by user, try to locate tool using the code snippet 41628 if test -n "$ac_tool_prefix"; then 41629 for ac_prog in nm gcc-nm 41630 do 41631 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 41632 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 41633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 41634 $as_echo_n "checking for $ac_word... " >&6; } 41635 if ${ac_cv_prog_NM+:} false; then : 41636 $as_echo_n "(cached) " >&6 41637 else 41638 if test -n "$NM"; then 41639 ac_cv_prog_NM="$NM" # Let the user override the test. 41640 else 41641 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 41642 for as_dir in $PATH 41643 do 41644 IFS=$as_save_IFS 41645 test -z "$as_dir" && as_dir=. 41646 for ac_exec_ext in '' $ac_executable_extensions; do 41647 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 41648 ac_cv_prog_NM="$ac_tool_prefix$ac_prog" 41649 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 41650 break 2 41651 fi 41652 done 41653 done 41654 IFS=$as_save_IFS 41655 41656 fi 41657 fi 41658 NM=$ac_cv_prog_NM 41659 if test -n "$NM"; then 41660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5 41661 $as_echo "$NM" >&6; } 41662 else 41663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 41664 $as_echo "no" >&6; } 41665 fi 41666 41667 41668 test -n "$NM" && break 41669 done 41670 fi 41671 if test -z "$NM"; then 41672 ac_ct_NM=$NM 41673 for ac_prog in nm gcc-nm 41674 do 41675 # Extract the first word of "$ac_prog", so it can be a program name with args. 41676 set dummy $ac_prog; ac_word=$2 41677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 41678 $as_echo_n "checking for $ac_word... " >&6; } 41679 if ${ac_cv_prog_ac_ct_NM+:} false; then : 41680 $as_echo_n "(cached) " >&6 41681 else 41682 if test -n "$ac_ct_NM"; then 41683 ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test. 41684 else 41685 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 41686 for as_dir in $PATH 41687 do 41688 IFS=$as_save_IFS 41689 test -z "$as_dir" && as_dir=. 41690 for ac_exec_ext in '' $ac_executable_extensions; do 41691 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 41692 ac_cv_prog_ac_ct_NM="$ac_prog" 41693 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 41694 break 2 41695 fi 41696 done 41697 done 41698 IFS=$as_save_IFS 41699 41700 fi 41701 fi 41702 ac_ct_NM=$ac_cv_prog_ac_ct_NM 41703 if test -n "$ac_ct_NM"; then 41704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NM" >&5 41705 $as_echo "$ac_ct_NM" >&6; } 41706 else 41707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 41708 $as_echo "no" >&6; } 41709 fi 41710 41711 41712 test -n "$ac_ct_NM" && break 41713 done 41714 41715 if test "x$ac_ct_NM" = x; then 41716 NM="" 41717 else 41718 case $cross_compiling:$ac_tool_warned in 41719 yes:) 41720 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 41721 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 41722 ac_tool_warned=yes ;; 41723 esac 41724 NM=$ac_ct_NM 41725 fi 41726 fi 41727 41728 else 41729 # The variable is set, but is it from the command line or the environment? 41730 41731 # Try to remove the string !NM! from our list. 41732 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!NM!/} 41733 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 41734 # If it failed, the variable was not from the command line. Ignore it, 41735 # but warn the user (except for BASH, which is always set by the calling BASH). 41736 if test "xNM" != xBASH; then 41737 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of NM from the environment. Use command line variables instead." >&5 41738 $as_echo "$as_me: WARNING: Ignoring value of NM from the environment. Use command line variables instead." >&2;} 41739 fi 41740 # Try to locate tool using the code snippet 41741 if test -n "$ac_tool_prefix"; then 41742 for ac_prog in nm gcc-nm 41743 do 41744 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 41745 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 41746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 41747 $as_echo_n "checking for $ac_word... " >&6; } 41748 if ${ac_cv_prog_NM+:} false; then : 41749 $as_echo_n "(cached) " >&6 41750 else 41751 if test -n "$NM"; then 41752 ac_cv_prog_NM="$NM" # Let the user override the test. 41753 else 41754 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 41755 for as_dir in $PATH 41756 do 41757 IFS=$as_save_IFS 41758 test -z "$as_dir" && as_dir=. 41759 for ac_exec_ext in '' $ac_executable_extensions; do 41760 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 41761 ac_cv_prog_NM="$ac_tool_prefix$ac_prog" 41762 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 41763 break 2 41764 fi 41765 done 41766 done 41767 IFS=$as_save_IFS 41768 41769 fi 41770 fi 41771 NM=$ac_cv_prog_NM 41772 if test -n "$NM"; then 41773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5 41774 $as_echo "$NM" >&6; } 41775 else 41776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 41777 $as_echo "no" >&6; } 41778 fi 41779 41780 41781 test -n "$NM" && break 41782 done 41783 fi 41784 if test -z "$NM"; then 41785 ac_ct_NM=$NM 41786 for ac_prog in nm gcc-nm 41787 do 41788 # Extract the first word of "$ac_prog", so it can be a program name with args. 41789 set dummy $ac_prog; ac_word=$2 41790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 41791 $as_echo_n "checking for $ac_word... " >&6; } 41792 if ${ac_cv_prog_ac_ct_NM+:} false; then : 41793 $as_echo_n "(cached) " >&6 41794 else 41795 if test -n "$ac_ct_NM"; then 41796 ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test. 41797 else 41798 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 41799 for as_dir in $PATH 41800 do 41801 IFS=$as_save_IFS 41802 test -z "$as_dir" && as_dir=. 41803 for ac_exec_ext in '' $ac_executable_extensions; do 41804 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 41805 ac_cv_prog_ac_ct_NM="$ac_prog" 41806 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 41807 break 2 41808 fi 41809 done 41810 done 41811 IFS=$as_save_IFS 41812 41813 fi 41814 fi 41815 ac_ct_NM=$ac_cv_prog_ac_ct_NM 41816 if test -n "$ac_ct_NM"; then 41817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NM" >&5 41818 $as_echo "$ac_ct_NM" >&6; } 41819 else 41820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 41821 $as_echo "no" >&6; } 41822 fi 41823 41824 41825 test -n "$ac_ct_NM" && break 41826 done 41827 41828 if test "x$ac_ct_NM" = x; then 41829 NM="" 41830 else 41831 case $cross_compiling:$ac_tool_warned in 41832 yes:) 41833 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 41834 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 41835 ac_tool_warned=yes ;; 41836 esac 41837 NM=$ac_ct_NM 41838 fi 41839 fi 41840 41841 else 41842 # If it succeeded, then it was overridden by the user. We will use it 41843 # for the tool. 41844 41845 # First remove it from the list of overridden variables, so we can test 41846 # for unknown variables in the end. 41847 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 41848 41849 # Check if we try to supply an empty value 41850 if test "x$NM" = x; then 41851 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool NM= (no value)" >&5 41852 $as_echo "$as_me: Setting user supplied tool NM= (no value)" >&6;} 41853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NM" >&5 41854 $as_echo_n "checking for NM... " >&6; } 41855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 41856 $as_echo "disabled" >&6; } 41857 else 41858 # Check if the provided tool contains a complete path. 41859 tool_specified="$NM" 41860 tool_basename="${tool_specified##*/}" 41861 if test "x$tool_basename" = "x$tool_specified"; then 41862 # A command without a complete path is provided, search $PATH. 41863 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool NM=$tool_basename" >&5 41864 $as_echo "$as_me: Will search for user supplied tool NM=$tool_basename" >&6;} 41865 # Extract the first word of "$tool_basename", so it can be a program name with args. 41866 set dummy $tool_basename; ac_word=$2 41867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 41868 $as_echo_n "checking for $ac_word... " >&6; } 41869 if ${ac_cv_path_NM+:} false; then : 41870 $as_echo_n "(cached) " >&6 41871 else 41872 case $NM in 41873 [\\/]* | ?:[\\/]*) 41874 ac_cv_path_NM="$NM" # Let the user override the test with a path. 41875 ;; 41876 *) 41877 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 41878 for as_dir in $PATH 41879 do 41880 IFS=$as_save_IFS 41881 test -z "$as_dir" && as_dir=. 41882 for ac_exec_ext in '' $ac_executable_extensions; do 41883 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 41884 ac_cv_path_NM="$as_dir/$ac_word$ac_exec_ext" 41885 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 41886 break 2 41887 fi 41888 done 41889 done 41890 IFS=$as_save_IFS 41891 41892 ;; 41893 esac 41894 fi 41895 NM=$ac_cv_path_NM 41896 if test -n "$NM"; then 41897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5 41898 $as_echo "$NM" >&6; } 41899 else 41900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 41901 $as_echo "no" >&6; } 41902 fi 41903 41904 41905 if test "x$NM" = x; then 41906 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 41907 fi 41908 else 41909 # Otherwise we believe it is a complete path. Use it as it is. 41910 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool NM=$tool_specified" >&5 41911 $as_echo "$as_me: Will use user supplied tool NM=$tool_specified" >&6;} 41912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NM" >&5 41913 $as_echo_n "checking for NM... " >&6; } 41914 if test ! -x "$tool_specified"; then 41915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 41916 $as_echo "not found" >&6; } 41917 as_fn_error $? "User supplied tool NM=$tool_specified does not exist or is not executable" "$LINENO" 5 41918 fi 41919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 41920 $as_echo "$tool_specified" >&6; } 41921 fi 41922 fi 41923 fi 41924 41925 fi 41926 41927 41928 else 41929 41930 41931 # Publish this variable in the help. 41932 41933 41934 if [ -z "${NM+x}" ]; then 41935 # The variable is not set by user, try to locate tool using the code snippet 41936 if test -n "$ac_tool_prefix"; then 41937 for ac_prog in nm 41938 do 41939 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 41940 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 41941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 41942 $as_echo_n "checking for $ac_word... " >&6; } 41943 if ${ac_cv_prog_NM+:} false; then : 41944 $as_echo_n "(cached) " >&6 41945 else 41946 if test -n "$NM"; then 41947 ac_cv_prog_NM="$NM" # Let the user override the test. 41948 else 41949 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 41950 for as_dir in $PATH 41951 do 41952 IFS=$as_save_IFS 41953 test -z "$as_dir" && as_dir=. 41954 for ac_exec_ext in '' $ac_executable_extensions; do 41955 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 41956 ac_cv_prog_NM="$ac_tool_prefix$ac_prog" 41957 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 41958 break 2 41959 fi 41960 done 41961 done 41962 IFS=$as_save_IFS 41963 41964 fi 41965 fi 41966 NM=$ac_cv_prog_NM 41967 if test -n "$NM"; then 41968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5 41969 $as_echo "$NM" >&6; } 41970 else 41971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 41972 $as_echo "no" >&6; } 41973 fi 41974 41975 41976 test -n "$NM" && break 41977 done 41978 fi 41979 if test -z "$NM"; then 41980 ac_ct_NM=$NM 41981 for ac_prog in nm 41982 do 41983 # Extract the first word of "$ac_prog", so it can be a program name with args. 41984 set dummy $ac_prog; ac_word=$2 41985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 41986 $as_echo_n "checking for $ac_word... " >&6; } 41987 if ${ac_cv_prog_ac_ct_NM+:} false; then : 41988 $as_echo_n "(cached) " >&6 41989 else 41990 if test -n "$ac_ct_NM"; then 41991 ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test. 41992 else 41993 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 41994 for as_dir in $PATH 41995 do 41996 IFS=$as_save_IFS 41997 test -z "$as_dir" && as_dir=. 41998 for ac_exec_ext in '' $ac_executable_extensions; do 41999 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 42000 ac_cv_prog_ac_ct_NM="$ac_prog" 42001 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 42002 break 2 42003 fi 42004 done 42005 done 42006 IFS=$as_save_IFS 42007 42008 fi 42009 fi 42010 ac_ct_NM=$ac_cv_prog_ac_ct_NM 42011 if test -n "$ac_ct_NM"; then 42012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NM" >&5 42013 $as_echo "$ac_ct_NM" >&6; } 42014 else 42015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 42016 $as_echo "no" >&6; } 42017 fi 42018 42019 42020 test -n "$ac_ct_NM" && break 42021 done 42022 42023 if test "x$ac_ct_NM" = x; then 42024 NM="" 42025 else 42026 case $cross_compiling:$ac_tool_warned in 42027 yes:) 42028 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 42029 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 42030 ac_tool_warned=yes ;; 42031 esac 42032 NM=$ac_ct_NM 42033 fi 42034 fi 42035 42036 else 42037 # The variable is set, but is it from the command line or the environment? 42038 42039 # Try to remove the string !NM! from our list. 42040 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!NM!/} 42041 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 42042 # If it failed, the variable was not from the command line. Ignore it, 42043 # but warn the user (except for BASH, which is always set by the calling BASH). 42044 if test "xNM" != xBASH; then 42045 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of NM from the environment. Use command line variables instead." >&5 42046 $as_echo "$as_me: WARNING: Ignoring value of NM from the environment. Use command line variables instead." >&2;} 42047 fi 42048 # Try to locate tool using the code snippet 42049 if test -n "$ac_tool_prefix"; then 42050 for ac_prog in nm 42051 do 42052 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 42053 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 42054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 42055 $as_echo_n "checking for $ac_word... " >&6; } 42056 if ${ac_cv_prog_NM+:} false; then : 42057 $as_echo_n "(cached) " >&6 42058 else 42059 if test -n "$NM"; then 42060 ac_cv_prog_NM="$NM" # Let the user override the test. 42061 else 42062 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 42063 for as_dir in $PATH 42064 do 42065 IFS=$as_save_IFS 42066 test -z "$as_dir" && as_dir=. 42067 for ac_exec_ext in '' $ac_executable_extensions; do 42068 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 42069 ac_cv_prog_NM="$ac_tool_prefix$ac_prog" 42070 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 42071 break 2 42072 fi 42073 done 42074 done 42075 IFS=$as_save_IFS 42076 42077 fi 42078 fi 42079 NM=$ac_cv_prog_NM 42080 if test -n "$NM"; then 42081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5 42082 $as_echo "$NM" >&6; } 42083 else 42084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 42085 $as_echo "no" >&6; } 42086 fi 42087 42088 42089 test -n "$NM" && break 42090 done 42091 fi 42092 if test -z "$NM"; then 42093 ac_ct_NM=$NM 42094 for ac_prog in nm 42095 do 42096 # Extract the first word of "$ac_prog", so it can be a program name with args. 42097 set dummy $ac_prog; ac_word=$2 42098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 42099 $as_echo_n "checking for $ac_word... " >&6; } 42100 if ${ac_cv_prog_ac_ct_NM+:} false; then : 42101 $as_echo_n "(cached) " >&6 42102 else 42103 if test -n "$ac_ct_NM"; then 42104 ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test. 42105 else 42106 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 42107 for as_dir in $PATH 42108 do 42109 IFS=$as_save_IFS 42110 test -z "$as_dir" && as_dir=. 42111 for ac_exec_ext in '' $ac_executable_extensions; do 42112 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 42113 ac_cv_prog_ac_ct_NM="$ac_prog" 42114 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 42115 break 2 42116 fi 42117 done 42118 done 42119 IFS=$as_save_IFS 42120 42121 fi 42122 fi 42123 ac_ct_NM=$ac_cv_prog_ac_ct_NM 42124 if test -n "$ac_ct_NM"; then 42125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NM" >&5 42126 $as_echo "$ac_ct_NM" >&6; } 42127 else 42128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 42129 $as_echo "no" >&6; } 42130 fi 42131 42132 42133 test -n "$ac_ct_NM" && break 42134 done 42135 42136 if test "x$ac_ct_NM" = x; then 42137 NM="" 42138 else 42139 case $cross_compiling:$ac_tool_warned in 42140 yes:) 42141 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 42142 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 42143 ac_tool_warned=yes ;; 42144 esac 42145 NM=$ac_ct_NM 42146 fi 42147 fi 42148 42149 else 42150 # If it succeeded, then it was overridden by the user. We will use it 42151 # for the tool. 42152 42153 # First remove it from the list of overridden variables, so we can test 42154 # for unknown variables in the end. 42155 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 42156 42157 # Check if we try to supply an empty value 42158 if test "x$NM" = x; then 42159 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool NM= (no value)" >&5 42160 $as_echo "$as_me: Setting user supplied tool NM= (no value)" >&6;} 42161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NM" >&5 42162 $as_echo_n "checking for NM... " >&6; } 42163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 42164 $as_echo "disabled" >&6; } 42165 else 42166 # Check if the provided tool contains a complete path. 42167 tool_specified="$NM" 42168 tool_basename="${tool_specified##*/}" 42169 if test "x$tool_basename" = "x$tool_specified"; then 42170 # A command without a complete path is provided, search $PATH. 42171 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool NM=$tool_basename" >&5 42172 $as_echo "$as_me: Will search for user supplied tool NM=$tool_basename" >&6;} 42173 # Extract the first word of "$tool_basename", so it can be a program name with args. 42174 set dummy $tool_basename; ac_word=$2 42175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 42176 $as_echo_n "checking for $ac_word... " >&6; } 42177 if ${ac_cv_path_NM+:} false; then : 42178 $as_echo_n "(cached) " >&6 42179 else 42180 case $NM in 42181 [\\/]* | ?:[\\/]*) 42182 ac_cv_path_NM="$NM" # Let the user override the test with a path. 42183 ;; 42184 *) 42185 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 42186 for as_dir in $PATH 42187 do 42188 IFS=$as_save_IFS 42189 test -z "$as_dir" && as_dir=. 42190 for ac_exec_ext in '' $ac_executable_extensions; do 42191 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 42192 ac_cv_path_NM="$as_dir/$ac_word$ac_exec_ext" 42193 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 42194 break 2 42195 fi 42196 done 42197 done 42198 IFS=$as_save_IFS 42199 42200 ;; 42201 esac 42202 fi 42203 NM=$ac_cv_path_NM 42204 if test -n "$NM"; then 42205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5 42206 $as_echo "$NM" >&6; } 42207 else 42208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 42209 $as_echo "no" >&6; } 42210 fi 42211 42212 42213 if test "x$NM" = x; then 42214 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 42215 fi 42216 else 42217 # Otherwise we believe it is a complete path. Use it as it is. 42218 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool NM=$tool_specified" >&5 42219 $as_echo "$as_me: Will use user supplied tool NM=$tool_specified" >&6;} 42220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NM" >&5 42221 $as_echo_n "checking for NM... " >&6; } 42222 if test ! -x "$tool_specified"; then 42223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 42224 $as_echo "not found" >&6; } 42225 as_fn_error $? "User supplied tool NM=$tool_specified does not exist or is not executable" "$LINENO" 5 42226 fi 42227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 42228 $as_echo "$tool_specified" >&6; } 42229 fi 42230 fi 42231 fi 42232 42233 fi 42234 42235 42236 fi 42237 42238 # Only process if variable expands to non-empty 42239 42240 if test "x$NM" != x; then 42241 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 42242 42243 # First separate the path from the arguments. This will split at the first 42244 # space. 42245 complete="$NM" 42246 path="${complete%% *}" 42247 tmp="$complete EOL" 42248 arguments="${tmp#* }" 42249 42250 # Input might be given as Windows format, start by converting to 42251 # unix format. 42252 new_path=`$CYGPATH -u "$path"` 42253 42254 # Now try to locate executable using which 42255 new_path=`$WHICH "$new_path" 2> /dev/null` 42256 # bat and cmd files are not always considered executable in cygwin causing which 42257 # to not find them 42258 if test "x$new_path" = x \ 42259 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 42260 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 42261 new_path=`$CYGPATH -u "$path"` 42262 fi 42263 if test "x$new_path" = x; then 42264 # Oops. Which didn't find the executable. 42265 # The splitting of arguments from the executable at a space might have been incorrect, 42266 # since paths with space are more likely in Windows. Give it another try with the whole 42267 # argument. 42268 path="$complete" 42269 arguments="EOL" 42270 new_path=`$CYGPATH -u "$path"` 42271 new_path=`$WHICH "$new_path" 2> /dev/null` 42272 # bat and cmd files are not always considered executable in cygwin causing which 42273 # to not find them 42274 if test "x$new_path" = x \ 42275 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 42276 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 42277 new_path=`$CYGPATH -u "$path"` 42278 fi 42279 if test "x$new_path" = x; then 42280 # It's still not found. Now this is an unrecoverable error. 42281 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of NM, which resolves as \"$complete\", is not found." >&5 42282 $as_echo "$as_me: The path of NM, which resolves as \"$complete\", is not found." >&6;} 42283 has_space=`$ECHO "$complete" | $GREP " "` 42284 if test "x$has_space" != x; then 42285 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 42286 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 42287 fi 42288 as_fn_error $? "Cannot locate the the path of NM" "$LINENO" 5 42289 fi 42290 fi 42291 42292 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 42293 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 42294 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 42295 # "foo.exe" is OK but "foo" is an error. 42296 # 42297 # This test is therefore slightly more accurate than "test -f" to check for file presence. 42298 # It is also a way to make sure we got the proper file name for the real test later on. 42299 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 42300 if test "x$test_shortpath" = x; then 42301 # Short path failed, file does not exist as specified. 42302 # Try adding .exe or .cmd 42303 if test -f "${new_path}.exe"; then 42304 input_to_shortpath="${new_path}.exe" 42305 elif test -f "${new_path}.cmd"; then 42306 input_to_shortpath="${new_path}.cmd" 42307 else 42308 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of NM, which resolves as \"$new_path\", is invalid." >&5 42309 $as_echo "$as_me: The path of NM, which resolves as \"$new_path\", is invalid." >&6;} 42310 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 42311 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 42312 as_fn_error $? "Cannot locate the the path of NM" "$LINENO" 5 42313 fi 42314 else 42315 input_to_shortpath="$new_path" 42316 fi 42317 42318 # Call helper function which possibly converts this using DOS-style short mode. 42319 # If so, the updated path is stored in $new_path. 42320 new_path="$input_to_shortpath" 42321 42322 input_path="$input_to_shortpath" 42323 # Check if we need to convert this using DOS-style short mode. If the path 42324 # contains just simple characters, use it. Otherwise (spaces, weird characters), 42325 # take no chances and rewrite it. 42326 # Note: m4 eats our [], so we need to use [ and ] instead. 42327 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 42328 if test "x$has_forbidden_chars" != x; then 42329 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 42330 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 42331 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 42332 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 42333 # Going to short mode and back again did indeed matter. Since short mode is 42334 # case insensitive, let's make it lowercase to improve readability. 42335 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 42336 # Now convert it back to Unix-style (cygpath) 42337 input_path=`$CYGPATH -u "$shortmode_path"` 42338 new_path="$input_path" 42339 fi 42340 fi 42341 42342 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 42343 if test "x$test_cygdrive_prefix" = x; then 42344 # As a simple fix, exclude /usr/bin since it's not a real path. 42345 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 42346 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 42347 # a path prefixed by /cygdrive for fixpath to work. 42348 new_path="$CYGWIN_ROOT_PATH$input_path" 42349 fi 42350 fi 42351 42352 # remove trailing .exe if any 42353 new_path="${new_path/%.exe/}" 42354 42355 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 42356 42357 # First separate the path from the arguments. This will split at the first 42358 # space. 42359 complete="$NM" 42360 path="${complete%% *}" 42361 tmp="$complete EOL" 42362 arguments="${tmp#* }" 42363 42364 # Input might be given as Windows format, start by converting to 42365 # unix format. 42366 new_path="$path" 42367 42368 windows_path="$new_path" 42369 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 42370 unix_path=`$CYGPATH -u "$windows_path"` 42371 new_path="$unix_path" 42372 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 42373 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 42374 new_path="$unix_path" 42375 fi 42376 42377 42378 # Now try to locate executable using which 42379 new_path=`$WHICH "$new_path" 2> /dev/null` 42380 42381 if test "x$new_path" = x; then 42382 # Oops. Which didn't find the executable. 42383 # The splitting of arguments from the executable at a space might have been incorrect, 42384 # since paths with space are more likely in Windows. Give it another try with the whole 42385 # argument. 42386 path="$complete" 42387 arguments="EOL" 42388 new_path="$path" 42389 42390 windows_path="$new_path" 42391 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 42392 unix_path=`$CYGPATH -u "$windows_path"` 42393 new_path="$unix_path" 42394 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 42395 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 42396 new_path="$unix_path" 42397 fi 42398 42399 42400 new_path=`$WHICH "$new_path" 2> /dev/null` 42401 # bat and cmd files are not always considered executable in MSYS causing which 42402 # to not find them 42403 if test "x$new_path" = x \ 42404 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 42405 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 42406 new_path="$path" 42407 42408 windows_path="$new_path" 42409 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 42410 unix_path=`$CYGPATH -u "$windows_path"` 42411 new_path="$unix_path" 42412 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 42413 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 42414 new_path="$unix_path" 42415 fi 42416 42417 fi 42418 42419 if test "x$new_path" = x; then 42420 # It's still not found. Now this is an unrecoverable error. 42421 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of NM, which resolves as \"$complete\", is not found." >&5 42422 $as_echo "$as_me: The path of NM, which resolves as \"$complete\", is not found." >&6;} 42423 has_space=`$ECHO "$complete" | $GREP " "` 42424 if test "x$has_space" != x; then 42425 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 42426 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 42427 fi 42428 as_fn_error $? "Cannot locate the the path of NM" "$LINENO" 5 42429 fi 42430 fi 42431 42432 # Now new_path has a complete unix path to the binary 42433 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 42434 # Keep paths in /bin as-is, but remove trailing .exe if any 42435 new_path="${new_path/%.exe/}" 42436 # Do not save /bin paths to all_fixpath_prefixes! 42437 else 42438 # Not in mixed or Windows style, start by that. 42439 new_path=`cmd //c echo $new_path` 42440 42441 input_path="$new_path" 42442 # Check if we need to convert this using DOS-style short mode. If the path 42443 # contains just simple characters, use it. Otherwise (spaces, weird characters), 42444 # take no chances and rewrite it. 42445 # Note: m4 eats our [], so we need to use [ and ] instead. 42446 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 42447 if test "x$has_forbidden_chars" != x; then 42448 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 42449 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 42450 fi 42451 42452 # Output is in $new_path 42453 42454 windows_path="$new_path" 42455 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 42456 unix_path=`$CYGPATH -u "$windows_path"` 42457 new_path="$unix_path" 42458 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 42459 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 42460 new_path="$unix_path" 42461 fi 42462 42463 # remove trailing .exe if any 42464 new_path="${new_path/%.exe/}" 42465 42466 # Save the first 10 bytes of this path to the storage, so fixpath can work. 42467 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 42468 fi 42469 42470 else 42471 # We're on a unix platform. Hooray! :) 42472 # First separate the path from the arguments. This will split at the first 42473 # space. 42474 complete="$NM" 42475 path="${complete%% *}" 42476 tmp="$complete EOL" 42477 arguments="${tmp#* }" 42478 42479 # Cannot rely on the command "which" here since it doesn't always work. 42480 is_absolute_path=`$ECHO "$path" | $GREP ^/` 42481 if test -z "$is_absolute_path"; then 42482 # Path to executable is not absolute. Find it. 42483 IFS_save="$IFS" 42484 IFS=: 42485 for p in $PATH; do 42486 if test -f "$p/$path" && test -x "$p/$path"; then 42487 new_path="$p/$path" 42488 break 42489 fi 42490 done 42491 IFS="$IFS_save" 42492 else 42493 # This is an absolute path, we can use it without further modifications. 42494 new_path="$path" 42495 fi 42496 42497 if test "x$new_path" = x; then 42498 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of NM, which resolves as \"$complete\", is not found." >&5 42499 $as_echo "$as_me: The path of NM, which resolves as \"$complete\", is not found." >&6;} 42500 has_space=`$ECHO "$complete" | $GREP " "` 42501 if test "x$has_space" != x; then 42502 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 42503 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 42504 fi 42505 as_fn_error $? "Cannot locate the the path of NM" "$LINENO" 5 42506 fi 42507 fi 42508 42509 # Now join together the path and the arguments once again 42510 if test "x$arguments" != xEOL; then 42511 new_complete="$new_path ${arguments% *}" 42512 else 42513 new_complete="$new_path" 42514 fi 42515 42516 if test "x$complete" != "x$new_complete"; then 42517 NM="$new_complete" 42518 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting NM to \"$new_complete\"" >&5 42519 $as_echo "$as_me: Rewriting NM to \"$new_complete\"" >&6;} 42520 fi 42521 fi 42522 42523 GNM="$NM" 42524 42525 fi 42526 42527 # objcopy is used for moving debug symbols to separate files when 42528 # full debug symbols are enabled. 42529 if test "x$OPENJDK_TARGET_OS" = xsolaris || test "x$OPENJDK_TARGET_OS" = xlinux; then 42530 42531 42532 # Publish this variable in the help. 42533 42534 42535 if [ -z "${OBJCOPY+x}" ]; then 42536 # The variable is not set by user, try to locate tool using the code snippet 42537 if test -n "$ac_tool_prefix"; then 42538 for ac_prog in gobjcopy objcopy 42539 do 42540 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 42541 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 42542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 42543 $as_echo_n "checking for $ac_word... " >&6; } 42544 if ${ac_cv_prog_OBJCOPY+:} false; then : 42545 $as_echo_n "(cached) " >&6 42546 else 42547 if test -n "$OBJCOPY"; then 42548 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test. 42549 else 42550 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 42551 for as_dir in $PATH 42552 do 42553 IFS=$as_save_IFS 42554 test -z "$as_dir" && as_dir=. 42555 for ac_exec_ext in '' $ac_executable_extensions; do 42556 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 42557 ac_cv_prog_OBJCOPY="$ac_tool_prefix$ac_prog" 42558 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 42559 break 2 42560 fi 42561 done 42562 done 42563 IFS=$as_save_IFS 42564 42565 fi 42566 fi 42567 OBJCOPY=$ac_cv_prog_OBJCOPY 42568 if test -n "$OBJCOPY"; then 42569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5 42570 $as_echo "$OBJCOPY" >&6; } 42571 else 42572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 42573 $as_echo "no" >&6; } 42574 fi 42575 42576 42577 test -n "$OBJCOPY" && break 42578 done 42579 fi 42580 if test -z "$OBJCOPY"; then 42581 ac_ct_OBJCOPY=$OBJCOPY 42582 for ac_prog in gobjcopy objcopy 42583 do 42584 # Extract the first word of "$ac_prog", so it can be a program name with args. 42585 set dummy $ac_prog; ac_word=$2 42586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 42587 $as_echo_n "checking for $ac_word... " >&6; } 42588 if ${ac_cv_prog_ac_ct_OBJCOPY+:} false; then : 42589 $as_echo_n "(cached) " >&6 42590 else 42591 if test -n "$ac_ct_OBJCOPY"; then 42592 ac_cv_prog_ac_ct_OBJCOPY="$ac_ct_OBJCOPY" # Let the user override the test. 42593 else 42594 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 42595 for as_dir in $PATH 42596 do 42597 IFS=$as_save_IFS 42598 test -z "$as_dir" && as_dir=. 42599 for ac_exec_ext in '' $ac_executable_extensions; do 42600 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 42601 ac_cv_prog_ac_ct_OBJCOPY="$ac_prog" 42602 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 42603 break 2 42604 fi 42605 done 42606 done 42607 IFS=$as_save_IFS 42608 42609 fi 42610 fi 42611 ac_ct_OBJCOPY=$ac_cv_prog_ac_ct_OBJCOPY 42612 if test -n "$ac_ct_OBJCOPY"; then 42613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJCOPY" >&5 42614 $as_echo "$ac_ct_OBJCOPY" >&6; } 42615 else 42616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 42617 $as_echo "no" >&6; } 42618 fi 42619 42620 42621 test -n "$ac_ct_OBJCOPY" && break 42622 done 42623 42624 if test "x$ac_ct_OBJCOPY" = x; then 42625 OBJCOPY="" 42626 else 42627 case $cross_compiling:$ac_tool_warned in 42628 yes:) 42629 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 42630 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 42631 ac_tool_warned=yes ;; 42632 esac 42633 OBJCOPY=$ac_ct_OBJCOPY 42634 fi 42635 fi 42636 42637 else 42638 # The variable is set, but is it from the command line or the environment? 42639 42640 # Try to remove the string !OBJCOPY! from our list. 42641 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!OBJCOPY!/} 42642 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 42643 # If it failed, the variable was not from the command line. Ignore it, 42644 # but warn the user (except for BASH, which is always set by the calling BASH). 42645 if test "xOBJCOPY" != xBASH; then 42646 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of OBJCOPY from the environment. Use command line variables instead." >&5 42647 $as_echo "$as_me: WARNING: Ignoring value of OBJCOPY from the environment. Use command line variables instead." >&2;} 42648 fi 42649 # Try to locate tool using the code snippet 42650 if test -n "$ac_tool_prefix"; then 42651 for ac_prog in gobjcopy objcopy 42652 do 42653 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 42654 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 42655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 42656 $as_echo_n "checking for $ac_word... " >&6; } 42657 if ${ac_cv_prog_OBJCOPY+:} false; then : 42658 $as_echo_n "(cached) " >&6 42659 else 42660 if test -n "$OBJCOPY"; then 42661 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test. 42662 else 42663 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 42664 for as_dir in $PATH 42665 do 42666 IFS=$as_save_IFS 42667 test -z "$as_dir" && as_dir=. 42668 for ac_exec_ext in '' $ac_executable_extensions; do 42669 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 42670 ac_cv_prog_OBJCOPY="$ac_tool_prefix$ac_prog" 42671 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 42672 break 2 42673 fi 42674 done 42675 done 42676 IFS=$as_save_IFS 42677 42678 fi 42679 fi 42680 OBJCOPY=$ac_cv_prog_OBJCOPY 42681 if test -n "$OBJCOPY"; then 42682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5 42683 $as_echo "$OBJCOPY" >&6; } 42684 else 42685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 42686 $as_echo "no" >&6; } 42687 fi 42688 42689 42690 test -n "$OBJCOPY" && break 42691 done 42692 fi 42693 if test -z "$OBJCOPY"; then 42694 ac_ct_OBJCOPY=$OBJCOPY 42695 for ac_prog in gobjcopy objcopy 42696 do 42697 # Extract the first word of "$ac_prog", so it can be a program name with args. 42698 set dummy $ac_prog; ac_word=$2 42699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 42700 $as_echo_n "checking for $ac_word... " >&6; } 42701 if ${ac_cv_prog_ac_ct_OBJCOPY+:} false; then : 42702 $as_echo_n "(cached) " >&6 42703 else 42704 if test -n "$ac_ct_OBJCOPY"; then 42705 ac_cv_prog_ac_ct_OBJCOPY="$ac_ct_OBJCOPY" # Let the user override the test. 42706 else 42707 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 42708 for as_dir in $PATH 42709 do 42710 IFS=$as_save_IFS 42711 test -z "$as_dir" && as_dir=. 42712 for ac_exec_ext in '' $ac_executable_extensions; do 42713 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 42714 ac_cv_prog_ac_ct_OBJCOPY="$ac_prog" 42715 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 42716 break 2 42717 fi 42718 done 42719 done 42720 IFS=$as_save_IFS 42721 42722 fi 42723 fi 42724 ac_ct_OBJCOPY=$ac_cv_prog_ac_ct_OBJCOPY 42725 if test -n "$ac_ct_OBJCOPY"; then 42726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJCOPY" >&5 42727 $as_echo "$ac_ct_OBJCOPY" >&6; } 42728 else 42729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 42730 $as_echo "no" >&6; } 42731 fi 42732 42733 42734 test -n "$ac_ct_OBJCOPY" && break 42735 done 42736 42737 if test "x$ac_ct_OBJCOPY" = x; then 42738 OBJCOPY="" 42739 else 42740 case $cross_compiling:$ac_tool_warned in 42741 yes:) 42742 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 42743 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 42744 ac_tool_warned=yes ;; 42745 esac 42746 OBJCOPY=$ac_ct_OBJCOPY 42747 fi 42748 fi 42749 42750 else 42751 # If it succeeded, then it was overridden by the user. We will use it 42752 # for the tool. 42753 42754 # First remove it from the list of overridden variables, so we can test 42755 # for unknown variables in the end. 42756 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 42757 42758 # Check if we try to supply an empty value 42759 if test "x$OBJCOPY" = x; then 42760 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool OBJCOPY= (no value)" >&5 42761 $as_echo "$as_me: Setting user supplied tool OBJCOPY= (no value)" >&6;} 42762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OBJCOPY" >&5 42763 $as_echo_n "checking for OBJCOPY... " >&6; } 42764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 42765 $as_echo "disabled" >&6; } 42766 else 42767 # Check if the provided tool contains a complete path. 42768 tool_specified="$OBJCOPY" 42769 tool_basename="${tool_specified##*/}" 42770 if test "x$tool_basename" = "x$tool_specified"; then 42771 # A command without a complete path is provided, search $PATH. 42772 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool OBJCOPY=$tool_basename" >&5 42773 $as_echo "$as_me: Will search for user supplied tool OBJCOPY=$tool_basename" >&6;} 42774 # Extract the first word of "$tool_basename", so it can be a program name with args. 42775 set dummy $tool_basename; ac_word=$2 42776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 42777 $as_echo_n "checking for $ac_word... " >&6; } 42778 if ${ac_cv_path_OBJCOPY+:} false; then : 42779 $as_echo_n "(cached) " >&6 42780 else 42781 case $OBJCOPY in 42782 [\\/]* | ?:[\\/]*) 42783 ac_cv_path_OBJCOPY="$OBJCOPY" # Let the user override the test with a path. 42784 ;; 42785 *) 42786 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 42787 for as_dir in $PATH 42788 do 42789 IFS=$as_save_IFS 42790 test -z "$as_dir" && as_dir=. 42791 for ac_exec_ext in '' $ac_executable_extensions; do 42792 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 42793 ac_cv_path_OBJCOPY="$as_dir/$ac_word$ac_exec_ext" 42794 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 42795 break 2 42796 fi 42797 done 42798 done 42799 IFS=$as_save_IFS 42800 42801 ;; 42802 esac 42803 fi 42804 OBJCOPY=$ac_cv_path_OBJCOPY 42805 if test -n "$OBJCOPY"; then 42806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5 42807 $as_echo "$OBJCOPY" >&6; } 42808 else 42809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 42810 $as_echo "no" >&6; } 42811 fi 42812 42813 42814 if test "x$OBJCOPY" = x; then 42815 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 42816 fi 42817 else 42818 # Otherwise we believe it is a complete path. Use it as it is. 42819 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool OBJCOPY=$tool_specified" >&5 42820 $as_echo "$as_me: Will use user supplied tool OBJCOPY=$tool_specified" >&6;} 42821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OBJCOPY" >&5 42822 $as_echo_n "checking for OBJCOPY... " >&6; } 42823 if test ! -x "$tool_specified"; then 42824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 42825 $as_echo "not found" >&6; } 42826 as_fn_error $? "User supplied tool OBJCOPY=$tool_specified does not exist or is not executable" "$LINENO" 5 42827 fi 42828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 42829 $as_echo "$tool_specified" >&6; } 42830 fi 42831 fi 42832 fi 42833 42834 fi 42835 42836 42837 # Only call fixup if objcopy was found. 42838 if test -n "$OBJCOPY"; then 42839 42840 # Only process if variable expands to non-empty 42841 42842 if test "x$OBJCOPY" != x; then 42843 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 42844 42845 # First separate the path from the arguments. This will split at the first 42846 # space. 42847 complete="$OBJCOPY" 42848 path="${complete%% *}" 42849 tmp="$complete EOL" 42850 arguments="${tmp#* }" 42851 42852 # Input might be given as Windows format, start by converting to 42853 # unix format. 42854 new_path=`$CYGPATH -u "$path"` 42855 42856 # Now try to locate executable using which 42857 new_path=`$WHICH "$new_path" 2> /dev/null` 42858 # bat and cmd files are not always considered executable in cygwin causing which 42859 # to not find them 42860 if test "x$new_path" = x \ 42861 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 42862 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 42863 new_path=`$CYGPATH -u "$path"` 42864 fi 42865 if test "x$new_path" = x; then 42866 # Oops. Which didn't find the executable. 42867 # The splitting of arguments from the executable at a space might have been incorrect, 42868 # since paths with space are more likely in Windows. Give it another try with the whole 42869 # argument. 42870 path="$complete" 42871 arguments="EOL" 42872 new_path=`$CYGPATH -u "$path"` 42873 new_path=`$WHICH "$new_path" 2> /dev/null` 42874 # bat and cmd files are not always considered executable in cygwin causing which 42875 # to not find them 42876 if test "x$new_path" = x \ 42877 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 42878 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 42879 new_path=`$CYGPATH -u "$path"` 42880 fi 42881 if test "x$new_path" = x; then 42882 # It's still not found. Now this is an unrecoverable error. 42883 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OBJCOPY, which resolves as \"$complete\", is not found." >&5 42884 $as_echo "$as_me: The path of OBJCOPY, which resolves as \"$complete\", is not found." >&6;} 42885 has_space=`$ECHO "$complete" | $GREP " "` 42886 if test "x$has_space" != x; then 42887 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 42888 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 42889 fi 42890 as_fn_error $? "Cannot locate the the path of OBJCOPY" "$LINENO" 5 42891 fi 42892 fi 42893 42894 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 42895 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 42896 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 42897 # "foo.exe" is OK but "foo" is an error. 42898 # 42899 # This test is therefore slightly more accurate than "test -f" to check for file presence. 42900 # It is also a way to make sure we got the proper file name for the real test later on. 42901 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 42902 if test "x$test_shortpath" = x; then 42903 # Short path failed, file does not exist as specified. 42904 # Try adding .exe or .cmd 42905 if test -f "${new_path}.exe"; then 42906 input_to_shortpath="${new_path}.exe" 42907 elif test -f "${new_path}.cmd"; then 42908 input_to_shortpath="${new_path}.cmd" 42909 else 42910 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OBJCOPY, which resolves as \"$new_path\", is invalid." >&5 42911 $as_echo "$as_me: The path of OBJCOPY, which resolves as \"$new_path\", is invalid." >&6;} 42912 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 42913 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 42914 as_fn_error $? "Cannot locate the the path of OBJCOPY" "$LINENO" 5 42915 fi 42916 else 42917 input_to_shortpath="$new_path" 42918 fi 42919 42920 # Call helper function which possibly converts this using DOS-style short mode. 42921 # If so, the updated path is stored in $new_path. 42922 new_path="$input_to_shortpath" 42923 42924 input_path="$input_to_shortpath" 42925 # Check if we need to convert this using DOS-style short mode. If the path 42926 # contains just simple characters, use it. Otherwise (spaces, weird characters), 42927 # take no chances and rewrite it. 42928 # Note: m4 eats our [], so we need to use [ and ] instead. 42929 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 42930 if test "x$has_forbidden_chars" != x; then 42931 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 42932 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 42933 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 42934 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 42935 # Going to short mode and back again did indeed matter. Since short mode is 42936 # case insensitive, let's make it lowercase to improve readability. 42937 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 42938 # Now convert it back to Unix-style (cygpath) 42939 input_path=`$CYGPATH -u "$shortmode_path"` 42940 new_path="$input_path" 42941 fi 42942 fi 42943 42944 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 42945 if test "x$test_cygdrive_prefix" = x; then 42946 # As a simple fix, exclude /usr/bin since it's not a real path. 42947 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 42948 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 42949 # a path prefixed by /cygdrive for fixpath to work. 42950 new_path="$CYGWIN_ROOT_PATH$input_path" 42951 fi 42952 fi 42953 42954 # remove trailing .exe if any 42955 new_path="${new_path/%.exe/}" 42956 42957 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 42958 42959 # First separate the path from the arguments. This will split at the first 42960 # space. 42961 complete="$OBJCOPY" 42962 path="${complete%% *}" 42963 tmp="$complete EOL" 42964 arguments="${tmp#* }" 42965 42966 # Input might be given as Windows format, start by converting to 42967 # unix format. 42968 new_path="$path" 42969 42970 windows_path="$new_path" 42971 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 42972 unix_path=`$CYGPATH -u "$windows_path"` 42973 new_path="$unix_path" 42974 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 42975 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 42976 new_path="$unix_path" 42977 fi 42978 42979 42980 # Now try to locate executable using which 42981 new_path=`$WHICH "$new_path" 2> /dev/null` 42982 42983 if test "x$new_path" = x; then 42984 # Oops. Which didn't find the executable. 42985 # The splitting of arguments from the executable at a space might have been incorrect, 42986 # since paths with space are more likely in Windows. Give it another try with the whole 42987 # argument. 42988 path="$complete" 42989 arguments="EOL" 42990 new_path="$path" 42991 42992 windows_path="$new_path" 42993 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 42994 unix_path=`$CYGPATH -u "$windows_path"` 42995 new_path="$unix_path" 42996 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 42997 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 42998 new_path="$unix_path" 42999 fi 43000 43001 43002 new_path=`$WHICH "$new_path" 2> /dev/null` 43003 # bat and cmd files are not always considered executable in MSYS causing which 43004 # to not find them 43005 if test "x$new_path" = x \ 43006 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 43007 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 43008 new_path="$path" 43009 43010 windows_path="$new_path" 43011 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 43012 unix_path=`$CYGPATH -u "$windows_path"` 43013 new_path="$unix_path" 43014 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 43015 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 43016 new_path="$unix_path" 43017 fi 43018 43019 fi 43020 43021 if test "x$new_path" = x; then 43022 # It's still not found. Now this is an unrecoverable error. 43023 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OBJCOPY, which resolves as \"$complete\", is not found." >&5 43024 $as_echo "$as_me: The path of OBJCOPY, which resolves as \"$complete\", is not found." >&6;} 43025 has_space=`$ECHO "$complete" | $GREP " "` 43026 if test "x$has_space" != x; then 43027 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 43028 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 43029 fi 43030 as_fn_error $? "Cannot locate the the path of OBJCOPY" "$LINENO" 5 43031 fi 43032 fi 43033 43034 # Now new_path has a complete unix path to the binary 43035 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 43036 # Keep paths in /bin as-is, but remove trailing .exe if any 43037 new_path="${new_path/%.exe/}" 43038 # Do not save /bin paths to all_fixpath_prefixes! 43039 else 43040 # Not in mixed or Windows style, start by that. 43041 new_path=`cmd //c echo $new_path` 43042 43043 input_path="$new_path" 43044 # Check if we need to convert this using DOS-style short mode. If the path 43045 # contains just simple characters, use it. Otherwise (spaces, weird characters), 43046 # take no chances and rewrite it. 43047 # Note: m4 eats our [], so we need to use [ and ] instead. 43048 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 43049 if test "x$has_forbidden_chars" != x; then 43050 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 43051 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 43052 fi 43053 43054 # Output is in $new_path 43055 43056 windows_path="$new_path" 43057 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 43058 unix_path=`$CYGPATH -u "$windows_path"` 43059 new_path="$unix_path" 43060 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 43061 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 43062 new_path="$unix_path" 43063 fi 43064 43065 # remove trailing .exe if any 43066 new_path="${new_path/%.exe/}" 43067 43068 # Save the first 10 bytes of this path to the storage, so fixpath can work. 43069 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 43070 fi 43071 43072 else 43073 # We're on a unix platform. Hooray! :) 43074 # First separate the path from the arguments. This will split at the first 43075 # space. 43076 complete="$OBJCOPY" 43077 path="${complete%% *}" 43078 tmp="$complete EOL" 43079 arguments="${tmp#* }" 43080 43081 # Cannot rely on the command "which" here since it doesn't always work. 43082 is_absolute_path=`$ECHO "$path" | $GREP ^/` 43083 if test -z "$is_absolute_path"; then 43084 # Path to executable is not absolute. Find it. 43085 IFS_save="$IFS" 43086 IFS=: 43087 for p in $PATH; do 43088 if test -f "$p/$path" && test -x "$p/$path"; then 43089 new_path="$p/$path" 43090 break 43091 fi 43092 done 43093 IFS="$IFS_save" 43094 else 43095 # This is an absolute path, we can use it without further modifications. 43096 new_path="$path" 43097 fi 43098 43099 if test "x$new_path" = x; then 43100 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OBJCOPY, which resolves as \"$complete\", is not found." >&5 43101 $as_echo "$as_me: The path of OBJCOPY, which resolves as \"$complete\", is not found." >&6;} 43102 has_space=`$ECHO "$complete" | $GREP " "` 43103 if test "x$has_space" != x; then 43104 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 43105 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 43106 fi 43107 as_fn_error $? "Cannot locate the the path of OBJCOPY" "$LINENO" 5 43108 fi 43109 fi 43110 43111 # Now join together the path and the arguments once again 43112 if test "x$arguments" != xEOL; then 43113 new_complete="$new_path ${arguments% *}" 43114 else 43115 new_complete="$new_path" 43116 fi 43117 43118 if test "x$complete" != "x$new_complete"; then 43119 OBJCOPY="$new_complete" 43120 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting OBJCOPY to \"$new_complete\"" >&5 43121 $as_echo "$as_me: Rewriting OBJCOPY to \"$new_complete\"" >&6;} 43122 fi 43123 fi 43124 43125 if test "x$OPENJDK_BUILD_OS" = xsolaris; then 43126 # objcopy prior to 2.21.1 on solaris is broken and is not usable. 43127 # Rewrite objcopy version output to VALID_VERSION or BAD_VERSION. 43128 # - version number is last blank separate word on first line 43129 # - version number formats that have been seen: 43130 # - <major>.<minor> 43131 # - <major>.<minor>.<micro> 43132 OBJCOPY_VERSION=`$OBJCOPY --version | $HEAD -n 1` 43133 # The outer [ ] is to prevent m4 from eating the [] in the sed expression. 43134 OBJCOPY_VERSION_CHECK=`$ECHO $OBJCOPY_VERSION | $SED -n \ 43135 -e 's/.* //' \ 43136 -e '/^[01]\./b bad' \ 43137 -e '/^2\./{' \ 43138 -e ' s/^2\.//' \ 43139 -e ' /^[0-9]$/b bad' \ 43140 -e ' /^[0-9]\./b bad' \ 43141 -e ' /^1[0-9]$/b bad' \ 43142 -e ' /^1[0-9]\./b bad' \ 43143 -e ' /^20\./b bad' \ 43144 -e ' /^21\.0$/b bad' \ 43145 -e ' /^21\.0\./b bad' \ 43146 -e '}' \ 43147 -e ':good' \ 43148 -e 's/.*/VALID_VERSION/p' \ 43149 -e 'q' \ 43150 -e ':bad' \ 43151 -e 's/.*/BAD_VERSION/p' \ 43152 -e 'q'` 43153 if test "x$OBJCOPY_VERSION_CHECK" = xBAD_VERSION; then 43154 OBJCOPY= 43155 { $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 43156 $as_echo "$as_me: WARNING: Ignoring found objcopy since it is broken (prior to 2.21.1). No debug symbols will be generated." >&2;} 43157 { $as_echo "$as_me:${as_lineno-$LINENO}: objcopy reports version $OBJCOPY_VERSION" >&5 43158 $as_echo "$as_me: objcopy reports version $OBJCOPY_VERSION" >&6;} 43159 { $as_echo "$as_me:${as_lineno-$LINENO}: Note: patch 149063-01 or newer contains the correct Solaris 10 SPARC version" >&5 43160 $as_echo "$as_me: Note: patch 149063-01 or newer contains the correct Solaris 10 SPARC version" >&6;} 43161 { $as_echo "$as_me:${as_lineno-$LINENO}: Note: patch 149064-01 or newer contains the correct Solaris 10 X86 version" >&5 43162 $as_echo "$as_me: Note: patch 149064-01 or newer contains the correct Solaris 10 X86 version" >&6;} 43163 { $as_echo "$as_me:${as_lineno-$LINENO}: Note: Solaris 11 Update 1 contains the correct version" >&5 43164 $as_echo "$as_me: Note: Solaris 11 Update 1 contains the correct version" >&6;} 43165 fi 43166 fi 43167 fi 43168 fi 43169 43170 43171 43172 # Publish this variable in the help. 43173 43174 43175 if [ -z "${OBJDUMP+x}" ]; then 43176 # The variable is not set by user, try to locate tool using the code snippet 43177 if test -n "$ac_tool_prefix"; then 43178 for ac_prog in gobjdump objdump 43179 do 43180 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 43181 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 43182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 43183 $as_echo_n "checking for $ac_word... " >&6; } 43184 if ${ac_cv_prog_OBJDUMP+:} false; then : 43185 $as_echo_n "(cached) " >&6 43186 else 43187 if test -n "$OBJDUMP"; then 43188 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 43189 else 43190 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 43191 for as_dir in $PATH 43192 do 43193 IFS=$as_save_IFS 43194 test -z "$as_dir" && as_dir=. 43195 for ac_exec_ext in '' $ac_executable_extensions; do 43196 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 43197 ac_cv_prog_OBJDUMP="$ac_tool_prefix$ac_prog" 43198 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 43199 break 2 43200 fi 43201 done 43202 done 43203 IFS=$as_save_IFS 43204 43205 fi 43206 fi 43207 OBJDUMP=$ac_cv_prog_OBJDUMP 43208 if test -n "$OBJDUMP"; then 43209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 43210 $as_echo "$OBJDUMP" >&6; } 43211 else 43212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 43213 $as_echo "no" >&6; } 43214 fi 43215 43216 43217 test -n "$OBJDUMP" && break 43218 done 43219 fi 43220 if test -z "$OBJDUMP"; then 43221 ac_ct_OBJDUMP=$OBJDUMP 43222 for ac_prog in gobjdump objdump 43223 do 43224 # Extract the first word of "$ac_prog", so it can be a program name with args. 43225 set dummy $ac_prog; ac_word=$2 43226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 43227 $as_echo_n "checking for $ac_word... " >&6; } 43228 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : 43229 $as_echo_n "(cached) " >&6 43230 else 43231 if test -n "$ac_ct_OBJDUMP"; then 43232 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 43233 else 43234 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 43235 for as_dir in $PATH 43236 do 43237 IFS=$as_save_IFS 43238 test -z "$as_dir" && as_dir=. 43239 for ac_exec_ext in '' $ac_executable_extensions; do 43240 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 43241 ac_cv_prog_ac_ct_OBJDUMP="$ac_prog" 43242 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 43243 break 2 43244 fi 43245 done 43246 done 43247 IFS=$as_save_IFS 43248 43249 fi 43250 fi 43251 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 43252 if test -n "$ac_ct_OBJDUMP"; then 43253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 43254 $as_echo "$ac_ct_OBJDUMP" >&6; } 43255 else 43256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 43257 $as_echo "no" >&6; } 43258 fi 43259 43260 43261 test -n "$ac_ct_OBJDUMP" && break 43262 done 43263 43264 if test "x$ac_ct_OBJDUMP" = x; then 43265 OBJDUMP="" 43266 else 43267 case $cross_compiling:$ac_tool_warned in 43268 yes:) 43269 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 43270 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 43271 ac_tool_warned=yes ;; 43272 esac 43273 OBJDUMP=$ac_ct_OBJDUMP 43274 fi 43275 fi 43276 43277 else 43278 # The variable is set, but is it from the command line or the environment? 43279 43280 # Try to remove the string !OBJDUMP! from our list. 43281 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!OBJDUMP!/} 43282 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 43283 # If it failed, the variable was not from the command line. Ignore it, 43284 # but warn the user (except for BASH, which is always set by the calling BASH). 43285 if test "xOBJDUMP" != xBASH; then 43286 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of OBJDUMP from the environment. Use command line variables instead." >&5 43287 $as_echo "$as_me: WARNING: Ignoring value of OBJDUMP from the environment. Use command line variables instead." >&2;} 43288 fi 43289 # Try to locate tool using the code snippet 43290 if test -n "$ac_tool_prefix"; then 43291 for ac_prog in gobjdump objdump 43292 do 43293 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 43294 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 43295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 43296 $as_echo_n "checking for $ac_word... " >&6; } 43297 if ${ac_cv_prog_OBJDUMP+:} false; then : 43298 $as_echo_n "(cached) " >&6 43299 else 43300 if test -n "$OBJDUMP"; then 43301 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 43302 else 43303 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 43304 for as_dir in $PATH 43305 do 43306 IFS=$as_save_IFS 43307 test -z "$as_dir" && as_dir=. 43308 for ac_exec_ext in '' $ac_executable_extensions; do 43309 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 43310 ac_cv_prog_OBJDUMP="$ac_tool_prefix$ac_prog" 43311 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 43312 break 2 43313 fi 43314 done 43315 done 43316 IFS=$as_save_IFS 43317 43318 fi 43319 fi 43320 OBJDUMP=$ac_cv_prog_OBJDUMP 43321 if test -n "$OBJDUMP"; then 43322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 43323 $as_echo "$OBJDUMP" >&6; } 43324 else 43325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 43326 $as_echo "no" >&6; } 43327 fi 43328 43329 43330 test -n "$OBJDUMP" && break 43331 done 43332 fi 43333 if test -z "$OBJDUMP"; then 43334 ac_ct_OBJDUMP=$OBJDUMP 43335 for ac_prog in gobjdump objdump 43336 do 43337 # Extract the first word of "$ac_prog", so it can be a program name with args. 43338 set dummy $ac_prog; ac_word=$2 43339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 43340 $as_echo_n "checking for $ac_word... " >&6; } 43341 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : 43342 $as_echo_n "(cached) " >&6 43343 else 43344 if test -n "$ac_ct_OBJDUMP"; then 43345 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 43346 else 43347 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 43348 for as_dir in $PATH 43349 do 43350 IFS=$as_save_IFS 43351 test -z "$as_dir" && as_dir=. 43352 for ac_exec_ext in '' $ac_executable_extensions; do 43353 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 43354 ac_cv_prog_ac_ct_OBJDUMP="$ac_prog" 43355 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 43356 break 2 43357 fi 43358 done 43359 done 43360 IFS=$as_save_IFS 43361 43362 fi 43363 fi 43364 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 43365 if test -n "$ac_ct_OBJDUMP"; then 43366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 43367 $as_echo "$ac_ct_OBJDUMP" >&6; } 43368 else 43369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 43370 $as_echo "no" >&6; } 43371 fi 43372 43373 43374 test -n "$ac_ct_OBJDUMP" && break 43375 done 43376 43377 if test "x$ac_ct_OBJDUMP" = x; then 43378 OBJDUMP="" 43379 else 43380 case $cross_compiling:$ac_tool_warned in 43381 yes:) 43382 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 43383 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 43384 ac_tool_warned=yes ;; 43385 esac 43386 OBJDUMP=$ac_ct_OBJDUMP 43387 fi 43388 fi 43389 43390 else 43391 # If it succeeded, then it was overridden by the user. We will use it 43392 # for the tool. 43393 43394 # First remove it from the list of overridden variables, so we can test 43395 # for unknown variables in the end. 43396 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 43397 43398 # Check if we try to supply an empty value 43399 if test "x$OBJDUMP" = x; then 43400 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool OBJDUMP= (no value)" >&5 43401 $as_echo "$as_me: Setting user supplied tool OBJDUMP= (no value)" >&6;} 43402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OBJDUMP" >&5 43403 $as_echo_n "checking for OBJDUMP... " >&6; } 43404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 43405 $as_echo "disabled" >&6; } 43406 else 43407 # Check if the provided tool contains a complete path. 43408 tool_specified="$OBJDUMP" 43409 tool_basename="${tool_specified##*/}" 43410 if test "x$tool_basename" = "x$tool_specified"; then 43411 # A command without a complete path is provided, search $PATH. 43412 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool OBJDUMP=$tool_basename" >&5 43413 $as_echo "$as_me: Will search for user supplied tool OBJDUMP=$tool_basename" >&6;} 43414 # Extract the first word of "$tool_basename", so it can be a program name with args. 43415 set dummy $tool_basename; ac_word=$2 43416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 43417 $as_echo_n "checking for $ac_word... " >&6; } 43418 if ${ac_cv_path_OBJDUMP+:} false; then : 43419 $as_echo_n "(cached) " >&6 43420 else 43421 case $OBJDUMP in 43422 [\\/]* | ?:[\\/]*) 43423 ac_cv_path_OBJDUMP="$OBJDUMP" # Let the user override the test with a path. 43424 ;; 43425 *) 43426 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 43427 for as_dir in $PATH 43428 do 43429 IFS=$as_save_IFS 43430 test -z "$as_dir" && as_dir=. 43431 for ac_exec_ext in '' $ac_executable_extensions; do 43432 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 43433 ac_cv_path_OBJDUMP="$as_dir/$ac_word$ac_exec_ext" 43434 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 43435 break 2 43436 fi 43437 done 43438 done 43439 IFS=$as_save_IFS 43440 43441 ;; 43442 esac 43443 fi 43444 OBJDUMP=$ac_cv_path_OBJDUMP 43445 if test -n "$OBJDUMP"; then 43446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 43447 $as_echo "$OBJDUMP" >&6; } 43448 else 43449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 43450 $as_echo "no" >&6; } 43451 fi 43452 43453 43454 if test "x$OBJDUMP" = x; then 43455 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 43456 fi 43457 else 43458 # Otherwise we believe it is a complete path. Use it as it is. 43459 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool OBJDUMP=$tool_specified" >&5 43460 $as_echo "$as_me: Will use user supplied tool OBJDUMP=$tool_specified" >&6;} 43461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OBJDUMP" >&5 43462 $as_echo_n "checking for OBJDUMP... " >&6; } 43463 if test ! -x "$tool_specified"; then 43464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 43465 $as_echo "not found" >&6; } 43466 as_fn_error $? "User supplied tool OBJDUMP=$tool_specified does not exist or is not executable" "$LINENO" 5 43467 fi 43468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 43469 $as_echo "$tool_specified" >&6; } 43470 fi 43471 fi 43472 fi 43473 43474 fi 43475 43476 43477 if test "x$OBJDUMP" != x; then 43478 # Only used for compare.sh; we can live without it. BASIC_FIXUP_EXECUTABLE 43479 # bails if argument is missing. 43480 43481 # Only process if variable expands to non-empty 43482 43483 if test "x$OBJDUMP" != x; then 43484 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 43485 43486 # First separate the path from the arguments. This will split at the first 43487 # space. 43488 complete="$OBJDUMP" 43489 path="${complete%% *}" 43490 tmp="$complete EOL" 43491 arguments="${tmp#* }" 43492 43493 # Input might be given as Windows format, start by converting to 43494 # unix format. 43495 new_path=`$CYGPATH -u "$path"` 43496 43497 # Now try to locate executable using which 43498 new_path=`$WHICH "$new_path" 2> /dev/null` 43499 # bat and cmd files are not always considered executable in cygwin causing which 43500 # to not find them 43501 if test "x$new_path" = x \ 43502 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 43503 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 43504 new_path=`$CYGPATH -u "$path"` 43505 fi 43506 if test "x$new_path" = x; then 43507 # Oops. Which didn't find the executable. 43508 # The splitting of arguments from the executable at a space might have been incorrect, 43509 # since paths with space are more likely in Windows. Give it another try with the whole 43510 # argument. 43511 path="$complete" 43512 arguments="EOL" 43513 new_path=`$CYGPATH -u "$path"` 43514 new_path=`$WHICH "$new_path" 2> /dev/null` 43515 # bat and cmd files are not always considered executable in cygwin causing which 43516 # to not find them 43517 if test "x$new_path" = x \ 43518 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 43519 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 43520 new_path=`$CYGPATH -u "$path"` 43521 fi 43522 if test "x$new_path" = x; then 43523 # It's still not found. Now this is an unrecoverable error. 43524 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OBJDUMP, which resolves as \"$complete\", is not found." >&5 43525 $as_echo "$as_me: The path of OBJDUMP, which resolves as \"$complete\", is not found." >&6;} 43526 has_space=`$ECHO "$complete" | $GREP " "` 43527 if test "x$has_space" != x; then 43528 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 43529 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 43530 fi 43531 as_fn_error $? "Cannot locate the the path of OBJDUMP" "$LINENO" 5 43532 fi 43533 fi 43534 43535 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 43536 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 43537 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 43538 # "foo.exe" is OK but "foo" is an error. 43539 # 43540 # This test is therefore slightly more accurate than "test -f" to check for file presence. 43541 # It is also a way to make sure we got the proper file name for the real test later on. 43542 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 43543 if test "x$test_shortpath" = x; then 43544 # Short path failed, file does not exist as specified. 43545 # Try adding .exe or .cmd 43546 if test -f "${new_path}.exe"; then 43547 input_to_shortpath="${new_path}.exe" 43548 elif test -f "${new_path}.cmd"; then 43549 input_to_shortpath="${new_path}.cmd" 43550 else 43551 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OBJDUMP, which resolves as \"$new_path\", is invalid." >&5 43552 $as_echo "$as_me: The path of OBJDUMP, which resolves as \"$new_path\", is invalid." >&6;} 43553 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 43554 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 43555 as_fn_error $? "Cannot locate the the path of OBJDUMP" "$LINENO" 5 43556 fi 43557 else 43558 input_to_shortpath="$new_path" 43559 fi 43560 43561 # Call helper function which possibly converts this using DOS-style short mode. 43562 # If so, the updated path is stored in $new_path. 43563 new_path="$input_to_shortpath" 43564 43565 input_path="$input_to_shortpath" 43566 # Check if we need to convert this using DOS-style short mode. If the path 43567 # contains just simple characters, use it. Otherwise (spaces, weird characters), 43568 # take no chances and rewrite it. 43569 # Note: m4 eats our [], so we need to use [ and ] instead. 43570 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 43571 if test "x$has_forbidden_chars" != x; then 43572 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 43573 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 43574 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 43575 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 43576 # Going to short mode and back again did indeed matter. Since short mode is 43577 # case insensitive, let's make it lowercase to improve readability. 43578 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 43579 # Now convert it back to Unix-style (cygpath) 43580 input_path=`$CYGPATH -u "$shortmode_path"` 43581 new_path="$input_path" 43582 fi 43583 fi 43584 43585 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 43586 if test "x$test_cygdrive_prefix" = x; then 43587 # As a simple fix, exclude /usr/bin since it's not a real path. 43588 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 43589 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 43590 # a path prefixed by /cygdrive for fixpath to work. 43591 new_path="$CYGWIN_ROOT_PATH$input_path" 43592 fi 43593 fi 43594 43595 # remove trailing .exe if any 43596 new_path="${new_path/%.exe/}" 43597 43598 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 43599 43600 # First separate the path from the arguments. This will split at the first 43601 # space. 43602 complete="$OBJDUMP" 43603 path="${complete%% *}" 43604 tmp="$complete EOL" 43605 arguments="${tmp#* }" 43606 43607 # Input might be given as Windows format, start by converting to 43608 # unix format. 43609 new_path="$path" 43610 43611 windows_path="$new_path" 43612 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 43613 unix_path=`$CYGPATH -u "$windows_path"` 43614 new_path="$unix_path" 43615 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 43616 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 43617 new_path="$unix_path" 43618 fi 43619 43620 43621 # Now try to locate executable using which 43622 new_path=`$WHICH "$new_path" 2> /dev/null` 43623 43624 if test "x$new_path" = x; then 43625 # Oops. Which didn't find the executable. 43626 # The splitting of arguments from the executable at a space might have been incorrect, 43627 # since paths with space are more likely in Windows. Give it another try with the whole 43628 # argument. 43629 path="$complete" 43630 arguments="EOL" 43631 new_path="$path" 43632 43633 windows_path="$new_path" 43634 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 43635 unix_path=`$CYGPATH -u "$windows_path"` 43636 new_path="$unix_path" 43637 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 43638 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 43639 new_path="$unix_path" 43640 fi 43641 43642 43643 new_path=`$WHICH "$new_path" 2> /dev/null` 43644 # bat and cmd files are not always considered executable in MSYS causing which 43645 # to not find them 43646 if test "x$new_path" = x \ 43647 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 43648 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 43649 new_path="$path" 43650 43651 windows_path="$new_path" 43652 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 43653 unix_path=`$CYGPATH -u "$windows_path"` 43654 new_path="$unix_path" 43655 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 43656 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 43657 new_path="$unix_path" 43658 fi 43659 43660 fi 43661 43662 if test "x$new_path" = x; then 43663 # It's still not found. Now this is an unrecoverable error. 43664 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OBJDUMP, which resolves as \"$complete\", is not found." >&5 43665 $as_echo "$as_me: The path of OBJDUMP, which resolves as \"$complete\", is not found." >&6;} 43666 has_space=`$ECHO "$complete" | $GREP " "` 43667 if test "x$has_space" != x; then 43668 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 43669 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 43670 fi 43671 as_fn_error $? "Cannot locate the the path of OBJDUMP" "$LINENO" 5 43672 fi 43673 fi 43674 43675 # Now new_path has a complete unix path to the binary 43676 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 43677 # Keep paths in /bin as-is, but remove trailing .exe if any 43678 new_path="${new_path/%.exe/}" 43679 # Do not save /bin paths to all_fixpath_prefixes! 43680 else 43681 # Not in mixed or Windows style, start by that. 43682 new_path=`cmd //c echo $new_path` 43683 43684 input_path="$new_path" 43685 # Check if we need to convert this using DOS-style short mode. If the path 43686 # contains just simple characters, use it. Otherwise (spaces, weird characters), 43687 # take no chances and rewrite it. 43688 # Note: m4 eats our [], so we need to use [ and ] instead. 43689 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 43690 if test "x$has_forbidden_chars" != x; then 43691 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 43692 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 43693 fi 43694 43695 # Output is in $new_path 43696 43697 windows_path="$new_path" 43698 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 43699 unix_path=`$CYGPATH -u "$windows_path"` 43700 new_path="$unix_path" 43701 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 43702 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 43703 new_path="$unix_path" 43704 fi 43705 43706 # remove trailing .exe if any 43707 new_path="${new_path/%.exe/}" 43708 43709 # Save the first 10 bytes of this path to the storage, so fixpath can work. 43710 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 43711 fi 43712 43713 else 43714 # We're on a unix platform. Hooray! :) 43715 # First separate the path from the arguments. This will split at the first 43716 # space. 43717 complete="$OBJDUMP" 43718 path="${complete%% *}" 43719 tmp="$complete EOL" 43720 arguments="${tmp#* }" 43721 43722 # Cannot rely on the command "which" here since it doesn't always work. 43723 is_absolute_path=`$ECHO "$path" | $GREP ^/` 43724 if test -z "$is_absolute_path"; then 43725 # Path to executable is not absolute. Find it. 43726 IFS_save="$IFS" 43727 IFS=: 43728 for p in $PATH; do 43729 if test -f "$p/$path" && test -x "$p/$path"; then 43730 new_path="$p/$path" 43731 break 43732 fi 43733 done 43734 IFS="$IFS_save" 43735 else 43736 # This is an absolute path, we can use it without further modifications. 43737 new_path="$path" 43738 fi 43739 43740 if test "x$new_path" = x; then 43741 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OBJDUMP, which resolves as \"$complete\", is not found." >&5 43742 $as_echo "$as_me: The path of OBJDUMP, which resolves as \"$complete\", is not found." >&6;} 43743 has_space=`$ECHO "$complete" | $GREP " "` 43744 if test "x$has_space" != x; then 43745 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 43746 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 43747 fi 43748 as_fn_error $? "Cannot locate the the path of OBJDUMP" "$LINENO" 5 43749 fi 43750 fi 43751 43752 # Now join together the path and the arguments once again 43753 if test "x$arguments" != xEOL; then 43754 new_complete="$new_path ${arguments% *}" 43755 else 43756 new_complete="$new_path" 43757 fi 43758 43759 if test "x$complete" != "x$new_complete"; then 43760 OBJDUMP="$new_complete" 43761 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting OBJDUMP to \"$new_complete\"" >&5 43762 $as_echo "$as_me: Rewriting OBJDUMP to \"$new_complete\"" >&6;} 43763 fi 43764 fi 43765 43766 fi 43767 43768 43769 # Restore old path, except for the microsoft toolchain, which requires VS_PATH 43770 # to remain in place. Otherwise the compiler will not work in some siutations 43771 # in later configure checks. 43772 if test "x$TOOLCHAIN_TYPE" != "xmicrosoft"; then 43773 PATH="$OLD_PATH" 43774 fi 43775 43776 # Restore the flags to the user specified values. 43777 # This is necessary since AC_PROG_CC defaults CFLAGS to "-g -O2" 43778 CFLAGS="$ORG_CFLAGS" 43779 CXXFLAGS="$ORG_CXXFLAGS" 43780 43781 43782 # Finally do some processing after the detection phase 43783 43784 if test "x$COMPILE_TYPE" = "xcross"; then 43785 # Now we need to find a C/C++ compiler that can build executables for the 43786 # build platform. We can't use the AC_PROG_CC macro, since it can only be 43787 # used once. Also, we need to do this without adding a tools dir to the 43788 # path, otherwise we might pick up cross-compilers which don't use standard 43789 # naming. 43790 43791 OLDPATH="$PATH" 43792 43793 43794 # Check whether --with-build-devkit was given. 43795 if test "${with_build_devkit+set}" = set; then : 43796 withval=$with_build_devkit; 43797 fi 43798 43799 if test "x$with_build_devkit" = "xyes"; then 43800 as_fn_error $? "--with-build-devkit must have a value" "$LINENO" 5 43801 elif test -n "$with_build_devkit"; then 43802 if test ! -d "$with_build_devkit"; then 43803 as_fn_error $? "--with-build-devkit points to non existing dir: $with_build_devkit" "$LINENO" 5 43804 else 43805 43806 # Only process if variable expands to non-empty 43807 43808 if test "x$with_build_devkit" != x; then 43809 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 43810 43811 # Input might be given as Windows format, start by converting to 43812 # unix format. 43813 path="$with_build_devkit" 43814 new_path=`$CYGPATH -u "$path"` 43815 43816 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 43817 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 43818 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 43819 # "foo.exe" is OK but "foo" is an error. 43820 # 43821 # This test is therefore slightly more accurate than "test -f" to check for file precense. 43822 # It is also a way to make sure we got the proper file name for the real test later on. 43823 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 43824 if test "x$test_shortpath" = x; then 43825 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of with_build_devkit, which resolves as \"$path\", is invalid." >&5 43826 $as_echo "$as_me: The path of with_build_devkit, which resolves as \"$path\", is invalid." >&6;} 43827 as_fn_error $? "Cannot locate the the path of with_build_devkit" "$LINENO" 5 43828 fi 43829 43830 # Call helper function which possibly converts this using DOS-style short mode. 43831 # If so, the updated path is stored in $new_path. 43832 43833 input_path="$new_path" 43834 # Check if we need to convert this using DOS-style short mode. If the path 43835 # contains just simple characters, use it. Otherwise (spaces, weird characters), 43836 # take no chances and rewrite it. 43837 # Note: m4 eats our [], so we need to use [ and ] instead. 43838 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 43839 if test "x$has_forbidden_chars" != x; then 43840 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 43841 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 43842 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 43843 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 43844 # Going to short mode and back again did indeed matter. Since short mode is 43845 # case insensitive, let's make it lowercase to improve readability. 43846 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 43847 # Now convert it back to Unix-style (cygpath) 43848 input_path=`$CYGPATH -u "$shortmode_path"` 43849 new_path="$input_path" 43850 fi 43851 fi 43852 43853 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 43854 if test "x$test_cygdrive_prefix" = x; then 43855 # As a simple fix, exclude /usr/bin since it's not a real path. 43856 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 43857 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 43858 # a path prefixed by /cygdrive for fixpath to work. 43859 new_path="$CYGWIN_ROOT_PATH$input_path" 43860 fi 43861 fi 43862 43863 43864 if test "x$path" != "x$new_path"; then 43865 with_build_devkit="$new_path" 43866 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting with_build_devkit to \"$new_path\"" >&5 43867 $as_echo "$as_me: Rewriting with_build_devkit to \"$new_path\"" >&6;} 43868 fi 43869 43870 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 43871 43872 path="$with_build_devkit" 43873 has_colon=`$ECHO $path | $GREP ^.:` 43874 new_path="$path" 43875 if test "x$has_colon" = x; then 43876 # Not in mixed or Windows style, start by that. 43877 new_path=`cmd //c echo $path` 43878 fi 43879 43880 43881 input_path="$new_path" 43882 # Check if we need to convert this using DOS-style short mode. If the path 43883 # contains just simple characters, use it. Otherwise (spaces, weird characters), 43884 # take no chances and rewrite it. 43885 # Note: m4 eats our [], so we need to use [ and ] instead. 43886 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 43887 if test "x$has_forbidden_chars" != x; then 43888 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 43889 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 43890 fi 43891 43892 43893 windows_path="$new_path" 43894 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 43895 unix_path=`$CYGPATH -u "$windows_path"` 43896 new_path="$unix_path" 43897 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 43898 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 43899 new_path="$unix_path" 43900 fi 43901 43902 if test "x$path" != "x$new_path"; then 43903 with_build_devkit="$new_path" 43904 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting with_build_devkit to \"$new_path\"" >&5 43905 $as_echo "$as_me: Rewriting with_build_devkit to \"$new_path\"" >&6;} 43906 fi 43907 43908 # Save the first 10 bytes of this path to the storage, so fixpath can work. 43909 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 43910 43911 else 43912 # We're on a unix platform. Hooray! :) 43913 path="$with_build_devkit" 43914 has_space=`$ECHO "$path" | $GREP " "` 43915 if test "x$has_space" != x; then 43916 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of with_build_devkit, which resolves as \"$path\", is invalid." >&5 43917 $as_echo "$as_me: The path of with_build_devkit, which resolves as \"$path\", is invalid." >&6;} 43918 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 43919 fi 43920 43921 # Use eval to expand a potential ~ 43922 eval path="$path" 43923 if test ! -f "$path" && test ! -d "$path"; then 43924 as_fn_error $? "The path of with_build_devkit, which resolves as \"$path\", is not found." "$LINENO" 5 43925 fi 43926 43927 if test -d "$path"; then 43928 with_build_devkit="`cd "$path"; $THEPWDCMD -L`" 43929 else 43930 dir="`$DIRNAME "$path"`" 43931 base="`$BASENAME "$path"`" 43932 with_build_devkit="`cd "$dir"; $THEPWDCMD -L`/$base" 43933 fi 43934 fi 43935 fi 43936 43937 BUILD_DEVKIT_ROOT="$with_build_devkit" 43938 # Check for a meta data info file in the root of the devkit 43939 if test -f "$BUILD_DEVKIT_ROOT/devkit.info"; then 43940 # Process devkit.info so that existing devkit variables are not 43941 # modified by this 43942 $SED -e "s/^DEVKIT_/BUILD_DEVKIT_/g" \ 43943 -e "s/\$DEVKIT_ROOT/\$BUILD_DEVKIT_ROOT/g" \ 43944 -e "s/\$host/\$build/g" \ 43945 $BUILD_DEVKIT_ROOT/devkit.info \ 43946 > $CONFIGURESUPPORT_OUTPUTDIR/build-devkit.info 43947 . $CONFIGURESUPPORT_OUTPUTDIR/build-devkit.info 43948 # This potentially sets the following: 43949 # A descriptive name of the devkit 43950 43951 if test "x$BUILD_DEVKIT_NAME" = x; then 43952 eval BUILD_DEVKIT_NAME="\${BUILD_DEVKIT_NAME_${OPENJDK_TARGET_CPU}}" 43953 fi 43954 43955 # Corresponds to --with-extra-path 43956 43957 if test "x$BUILD_DEVKIT_EXTRA_PATH" = x; then 43958 eval BUILD_DEVKIT_EXTRA_PATH="\${BUILD_DEVKIT_EXTRA_PATH_${OPENJDK_TARGET_CPU}}" 43959 fi 43960 43961 # Corresponds to --with-toolchain-path 43962 43963 if test "x$BUILD_DEVKIT_TOOLCHAIN_PATH" = x; then 43964 eval BUILD_DEVKIT_TOOLCHAIN_PATH="\${BUILD_DEVKIT_TOOLCHAIN_PATH_${OPENJDK_TARGET_CPU}}" 43965 fi 43966 43967 # Corresponds to --with-sysroot 43968 43969 if test "x$BUILD_DEVKIT_SYSROOT" = x; then 43970 eval BUILD_DEVKIT_SYSROOT="\${BUILD_DEVKIT_SYSROOT_${OPENJDK_TARGET_CPU}}" 43971 fi 43972 43973 # Skip the Window specific parts 43974 fi 43975 43976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for build platform devkit" >&5 43977 $as_echo_n "checking for build platform devkit... " >&6; } 43978 if test "x$BUILD_DEVKIT_NAME" != x; then 43979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_DEVKIT_NAME in $BUILD_DEVKIT_ROOT" >&5 43980 $as_echo "$BUILD_DEVKIT_NAME in $BUILD_DEVKIT_ROOT" >&6; } 43981 else 43982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_DEVKIT_ROOT" >&5 43983 $as_echo "$BUILD_DEVKIT_ROOT" >&6; } 43984 fi 43985 43986 BUILD_SYSROOT="$BUILD_DEVKIT_SYSROOT" 43987 43988 if test "x$BUILD_SYSROOT" != "x"; then 43989 if test "x$TOOLCHAIN_TYPE" = xsolstudio; then 43990 if test "x$OPENJDK_TARGET_OS" = xsolaris; then 43991 # Solaris Studio does not have a concept of sysroot. Instead we must 43992 # make sure the default include and lib dirs are appended to each 43993 # compile and link command line. Must also add -I-xbuiltin to enable 43994 # inlining of system functions and intrinsics. 43995 BUILD_SYSROOT_CFLAGS="-I-xbuiltin -I$BUILD_SYSROOT/usr/include" 43996 BUILD_SYSROOT_LDFLAGS="-L$BUILD_SYSROOT/usr/lib$OPENJDK_TARGET_CPU_ISADIR \ 43997 -L$BUILD_SYSROOT/lib$OPENJDK_TARGET_CPU_ISADIR" 43998 fi 43999 elif test "x$TOOLCHAIN_TYPE" = xgcc; then 44000 BUILD_SYSROOT_CFLAGS="--sysroot=$BUILD_SYSROOT" 44001 BUILD_SYSROOT_LDFLAGS="--sysroot=$BUILD_SYSROOT" 44002 elif test "x$TOOLCHAIN_TYPE" = xclang; then 44003 BUILD_SYSROOT_CFLAGS="-isysroot $BUILD_SYSROOT" 44004 BUILD_SYSROOT_LDFLAGS="-isysroot $BUILD_SYSROOT" 44005 fi 44006 # Propagate the sysroot args to hotspot 44007 BUILD_LEGACY_EXTRA_CFLAGS="$BUILD_LEGACY_EXTRA_CFLAGS $BUILD_SYSROOT_CFLAGS" 44008 BUILD_LEGACY_EXTRA_CXXFLAGS="$BUILD_LEGACY_EXTRA_CXXFLAGS $BUILD_SYSROOT_CFLAGS" 44009 BUILD_LEGACY_EXTRA_LDFLAGS="$BUILD_LEGACY_EXTRA_LDFLAGS $BUILD_SYSROOT_LDFLAGS" 44010 # The global CFLAGS and LDFLAGS variables need these for configure to function 44011 BUILD_CFLAGS="$BUILD_CFLAGS $BUILD_SYSROOT_CFLAGS" 44012 BUILD_CPPFLAGS="$BUILD_CPPFLAGS $BUILD_SYSROOT_CFLAGS" 44013 BUILD_CXXFLAGS="$BUILD_CXXFLAGS $BUILD_SYSROOT_CFLAGS" 44014 BUILD_LDFLAGS="$BUILD_LDFLAGS $BUILD_SYSROOT_LDFLAGS" 44015 fi 44016 44017 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 44018 # We also need -iframework<path>/System/Library/Frameworks 44019 BUILD_SYSROOT_CFLAGS="$BUILD_SYSROOT_CFLAGS -iframework $BUILD_SYSROOT/System/Library/Frameworks" 44020 BUILD_SYSROOT_LDFLAGS="$BUILD_SYSROOT_LDFLAGS -iframework $BUILD_SYSROOT/System/Library/Frameworks" 44021 # These always need to be set, or we can't find the frameworks embedded in JavaVM.framework 44022 # set this here so it doesn't have to be peppered throughout the forest 44023 BUILD_SYSROOT_CFLAGS="$BUILD_SYSROOT_CFLAGS -F $BUILD_SYSROOT/System/Library/Frameworks/JavaVM.framework/Frameworks" 44024 BUILD_SYSROOT_LDFLAGS="$BUILD_SYSROOT_LDFLAGS -F $BUILD_SYSROOT/System/Library/Frameworks/JavaVM.framework/Frameworks" 44025 fi 44026 44027 44028 44029 44030 44031 # Fallback default of just /bin if DEVKIT_PATH is not defined 44032 if test "x$BUILD_DEVKIT_TOOLCHAIN_PATH" = x; then 44033 BUILD_DEVKIT_TOOLCHAIN_PATH="$BUILD_DEVKIT_ROOT/bin" 44034 fi 44035 PATH="$BUILD_DEVKIT_TOOLCHAIN_PATH:$BUILD_DEVKIT_EXTRA_PATH" 44036 fi 44037 fi 44038 44039 # FIXME: we should list the discovered compilers as an exclude pattern! 44040 # If we do that, we can do this detection before POST_DETECTION, and still 44041 # find the build compilers in the tools dir, if needed. 44042 44043 44044 44045 # Publish this variable in the help. 44046 44047 44048 if [ -z "${BUILD_CC+x}" ]; then 44049 # The variable is not set by user, try to locate tool using the code snippet 44050 for ac_prog in cl cc gcc 44051 do 44052 # Extract the first word of "$ac_prog", so it can be a program name with args. 44053 set dummy $ac_prog; ac_word=$2 44054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 44055 $as_echo_n "checking for $ac_word... " >&6; } 44056 if ${ac_cv_path_BUILD_CC+:} false; then : 44057 $as_echo_n "(cached) " >&6 44058 else 44059 case $BUILD_CC in 44060 [\\/]* | ?:[\\/]*) 44061 ac_cv_path_BUILD_CC="$BUILD_CC" # Let the user override the test with a path. 44062 ;; 44063 *) 44064 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 44065 for as_dir in $PATH 44066 do 44067 IFS=$as_save_IFS 44068 test -z "$as_dir" && as_dir=. 44069 for ac_exec_ext in '' $ac_executable_extensions; do 44070 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 44071 ac_cv_path_BUILD_CC="$as_dir/$ac_word$ac_exec_ext" 44072 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 44073 break 2 44074 fi 44075 done 44076 done 44077 IFS=$as_save_IFS 44078 44079 ;; 44080 esac 44081 fi 44082 BUILD_CC=$ac_cv_path_BUILD_CC 44083 if test -n "$BUILD_CC"; then 44084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CC" >&5 44085 $as_echo "$BUILD_CC" >&6; } 44086 else 44087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 44088 $as_echo "no" >&6; } 44089 fi 44090 44091 44092 test -n "$BUILD_CC" && break 44093 done 44094 44095 else 44096 # The variable is set, but is it from the command line or the environment? 44097 44098 # Try to remove the string !BUILD_CC! from our list. 44099 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!BUILD_CC!/} 44100 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 44101 # If it failed, the variable was not from the command line. Ignore it, 44102 # but warn the user (except for BASH, which is always set by the calling BASH). 44103 if test "xBUILD_CC" != xBASH; then 44104 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of BUILD_CC from the environment. Use command line variables instead." >&5 44105 $as_echo "$as_me: WARNING: Ignoring value of BUILD_CC from the environment. Use command line variables instead." >&2;} 44106 fi 44107 # Try to locate tool using the code snippet 44108 for ac_prog in cl cc gcc 44109 do 44110 # Extract the first word of "$ac_prog", so it can be a program name with args. 44111 set dummy $ac_prog; ac_word=$2 44112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 44113 $as_echo_n "checking for $ac_word... " >&6; } 44114 if ${ac_cv_path_BUILD_CC+:} false; then : 44115 $as_echo_n "(cached) " >&6 44116 else 44117 case $BUILD_CC in 44118 [\\/]* | ?:[\\/]*) 44119 ac_cv_path_BUILD_CC="$BUILD_CC" # Let the user override the test with a path. 44120 ;; 44121 *) 44122 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 44123 for as_dir in $PATH 44124 do 44125 IFS=$as_save_IFS 44126 test -z "$as_dir" && as_dir=. 44127 for ac_exec_ext in '' $ac_executable_extensions; do 44128 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 44129 ac_cv_path_BUILD_CC="$as_dir/$ac_word$ac_exec_ext" 44130 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 44131 break 2 44132 fi 44133 done 44134 done 44135 IFS=$as_save_IFS 44136 44137 ;; 44138 esac 44139 fi 44140 BUILD_CC=$ac_cv_path_BUILD_CC 44141 if test -n "$BUILD_CC"; then 44142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CC" >&5 44143 $as_echo "$BUILD_CC" >&6; } 44144 else 44145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 44146 $as_echo "no" >&6; } 44147 fi 44148 44149 44150 test -n "$BUILD_CC" && break 44151 done 44152 44153 else 44154 # If it succeeded, then it was overridden by the user. We will use it 44155 # for the tool. 44156 44157 # First remove it from the list of overridden variables, so we can test 44158 # for unknown variables in the end. 44159 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 44160 44161 # Check if we try to supply an empty value 44162 if test "x$BUILD_CC" = x; then 44163 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool BUILD_CC= (no value)" >&5 44164 $as_echo "$as_me: Setting user supplied tool BUILD_CC= (no value)" >&6;} 44165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BUILD_CC" >&5 44166 $as_echo_n "checking for BUILD_CC... " >&6; } 44167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 44168 $as_echo "disabled" >&6; } 44169 else 44170 # Check if the provided tool contains a complete path. 44171 tool_specified="$BUILD_CC" 44172 tool_basename="${tool_specified##*/}" 44173 if test "x$tool_basename" = "x$tool_specified"; then 44174 # A command without a complete path is provided, search $PATH. 44175 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool BUILD_CC=$tool_basename" >&5 44176 $as_echo "$as_me: Will search for user supplied tool BUILD_CC=$tool_basename" >&6;} 44177 # Extract the first word of "$tool_basename", so it can be a program name with args. 44178 set dummy $tool_basename; ac_word=$2 44179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 44180 $as_echo_n "checking for $ac_word... " >&6; } 44181 if ${ac_cv_path_BUILD_CC+:} false; then : 44182 $as_echo_n "(cached) " >&6 44183 else 44184 case $BUILD_CC in 44185 [\\/]* | ?:[\\/]*) 44186 ac_cv_path_BUILD_CC="$BUILD_CC" # Let the user override the test with a path. 44187 ;; 44188 *) 44189 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 44190 for as_dir in $PATH 44191 do 44192 IFS=$as_save_IFS 44193 test -z "$as_dir" && as_dir=. 44194 for ac_exec_ext in '' $ac_executable_extensions; do 44195 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 44196 ac_cv_path_BUILD_CC="$as_dir/$ac_word$ac_exec_ext" 44197 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 44198 break 2 44199 fi 44200 done 44201 done 44202 IFS=$as_save_IFS 44203 44204 ;; 44205 esac 44206 fi 44207 BUILD_CC=$ac_cv_path_BUILD_CC 44208 if test -n "$BUILD_CC"; then 44209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CC" >&5 44210 $as_echo "$BUILD_CC" >&6; } 44211 else 44212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 44213 $as_echo "no" >&6; } 44214 fi 44215 44216 44217 if test "x$BUILD_CC" = x; then 44218 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 44219 fi 44220 else 44221 # Otherwise we believe it is a complete path. Use it as it is. 44222 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool BUILD_CC=$tool_specified" >&5 44223 $as_echo "$as_me: Will use user supplied tool BUILD_CC=$tool_specified" >&6;} 44224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BUILD_CC" >&5 44225 $as_echo_n "checking for BUILD_CC... " >&6; } 44226 if test ! -x "$tool_specified"; then 44227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 44228 $as_echo "not found" >&6; } 44229 as_fn_error $? "User supplied tool BUILD_CC=$tool_specified does not exist or is not executable" "$LINENO" 5 44230 fi 44231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 44232 $as_echo "$tool_specified" >&6; } 44233 fi 44234 fi 44235 fi 44236 44237 fi 44238 44239 44240 44241 if test "x$BUILD_CC" = x; then 44242 as_fn_error $? "Could not find required tool for BUILD_CC" "$LINENO" 5 44243 fi 44244 44245 44246 44247 # Only process if variable expands to non-empty 44248 44249 if test "x$BUILD_CC" != x; then 44250 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 44251 44252 # First separate the path from the arguments. This will split at the first 44253 # space. 44254 complete="$BUILD_CC" 44255 path="${complete%% *}" 44256 tmp="$complete EOL" 44257 arguments="${tmp#* }" 44258 44259 # Input might be given as Windows format, start by converting to 44260 # unix format. 44261 new_path=`$CYGPATH -u "$path"` 44262 44263 # Now try to locate executable using which 44264 new_path=`$WHICH "$new_path" 2> /dev/null` 44265 # bat and cmd files are not always considered executable in cygwin causing which 44266 # to not find them 44267 if test "x$new_path" = x \ 44268 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 44269 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 44270 new_path=`$CYGPATH -u "$path"` 44271 fi 44272 if test "x$new_path" = x; then 44273 # Oops. Which didn't find the executable. 44274 # The splitting of arguments from the executable at a space might have been incorrect, 44275 # since paths with space are more likely in Windows. Give it another try with the whole 44276 # argument. 44277 path="$complete" 44278 arguments="EOL" 44279 new_path=`$CYGPATH -u "$path"` 44280 new_path=`$WHICH "$new_path" 2> /dev/null` 44281 # bat and cmd files are not always considered executable in cygwin causing which 44282 # to not find them 44283 if test "x$new_path" = x \ 44284 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 44285 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 44286 new_path=`$CYGPATH -u "$path"` 44287 fi 44288 if test "x$new_path" = x; then 44289 # It's still not found. Now this is an unrecoverable error. 44290 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_CC, which resolves as \"$complete\", is not found." >&5 44291 $as_echo "$as_me: The path of BUILD_CC, which resolves as \"$complete\", is not found." >&6;} 44292 has_space=`$ECHO "$complete" | $GREP " "` 44293 if test "x$has_space" != x; then 44294 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 44295 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 44296 fi 44297 as_fn_error $? "Cannot locate the the path of BUILD_CC" "$LINENO" 5 44298 fi 44299 fi 44300 44301 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 44302 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 44303 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 44304 # "foo.exe" is OK but "foo" is an error. 44305 # 44306 # This test is therefore slightly more accurate than "test -f" to check for file presence. 44307 # It is also a way to make sure we got the proper file name for the real test later on. 44308 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 44309 if test "x$test_shortpath" = x; then 44310 # Short path failed, file does not exist as specified. 44311 # Try adding .exe or .cmd 44312 if test -f "${new_path}.exe"; then 44313 input_to_shortpath="${new_path}.exe" 44314 elif test -f "${new_path}.cmd"; then 44315 input_to_shortpath="${new_path}.cmd" 44316 else 44317 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_CC, which resolves as \"$new_path\", is invalid." >&5 44318 $as_echo "$as_me: The path of BUILD_CC, which resolves as \"$new_path\", is invalid." >&6;} 44319 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 44320 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 44321 as_fn_error $? "Cannot locate the the path of BUILD_CC" "$LINENO" 5 44322 fi 44323 else 44324 input_to_shortpath="$new_path" 44325 fi 44326 44327 # Call helper function which possibly converts this using DOS-style short mode. 44328 # If so, the updated path is stored in $new_path. 44329 new_path="$input_to_shortpath" 44330 44331 input_path="$input_to_shortpath" 44332 # Check if we need to convert this using DOS-style short mode. If the path 44333 # contains just simple characters, use it. Otherwise (spaces, weird characters), 44334 # take no chances and rewrite it. 44335 # Note: m4 eats our [], so we need to use [ and ] instead. 44336 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 44337 if test "x$has_forbidden_chars" != x; then 44338 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 44339 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 44340 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 44341 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 44342 # Going to short mode and back again did indeed matter. Since short mode is 44343 # case insensitive, let's make it lowercase to improve readability. 44344 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 44345 # Now convert it back to Unix-style (cygpath) 44346 input_path=`$CYGPATH -u "$shortmode_path"` 44347 new_path="$input_path" 44348 fi 44349 fi 44350 44351 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 44352 if test "x$test_cygdrive_prefix" = x; then 44353 # As a simple fix, exclude /usr/bin since it's not a real path. 44354 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 44355 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 44356 # a path prefixed by /cygdrive for fixpath to work. 44357 new_path="$CYGWIN_ROOT_PATH$input_path" 44358 fi 44359 fi 44360 44361 # remove trailing .exe if any 44362 new_path="${new_path/%.exe/}" 44363 44364 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 44365 44366 # First separate the path from the arguments. This will split at the first 44367 # space. 44368 complete="$BUILD_CC" 44369 path="${complete%% *}" 44370 tmp="$complete EOL" 44371 arguments="${tmp#* }" 44372 44373 # Input might be given as Windows format, start by converting to 44374 # unix format. 44375 new_path="$path" 44376 44377 windows_path="$new_path" 44378 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 44379 unix_path=`$CYGPATH -u "$windows_path"` 44380 new_path="$unix_path" 44381 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 44382 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 44383 new_path="$unix_path" 44384 fi 44385 44386 44387 # Now try to locate executable using which 44388 new_path=`$WHICH "$new_path" 2> /dev/null` 44389 44390 if test "x$new_path" = x; then 44391 # Oops. Which didn't find the executable. 44392 # The splitting of arguments from the executable at a space might have been incorrect, 44393 # since paths with space are more likely in Windows. Give it another try with the whole 44394 # argument. 44395 path="$complete" 44396 arguments="EOL" 44397 new_path="$path" 44398 44399 windows_path="$new_path" 44400 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 44401 unix_path=`$CYGPATH -u "$windows_path"` 44402 new_path="$unix_path" 44403 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 44404 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 44405 new_path="$unix_path" 44406 fi 44407 44408 44409 new_path=`$WHICH "$new_path" 2> /dev/null` 44410 # bat and cmd files are not always considered executable in MSYS causing which 44411 # to not find them 44412 if test "x$new_path" = x \ 44413 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 44414 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 44415 new_path="$path" 44416 44417 windows_path="$new_path" 44418 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 44419 unix_path=`$CYGPATH -u "$windows_path"` 44420 new_path="$unix_path" 44421 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 44422 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 44423 new_path="$unix_path" 44424 fi 44425 44426 fi 44427 44428 if test "x$new_path" = x; then 44429 # It's still not found. Now this is an unrecoverable error. 44430 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_CC, which resolves as \"$complete\", is not found." >&5 44431 $as_echo "$as_me: The path of BUILD_CC, which resolves as \"$complete\", is not found." >&6;} 44432 has_space=`$ECHO "$complete" | $GREP " "` 44433 if test "x$has_space" != x; then 44434 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 44435 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 44436 fi 44437 as_fn_error $? "Cannot locate the the path of BUILD_CC" "$LINENO" 5 44438 fi 44439 fi 44440 44441 # Now new_path has a complete unix path to the binary 44442 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 44443 # Keep paths in /bin as-is, but remove trailing .exe if any 44444 new_path="${new_path/%.exe/}" 44445 # Do not save /bin paths to all_fixpath_prefixes! 44446 else 44447 # Not in mixed or Windows style, start by that. 44448 new_path=`cmd //c echo $new_path` 44449 44450 input_path="$new_path" 44451 # Check if we need to convert this using DOS-style short mode. If the path 44452 # contains just simple characters, use it. Otherwise (spaces, weird characters), 44453 # take no chances and rewrite it. 44454 # Note: m4 eats our [], so we need to use [ and ] instead. 44455 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 44456 if test "x$has_forbidden_chars" != x; then 44457 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 44458 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 44459 fi 44460 44461 # Output is in $new_path 44462 44463 windows_path="$new_path" 44464 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 44465 unix_path=`$CYGPATH -u "$windows_path"` 44466 new_path="$unix_path" 44467 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 44468 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 44469 new_path="$unix_path" 44470 fi 44471 44472 # remove trailing .exe if any 44473 new_path="${new_path/%.exe/}" 44474 44475 # Save the first 10 bytes of this path to the storage, so fixpath can work. 44476 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 44477 fi 44478 44479 else 44480 # We're on a unix platform. Hooray! :) 44481 # First separate the path from the arguments. This will split at the first 44482 # space. 44483 complete="$BUILD_CC" 44484 path="${complete%% *}" 44485 tmp="$complete EOL" 44486 arguments="${tmp#* }" 44487 44488 # Cannot rely on the command "which" here since it doesn't always work. 44489 is_absolute_path=`$ECHO "$path" | $GREP ^/` 44490 if test -z "$is_absolute_path"; then 44491 # Path to executable is not absolute. Find it. 44492 IFS_save="$IFS" 44493 IFS=: 44494 for p in $PATH; do 44495 if test -f "$p/$path" && test -x "$p/$path"; then 44496 new_path="$p/$path" 44497 break 44498 fi 44499 done 44500 IFS="$IFS_save" 44501 else 44502 # This is an absolute path, we can use it without further modifications. 44503 new_path="$path" 44504 fi 44505 44506 if test "x$new_path" = x; then 44507 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_CC, which resolves as \"$complete\", is not found." >&5 44508 $as_echo "$as_me: The path of BUILD_CC, which resolves as \"$complete\", is not found." >&6;} 44509 has_space=`$ECHO "$complete" | $GREP " "` 44510 if test "x$has_space" != x; then 44511 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 44512 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 44513 fi 44514 as_fn_error $? "Cannot locate the the path of BUILD_CC" "$LINENO" 5 44515 fi 44516 fi 44517 44518 # Now join together the path and the arguments once again 44519 if test "x$arguments" != xEOL; then 44520 new_complete="$new_path ${arguments% *}" 44521 else 44522 new_complete="$new_path" 44523 fi 44524 44525 if test "x$complete" != "x$new_complete"; then 44526 BUILD_CC="$new_complete" 44527 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BUILD_CC to \"$new_complete\"" >&5 44528 $as_echo "$as_me: Rewriting BUILD_CC to \"$new_complete\"" >&6;} 44529 fi 44530 fi 44531 44532 44533 44534 44535 # Publish this variable in the help. 44536 44537 44538 if [ -z "${BUILD_CXX+x}" ]; then 44539 # The variable is not set by user, try to locate tool using the code snippet 44540 for ac_prog in cl CC g++ 44541 do 44542 # Extract the first word of "$ac_prog", so it can be a program name with args. 44543 set dummy $ac_prog; ac_word=$2 44544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 44545 $as_echo_n "checking for $ac_word... " >&6; } 44546 if ${ac_cv_path_BUILD_CXX+:} false; then : 44547 $as_echo_n "(cached) " >&6 44548 else 44549 case $BUILD_CXX in 44550 [\\/]* | ?:[\\/]*) 44551 ac_cv_path_BUILD_CXX="$BUILD_CXX" # Let the user override the test with a path. 44552 ;; 44553 *) 44554 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 44555 for as_dir in $PATH 44556 do 44557 IFS=$as_save_IFS 44558 test -z "$as_dir" && as_dir=. 44559 for ac_exec_ext in '' $ac_executable_extensions; do 44560 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 44561 ac_cv_path_BUILD_CXX="$as_dir/$ac_word$ac_exec_ext" 44562 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 44563 break 2 44564 fi 44565 done 44566 done 44567 IFS=$as_save_IFS 44568 44569 ;; 44570 esac 44571 fi 44572 BUILD_CXX=$ac_cv_path_BUILD_CXX 44573 if test -n "$BUILD_CXX"; then 44574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CXX" >&5 44575 $as_echo "$BUILD_CXX" >&6; } 44576 else 44577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 44578 $as_echo "no" >&6; } 44579 fi 44580 44581 44582 test -n "$BUILD_CXX" && break 44583 done 44584 44585 else 44586 # The variable is set, but is it from the command line or the environment? 44587 44588 # Try to remove the string !BUILD_CXX! from our list. 44589 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!BUILD_CXX!/} 44590 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 44591 # If it failed, the variable was not from the command line. Ignore it, 44592 # but warn the user (except for BASH, which is always set by the calling BASH). 44593 if test "xBUILD_CXX" != xBASH; then 44594 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of BUILD_CXX from the environment. Use command line variables instead." >&5 44595 $as_echo "$as_me: WARNING: Ignoring value of BUILD_CXX from the environment. Use command line variables instead." >&2;} 44596 fi 44597 # Try to locate tool using the code snippet 44598 for ac_prog in cl CC g++ 44599 do 44600 # Extract the first word of "$ac_prog", so it can be a program name with args. 44601 set dummy $ac_prog; ac_word=$2 44602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 44603 $as_echo_n "checking for $ac_word... " >&6; } 44604 if ${ac_cv_path_BUILD_CXX+:} false; then : 44605 $as_echo_n "(cached) " >&6 44606 else 44607 case $BUILD_CXX in 44608 [\\/]* | ?:[\\/]*) 44609 ac_cv_path_BUILD_CXX="$BUILD_CXX" # Let the user override the test with a path. 44610 ;; 44611 *) 44612 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 44613 for as_dir in $PATH 44614 do 44615 IFS=$as_save_IFS 44616 test -z "$as_dir" && as_dir=. 44617 for ac_exec_ext in '' $ac_executable_extensions; do 44618 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 44619 ac_cv_path_BUILD_CXX="$as_dir/$ac_word$ac_exec_ext" 44620 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 44621 break 2 44622 fi 44623 done 44624 done 44625 IFS=$as_save_IFS 44626 44627 ;; 44628 esac 44629 fi 44630 BUILD_CXX=$ac_cv_path_BUILD_CXX 44631 if test -n "$BUILD_CXX"; then 44632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CXX" >&5 44633 $as_echo "$BUILD_CXX" >&6; } 44634 else 44635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 44636 $as_echo "no" >&6; } 44637 fi 44638 44639 44640 test -n "$BUILD_CXX" && break 44641 done 44642 44643 else 44644 # If it succeeded, then it was overridden by the user. We will use it 44645 # for the tool. 44646 44647 # First remove it from the list of overridden variables, so we can test 44648 # for unknown variables in the end. 44649 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 44650 44651 # Check if we try to supply an empty value 44652 if test "x$BUILD_CXX" = x; then 44653 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool BUILD_CXX= (no value)" >&5 44654 $as_echo "$as_me: Setting user supplied tool BUILD_CXX= (no value)" >&6;} 44655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BUILD_CXX" >&5 44656 $as_echo_n "checking for BUILD_CXX... " >&6; } 44657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 44658 $as_echo "disabled" >&6; } 44659 else 44660 # Check if the provided tool contains a complete path. 44661 tool_specified="$BUILD_CXX" 44662 tool_basename="${tool_specified##*/}" 44663 if test "x$tool_basename" = "x$tool_specified"; then 44664 # A command without a complete path is provided, search $PATH. 44665 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool BUILD_CXX=$tool_basename" >&5 44666 $as_echo "$as_me: Will search for user supplied tool BUILD_CXX=$tool_basename" >&6;} 44667 # Extract the first word of "$tool_basename", so it can be a program name with args. 44668 set dummy $tool_basename; ac_word=$2 44669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 44670 $as_echo_n "checking for $ac_word... " >&6; } 44671 if ${ac_cv_path_BUILD_CXX+:} false; then : 44672 $as_echo_n "(cached) " >&6 44673 else 44674 case $BUILD_CXX in 44675 [\\/]* | ?:[\\/]*) 44676 ac_cv_path_BUILD_CXX="$BUILD_CXX" # Let the user override the test with a path. 44677 ;; 44678 *) 44679 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 44680 for as_dir in $PATH 44681 do 44682 IFS=$as_save_IFS 44683 test -z "$as_dir" && as_dir=. 44684 for ac_exec_ext in '' $ac_executable_extensions; do 44685 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 44686 ac_cv_path_BUILD_CXX="$as_dir/$ac_word$ac_exec_ext" 44687 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 44688 break 2 44689 fi 44690 done 44691 done 44692 IFS=$as_save_IFS 44693 44694 ;; 44695 esac 44696 fi 44697 BUILD_CXX=$ac_cv_path_BUILD_CXX 44698 if test -n "$BUILD_CXX"; then 44699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CXX" >&5 44700 $as_echo "$BUILD_CXX" >&6; } 44701 else 44702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 44703 $as_echo "no" >&6; } 44704 fi 44705 44706 44707 if test "x$BUILD_CXX" = x; then 44708 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 44709 fi 44710 else 44711 # Otherwise we believe it is a complete path. Use it as it is. 44712 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool BUILD_CXX=$tool_specified" >&5 44713 $as_echo "$as_me: Will use user supplied tool BUILD_CXX=$tool_specified" >&6;} 44714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BUILD_CXX" >&5 44715 $as_echo_n "checking for BUILD_CXX... " >&6; } 44716 if test ! -x "$tool_specified"; then 44717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 44718 $as_echo "not found" >&6; } 44719 as_fn_error $? "User supplied tool BUILD_CXX=$tool_specified does not exist or is not executable" "$LINENO" 5 44720 fi 44721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 44722 $as_echo "$tool_specified" >&6; } 44723 fi 44724 fi 44725 fi 44726 44727 fi 44728 44729 44730 44731 if test "x$BUILD_CXX" = x; then 44732 as_fn_error $? "Could not find required tool for BUILD_CXX" "$LINENO" 5 44733 fi 44734 44735 44736 44737 # Only process if variable expands to non-empty 44738 44739 if test "x$BUILD_CXX" != x; then 44740 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 44741 44742 # First separate the path from the arguments. This will split at the first 44743 # space. 44744 complete="$BUILD_CXX" 44745 path="${complete%% *}" 44746 tmp="$complete EOL" 44747 arguments="${tmp#* }" 44748 44749 # Input might be given as Windows format, start by converting to 44750 # unix format. 44751 new_path=`$CYGPATH -u "$path"` 44752 44753 # Now try to locate executable using which 44754 new_path=`$WHICH "$new_path" 2> /dev/null` 44755 # bat and cmd files are not always considered executable in cygwin causing which 44756 # to not find them 44757 if test "x$new_path" = x \ 44758 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 44759 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 44760 new_path=`$CYGPATH -u "$path"` 44761 fi 44762 if test "x$new_path" = x; then 44763 # Oops. Which didn't find the executable. 44764 # The splitting of arguments from the executable at a space might have been incorrect, 44765 # since paths with space are more likely in Windows. Give it another try with the whole 44766 # argument. 44767 path="$complete" 44768 arguments="EOL" 44769 new_path=`$CYGPATH -u "$path"` 44770 new_path=`$WHICH "$new_path" 2> /dev/null` 44771 # bat and cmd files are not always considered executable in cygwin causing which 44772 # to not find them 44773 if test "x$new_path" = x \ 44774 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 44775 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 44776 new_path=`$CYGPATH -u "$path"` 44777 fi 44778 if test "x$new_path" = x; then 44779 # It's still not found. Now this is an unrecoverable error. 44780 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_CXX, which resolves as \"$complete\", is not found." >&5 44781 $as_echo "$as_me: The path of BUILD_CXX, which resolves as \"$complete\", is not found." >&6;} 44782 has_space=`$ECHO "$complete" | $GREP " "` 44783 if test "x$has_space" != x; then 44784 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 44785 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 44786 fi 44787 as_fn_error $? "Cannot locate the the path of BUILD_CXX" "$LINENO" 5 44788 fi 44789 fi 44790 44791 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 44792 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 44793 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 44794 # "foo.exe" is OK but "foo" is an error. 44795 # 44796 # This test is therefore slightly more accurate than "test -f" to check for file presence. 44797 # It is also a way to make sure we got the proper file name for the real test later on. 44798 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 44799 if test "x$test_shortpath" = x; then 44800 # Short path failed, file does not exist as specified. 44801 # Try adding .exe or .cmd 44802 if test -f "${new_path}.exe"; then 44803 input_to_shortpath="${new_path}.exe" 44804 elif test -f "${new_path}.cmd"; then 44805 input_to_shortpath="${new_path}.cmd" 44806 else 44807 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_CXX, which resolves as \"$new_path\", is invalid." >&5 44808 $as_echo "$as_me: The path of BUILD_CXX, which resolves as \"$new_path\", is invalid." >&6;} 44809 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 44810 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 44811 as_fn_error $? "Cannot locate the the path of BUILD_CXX" "$LINENO" 5 44812 fi 44813 else 44814 input_to_shortpath="$new_path" 44815 fi 44816 44817 # Call helper function which possibly converts this using DOS-style short mode. 44818 # If so, the updated path is stored in $new_path. 44819 new_path="$input_to_shortpath" 44820 44821 input_path="$input_to_shortpath" 44822 # Check if we need to convert this using DOS-style short mode. If the path 44823 # contains just simple characters, use it. Otherwise (spaces, weird characters), 44824 # take no chances and rewrite it. 44825 # Note: m4 eats our [], so we need to use [ and ] instead. 44826 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 44827 if test "x$has_forbidden_chars" != x; then 44828 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 44829 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 44830 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 44831 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 44832 # Going to short mode and back again did indeed matter. Since short mode is 44833 # case insensitive, let's make it lowercase to improve readability. 44834 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 44835 # Now convert it back to Unix-style (cygpath) 44836 input_path=`$CYGPATH -u "$shortmode_path"` 44837 new_path="$input_path" 44838 fi 44839 fi 44840 44841 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 44842 if test "x$test_cygdrive_prefix" = x; then 44843 # As a simple fix, exclude /usr/bin since it's not a real path. 44844 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 44845 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 44846 # a path prefixed by /cygdrive for fixpath to work. 44847 new_path="$CYGWIN_ROOT_PATH$input_path" 44848 fi 44849 fi 44850 44851 # remove trailing .exe if any 44852 new_path="${new_path/%.exe/}" 44853 44854 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 44855 44856 # First separate the path from the arguments. This will split at the first 44857 # space. 44858 complete="$BUILD_CXX" 44859 path="${complete%% *}" 44860 tmp="$complete EOL" 44861 arguments="${tmp#* }" 44862 44863 # Input might be given as Windows format, start by converting to 44864 # unix format. 44865 new_path="$path" 44866 44867 windows_path="$new_path" 44868 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 44869 unix_path=`$CYGPATH -u "$windows_path"` 44870 new_path="$unix_path" 44871 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 44872 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 44873 new_path="$unix_path" 44874 fi 44875 44876 44877 # Now try to locate executable using which 44878 new_path=`$WHICH "$new_path" 2> /dev/null` 44879 44880 if test "x$new_path" = x; then 44881 # Oops. Which didn't find the executable. 44882 # The splitting of arguments from the executable at a space might have been incorrect, 44883 # since paths with space are more likely in Windows. Give it another try with the whole 44884 # argument. 44885 path="$complete" 44886 arguments="EOL" 44887 new_path="$path" 44888 44889 windows_path="$new_path" 44890 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 44891 unix_path=`$CYGPATH -u "$windows_path"` 44892 new_path="$unix_path" 44893 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 44894 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 44895 new_path="$unix_path" 44896 fi 44897 44898 44899 new_path=`$WHICH "$new_path" 2> /dev/null` 44900 # bat and cmd files are not always considered executable in MSYS causing which 44901 # to not find them 44902 if test "x$new_path" = x \ 44903 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 44904 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 44905 new_path="$path" 44906 44907 windows_path="$new_path" 44908 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 44909 unix_path=`$CYGPATH -u "$windows_path"` 44910 new_path="$unix_path" 44911 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 44912 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 44913 new_path="$unix_path" 44914 fi 44915 44916 fi 44917 44918 if test "x$new_path" = x; then 44919 # It's still not found. Now this is an unrecoverable error. 44920 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_CXX, which resolves as \"$complete\", is not found." >&5 44921 $as_echo "$as_me: The path of BUILD_CXX, which resolves as \"$complete\", is not found." >&6;} 44922 has_space=`$ECHO "$complete" | $GREP " "` 44923 if test "x$has_space" != x; then 44924 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 44925 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 44926 fi 44927 as_fn_error $? "Cannot locate the the path of BUILD_CXX" "$LINENO" 5 44928 fi 44929 fi 44930 44931 # Now new_path has a complete unix path to the binary 44932 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 44933 # Keep paths in /bin as-is, but remove trailing .exe if any 44934 new_path="${new_path/%.exe/}" 44935 # Do not save /bin paths to all_fixpath_prefixes! 44936 else 44937 # Not in mixed or Windows style, start by that. 44938 new_path=`cmd //c echo $new_path` 44939 44940 input_path="$new_path" 44941 # Check if we need to convert this using DOS-style short mode. If the path 44942 # contains just simple characters, use it. Otherwise (spaces, weird characters), 44943 # take no chances and rewrite it. 44944 # Note: m4 eats our [], so we need to use [ and ] instead. 44945 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 44946 if test "x$has_forbidden_chars" != x; then 44947 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 44948 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 44949 fi 44950 44951 # Output is in $new_path 44952 44953 windows_path="$new_path" 44954 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 44955 unix_path=`$CYGPATH -u "$windows_path"` 44956 new_path="$unix_path" 44957 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 44958 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 44959 new_path="$unix_path" 44960 fi 44961 44962 # remove trailing .exe if any 44963 new_path="${new_path/%.exe/}" 44964 44965 # Save the first 10 bytes of this path to the storage, so fixpath can work. 44966 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 44967 fi 44968 44969 else 44970 # We're on a unix platform. Hooray! :) 44971 # First separate the path from the arguments. This will split at the first 44972 # space. 44973 complete="$BUILD_CXX" 44974 path="${complete%% *}" 44975 tmp="$complete EOL" 44976 arguments="${tmp#* }" 44977 44978 # Cannot rely on the command "which" here since it doesn't always work. 44979 is_absolute_path=`$ECHO "$path" | $GREP ^/` 44980 if test -z "$is_absolute_path"; then 44981 # Path to executable is not absolute. Find it. 44982 IFS_save="$IFS" 44983 IFS=: 44984 for p in $PATH; do 44985 if test -f "$p/$path" && test -x "$p/$path"; then 44986 new_path="$p/$path" 44987 break 44988 fi 44989 done 44990 IFS="$IFS_save" 44991 else 44992 # This is an absolute path, we can use it without further modifications. 44993 new_path="$path" 44994 fi 44995 44996 if test "x$new_path" = x; then 44997 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_CXX, which resolves as \"$complete\", is not found." >&5 44998 $as_echo "$as_me: The path of BUILD_CXX, which resolves as \"$complete\", is not found." >&6;} 44999 has_space=`$ECHO "$complete" | $GREP " "` 45000 if test "x$has_space" != x; then 45001 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 45002 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 45003 fi 45004 as_fn_error $? "Cannot locate the the path of BUILD_CXX" "$LINENO" 5 45005 fi 45006 fi 45007 45008 # Now join together the path and the arguments once again 45009 if test "x$arguments" != xEOL; then 45010 new_complete="$new_path ${arguments% *}" 45011 else 45012 new_complete="$new_path" 45013 fi 45014 45015 if test "x$complete" != "x$new_complete"; then 45016 BUILD_CXX="$new_complete" 45017 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BUILD_CXX to \"$new_complete\"" >&5 45018 $as_echo "$as_me: Rewriting BUILD_CXX to \"$new_complete\"" >&6;} 45019 fi 45020 fi 45021 45022 45023 45024 # Publish this variable in the help. 45025 45026 45027 if [ -z "${BUILD_NM+x}" ]; then 45028 # The variable is not set by user, try to locate tool using the code snippet 45029 for ac_prog in nm gcc-nm 45030 do 45031 # Extract the first word of "$ac_prog", so it can be a program name with args. 45032 set dummy $ac_prog; ac_word=$2 45033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 45034 $as_echo_n "checking for $ac_word... " >&6; } 45035 if ${ac_cv_path_BUILD_NM+:} false; then : 45036 $as_echo_n "(cached) " >&6 45037 else 45038 case $BUILD_NM in 45039 [\\/]* | ?:[\\/]*) 45040 ac_cv_path_BUILD_NM="$BUILD_NM" # Let the user override the test with a path. 45041 ;; 45042 *) 45043 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 45044 for as_dir in $PATH 45045 do 45046 IFS=$as_save_IFS 45047 test -z "$as_dir" && as_dir=. 45048 for ac_exec_ext in '' $ac_executable_extensions; do 45049 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 45050 ac_cv_path_BUILD_NM="$as_dir/$ac_word$ac_exec_ext" 45051 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 45052 break 2 45053 fi 45054 done 45055 done 45056 IFS=$as_save_IFS 45057 45058 ;; 45059 esac 45060 fi 45061 BUILD_NM=$ac_cv_path_BUILD_NM 45062 if test -n "$BUILD_NM"; then 45063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_NM" >&5 45064 $as_echo "$BUILD_NM" >&6; } 45065 else 45066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 45067 $as_echo "no" >&6; } 45068 fi 45069 45070 45071 test -n "$BUILD_NM" && break 45072 done 45073 45074 else 45075 # The variable is set, but is it from the command line or the environment? 45076 45077 # Try to remove the string !BUILD_NM! from our list. 45078 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!BUILD_NM!/} 45079 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 45080 # If it failed, the variable was not from the command line. Ignore it, 45081 # but warn the user (except for BASH, which is always set by the calling BASH). 45082 if test "xBUILD_NM" != xBASH; then 45083 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of BUILD_NM from the environment. Use command line variables instead." >&5 45084 $as_echo "$as_me: WARNING: Ignoring value of BUILD_NM from the environment. Use command line variables instead." >&2;} 45085 fi 45086 # Try to locate tool using the code snippet 45087 for ac_prog in nm gcc-nm 45088 do 45089 # Extract the first word of "$ac_prog", so it can be a program name with args. 45090 set dummy $ac_prog; ac_word=$2 45091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 45092 $as_echo_n "checking for $ac_word... " >&6; } 45093 if ${ac_cv_path_BUILD_NM+:} false; then : 45094 $as_echo_n "(cached) " >&6 45095 else 45096 case $BUILD_NM in 45097 [\\/]* | ?:[\\/]*) 45098 ac_cv_path_BUILD_NM="$BUILD_NM" # Let the user override the test with a path. 45099 ;; 45100 *) 45101 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 45102 for as_dir in $PATH 45103 do 45104 IFS=$as_save_IFS 45105 test -z "$as_dir" && as_dir=. 45106 for ac_exec_ext in '' $ac_executable_extensions; do 45107 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 45108 ac_cv_path_BUILD_NM="$as_dir/$ac_word$ac_exec_ext" 45109 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 45110 break 2 45111 fi 45112 done 45113 done 45114 IFS=$as_save_IFS 45115 45116 ;; 45117 esac 45118 fi 45119 BUILD_NM=$ac_cv_path_BUILD_NM 45120 if test -n "$BUILD_NM"; then 45121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_NM" >&5 45122 $as_echo "$BUILD_NM" >&6; } 45123 else 45124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 45125 $as_echo "no" >&6; } 45126 fi 45127 45128 45129 test -n "$BUILD_NM" && break 45130 done 45131 45132 else 45133 # If it succeeded, then it was overridden by the user. We will use it 45134 # for the tool. 45135 45136 # First remove it from the list of overridden variables, so we can test 45137 # for unknown variables in the end. 45138 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 45139 45140 # Check if we try to supply an empty value 45141 if test "x$BUILD_NM" = x; then 45142 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool BUILD_NM= (no value)" >&5 45143 $as_echo "$as_me: Setting user supplied tool BUILD_NM= (no value)" >&6;} 45144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BUILD_NM" >&5 45145 $as_echo_n "checking for BUILD_NM... " >&6; } 45146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 45147 $as_echo "disabled" >&6; } 45148 else 45149 # Check if the provided tool contains a complete path. 45150 tool_specified="$BUILD_NM" 45151 tool_basename="${tool_specified##*/}" 45152 if test "x$tool_basename" = "x$tool_specified"; then 45153 # A command without a complete path is provided, search $PATH. 45154 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool BUILD_NM=$tool_basename" >&5 45155 $as_echo "$as_me: Will search for user supplied tool BUILD_NM=$tool_basename" >&6;} 45156 # Extract the first word of "$tool_basename", so it can be a program name with args. 45157 set dummy $tool_basename; ac_word=$2 45158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 45159 $as_echo_n "checking for $ac_word... " >&6; } 45160 if ${ac_cv_path_BUILD_NM+:} false; then : 45161 $as_echo_n "(cached) " >&6 45162 else 45163 case $BUILD_NM in 45164 [\\/]* | ?:[\\/]*) 45165 ac_cv_path_BUILD_NM="$BUILD_NM" # Let the user override the test with a path. 45166 ;; 45167 *) 45168 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 45169 for as_dir in $PATH 45170 do 45171 IFS=$as_save_IFS 45172 test -z "$as_dir" && as_dir=. 45173 for ac_exec_ext in '' $ac_executable_extensions; do 45174 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 45175 ac_cv_path_BUILD_NM="$as_dir/$ac_word$ac_exec_ext" 45176 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 45177 break 2 45178 fi 45179 done 45180 done 45181 IFS=$as_save_IFS 45182 45183 ;; 45184 esac 45185 fi 45186 BUILD_NM=$ac_cv_path_BUILD_NM 45187 if test -n "$BUILD_NM"; then 45188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_NM" >&5 45189 $as_echo "$BUILD_NM" >&6; } 45190 else 45191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 45192 $as_echo "no" >&6; } 45193 fi 45194 45195 45196 if test "x$BUILD_NM" = x; then 45197 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 45198 fi 45199 else 45200 # Otherwise we believe it is a complete path. Use it as it is. 45201 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool BUILD_NM=$tool_specified" >&5 45202 $as_echo "$as_me: Will use user supplied tool BUILD_NM=$tool_specified" >&6;} 45203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BUILD_NM" >&5 45204 $as_echo_n "checking for BUILD_NM... " >&6; } 45205 if test ! -x "$tool_specified"; then 45206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 45207 $as_echo "not found" >&6; } 45208 as_fn_error $? "User supplied tool BUILD_NM=$tool_specified does not exist or is not executable" "$LINENO" 5 45209 fi 45210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 45211 $as_echo "$tool_specified" >&6; } 45212 fi 45213 fi 45214 fi 45215 45216 fi 45217 45218 45219 45220 # Only process if variable expands to non-empty 45221 45222 if test "x$BUILD_NM" != x; then 45223 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 45224 45225 # First separate the path from the arguments. This will split at the first 45226 # space. 45227 complete="$BUILD_NM" 45228 path="${complete%% *}" 45229 tmp="$complete EOL" 45230 arguments="${tmp#* }" 45231 45232 # Input might be given as Windows format, start by converting to 45233 # unix format. 45234 new_path=`$CYGPATH -u "$path"` 45235 45236 # Now try to locate executable using which 45237 new_path=`$WHICH "$new_path" 2> /dev/null` 45238 # bat and cmd files are not always considered executable in cygwin causing which 45239 # to not find them 45240 if test "x$new_path" = x \ 45241 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 45242 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 45243 new_path=`$CYGPATH -u "$path"` 45244 fi 45245 if test "x$new_path" = x; then 45246 # Oops. Which didn't find the executable. 45247 # The splitting of arguments from the executable at a space might have been incorrect, 45248 # since paths with space are more likely in Windows. Give it another try with the whole 45249 # argument. 45250 path="$complete" 45251 arguments="EOL" 45252 new_path=`$CYGPATH -u "$path"` 45253 new_path=`$WHICH "$new_path" 2> /dev/null` 45254 # bat and cmd files are not always considered executable in cygwin causing which 45255 # to not find them 45256 if test "x$new_path" = x \ 45257 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 45258 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 45259 new_path=`$CYGPATH -u "$path"` 45260 fi 45261 if test "x$new_path" = x; then 45262 # It's still not found. Now this is an unrecoverable error. 45263 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_NM, which resolves as \"$complete\", is not found." >&5 45264 $as_echo "$as_me: The path of BUILD_NM, which resolves as \"$complete\", is not found." >&6;} 45265 has_space=`$ECHO "$complete" | $GREP " "` 45266 if test "x$has_space" != x; then 45267 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 45268 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 45269 fi 45270 as_fn_error $? "Cannot locate the the path of BUILD_NM" "$LINENO" 5 45271 fi 45272 fi 45273 45274 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 45275 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 45276 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 45277 # "foo.exe" is OK but "foo" is an error. 45278 # 45279 # This test is therefore slightly more accurate than "test -f" to check for file presence. 45280 # It is also a way to make sure we got the proper file name for the real test later on. 45281 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 45282 if test "x$test_shortpath" = x; then 45283 # Short path failed, file does not exist as specified. 45284 # Try adding .exe or .cmd 45285 if test -f "${new_path}.exe"; then 45286 input_to_shortpath="${new_path}.exe" 45287 elif test -f "${new_path}.cmd"; then 45288 input_to_shortpath="${new_path}.cmd" 45289 else 45290 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_NM, which resolves as \"$new_path\", is invalid." >&5 45291 $as_echo "$as_me: The path of BUILD_NM, which resolves as \"$new_path\", is invalid." >&6;} 45292 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 45293 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 45294 as_fn_error $? "Cannot locate the the path of BUILD_NM" "$LINENO" 5 45295 fi 45296 else 45297 input_to_shortpath="$new_path" 45298 fi 45299 45300 # Call helper function which possibly converts this using DOS-style short mode. 45301 # If so, the updated path is stored in $new_path. 45302 new_path="$input_to_shortpath" 45303 45304 input_path="$input_to_shortpath" 45305 # Check if we need to convert this using DOS-style short mode. If the path 45306 # contains just simple characters, use it. Otherwise (spaces, weird characters), 45307 # take no chances and rewrite it. 45308 # Note: m4 eats our [], so we need to use [ and ] instead. 45309 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 45310 if test "x$has_forbidden_chars" != x; then 45311 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 45312 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 45313 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 45314 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 45315 # Going to short mode and back again did indeed matter. Since short mode is 45316 # case insensitive, let's make it lowercase to improve readability. 45317 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 45318 # Now convert it back to Unix-style (cygpath) 45319 input_path=`$CYGPATH -u "$shortmode_path"` 45320 new_path="$input_path" 45321 fi 45322 fi 45323 45324 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 45325 if test "x$test_cygdrive_prefix" = x; then 45326 # As a simple fix, exclude /usr/bin since it's not a real path. 45327 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 45328 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 45329 # a path prefixed by /cygdrive for fixpath to work. 45330 new_path="$CYGWIN_ROOT_PATH$input_path" 45331 fi 45332 fi 45333 45334 # remove trailing .exe if any 45335 new_path="${new_path/%.exe/}" 45336 45337 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 45338 45339 # First separate the path from the arguments. This will split at the first 45340 # space. 45341 complete="$BUILD_NM" 45342 path="${complete%% *}" 45343 tmp="$complete EOL" 45344 arguments="${tmp#* }" 45345 45346 # Input might be given as Windows format, start by converting to 45347 # unix format. 45348 new_path="$path" 45349 45350 windows_path="$new_path" 45351 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 45352 unix_path=`$CYGPATH -u "$windows_path"` 45353 new_path="$unix_path" 45354 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 45355 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 45356 new_path="$unix_path" 45357 fi 45358 45359 45360 # Now try to locate executable using which 45361 new_path=`$WHICH "$new_path" 2> /dev/null` 45362 45363 if test "x$new_path" = x; then 45364 # Oops. Which didn't find the executable. 45365 # The splitting of arguments from the executable at a space might have been incorrect, 45366 # since paths with space are more likely in Windows. Give it another try with the whole 45367 # argument. 45368 path="$complete" 45369 arguments="EOL" 45370 new_path="$path" 45371 45372 windows_path="$new_path" 45373 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 45374 unix_path=`$CYGPATH -u "$windows_path"` 45375 new_path="$unix_path" 45376 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 45377 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 45378 new_path="$unix_path" 45379 fi 45380 45381 45382 new_path=`$WHICH "$new_path" 2> /dev/null` 45383 # bat and cmd files are not always considered executable in MSYS causing which 45384 # to not find them 45385 if test "x$new_path" = x \ 45386 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 45387 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 45388 new_path="$path" 45389 45390 windows_path="$new_path" 45391 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 45392 unix_path=`$CYGPATH -u "$windows_path"` 45393 new_path="$unix_path" 45394 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 45395 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 45396 new_path="$unix_path" 45397 fi 45398 45399 fi 45400 45401 if test "x$new_path" = x; then 45402 # It's still not found. Now this is an unrecoverable error. 45403 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_NM, which resolves as \"$complete\", is not found." >&5 45404 $as_echo "$as_me: The path of BUILD_NM, which resolves as \"$complete\", is not found." >&6;} 45405 has_space=`$ECHO "$complete" | $GREP " "` 45406 if test "x$has_space" != x; then 45407 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 45408 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 45409 fi 45410 as_fn_error $? "Cannot locate the the path of BUILD_NM" "$LINENO" 5 45411 fi 45412 fi 45413 45414 # Now new_path has a complete unix path to the binary 45415 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 45416 # Keep paths in /bin as-is, but remove trailing .exe if any 45417 new_path="${new_path/%.exe/}" 45418 # Do not save /bin paths to all_fixpath_prefixes! 45419 else 45420 # Not in mixed or Windows style, start by that. 45421 new_path=`cmd //c echo $new_path` 45422 45423 input_path="$new_path" 45424 # Check if we need to convert this using DOS-style short mode. If the path 45425 # contains just simple characters, use it. Otherwise (spaces, weird characters), 45426 # take no chances and rewrite it. 45427 # Note: m4 eats our [], so we need to use [ and ] instead. 45428 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 45429 if test "x$has_forbidden_chars" != x; then 45430 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 45431 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 45432 fi 45433 45434 # Output is in $new_path 45435 45436 windows_path="$new_path" 45437 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 45438 unix_path=`$CYGPATH -u "$windows_path"` 45439 new_path="$unix_path" 45440 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 45441 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 45442 new_path="$unix_path" 45443 fi 45444 45445 # remove trailing .exe if any 45446 new_path="${new_path/%.exe/}" 45447 45448 # Save the first 10 bytes of this path to the storage, so fixpath can work. 45449 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 45450 fi 45451 45452 else 45453 # We're on a unix platform. Hooray! :) 45454 # First separate the path from the arguments. This will split at the first 45455 # space. 45456 complete="$BUILD_NM" 45457 path="${complete%% *}" 45458 tmp="$complete EOL" 45459 arguments="${tmp#* }" 45460 45461 # Cannot rely on the command "which" here since it doesn't always work. 45462 is_absolute_path=`$ECHO "$path" | $GREP ^/` 45463 if test -z "$is_absolute_path"; then 45464 # Path to executable is not absolute. Find it. 45465 IFS_save="$IFS" 45466 IFS=: 45467 for p in $PATH; do 45468 if test -f "$p/$path" && test -x "$p/$path"; then 45469 new_path="$p/$path" 45470 break 45471 fi 45472 done 45473 IFS="$IFS_save" 45474 else 45475 # This is an absolute path, we can use it without further modifications. 45476 new_path="$path" 45477 fi 45478 45479 if test "x$new_path" = x; then 45480 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_NM, which resolves as \"$complete\", is not found." >&5 45481 $as_echo "$as_me: The path of BUILD_NM, which resolves as \"$complete\", is not found." >&6;} 45482 has_space=`$ECHO "$complete" | $GREP " "` 45483 if test "x$has_space" != x; then 45484 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 45485 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 45486 fi 45487 as_fn_error $? "Cannot locate the the path of BUILD_NM" "$LINENO" 5 45488 fi 45489 fi 45490 45491 # Now join together the path and the arguments once again 45492 if test "x$arguments" != xEOL; then 45493 new_complete="$new_path ${arguments% *}" 45494 else 45495 new_complete="$new_path" 45496 fi 45497 45498 if test "x$complete" != "x$new_complete"; then 45499 BUILD_NM="$new_complete" 45500 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BUILD_NM to \"$new_complete\"" >&5 45501 $as_echo "$as_me: Rewriting BUILD_NM to \"$new_complete\"" >&6;} 45502 fi 45503 fi 45504 45505 45506 45507 # Publish this variable in the help. 45508 45509 45510 if [ -z "${BUILD_AR+x}" ]; then 45511 # The variable is not set by user, try to locate tool using the code snippet 45512 for ac_prog in ar gcc-ar 45513 do 45514 # Extract the first word of "$ac_prog", so it can be a program name with args. 45515 set dummy $ac_prog; ac_word=$2 45516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 45517 $as_echo_n "checking for $ac_word... " >&6; } 45518 if ${ac_cv_path_BUILD_AR+:} false; then : 45519 $as_echo_n "(cached) " >&6 45520 else 45521 case $BUILD_AR in 45522 [\\/]* | ?:[\\/]*) 45523 ac_cv_path_BUILD_AR="$BUILD_AR" # Let the user override the test with a path. 45524 ;; 45525 *) 45526 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 45527 for as_dir in $PATH 45528 do 45529 IFS=$as_save_IFS 45530 test -z "$as_dir" && as_dir=. 45531 for ac_exec_ext in '' $ac_executable_extensions; do 45532 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 45533 ac_cv_path_BUILD_AR="$as_dir/$ac_word$ac_exec_ext" 45534 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 45535 break 2 45536 fi 45537 done 45538 done 45539 IFS=$as_save_IFS 45540 45541 ;; 45542 esac 45543 fi 45544 BUILD_AR=$ac_cv_path_BUILD_AR 45545 if test -n "$BUILD_AR"; then 45546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_AR" >&5 45547 $as_echo "$BUILD_AR" >&6; } 45548 else 45549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 45550 $as_echo "no" >&6; } 45551 fi 45552 45553 45554 test -n "$BUILD_AR" && break 45555 done 45556 45557 else 45558 # The variable is set, but is it from the command line or the environment? 45559 45560 # Try to remove the string !BUILD_AR! from our list. 45561 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!BUILD_AR!/} 45562 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 45563 # If it failed, the variable was not from the command line. Ignore it, 45564 # but warn the user (except for BASH, which is always set by the calling BASH). 45565 if test "xBUILD_AR" != xBASH; then 45566 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of BUILD_AR from the environment. Use command line variables instead." >&5 45567 $as_echo "$as_me: WARNING: Ignoring value of BUILD_AR from the environment. Use command line variables instead." >&2;} 45568 fi 45569 # Try to locate tool using the code snippet 45570 for ac_prog in ar gcc-ar 45571 do 45572 # Extract the first word of "$ac_prog", so it can be a program name with args. 45573 set dummy $ac_prog; ac_word=$2 45574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 45575 $as_echo_n "checking for $ac_word... " >&6; } 45576 if ${ac_cv_path_BUILD_AR+:} false; then : 45577 $as_echo_n "(cached) " >&6 45578 else 45579 case $BUILD_AR in 45580 [\\/]* | ?:[\\/]*) 45581 ac_cv_path_BUILD_AR="$BUILD_AR" # Let the user override the test with a path. 45582 ;; 45583 *) 45584 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 45585 for as_dir in $PATH 45586 do 45587 IFS=$as_save_IFS 45588 test -z "$as_dir" && as_dir=. 45589 for ac_exec_ext in '' $ac_executable_extensions; do 45590 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 45591 ac_cv_path_BUILD_AR="$as_dir/$ac_word$ac_exec_ext" 45592 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 45593 break 2 45594 fi 45595 done 45596 done 45597 IFS=$as_save_IFS 45598 45599 ;; 45600 esac 45601 fi 45602 BUILD_AR=$ac_cv_path_BUILD_AR 45603 if test -n "$BUILD_AR"; then 45604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_AR" >&5 45605 $as_echo "$BUILD_AR" >&6; } 45606 else 45607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 45608 $as_echo "no" >&6; } 45609 fi 45610 45611 45612 test -n "$BUILD_AR" && break 45613 done 45614 45615 else 45616 # If it succeeded, then it was overridden by the user. We will use it 45617 # for the tool. 45618 45619 # First remove it from the list of overridden variables, so we can test 45620 # for unknown variables in the end. 45621 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 45622 45623 # Check if we try to supply an empty value 45624 if test "x$BUILD_AR" = x; then 45625 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool BUILD_AR= (no value)" >&5 45626 $as_echo "$as_me: Setting user supplied tool BUILD_AR= (no value)" >&6;} 45627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BUILD_AR" >&5 45628 $as_echo_n "checking for BUILD_AR... " >&6; } 45629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 45630 $as_echo "disabled" >&6; } 45631 else 45632 # Check if the provided tool contains a complete path. 45633 tool_specified="$BUILD_AR" 45634 tool_basename="${tool_specified##*/}" 45635 if test "x$tool_basename" = "x$tool_specified"; then 45636 # A command without a complete path is provided, search $PATH. 45637 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool BUILD_AR=$tool_basename" >&5 45638 $as_echo "$as_me: Will search for user supplied tool BUILD_AR=$tool_basename" >&6;} 45639 # Extract the first word of "$tool_basename", so it can be a program name with args. 45640 set dummy $tool_basename; ac_word=$2 45641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 45642 $as_echo_n "checking for $ac_word... " >&6; } 45643 if ${ac_cv_path_BUILD_AR+:} false; then : 45644 $as_echo_n "(cached) " >&6 45645 else 45646 case $BUILD_AR in 45647 [\\/]* | ?:[\\/]*) 45648 ac_cv_path_BUILD_AR="$BUILD_AR" # Let the user override the test with a path. 45649 ;; 45650 *) 45651 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 45652 for as_dir in $PATH 45653 do 45654 IFS=$as_save_IFS 45655 test -z "$as_dir" && as_dir=. 45656 for ac_exec_ext in '' $ac_executable_extensions; do 45657 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 45658 ac_cv_path_BUILD_AR="$as_dir/$ac_word$ac_exec_ext" 45659 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 45660 break 2 45661 fi 45662 done 45663 done 45664 IFS=$as_save_IFS 45665 45666 ;; 45667 esac 45668 fi 45669 BUILD_AR=$ac_cv_path_BUILD_AR 45670 if test -n "$BUILD_AR"; then 45671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_AR" >&5 45672 $as_echo "$BUILD_AR" >&6; } 45673 else 45674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 45675 $as_echo "no" >&6; } 45676 fi 45677 45678 45679 if test "x$BUILD_AR" = x; then 45680 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 45681 fi 45682 else 45683 # Otherwise we believe it is a complete path. Use it as it is. 45684 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool BUILD_AR=$tool_specified" >&5 45685 $as_echo "$as_me: Will use user supplied tool BUILD_AR=$tool_specified" >&6;} 45686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BUILD_AR" >&5 45687 $as_echo_n "checking for BUILD_AR... " >&6; } 45688 if test ! -x "$tool_specified"; then 45689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 45690 $as_echo "not found" >&6; } 45691 as_fn_error $? "User supplied tool BUILD_AR=$tool_specified does not exist or is not executable" "$LINENO" 5 45692 fi 45693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 45694 $as_echo "$tool_specified" >&6; } 45695 fi 45696 fi 45697 fi 45698 45699 fi 45700 45701 45702 45703 # Only process if variable expands to non-empty 45704 45705 if test "x$BUILD_AR" != x; then 45706 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 45707 45708 # First separate the path from the arguments. This will split at the first 45709 # space. 45710 complete="$BUILD_AR" 45711 path="${complete%% *}" 45712 tmp="$complete EOL" 45713 arguments="${tmp#* }" 45714 45715 # Input might be given as Windows format, start by converting to 45716 # unix format. 45717 new_path=`$CYGPATH -u "$path"` 45718 45719 # Now try to locate executable using which 45720 new_path=`$WHICH "$new_path" 2> /dev/null` 45721 # bat and cmd files are not always considered executable in cygwin causing which 45722 # to not find them 45723 if test "x$new_path" = x \ 45724 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 45725 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 45726 new_path=`$CYGPATH -u "$path"` 45727 fi 45728 if test "x$new_path" = x; then 45729 # Oops. Which didn't find the executable. 45730 # The splitting of arguments from the executable at a space might have been incorrect, 45731 # since paths with space are more likely in Windows. Give it another try with the whole 45732 # argument. 45733 path="$complete" 45734 arguments="EOL" 45735 new_path=`$CYGPATH -u "$path"` 45736 new_path=`$WHICH "$new_path" 2> /dev/null` 45737 # bat and cmd files are not always considered executable in cygwin causing which 45738 # to not find them 45739 if test "x$new_path" = x \ 45740 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 45741 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 45742 new_path=`$CYGPATH -u "$path"` 45743 fi 45744 if test "x$new_path" = x; then 45745 # It's still not found. Now this is an unrecoverable error. 45746 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_AR, which resolves as \"$complete\", is not found." >&5 45747 $as_echo "$as_me: The path of BUILD_AR, which resolves as \"$complete\", is not found." >&6;} 45748 has_space=`$ECHO "$complete" | $GREP " "` 45749 if test "x$has_space" != x; then 45750 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 45751 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 45752 fi 45753 as_fn_error $? "Cannot locate the the path of BUILD_AR" "$LINENO" 5 45754 fi 45755 fi 45756 45757 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 45758 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 45759 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 45760 # "foo.exe" is OK but "foo" is an error. 45761 # 45762 # This test is therefore slightly more accurate than "test -f" to check for file presence. 45763 # It is also a way to make sure we got the proper file name for the real test later on. 45764 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 45765 if test "x$test_shortpath" = x; then 45766 # Short path failed, file does not exist as specified. 45767 # Try adding .exe or .cmd 45768 if test -f "${new_path}.exe"; then 45769 input_to_shortpath="${new_path}.exe" 45770 elif test -f "${new_path}.cmd"; then 45771 input_to_shortpath="${new_path}.cmd" 45772 else 45773 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_AR, which resolves as \"$new_path\", is invalid." >&5 45774 $as_echo "$as_me: The path of BUILD_AR, which resolves as \"$new_path\", is invalid." >&6;} 45775 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 45776 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 45777 as_fn_error $? "Cannot locate the the path of BUILD_AR" "$LINENO" 5 45778 fi 45779 else 45780 input_to_shortpath="$new_path" 45781 fi 45782 45783 # Call helper function which possibly converts this using DOS-style short mode. 45784 # If so, the updated path is stored in $new_path. 45785 new_path="$input_to_shortpath" 45786 45787 input_path="$input_to_shortpath" 45788 # Check if we need to convert this using DOS-style short mode. If the path 45789 # contains just simple characters, use it. Otherwise (spaces, weird characters), 45790 # take no chances and rewrite it. 45791 # Note: m4 eats our [], so we need to use [ and ] instead. 45792 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 45793 if test "x$has_forbidden_chars" != x; then 45794 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 45795 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 45796 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 45797 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 45798 # Going to short mode and back again did indeed matter. Since short mode is 45799 # case insensitive, let's make it lowercase to improve readability. 45800 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 45801 # Now convert it back to Unix-style (cygpath) 45802 input_path=`$CYGPATH -u "$shortmode_path"` 45803 new_path="$input_path" 45804 fi 45805 fi 45806 45807 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 45808 if test "x$test_cygdrive_prefix" = x; then 45809 # As a simple fix, exclude /usr/bin since it's not a real path. 45810 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 45811 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 45812 # a path prefixed by /cygdrive for fixpath to work. 45813 new_path="$CYGWIN_ROOT_PATH$input_path" 45814 fi 45815 fi 45816 45817 # remove trailing .exe if any 45818 new_path="${new_path/%.exe/}" 45819 45820 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 45821 45822 # First separate the path from the arguments. This will split at the first 45823 # space. 45824 complete="$BUILD_AR" 45825 path="${complete%% *}" 45826 tmp="$complete EOL" 45827 arguments="${tmp#* }" 45828 45829 # Input might be given as Windows format, start by converting to 45830 # unix format. 45831 new_path="$path" 45832 45833 windows_path="$new_path" 45834 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 45835 unix_path=`$CYGPATH -u "$windows_path"` 45836 new_path="$unix_path" 45837 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 45838 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 45839 new_path="$unix_path" 45840 fi 45841 45842 45843 # Now try to locate executable using which 45844 new_path=`$WHICH "$new_path" 2> /dev/null` 45845 45846 if test "x$new_path" = x; then 45847 # Oops. Which didn't find the executable. 45848 # The splitting of arguments from the executable at a space might have been incorrect, 45849 # since paths with space are more likely in Windows. Give it another try with the whole 45850 # argument. 45851 path="$complete" 45852 arguments="EOL" 45853 new_path="$path" 45854 45855 windows_path="$new_path" 45856 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 45857 unix_path=`$CYGPATH -u "$windows_path"` 45858 new_path="$unix_path" 45859 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 45860 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 45861 new_path="$unix_path" 45862 fi 45863 45864 45865 new_path=`$WHICH "$new_path" 2> /dev/null` 45866 # bat and cmd files are not always considered executable in MSYS causing which 45867 # to not find them 45868 if test "x$new_path" = x \ 45869 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 45870 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 45871 new_path="$path" 45872 45873 windows_path="$new_path" 45874 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 45875 unix_path=`$CYGPATH -u "$windows_path"` 45876 new_path="$unix_path" 45877 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 45878 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 45879 new_path="$unix_path" 45880 fi 45881 45882 fi 45883 45884 if test "x$new_path" = x; then 45885 # It's still not found. Now this is an unrecoverable error. 45886 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_AR, which resolves as \"$complete\", is not found." >&5 45887 $as_echo "$as_me: The path of BUILD_AR, which resolves as \"$complete\", is not found." >&6;} 45888 has_space=`$ECHO "$complete" | $GREP " "` 45889 if test "x$has_space" != x; then 45890 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 45891 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 45892 fi 45893 as_fn_error $? "Cannot locate the the path of BUILD_AR" "$LINENO" 5 45894 fi 45895 fi 45896 45897 # Now new_path has a complete unix path to the binary 45898 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 45899 # Keep paths in /bin as-is, but remove trailing .exe if any 45900 new_path="${new_path/%.exe/}" 45901 # Do not save /bin paths to all_fixpath_prefixes! 45902 else 45903 # Not in mixed or Windows style, start by that. 45904 new_path=`cmd //c echo $new_path` 45905 45906 input_path="$new_path" 45907 # Check if we need to convert this using DOS-style short mode. If the path 45908 # contains just simple characters, use it. Otherwise (spaces, weird characters), 45909 # take no chances and rewrite it. 45910 # Note: m4 eats our [], so we need to use [ and ] instead. 45911 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 45912 if test "x$has_forbidden_chars" != x; then 45913 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 45914 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 45915 fi 45916 45917 # Output is in $new_path 45918 45919 windows_path="$new_path" 45920 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 45921 unix_path=`$CYGPATH -u "$windows_path"` 45922 new_path="$unix_path" 45923 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 45924 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 45925 new_path="$unix_path" 45926 fi 45927 45928 # remove trailing .exe if any 45929 new_path="${new_path/%.exe/}" 45930 45931 # Save the first 10 bytes of this path to the storage, so fixpath can work. 45932 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 45933 fi 45934 45935 else 45936 # We're on a unix platform. Hooray! :) 45937 # First separate the path from the arguments. This will split at the first 45938 # space. 45939 complete="$BUILD_AR" 45940 path="${complete%% *}" 45941 tmp="$complete EOL" 45942 arguments="${tmp#* }" 45943 45944 # Cannot rely on the command "which" here since it doesn't always work. 45945 is_absolute_path=`$ECHO "$path" | $GREP ^/` 45946 if test -z "$is_absolute_path"; then 45947 # Path to executable is not absolute. Find it. 45948 IFS_save="$IFS" 45949 IFS=: 45950 for p in $PATH; do 45951 if test -f "$p/$path" && test -x "$p/$path"; then 45952 new_path="$p/$path" 45953 break 45954 fi 45955 done 45956 IFS="$IFS_save" 45957 else 45958 # This is an absolute path, we can use it without further modifications. 45959 new_path="$path" 45960 fi 45961 45962 if test "x$new_path" = x; then 45963 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_AR, which resolves as \"$complete\", is not found." >&5 45964 $as_echo "$as_me: The path of BUILD_AR, which resolves as \"$complete\", is not found." >&6;} 45965 has_space=`$ECHO "$complete" | $GREP " "` 45966 if test "x$has_space" != x; then 45967 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 45968 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 45969 fi 45970 as_fn_error $? "Cannot locate the the path of BUILD_AR" "$LINENO" 5 45971 fi 45972 fi 45973 45974 # Now join together the path and the arguments once again 45975 if test "x$arguments" != xEOL; then 45976 new_complete="$new_path ${arguments% *}" 45977 else 45978 new_complete="$new_path" 45979 fi 45980 45981 if test "x$complete" != "x$new_complete"; then 45982 BUILD_AR="$new_complete" 45983 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BUILD_AR to \"$new_complete\"" >&5 45984 $as_echo "$as_me: Rewriting BUILD_AR to \"$new_complete\"" >&6;} 45985 fi 45986 fi 45987 45988 45989 45990 # Publish this variable in the help. 45991 45992 45993 if [ -z "${BUILD_OBJCOPY+x}" ]; then 45994 # The variable is not set by user, try to locate tool using the code snippet 45995 for ac_prog in objcopy 45996 do 45997 # Extract the first word of "$ac_prog", so it can be a program name with args. 45998 set dummy $ac_prog; ac_word=$2 45999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 46000 $as_echo_n "checking for $ac_word... " >&6; } 46001 if ${ac_cv_path_BUILD_OBJCOPY+:} false; then : 46002 $as_echo_n "(cached) " >&6 46003 else 46004 case $BUILD_OBJCOPY in 46005 [\\/]* | ?:[\\/]*) 46006 ac_cv_path_BUILD_OBJCOPY="$BUILD_OBJCOPY" # Let the user override the test with a path. 46007 ;; 46008 *) 46009 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 46010 for as_dir in $PATH 46011 do 46012 IFS=$as_save_IFS 46013 test -z "$as_dir" && as_dir=. 46014 for ac_exec_ext in '' $ac_executable_extensions; do 46015 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 46016 ac_cv_path_BUILD_OBJCOPY="$as_dir/$ac_word$ac_exec_ext" 46017 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 46018 break 2 46019 fi 46020 done 46021 done 46022 IFS=$as_save_IFS 46023 46024 ;; 46025 esac 46026 fi 46027 BUILD_OBJCOPY=$ac_cv_path_BUILD_OBJCOPY 46028 if test -n "$BUILD_OBJCOPY"; then 46029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_OBJCOPY" >&5 46030 $as_echo "$BUILD_OBJCOPY" >&6; } 46031 else 46032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 46033 $as_echo "no" >&6; } 46034 fi 46035 46036 46037 test -n "$BUILD_OBJCOPY" && break 46038 done 46039 46040 else 46041 # The variable is set, but is it from the command line or the environment? 46042 46043 # Try to remove the string !BUILD_OBJCOPY! from our list. 46044 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!BUILD_OBJCOPY!/} 46045 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 46046 # If it failed, the variable was not from the command line. Ignore it, 46047 # but warn the user (except for BASH, which is always set by the calling BASH). 46048 if test "xBUILD_OBJCOPY" != xBASH; then 46049 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of BUILD_OBJCOPY from the environment. Use command line variables instead." >&5 46050 $as_echo "$as_me: WARNING: Ignoring value of BUILD_OBJCOPY from the environment. Use command line variables instead." >&2;} 46051 fi 46052 # Try to locate tool using the code snippet 46053 for ac_prog in objcopy 46054 do 46055 # Extract the first word of "$ac_prog", so it can be a program name with args. 46056 set dummy $ac_prog; ac_word=$2 46057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 46058 $as_echo_n "checking for $ac_word... " >&6; } 46059 if ${ac_cv_path_BUILD_OBJCOPY+:} false; then : 46060 $as_echo_n "(cached) " >&6 46061 else 46062 case $BUILD_OBJCOPY in 46063 [\\/]* | ?:[\\/]*) 46064 ac_cv_path_BUILD_OBJCOPY="$BUILD_OBJCOPY" # Let the user override the test with a path. 46065 ;; 46066 *) 46067 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 46068 for as_dir in $PATH 46069 do 46070 IFS=$as_save_IFS 46071 test -z "$as_dir" && as_dir=. 46072 for ac_exec_ext in '' $ac_executable_extensions; do 46073 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 46074 ac_cv_path_BUILD_OBJCOPY="$as_dir/$ac_word$ac_exec_ext" 46075 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 46076 break 2 46077 fi 46078 done 46079 done 46080 IFS=$as_save_IFS 46081 46082 ;; 46083 esac 46084 fi 46085 BUILD_OBJCOPY=$ac_cv_path_BUILD_OBJCOPY 46086 if test -n "$BUILD_OBJCOPY"; then 46087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_OBJCOPY" >&5 46088 $as_echo "$BUILD_OBJCOPY" >&6; } 46089 else 46090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 46091 $as_echo "no" >&6; } 46092 fi 46093 46094 46095 test -n "$BUILD_OBJCOPY" && break 46096 done 46097 46098 else 46099 # If it succeeded, then it was overridden by the user. We will use it 46100 # for the tool. 46101 46102 # First remove it from the list of overridden variables, so we can test 46103 # for unknown variables in the end. 46104 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 46105 46106 # Check if we try to supply an empty value 46107 if test "x$BUILD_OBJCOPY" = x; then 46108 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool BUILD_OBJCOPY= (no value)" >&5 46109 $as_echo "$as_me: Setting user supplied tool BUILD_OBJCOPY= (no value)" >&6;} 46110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BUILD_OBJCOPY" >&5 46111 $as_echo_n "checking for BUILD_OBJCOPY... " >&6; } 46112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 46113 $as_echo "disabled" >&6; } 46114 else 46115 # Check if the provided tool contains a complete path. 46116 tool_specified="$BUILD_OBJCOPY" 46117 tool_basename="${tool_specified##*/}" 46118 if test "x$tool_basename" = "x$tool_specified"; then 46119 # A command without a complete path is provided, search $PATH. 46120 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool BUILD_OBJCOPY=$tool_basename" >&5 46121 $as_echo "$as_me: Will search for user supplied tool BUILD_OBJCOPY=$tool_basename" >&6;} 46122 # Extract the first word of "$tool_basename", so it can be a program name with args. 46123 set dummy $tool_basename; ac_word=$2 46124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 46125 $as_echo_n "checking for $ac_word... " >&6; } 46126 if ${ac_cv_path_BUILD_OBJCOPY+:} false; then : 46127 $as_echo_n "(cached) " >&6 46128 else 46129 case $BUILD_OBJCOPY in 46130 [\\/]* | ?:[\\/]*) 46131 ac_cv_path_BUILD_OBJCOPY="$BUILD_OBJCOPY" # Let the user override the test with a path. 46132 ;; 46133 *) 46134 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 46135 for as_dir in $PATH 46136 do 46137 IFS=$as_save_IFS 46138 test -z "$as_dir" && as_dir=. 46139 for ac_exec_ext in '' $ac_executable_extensions; do 46140 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 46141 ac_cv_path_BUILD_OBJCOPY="$as_dir/$ac_word$ac_exec_ext" 46142 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 46143 break 2 46144 fi 46145 done 46146 done 46147 IFS=$as_save_IFS 46148 46149 ;; 46150 esac 46151 fi 46152 BUILD_OBJCOPY=$ac_cv_path_BUILD_OBJCOPY 46153 if test -n "$BUILD_OBJCOPY"; then 46154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_OBJCOPY" >&5 46155 $as_echo "$BUILD_OBJCOPY" >&6; } 46156 else 46157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 46158 $as_echo "no" >&6; } 46159 fi 46160 46161 46162 if test "x$BUILD_OBJCOPY" = x; then 46163 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 46164 fi 46165 else 46166 # Otherwise we believe it is a complete path. Use it as it is. 46167 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool BUILD_OBJCOPY=$tool_specified" >&5 46168 $as_echo "$as_me: Will use user supplied tool BUILD_OBJCOPY=$tool_specified" >&6;} 46169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BUILD_OBJCOPY" >&5 46170 $as_echo_n "checking for BUILD_OBJCOPY... " >&6; } 46171 if test ! -x "$tool_specified"; then 46172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 46173 $as_echo "not found" >&6; } 46174 as_fn_error $? "User supplied tool BUILD_OBJCOPY=$tool_specified does not exist or is not executable" "$LINENO" 5 46175 fi 46176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 46177 $as_echo "$tool_specified" >&6; } 46178 fi 46179 fi 46180 fi 46181 46182 fi 46183 46184 46185 46186 # Only process if variable expands to non-empty 46187 46188 if test "x$BUILD_OBJCOPY" != x; then 46189 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 46190 46191 # First separate the path from the arguments. This will split at the first 46192 # space. 46193 complete="$BUILD_OBJCOPY" 46194 path="${complete%% *}" 46195 tmp="$complete EOL" 46196 arguments="${tmp#* }" 46197 46198 # Input might be given as Windows format, start by converting to 46199 # unix format. 46200 new_path=`$CYGPATH -u "$path"` 46201 46202 # Now try to locate executable using which 46203 new_path=`$WHICH "$new_path" 2> /dev/null` 46204 # bat and cmd files are not always considered executable in cygwin causing which 46205 # to not find them 46206 if test "x$new_path" = x \ 46207 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 46208 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 46209 new_path=`$CYGPATH -u "$path"` 46210 fi 46211 if test "x$new_path" = x; then 46212 # Oops. Which didn't find the executable. 46213 # The splitting of arguments from the executable at a space might have been incorrect, 46214 # since paths with space are more likely in Windows. Give it another try with the whole 46215 # argument. 46216 path="$complete" 46217 arguments="EOL" 46218 new_path=`$CYGPATH -u "$path"` 46219 new_path=`$WHICH "$new_path" 2> /dev/null` 46220 # bat and cmd files are not always considered executable in cygwin causing which 46221 # to not find them 46222 if test "x$new_path" = x \ 46223 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 46224 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 46225 new_path=`$CYGPATH -u "$path"` 46226 fi 46227 if test "x$new_path" = x; then 46228 # It's still not found. Now this is an unrecoverable error. 46229 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_OBJCOPY, which resolves as \"$complete\", is not found." >&5 46230 $as_echo "$as_me: The path of BUILD_OBJCOPY, which resolves as \"$complete\", is not found." >&6;} 46231 has_space=`$ECHO "$complete" | $GREP " "` 46232 if test "x$has_space" != x; then 46233 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 46234 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 46235 fi 46236 as_fn_error $? "Cannot locate the the path of BUILD_OBJCOPY" "$LINENO" 5 46237 fi 46238 fi 46239 46240 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 46241 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 46242 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 46243 # "foo.exe" is OK but "foo" is an error. 46244 # 46245 # This test is therefore slightly more accurate than "test -f" to check for file presence. 46246 # It is also a way to make sure we got the proper file name for the real test later on. 46247 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 46248 if test "x$test_shortpath" = x; then 46249 # Short path failed, file does not exist as specified. 46250 # Try adding .exe or .cmd 46251 if test -f "${new_path}.exe"; then 46252 input_to_shortpath="${new_path}.exe" 46253 elif test -f "${new_path}.cmd"; then 46254 input_to_shortpath="${new_path}.cmd" 46255 else 46256 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_OBJCOPY, which resolves as \"$new_path\", is invalid." >&5 46257 $as_echo "$as_me: The path of BUILD_OBJCOPY, which resolves as \"$new_path\", is invalid." >&6;} 46258 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 46259 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 46260 as_fn_error $? "Cannot locate the the path of BUILD_OBJCOPY" "$LINENO" 5 46261 fi 46262 else 46263 input_to_shortpath="$new_path" 46264 fi 46265 46266 # Call helper function which possibly converts this using DOS-style short mode. 46267 # If so, the updated path is stored in $new_path. 46268 new_path="$input_to_shortpath" 46269 46270 input_path="$input_to_shortpath" 46271 # Check if we need to convert this using DOS-style short mode. If the path 46272 # contains just simple characters, use it. Otherwise (spaces, weird characters), 46273 # take no chances and rewrite it. 46274 # Note: m4 eats our [], so we need to use [ and ] instead. 46275 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 46276 if test "x$has_forbidden_chars" != x; then 46277 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 46278 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 46279 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 46280 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 46281 # Going to short mode and back again did indeed matter. Since short mode is 46282 # case insensitive, let's make it lowercase to improve readability. 46283 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 46284 # Now convert it back to Unix-style (cygpath) 46285 input_path=`$CYGPATH -u "$shortmode_path"` 46286 new_path="$input_path" 46287 fi 46288 fi 46289 46290 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 46291 if test "x$test_cygdrive_prefix" = x; then 46292 # As a simple fix, exclude /usr/bin since it's not a real path. 46293 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 46294 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 46295 # a path prefixed by /cygdrive for fixpath to work. 46296 new_path="$CYGWIN_ROOT_PATH$input_path" 46297 fi 46298 fi 46299 46300 # remove trailing .exe if any 46301 new_path="${new_path/%.exe/}" 46302 46303 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 46304 46305 # First separate the path from the arguments. This will split at the first 46306 # space. 46307 complete="$BUILD_OBJCOPY" 46308 path="${complete%% *}" 46309 tmp="$complete EOL" 46310 arguments="${tmp#* }" 46311 46312 # Input might be given as Windows format, start by converting to 46313 # unix format. 46314 new_path="$path" 46315 46316 windows_path="$new_path" 46317 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 46318 unix_path=`$CYGPATH -u "$windows_path"` 46319 new_path="$unix_path" 46320 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 46321 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 46322 new_path="$unix_path" 46323 fi 46324 46325 46326 # Now try to locate executable using which 46327 new_path=`$WHICH "$new_path" 2> /dev/null` 46328 46329 if test "x$new_path" = x; then 46330 # Oops. Which didn't find the executable. 46331 # The splitting of arguments from the executable at a space might have been incorrect, 46332 # since paths with space are more likely in Windows. Give it another try with the whole 46333 # argument. 46334 path="$complete" 46335 arguments="EOL" 46336 new_path="$path" 46337 46338 windows_path="$new_path" 46339 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 46340 unix_path=`$CYGPATH -u "$windows_path"` 46341 new_path="$unix_path" 46342 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 46343 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 46344 new_path="$unix_path" 46345 fi 46346 46347 46348 new_path=`$WHICH "$new_path" 2> /dev/null` 46349 # bat and cmd files are not always considered executable in MSYS causing which 46350 # to not find them 46351 if test "x$new_path" = x \ 46352 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 46353 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 46354 new_path="$path" 46355 46356 windows_path="$new_path" 46357 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 46358 unix_path=`$CYGPATH -u "$windows_path"` 46359 new_path="$unix_path" 46360 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 46361 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 46362 new_path="$unix_path" 46363 fi 46364 46365 fi 46366 46367 if test "x$new_path" = x; then 46368 # It's still not found. Now this is an unrecoverable error. 46369 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_OBJCOPY, which resolves as \"$complete\", is not found." >&5 46370 $as_echo "$as_me: The path of BUILD_OBJCOPY, which resolves as \"$complete\", is not found." >&6;} 46371 has_space=`$ECHO "$complete" | $GREP " "` 46372 if test "x$has_space" != x; then 46373 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 46374 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 46375 fi 46376 as_fn_error $? "Cannot locate the the path of BUILD_OBJCOPY" "$LINENO" 5 46377 fi 46378 fi 46379 46380 # Now new_path has a complete unix path to the binary 46381 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 46382 # Keep paths in /bin as-is, but remove trailing .exe if any 46383 new_path="${new_path/%.exe/}" 46384 # Do not save /bin paths to all_fixpath_prefixes! 46385 else 46386 # Not in mixed or Windows style, start by that. 46387 new_path=`cmd //c echo $new_path` 46388 46389 input_path="$new_path" 46390 # Check if we need to convert this using DOS-style short mode. If the path 46391 # contains just simple characters, use it. Otherwise (spaces, weird characters), 46392 # take no chances and rewrite it. 46393 # Note: m4 eats our [], so we need to use [ and ] instead. 46394 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 46395 if test "x$has_forbidden_chars" != x; then 46396 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 46397 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 46398 fi 46399 46400 # Output is in $new_path 46401 46402 windows_path="$new_path" 46403 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 46404 unix_path=`$CYGPATH -u "$windows_path"` 46405 new_path="$unix_path" 46406 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 46407 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 46408 new_path="$unix_path" 46409 fi 46410 46411 # remove trailing .exe if any 46412 new_path="${new_path/%.exe/}" 46413 46414 # Save the first 10 bytes of this path to the storage, so fixpath can work. 46415 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 46416 fi 46417 46418 else 46419 # We're on a unix platform. Hooray! :) 46420 # First separate the path from the arguments. This will split at the first 46421 # space. 46422 complete="$BUILD_OBJCOPY" 46423 path="${complete%% *}" 46424 tmp="$complete EOL" 46425 arguments="${tmp#* }" 46426 46427 # Cannot rely on the command "which" here since it doesn't always work. 46428 is_absolute_path=`$ECHO "$path" | $GREP ^/` 46429 if test -z "$is_absolute_path"; then 46430 # Path to executable is not absolute. Find it. 46431 IFS_save="$IFS" 46432 IFS=: 46433 for p in $PATH; do 46434 if test -f "$p/$path" && test -x "$p/$path"; then 46435 new_path="$p/$path" 46436 break 46437 fi 46438 done 46439 IFS="$IFS_save" 46440 else 46441 # This is an absolute path, we can use it without further modifications. 46442 new_path="$path" 46443 fi 46444 46445 if test "x$new_path" = x; then 46446 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_OBJCOPY, which resolves as \"$complete\", is not found." >&5 46447 $as_echo "$as_me: The path of BUILD_OBJCOPY, which resolves as \"$complete\", is not found." >&6;} 46448 has_space=`$ECHO "$complete" | $GREP " "` 46449 if test "x$has_space" != x; then 46450 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 46451 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 46452 fi 46453 as_fn_error $? "Cannot locate the the path of BUILD_OBJCOPY" "$LINENO" 5 46454 fi 46455 fi 46456 46457 # Now join together the path and the arguments once again 46458 if test "x$arguments" != xEOL; then 46459 new_complete="$new_path ${arguments% *}" 46460 else 46461 new_complete="$new_path" 46462 fi 46463 46464 if test "x$complete" != "x$new_complete"; then 46465 BUILD_OBJCOPY="$new_complete" 46466 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BUILD_OBJCOPY to \"$new_complete\"" >&5 46467 $as_echo "$as_me: Rewriting BUILD_OBJCOPY to \"$new_complete\"" >&6;} 46468 fi 46469 fi 46470 46471 46472 46473 # Publish this variable in the help. 46474 46475 46476 if [ -z "${BUILD_STRIP+x}" ]; then 46477 # The variable is not set by user, try to locate tool using the code snippet 46478 for ac_prog in strip 46479 do 46480 # Extract the first word of "$ac_prog", so it can be a program name with args. 46481 set dummy $ac_prog; ac_word=$2 46482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 46483 $as_echo_n "checking for $ac_word... " >&6; } 46484 if ${ac_cv_path_BUILD_STRIP+:} false; then : 46485 $as_echo_n "(cached) " >&6 46486 else 46487 case $BUILD_STRIP in 46488 [\\/]* | ?:[\\/]*) 46489 ac_cv_path_BUILD_STRIP="$BUILD_STRIP" # Let the user override the test with a path. 46490 ;; 46491 *) 46492 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 46493 for as_dir in $PATH 46494 do 46495 IFS=$as_save_IFS 46496 test -z "$as_dir" && as_dir=. 46497 for ac_exec_ext in '' $ac_executable_extensions; do 46498 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 46499 ac_cv_path_BUILD_STRIP="$as_dir/$ac_word$ac_exec_ext" 46500 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 46501 break 2 46502 fi 46503 done 46504 done 46505 IFS=$as_save_IFS 46506 46507 ;; 46508 esac 46509 fi 46510 BUILD_STRIP=$ac_cv_path_BUILD_STRIP 46511 if test -n "$BUILD_STRIP"; then 46512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_STRIP" >&5 46513 $as_echo "$BUILD_STRIP" >&6; } 46514 else 46515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 46516 $as_echo "no" >&6; } 46517 fi 46518 46519 46520 test -n "$BUILD_STRIP" && break 46521 done 46522 46523 else 46524 # The variable is set, but is it from the command line or the environment? 46525 46526 # Try to remove the string !BUILD_STRIP! from our list. 46527 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!BUILD_STRIP!/} 46528 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 46529 # If it failed, the variable was not from the command line. Ignore it, 46530 # but warn the user (except for BASH, which is always set by the calling BASH). 46531 if test "xBUILD_STRIP" != xBASH; then 46532 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of BUILD_STRIP from the environment. Use command line variables instead." >&5 46533 $as_echo "$as_me: WARNING: Ignoring value of BUILD_STRIP from the environment. Use command line variables instead." >&2;} 46534 fi 46535 # Try to locate tool using the code snippet 46536 for ac_prog in strip 46537 do 46538 # Extract the first word of "$ac_prog", so it can be a program name with args. 46539 set dummy $ac_prog; ac_word=$2 46540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 46541 $as_echo_n "checking for $ac_word... " >&6; } 46542 if ${ac_cv_path_BUILD_STRIP+:} false; then : 46543 $as_echo_n "(cached) " >&6 46544 else 46545 case $BUILD_STRIP in 46546 [\\/]* | ?:[\\/]*) 46547 ac_cv_path_BUILD_STRIP="$BUILD_STRIP" # Let the user override the test with a path. 46548 ;; 46549 *) 46550 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 46551 for as_dir in $PATH 46552 do 46553 IFS=$as_save_IFS 46554 test -z "$as_dir" && as_dir=. 46555 for ac_exec_ext in '' $ac_executable_extensions; do 46556 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 46557 ac_cv_path_BUILD_STRIP="$as_dir/$ac_word$ac_exec_ext" 46558 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 46559 break 2 46560 fi 46561 done 46562 done 46563 IFS=$as_save_IFS 46564 46565 ;; 46566 esac 46567 fi 46568 BUILD_STRIP=$ac_cv_path_BUILD_STRIP 46569 if test -n "$BUILD_STRIP"; then 46570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_STRIP" >&5 46571 $as_echo "$BUILD_STRIP" >&6; } 46572 else 46573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 46574 $as_echo "no" >&6; } 46575 fi 46576 46577 46578 test -n "$BUILD_STRIP" && break 46579 done 46580 46581 else 46582 # If it succeeded, then it was overridden by the user. We will use it 46583 # for the tool. 46584 46585 # First remove it from the list of overridden variables, so we can test 46586 # for unknown variables in the end. 46587 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 46588 46589 # Check if we try to supply an empty value 46590 if test "x$BUILD_STRIP" = x; then 46591 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool BUILD_STRIP= (no value)" >&5 46592 $as_echo "$as_me: Setting user supplied tool BUILD_STRIP= (no value)" >&6;} 46593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BUILD_STRIP" >&5 46594 $as_echo_n "checking for BUILD_STRIP... " >&6; } 46595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 46596 $as_echo "disabled" >&6; } 46597 else 46598 # Check if the provided tool contains a complete path. 46599 tool_specified="$BUILD_STRIP" 46600 tool_basename="${tool_specified##*/}" 46601 if test "x$tool_basename" = "x$tool_specified"; then 46602 # A command without a complete path is provided, search $PATH. 46603 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool BUILD_STRIP=$tool_basename" >&5 46604 $as_echo "$as_me: Will search for user supplied tool BUILD_STRIP=$tool_basename" >&6;} 46605 # Extract the first word of "$tool_basename", so it can be a program name with args. 46606 set dummy $tool_basename; ac_word=$2 46607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 46608 $as_echo_n "checking for $ac_word... " >&6; } 46609 if ${ac_cv_path_BUILD_STRIP+:} false; then : 46610 $as_echo_n "(cached) " >&6 46611 else 46612 case $BUILD_STRIP in 46613 [\\/]* | ?:[\\/]*) 46614 ac_cv_path_BUILD_STRIP="$BUILD_STRIP" # Let the user override the test with a path. 46615 ;; 46616 *) 46617 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 46618 for as_dir in $PATH 46619 do 46620 IFS=$as_save_IFS 46621 test -z "$as_dir" && as_dir=. 46622 for ac_exec_ext in '' $ac_executable_extensions; do 46623 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 46624 ac_cv_path_BUILD_STRIP="$as_dir/$ac_word$ac_exec_ext" 46625 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 46626 break 2 46627 fi 46628 done 46629 done 46630 IFS=$as_save_IFS 46631 46632 ;; 46633 esac 46634 fi 46635 BUILD_STRIP=$ac_cv_path_BUILD_STRIP 46636 if test -n "$BUILD_STRIP"; then 46637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_STRIP" >&5 46638 $as_echo "$BUILD_STRIP" >&6; } 46639 else 46640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 46641 $as_echo "no" >&6; } 46642 fi 46643 46644 46645 if test "x$BUILD_STRIP" = x; then 46646 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 46647 fi 46648 else 46649 # Otherwise we believe it is a complete path. Use it as it is. 46650 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool BUILD_STRIP=$tool_specified" >&5 46651 $as_echo "$as_me: Will use user supplied tool BUILD_STRIP=$tool_specified" >&6;} 46652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BUILD_STRIP" >&5 46653 $as_echo_n "checking for BUILD_STRIP... " >&6; } 46654 if test ! -x "$tool_specified"; then 46655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 46656 $as_echo "not found" >&6; } 46657 as_fn_error $? "User supplied tool BUILD_STRIP=$tool_specified does not exist or is not executable" "$LINENO" 5 46658 fi 46659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 46660 $as_echo "$tool_specified" >&6; } 46661 fi 46662 fi 46663 fi 46664 46665 fi 46666 46667 46668 46669 # Only process if variable expands to non-empty 46670 46671 if test "x$BUILD_STRIP" != x; then 46672 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 46673 46674 # First separate the path from the arguments. This will split at the first 46675 # space. 46676 complete="$BUILD_STRIP" 46677 path="${complete%% *}" 46678 tmp="$complete EOL" 46679 arguments="${tmp#* }" 46680 46681 # Input might be given as Windows format, start by converting to 46682 # unix format. 46683 new_path=`$CYGPATH -u "$path"` 46684 46685 # Now try to locate executable using which 46686 new_path=`$WHICH "$new_path" 2> /dev/null` 46687 # bat and cmd files are not always considered executable in cygwin causing which 46688 # to not find them 46689 if test "x$new_path" = x \ 46690 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 46691 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 46692 new_path=`$CYGPATH -u "$path"` 46693 fi 46694 if test "x$new_path" = x; then 46695 # Oops. Which didn't find the executable. 46696 # The splitting of arguments from the executable at a space might have been incorrect, 46697 # since paths with space are more likely in Windows. Give it another try with the whole 46698 # argument. 46699 path="$complete" 46700 arguments="EOL" 46701 new_path=`$CYGPATH -u "$path"` 46702 new_path=`$WHICH "$new_path" 2> /dev/null` 46703 # bat and cmd files are not always considered executable in cygwin causing which 46704 # to not find them 46705 if test "x$new_path" = x \ 46706 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 46707 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 46708 new_path=`$CYGPATH -u "$path"` 46709 fi 46710 if test "x$new_path" = x; then 46711 # It's still not found. Now this is an unrecoverable error. 46712 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_STRIP, which resolves as \"$complete\", is not found." >&5 46713 $as_echo "$as_me: The path of BUILD_STRIP, which resolves as \"$complete\", is not found." >&6;} 46714 has_space=`$ECHO "$complete" | $GREP " "` 46715 if test "x$has_space" != x; then 46716 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 46717 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 46718 fi 46719 as_fn_error $? "Cannot locate the the path of BUILD_STRIP" "$LINENO" 5 46720 fi 46721 fi 46722 46723 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 46724 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 46725 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 46726 # "foo.exe" is OK but "foo" is an error. 46727 # 46728 # This test is therefore slightly more accurate than "test -f" to check for file presence. 46729 # It is also a way to make sure we got the proper file name for the real test later on. 46730 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 46731 if test "x$test_shortpath" = x; then 46732 # Short path failed, file does not exist as specified. 46733 # Try adding .exe or .cmd 46734 if test -f "${new_path}.exe"; then 46735 input_to_shortpath="${new_path}.exe" 46736 elif test -f "${new_path}.cmd"; then 46737 input_to_shortpath="${new_path}.cmd" 46738 else 46739 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_STRIP, which resolves as \"$new_path\", is invalid." >&5 46740 $as_echo "$as_me: The path of BUILD_STRIP, which resolves as \"$new_path\", is invalid." >&6;} 46741 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 46742 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 46743 as_fn_error $? "Cannot locate the the path of BUILD_STRIP" "$LINENO" 5 46744 fi 46745 else 46746 input_to_shortpath="$new_path" 46747 fi 46748 46749 # Call helper function which possibly converts this using DOS-style short mode. 46750 # If so, the updated path is stored in $new_path. 46751 new_path="$input_to_shortpath" 46752 46753 input_path="$input_to_shortpath" 46754 # Check if we need to convert this using DOS-style short mode. If the path 46755 # contains just simple characters, use it. Otherwise (spaces, weird characters), 46756 # take no chances and rewrite it. 46757 # Note: m4 eats our [], so we need to use [ and ] instead. 46758 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 46759 if test "x$has_forbidden_chars" != x; then 46760 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 46761 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 46762 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 46763 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 46764 # Going to short mode and back again did indeed matter. Since short mode is 46765 # case insensitive, let's make it lowercase to improve readability. 46766 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 46767 # Now convert it back to Unix-style (cygpath) 46768 input_path=`$CYGPATH -u "$shortmode_path"` 46769 new_path="$input_path" 46770 fi 46771 fi 46772 46773 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 46774 if test "x$test_cygdrive_prefix" = x; then 46775 # As a simple fix, exclude /usr/bin since it's not a real path. 46776 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 46777 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 46778 # a path prefixed by /cygdrive for fixpath to work. 46779 new_path="$CYGWIN_ROOT_PATH$input_path" 46780 fi 46781 fi 46782 46783 # remove trailing .exe if any 46784 new_path="${new_path/%.exe/}" 46785 46786 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 46787 46788 # First separate the path from the arguments. This will split at the first 46789 # space. 46790 complete="$BUILD_STRIP" 46791 path="${complete%% *}" 46792 tmp="$complete EOL" 46793 arguments="${tmp#* }" 46794 46795 # Input might be given as Windows format, start by converting to 46796 # unix format. 46797 new_path="$path" 46798 46799 windows_path="$new_path" 46800 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 46801 unix_path=`$CYGPATH -u "$windows_path"` 46802 new_path="$unix_path" 46803 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 46804 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 46805 new_path="$unix_path" 46806 fi 46807 46808 46809 # Now try to locate executable using which 46810 new_path=`$WHICH "$new_path" 2> /dev/null` 46811 46812 if test "x$new_path" = x; then 46813 # Oops. Which didn't find the executable. 46814 # The splitting of arguments from the executable at a space might have been incorrect, 46815 # since paths with space are more likely in Windows. Give it another try with the whole 46816 # argument. 46817 path="$complete" 46818 arguments="EOL" 46819 new_path="$path" 46820 46821 windows_path="$new_path" 46822 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 46823 unix_path=`$CYGPATH -u "$windows_path"` 46824 new_path="$unix_path" 46825 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 46826 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 46827 new_path="$unix_path" 46828 fi 46829 46830 46831 new_path=`$WHICH "$new_path" 2> /dev/null` 46832 # bat and cmd files are not always considered executable in MSYS causing which 46833 # to not find them 46834 if test "x$new_path" = x \ 46835 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 46836 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 46837 new_path="$path" 46838 46839 windows_path="$new_path" 46840 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 46841 unix_path=`$CYGPATH -u "$windows_path"` 46842 new_path="$unix_path" 46843 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 46844 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 46845 new_path="$unix_path" 46846 fi 46847 46848 fi 46849 46850 if test "x$new_path" = x; then 46851 # It's still not found. Now this is an unrecoverable error. 46852 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_STRIP, which resolves as \"$complete\", is not found." >&5 46853 $as_echo "$as_me: The path of BUILD_STRIP, which resolves as \"$complete\", is not found." >&6;} 46854 has_space=`$ECHO "$complete" | $GREP " "` 46855 if test "x$has_space" != x; then 46856 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 46857 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 46858 fi 46859 as_fn_error $? "Cannot locate the the path of BUILD_STRIP" "$LINENO" 5 46860 fi 46861 fi 46862 46863 # Now new_path has a complete unix path to the binary 46864 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 46865 # Keep paths in /bin as-is, but remove trailing .exe if any 46866 new_path="${new_path/%.exe/}" 46867 # Do not save /bin paths to all_fixpath_prefixes! 46868 else 46869 # Not in mixed or Windows style, start by that. 46870 new_path=`cmd //c echo $new_path` 46871 46872 input_path="$new_path" 46873 # Check if we need to convert this using DOS-style short mode. If the path 46874 # contains just simple characters, use it. Otherwise (spaces, weird characters), 46875 # take no chances and rewrite it. 46876 # Note: m4 eats our [], so we need to use [ and ] instead. 46877 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 46878 if test "x$has_forbidden_chars" != x; then 46879 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 46880 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 46881 fi 46882 46883 # Output is in $new_path 46884 46885 windows_path="$new_path" 46886 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 46887 unix_path=`$CYGPATH -u "$windows_path"` 46888 new_path="$unix_path" 46889 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 46890 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 46891 new_path="$unix_path" 46892 fi 46893 46894 # remove trailing .exe if any 46895 new_path="${new_path/%.exe/}" 46896 46897 # Save the first 10 bytes of this path to the storage, so fixpath can work. 46898 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 46899 fi 46900 46901 else 46902 # We're on a unix platform. Hooray! :) 46903 # First separate the path from the arguments. This will split at the first 46904 # space. 46905 complete="$BUILD_STRIP" 46906 path="${complete%% *}" 46907 tmp="$complete EOL" 46908 arguments="${tmp#* }" 46909 46910 # Cannot rely on the command "which" here since it doesn't always work. 46911 is_absolute_path=`$ECHO "$path" | $GREP ^/` 46912 if test -z "$is_absolute_path"; then 46913 # Path to executable is not absolute. Find it. 46914 IFS_save="$IFS" 46915 IFS=: 46916 for p in $PATH; do 46917 if test -f "$p/$path" && test -x "$p/$path"; then 46918 new_path="$p/$path" 46919 break 46920 fi 46921 done 46922 IFS="$IFS_save" 46923 else 46924 # This is an absolute path, we can use it without further modifications. 46925 new_path="$path" 46926 fi 46927 46928 if test "x$new_path" = x; then 46929 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_STRIP, which resolves as \"$complete\", is not found." >&5 46930 $as_echo "$as_me: The path of BUILD_STRIP, which resolves as \"$complete\", is not found." >&6;} 46931 has_space=`$ECHO "$complete" | $GREP " "` 46932 if test "x$has_space" != x; then 46933 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 46934 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 46935 fi 46936 as_fn_error $? "Cannot locate the the path of BUILD_STRIP" "$LINENO" 5 46937 fi 46938 fi 46939 46940 # Now join together the path and the arguments once again 46941 if test "x$arguments" != xEOL; then 46942 new_complete="$new_path ${arguments% *}" 46943 else 46944 new_complete="$new_path" 46945 fi 46946 46947 if test "x$complete" != "x$new_complete"; then 46948 BUILD_STRIP="$new_complete" 46949 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BUILD_STRIP to \"$new_complete\"" >&5 46950 $as_echo "$as_me: Rewriting BUILD_STRIP to \"$new_complete\"" >&6;} 46951 fi 46952 fi 46953 46954 # Assume the C compiler is the assembler 46955 BUILD_AS="$BUILD_CC -c" 46956 # Just like for the target compiler, use the compiler as linker 46957 BUILD_LD="$BUILD_CC" 46958 BUILD_LDCXX="$BUILD_CXX" 46959 46960 PATH="$OLDPATH" 46961 46962 46963 COMPILER=$BUILD_CC 46964 COMPILER_NAME=BuildC 46965 46966 if test "x$TOOLCHAIN_TYPE" = xsolstudio; then 46967 # cc -V output typically looks like 46968 # cc: Sun C 5.12 Linux_i386 2011/11/16 46969 # or 46970 # cc: Studio 12.5 Sun C 5.14 SunOS_sparc 2016/05/31 46971 COMPILER_VERSION_OUTPUT=`$COMPILER -V 2>&1` 46972 # Check that this is likely to be the Solaris Studio cc. 46973 $ECHO "$COMPILER_VERSION_OUTPUT" | $GREP "^.* Sun $COMPILER_NAME" > /dev/null 46974 if test $? -ne 0; then 46975 ALT_VERSION_OUTPUT=`$COMPILER --version 2>&1` 46976 { $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 46977 $as_echo "$as_me: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required $TOOLCHAIN_TYPE compiler." >&6;} 46978 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with -V was: \"$COMPILER_VERSION_OUTPUT\"" >&5 46979 $as_echo "$as_me: The result from running with -V was: \"$COMPILER_VERSION_OUTPUT\"" >&6;} 46980 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with --version was: \"$ALT_VERSION_OUTPUT\"" >&5 46981 $as_echo "$as_me: The result from running with --version was: \"$ALT_VERSION_OUTPUT\"" >&6;} 46982 as_fn_error $? "A $TOOLCHAIN_TYPE compiler is required. Try setting --with-tools-dir." "$LINENO" 5 46983 fi 46984 # Remove usage instructions (if present), and 46985 # collapse compiler output into a single line 46986 COMPILER_VERSION_STRING=`$ECHO $COMPILER_VERSION_OUTPUT | \ 46987 $SED -e 's/ *[Uu]sage:.*//'` 46988 COMPILER_VERSION_NUMBER=`$ECHO $COMPILER_VERSION_OUTPUT | \ 46989 $SED -e "s/^.*[ ,\t]$COMPILER_NAME[ ,\t]\([1-9]\.[0-9][0-9]*\).*/\1/"` 46990 elif test "x$TOOLCHAIN_TYPE" = xxlc; then 46991 # xlc -qversion output typically looks like 46992 # IBM XL C/C++ for AIX, V11.1 (5724-X13) 46993 # Version: 11.01.0000.0015 46994 COMPILER_VERSION_OUTPUT=`$COMPILER -qversion 2>&1` 46995 # Check that this is likely to be the IBM XL C compiler. 46996 $ECHO "$COMPILER_VERSION_OUTPUT" | $GREP "IBM XL C" > /dev/null 46997 if test $? -ne 0; then 46998 ALT_VERSION_OUTPUT=`$COMPILER --version 2>&1` 46999 { $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 47000 $as_echo "$as_me: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required $TOOLCHAIN_TYPE compiler." >&6;} 47001 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with -qversion was: \"$COMPILER_VERSION_OUTPUT\"" >&5 47002 $as_echo "$as_me: The result from running with -qversion was: \"$COMPILER_VERSION_OUTPUT\"" >&6;} 47003 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with --version was: \"$ALT_VERSION_OUTPUT\"" >&5 47004 $as_echo "$as_me: The result from running with --version was: \"$ALT_VERSION_OUTPUT\"" >&6;} 47005 as_fn_error $? "A $TOOLCHAIN_TYPE compiler is required. Try setting --with-tools-dir." "$LINENO" 5 47006 fi 47007 # Collapse compiler output into a single line 47008 COMPILER_VERSION_STRING=`$ECHO $COMPILER_VERSION_OUTPUT` 47009 COMPILER_VERSION_NUMBER=`$ECHO $COMPILER_VERSION_OUTPUT | \ 47010 $SED -e 's/^.*, V\([1-9][0-9.]*\).*$/\1/'` 47011 elif test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 47012 # There is no specific version flag, but all output starts with a version string. 47013 # First line typically looks something like: 47014 # Microsoft (R) 32-bit C/C++ Optimizing Compiler Version 16.00.40219.01 for 80x86 47015 COMPILER_VERSION_OUTPUT=`$COMPILER 2>&1 | $HEAD -n 1 | $TR -d '\r'` 47016 # Check that this is likely to be Microsoft CL.EXE. 47017 $ECHO "$COMPILER_VERSION_OUTPUT" | $GREP "Microsoft.*Compiler" > /dev/null 47018 if test $? -ne 0; then 47019 { $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 47020 $as_echo "$as_me: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required $TOOLCHAIN_TYPE compiler." >&6;} 47021 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running it was: \"$COMPILER_VERSION_OUTPUT\"" >&5 47022 $as_echo "$as_me: The result from running it was: \"$COMPILER_VERSION_OUTPUT\"" >&6;} 47023 as_fn_error $? "A $TOOLCHAIN_TYPE compiler is required. Try setting --with-tools-dir." "$LINENO" 5 47024 fi 47025 # Collapse compiler output into a single line 47026 COMPILER_VERSION_STRING=`$ECHO $COMPILER_VERSION_OUTPUT` 47027 COMPILER_VERSION_NUMBER=`$ECHO $COMPILER_VERSION_OUTPUT | \ 47028 $SED -e 's/^.*ersion.\([1-9][0-9.]*\) .*$/\1/'` 47029 elif test "x$TOOLCHAIN_TYPE" = xgcc; then 47030 # gcc --version output typically looks like 47031 # gcc (Ubuntu/Linaro 4.8.1-10ubuntu9) 4.8.1 47032 # Copyright (C) 2013 Free Software Foundation, Inc. 47033 # This is free software; see the source for copying conditions. There is NO 47034 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 47035 COMPILER_VERSION_OUTPUT=`$COMPILER --version 2>&1` 47036 # Check that this is likely to be GCC. 47037 $ECHO "$COMPILER_VERSION_OUTPUT" | $GREP "Free Software Foundation" > /dev/null 47038 if test $? -ne 0; then 47039 { $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 47040 $as_echo "$as_me: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required $TOOLCHAIN_TYPE compiler." >&6;} 47041 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with --version was: \"$COMPILER_VERSION\"" >&5 47042 $as_echo "$as_me: The result from running with --version was: \"$COMPILER_VERSION\"" >&6;} 47043 as_fn_error $? "A $TOOLCHAIN_TYPE compiler is required. Try setting --with-tools-dir." "$LINENO" 5 47044 fi 47045 # Remove Copyright and legalese from version string, and 47046 # collapse into a single line 47047 COMPILER_VERSION_STRING=`$ECHO $COMPILER_VERSION_OUTPUT | \ 47048 $SED -e 's/ *Copyright .*//'` 47049 COMPILER_VERSION_NUMBER=`$ECHO $COMPILER_VERSION_OUTPUT | \ 47050 $SED -e 's/^.* \([1-9]\.[0-9.]*\)[^0-9.].*$/\1/'` 47051 elif test "x$TOOLCHAIN_TYPE" = xclang; then 47052 # clang --version output typically looks like 47053 # Apple LLVM version 5.0 (clang-500.2.79) (based on LLVM 3.3svn) 47054 # clang version 3.3 (tags/RELEASE_33/final) 47055 # or 47056 # Debian clang version 3.2-7ubuntu1 (tags/RELEASE_32/final) (based on LLVM 3.2) 47057 # Target: x86_64-pc-linux-gnu 47058 # Thread model: posix 47059 COMPILER_VERSION_OUTPUT=`$COMPILER --version 2>&1` 47060 # Check that this is likely to be clang 47061 $ECHO "$COMPILER_VERSION_OUTPUT" | $GREP "clang" > /dev/null 47062 if test $? -ne 0; then 47063 { $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 47064 $as_echo "$as_me: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required $TOOLCHAIN_TYPE compiler." >&6;} 47065 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with --version was: \"$COMPILER_VERSION_OUTPUT\"" >&5 47066 $as_echo "$as_me: The result from running with --version was: \"$COMPILER_VERSION_OUTPUT\"" >&6;} 47067 as_fn_error $? "A $TOOLCHAIN_TYPE compiler is required. Try setting --with-tools-dir." "$LINENO" 5 47068 fi 47069 # Collapse compiler output into a single line 47070 COMPILER_VERSION_STRING=`$ECHO $COMPILER_VERSION_OUTPUT` 47071 COMPILER_VERSION_NUMBER=`$ECHO $COMPILER_VERSION_OUTPUT | \ 47072 $SED -e 's/^.* version \([1-9][0-9.]*\).*$/\1/'` 47073 else 47074 as_fn_error $? "Unknown toolchain type $TOOLCHAIN_TYPE." "$LINENO" 5 47075 fi 47076 # This sets CC_VERSION_NUMBER or CXX_VERSION_NUMBER. (This comment is a grep marker) 47077 BUILD_CC_VERSION_NUMBER="$COMPILER_VERSION_NUMBER" 47078 # This sets CC_VERSION_STRING or CXX_VERSION_STRING. (This comment is a grep marker) 47079 BUILD_CC_VERSION_STRING="$COMPILER_VERSION_STRING" 47080 47081 { $as_echo "$as_me:${as_lineno-$LINENO}: Using $TOOLCHAIN_TYPE $COMPILER_NAME compiler version $COMPILER_VERSION_NUMBER [$COMPILER_VERSION_STRING]" >&5 47082 $as_echo "$as_me: Using $TOOLCHAIN_TYPE $COMPILER_NAME compiler version $COMPILER_VERSION_NUMBER [$COMPILER_VERSION_STRING]" >&6;} 47083 47084 47085 COMPILER=$BUILD_CXX 47086 COMPILER_NAME=BuildC++ 47087 47088 if test "x$TOOLCHAIN_TYPE" = xsolstudio; then 47089 # cc -V output typically looks like 47090 # cc: Sun C 5.12 Linux_i386 2011/11/16 47091 # or 47092 # cc: Studio 12.5 Sun C 5.14 SunOS_sparc 2016/05/31 47093 COMPILER_VERSION_OUTPUT=`$COMPILER -V 2>&1` 47094 # Check that this is likely to be the Solaris Studio cc. 47095 $ECHO "$COMPILER_VERSION_OUTPUT" | $GREP "^.* Sun $COMPILER_NAME" > /dev/null 47096 if test $? -ne 0; then 47097 ALT_VERSION_OUTPUT=`$COMPILER --version 2>&1` 47098 { $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 47099 $as_echo "$as_me: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required $TOOLCHAIN_TYPE compiler." >&6;} 47100 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with -V was: \"$COMPILER_VERSION_OUTPUT\"" >&5 47101 $as_echo "$as_me: The result from running with -V was: \"$COMPILER_VERSION_OUTPUT\"" >&6;} 47102 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with --version was: \"$ALT_VERSION_OUTPUT\"" >&5 47103 $as_echo "$as_me: The result from running with --version was: \"$ALT_VERSION_OUTPUT\"" >&6;} 47104 as_fn_error $? "A $TOOLCHAIN_TYPE compiler is required. Try setting --with-tools-dir." "$LINENO" 5 47105 fi 47106 # Remove usage instructions (if present), and 47107 # collapse compiler output into a single line 47108 COMPILER_VERSION_STRING=`$ECHO $COMPILER_VERSION_OUTPUT | \ 47109 $SED -e 's/ *[Uu]sage:.*//'` 47110 COMPILER_VERSION_NUMBER=`$ECHO $COMPILER_VERSION_OUTPUT | \ 47111 $SED -e "s/^.*[ ,\t]$COMPILER_NAME[ ,\t]\([1-9]\.[0-9][0-9]*\).*/\1/"` 47112 elif test "x$TOOLCHAIN_TYPE" = xxlc; then 47113 # xlc -qversion output typically looks like 47114 # IBM XL C/C++ for AIX, V11.1 (5724-X13) 47115 # Version: 11.01.0000.0015 47116 COMPILER_VERSION_OUTPUT=`$COMPILER -qversion 2>&1` 47117 # Check that this is likely to be the IBM XL C compiler. 47118 $ECHO "$COMPILER_VERSION_OUTPUT" | $GREP "IBM XL C" > /dev/null 47119 if test $? -ne 0; then 47120 ALT_VERSION_OUTPUT=`$COMPILER --version 2>&1` 47121 { $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 47122 $as_echo "$as_me: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required $TOOLCHAIN_TYPE compiler." >&6;} 47123 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with -qversion was: \"$COMPILER_VERSION_OUTPUT\"" >&5 47124 $as_echo "$as_me: The result from running with -qversion was: \"$COMPILER_VERSION_OUTPUT\"" >&6;} 47125 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with --version was: \"$ALT_VERSION_OUTPUT\"" >&5 47126 $as_echo "$as_me: The result from running with --version was: \"$ALT_VERSION_OUTPUT\"" >&6;} 47127 as_fn_error $? "A $TOOLCHAIN_TYPE compiler is required. Try setting --with-tools-dir." "$LINENO" 5 47128 fi 47129 # Collapse compiler output into a single line 47130 COMPILER_VERSION_STRING=`$ECHO $COMPILER_VERSION_OUTPUT` 47131 COMPILER_VERSION_NUMBER=`$ECHO $COMPILER_VERSION_OUTPUT | \ 47132 $SED -e 's/^.*, V\([1-9][0-9.]*\).*$/\1/'` 47133 elif test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 47134 # There is no specific version flag, but all output starts with a version string. 47135 # First line typically looks something like: 47136 # Microsoft (R) 32-bit C/C++ Optimizing Compiler Version 16.00.40219.01 for 80x86 47137 COMPILER_VERSION_OUTPUT=`$COMPILER 2>&1 | $HEAD -n 1 | $TR -d '\r'` 47138 # Check that this is likely to be Microsoft CL.EXE. 47139 $ECHO "$COMPILER_VERSION_OUTPUT" | $GREP "Microsoft.*Compiler" > /dev/null 47140 if test $? -ne 0; then 47141 { $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 47142 $as_echo "$as_me: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required $TOOLCHAIN_TYPE compiler." >&6;} 47143 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running it was: \"$COMPILER_VERSION_OUTPUT\"" >&5 47144 $as_echo "$as_me: The result from running it was: \"$COMPILER_VERSION_OUTPUT\"" >&6;} 47145 as_fn_error $? "A $TOOLCHAIN_TYPE compiler is required. Try setting --with-tools-dir." "$LINENO" 5 47146 fi 47147 # Collapse compiler output into a single line 47148 COMPILER_VERSION_STRING=`$ECHO $COMPILER_VERSION_OUTPUT` 47149 COMPILER_VERSION_NUMBER=`$ECHO $COMPILER_VERSION_OUTPUT | \ 47150 $SED -e 's/^.*ersion.\([1-9][0-9.]*\) .*$/\1/'` 47151 elif test "x$TOOLCHAIN_TYPE" = xgcc; then 47152 # gcc --version output typically looks like 47153 # gcc (Ubuntu/Linaro 4.8.1-10ubuntu9) 4.8.1 47154 # Copyright (C) 2013 Free Software Foundation, Inc. 47155 # This is free software; see the source for copying conditions. There is NO 47156 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 47157 COMPILER_VERSION_OUTPUT=`$COMPILER --version 2>&1` 47158 # Check that this is likely to be GCC. 47159 $ECHO "$COMPILER_VERSION_OUTPUT" | $GREP "Free Software Foundation" > /dev/null 47160 if test $? -ne 0; then 47161 { $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 47162 $as_echo "$as_me: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required $TOOLCHAIN_TYPE compiler." >&6;} 47163 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with --version was: \"$COMPILER_VERSION\"" >&5 47164 $as_echo "$as_me: The result from running with --version was: \"$COMPILER_VERSION\"" >&6;} 47165 as_fn_error $? "A $TOOLCHAIN_TYPE compiler is required. Try setting --with-tools-dir." "$LINENO" 5 47166 fi 47167 # Remove Copyright and legalese from version string, and 47168 # collapse into a single line 47169 COMPILER_VERSION_STRING=`$ECHO $COMPILER_VERSION_OUTPUT | \ 47170 $SED -e 's/ *Copyright .*//'` 47171 COMPILER_VERSION_NUMBER=`$ECHO $COMPILER_VERSION_OUTPUT | \ 47172 $SED -e 's/^.* \([1-9]\.[0-9.]*\)[^0-9.].*$/\1/'` 47173 elif test "x$TOOLCHAIN_TYPE" = xclang; then 47174 # clang --version output typically looks like 47175 # Apple LLVM version 5.0 (clang-500.2.79) (based on LLVM 3.3svn) 47176 # clang version 3.3 (tags/RELEASE_33/final) 47177 # or 47178 # Debian clang version 3.2-7ubuntu1 (tags/RELEASE_32/final) (based on LLVM 3.2) 47179 # Target: x86_64-pc-linux-gnu 47180 # Thread model: posix 47181 COMPILER_VERSION_OUTPUT=`$COMPILER --version 2>&1` 47182 # Check that this is likely to be clang 47183 $ECHO "$COMPILER_VERSION_OUTPUT" | $GREP "clang" > /dev/null 47184 if test $? -ne 0; then 47185 { $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 47186 $as_echo "$as_me: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required $TOOLCHAIN_TYPE compiler." >&6;} 47187 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with --version was: \"$COMPILER_VERSION_OUTPUT\"" >&5 47188 $as_echo "$as_me: The result from running with --version was: \"$COMPILER_VERSION_OUTPUT\"" >&6;} 47189 as_fn_error $? "A $TOOLCHAIN_TYPE compiler is required. Try setting --with-tools-dir." "$LINENO" 5 47190 fi 47191 # Collapse compiler output into a single line 47192 COMPILER_VERSION_STRING=`$ECHO $COMPILER_VERSION_OUTPUT` 47193 COMPILER_VERSION_NUMBER=`$ECHO $COMPILER_VERSION_OUTPUT | \ 47194 $SED -e 's/^.* version \([1-9][0-9.]*\).*$/\1/'` 47195 else 47196 as_fn_error $? "Unknown toolchain type $TOOLCHAIN_TYPE." "$LINENO" 5 47197 fi 47198 # This sets CC_VERSION_NUMBER or CXX_VERSION_NUMBER. (This comment is a grep marker) 47199 BUILD_CXX_VERSION_NUMBER="$COMPILER_VERSION_NUMBER" 47200 # This sets CC_VERSION_STRING or CXX_VERSION_STRING. (This comment is a grep marker) 47201 BUILD_CXX_VERSION_STRING="$COMPILER_VERSION_STRING" 47202 47203 { $as_echo "$as_me:${as_lineno-$LINENO}: Using $TOOLCHAIN_TYPE $COMPILER_NAME compiler version $COMPILER_VERSION_NUMBER [$COMPILER_VERSION_STRING]" >&5 47204 $as_echo "$as_me: Using $TOOLCHAIN_TYPE $COMPILER_NAME compiler version $COMPILER_VERSION_NUMBER [$COMPILER_VERSION_STRING]" >&6;} 47205 47206 47207 if test "x$BUILD_CC_VERSION_NUMBER" != "x$BUILD_CXX_VERSION_NUMBER"; then 47208 { $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 47209 $as_echo "$as_me: WARNING: C and C++ compiler have different version numbers, $BUILD_CC_VERSION_NUMBER vs $BUILD_CXX_VERSION_NUMBER." >&2;} 47210 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This typically indicates a broken setup, and is not supported" >&5 47211 $as_echo "$as_me: WARNING: This typically indicates a broken setup, and is not supported" >&2;} 47212 fi 47213 47214 # We only check CC_VERSION_NUMBER since we assume CXX_VERSION_NUMBER is equal. 47215 if [[ "[$]BUILD_CC_VERSION_NUMBER" =~ (.*\.){4} ]] ; then 47216 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: C compiler version number has more than four parts (W.X.Y.Z): $BUILD_CC_VERSION_NUMBER. Comparisons might be wrong." >&5 47217 $as_echo "$as_me: WARNING: C compiler version number has more than four parts (W.X.Y.Z): $BUILD_CC_VERSION_NUMBER. Comparisons might be wrong." >&2;} 47218 fi 47219 47220 if [[ "[$]BUILD_CC_VERSION_NUMBER" =~ [0-9]{6} ]] ; then 47221 { $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 47222 $as_echo "$as_me: WARNING: C compiler version number has a part larger than 99999: $BUILD_CC_VERSION_NUMBER. Comparisons might be wrong." >&2;} 47223 fi 47224 47225 OPENJDK_BUILD_COMPARABLE_ACTUAL_VERSION=`$AWK -F. '{ printf("%05d%05d%05d%05d\n", $1, $2, $3, $4) }' <<< "$BUILD_CC_VERSION_NUMBER"` 47226 47227 else 47228 # If we are not cross compiling, use the normal target compilers for 47229 # building the build platform executables. 47230 BUILD_CC="$CC" 47231 BUILD_CXX="$CXX" 47232 BUILD_LD="$LD" 47233 BUILD_LDCXX="$LDCXX" 47234 BUILD_NM="$NM" 47235 BUILD_AS="$AS" 47236 BUILD_OBJCOPY="$OBJCOPY" 47237 BUILD_STRIP="$STRIP" 47238 BUILD_SYSROOT_CFLAGS="$SYSROOT_CFLAGS" 47239 BUILD_SYSROOT_LDFLAGS="$SYSROOT_LDFLAGS" 47240 BUILD_AR="$AR" 47241 47242 47243 if test "x$CC_VERSION_NUMBER" != "x$CXX_VERSION_NUMBER"; then 47244 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: C and C++ compiler have different version numbers, $CC_VERSION_NUMBER vs $CXX_VERSION_NUMBER." >&5 47245 $as_echo "$as_me: WARNING: C and C++ compiler have different version numbers, $CC_VERSION_NUMBER vs $CXX_VERSION_NUMBER." >&2;} 47246 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This typically indicates a broken setup, and is not supported" >&5 47247 $as_echo "$as_me: WARNING: This typically indicates a broken setup, and is not supported" >&2;} 47248 fi 47249 47250 # We only check CC_VERSION_NUMBER since we assume CXX_VERSION_NUMBER is equal. 47251 if [[ "[$]CC_VERSION_NUMBER" =~ (.*\.){4} ]] ; then 47252 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: C compiler version number has more than four parts (W.X.Y.Z): $CC_VERSION_NUMBER. Comparisons might be wrong." >&5 47253 $as_echo "$as_me: WARNING: C compiler version number has more than four parts (W.X.Y.Z): $CC_VERSION_NUMBER. Comparisons might be wrong." >&2;} 47254 fi 47255 47256 if [[ "[$]CC_VERSION_NUMBER" =~ [0-9]{6} ]] ; then 47257 { $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 47258 $as_echo "$as_me: WARNING: C compiler version number has a part larger than 99999: $CC_VERSION_NUMBER. Comparisons might be wrong." >&2;} 47259 fi 47260 47261 OPENJDK_BUILD_COMPARABLE_ACTUAL_VERSION=`$AWK -F. '{ printf("%05d%05d%05d%05d\n", $1, $2, $3, $4) }' <<< "$CC_VERSION_NUMBER"` 47262 47263 fi 47264 47265 47266 47267 47268 47269 47270 47271 47272 47273 47274 47275 47276 47277 47278 # The package path is used only on macosx? 47279 # FIXME: clean this up, and/or move it elsewhere. 47280 PACKAGE_PATH=/opt/local 47281 47282 47283 # Check for extra potential brokenness. 47284 if test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 47285 # On Windows, double-check that we got the right compiler. 47286 CC_VERSION_OUTPUT=`$CC 2>&1 | $HEAD -n 1 | $TR -d '\r'` 47287 COMPILER_CPU_TEST=`$ECHO $CC_VERSION_OUTPUT | $SED -n "s/^.* \(.*\)$/\1/p"` 47288 if test "x$OPENJDK_TARGET_CPU" = "xx86"; then 47289 if test "x$COMPILER_CPU_TEST" != "x80x86" -a "x$COMPILER_CPU_TEST" != "xx86"; then 47290 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 47291 fi 47292 elif test "x$OPENJDK_TARGET_CPU" = "xx86_64"; then 47293 if test "x$COMPILER_CPU_TEST" != "xx64"; then 47294 as_fn_error $? "Target CPU mismatch. We are building for $OPENJDK_TARGET_CPU but CL is for \"$COMPILER_CPU_TEST\"; expected \"x64\"." "$LINENO" 5 47295 fi 47296 fi 47297 fi 47298 47299 if test "x$TOOLCHAIN_TYPE" = xgcc; then 47300 # If this is a --hash-style=gnu system, use --hash-style=both, why? 47301 HAS_GNU_HASH=`$CC -dumpspecs 2>/dev/null | $GREP 'hash-style=gnu'` 47302 # This is later checked when setting flags. 47303 47304 # "-Og" suppported for GCC 4.8 and later 47305 CFLAG_OPTIMIZE_DEBUG_FLAG="-Og" 47306 47307 47308 47309 47310 47311 47312 47313 47314 47315 47316 47317 47318 47319 47320 47321 47322 47323 47324 47325 47326 47327 47328 47329 47330 47331 47332 47333 47334 47335 47336 47337 47338 47339 47340 47341 47342 47343 47344 47345 47346 47347 47348 47349 47350 47351 47352 47353 # Execute function body 47354 47355 47356 47357 47358 47359 47360 47361 47362 47363 47364 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 # Execute function body 47403 47404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the C compiler supports \"$CFLAG_OPTIMIZE_DEBUG_FLAG\"" >&5 47405 $as_echo_n "checking if the C compiler supports \"$CFLAG_OPTIMIZE_DEBUG_FLAG\"... " >&6; } 47406 supports=yes 47407 47408 saved_cflags="$CFLAGS" 47409 CFLAGS="$CFLAGS $CFLAG_OPTIMIZE_DEBUG_FLAG" 47410 ac_ext=c 47411 ac_cpp='$CPP $CPPFLAGS' 47412 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 47413 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 47414 ac_compiler_gnu=$ac_cv_c_compiler_gnu 47415 47416 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 47417 /* end confdefs.h. */ 47418 int i; 47419 _ACEOF 47420 if ac_fn_c_try_compile "$LINENO"; then : 47421 47422 else 47423 supports=no 47424 fi 47425 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 47426 ac_ext=cpp 47427 ac_cpp='$CXXCPP $CPPFLAGS' 47428 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 47429 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 47430 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 47431 47432 CFLAGS="$saved_cflags" 47433 47434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supports" >&5 47435 $as_echo "$supports" >&6; } 47436 if test "x$supports" = "xyes" ; then 47437 : 47438 C_COMP_SUPPORTS="yes" 47439 else 47440 : 47441 C_COMP_SUPPORTS="no" 47442 fi 47443 47444 47445 47446 47447 47448 47449 47450 47451 47452 47453 47454 47455 47456 47457 47458 47459 47460 47461 47462 47463 47464 47465 47466 47467 47468 47469 47470 47471 47472 47473 47474 47475 47476 47477 47478 47479 47480 47481 47482 47483 47484 47485 47486 47487 47488 47489 47490 47491 47492 47493 47494 47495 47496 47497 47498 47499 47500 47501 47502 # Execute function body 47503 47504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the C++ compiler supports \"$CFLAG_OPTIMIZE_DEBUG_FLAG\"" >&5 47505 $as_echo_n "checking if the C++ compiler supports \"$CFLAG_OPTIMIZE_DEBUG_FLAG\"... " >&6; } 47506 supports=yes 47507 47508 saved_cxxflags="$CXXFLAGS" 47509 CXXFLAGS="$CXXFLAG $CFLAG_OPTIMIZE_DEBUG_FLAG" 47510 ac_ext=cpp 47511 ac_cpp='$CXXCPP $CPPFLAGS' 47512 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 47513 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 47514 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 47515 47516 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 47517 /* end confdefs.h. */ 47518 int i; 47519 _ACEOF 47520 if ac_fn_cxx_try_compile "$LINENO"; then : 47521 47522 else 47523 supports=no 47524 fi 47525 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 47526 ac_ext=cpp 47527 ac_cpp='$CXXCPP $CPPFLAGS' 47528 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 47529 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 47530 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 47531 47532 CXXFLAGS="$saved_cxxflags" 47533 47534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supports" >&5 47535 $as_echo "$supports" >&6; } 47536 if test "x$supports" = "xyes" ; then 47537 : 47538 CXX_COMP_SUPPORTS="yes" 47539 else 47540 : 47541 CXX_COMP_SUPPORTS="no" 47542 fi 47543 47544 47545 47546 47547 47548 47549 47550 47551 47552 47553 47554 47555 47556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if both compilers support \"$CFLAG_OPTIMIZE_DEBUG_FLAG\"" >&5 47557 $as_echo_n "checking if both compilers support \"$CFLAG_OPTIMIZE_DEBUG_FLAG\"... " >&6; } 47558 supports=no 47559 if test "x$C_COMP_SUPPORTS" = "xyes" -a "x$CXX_COMP_SUPPORTS" = "xyes"; then supports=yes; fi 47560 47561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supports" >&5 47562 $as_echo "$supports" >&6; } 47563 if test "x$supports" = "xyes" ; then 47564 : 47565 HAS_CFLAG_OPTIMIZE_DEBUG=true 47566 else 47567 : 47568 HAS_CFLAG_OPTIMIZE_DEBUG=false 47569 fi 47570 47571 47572 47573 47574 47575 47576 47577 # "-z relro" supported in GNU binutils 2.17 and later 47578 LINKER_RELRO_FLAG="-Wl,-z,relro" 47579 47580 47581 47582 47583 47584 47585 47586 47587 47588 47589 47590 47591 47592 47593 47594 47595 47596 47597 47598 47599 47600 47601 47602 47603 47604 47605 47606 47607 47608 47609 47610 47611 47612 47613 47614 47615 47616 47617 47618 47619 47620 47621 47622 47623 47624 47625 47626 # Execute function body 47627 47628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if linker supports \"$LINKER_RELRO_FLAG\"" >&5 47629 $as_echo_n "checking if linker supports \"$LINKER_RELRO_FLAG\"... " >&6; } 47630 supports=yes 47631 47632 saved_ldflags="$LDFLAGS" 47633 LDFLAGS="$LDFLAGS $LINKER_RELRO_FLAG" 47634 ac_ext=c 47635 ac_cpp='$CPP $CPPFLAGS' 47636 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 47637 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 47638 ac_compiler_gnu=$ac_cv_c_compiler_gnu 47639 47640 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 47641 /* end confdefs.h. */ 47642 47643 int 47644 main () 47645 { 47646 47647 ; 47648 return 0; 47649 } 47650 _ACEOF 47651 if ac_fn_c_try_link "$LINENO"; then : 47652 47653 else 47654 supports=no 47655 fi 47656 rm -f core conftest.err conftest.$ac_objext \ 47657 conftest$ac_exeext conftest.$ac_ext 47658 ac_ext=cpp 47659 ac_cpp='$CXXCPP $CPPFLAGS' 47660 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 47661 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 47662 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 47663 47664 LDFLAGS="$saved_ldflags" 47665 47666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supports" >&5 47667 $as_echo "$supports" >&6; } 47668 if test "x$supports" = "xyes" ; then 47669 : 47670 HAS_LINKER_RELRO=true 47671 else 47672 : 47673 HAS_LINKER_RELRO=false 47674 fi 47675 47676 47677 47678 47679 47680 47681 47682 47683 47684 47685 47686 47687 47688 # "-z now" supported in GNU binutils 2.11 and later 47689 LINKER_NOW_FLAG="-Wl,-z,now" 47690 47691 47692 47693 47694 47695 47696 47697 47698 47699 47700 47701 47702 47703 47704 47705 47706 47707 47708 47709 47710 47711 47712 47713 47714 47715 47716 47717 47718 47719 47720 47721 47722 47723 47724 47725 47726 47727 47728 47729 47730 47731 47732 47733 47734 47735 47736 47737 # Execute function body 47738 47739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if linker supports \"$LINKER_NOW_FLAG\"" >&5 47740 $as_echo_n "checking if linker supports \"$LINKER_NOW_FLAG\"... " >&6; } 47741 supports=yes 47742 47743 saved_ldflags="$LDFLAGS" 47744 LDFLAGS="$LDFLAGS $LINKER_NOW_FLAG" 47745 ac_ext=c 47746 ac_cpp='$CPP $CPPFLAGS' 47747 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 47748 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 47749 ac_compiler_gnu=$ac_cv_c_compiler_gnu 47750 47751 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 47752 /* end confdefs.h. */ 47753 47754 int 47755 main () 47756 { 47757 47758 ; 47759 return 0; 47760 } 47761 _ACEOF 47762 if ac_fn_c_try_link "$LINENO"; then : 47763 47764 else 47765 supports=no 47766 fi 47767 rm -f core conftest.err conftest.$ac_objext \ 47768 conftest$ac_exeext conftest.$ac_ext 47769 ac_ext=cpp 47770 ac_cpp='$CXXCPP $CPPFLAGS' 47771 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 47772 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 47773 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 47774 47775 LDFLAGS="$saved_ldflags" 47776 47777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supports" >&5 47778 $as_echo "$supports" >&6; } 47779 if test "x$supports" = "xyes" ; then 47780 : 47781 HAS_LINKER_NOW=true 47782 else 47783 : 47784 HAS_LINKER_NOW=false 47785 fi 47786 47787 47788 47789 47790 47791 47792 47793 47794 47795 47796 47797 47798 fi 47799 47800 # Check for broken SuSE 'ld' for which 'Only anonymous version tag is allowed 47801 # in executable.' 47802 USING_BROKEN_SUSE_LD=no 47803 if test "x$OPENJDK_TARGET_OS" = xlinux && test "x$TOOLCHAIN_TYPE" = xgcc; then 47804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken SuSE 'ld' which only understands anonymous version tags in executables" >&5 47805 $as_echo_n "checking for broken SuSE 'ld' which only understands anonymous version tags in executables... " >&6; } 47806 $ECHO "SUNWprivate_1.1 { local: *; };" > version-script.map 47807 $ECHO "int main() { }" > main.c 47808 if $CXX -Wl,-version-script=version-script.map main.c 2>&5 >&5; then 47809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 47810 $as_echo "no" >&6; } 47811 USING_BROKEN_SUSE_LD=no 47812 else 47813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 47814 $as_echo "yes" >&6; } 47815 USING_BROKEN_SUSE_LD=yes 47816 fi 47817 $RM version-script.map main.c a.out 47818 fi 47819 47820 47821 # Setup hotspot lecagy names for toolchains 47822 HOTSPOT_TOOLCHAIN_TYPE=$TOOLCHAIN_TYPE 47823 if test "x$TOOLCHAIN_TYPE" = xclang; then 47824 HOTSPOT_TOOLCHAIN_TYPE=gcc 47825 elif test "x$TOOLCHAIN_TYPE" = xsolstudio; then 47826 HOTSPOT_TOOLCHAIN_TYPE=sparcWorks 47827 elif test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 47828 HOTSPOT_TOOLCHAIN_TYPE=visCPP 47829 fi 47830 47831 47832 47833 # Setup the JTReg Regression Test Harness. 47834 47835 47836 # Check whether --with-jtreg was given. 47837 if test "${with_jtreg+set}" = set; then : 47838 withval=$with_jtreg; 47839 else 47840 with_jtreg=no 47841 fi 47842 47843 47844 if test "x$with_jtreg" = xno; then 47845 # jtreg disabled 47846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jtreg" >&5 47847 $as_echo_n "checking for jtreg... " >&6; } 47848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 47849 $as_echo "no" >&6; } 47850 else 47851 if test "x$with_jtreg" != xyes; then 47852 # with path specified. 47853 JT_HOME="$with_jtreg" 47854 fi 47855 47856 if test "x$JT_HOME" != x; then 47857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jtreg" >&5 47858 $as_echo_n "checking for jtreg... " >&6; } 47859 47860 # use JT_HOME enviroment var. 47861 47862 # Only process if variable expands to non-empty 47863 47864 if test "x$JT_HOME" != x; then 47865 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 47866 47867 # Input might be given as Windows format, start by converting to 47868 # unix format. 47869 path="$JT_HOME" 47870 new_path=`$CYGPATH -u "$path"` 47871 47872 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 47873 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 47874 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 47875 # "foo.exe" is OK but "foo" is an error. 47876 # 47877 # This test is therefore slightly more accurate than "test -f" to check for file precense. 47878 # It is also a way to make sure we got the proper file name for the real test later on. 47879 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 47880 if test "x$test_shortpath" = x; then 47881 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of JT_HOME, which resolves as \"$path\", is invalid." >&5 47882 $as_echo "$as_me: The path of JT_HOME, which resolves as \"$path\", is invalid." >&6;} 47883 as_fn_error $? "Cannot locate the the path of JT_HOME" "$LINENO" 5 47884 fi 47885 47886 # Call helper function which possibly converts this using DOS-style short mode. 47887 # If so, the updated path is stored in $new_path. 47888 47889 input_path="$new_path" 47890 # Check if we need to convert this using DOS-style short mode. If the path 47891 # contains just simple characters, use it. Otherwise (spaces, weird characters), 47892 # take no chances and rewrite it. 47893 # Note: m4 eats our [], so we need to use [ and ] instead. 47894 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 47895 if test "x$has_forbidden_chars" != x; then 47896 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 47897 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 47898 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 47899 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 47900 # Going to short mode and back again did indeed matter. Since short mode is 47901 # case insensitive, let's make it lowercase to improve readability. 47902 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 47903 # Now convert it back to Unix-style (cygpath) 47904 input_path=`$CYGPATH -u "$shortmode_path"` 47905 new_path="$input_path" 47906 fi 47907 fi 47908 47909 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 47910 if test "x$test_cygdrive_prefix" = x; then 47911 # As a simple fix, exclude /usr/bin since it's not a real path. 47912 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 47913 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 47914 # a path prefixed by /cygdrive for fixpath to work. 47915 new_path="$CYGWIN_ROOT_PATH$input_path" 47916 fi 47917 fi 47918 47919 47920 if test "x$path" != "x$new_path"; then 47921 JT_HOME="$new_path" 47922 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting JT_HOME to \"$new_path\"" >&5 47923 $as_echo "$as_me: Rewriting JT_HOME to \"$new_path\"" >&6;} 47924 fi 47925 47926 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 47927 47928 path="$JT_HOME" 47929 has_colon=`$ECHO $path | $GREP ^.:` 47930 new_path="$path" 47931 if test "x$has_colon" = x; then 47932 # Not in mixed or Windows style, start by that. 47933 new_path=`cmd //c echo $path` 47934 fi 47935 47936 47937 input_path="$new_path" 47938 # Check if we need to convert this using DOS-style short mode. If the path 47939 # contains just simple characters, use it. Otherwise (spaces, weird characters), 47940 # take no chances and rewrite it. 47941 # Note: m4 eats our [], so we need to use [ and ] instead. 47942 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 47943 if test "x$has_forbidden_chars" != x; then 47944 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 47945 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 47946 fi 47947 47948 47949 windows_path="$new_path" 47950 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 47951 unix_path=`$CYGPATH -u "$windows_path"` 47952 new_path="$unix_path" 47953 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 47954 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 47955 new_path="$unix_path" 47956 fi 47957 47958 if test "x$path" != "x$new_path"; then 47959 JT_HOME="$new_path" 47960 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting JT_HOME to \"$new_path\"" >&5 47961 $as_echo "$as_me: Rewriting JT_HOME to \"$new_path\"" >&6;} 47962 fi 47963 47964 # Save the first 10 bytes of this path to the storage, so fixpath can work. 47965 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 47966 47967 else 47968 # We're on a unix platform. Hooray! :) 47969 path="$JT_HOME" 47970 has_space=`$ECHO "$path" | $GREP " "` 47971 if test "x$has_space" != x; then 47972 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of JT_HOME, which resolves as \"$path\", is invalid." >&5 47973 $as_echo "$as_me: The path of JT_HOME, which resolves as \"$path\", is invalid." >&6;} 47974 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 47975 fi 47976 47977 # Use eval to expand a potential ~ 47978 eval path="$path" 47979 if test ! -f "$path" && test ! -d "$path"; then 47980 as_fn_error $? "The path of JT_HOME, which resolves as \"$path\", is not found." "$LINENO" 5 47981 fi 47982 47983 if test -d "$path"; then 47984 JT_HOME="`cd "$path"; $THEPWDCMD -L`" 47985 else 47986 dir="`$DIRNAME "$path"`" 47987 base="`$BASENAME "$path"`" 47988 JT_HOME="`cd "$dir"; $THEPWDCMD -L`/$base" 47989 fi 47990 fi 47991 fi 47992 47993 47994 # jtreg win32 script works for everybody 47995 JTREGEXE="$JT_HOME/bin/jtreg" 47996 47997 if test ! -f "$JTREGEXE"; then 47998 as_fn_error $? "JTReg executable does not exist: $JTREGEXE" "$LINENO" 5 47999 fi 48000 48001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JTREGEXE" >&5 48002 $as_echo "$JTREGEXE" >&6; } 48003 else 48004 # try to find jtreg on path 48005 48006 48007 48008 # Publish this variable in the help. 48009 48010 48011 if [ -z "${JTREGEXE+x}" ]; then 48012 # The variable is not set by user, try to locate tool using the code snippet 48013 for ac_prog in jtreg 48014 do 48015 # Extract the first word of "$ac_prog", so it can be a program name with args. 48016 set dummy $ac_prog; ac_word=$2 48017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 48018 $as_echo_n "checking for $ac_word... " >&6; } 48019 if ${ac_cv_path_JTREGEXE+:} false; then : 48020 $as_echo_n "(cached) " >&6 48021 else 48022 case $JTREGEXE in 48023 [\\/]* | ?:[\\/]*) 48024 ac_cv_path_JTREGEXE="$JTREGEXE" # Let the user override the test with a path. 48025 ;; 48026 *) 48027 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 48028 for as_dir in $PATH 48029 do 48030 IFS=$as_save_IFS 48031 test -z "$as_dir" && as_dir=. 48032 for ac_exec_ext in '' $ac_executable_extensions; do 48033 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 48034 ac_cv_path_JTREGEXE="$as_dir/$ac_word$ac_exec_ext" 48035 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 48036 break 2 48037 fi 48038 done 48039 done 48040 IFS=$as_save_IFS 48041 48042 ;; 48043 esac 48044 fi 48045 JTREGEXE=$ac_cv_path_JTREGEXE 48046 if test -n "$JTREGEXE"; then 48047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JTREGEXE" >&5 48048 $as_echo "$JTREGEXE" >&6; } 48049 else 48050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 48051 $as_echo "no" >&6; } 48052 fi 48053 48054 48055 test -n "$JTREGEXE" && break 48056 done 48057 48058 else 48059 # The variable is set, but is it from the command line or the environment? 48060 48061 # Try to remove the string !JTREGEXE! from our list. 48062 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!JTREGEXE!/} 48063 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 48064 # If it failed, the variable was not from the command line. Ignore it, 48065 # but warn the user (except for BASH, which is always set by the calling BASH). 48066 if test "xJTREGEXE" != xBASH; then 48067 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of JTREGEXE from the environment. Use command line variables instead." >&5 48068 $as_echo "$as_me: WARNING: Ignoring value of JTREGEXE from the environment. Use command line variables instead." >&2;} 48069 fi 48070 # Try to locate tool using the code snippet 48071 for ac_prog in jtreg 48072 do 48073 # Extract the first word of "$ac_prog", so it can be a program name with args. 48074 set dummy $ac_prog; ac_word=$2 48075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 48076 $as_echo_n "checking for $ac_word... " >&6; } 48077 if ${ac_cv_path_JTREGEXE+:} false; then : 48078 $as_echo_n "(cached) " >&6 48079 else 48080 case $JTREGEXE in 48081 [\\/]* | ?:[\\/]*) 48082 ac_cv_path_JTREGEXE="$JTREGEXE" # Let the user override the test with a path. 48083 ;; 48084 *) 48085 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 48086 for as_dir in $PATH 48087 do 48088 IFS=$as_save_IFS 48089 test -z "$as_dir" && as_dir=. 48090 for ac_exec_ext in '' $ac_executable_extensions; do 48091 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 48092 ac_cv_path_JTREGEXE="$as_dir/$ac_word$ac_exec_ext" 48093 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 48094 break 2 48095 fi 48096 done 48097 done 48098 IFS=$as_save_IFS 48099 48100 ;; 48101 esac 48102 fi 48103 JTREGEXE=$ac_cv_path_JTREGEXE 48104 if test -n "$JTREGEXE"; then 48105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JTREGEXE" >&5 48106 $as_echo "$JTREGEXE" >&6; } 48107 else 48108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 48109 $as_echo "no" >&6; } 48110 fi 48111 48112 48113 test -n "$JTREGEXE" && break 48114 done 48115 48116 else 48117 # If it succeeded, then it was overridden by the user. We will use it 48118 # for the tool. 48119 48120 # First remove it from the list of overridden variables, so we can test 48121 # for unknown variables in the end. 48122 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 48123 48124 # Check if we try to supply an empty value 48125 if test "x$JTREGEXE" = x; then 48126 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool JTREGEXE= (no value)" >&5 48127 $as_echo "$as_me: Setting user supplied tool JTREGEXE= (no value)" >&6;} 48128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JTREGEXE" >&5 48129 $as_echo_n "checking for JTREGEXE... " >&6; } 48130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 48131 $as_echo "disabled" >&6; } 48132 else 48133 # Check if the provided tool contains a complete path. 48134 tool_specified="$JTREGEXE" 48135 tool_basename="${tool_specified##*/}" 48136 if test "x$tool_basename" = "x$tool_specified"; then 48137 # A command without a complete path is provided, search $PATH. 48138 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool JTREGEXE=$tool_basename" >&5 48139 $as_echo "$as_me: Will search for user supplied tool JTREGEXE=$tool_basename" >&6;} 48140 # Extract the first word of "$tool_basename", so it can be a program name with args. 48141 set dummy $tool_basename; ac_word=$2 48142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 48143 $as_echo_n "checking for $ac_word... " >&6; } 48144 if ${ac_cv_path_JTREGEXE+:} false; then : 48145 $as_echo_n "(cached) " >&6 48146 else 48147 case $JTREGEXE in 48148 [\\/]* | ?:[\\/]*) 48149 ac_cv_path_JTREGEXE="$JTREGEXE" # Let the user override the test with a path. 48150 ;; 48151 *) 48152 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 48153 for as_dir in $PATH 48154 do 48155 IFS=$as_save_IFS 48156 test -z "$as_dir" && as_dir=. 48157 for ac_exec_ext in '' $ac_executable_extensions; do 48158 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 48159 ac_cv_path_JTREGEXE="$as_dir/$ac_word$ac_exec_ext" 48160 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 48161 break 2 48162 fi 48163 done 48164 done 48165 IFS=$as_save_IFS 48166 48167 ;; 48168 esac 48169 fi 48170 JTREGEXE=$ac_cv_path_JTREGEXE 48171 if test -n "$JTREGEXE"; then 48172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JTREGEXE" >&5 48173 $as_echo "$JTREGEXE" >&6; } 48174 else 48175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 48176 $as_echo "no" >&6; } 48177 fi 48178 48179 48180 if test "x$JTREGEXE" = x; then 48181 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 48182 fi 48183 else 48184 # Otherwise we believe it is a complete path. Use it as it is. 48185 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool JTREGEXE=$tool_specified" >&5 48186 $as_echo "$as_me: Will use user supplied tool JTREGEXE=$tool_specified" >&6;} 48187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JTREGEXE" >&5 48188 $as_echo_n "checking for JTREGEXE... " >&6; } 48189 if test ! -x "$tool_specified"; then 48190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 48191 $as_echo "not found" >&6; } 48192 as_fn_error $? "User supplied tool JTREGEXE=$tool_specified does not exist or is not executable" "$LINENO" 5 48193 fi 48194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 48195 $as_echo "$tool_specified" >&6; } 48196 fi 48197 fi 48198 fi 48199 48200 fi 48201 48202 48203 48204 if test "x$JTREGEXE" = x; then 48205 as_fn_error $? "Could not find required tool for JTREGEXE" "$LINENO" 5 48206 fi 48207 48208 48209 JT_HOME="`$DIRNAME $JTREGEXE`" 48210 fi 48211 fi 48212 48213 48214 48215 48216 48217 48218 # COMPILER_TARGET_BITS_FLAG : option for selecting 32- or 64-bit output 48219 # COMPILER_COMMAND_FILE_FLAG : option for passing a command file to the compiler 48220 # COMPILER_BINDCMD_FILE_FLAG : option for specifying a file which saves the binder 48221 # commands produced by the link step (currently AIX only) 48222 if test "x$TOOLCHAIN_TYPE" = xxlc; then 48223 COMPILER_TARGET_BITS_FLAG="-q" 48224 COMPILER_COMMAND_FILE_FLAG="-f" 48225 COMPILER_BINDCMD_FILE_FLAG="-bloadmap:" 48226 else 48227 COMPILER_TARGET_BITS_FLAG="-m" 48228 COMPILER_COMMAND_FILE_FLAG="@" 48229 COMPILER_BINDCMD_FILE_FLAG="" 48230 48231 # The solstudio linker does not support @-files. 48232 if test "x$TOOLCHAIN_TYPE" = xsolstudio; then 48233 COMPILER_COMMAND_FILE_FLAG= 48234 fi 48235 48236 # Check if @file is supported by gcc 48237 if test "x$TOOLCHAIN_TYPE" = xgcc; then 48238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if @file is supported by gcc" >&5 48239 $as_echo_n "checking if @file is supported by gcc... " >&6; } 48240 # Extra emtpy "" to prevent ECHO from interpreting '--version' as argument 48241 $ECHO "" "--version" > command.file 48242 if $CXX @command.file 2>&5 >&5; then 48243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 48244 $as_echo "yes" >&6; } 48245 COMPILER_COMMAND_FILE_FLAG="@" 48246 else 48247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 48248 $as_echo "no" >&6; } 48249 COMPILER_COMMAND_FILE_FLAG= 48250 fi 48251 $RM command.file 48252 fi 48253 fi 48254 48255 48256 48257 48258 # FIXME: figure out if we should select AR flags depending on OS or toolchain. 48259 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 48260 ARFLAGS="-r" 48261 elif test "x$OPENJDK_TARGET_OS" = xaix; then 48262 ARFLAGS="-X64" 48263 elif test "x$OPENJDK_TARGET_OS" = xwindows; then 48264 # lib.exe is used as AR to create static libraries. 48265 ARFLAGS="-nologo -NODEFAULTLIB:MSVCRT" 48266 else 48267 ARFLAGS="" 48268 fi 48269 48270 48271 ## Setup strip. 48272 # FIXME: should this really be per platform, or should it be per toolchain type? 48273 # strip is not provided by clang or solstudio; so guessing platform makes most sense. 48274 # FIXME: we should really only export STRIPFLAGS from here, not POST_STRIP_CMD. 48275 if test "x$OPENJDK_TARGET_OS" = xlinux; then 48276 STRIPFLAGS="-g" 48277 elif test "x$OPENJDK_TARGET_OS" = xsolaris; then 48278 STRIPFLAGS="-x" 48279 elif test "x$OPENJDK_TARGET_OS" = xmacosx; then 48280 STRIPFLAGS="-S" 48281 elif test "x$OPENJDK_TARGET_OS" = xaix; then 48282 STRIPFLAGS="-X32_64" 48283 fi 48284 48285 48286 48287 if test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 48288 CC_OUT_OPTION=-Fo 48289 EXE_OUT_OPTION=-out: 48290 LD_OUT_OPTION=-out: 48291 AR_OUT_OPTION=-out: 48292 else 48293 # The option used to specify the target .o,.a or .so file. 48294 # When compiling, how to specify the to be created object file. 48295 CC_OUT_OPTION='-o$(SPACE)' 48296 # When linking, how to specify the to be created executable. 48297 EXE_OUT_OPTION='-o$(SPACE)' 48298 # When linking, how to specify the to be created dynamically linkable library. 48299 LD_OUT_OPTION='-o$(SPACE)' 48300 # When archiving, how to specify the to be create static archive for object files. 48301 AR_OUT_OPTION='rcs$(SPACE)' 48302 fi 48303 48304 48305 48306 48307 48308 # On Windows, we need to set RC flags. 48309 if test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 48310 RC_FLAGS="-nologo -l0x409" 48311 JVM_RCFLAGS="-nologo" 48312 if test "x$DEBUG_LEVEL" = xrelease; then 48313 RC_FLAGS="$RC_FLAGS -DNDEBUG" 48314 JVM_RCFLAGS="$JVM_RCFLAGS -DNDEBUG" 48315 fi 48316 48317 # The version variables used to create RC_FLAGS may be overridden 48318 # in a custom configure script, or possibly the command line. 48319 # Let those variables be expanded at make time in spec.gmk. 48320 # The \$ are escaped to the shell, and the $(...) variables 48321 # are evaluated by make. 48322 RC_FLAGS="$RC_FLAGS \ 48323 -D\"JDK_VERSION_STRING=\$(VERSION_STRING)\" \ 48324 -D\"JDK_COMPANY=\$(COMPANY_NAME)\" \ 48325 -D\"JDK_COMPONENT=\$(PRODUCT_NAME) \$(JDK_RC_PLATFORM_NAME) binary\" \ 48326 -D\"JDK_VER=\$(VERSION_NUMBER)\" \ 48327 -D\"JDK_COPYRIGHT=Copyright \xA9 $COPYRIGHT_YEAR\" \ 48328 -D\"JDK_NAME=\$(PRODUCT_NAME) \$(JDK_RC_PLATFORM_NAME) \$(VERSION_MAJOR)\" \ 48329 -D\"JDK_FVER=\$(subst .,\$(COMMA),\$(VERSION_NUMBER_FOUR_POSITIONS))\"" 48330 48331 JVM_RCFLAGS="$JVM_RCFLAGS \ 48332 -D\"HS_BUILD_ID=\$(VERSION_STRING)\" \ 48333 -D\"HS_COMPANY=\$(COMPANY_NAME)\" \ 48334 -D\"JDK_DOTVER=\$(VERSION_NUMBER_FOUR_POSITIONS)\" \ 48335 -D\"HS_COPYRIGHT=Copyright $COPYRIGHT_YEAR\" \ 48336 -D\"HS_NAME=\$(PRODUCT_NAME) \$(VERSION_SHORT)\" \ 48337 -D\"JDK_VER=\$(subst .,\$(COMMA),\$(VERSION_NUMBER_FOUR_POSITIONS))\" \ 48338 -D\"HS_FNAME=jvm.dll\" \ 48339 -D\"HS_INTERNAL_NAME=jvm\"" 48340 fi 48341 48342 48343 48344 if test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 48345 # silence copyright notice and other headers. 48346 COMMON_CCXXFLAGS="$COMMON_CCXXFLAGS -nologo" 48347 fi 48348 48349 48350 # Now we can test some aspects on the target using configure macros. 48351 48352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 48353 $as_echo_n "checking for ANSI C header files... " >&6; } 48354 if ${ac_cv_header_stdc+:} false; then : 48355 $as_echo_n "(cached) " >&6 48356 else 48357 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 48358 /* end confdefs.h. */ 48359 #include <stdlib.h> 48360 #include <stdarg.h> 48361 #include <string.h> 48362 #include <float.h> 48363 48364 int 48365 main () 48366 { 48367 48368 ; 48369 return 0; 48370 } 48371 _ACEOF 48372 if ac_fn_cxx_try_compile "$LINENO"; then : 48373 ac_cv_header_stdc=yes 48374 else 48375 ac_cv_header_stdc=no 48376 fi 48377 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 48378 48379 if test $ac_cv_header_stdc = yes; then 48380 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 48381 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 48382 /* end confdefs.h. */ 48383 #include <string.h> 48384 48385 _ACEOF 48386 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 48387 $EGREP "memchr" >/dev/null 2>&1; then : 48388 48389 else 48390 ac_cv_header_stdc=no 48391 fi 48392 rm -f conftest* 48393 48394 fi 48395 48396 if test $ac_cv_header_stdc = yes; then 48397 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 48398 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 48399 /* end confdefs.h. */ 48400 #include <stdlib.h> 48401 48402 _ACEOF 48403 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 48404 $EGREP "free" >/dev/null 2>&1; then : 48405 48406 else 48407 ac_cv_header_stdc=no 48408 fi 48409 rm -f conftest* 48410 48411 fi 48412 48413 if test $ac_cv_header_stdc = yes; then 48414 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 48415 if test "$cross_compiling" = yes; then : 48416 : 48417 else 48418 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 48419 /* end confdefs.h. */ 48420 #include <ctype.h> 48421 #include <stdlib.h> 48422 #if ((' ' & 0x0FF) == 0x020) 48423 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 48424 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 48425 #else 48426 # define ISLOWER(c) \ 48427 (('a' <= (c) && (c) <= 'i') \ 48428 || ('j' <= (c) && (c) <= 'r') \ 48429 || ('s' <= (c) && (c) <= 'z')) 48430 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 48431 #endif 48432 48433 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 48434 int 48435 main () 48436 { 48437 int i; 48438 for (i = 0; i < 256; i++) 48439 if (XOR (islower (i), ISLOWER (i)) 48440 || toupper (i) != TOUPPER (i)) 48441 return 2; 48442 return 0; 48443 } 48444 _ACEOF 48445 if ac_fn_cxx_try_run "$LINENO"; then : 48446 48447 else 48448 ac_cv_header_stdc=no 48449 fi 48450 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 48451 conftest.$ac_objext conftest.beam conftest.$ac_ext 48452 fi 48453 48454 fi 48455 fi 48456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 48457 $as_echo "$ac_cv_header_stdc" >&6; } 48458 if test $ac_cv_header_stdc = yes; then 48459 48460 $as_echo "#define STDC_HEADERS 1" >>confdefs.h 48461 48462 fi 48463 48464 # On IRIX 5.3, sys/types and inttypes.h are conflicting. 48465 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 48466 inttypes.h stdint.h unistd.h 48467 do : 48468 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 48469 ac_fn_cxx_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 48470 " 48471 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 48472 cat >>confdefs.h <<_ACEOF 48473 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 48474 _ACEOF 48475 48476 fi 48477 48478 done 48479 48480 48481 48482 ############################################################################### 48483 # 48484 # Now we check if libjvm.so will use 32 or 64 bit pointers for the C/C++ code. 48485 # (The JVM can use 32 or 64 bit Java pointers but that decision 48486 # is made at runtime.) 48487 # 48488 48489 if test "x$OPENJDK_TARGET_OS" = xsolaris || test "x$OPENJDK_TARGET_OS" = xaix; then 48490 # Always specify -m flag on Solaris 48491 # And -q on AIX because otherwise the compiler produces 32-bit objects by default 48492 48493 # When we add flags to the "official" CFLAGS etc, we need to 48494 # keep track of these additions in ADDED_CFLAGS etc. These 48495 # will later be checked to make sure only controlled additions 48496 # have been made to CFLAGS etc. 48497 ADDED_CFLAGS=" ${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}" 48498 ADDED_CXXFLAGS=" ${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}" 48499 ADDED_LDFLAGS=" ${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}" 48500 48501 CFLAGS="${CFLAGS}${ADDED_CFLAGS}" 48502 CXXFLAGS="${CXXFLAGS}${ADDED_CXXFLAGS}" 48503 LDFLAGS="${LDFLAGS}${ADDED_LDFLAGS}" 48504 48505 CFLAGS_JDK="${CFLAGS_JDK}${ADDED_CFLAGS}" 48506 CXXFLAGS_JDK="${CXXFLAGS_JDK}${ADDED_CXXFLAGS}" 48507 LDFLAGS_JDK="${LDFLAGS_JDK}${ADDED_LDFLAGS}" 48508 48509 JVM_CFLAGS="$JVM_CFLAGS $ADDED_CFLAGS" 48510 JVM_LDFLAGS="$JVM_LDFLAGS $ADDED_LDFLAGS" 48511 JVM_ASFLAGS="$JVM_ASFLAGS $ADDED_CFLAGS" 48512 48513 elif test "x$COMPILE_TYPE" = xreduced; then 48514 if test "x$OPENJDK_TARGET_OS_TYPE" = xunix; then 48515 # Specify -m if running reduced on unix platforms 48516 48517 # When we add flags to the "official" CFLAGS etc, we need to 48518 # keep track of these additions in ADDED_CFLAGS etc. These 48519 # will later be checked to make sure only controlled additions 48520 # have been made to CFLAGS etc. 48521 ADDED_CFLAGS=" ${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}" 48522 ADDED_CXXFLAGS=" ${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}" 48523 ADDED_LDFLAGS=" ${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}" 48524 48525 CFLAGS="${CFLAGS}${ADDED_CFLAGS}" 48526 CXXFLAGS="${CXXFLAGS}${ADDED_CXXFLAGS}" 48527 LDFLAGS="${LDFLAGS}${ADDED_LDFLAGS}" 48528 48529 CFLAGS_JDK="${CFLAGS_JDK}${ADDED_CFLAGS}" 48530 CXXFLAGS_JDK="${CXXFLAGS_JDK}${ADDED_CXXFLAGS}" 48531 LDFLAGS_JDK="${LDFLAGS_JDK}${ADDED_LDFLAGS}" 48532 48533 JVM_CFLAGS="$JVM_CFLAGS $ADDED_CFLAGS" 48534 JVM_LDFLAGS="$JVM_LDFLAGS $ADDED_LDFLAGS" 48535 JVM_ASFLAGS="$JVM_ASFLAGS $ADDED_CFLAGS" 48536 48537 fi 48538 fi 48539 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 48540 JVM_CFLAGS="$JVM_CFLAGS ${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}" 48541 JVM_LDFLAGS="$JVM_LDFLAGS ${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}" 48542 JVM_ASFLAGS="$JVM_ASFLAGS ${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}" 48543 fi 48544 48545 # Make compilation sanity check 48546 for ac_header in stdio.h 48547 do : 48548 ac_fn_cxx_check_header_mongrel "$LINENO" "stdio.h" "ac_cv_header_stdio_h" "$ac_includes_default" 48549 if test "x$ac_cv_header_stdio_h" = xyes; then : 48550 cat >>confdefs.h <<_ACEOF 48551 #define HAVE_STDIO_H 1 48552 _ACEOF 48553 48554 else 48555 48556 { $as_echo "$as_me:${as_lineno-$LINENO}: Failed to compile stdio.h. This likely implies missing compile dependencies." >&5 48557 $as_echo "$as_me: Failed to compile stdio.h. This likely implies missing compile dependencies." >&6;} 48558 if test "x$COMPILE_TYPE" = xreduced; then 48559 48560 # Print a helpful message on how to acquire the necessary build dependency. 48561 # reduced is the help tag: freetype, cups, alsa etc 48562 MISSING_DEPENDENCY=reduced 48563 48564 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 48565 cygwin_help $MISSING_DEPENDENCY 48566 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 48567 msys_help $MISSING_DEPENDENCY 48568 else 48569 PKGHANDLER_COMMAND= 48570 48571 case $PKGHANDLER in 48572 apt-get) 48573 apt_help $MISSING_DEPENDENCY ;; 48574 yum) 48575 yum_help $MISSING_DEPENDENCY ;; 48576 port) 48577 port_help $MISSING_DEPENDENCY ;; 48578 pkgutil) 48579 pkgutil_help $MISSING_DEPENDENCY ;; 48580 pkgadd) 48581 pkgadd_help $MISSING_DEPENDENCY ;; 48582 esac 48583 48584 if test "x$PKGHANDLER_COMMAND" != x; then 48585 HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'." 48586 fi 48587 fi 48588 48589 { $as_echo "$as_me:${as_lineno-$LINENO}: You are doing a reduced build. Check that you have 32-bit libraries installed. $HELP_MSG" >&5 48590 $as_echo "$as_me: You are doing a reduced build. Check that you have 32-bit libraries installed. $HELP_MSG" >&6;} 48591 elif test "x$COMPILE_TYPE" = xcross; then 48592 { $as_echo "$as_me:${as_lineno-$LINENO}: You are doing a cross-compilation. Check that you have all target platform libraries installed." >&5 48593 $as_echo "$as_me: You are doing a cross-compilation. Check that you have all target platform libraries installed." >&6;} 48594 fi 48595 as_fn_error $? "Cannot continue." "$LINENO" 5 48596 48597 fi 48598 48599 done 48600 48601 48602 # The cast to long int works around a bug in the HP C Compiler 48603 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 48604 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 48605 # This bug is HP SR number 8606223364. 48606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int *" >&5 48607 $as_echo_n "checking size of int *... " >&6; } 48608 if ${ac_cv_sizeof_int_p+:} false; then : 48609 $as_echo_n "(cached) " >&6 48610 else 48611 if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (int *))" "ac_cv_sizeof_int_p" "$ac_includes_default"; then : 48612 48613 else 48614 if test "$ac_cv_type_int_p" = yes; then 48615 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 48616 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 48617 as_fn_error 77 "cannot compute sizeof (int *) 48618 See \`config.log' for more details" "$LINENO" 5; } 48619 else 48620 ac_cv_sizeof_int_p=0 48621 fi 48622 fi 48623 48624 fi 48625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int_p" >&5 48626 $as_echo "$ac_cv_sizeof_int_p" >&6; } 48627 48628 48629 48630 cat >>confdefs.h <<_ACEOF 48631 #define SIZEOF_INT_P $ac_cv_sizeof_int_p 48632 _ACEOF 48633 48634 48635 48636 # AC_CHECK_SIZEOF defines 'ac_cv_sizeof_int_p' to hold the number of bytes used by an 'int*' 48637 if test "x$ac_cv_sizeof_int_p" = x; then 48638 # The test failed, lets stick to the assumed value. 48639 { $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 48640 $as_echo "$as_me: WARNING: The number of bits in the target could not be determined, using $OPENJDK_TARGET_CPU_BITS." >&2;} 48641 else 48642 TESTED_TARGET_CPU_BITS=`expr 8 \* $ac_cv_sizeof_int_p` 48643 48644 if test "x$TESTED_TARGET_CPU_BITS" != "x$OPENJDK_TARGET_CPU_BITS"; then 48645 # This situation may happen on 64-bit platforms where the compiler by default only generates 32-bit objects 48646 # Let's try to implicitely set the compilers target architecture and retry the test 48647 { $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 48648 $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;} 48649 { $as_echo "$as_me:${as_lineno-$LINENO}: Retrying with platforms compiler target bits flag to ${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}" >&5 48650 $as_echo "$as_me: Retrying with platforms compiler target bits flag to ${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}" >&6;} 48651 48652 # When we add flags to the "official" CFLAGS etc, we need to 48653 # keep track of these additions in ADDED_CFLAGS etc. These 48654 # will later be checked to make sure only controlled additions 48655 # have been made to CFLAGS etc. 48656 ADDED_CFLAGS=" ${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}" 48657 ADDED_CXXFLAGS=" ${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}" 48658 ADDED_LDFLAGS=" ${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}" 48659 48660 CFLAGS="${CFLAGS}${ADDED_CFLAGS}" 48661 CXXFLAGS="${CXXFLAGS}${ADDED_CXXFLAGS}" 48662 LDFLAGS="${LDFLAGS}${ADDED_LDFLAGS}" 48663 48664 CFLAGS_JDK="${CFLAGS_JDK}${ADDED_CFLAGS}" 48665 CXXFLAGS_JDK="${CXXFLAGS_JDK}${ADDED_CXXFLAGS}" 48666 LDFLAGS_JDK="${LDFLAGS_JDK}${ADDED_LDFLAGS}" 48667 48668 JVM_CFLAGS="$JVM_CFLAGS $ADDED_CFLAGS" 48669 JVM_LDFLAGS="$JVM_LDFLAGS $ADDED_LDFLAGS" 48670 JVM_ASFLAGS="$JVM_ASFLAGS $ADDED_CFLAGS" 48671 48672 48673 # We have to unset 'ac_cv_sizeof_int_p' first, otherwise AC_CHECK_SIZEOF will use the previously cached value! 48674 unset ac_cv_sizeof_int_p 48675 # And we have to undef the definition of SIZEOF_INT_P in confdefs.h by the previous invocation of AC_CHECK_SIZEOF 48676 cat >>confdefs.h <<_ACEOF 48677 #undef SIZEOF_INT_P 48678 _ACEOF 48679 48680 # The cast to long int works around a bug in the HP C Compiler 48681 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 48682 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 48683 # This bug is HP SR number 8606223364. 48684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int *" >&5 48685 $as_echo_n "checking size of int *... " >&6; } 48686 if ${ac_cv_sizeof_int_p+:} false; then : 48687 $as_echo_n "(cached) " >&6 48688 else 48689 if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (int *))" "ac_cv_sizeof_int_p" "$ac_includes_default"; then : 48690 48691 else 48692 if test "$ac_cv_type_int_p" = yes; then 48693 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 48694 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 48695 as_fn_error 77 "cannot compute sizeof (int *) 48696 See \`config.log' for more details" "$LINENO" 5; } 48697 else 48698 ac_cv_sizeof_int_p=0 48699 fi 48700 fi 48701 48702 fi 48703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int_p" >&5 48704 $as_echo "$ac_cv_sizeof_int_p" >&6; } 48705 48706 48707 48708 cat >>confdefs.h <<_ACEOF 48709 #define SIZEOF_INT_P $ac_cv_sizeof_int_p 48710 _ACEOF 48711 48712 48713 48714 TESTED_TARGET_CPU_BITS=`expr 8 \* $ac_cv_sizeof_int_p` 48715 48716 if test "x$TESTED_TARGET_CPU_BITS" != "x$OPENJDK_TARGET_CPU_BITS"; then 48717 { $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 48718 $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;} 48719 if test "x$COMPILE_TYPE" = xreduced; then 48720 48721 # Print a helpful message on how to acquire the necessary build dependency. 48722 # reduced is the help tag: freetype, cups, alsa etc 48723 MISSING_DEPENDENCY=reduced 48724 48725 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 48726 cygwin_help $MISSING_DEPENDENCY 48727 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 48728 msys_help $MISSING_DEPENDENCY 48729 else 48730 PKGHANDLER_COMMAND= 48731 48732 case $PKGHANDLER in 48733 apt-get) 48734 apt_help $MISSING_DEPENDENCY ;; 48735 yum) 48736 yum_help $MISSING_DEPENDENCY ;; 48737 port) 48738 port_help $MISSING_DEPENDENCY ;; 48739 pkgutil) 48740 pkgutil_help $MISSING_DEPENDENCY ;; 48741 pkgadd) 48742 pkgadd_help $MISSING_DEPENDENCY ;; 48743 esac 48744 48745 if test "x$PKGHANDLER_COMMAND" != x; then 48746 HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'." 48747 fi 48748 fi 48749 48750 { $as_echo "$as_me:${as_lineno-$LINENO}: You are doing a reduced build. Check that you have 32-bit libraries installed. $HELP_MSG" >&5 48751 $as_echo "$as_me: You are doing a reduced build. Check that you have 32-bit libraries installed. $HELP_MSG" >&6;} 48752 elif test "x$COMPILE_TYPE" = xcross; then 48753 { $as_echo "$as_me:${as_lineno-$LINENO}: You are doing a cross-compilation. Check that you have all target platform libraries installed." >&5 48754 $as_echo "$as_me: You are doing a cross-compilation. Check that you have all target platform libraries installed." >&6;} 48755 fi 48756 as_fn_error $? "Cannot continue." "$LINENO" 5 48757 fi 48758 fi 48759 fi 48760 48761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for target address size" >&5 48762 $as_echo_n "checking for target address size... " >&6; } 48763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OPENJDK_TARGET_CPU_BITS bits" >&5 48764 $as_echo "$OPENJDK_TARGET_CPU_BITS bits" >&6; } 48765 48766 48767 ############################################################################### 48768 # 48769 # Is the target little of big endian? 48770 # 48771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5 48772 $as_echo_n "checking whether byte ordering is bigendian... " >&6; } 48773 if ${ac_cv_c_bigendian+:} false; then : 48774 $as_echo_n "(cached) " >&6 48775 else 48776 ac_cv_c_bigendian=unknown 48777 # See if we're dealing with a universal compiler. 48778 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 48779 /* end confdefs.h. */ 48780 #ifndef __APPLE_CC__ 48781 not a universal capable compiler 48782 #endif 48783 typedef int dummy; 48784 48785 _ACEOF 48786 if ac_fn_cxx_try_compile "$LINENO"; then : 48787 48788 # Check for potential -arch flags. It is not universal unless 48789 # there are at least two -arch flags with different values. 48790 ac_arch= 48791 ac_prev= 48792 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do 48793 if test -n "$ac_prev"; then 48794 case $ac_word in 48795 i?86 | x86_64 | ppc | ppc64) 48796 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then 48797 ac_arch=$ac_word 48798 else 48799 ac_cv_c_bigendian=universal 48800 break 48801 fi 48802 ;; 48803 esac 48804 ac_prev= 48805 elif test "x$ac_word" = "x-arch"; then 48806 ac_prev=arch 48807 fi 48808 done 48809 fi 48810 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 48811 if test $ac_cv_c_bigendian = unknown; then 48812 # See if sys/param.h defines the BYTE_ORDER macro. 48813 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 48814 /* end confdefs.h. */ 48815 #include <sys/types.h> 48816 #include <sys/param.h> 48817 48818 int 48819 main () 48820 { 48821 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \ 48822 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \ 48823 && LITTLE_ENDIAN) 48824 bogus endian macros 48825 #endif 48826 48827 ; 48828 return 0; 48829 } 48830 _ACEOF 48831 if ac_fn_cxx_try_compile "$LINENO"; then : 48832 # It does; now see whether it defined to BIG_ENDIAN or not. 48833 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 48834 /* end confdefs.h. */ 48835 #include <sys/types.h> 48836 #include <sys/param.h> 48837 48838 int 48839 main () 48840 { 48841 #if BYTE_ORDER != BIG_ENDIAN 48842 not big endian 48843 #endif 48844 48845 ; 48846 return 0; 48847 } 48848 _ACEOF 48849 if ac_fn_cxx_try_compile "$LINENO"; then : 48850 ac_cv_c_bigendian=yes 48851 else 48852 ac_cv_c_bigendian=no 48853 fi 48854 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 48855 fi 48856 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 48857 fi 48858 if test $ac_cv_c_bigendian = unknown; then 48859 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris). 48860 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 48861 /* end confdefs.h. */ 48862 #include <limits.h> 48863 48864 int 48865 main () 48866 { 48867 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN) 48868 bogus endian macros 48869 #endif 48870 48871 ; 48872 return 0; 48873 } 48874 _ACEOF 48875 if ac_fn_cxx_try_compile "$LINENO"; then : 48876 # It does; now see whether it defined to _BIG_ENDIAN or not. 48877 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 48878 /* end confdefs.h. */ 48879 #include <limits.h> 48880 48881 int 48882 main () 48883 { 48884 #ifndef _BIG_ENDIAN 48885 not big endian 48886 #endif 48887 48888 ; 48889 return 0; 48890 } 48891 _ACEOF 48892 if ac_fn_cxx_try_compile "$LINENO"; then : 48893 ac_cv_c_bigendian=yes 48894 else 48895 ac_cv_c_bigendian=no 48896 fi 48897 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 48898 fi 48899 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 48900 fi 48901 if test $ac_cv_c_bigendian = unknown; then 48902 # Compile a test program. 48903 if test "$cross_compiling" = yes; then : 48904 # Try to guess by grepping values from an object file. 48905 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 48906 /* end confdefs.h. */ 48907 short int ascii_mm[] = 48908 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; 48909 short int ascii_ii[] = 48910 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; 48911 int use_ascii (int i) { 48912 return ascii_mm[i] + ascii_ii[i]; 48913 } 48914 short int ebcdic_ii[] = 48915 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; 48916 short int ebcdic_mm[] = 48917 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; 48918 int use_ebcdic (int i) { 48919 return ebcdic_mm[i] + ebcdic_ii[i]; 48920 } 48921 extern int foo; 48922 48923 int 48924 main () 48925 { 48926 return use_ascii (foo) == use_ebcdic (foo); 48927 ; 48928 return 0; 48929 } 48930 _ACEOF 48931 if ac_fn_cxx_try_compile "$LINENO"; then : 48932 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then 48933 ac_cv_c_bigendian=yes 48934 fi 48935 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then 48936 if test "$ac_cv_c_bigendian" = unknown; then 48937 ac_cv_c_bigendian=no 48938 else 48939 # finding both strings is unlikely to happen, but who knows? 48940 ac_cv_c_bigendian=unknown 48941 fi 48942 fi 48943 fi 48944 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 48945 else 48946 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 48947 /* end confdefs.h. */ 48948 $ac_includes_default 48949 int 48950 main () 48951 { 48952 48953 /* Are we little or big endian? From Harbison&Steele. */ 48954 union 48955 { 48956 long int l; 48957 char c[sizeof (long int)]; 48958 } u; 48959 u.l = 1; 48960 return u.c[sizeof (long int) - 1] == 1; 48961 48962 ; 48963 return 0; 48964 } 48965 _ACEOF 48966 if ac_fn_cxx_try_run "$LINENO"; then : 48967 ac_cv_c_bigendian=no 48968 else 48969 ac_cv_c_bigendian=yes 48970 fi 48971 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 48972 conftest.$ac_objext conftest.beam conftest.$ac_ext 48973 fi 48974 48975 fi 48976 fi 48977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5 48978 $as_echo "$ac_cv_c_bigendian" >&6; } 48979 case $ac_cv_c_bigendian in #( 48980 yes) 48981 ENDIAN="big";; #( 48982 no) 48983 ENDIAN="little" ;; #( 48984 universal) 48985 ENDIAN="universal_endianness" 48986 ;; #( 48987 *) 48988 ENDIAN="unknown" ;; 48989 esac 48990 48991 48992 if test "x$ENDIAN" = xuniversal_endianness; then 48993 as_fn_error $? "Building with both big and little endianness is not supported" "$LINENO" 5 48994 fi 48995 if test "x$ENDIAN" != "x$OPENJDK_TARGET_CPU_ENDIAN"; then 48996 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 48997 fi 48998 48999 49000 # Configure flags for the tools 49001 49002 ############################################################################### 49003 # 49004 # How to compile shared libraries. 49005 # 49006 49007 if test "x$TOOLCHAIN_TYPE" = xgcc; then 49008 PICFLAG="-fPIC" 49009 C_FLAG_REORDER='' 49010 CXX_FLAG_REORDER='' 49011 49012 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 49013 # Linking is different on MacOSX 49014 if test "x$STATIC_BUILD" = xtrue; then 49015 SHARED_LIBRARY_FLAGS ='-undefined dynamic_lookup' 49016 else 49017 SHARED_LIBRARY_FLAGS="-dynamiclib -compatibility_version 1.0.0 -current_version 1.0.0 $PICFLAG" 49018 JVM_CFLAGS="$JVM_CFLAGS $PICFLAG" 49019 fi 49020 SET_EXECUTABLE_ORIGIN='-Wl,-rpath,@loader_path/.' 49021 SET_SHARED_LIBRARY_ORIGIN="$SET_EXECUTABLE_ORIGIN" 49022 SET_SHARED_LIBRARY_NAME='-Wl,-install_name,@rpath/$1' 49023 SET_SHARED_LIBRARY_MAPFILE='-Wl,-exported_symbols_list,$1' 49024 else 49025 # Default works for linux, might work on other platforms as well. 49026 SHARED_LIBRARY_FLAGS='-shared' 49027 SET_EXECUTABLE_ORIGIN='-Wl,-rpath,\$$ORIGIN$1' 49028 SET_SHARED_LIBRARY_ORIGIN="-Wl,-z,origin $SET_EXECUTABLE_ORIGIN" 49029 SET_SHARED_LIBRARY_NAME='-Wl,-soname=$1' 49030 SET_SHARED_LIBRARY_MAPFILE='-Wl,-version-script=$1' 49031 fi 49032 elif test "x$TOOLCHAIN_TYPE" = xclang; then 49033 C_FLAG_REORDER='' 49034 CXX_FLAG_REORDER='' 49035 49036 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 49037 # Linking is different on MacOSX 49038 PICFLAG='' 49039 SHARED_LIBRARY_FLAGS="-dynamiclib -compatibility_version 1.0.0 -current_version 1.0.0 $PICFLAG" 49040 SET_EXECUTABLE_ORIGIN='-Wl,-rpath,@loader_path/.' 49041 SET_SHARED_LIBRARY_ORIGIN="$SET_EXECUTABLE_ORIGIN" 49042 SET_SHARED_LIBRARY_NAME='-Wl,-install_name,@rpath/$1' 49043 SET_SHARED_LIBRARY_MAPFILE='-Wl,-exported_symbols_list,$1' 49044 49045 if test "x$STATIC_BUILD" = xfalse; then 49046 JVM_CFLAGS="$JVM_CFLAGS -fPIC" 49047 fi 49048 else 49049 # Default works for linux, might work on other platforms as well. 49050 PICFLAG='-fPIC' 49051 SHARED_LIBRARY_FLAGS='-shared' 49052 SET_EXECUTABLE_ORIGIN='-Wl,-rpath,\$$ORIGIN$1' 49053 SET_SHARED_LIBRARY_ORIGIN="-Wl,-z,origin $SET_EXECUTABLE_ORIGIN" 49054 SET_SHARED_LIBRARY_NAME='-Wl,-soname=$1' 49055 SET_SHARED_LIBRARY_MAPFILE='-Wl,-version-script=$1' 49056 fi 49057 elif test "x$TOOLCHAIN_TYPE" = xsolstudio; then 49058 if test "x$OPENJDK_TARGET_CPU" = xsparcv9; then 49059 PICFLAG="-xcode=pic32" 49060 else 49061 PICFLAG="-KPIC" 49062 fi 49063 C_FLAG_REORDER='-xF' 49064 CXX_FLAG_REORDER='-xF' 49065 SHARED_LIBRARY_FLAGS="-G" 49066 SET_EXECUTABLE_ORIGIN='-R\$$ORIGIN$1' 49067 SET_SHARED_LIBRARY_ORIGIN="$SET_EXECUTABLE_ORIGIN" 49068 SET_SHARED_LIBRARY_NAME='-h $1' 49069 SET_SHARED_LIBRARY_MAPFILE='-M$1' 49070 elif test "x$TOOLCHAIN_TYPE" = xxlc; then 49071 # '-qpic' defaults to 'qpic=small'. This means that the compiler generates only 49072 # one instruction for accessing the TOC. If the TOC grows larger than 64K, the linker 49073 # will have to patch this single instruction with a call to some out-of-order code which 49074 # does the load from the TOC. This is of course slow. But in that case we also would have 49075 # to use '-bbigtoc' for linking anyway so we could also change the PICFLAG to 'qpic=large'. 49076 # With 'qpic=large' the compiler will by default generate a two-instruction sequence which 49077 # can be patched directly by the linker and does not require a jump to out-of-order code. 49078 # Another alternative instead of using 'qpic=large -bbigtoc' may be to use '-qminimaltoc' 49079 # instead. This creates a distinct TOC for every compilation unit (and thus requires two 49080 # loads for accessing a global variable). But there are rumors that this may be seen as a 49081 # 'performance feature' because of improved code locality of the symbols used in a 49082 # compilation unit. 49083 PICFLAG="-qpic" 49084 JVM_CFLAGS="$JVM_CFLAGS $PICFLAG" 49085 C_FLAG_REORDER='' 49086 CXX_FLAG_REORDER='' 49087 SHARED_LIBRARY_FLAGS="-qmkshrobj -bM:SRE -bnoentry" 49088 SET_EXECUTABLE_ORIGIN="" 49089 SET_SHARED_LIBRARY_ORIGIN='' 49090 SET_SHARED_LIBRARY_NAME='' 49091 SET_SHARED_LIBRARY_MAPFILE='' 49092 elif test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 49093 PICFLAG="" 49094 C_FLAG_REORDER='' 49095 CXX_FLAG_REORDER='' 49096 SHARED_LIBRARY_FLAGS="-dll" 49097 SET_EXECUTABLE_ORIGIN='' 49098 SET_SHARED_LIBRARY_ORIGIN='' 49099 SET_SHARED_LIBRARY_NAME='' 49100 SET_SHARED_LIBRARY_MAPFILE='-def:$1' 49101 fi 49102 49103 49104 49105 49106 49107 49108 49109 49110 49111 # The (cross) compiler is now configured, we can now test capabilities 49112 # of the target platform. 49113 49114 49115 49116 ############################################################################### 49117 # 49118 # Setup the opt flags for different compilers 49119 # and different operating systems. 49120 # 49121 49122 # FIXME: this was indirectly the old default, but just inherited. 49123 # if test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 49124 # C_FLAG_DEPS="-MMD -MF" 49125 # fi 49126 49127 # Generate make dependency files 49128 if test "x$TOOLCHAIN_TYPE" = xgcc; then 49129 C_FLAG_DEPS="-MMD -MF" 49130 elif test "x$TOOLCHAIN_TYPE" = xclang; then 49131 C_FLAG_DEPS="-MMD -MF" 49132 elif test "x$TOOLCHAIN_TYPE" = xsolstudio; then 49133 C_FLAG_DEPS="-xMMD -xMF" 49134 elif test "x$TOOLCHAIN_TYPE" = xxlc; then 49135 C_FLAG_DEPS="-qmakedep=gcc -MF" 49136 fi 49137 CXX_FLAG_DEPS="$C_FLAG_DEPS" 49138 49139 49140 49141 # Debug symbols 49142 if test "x$TOOLCHAIN_TYPE" = xgcc; then 49143 if test "x$OPENJDK_TARGET_CPU_BITS" = "x64" && test "x$DEBUG_LEVEL" = "xfastdebug"; then 49144 # reduce from default "-g2" option to save space 49145 CFLAGS_DEBUG_SYMBOLS="-g1" 49146 CXXFLAGS_DEBUG_SYMBOLS="-g1" 49147 else 49148 CFLAGS_DEBUG_SYMBOLS="-g" 49149 CXXFLAGS_DEBUG_SYMBOLS="-g" 49150 fi 49151 elif test "x$TOOLCHAIN_TYPE" = xclang; then 49152 CFLAGS_DEBUG_SYMBOLS="-g" 49153 CXXFLAGS_DEBUG_SYMBOLS="-g" 49154 elif test "x$TOOLCHAIN_TYPE" = xsolstudio; then 49155 CFLAGS_DEBUG_SYMBOLS="-g -xs" 49156 # -g0 enables debug symbols without disabling inlining. 49157 CXXFLAGS_DEBUG_SYMBOLS="-g0 -xs" 49158 elif test "x$TOOLCHAIN_TYPE" = xxlc; then 49159 CFLAGS_DEBUG_SYMBOLS="-g" 49160 CXXFLAGS_DEBUG_SYMBOLS="-g" 49161 elif test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 49162 CFLAGS_DEBUG_SYMBOLS="-Zi" 49163 CXXFLAGS_DEBUG_SYMBOLS="-Zi" 49164 fi 49165 49166 49167 49168 # Debug symbols for JVM_CFLAGS 49169 if test "x$TOOLCHAIN_TYPE" = xsolstudio; then 49170 JVM_CFLAGS_SYMBOLS="$JVM_CFLAGS_SYMBOLS -xs" 49171 if test "x$DEBUG_LEVEL" = xslowdebug; then 49172 JVM_CFLAGS_SYMBOLS="$JVM_CFLAGS_SYMBOLS -g" 49173 else 49174 # -g0 does not disable inlining, which -g does. 49175 JVM_CFLAGS_SYMBOLS="$JVM_CFLAGS_SYMBOLS -g0" 49176 fi 49177 elif test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 49178 JVM_CFLAGS_SYMBOLS="$JVM_CFLAGS_SYMBOLS -Z7 -d2Zi+" 49179 else 49180 JVM_CFLAGS_SYMBOLS="$JVM_CFLAGS_SYMBOLS -g" 49181 fi 49182 49183 49184 # bounds, memory and behavior checking options 49185 if test "x$TOOLCHAIN_TYPE" = xgcc; then 49186 case $DEBUG_LEVEL in 49187 release ) 49188 # no adjustment 49189 ;; 49190 fastdebug ) 49191 # no adjustment 49192 ;; 49193 slowdebug ) 49194 # FIXME: By adding this to C(XX)FLAGS_DEBUG_OPTIONS/JVM_CFLAGS_SYMBOLS it 49195 # get's added conditionally on whether we produce debug symbols or not. 49196 # This is most likely not really correct. 49197 49198 # Add runtime stack smashing and undefined behavior checks. 49199 # Not all versions of gcc support -fstack-protector 49200 STACK_PROTECTOR_CFLAG="-fstack-protector-all" 49201 49202 49203 49204 49205 49206 49207 49208 49209 49210 49211 49212 49213 49214 49215 49216 49217 49218 49219 49220 49221 49222 49223 49224 49225 49226 49227 49228 49229 49230 49231 49232 49233 49234 49235 49236 49237 49238 49239 49240 49241 49242 49243 # Execute function body 49244 49245 49246 49247 49248 49249 49250 49251 49252 49253 49254 49255 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 # Execute function body 49293 49294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the C compiler supports \"$STACK_PROTECTOR_CFLAG -Werror\"" >&5 49295 $as_echo_n "checking if the C compiler supports \"$STACK_PROTECTOR_CFLAG -Werror\"... " >&6; } 49296 supports=yes 49297 49298 saved_cflags="$CFLAGS" 49299 CFLAGS="$CFLAGS $STACK_PROTECTOR_CFLAG -Werror" 49300 ac_ext=c 49301 ac_cpp='$CPP $CPPFLAGS' 49302 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 49303 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 49304 ac_compiler_gnu=$ac_cv_c_compiler_gnu 49305 49306 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 49307 /* end confdefs.h. */ 49308 int i; 49309 _ACEOF 49310 if ac_fn_c_try_compile "$LINENO"; then : 49311 49312 else 49313 supports=no 49314 fi 49315 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 49316 ac_ext=cpp 49317 ac_cpp='$CXXCPP $CPPFLAGS' 49318 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 49319 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 49320 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 49321 49322 CFLAGS="$saved_cflags" 49323 49324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supports" >&5 49325 $as_echo "$supports" >&6; } 49326 if test "x$supports" = "xyes" ; then 49327 : 49328 C_COMP_SUPPORTS="yes" 49329 else 49330 : 49331 C_COMP_SUPPORTS="no" 49332 fi 49333 49334 49335 49336 49337 49338 49339 49340 49341 49342 49343 49344 49345 49346 49347 49348 49349 49350 49351 49352 49353 49354 49355 49356 49357 49358 49359 49360 49361 49362 49363 49364 49365 49366 49367 49368 49369 49370 49371 49372 49373 49374 49375 49376 49377 49378 49379 49380 49381 49382 49383 49384 49385 49386 49387 49388 49389 49390 49391 49392 # Execute function body 49393 49394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the C++ compiler supports \"$STACK_PROTECTOR_CFLAG -Werror\"" >&5 49395 $as_echo_n "checking if the C++ compiler supports \"$STACK_PROTECTOR_CFLAG -Werror\"... " >&6; } 49396 supports=yes 49397 49398 saved_cxxflags="$CXXFLAGS" 49399 CXXFLAGS="$CXXFLAG $STACK_PROTECTOR_CFLAG -Werror" 49400 ac_ext=cpp 49401 ac_cpp='$CXXCPP $CPPFLAGS' 49402 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 49403 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 49404 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 49405 49406 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 49407 /* end confdefs.h. */ 49408 int i; 49409 _ACEOF 49410 if ac_fn_cxx_try_compile "$LINENO"; then : 49411 49412 else 49413 supports=no 49414 fi 49415 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 49416 ac_ext=cpp 49417 ac_cpp='$CXXCPP $CPPFLAGS' 49418 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 49419 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 49420 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 49421 49422 CXXFLAGS="$saved_cxxflags" 49423 49424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supports" >&5 49425 $as_echo "$supports" >&6; } 49426 if test "x$supports" = "xyes" ; then 49427 : 49428 CXX_COMP_SUPPORTS="yes" 49429 else 49430 : 49431 CXX_COMP_SUPPORTS="no" 49432 fi 49433 49434 49435 49436 49437 49438 49439 49440 49441 49442 49443 49444 49445 49446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if both compilers support \"$STACK_PROTECTOR_CFLAG -Werror\"" >&5 49447 $as_echo_n "checking if both compilers support \"$STACK_PROTECTOR_CFLAG -Werror\"... " >&6; } 49448 supports=no 49449 if test "x$C_COMP_SUPPORTS" = "xyes" -a "x$CXX_COMP_SUPPORTS" = "xyes"; then supports=yes; fi 49450 49451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supports" >&5 49452 $as_echo "$supports" >&6; } 49453 if test "x$supports" = "xyes" ; then 49454 : 49455 49456 else 49457 : 49458 STACK_PROTECTOR_CFLAG="" 49459 fi 49460 49461 49462 49463 49464 49465 49466 49467 CFLAGS_DEBUG_OPTIONS="$STACK_PROTECTOR_CFLAG --param ssp-buffer-size=1" 49468 CXXFLAGS_DEBUG_OPTIONS="$STACK_PROTECTOR_CFLAG --param ssp-buffer-size=1" 49469 if test "x$STACK_PROTECTOR_CFLAG" != x; then 49470 JVM_CFLAGS_SYMBOLS="$JVM_CFLAGS_SYMBOLS $STACK_PROTECTOR_CFLAG --param ssp-buffer-size=1" 49471 fi 49472 ;; 49473 esac 49474 fi 49475 49476 if test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 49477 if test "x$DEBUG_LEVEL" != xrelease; then 49478 if test "x$OPENJDK_TARGET_CPU" = xx86_64; then 49479 JVM_CFLAGS="$JVM_CFLAGS -homeparams" 49480 fi 49481 fi 49482 fi 49483 49484 # Optimization levels 49485 if test "x$TOOLCHAIN_TYPE" = xsolstudio; then 49486 CC_HIGHEST="$CC_HIGHEST -fns -fsimple -fsingle -xbuiltin=%all -xdepend -xrestrict -xlibmil" 49487 49488 if test "x$OPENJDK_TARGET_CPU_ARCH" = "xx86"; then 49489 # FIXME: seems we always set -xregs=no%frameptr; put it elsewhere more global? 49490 C_O_FLAG_HIGHEST_JVM="-xO4" 49491 C_O_FLAG_HIGHEST="-xO4 -Wu,-O4~yz $CC_HIGHEST -xalias_level=basic -xregs=no%frameptr" 49492 C_O_FLAG_HI="-xO4 -Wu,-O4~yz -xregs=no%frameptr" 49493 C_O_FLAG_NORM="-xO2 -Wu,-O2~yz -xregs=no%frameptr" 49494 C_O_FLAG_DEBUG="-xregs=no%frameptr" 49495 C_O_FLAG_DEBUG_JVM="" 49496 C_O_FLAG_NONE="-xregs=no%frameptr" 49497 CXX_O_FLAG_HIGHEST_JVM="-xO4" 49498 CXX_O_FLAG_HIGHEST="-xO4 -Qoption ube -O4~yz $CC_HIGHEST -xregs=no%frameptr" 49499 CXX_O_FLAG_HI="-xO4 -Qoption ube -O4~yz -xregs=no%frameptr" 49500 CXX_O_FLAG_NORM="-xO2 -Qoption ube -O2~yz -xregs=no%frameptr" 49501 CXX_O_FLAG_DEBUG="-xregs=no%frameptr" 49502 CXX_O_FLAG_DEBUG_JVM="" 49503 CXX_O_FLAG_NONE="-xregs=no%frameptr" 49504 if test "x$OPENJDK_TARGET_CPU_BITS" = "x32"; then 49505 C_O_FLAG_HIGHEST="$C_O_FLAG_HIGHEST -xchip=pentium" 49506 CXX_O_FLAG_HIGHEST="$CXX_O_FLAG_HIGHEST -xchip=pentium" 49507 fi 49508 elif test "x$OPENJDK_TARGET_CPU_ARCH" = "xsparc"; then 49509 C_O_FLAG_HIGHEST_JVM="-xO4" 49510 C_O_FLAG_HIGHEST="-xO4 -Wc,-Qrm-s -Wc,-Qiselect-T0 $CC_HIGHEST -xalias_level=basic -xprefetch=auto,explicit -xchip=ultra" 49511 C_O_FLAG_HI="-xO4 -Wc,-Qrm-s -Wc,-Qiselect-T0" 49512 C_O_FLAG_NORM="-xO2 -Wc,-Qrm-s -Wc,-Qiselect-T0" 49513 C_O_FLAG_DEBUG="" 49514 C_O_FLAG_DEBUG_JVM="" 49515 C_O_FLAG_NONE="" 49516 CXX_O_FLAG_HIGHEST_JVM="-xO4" 49517 CXX_O_FLAG_HIGHEST="-xO4 -Qoption cg -Qrm-s -Qoption cg -Qiselect-T0 $CC_HIGHEST -xprefetch=auto,explicit -xchip=ultra" 49518 CXX_O_FLAG_HI="-xO4 -Qoption cg -Qrm-s -Qoption cg -Qiselect-T0" 49519 CXX_O_FLAG_NORM="-xO2 -Qoption cg -Qrm-s -Qoption cg -Qiselect-T0" 49520 CXX_O_FLAG_DEBUG="" 49521 CXX_O_FLAG_DEBUG_JVM="" 49522 CXX_O_FLAG_NONE="" 49523 fi 49524 else 49525 # The remaining toolchains share opt flags between CC and CXX; 49526 # setup for C and duplicate afterwards. 49527 if test "x$TOOLCHAIN_TYPE" = xgcc; then 49528 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 49529 # On MacOSX we optimize for size, something 49530 # we should do for all platforms? 49531 C_O_FLAG_HIGHEST_JVM="-Os" 49532 C_O_FLAG_HIGHEST="-Os" 49533 C_O_FLAG_HI="-Os" 49534 C_O_FLAG_NORM="-Os" 49535 C_O_FLAG_SIZE="-Os" 49536 else 49537 C_O_FLAG_HIGHEST_JVM="-O3" 49538 C_O_FLAG_HIGHEST="-O3" 49539 C_O_FLAG_HI="-O3" 49540 C_O_FLAG_NORM="-O2" 49541 C_O_FLAG_SIZE="-Os" 49542 fi 49543 C_O_FLAG_DEBUG="-O0" 49544 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 49545 C_O_FLAG_DEBUG_JVM="" 49546 elif test "x$OPENJDK_TARGET_OS" = xlinux; then 49547 C_O_FLAG_DEBUG_JVM="-O0" 49548 fi 49549 C_O_FLAG_NONE="-O0" 49550 elif test "x$TOOLCHAIN_TYPE" = xclang; then 49551 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 49552 # On MacOSX we optimize for size, something 49553 # we should do for all platforms? 49554 C_O_FLAG_HIGHEST_JVM="-Os" 49555 C_O_FLAG_HIGHEST="-Os" 49556 C_O_FLAG_HI="-Os" 49557 C_O_FLAG_NORM="-Os" 49558 C_O_FLAG_SIZE="-Os" 49559 else 49560 C_O_FLAG_HIGHEST_JVM="-O3" 49561 C_O_FLAG_HIGHEST="-O3" 49562 C_O_FLAG_HI="-O3" 49563 C_O_FLAG_NORM="-O2" 49564 C_O_FLAG_SIZE="-Os" 49565 fi 49566 C_O_FLAG_DEBUG="-O0" 49567 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 49568 C_O_FLAG_DEBUG_JVM="" 49569 elif test "x$OPENJDK_TARGET_OS" = xlinux; then 49570 C_O_FLAG_DEBUG_JVM="-O0" 49571 fi 49572 C_O_FLAG_NONE="-O0" 49573 elif test "x$TOOLCHAIN_TYPE" = xxlc; then 49574 C_O_FLAG_HIGHEST_JVM="-O3 -qhot=level=1 -qinline -qinlglue" 49575 C_O_FLAG_HIGHEST="-O3 -qhot=level=1 -qinline -qinlglue" 49576 C_O_FLAG_HI="-O3 -qinline -qinlglue" 49577 C_O_FLAG_NORM="-O2" 49578 C_O_FLAG_DEBUG="-qnoopt" 49579 # FIXME: Value below not verified. 49580 C_O_FLAG_DEBUG_JVM="" 49581 C_O_FLAG_NONE="-qnoopt" 49582 elif test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 49583 C_O_FLAG_HIGHEST_JVM="-O2 -Oy-" 49584 C_O_FLAG_HIGHEST="-O2" 49585 C_O_FLAG_HI="-O1" 49586 C_O_FLAG_NORM="-O1" 49587 C_O_FLAG_DEBUG="-Od" 49588 C_O_FLAG_DEBUG_JVM="" 49589 C_O_FLAG_NONE="-Od" 49590 C_O_FLAG_SIZE="-Os" 49591 fi 49592 CXX_O_FLAG_HIGHEST_JVM="$C_O_FLAG_HIGHEST_JVM" 49593 CXX_O_FLAG_HIGHEST="$C_O_FLAG_HIGHEST" 49594 CXX_O_FLAG_HI="$C_O_FLAG_HI" 49595 CXX_O_FLAG_NORM="$C_O_FLAG_NORM" 49596 CXX_O_FLAG_DEBUG="$C_O_FLAG_DEBUG" 49597 CXX_O_FLAG_DEBUG_JVM="$C_O_FLAG_DEBUG_JVM" 49598 CXX_O_FLAG_NONE="$C_O_FLAG_NONE" 49599 CXX_O_FLAG_SIZE="$C_O_FLAG_SIZE" 49600 fi 49601 49602 # Adjust optimization flags according to debug level. 49603 case $DEBUG_LEVEL in 49604 release ) 49605 # no adjustment 49606 ;; 49607 fastdebug ) 49608 # Not quite so much optimization 49609 C_O_FLAG_HI="$C_O_FLAG_NORM" 49610 CXX_O_FLAG_HI="$CXX_O_FLAG_NORM" 49611 ;; 49612 slowdebug ) 49613 # Disable optimization 49614 C_O_FLAG_HIGHEST_JVM="$C_O_FLAG_DEBUG_JVM" 49615 C_O_FLAG_HIGHEST="$C_O_FLAG_DEBUG" 49616 C_O_FLAG_HI="$C_O_FLAG_DEBUG" 49617 C_O_FLAG_NORM="$C_O_FLAG_DEBUG" 49618 C_O_FLAG_SIZE="$C_O_FLAG_DEBUG" 49619 CXX_O_FLAG_HIGHEST_JVM="$CXX_O_FLAG_DEBUG_JVM" 49620 CXX_O_FLAG_HIGHEST="$CXX_O_FLAG_DEBUG" 49621 CXX_O_FLAG_HI="$CXX_O_FLAG_DEBUG" 49622 CXX_O_FLAG_NORM="$CXX_O_FLAG_DEBUG" 49623 CXX_O_FLAG_SIZE="$CXX_O_FLAG_DEBUG" 49624 ;; 49625 esac 49626 49627 49628 49629 49630 49631 49632 49633 49634 49635 49636 49637 49638 49639 49640 49641 49642 49643 49644 49645 # Special extras... 49646 if test "x$TOOLCHAIN_TYPE" = xsolstudio; then 49647 if test "x$OPENJDK_TARGET_CPU_ARCH" = "xsparc"; then 49648 CFLAGS_JDKLIB_EXTRA="${CFLAGS_JDKLIB_EXTRA} -xregs=no%appl" 49649 CXXFLAGS_JDKLIB_EXTRA="${CXXFLAGS_JDKLIB_EXTRA} -xregs=no%appl" 49650 fi 49651 CFLAGS_JDKLIB_EXTRA="${CFLAGS_JDKLIB_EXTRA} -errtags=yes -errfmt" 49652 CXXFLAGS_JDKLIB_EXTRA="${CXXFLAGS_JDKLIB_EXTRA} -errtags=yes -errfmt" 49653 elif test "x$TOOLCHAIN_TYPE" = xxlc; then 49654 CFLAGS_JDK="${CFLAGS_JDK} -qchars=signed -qfullpath -qsaveopt" 49655 CXXFLAGS_JDK="${CXXFLAGS_JDK} -qchars=signed -qfullpath -qsaveopt" 49656 elif test "x$TOOLCHAIN_TYPE" = xgcc; then 49657 CXXSTD_CXXFLAG="-std=gnu++98" 49658 49659 49660 49661 49662 49663 49664 49665 49666 49667 49668 49669 49670 49671 49672 49673 49674 49675 49676 49677 49678 49679 49680 49681 49682 49683 49684 49685 49686 49687 49688 49689 49690 49691 49692 49693 49694 49695 49696 49697 49698 49699 49700 # Execute function body 49701 49702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the C++ compiler supports \"$CXXSTD_CXXFLAG -Werror\"" >&5 49703 $as_echo_n "checking if the C++ compiler supports \"$CXXSTD_CXXFLAG -Werror\"... " >&6; } 49704 supports=yes 49705 49706 saved_cxxflags="$CXXFLAGS" 49707 CXXFLAGS="$CXXFLAG $CXXSTD_CXXFLAG -Werror" 49708 ac_ext=cpp 49709 ac_cpp='$CXXCPP $CPPFLAGS' 49710 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 49711 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 49712 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 49713 49714 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 49715 /* end confdefs.h. */ 49716 int i; 49717 _ACEOF 49718 if ac_fn_cxx_try_compile "$LINENO"; then : 49719 49720 else 49721 supports=no 49722 fi 49723 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 49724 ac_ext=cpp 49725 ac_cpp='$CXXCPP $CPPFLAGS' 49726 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 49727 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 49728 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 49729 49730 CXXFLAGS="$saved_cxxflags" 49731 49732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supports" >&5 49733 $as_echo "$supports" >&6; } 49734 if test "x$supports" = "xyes" ; then 49735 : 49736 49737 else 49738 : 49739 CXXSTD_CXXFLAG="" 49740 fi 49741 49742 49743 49744 49745 49746 49747 49748 49749 49750 49751 49752 49753 CXXFLAGS_JDK="${CXXFLAGS_JDK} ${CXXSTD_CXXFLAG}" 49754 JVM_CFLAGS="${JVM_CFLAGS} ${CXXSTD_CXXFLAG}" 49755 49756 fi 49757 if test "x$OPENJDK_TARGET_OS" = xsolaris; then 49758 CFLAGS_JDK="${CFLAGS_JDK} -D__solaris__" 49759 CXXFLAGS_JDK="${CXXFLAGS_JDK} -D__solaris__" 49760 fi 49761 49762 if test "x$OPENJDK_TARGET_OS" = xsolaris; then 49763 CFLAGS_JDK="${CFLAGS_JDK} -D__solaris__" 49764 CXXFLAGS_JDK="${CXXFLAGS_JDK} -D__solaris__" 49765 fi 49766 49767 CFLAGS_JDK="${CFLAGS_JDK} ${EXTRA_CFLAGS}" 49768 CXXFLAGS_JDK="${CXXFLAGS_JDK} ${EXTRA_CXXFLAGS}" 49769 LDFLAGS_JDK="${LDFLAGS_JDK} ${EXTRA_LDFLAGS}" 49770 49771 ############################################################################### 49772 # 49773 # Now setup the CFLAGS and LDFLAGS for the JDK build. 49774 # Later we will also have CFLAGS and LDFLAGS for the hotspot subrepo build. 49775 # 49776 49777 # Setup compiler/platform specific flags into 49778 # CFLAGS_JDK - C Compiler flags 49779 # CXXFLAGS_JDK - C++ Compiler flags 49780 # COMMON_CCXXFLAGS_JDK - common to C and C++ 49781 if test "x$TOOLCHAIN_TYPE" = xgcc; then 49782 JVM_CFLAGS="$JVM_CFLAGS -D_GNU_SOURCE" 49783 JVM_CFLAGS="$JVM_CFLAGS -D_REENTRANT" 49784 JVM_CFLAGS="$JVM_CFLAGS -fcheck-new" 49785 if test "x$OPENJDK_TARGET_CPU" = xx86; then 49786 # Force compatibility with i586 on 32 bit intel platforms. 49787 COMMON_CCXXFLAGS="${COMMON_CCXXFLAGS} -march=i586" 49788 JVM_CFLAGS="$JVM_CFLAGS -march=i586" 49789 fi 49790 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS $COMMON_CCXXFLAGS_JDK -Wall -Wextra -Wno-unused -Wno-unused-parameter -Wformat=2 \ 49791 -pipe -D_GNU_SOURCE -D_REENTRANT -D_LARGEFILE64_SOURCE" 49792 case $OPENJDK_TARGET_CPU_ARCH in 49793 arm ) 49794 # on arm we don't prevent gcc to omit frame pointer but do prevent strict aliasing 49795 CFLAGS_JDK="${CFLAGS_JDK} -fno-strict-aliasing" 49796 ;; 49797 ppc ) 49798 # on ppc we don't prevent gcc to omit frame pointer but do prevent strict aliasing 49799 CFLAGS_JDK="${CFLAGS_JDK} -fno-strict-aliasing" 49800 ;; 49801 s390 ) 49802 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK -fno-omit-frame-pointer -mbackchain -march=z10" 49803 CFLAGS_JDK="${CFLAGS_JDK} -fno-strict-aliasing" 49804 ;; 49805 * ) 49806 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK -fno-omit-frame-pointer" 49807 CFLAGS_JDK="${CFLAGS_JDK} -fno-strict-aliasing" 49808 ;; 49809 esac 49810 49811 49812 49813 49814 49815 49816 49817 49818 49819 49820 49821 49822 49823 49824 49825 49826 49827 49828 49829 49830 49831 49832 49833 49834 49835 49836 49837 49838 49839 49840 49841 49842 49843 49844 49845 49846 49847 49848 49849 49850 49851 49852 49853 49854 49855 49856 49857 49858 49859 49860 49861 49862 49863 49864 # Execute function body 49865 49866 # Need to assign to a variable since m4 is blocked from modifying parts in []. 49867 REFERENCE_VERSION=6 49868 49869 if [[ "$REFERENCE_VERSION" =~ (.*\.){4} ]] ; then 49870 as_fn_error $? "Internal error: Cannot compare to 6, only four parts (W.X.Y.Z) is supported" "$LINENO" 5 49871 fi 49872 49873 if [[ "$REFERENCE_VERSION" =~ [0-9]{6} ]] ; then 49874 as_fn_error $? "Internal error: Cannot compare to 6, only parts < 99999 is supported" "$LINENO" 5 49875 fi 49876 49877 # Version comparison method inspired by http://stackoverflow.com/a/24067243 49878 COMPARABLE_REFERENCE_VERSION=`$AWK -F. '{ printf("%05d%05d%05d%05d\n", $1, $2, $3, $4) }' <<< "$REFERENCE_VERSION"` 49879 49880 if test $COMPARABLE_ACTUAL_VERSION -ge $COMPARABLE_REFERENCE_VERSION ; then 49881 : 49882 49883 # These flags are required for GCC 6 builds as undefined behaviour in OpenJDK code 49884 # runs afoul of the more aggressive versions of these optimisations. 49885 # Notably, value range propagation now assumes that the this pointer of C++ 49886 # member functions is non-null. 49887 NO_DELETE_NULL_POINTER_CHECKS_CFLAG="-fno-delete-null-pointer-checks" 49888 NO_LIFETIME_DSE_CFLAG="-fno-lifetime-dse" 49889 { $as_echo "$as_me:${as_lineno-$LINENO}: GCC >= 6 detected; adding ${NO_DELETE_NULL_POINTER_CHECKS_CFLAG} and ${NO_LIFETIME_DSE_CFLAG}" >&5 49890 $as_echo "$as_me: GCC >= 6 detected; adding ${NO_DELETE_NULL_POINTER_CHECKS_CFLAG} and ${NO_LIFETIME_DSE_CFLAG}" >&6;} 49891 CFLAGS_JDK="$CFLAGS_JDK ${NO_DELETE_NULL_POINTER_CHECKS_CFLAG} ${NO_LIFETIME_DSE_CFLAG}" 49892 JVM_CFLAGS="$JVM_CFLAGS ${NO_DELETE_NULL_POINTER_CHECKS_CFLAG} ${NO_LIFETIME_DSE_CFLAG}" 49893 49894 else 49895 : 49896 49897 fi 49898 49899 49900 49901 49902 49903 49904 49905 49906 49907 49908 49909 49910 49911 49912 elif test "x$TOOLCHAIN_TYPE" = xclang; then 49913 JVM_CFLAGS="$JVM_CFLAGS -D_GNU_SOURCE" 49914 49915 # Restrict the debug information created by Clang to avoid 49916 # too big object files and speed the build up a little bit 49917 # (see http://llvm.org/bugs/show_bug.cgi?id=7554) 49918 JVM_CFLAGS="$JVM_CFLAGS -flimit-debug-info" 49919 if test "x$OPENJDK_TARGET_OS" = xlinux; then 49920 if test "x$OPENJDK_TARGET_CPU" = xx86; then 49921 # Force compatibility with i586 on 32 bit intel platforms. 49922 COMMON_CCXXFLAGS="${COMMON_CCXXFLAGS} -march=i586" 49923 JVM_CFLAGS="$JVM_CFLAGS -march=i586" 49924 fi 49925 JVM_CFLAGS="$JVM_CFLAGS -Wno-sometimes-uninitialized" 49926 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS $COMMON_CCXXFLAGS_JDK -Wall -Wextra -Wno-unused -Wno-unused-parameter -Wformat=2 \ 49927 -pipe -D_GNU_SOURCE -D_REENTRANT -D_LARGEFILE64_SOURCE" 49928 case $OPENJDK_TARGET_CPU_ARCH in 49929 ppc ) 49930 # on ppc we don't prevent gcc to omit frame pointer but do prevent strict aliasing 49931 CFLAGS_JDK="${CFLAGS_JDK} -fno-strict-aliasing" 49932 ;; 49933 * ) 49934 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK -fno-omit-frame-pointer" 49935 CFLAGS_JDK="${CFLAGS_JDK} -fno-strict-aliasing" 49936 ;; 49937 esac 49938 fi 49939 elif test "x$TOOLCHAIN_TYPE" = xsolstudio; then 49940 JVM_CFLAGS="$JVM_CFLAGS -DSPARC_WORKS" 49941 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS $COMMON_CCXXFLAGS_JDK -DTRACING -DMACRO_MEMSYS_OPS -DBREAKPTS" 49942 if test "x$OPENJDK_TARGET_CPU_ARCH" = xx86; then 49943 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK -DcpuIntel -Di586 -D$OPENJDK_TARGET_CPU_LEGACY_LIB" 49944 fi 49945 49946 CFLAGS_JDK="$CFLAGS_JDK -xc99=%none -xCC -errshort=tags -Xa -v -mt -W0,-noglobal" 49947 CXXFLAGS_JDK="$CXXFLAGS_JDK -errtags=yes +w -mt -features=no%except -DCC_NOEX -norunpath -xnolib" 49948 elif test "x$TOOLCHAIN_TYPE" = xxlc; then 49949 JVM_CFLAGS="$JVM_CFLAGS -D_REENTRANT -D__STDC_FORMAT_MACROS" 49950 CFLAGS_JDK="$CFLAGS_JDK -D_GNU_SOURCE -D_REENTRANT -D_LARGEFILE64_SOURCE -DSTDC" 49951 CXXFLAGS_JDK="$CXXFLAGS_JDK -D_GNU_SOURCE -D_REENTRANT -D_LARGEFILE64_SOURCE -DSTDC" 49952 elif test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 49953 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS $COMMON_CCXXFLAGS_JDK \ 49954 -MD -Zc:wchar_t- -W3 -wd4800 \ 49955 -DWIN32_LEAN_AND_MEAN \ 49956 -D_CRT_SECURE_NO_DEPRECATE -D_CRT_NONSTDC_NO_DEPRECATE \ 49957 -D_WINSOCK_DEPRECATED_NO_WARNINGS \ 49958 -DWIN32 -DIAL" 49959 if test "x$OPENJDK_TARGET_CPU" = xx86_64; then 49960 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK -D_AMD64_ -Damd64" 49961 else 49962 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK -D_X86_ -Dx86" 49963 fi 49964 # If building with Visual Studio 2010, we can still use _STATIC_CPPLIB to 49965 # avoid bundling msvcpNNN.dll. Doesn't work with newer versions of visual 49966 # studio. 49967 if test "x$TOOLCHAIN_VERSION" = "x2010"; then 49968 STATIC_CPPLIB_FLAGS="-D_STATIC_CPPLIB -D_DISABLE_DEPRECATE_STATIC_CPPLIB" 49969 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK $STATIC_CPPLIB_FLAGS" 49970 JVM_CFLAGS="$JVM_CFLAGS $STATIC_CPPLIB_FLAGS" 49971 fi 49972 fi 49973 49974 ############################################################################### 49975 49976 # Adjust flags according to debug level. 49977 case $DEBUG_LEVEL in 49978 fastdebug | slowdebug ) 49979 CFLAGS_JDK="$CFLAGS_JDK $CFLAGS_DEBUG_SYMBOLS $CFLAGS_DEBUG_OPTIONS" 49980 CXXFLAGS_JDK="$CXXFLAGS_JDK $CXXFLAGS_DEBUG_SYMBOLS $CXXFLAGS_DEBUG_OPTIONS" 49981 ;; 49982 release ) 49983 ;; 49984 * ) 49985 as_fn_error $? "Unrecognized \$DEBUG_LEVEL: $DEBUG_LEVEL" "$LINENO" 5 49986 ;; 49987 esac 49988 49989 # Set some common defines. These works for all compilers, but assume 49990 # -D is universally accepted. 49991 49992 # Setup endianness 49993 if test "x$OPENJDK_TARGET_CPU_ENDIAN" = xlittle; then 49994 # The macro _LITTLE_ENDIAN needs to be defined the same to avoid the 49995 # Sun C compiler warning message: warning: macro redefined: _LITTLE_ENDIAN 49996 # (The Solaris X86 system defines this in file /usr/include/sys/isa_defs.h). 49997 # Note: -Dmacro is the same as #define macro 1 49998 # -Dmacro= is the same as #define macro 49999 if test "x$OPENJDK_TARGET_OS" = xsolaris; then 50000 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK -D_LITTLE_ENDIAN=" 50001 else 50002 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK -D_LITTLE_ENDIAN" 50003 fi 50004 else 50005 # Same goes for _BIG_ENDIAN. Do we really need to set *ENDIAN on Solaris if they 50006 # are defined in the system? 50007 if test "x$OPENJDK_TARGET_OS" = xsolaris; then 50008 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK -D_BIG_ENDIAN=" 50009 else 50010 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK -D_BIG_ENDIAN" 50011 fi 50012 fi 50013 50014 # Setup target OS define. Use OS target name but in upper case. 50015 OPENJDK_TARGET_OS_UPPERCASE=`$ECHO $OPENJDK_TARGET_OS | $TR 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` 50016 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK -D$OPENJDK_TARGET_OS_UPPERCASE" 50017 50018 # Setup target CPU 50019 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK \ 50020 $OPENJDK_TARGET_ADD_LP64 \ 50021 -DARCH='\"$OPENJDK_TARGET_CPU_LEGACY\"' -D$OPENJDK_TARGET_CPU_LEGACY" 50022 50023 # Setup debug/release defines 50024 if test "x$DEBUG_LEVEL" = xrelease; then 50025 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK -DNDEBUG" 50026 if test "x$OPENJDK_TARGET_OS" = xsolaris; then 50027 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK -DTRIMMED" 50028 fi 50029 else 50030 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK -DDEBUG" 50031 fi 50032 50033 # Set some additional per-OS defines. 50034 if test "x$OPENJDK_TARGET_OS" = xlinux; then 50035 JVM_CFLAGS="$JVM_CFLAGS -DLINUX" 50036 JVM_CFLAGS="$JVM_CFLAGS -pipe $PICFLAG -fno-rtti -fno-exceptions \ 50037 -fvisibility=hidden -fno-strict-aliasing -fno-omit-frame-pointer" 50038 elif test "x$OPENJDK_TARGET_OS" = xsolaris; then 50039 JVM_CFLAGS="$JVM_CFLAGS -DSOLARIS" 50040 JVM_CFLAGS="$JVM_CFLAGS -template=no%extdef -features=no%split_init \ 50041 -D_Crun_inline_placement -library=%none $PICFLAG -mt -features=no%except" 50042 elif test "x$OPENJDK_TARGET_OS" = xmacosx; then 50043 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK -D_ALLBSD_SOURCE -D_DARWIN_UNLIMITED_SELECT" 50044 JVM_CFLAGS="$JVM_CFLAGS -D_ALLBSD_SOURCE" 50045 JVM_CFLAGS="$JVM_CFLAGS -D_DARWIN_C_SOURCE -D_XOPEN_SOURCE" 50046 JVM_CFLAGS="$JVM_CFLAGS -fno-rtti -fno-exceptions -fvisibility=hidden \ 50047 -mno-omit-leaf-frame-pointer -mstack-alignment=16 -pipe -fno-strict-aliasing \ 50048 -DMAC_OS_X_VERSION_MAX_ALLOWED=1070 -mmacosx-version-min=10.7.0 \ 50049 -fno-omit-frame-pointer" 50050 elif test "x$OPENJDK_TARGET_OS" = xaix; then 50051 JVM_CFLAGS="$JVM_CFLAGS -DAIX" 50052 # We may need '-qminimaltoc' or '-qpic=large -bbigtoc' if the TOC overflows. 50053 JVM_CFLAGS="$JVM_CFLAGS -qtune=balanced \ 50054 -qalias=noansi -qstrict -qtls=default -qlanglvl=c99vla \ 50055 -qlanglvl=noredefmac -qnortti -qnoeh -qignerrno" 50056 elif test "x$OPENJDK_TARGET_OS" = xbsd; then 50057 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK -D_ALLBSD_SOURCE" 50058 elif test "x$OPENJDK_TARGET_OS" = xwindows; then 50059 JVM_CFLAGS="$JVM_CFLAGS -D_WINDOWS -DWIN32 -D_JNI_IMPLEMENTATION_" 50060 JVM_CFLAGS="$JVM_CFLAGS -nologo -W3 -MD -MP" 50061 fi 50062 50063 # Set some additional per-CPU defines. 50064 if test "x$OPENJDK_TARGET_OS-$OPENJDK_TARGET_CPU" = xwindows-x86; then 50065 JVM_CFLAGS="$JVM_CFLAGS -arch:IA32" 50066 elif test "x$OPENJDK_TARGET_CPU" = xsparcv9; then 50067 JVM_CFLAGS="$JVM_CFLAGS -xarch=sparc" 50068 elif test "x$OPENJDK_TARGET_CPU" = xppc64; then 50069 if test "x$OPENJDK_TARGET_OS" = xlinux; then 50070 JVM_CFLAGS="$JVM_CFLAGS -minsert-sched-nops=regroup_exact -mno-multiple -mno-string" 50071 # fixes `relocation truncated to fit' error for gcc 4.1. 50072 JVM_CFLAGS="$JVM_CFLAGS -mminimal-toc" 50073 # Use ppc64 instructions, but schedule for power5 50074 JVM_CFLAGS="$JVM_CFLAGS -mcpu=powerpc64 -mtune=power5" 50075 elif test "x$OPENJDK_TARGET_OS" = xaix; then 50076 JVM_CFLAGS="$JVM_CFLAGS -qarch=ppc64" 50077 fi 50078 elif test "x$OPENJDK_TARGET_CPU" = xppc64le; then 50079 if test "x$OPENJDK_TARGET_OS" = xlinux; then 50080 JVM_CFLAGS="$JVM_CFLAGS -minsert-sched-nops=regroup_exact -mno-multiple -mno-string" 50081 # Little endian machine uses ELFv2 ABI. 50082 JVM_CFLAGS="$JVM_CFLAGS -DABI_ELFv2" 50083 # Use Power8, this is the first CPU to support PPC64 LE with ELFv2 ABI. 50084 JVM_CFLAGS="$JVM_CFLAGS -mcpu=power8 -mtune=power8" 50085 fi 50086 elif test "x$OPENJDK_TARGET_CPU" = xs390x; then 50087 if test "x$OPENJDK_TARGET_OS" = xlinux; then 50088 JVM_CFLAGS="$JVM_CFLAGS -mbackchain -march=z10" 50089 fi 50090 fi 50091 50092 if test "x$OPENJDK_TARGET_CPU_ENDIAN" = xlittle; then 50093 JVM_CFLAGS="$JVM_CFLAGS -DVM_LITTLE_ENDIAN" 50094 fi 50095 50096 if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then 50097 if test "x$OPENJDK_TARGET_OS" != xsolaris && test "x$OPENJDK_TARGET_OS" != xaix; then 50098 # Solaris does not have _LP64=1 in the old build. 50099 # xlc on AIX defines _LP64=1 by default and issues a warning if we redefine it. 50100 JVM_CFLAGS="$JVM_CFLAGS -D_LP64=1" 50101 fi 50102 fi 50103 50104 # Set JVM_CFLAGS warning handling 50105 if test "x$OPENJDK_TARGET_OS" = xlinux; then 50106 JVM_CFLAGS="$JVM_CFLAGS -Wpointer-arith -Wsign-compare -Wunused-function \ 50107 -Wunused-value -Woverloaded-virtual" 50108 50109 if test "x$TOOLCHAIN_TYPE" = xgcc; then 50110 50111 50112 50113 50114 50115 50116 50117 50118 50119 50120 50121 50122 50123 50124 50125 50126 50127 50128 50129 50130 50131 50132 50133 50134 50135 50136 50137 50138 50139 50140 50141 50142 50143 50144 50145 50146 50147 50148 50149 50150 50151 50152 50153 50154 50155 50156 50157 50158 50159 50160 50161 50162 50163 50164 # Execute function body 50165 50166 # Need to assign to a variable since m4 is blocked from modifying parts in []. 50167 REFERENCE_VERSION=4.8 50168 50169 if [[ "$REFERENCE_VERSION" =~ (.*\.){4} ]] ; then 50170 as_fn_error $? "Internal error: Cannot compare to 4.8, only four parts (W.X.Y.Z) is supported" "$LINENO" 5 50171 fi 50172 50173 if [[ "$REFERENCE_VERSION" =~ [0-9]{6} ]] ; then 50174 as_fn_error $? "Internal error: Cannot compare to 4.8, only parts < 99999 is supported" "$LINENO" 5 50175 fi 50176 50177 # Version comparison method inspired by http://stackoverflow.com/a/24067243 50178 COMPARABLE_REFERENCE_VERSION=`$AWK -F. '{ printf("%05d%05d%05d%05d\n", $1, $2, $3, $4) }' <<< "$REFERENCE_VERSION"` 50179 50180 if test $COMPARABLE_ACTUAL_VERSION -ge $COMPARABLE_REFERENCE_VERSION ; then 50181 : 50182 50183 # These flags either do not work or give spurious warnings prior to gcc 4.8. 50184 JVM_CFLAGS="$JVM_CFLAGS -Wno-format-zero-length -Wtype-limits -Wuninitialized" 50185 50186 50187 else 50188 : 50189 50190 fi 50191 50192 50193 50194 50195 50196 50197 50198 50199 50200 50201 50202 50203 50204 50205 fi 50206 if ! [[ " $JVM_VARIANTS " =~ " zero " ]] && ! [[ " $JVM_VARIANTS " =~ " zeroshark " ]] ; then 50207 # Non-zero builds have stricter warnings 50208 JVM_CFLAGS="$JVM_CFLAGS -Wreturn-type -Wundef -Wformat=2" 50209 else 50210 if test "x$TOOLCHAIN_TYPE" = xclang; then 50211 # Some versions of llvm do not like -Wundef 50212 JVM_CFLAGS="$JVM_CFLAGS -Wno-undef" 50213 fi 50214 fi 50215 elif test "x$OPENJDK_TARGET_OS" = xmacosx; then 50216 JVM_CFLAGS="$JVM_CFLAGS -Wno-deprecated -Wpointer-arith \ 50217 -Wsign-compare -Wundef -Wunused-function -Wformat=2" 50218 fi 50219 50220 # Additional macosx handling 50221 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 50222 # Setting these parameters makes it an error to link to macosx APIs that are 50223 # newer than the given OS version and makes the linked binaries compatible 50224 # even if built on a newer version of the OS. 50225 # The expected format is X.Y.Z 50226 MACOSX_VERSION_MIN=10.7.0 50227 50228 50229 # The macro takes the version with no dots, ex: 1070 50230 # Let the flags variables get resolved in make for easier override on make 50231 # command line. 50232 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK -DMAC_OS_X_VERSION_MAX_ALLOWED=\$(subst .,,\$(MACOSX_VERSION_MIN)) -mmacosx-version-min=\$(MACOSX_VERSION_MIN)" 50233 LDFLAGS_JDK="$LDFLAGS_JDK -mmacosx-version-min=\$(MACOSX_VERSION_MIN)" 50234 fi 50235 50236 # Setup some hard coded includes 50237 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK \ 50238 -I\$(SUPPORT_OUTPUTDIR)/modules_include/java.base \ 50239 -I${JDK_TOPDIR}/src/java.base/share/native/include \ 50240 -I${JDK_TOPDIR}/src/java.base/$OPENJDK_TARGET_OS/native/include \ 50241 -I${JDK_TOPDIR}/src/java.base/$OPENJDK_TARGET_OS_TYPE/native/include \ 50242 -I${JDK_TOPDIR}/src/java.base/share/native/libjava \ 50243 -I${JDK_TOPDIR}/src/java.base/$OPENJDK_TARGET_OS_TYPE/native/libjava" 50244 50245 # The shared libraries are compiled using the picflag. 50246 CFLAGS_JDKLIB="$COMMON_CCXXFLAGS_JDK \ 50247 $CFLAGS_JDK $EXTRA_CFLAGS_JDK $PICFLAG $CFLAGS_JDKLIB_EXTRA" 50248 CXXFLAGS_JDKLIB="$COMMON_CCXXFLAGS_JDK \ 50249 $CXXFLAGS_JDK $EXTRA_CXXFLAGS_JDK $PICFLAG $CXXFLAGS_JDKLIB_EXTRA" 50250 50251 # Executable flags 50252 CFLAGS_JDKEXE="$COMMON_CCXXFLAGS_JDK $CFLAGS_JDK $EXTRA_CFLAGS_JDK" 50253 CXXFLAGS_JDKEXE="$COMMON_CCXXFLAGS_JDK $CXXFLAGS_JDK $EXTRA_CXXFLAGS_JDK" 50254 50255 50256 50257 50258 50259 50260 # Setup LDFLAGS et al. 50261 # 50262 50263 if test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 50264 LDFLAGS_MICROSOFT="-nologo -opt:ref" 50265 LDFLAGS_JDK="$LDFLAGS_JDK $LDFLAGS_MICROSOFT -incremental:no" 50266 JVM_LDFLAGS="$JVM_LDFLAGS $LDFLAGS_MICROSOFT -opt:icf,8 -subsystem:windows -base:0x8000000" 50267 if test "x$OPENJDK_TARGET_CPU_BITS" = "x32"; then 50268 LDFLAGS_SAFESH="-safeseh" 50269 LDFLAGS_JDK="$LDFLAGS_JDK $LDFLAGS_SAFESH" 50270 JVM_LDFLAGS="$JVM_LDFLAGS $LDFLAGS_SAFESH" 50271 # NOTE: Old build added -machine. Probably not needed. 50272 JVM_LDFLAGS="$JVM_LDFLAGS -machine:I386" 50273 else 50274 JVM_LDFLAGS="$JVM_LDFLAGS -machine:AMD64" 50275 fi 50276 elif test "x$TOOLCHAIN_TYPE" = xclang; then 50277 JVM_LDFLAGS="$JVM_LDFLAGS -mno-omit-leaf-frame-pointer -mstack-alignment=16 -stdlib=libstdc++ -fPIC" 50278 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 50279 # FIXME: We should really generalize SET_SHARED_LIBRARY_ORIGIN instead. 50280 JVM_LDFLAGS="$JVM_LDFLAGS -Wl,-rpath,@loader_path/. -Wl,-rpath,@loader_path/.." 50281 fi 50282 elif test "x$TOOLCHAIN_TYPE" = xgcc; then 50283 # If this is a --hash-style=gnu system, use --hash-style=both, why? 50284 # We have previously set HAS_GNU_HASH if this is the case 50285 if test -n "$HAS_GNU_HASH"; then 50286 LDFLAGS_HASH_STYLE="-Wl,--hash-style=both" 50287 LDFLAGS_JDK="${LDFLAGS_JDK} $LDFLAGS_HASH_STYLE" 50288 JVM_LDFLAGS="$JVM_LDFLAGS $LDFLAGS_HASH_STYLE" 50289 fi 50290 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 50291 JVM_LDFLAGS="$JVM_LDFLAGS -Wl,-rpath,@loader_path/. -Wl,-rpath,@loader_path/.." 50292 fi 50293 if test "x$OPENJDK_TARGET_OS" = xlinux; then 50294 # And since we now know that the linker is gnu, then add -z defs, to forbid 50295 # undefined symbols in object files. 50296 LDFLAGS_NO_UNDEF_SYM="-Wl,-z,defs" 50297 LDFLAGS_JDK="${LDFLAGS_JDK} $LDFLAGS_NO_UNDEF_SYM" 50298 JVM_LDFLAGS="$JVM_LDFLAGS $LDFLAGS_NO_UNDEF_SYM" 50299 LDFLAGS_NO_EXEC_STACK="-Wl,-z,noexecstack" 50300 JVM_LDFLAGS="$JVM_LDFLAGS $LDFLAGS_NO_EXEC_STACK" 50301 if test "x$OPENJDK_TARGET_CPU" = xx86; then 50302 JVM_LDFLAGS="$JVM_LDFLAGS -march=i586" 50303 fi 50304 case $DEBUG_LEVEL in 50305 release ) 50306 # tell linker to optimize libraries. 50307 # Should this be supplied to the OSS linker as well? 50308 LDFLAGS_DEBUGLEVEL_release="-Wl,-O1" 50309 LDFLAGS_JDK="${LDFLAGS_JDK} $LDFLAGS_DEBUGLEVEL_release" 50310 JVM_LDFLAGS="$JVM_LDFLAGS $LDFLAGS_DEBUGLEVEL_release" 50311 if test "x$HAS_LINKER_RELRO" = "xtrue"; then 50312 JVM_LDFLAGS="$JVM_LDFLAGS $LINKER_RELRO_FLAG" 50313 fi 50314 ;; 50315 slowdebug ) 50316 # Hotspot always let the linker optimize 50317 JVM_LDFLAGS="$JVM_LDFLAGS -Wl,-O1" 50318 if test "x$HAS_LINKER_NOW" = "xtrue"; then 50319 # do relocations at load 50320 LDFLAGS_JDK="$LDFLAGS_JDK $LINKER_NOW_FLAG" 50321 LDFLAGS_CXX_JDK="$LDFLAGS_CXX_JDK $LINKER_NOW_FLAG" 50322 JVM_LDFLAGS="$JVM_LDFLAGS $LINKER_NOW_FLAG" 50323 fi 50324 if test "x$HAS_LINKER_RELRO" = "xtrue"; then 50325 # mark relocations read only 50326 LDFLAGS_JDK="$LDFLAGS_JDK $LINKER_RELRO_FLAG" 50327 LDFLAGS_CXX_JDK="$LDFLAGS_CXX_JDK $LINKER_RELRO_FLAG" 50328 JVM_LDFLAGS="$JVM_LDFLAGS $LINKER_RELRO_FLAG" 50329 fi 50330 ;; 50331 fastdebug ) 50332 # Hotspot always let the linker optimize 50333 JVM_LDFLAGS="$JVM_LDFLAGS -Wl,-O1" 50334 if test "x$HAS_LINKER_RELRO" = "xtrue"; then 50335 # mark relocations read only 50336 LDFLAGS_JDK="$LDFLAGS_JDK $LINKER_RELRO_FLAG" 50337 LDFLAGS_CXX_JDK="$LDFLAGS_CXX_JDK $LINKER_RELRO_FLAG" 50338 JVM_LDFLAGS="$JVM_LDFLAGS $LINKER_RELRO_FLAG" 50339 fi 50340 ;; 50341 * ) 50342 as_fn_error $? "Unrecognized \$DEBUG_LEVEL: $DEBUG_LEVEL" "$LINENO" 5 50343 ;; 50344 esac 50345 fi 50346 elif test "x$TOOLCHAIN_TYPE" = xsolstudio; then 50347 LDFLAGS_SOLSTUDIO="-Wl,-z,defs" 50348 LDFLAGS_JDK="$LDFLAGS_JDK $LDFLAGS_SOLSTUDIO -ztext" 50349 LDFLAGS_CXX_SOLSTUDIO="-norunpath" 50350 LDFLAGS_CXX_JDK="$LDFLAGS_CXX_JDK $LDFLAGS_CXX_SOLSTUDIO -xnolib" 50351 JVM_LDFLAGS="$JVM_LDFLAGS $LDFLAGS_SOLSTUDIO -library=%none -mt $LDFLAGS_CXX_SOLSTUDIO -z noversion" 50352 if test "x$OPENJDK_TARGET_CPU_ARCH" = "xsparc"; then 50353 JVM_LDFLAGS="$JVM_LDFLAGS -xarch=sparc" 50354 fi 50355 elif test "x$TOOLCHAIN_TYPE" = xxlc; then 50356 LDFLAGS_XLC="-b64 -brtl -bnolibpath -bexpall -bernotok" 50357 LDFLAGS_JDK="${LDFLAGS_JDK} $LDFLAGS_XLC" 50358 JVM_LDFLAGS="$JVM_LDFLAGS $LDFLAGS_XLC" 50359 fi 50360 50361 # Customize LDFLAGS for executables 50362 50363 LDFLAGS_JDKEXE="${LDFLAGS_JDK}" 50364 50365 if test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 50366 if test "x$OPENJDK_TARGET_CPU_BITS" = "x64"; then 50367 LDFLAGS_STACK_SIZE=1048576 50368 else 50369 LDFLAGS_STACK_SIZE=327680 50370 fi 50371 LDFLAGS_JDKEXE="${LDFLAGS_JDKEXE} /STACK:$LDFLAGS_STACK_SIZE" 50372 elif test "x$OPENJDK_TARGET_OS" = xlinux; then 50373 LDFLAGS_JDKEXE="$LDFLAGS_JDKEXE -Wl,--allow-shlib-undefined" 50374 fi 50375 50376 LDFLAGS_JDKEXE="${LDFLAGS_JDKEXE} ${EXTRA_LDFLAGS_JDK}" 50377 50378 # Customize LDFLAGS for libs 50379 LDFLAGS_JDKLIB="${LDFLAGS_JDK}" 50380 50381 LDFLAGS_JDKLIB="${LDFLAGS_JDKLIB} ${SHARED_LIBRARY_FLAGS}" 50382 if test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 50383 JAVA_BASE_LDFLAGS="${JAVA_BASE_LDFLAGS} \ 50384 -libpath:${OUTPUT_ROOT}/support/modules_libs/java.base" 50385 JDKLIB_LIBS="" 50386 else 50387 JAVA_BASE_LDFLAGS="${JAVA_BASE_LDFLAGS} \ 50388 -L\$(SUPPORT_OUTPUTDIR)/modules_libs/java.base\$(OPENJDK_TARGET_CPU_LIBDIR)" 50389 50390 if test "xTARGET" = "xTARGET"; then 50391 # On some platforms (mac) the linker warns about non existing -L dirs. 50392 # Add server first if available. Linking aginst client does not always produce the same results. 50393 # Only add client/minimal dir if client/minimal is being built. 50394 # Default to server for other variants. 50395 if [[ " $JVM_VARIANTS " =~ " server " ]] ; then 50396 JAVA_BASE_LDFLAGS="${JAVA_BASE_LDFLAGS} -L\$(SUPPORT_OUTPUTDIR)/modules_libs/java.base\$(OPENJDK_TARGET_CPU_LIBDIR)/server" 50397 elif [[ " $JVM_VARIANTS " =~ " client " ]] ; then 50398 JAVA_BASE_LDFLAGS="${JAVA_BASE_LDFLAGS} -L\$(SUPPORT_OUTPUTDIR)/modules_libs/java.base\$(OPENJDK_TARGET_CPU_LIBDIR)/client" 50399 elif [[ " $JVM_VARIANTS " =~ " minimal " ]] ; then 50400 JAVA_BASE_LDFLAGS="${JAVA_BASE_LDFLAGS} -L\$(SUPPORT_OUTPUTDIR)/modules_libs/java.base\$(OPENJDK_TARGET_CPU_LIBDIR)/minimal" 50401 else 50402 JAVA_BASE_LDFLAGS="${JAVA_BASE_LDFLAGS} -L\$(SUPPORT_OUTPUTDIR)/modules_libs/java.base\$(OPENJDK_TARGET_CPU_LIBDIR)/server" 50403 fi 50404 elif test "xTARGET" = "xBUILD"; then 50405 # When building a buildjdk, it's always only the server variant 50406 JAVA_BASE_LDFLAGS="${JAVA_BASE_LDFLAGS} \ 50407 -L\$(SUPPORT_OUTPUTDIR)/modules_libs/java.base\$(OPENJDK_TARGET_CPU_LIBDIR)/server" 50408 fi 50409 50410 JDKLIB_LIBS="-ljava -ljvm" 50411 if test "x$TOOLCHAIN_TYPE" = xsolstudio; then 50412 JDKLIB_LIBS="$JDKLIB_LIBS -lc" 50413 fi 50414 50415 fi 50416 50417 LDFLAGS_JDKLIB="${LDFLAGS_JDKLIB} ${JAVA_BASE_LDFLAGS}" 50418 50419 # Set JVM_LIBS (per os) 50420 if test "x$OPENJDK_TARGET_OS" = xlinux; then 50421 JVM_LIBS="$JVM_LIBS -lm -ldl -lpthread" 50422 elif test "x$OPENJDK_TARGET_OS" = xsolaris; then 50423 # FIXME: This hard-coded path is not really proper. 50424 if test "x$OPENJDK_TARGET_CPU" = xx86_64; then 50425 SOLARIS_LIBM_LIBS="/usr/lib/amd64/libm.so.1" 50426 elif test "x$OPENJDK_TARGET_CPU" = xsparcv9; then 50427 SOLARIS_LIBM_LIBS="/usr/lib/sparcv9/libm.so.1" 50428 fi 50429 JVM_LIBS="$JVM_LIBS -lsocket -lsched -ldl $SOLARIS_LIBM_LIBS -lCrun \ 50430 -lthread -ldoor -lc -ldemangle -lnsl -lkstat -lrt" 50431 elif test "x$OPENJDK_TARGET_OS" = xmacosx; then 50432 JVM_LIBS="$JVM_LIBS -lm" 50433 elif test "x$OPENJDK_TARGET_OS" = xaix; then 50434 JVM_LIBS="$JVM_LIBS -Wl,-lC_r -lm -ldl -lpthread" 50435 elif test "x$OPENJDK_TARGET_OS" = xbsd; then 50436 JVM_LIBS="$JVM_LIBS -lm" 50437 elif test "x$OPENJDK_TARGET_OS" = xwindows; then 50438 JVM_LIBS="$JVM_LIBS kernel32.lib user32.lib gdi32.lib winspool.lib \ 50439 comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib \ 50440 wsock32.lib winmm.lib version.lib psapi.lib" 50441 fi 50442 50443 # Set JVM_ASFLAGS 50444 if test "x$OPENJDK_TARGET_OS" = xlinux; then 50445 if test "x$OPENJDK_TARGET_CPU" = xx86; then 50446 JVM_ASFLAGS="$JVM_ASFLAGS -march=i586" 50447 fi 50448 elif test "x$OPENJDK_TARGET_OS" = xmacosx; then 50449 JVM_ASFLAGS="$JVM_ASFLAGS -x assembler-with-cpp -mno-omit-leaf-frame-pointer -mstack-alignment=16" 50450 fi 50451 50452 LDFLAGS_JDKLIB="${LDFLAGS_JDKLIB} ${EXTRA_LDFLAGS_JDK}" 50453 50454 50455 50456 50457 50458 50459 50460 50461 50462 50463 50464 50465 50466 50467 50468 # Special extras... 50469 if test "x$TOOLCHAIN_TYPE" = xsolstudio; then 50470 if test "x$OPENJDK_BUILD_CPU_ARCH" = "xsparc"; then 50471 OPENJDK_BUILD_CFLAGS_JDKLIB_EXTRA="${OPENJDK_BUILD_CFLAGS_JDKLIB_EXTRA} -xregs=no%appl" 50472 OPENJDK_BUILD_CXXFLAGS_JDKLIB_EXTRA="${OPENJDK_BUILD_CXXFLAGS_JDKLIB_EXTRA} -xregs=no%appl" 50473 fi 50474 OPENJDK_BUILD_CFLAGS_JDKLIB_EXTRA="${OPENJDK_BUILD_CFLAGS_JDKLIB_EXTRA} -errtags=yes -errfmt" 50475 OPENJDK_BUILD_CXXFLAGS_JDKLIB_EXTRA="${OPENJDK_BUILD_CXXFLAGS_JDKLIB_EXTRA} -errtags=yes -errfmt" 50476 elif test "x$TOOLCHAIN_TYPE" = xxlc; then 50477 OPENJDK_BUILD_CFLAGS_JDK="${OPENJDK_BUILD_CFLAGS_JDK} -qchars=signed -qfullpath -qsaveopt" 50478 OPENJDK_BUILD_CXXFLAGS_JDK="${OPENJDK_BUILD_CXXFLAGS_JDK} -qchars=signed -qfullpath -qsaveopt" 50479 elif test "x$TOOLCHAIN_TYPE" = xgcc; then 50480 OPENJDK_BUILD_CXXSTD_CXXFLAG="-std=gnu++98" 50481 50482 50483 50484 50485 50486 50487 50488 50489 50490 50491 50492 50493 50494 50495 50496 50497 50498 50499 50500 50501 50502 50503 50504 50505 50506 50507 50508 50509 50510 50511 50512 50513 50514 50515 50516 50517 50518 50519 50520 50521 50522 50523 # Execute function body 50524 50525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the C++ compiler supports \"$OPENJDK_BUILD_CXXSTD_CXXFLAG -Werror\"" >&5 50526 $as_echo_n "checking if the C++ compiler supports \"$OPENJDK_BUILD_CXXSTD_CXXFLAG -Werror\"... " >&6; } 50527 supports=yes 50528 50529 saved_cxxflags="$CXXFLAGS" 50530 CXXFLAGS="$CXXFLAG $OPENJDK_BUILD_CXXSTD_CXXFLAG -Werror" 50531 ac_ext=cpp 50532 ac_cpp='$CXXCPP $CPPFLAGS' 50533 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 50534 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 50535 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 50536 50537 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 50538 /* end confdefs.h. */ 50539 int i; 50540 _ACEOF 50541 if ac_fn_cxx_try_compile "$LINENO"; then : 50542 50543 else 50544 supports=no 50545 fi 50546 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 50547 ac_ext=cpp 50548 ac_cpp='$CXXCPP $CPPFLAGS' 50549 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 50550 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 50551 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 50552 50553 CXXFLAGS="$saved_cxxflags" 50554 50555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supports" >&5 50556 $as_echo "$supports" >&6; } 50557 if test "x$supports" = "xyes" ; then 50558 : 50559 50560 else 50561 : 50562 OPENJDK_BUILD_CXXSTD_CXXFLAG="" 50563 fi 50564 50565 50566 50567 50568 50569 50570 50571 50572 50573 50574 50575 50576 OPENJDK_BUILD_CXXFLAGS_JDK="${OPENJDK_BUILD_CXXFLAGS_JDK} ${OPENJDK_BUILD_CXXSTD_CXXFLAG}" 50577 OPENJDK_BUILD_JVM_CFLAGS="${OPENJDK_BUILD_JVM_CFLAGS} ${OPENJDK_BUILD_CXXSTD_CXXFLAG}" 50578 50579 fi 50580 if test "x$OPENJDK_TARGET_OS" = xsolaris; then 50581 OPENJDK_BUILD_CFLAGS_JDK="${OPENJDK_BUILD_CFLAGS_JDK} -D__solaris__" 50582 OPENJDK_BUILD_CXXFLAGS_JDK="${OPENJDK_BUILD_CXXFLAGS_JDK} -D__solaris__" 50583 fi 50584 50585 if test "x$OPENJDK_TARGET_OS" = xsolaris; then 50586 OPENJDK_BUILD_CFLAGS_JDK="${OPENJDK_BUILD_CFLAGS_JDK} -D__solaris__" 50587 OPENJDK_BUILD_CXXFLAGS_JDK="${OPENJDK_BUILD_CXXFLAGS_JDK} -D__solaris__" 50588 fi 50589 50590 OPENJDK_BUILD_CFLAGS_JDK="${OPENJDK_BUILD_CFLAGS_JDK} ${OPENJDK_BUILD_EXTRA_CFLAGS}" 50591 OPENJDK_BUILD_CXXFLAGS_JDK="${OPENJDK_BUILD_CXXFLAGS_JDK} ${OPENJDK_BUILD_EXTRA_CXXFLAGS}" 50592 OPENJDK_BUILD_LDFLAGS_JDK="${OPENJDK_BUILD_LDFLAGS_JDK} ${OPENJDK_BUILD_EXTRA_LDFLAGS}" 50593 50594 ############################################################################### 50595 # 50596 # Now setup the CFLAGS and LDFLAGS for the JDK build. 50597 # Later we will also have CFLAGS and LDFLAGS for the hotspot subrepo build. 50598 # 50599 50600 # Setup compiler/platform specific flags into 50601 # OPENJDK_BUILD_CFLAGS_JDK - C Compiler flags 50602 # OPENJDK_BUILD_CXXFLAGS_JDK - C++ Compiler flags 50603 # OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK - common to C and C++ 50604 if test "x$TOOLCHAIN_TYPE" = xgcc; then 50605 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS -D_GNU_SOURCE" 50606 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS -D_REENTRANT" 50607 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS -fcheck-new" 50608 if test "x$OPENJDK_BUILD_CPU" = xx86; then 50609 # Force compatibility with i586 on 32 bit intel platforms. 50610 OPENJDK_BUILD_COMMON_CCXXFLAGS="${OPENJDK_BUILD_COMMON_CCXXFLAGS} -march=i586" 50611 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS -march=i586" 50612 fi 50613 OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK="$OPENJDK_BUILD_COMMON_CCXXFLAGS $OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK -Wall -Wextra -Wno-unused -Wno-unused-parameter -Wformat=2 \ 50614 -pipe -D_GNU_SOURCE -D_REENTRANT -D_LARGEFILE64_SOURCE" 50615 case $OPENJDK_BUILD_CPU_ARCH in 50616 arm ) 50617 # on arm we don't prevent gcc to omit frame pointer but do prevent strict aliasing 50618 OPENJDK_BUILD_CFLAGS_JDK="${OPENJDK_BUILD_CFLAGS_JDK} -fno-strict-aliasing" 50619 ;; 50620 ppc ) 50621 # on ppc we don't prevent gcc to omit frame pointer but do prevent strict aliasing 50622 OPENJDK_BUILD_CFLAGS_JDK="${OPENJDK_BUILD_CFLAGS_JDK} -fno-strict-aliasing" 50623 ;; 50624 s390 ) 50625 OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK="$OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK -fno-omit-frame-pointer -mbackchain -march=z10" 50626 OPENJDK_BUILD_CFLAGS_JDK="${OPENJDK_BUILD_CFLAGS_JDK} -fno-strict-aliasing" 50627 ;; 50628 * ) 50629 OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK="$OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK -fno-omit-frame-pointer" 50630 OPENJDK_BUILD_CFLAGS_JDK="${OPENJDK_BUILD_CFLAGS_JDK} -fno-strict-aliasing" 50631 ;; 50632 esac 50633 50634 50635 50636 50637 50638 50639 50640 50641 50642 50643 50644 50645 50646 50647 50648 50649 50650 50651 50652 50653 50654 50655 50656 50657 50658 50659 50660 50661 50662 50663 50664 50665 50666 50667 50668 50669 50670 50671 50672 50673 50674 50675 50676 50677 50678 50679 50680 50681 50682 50683 50684 50685 50686 50687 # Execute function body 50688 50689 # Need to assign to a variable since m4 is blocked from modifying parts in []. 50690 REFERENCE_VERSION=6 50691 50692 if [[ "$REFERENCE_VERSION" =~ (.*\.){4} ]] ; then 50693 as_fn_error $? "Internal error: Cannot compare to 6, only four parts (W.X.Y.Z) is supported" "$LINENO" 5 50694 fi 50695 50696 if [[ "$REFERENCE_VERSION" =~ [0-9]{6} ]] ; then 50697 as_fn_error $? "Internal error: Cannot compare to 6, only parts < 99999 is supported" "$LINENO" 5 50698 fi 50699 50700 # Version comparison method inspired by http://stackoverflow.com/a/24067243 50701 COMPARABLE_REFERENCE_VERSION=`$AWK -F. '{ printf("%05d%05d%05d%05d\n", $1, $2, $3, $4) }' <<< "$REFERENCE_VERSION"` 50702 50703 if test $OPENJDK_BUILD_COMPARABLE_ACTUAL_VERSION -ge $COMPARABLE_REFERENCE_VERSION ; then 50704 : 50705 50706 # These flags are required for GCC 6 builds as undefined behaviour in OpenJDK code 50707 # runs afoul of the more aggressive versions of these optimisations. 50708 # Notably, value range propagation now assumes that the this pointer of C++ 50709 # member functions is non-null. 50710 NO_DELETE_NULL_POINTER_CHECKS_CFLAG="-fno-delete-null-pointer-checks" 50711 NO_LIFETIME_DSE_CFLAG="-fno-lifetime-dse" 50712 { $as_echo "$as_me:${as_lineno-$LINENO}: GCC >= 6 detected; adding ${NO_DELETE_NULL_POINTER_CHECKS_CFLAG} and ${NO_LIFETIME_DSE_CFLAG}" >&5 50713 $as_echo "$as_me: GCC >= 6 detected; adding ${NO_DELETE_NULL_POINTER_CHECKS_CFLAG} and ${NO_LIFETIME_DSE_CFLAG}" >&6;} 50714 OPENJDK_BUILD_CFLAGS_JDK="$OPENJDK_BUILD_CFLAGS_JDK ${NO_DELETE_NULL_POINTER_CHECKS_CFLAG} ${NO_LIFETIME_DSE_CFLAG}" 50715 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS ${NO_DELETE_NULL_POINTER_CHECKS_CFLAG} ${NO_LIFETIME_DSE_CFLAG}" 50716 50717 else 50718 : 50719 50720 fi 50721 50722 50723 50724 50725 50726 50727 50728 50729 50730 50731 50732 50733 50734 50735 elif test "x$TOOLCHAIN_TYPE" = xclang; then 50736 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS -D_GNU_SOURCE" 50737 50738 # Restrict the debug information created by Clang to avoid 50739 # too big object files and speed the build up a little bit 50740 # (see http://llvm.org/bugs/show_bug.cgi?id=7554) 50741 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS -flimit-debug-info" 50742 if test "x$OPENJDK_BUILD_OS" = xlinux; then 50743 if test "x$OPENJDK_BUILD_CPU" = xx86; then 50744 # Force compatibility with i586 on 32 bit intel platforms. 50745 OPENJDK_BUILD_COMMON_CCXXFLAGS="${OPENJDK_BUILD_COMMON_CCXXFLAGS} -march=i586" 50746 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS -march=i586" 50747 fi 50748 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS -Wno-sometimes-uninitialized" 50749 OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK="$OPENJDK_BUILD_COMMON_CCXXFLAGS $OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK -Wall -Wextra -Wno-unused -Wno-unused-parameter -Wformat=2 \ 50750 -pipe -D_GNU_SOURCE -D_REENTRANT -D_LARGEFILE64_SOURCE" 50751 case $OPENJDK_BUILD_CPU_ARCH in 50752 ppc ) 50753 # on ppc we don't prevent gcc to omit frame pointer but do prevent strict aliasing 50754 OPENJDK_BUILD_CFLAGS_JDK="${OPENJDK_BUILD_CFLAGS_JDK} -fno-strict-aliasing" 50755 ;; 50756 * ) 50757 OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK="$OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK -fno-omit-frame-pointer" 50758 OPENJDK_BUILD_CFLAGS_JDK="${OPENJDK_BUILD_CFLAGS_JDK} -fno-strict-aliasing" 50759 ;; 50760 esac 50761 fi 50762 elif test "x$TOOLCHAIN_TYPE" = xsolstudio; then 50763 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS -DSPARC_WORKS" 50764 OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK="$OPENJDK_BUILD_COMMON_CCXXFLAGS $OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK -DTRACING -DMACRO_MEMSYS_OPS -DBREAKPTS" 50765 if test "x$OPENJDK_BUILD_CPU_ARCH" = xx86; then 50766 OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK="$OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK -DcpuIntel -Di586 -D$OPENJDK_BUILD_CPU_LEGACY_LIB" 50767 fi 50768 50769 OPENJDK_BUILD_CFLAGS_JDK="$OPENJDK_BUILD_CFLAGS_JDK -xc99=%none -xCC -errshort=tags -Xa -v -mt -W0,-noglobal" 50770 OPENJDK_BUILD_CXXFLAGS_JDK="$OPENJDK_BUILD_CXXFLAGS_JDK -errtags=yes +w -mt -features=no%except -DCC_NOEX -norunpath -xnolib" 50771 elif test "x$TOOLCHAIN_TYPE" = xxlc; then 50772 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS -D_REENTRANT -D__STDC_FORMAT_MACROS" 50773 OPENJDK_BUILD_CFLAGS_JDK="$OPENJDK_BUILD_CFLAGS_JDK -D_GNU_SOURCE -D_REENTRANT -D_LARGEFILE64_SOURCE -DSTDC" 50774 OPENJDK_BUILD_CXXFLAGS_JDK="$OPENJDK_BUILD_CXXFLAGS_JDK -D_GNU_SOURCE -D_REENTRANT -D_LARGEFILE64_SOURCE -DSTDC" 50775 elif test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 50776 OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK="$OPENJDK_BUILD_COMMON_CCXXFLAGS $OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK \ 50777 -MD -Zc:wchar_t- -W3 -wd4800 \ 50778 -DWIN32_LEAN_AND_MEAN \ 50779 -D_CRT_SECURE_NO_DEPRECATE -D_CRT_NONSTDC_NO_DEPRECATE \ 50780 -D_WINSOCK_DEPRECATED_NO_WARNINGS \ 50781 -DWIN32 -DIAL" 50782 if test "x$OPENJDK_BUILD_CPU" = xx86_64; then 50783 OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK="$OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK -D_AMD64_ -Damd64" 50784 else 50785 OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK="$OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK -D_X86_ -Dx86" 50786 fi 50787 # If building with Visual Studio 2010, we can still use _STATIC_CPPLIB to 50788 # avoid bundling msvcpNNN.dll. Doesn't work with newer versions of visual 50789 # studio. 50790 if test "x$TOOLCHAIN_VERSION" = "x2010"; then 50791 STATIC_CPPLIB_FLAGS="-D_STATIC_CPPLIB -D_DISABLE_DEPRECATE_STATIC_CPPLIB" 50792 OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK="$OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK $STATIC_CPPLIB_FLAGS" 50793 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS $STATIC_CPPLIB_FLAGS" 50794 fi 50795 fi 50796 50797 ############################################################################### 50798 50799 # Adjust flags according to debug level. 50800 case $DEBUG_LEVEL in 50801 fastdebug | slowdebug ) 50802 OPENJDK_BUILD_CFLAGS_JDK="$OPENJDK_BUILD_CFLAGS_JDK $CFLAGS_DEBUG_SYMBOLS $CFLAGS_DEBUG_OPTIONS" 50803 OPENJDK_BUILD_CXXFLAGS_JDK="$OPENJDK_BUILD_CXXFLAGS_JDK $CXXFLAGS_DEBUG_SYMBOLS $CXXFLAGS_DEBUG_OPTIONS" 50804 ;; 50805 release ) 50806 ;; 50807 * ) 50808 as_fn_error $? "Unrecognized \$DEBUG_LEVEL: $DEBUG_LEVEL" "$LINENO" 5 50809 ;; 50810 esac 50811 50812 # Set some common defines. These works for all compilers, but assume 50813 # -D is universally accepted. 50814 50815 # Setup endianness 50816 if test "x$OPENJDK_BUILD_CPU_ENDIAN" = xlittle; then 50817 # The macro _LITTLE_ENDIAN needs to be defined the same to avoid the 50818 # Sun C compiler warning message: warning: macro redefined: _LITTLE_ENDIAN 50819 # (The Solaris X86 system defines this in file /usr/include/sys/isa_defs.h). 50820 # Note: -Dmacro is the same as #define macro 1 50821 # -Dmacro= is the same as #define macro 50822 if test "x$OPENJDK_BUILD_OS" = xsolaris; then 50823 OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK="$OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK -D_LITTLE_ENDIAN=" 50824 else 50825 OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK="$OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK -D_LITTLE_ENDIAN" 50826 fi 50827 else 50828 # Same goes for _BIG_ENDIAN. Do we really need to set *ENDIAN on Solaris if they 50829 # are defined in the system? 50830 if test "x$OPENJDK_BUILD_OS" = xsolaris; then 50831 OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK="$OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK -D_BIG_ENDIAN=" 50832 else 50833 OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK="$OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK -D_BIG_ENDIAN" 50834 fi 50835 fi 50836 50837 # Setup target OS define. Use OS target name but in upper case. 50838 OPENJDK_BUILD_OS_UPPERCASE=`$ECHO $OPENJDK_BUILD_OS | $TR 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` 50839 OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK="$OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK -D$OPENJDK_BUILD_OS_UPPERCASE" 50840 50841 # Setup target CPU 50842 OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK="$OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK \ 50843 $OPENJDK_BUILD_ADD_LP64 \ 50844 -DARCH='\"$OPENJDK_BUILD_CPU_LEGACY\"' -D$OPENJDK_BUILD_CPU_LEGACY" 50845 50846 # Setup debug/release defines 50847 if test "x$DEBUG_LEVEL" = xrelease; then 50848 OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK="$OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK -DNDEBUG" 50849 if test "x$OPENJDK_BUILD_OS" = xsolaris; then 50850 OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK="$OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK -DTRIMMED" 50851 fi 50852 else 50853 OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK="$OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK -DDEBUG" 50854 fi 50855 50856 # Set some additional per-OS defines. 50857 if test "x$OPENJDK_BUILD_OS" = xlinux; then 50858 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS -DLINUX" 50859 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS -pipe $PICFLAG -fno-rtti -fno-exceptions \ 50860 -fvisibility=hidden -fno-strict-aliasing -fno-omit-frame-pointer" 50861 elif test "x$OPENJDK_BUILD_OS" = xsolaris; then 50862 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS -DSOLARIS" 50863 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS -template=no%extdef -features=no%split_init \ 50864 -D_Crun_inline_placement -library=%none $PICFLAG -mt -features=no%except" 50865 elif test "x$OPENJDK_BUILD_OS" = xmacosx; then 50866 OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK="$OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK -D_ALLBSD_SOURCE -D_DARWIN_UNLIMITED_SELECT" 50867 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS -D_ALLBSD_SOURCE" 50868 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS -D_DARWIN_C_SOURCE -D_XOPEN_SOURCE" 50869 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS -fno-rtti -fno-exceptions -fvisibility=hidden \ 50870 -mno-omit-leaf-frame-pointer -mstack-alignment=16 -pipe -fno-strict-aliasing \ 50871 -DMAC_OS_X_VERSION_MAX_ALLOWED=1070 -mmacosx-version-min=10.7.0 \ 50872 -fno-omit-frame-pointer" 50873 elif test "x$OPENJDK_BUILD_OS" = xaix; then 50874 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS -DAIX" 50875 # We may need '-qminimaltoc' or '-qpic=large -bbigtoc' if the TOC overflows. 50876 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS -qtune=balanced \ 50877 -qalias=noansi -qstrict -qtls=default -qlanglvl=c99vla \ 50878 -qlanglvl=noredefmac -qnortti -qnoeh -qignerrno" 50879 elif test "x$OPENJDK_BUILD_OS" = xbsd; then 50880 OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK="$OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK -D_ALLBSD_SOURCE" 50881 elif test "x$OPENJDK_BUILD_OS" = xwindows; then 50882 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS -D_WINDOWS -DWIN32 -D_JNI_IMPLEMENTATION_" 50883 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS -nologo -W3 -MD -MP" 50884 fi 50885 50886 # Set some additional per-CPU defines. 50887 if test "x$OPENJDK_BUILD_OS-$OPENJDK_BUILD_CPU" = xwindows-x86; then 50888 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS -arch:IA32" 50889 elif test "x$OPENJDK_BUILD_CPU" = xsparcv9; then 50890 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS -xarch=sparc" 50891 elif test "x$OPENJDK_BUILD_CPU" = xppc64; then 50892 if test "x$OPENJDK_BUILD_OS" = xlinux; then 50893 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS -minsert-sched-nops=regroup_exact -mno-multiple -mno-string" 50894 # fixes `relocation truncated to fit' error for gcc 4.1. 50895 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS -mminimal-toc" 50896 # Use ppc64 instructions, but schedule for power5 50897 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS -mcpu=powerpc64 -mtune=power5" 50898 elif test "x$OPENJDK_BUILD_OS" = xaix; then 50899 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS -qarch=ppc64" 50900 fi 50901 elif test "x$OPENJDK_BUILD_CPU" = xppc64le; then 50902 if test "x$OPENJDK_BUILD_OS" = xlinux; then 50903 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS -minsert-sched-nops=regroup_exact -mno-multiple -mno-string" 50904 # Little endian machine uses ELFv2 ABI. 50905 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS -DABI_ELFv2" 50906 # Use Power8, this is the first CPU to support PPC64 LE with ELFv2 ABI. 50907 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS -mcpu=power8 -mtune=power8" 50908 fi 50909 elif test "x$OPENJDK_BUILD_CPU" = xs390x; then 50910 if test "x$OPENJDK_BUILD_OS" = xlinux; then 50911 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS -mbackchain -march=z10" 50912 fi 50913 fi 50914 50915 if test "x$OPENJDK_BUILD_CPU_ENDIAN" = xlittle; then 50916 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS -DVM_LITTLE_ENDIAN" 50917 fi 50918 50919 if test "x$OPENJDK_BUILD_CPU_BITS" = x64; then 50920 if test "x$OPENJDK_BUILD_OS" != xsolaris && test "x$OPENJDK_BUILD_OS" != xaix; then 50921 # Solaris does not have _LP64=1 in the old build. 50922 # xlc on AIX defines _LP64=1 by default and issues a warning if we redefine it. 50923 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS -D_LP64=1" 50924 fi 50925 fi 50926 50927 # Set OPENJDK_BUILD_JVM_CFLAGS warning handling 50928 if test "x$OPENJDK_BUILD_OS" = xlinux; then 50929 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS -Wpointer-arith -Wsign-compare -Wunused-function \ 50930 -Wunused-value -Woverloaded-virtual" 50931 50932 if test "x$TOOLCHAIN_TYPE" = xgcc; then 50933 50934 50935 50936 50937 50938 50939 50940 50941 50942 50943 50944 50945 50946 50947 50948 50949 50950 50951 50952 50953 50954 50955 50956 50957 50958 50959 50960 50961 50962 50963 50964 50965 50966 50967 50968 50969 50970 50971 50972 50973 50974 50975 50976 50977 50978 50979 50980 50981 50982 50983 50984 50985 50986 50987 # Execute function body 50988 50989 # Need to assign to a variable since m4 is blocked from modifying parts in []. 50990 REFERENCE_VERSION=4.8 50991 50992 if [[ "$REFERENCE_VERSION" =~ (.*\.){4} ]] ; then 50993 as_fn_error $? "Internal error: Cannot compare to 4.8, only four parts (W.X.Y.Z) is supported" "$LINENO" 5 50994 fi 50995 50996 if [[ "$REFERENCE_VERSION" =~ [0-9]{6} ]] ; then 50997 as_fn_error $? "Internal error: Cannot compare to 4.8, only parts < 99999 is supported" "$LINENO" 5 50998 fi 50999 51000 # Version comparison method inspired by http://stackoverflow.com/a/24067243 51001 COMPARABLE_REFERENCE_VERSION=`$AWK -F. '{ printf("%05d%05d%05d%05d\n", $1, $2, $3, $4) }' <<< "$REFERENCE_VERSION"` 51002 51003 if test $OPENJDK_BUILD_COMPARABLE_ACTUAL_VERSION -ge $COMPARABLE_REFERENCE_VERSION ; then 51004 : 51005 51006 # These flags either do not work or give spurious warnings prior to gcc 4.8. 51007 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS -Wno-format-zero-length -Wtype-limits -Wuninitialized" 51008 51009 51010 else 51011 : 51012 51013 fi 51014 51015 51016 51017 51018 51019 51020 51021 51022 51023 51024 51025 51026 51027 51028 fi 51029 if ! [[ " $JVM_VARIANTS " =~ " zero " ]] && ! [[ " $JVM_VARIANTS " =~ " zeroshark " ]] ; then 51030 # Non-zero builds have stricter warnings 51031 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS -Wreturn-type -Wundef -Wformat=2" 51032 else 51033 if test "x$TOOLCHAIN_TYPE" = xclang; then 51034 # Some versions of llvm do not like -Wundef 51035 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS -Wno-undef" 51036 fi 51037 fi 51038 elif test "x$OPENJDK_BUILD_OS" = xmacosx; then 51039 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS -Wno-deprecated -Wpointer-arith \ 51040 -Wsign-compare -Wundef -Wunused-function -Wformat=2" 51041 fi 51042 51043 # Additional macosx handling 51044 if test "x$OPENJDK_BUILD_OS" = xmacosx; then 51045 # Setting these parameters makes it an error to link to macosx APIs that are 51046 # newer than the given OS version and makes the linked binaries compatible 51047 # even if built on a newer version of the OS. 51048 # The expected format is X.Y.Z 51049 MACOSX_VERSION_MIN=10.7.0 51050 51051 51052 # The macro takes the version with no dots, ex: 1070 51053 # Let the flags variables get resolved in make for easier override on make 51054 # command line. 51055 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)" 51056 OPENJDK_BUILD_LDFLAGS_JDK="$OPENJDK_BUILD_LDFLAGS_JDK -mmacosx-version-min=\$(MACOSX_VERSION_MIN)" 51057 fi 51058 51059 # Setup some hard coded includes 51060 OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK="$OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK \ 51061 -I\$(SUPPORT_OUTPUTDIR)/modules_include/java.base \ 51062 -I${JDK_TOPDIR}/src/java.base/share/native/include \ 51063 -I${JDK_TOPDIR}/src/java.base/$OPENJDK_BUILD_OS/native/include \ 51064 -I${JDK_TOPDIR}/src/java.base/$OPENJDK_BUILD_OS_TYPE/native/include \ 51065 -I${JDK_TOPDIR}/src/java.base/share/native/libjava \ 51066 -I${JDK_TOPDIR}/src/java.base/$OPENJDK_BUILD_OS_TYPE/native/libjava" 51067 51068 # The shared libraries are compiled using the picflag. 51069 OPENJDK_BUILD_CFLAGS_JDKLIB="$OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK \ 51070 $OPENJDK_BUILD_CFLAGS_JDK $OPENJDK_BUILD_EXTRA_CFLAGS_JDK $PICFLAG $OPENJDK_BUILD_CFLAGS_JDKLIB_EXTRA" 51071 OPENJDK_BUILD_CXXFLAGS_JDKLIB="$OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK \ 51072 $OPENJDK_BUILD_CXXFLAGS_JDK $OPENJDK_BUILD_EXTRA_CXXFLAGS_JDK $PICFLAG $OPENJDK_BUILD_CXXFLAGS_JDKLIB_EXTRA" 51073 51074 # Executable flags 51075 OPENJDK_BUILD_CFLAGS_JDKEXE="$OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK $OPENJDK_BUILD_CFLAGS_JDK $OPENJDK_BUILD_EXTRA_CFLAGS_JDK" 51076 OPENJDK_BUILD_CXXFLAGS_JDKEXE="$OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK $OPENJDK_BUILD_CXXFLAGS_JDK $OPENJDK_BUILD_EXTRA_CXXFLAGS_JDK" 51077 51078 51079 51080 51081 51082 51083 # Setup LDFLAGS et al. 51084 # 51085 51086 if test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 51087 LDFLAGS_MICROSOFT="-nologo -opt:ref" 51088 OPENJDK_BUILD_LDFLAGS_JDK="$OPENJDK_BUILD_LDFLAGS_JDK $LDFLAGS_MICROSOFT -incremental:no" 51089 OPENJDK_BUILD_JVM_LDFLAGS="$OPENJDK_BUILD_JVM_LDFLAGS $LDFLAGS_MICROSOFT -opt:icf,8 -subsystem:windows -base:0x8000000" 51090 if test "x$OPENJDK_BUILD_CPU_BITS" = "x32"; then 51091 LDFLAGS_SAFESH="-safeseh" 51092 OPENJDK_BUILD_LDFLAGS_JDK="$OPENJDK_BUILD_LDFLAGS_JDK $LDFLAGS_SAFESH" 51093 OPENJDK_BUILD_JVM_LDFLAGS="$OPENJDK_BUILD_JVM_LDFLAGS $LDFLAGS_SAFESH" 51094 # NOTE: Old build added -machine. Probably not needed. 51095 OPENJDK_BUILD_JVM_LDFLAGS="$OPENJDK_BUILD_JVM_LDFLAGS -machine:I386" 51096 else 51097 OPENJDK_BUILD_JVM_LDFLAGS="$OPENJDK_BUILD_JVM_LDFLAGS -machine:AMD64" 51098 fi 51099 elif test "x$TOOLCHAIN_TYPE" = xclang; then 51100 OPENJDK_BUILD_JVM_LDFLAGS="$OPENJDK_BUILD_JVM_LDFLAGS -mno-omit-leaf-frame-pointer -mstack-alignment=16 -stdlib=libstdc++ -fPIC" 51101 if test "x$OPENJDK_BUILD_OS" = xmacosx; then 51102 # FIXME: We should really generalize SET_SHARED_LIBRARY_ORIGIN instead. 51103 OPENJDK_BUILD_JVM_LDFLAGS="$OPENJDK_BUILD_JVM_LDFLAGS -Wl,-rpath,@loader_path/. -Wl,-rpath,@loader_path/.." 51104 fi 51105 elif test "x$TOOLCHAIN_TYPE" = xgcc; then 51106 # If this is a --hash-style=gnu system, use --hash-style=both, why? 51107 # We have previously set HAS_GNU_HASH if this is the case 51108 if test -n "$HAS_GNU_HASH"; then 51109 OPENJDK_BUILD_LDFLAGS_HASH_STYLE="-Wl,--hash-style=both" 51110 OPENJDK_BUILD_LDFLAGS_JDK="${OPENJDK_BUILD_LDFLAGS_JDK} $OPENJDK_BUILD_LDFLAGS_HASH_STYLE" 51111 OPENJDK_BUILD_JVM_LDFLAGS="$OPENJDK_BUILD_JVM_LDFLAGS $OPENJDK_BUILD_LDFLAGS_HASH_STYLE" 51112 fi 51113 if test "x$OPENJDK_BUILD_OS" = xmacosx; then 51114 OPENJDK_BUILD_JVM_LDFLAGS="$OPENJDK_BUILD_JVM_LDFLAGS -Wl,-rpath,@loader_path/. -Wl,-rpath,@loader_path/.." 51115 fi 51116 if test "x$OPENJDK_BUILD_OS" = xlinux; then 51117 # And since we now know that the linker is gnu, then add -z defs, to forbid 51118 # undefined symbols in object files. 51119 LDFLAGS_NO_UNDEF_SYM="-Wl,-z,defs" 51120 OPENJDK_BUILD_LDFLAGS_JDK="${OPENJDK_BUILD_LDFLAGS_JDK} $LDFLAGS_NO_UNDEF_SYM" 51121 OPENJDK_BUILD_JVM_LDFLAGS="$OPENJDK_BUILD_JVM_LDFLAGS $LDFLAGS_NO_UNDEF_SYM" 51122 LDFLAGS_NO_EXEC_STACK="-Wl,-z,noexecstack" 51123 OPENJDK_BUILD_JVM_LDFLAGS="$OPENJDK_BUILD_JVM_LDFLAGS $LDFLAGS_NO_EXEC_STACK" 51124 if test "x$OPENJDK_BUILD_CPU" = xx86; then 51125 OPENJDK_BUILD_JVM_LDFLAGS="$OPENJDK_BUILD_JVM_LDFLAGS -march=i586" 51126 fi 51127 case $DEBUG_LEVEL in 51128 release ) 51129 # tell linker to optimize libraries. 51130 # Should this be supplied to the OSS linker as well? 51131 LDFLAGS_DEBUGLEVEL_release="-Wl,-O1" 51132 OPENJDK_BUILD_LDFLAGS_JDK="${OPENJDK_BUILD_LDFLAGS_JDK} $LDFLAGS_DEBUGLEVEL_release" 51133 OPENJDK_BUILD_JVM_LDFLAGS="$OPENJDK_BUILD_JVM_LDFLAGS $LDFLAGS_DEBUGLEVEL_release" 51134 if test "x$HAS_LINKER_RELRO" = "xtrue"; then 51135 OPENJDK_BUILD_JVM_LDFLAGS="$OPENJDK_BUILD_JVM_LDFLAGS $LINKER_RELRO_FLAG" 51136 fi 51137 ;; 51138 slowdebug ) 51139 # Hotspot always let the linker optimize 51140 OPENJDK_BUILD_JVM_LDFLAGS="$OPENJDK_BUILD_JVM_LDFLAGS -Wl,-O1" 51141 if test "x$HAS_LINKER_NOW" = "xtrue"; then 51142 # do relocations at load 51143 OPENJDK_BUILD_LDFLAGS_JDK="$OPENJDK_BUILD_LDFLAGS_JDK $LINKER_NOW_FLAG" 51144 OPENJDK_BUILD_LDFLAGS_CXX_JDK="$OPENJDK_BUILD_LDFLAGS_CXX_JDK $LINKER_NOW_FLAG" 51145 OPENJDK_BUILD_JVM_LDFLAGS="$OPENJDK_BUILD_JVM_LDFLAGS $LINKER_NOW_FLAG" 51146 fi 51147 if test "x$HAS_LINKER_RELRO" = "xtrue"; then 51148 # mark relocations read only 51149 OPENJDK_BUILD_LDFLAGS_JDK="$OPENJDK_BUILD_LDFLAGS_JDK $LINKER_RELRO_FLAG" 51150 OPENJDK_BUILD_LDFLAGS_CXX_JDK="$OPENJDK_BUILD_LDFLAGS_CXX_JDK $LINKER_RELRO_FLAG" 51151 OPENJDK_BUILD_JVM_LDFLAGS="$OPENJDK_BUILD_JVM_LDFLAGS $LINKER_RELRO_FLAG" 51152 fi 51153 ;; 51154 fastdebug ) 51155 # Hotspot always let the linker optimize 51156 OPENJDK_BUILD_JVM_LDFLAGS="$OPENJDK_BUILD_JVM_LDFLAGS -Wl,-O1" 51157 if test "x$HAS_LINKER_RELRO" = "xtrue"; then 51158 # mark relocations read only 51159 OPENJDK_BUILD_LDFLAGS_JDK="$OPENJDK_BUILD_LDFLAGS_JDK $LINKER_RELRO_FLAG" 51160 OPENJDK_BUILD_LDFLAGS_CXX_JDK="$OPENJDK_BUILD_LDFLAGS_CXX_JDK $LINKER_RELRO_FLAG" 51161 OPENJDK_BUILD_JVM_LDFLAGS="$OPENJDK_BUILD_JVM_LDFLAGS $LINKER_RELRO_FLAG" 51162 fi 51163 ;; 51164 * ) 51165 as_fn_error $? "Unrecognized \$DEBUG_LEVEL: $DEBUG_LEVEL" "$LINENO" 5 51166 ;; 51167 esac 51168 fi 51169 elif test "x$TOOLCHAIN_TYPE" = xsolstudio; then 51170 LDFLAGS_SOLSTUDIO="-Wl,-z,defs" 51171 OPENJDK_BUILD_LDFLAGS_JDK="$OPENJDK_BUILD_LDFLAGS_JDK $LDFLAGS_SOLSTUDIO -ztext" 51172 LDFLAGS_CXX_SOLSTUDIO="-norunpath" 51173 OPENJDK_BUILD_LDFLAGS_CXX_JDK="$OPENJDK_BUILD_LDFLAGS_CXX_JDK $LDFLAGS_CXX_SOLSTUDIO -xnolib" 51174 OPENJDK_BUILD_JVM_LDFLAGS="$OPENJDK_BUILD_JVM_LDFLAGS $LDFLAGS_SOLSTUDIO -library=%none -mt $LDFLAGS_CXX_SOLSTUDIO -z noversion" 51175 if test "x$OPENJDK_BUILD_CPU_ARCH" = "xsparc"; then 51176 OPENJDK_BUILD_JVM_LDFLAGS="$OPENJDK_BUILD_JVM_LDFLAGS -xarch=sparc" 51177 fi 51178 elif test "x$TOOLCHAIN_TYPE" = xxlc; then 51179 LDFLAGS_XLC="-b64 -brtl -bnolibpath -bexpall -bernotok" 51180 OPENJDK_BUILD_LDFLAGS_JDK="${OPENJDK_BUILD_LDFLAGS_JDK} $LDFLAGS_XLC" 51181 OPENJDK_BUILD_JVM_LDFLAGS="$OPENJDK_BUILD_JVM_LDFLAGS $LDFLAGS_XLC" 51182 fi 51183 51184 # Customize LDFLAGS for executables 51185 51186 OPENJDK_BUILD_LDFLAGS_JDKEXE="${OPENJDK_BUILD_LDFLAGS_JDK}" 51187 51188 if test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 51189 if test "x$OPENJDK_BUILD_CPU_BITS" = "x64"; then 51190 LDFLAGS_STACK_SIZE=1048576 51191 else 51192 LDFLAGS_STACK_SIZE=327680 51193 fi 51194 OPENJDK_BUILD_LDFLAGS_JDKEXE="${OPENJDK_BUILD_LDFLAGS_JDKEXE} /STACK:$LDFLAGS_STACK_SIZE" 51195 elif test "x$OPENJDK_BUILD_OS" = xlinux; then 51196 OPENJDK_BUILD_LDFLAGS_JDKEXE="$OPENJDK_BUILD_LDFLAGS_JDKEXE -Wl,--allow-shlib-undefined" 51197 fi 51198 51199 OPENJDK_BUILD_LDFLAGS_JDKEXE="${OPENJDK_BUILD_LDFLAGS_JDKEXE} ${OPENJDK_BUILD_EXTRA_LDFLAGS_JDK}" 51200 51201 # Customize LDFLAGS for libs 51202 OPENJDK_BUILD_LDFLAGS_JDKLIB="${OPENJDK_BUILD_LDFLAGS_JDK}" 51203 51204 OPENJDK_BUILD_LDFLAGS_JDKLIB="${OPENJDK_BUILD_LDFLAGS_JDKLIB} ${SHARED_LIBRARY_FLAGS}" 51205 if test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 51206 OPENJDK_BUILD_JAVA_BASE_LDFLAGS="${OPENJDK_BUILD_JAVA_BASE_LDFLAGS} \ 51207 -libpath:${OUTPUT_ROOT}/support/modules_libs/java.base" 51208 OPENJDK_BUILD_JDKLIB_LIBS="" 51209 else 51210 OPENJDK_BUILD_JAVA_BASE_LDFLAGS="${OPENJDK_BUILD_JAVA_BASE_LDFLAGS} \ 51211 -L\$(SUPPORT_OUTPUTDIR)/modules_libs/java.base\$(OPENJDK_BUILD_CPU_LIBDIR)" 51212 51213 if test "xBUILD" = "xTARGET"; then 51214 # On some platforms (mac) the linker warns about non existing -L dirs. 51215 # Add server first if available. Linking aginst client does not always produce the same results. 51216 # Only add client/minimal dir if client/minimal is being built. 51217 # Default to server for other variants. 51218 if [[ " $JVM_VARIANTS " =~ " server " ]] ; then 51219 OPENJDK_BUILD_JAVA_BASE_LDFLAGS="${OPENJDK_BUILD_JAVA_BASE_LDFLAGS} -L\$(SUPPORT_OUTPUTDIR)/modules_libs/java.base\$(OPENJDK_BUILD_CPU_LIBDIR)/server" 51220 elif [[ " $JVM_VARIANTS " =~ " client " ]] ; then 51221 OPENJDK_BUILD_JAVA_BASE_LDFLAGS="${OPENJDK_BUILD_JAVA_BASE_LDFLAGS} -L\$(SUPPORT_OUTPUTDIR)/modules_libs/java.base\$(OPENJDK_BUILD_CPU_LIBDIR)/client" 51222 elif [[ " $JVM_VARIANTS " =~ " minimal " ]] ; then 51223 OPENJDK_BUILD_JAVA_BASE_LDFLAGS="${OPENJDK_BUILD_JAVA_BASE_LDFLAGS} -L\$(SUPPORT_OUTPUTDIR)/modules_libs/java.base\$(OPENJDK_BUILD_CPU_LIBDIR)/minimal" 51224 else 51225 OPENJDK_BUILD_JAVA_BASE_LDFLAGS="${OPENJDK_BUILD_JAVA_BASE_LDFLAGS} -L\$(SUPPORT_OUTPUTDIR)/modules_libs/java.base\$(OPENJDK_BUILD_CPU_LIBDIR)/server" 51226 fi 51227 elif test "xBUILD" = "xBUILD"; then 51228 # When building a buildjdk, it's always only the server variant 51229 OPENJDK_BUILD_JAVA_BASE_LDFLAGS="${OPENJDK_BUILD_JAVA_BASE_LDFLAGS} \ 51230 -L\$(SUPPORT_OUTPUTDIR)/modules_libs/java.base\$(OPENJDK_BUILD_CPU_LIBDIR)/server" 51231 fi 51232 51233 OPENJDK_BUILD_JDKLIB_LIBS="-ljava -ljvm" 51234 if test "x$TOOLCHAIN_TYPE" = xsolstudio; then 51235 OPENJDK_BUILD_JDKLIB_LIBS="$OPENJDK_BUILD_JDKLIB_LIBS -lc" 51236 fi 51237 51238 fi 51239 51240 OPENJDK_BUILD_LDFLAGS_JDKLIB="${OPENJDK_BUILD_LDFLAGS_JDKLIB} ${OPENJDK_BUILD_JAVA_BASE_LDFLAGS}" 51241 51242 # Set OPENJDK_BUILD_JVM_LIBS (per os) 51243 if test "x$OPENJDK_BUILD_OS" = xlinux; then 51244 OPENJDK_BUILD_JVM_LIBS="$OPENJDK_BUILD_JVM_LIBS -lm -ldl -lpthread" 51245 elif test "x$OPENJDK_BUILD_OS" = xsolaris; then 51246 # FIXME: This hard-coded path is not really proper. 51247 if test "x$OPENJDK_BUILD_CPU" = xx86_64; then 51248 OPENJDK_BUILD_SOLARIS_LIBM_LIBS="/usr/lib/amd64/libm.so.1" 51249 elif test "x$OPENJDK_BUILD_CPU" = xsparcv9; then 51250 OPENJDK_BUILD_SOLARIS_LIBM_LIBS="/usr/lib/sparcv9/libm.so.1" 51251 fi 51252 OPENJDK_BUILD_JVM_LIBS="$OPENJDK_BUILD_JVM_LIBS -lsocket -lsched -ldl $SOLARIS_LIBM_LIBS -lCrun \ 51253 -lthread -ldoor -lc -ldemangle -lnsl -lkstat -lrt" 51254 elif test "x$OPENJDK_BUILD_OS" = xmacosx; then 51255 OPENJDK_BUILD_JVM_LIBS="$OPENJDK_BUILD_JVM_LIBS -lm" 51256 elif test "x$OPENJDK_BUILD_OS" = xaix; then 51257 OPENJDK_BUILD_JVM_LIBS="$OPENJDK_BUILD_JVM_LIBS -Wl,-lC_r -lm -ldl -lpthread" 51258 elif test "x$OPENJDK_BUILD_OS" = xbsd; then 51259 OPENJDK_BUILD_JVM_LIBS="$OPENJDK_BUILD_JVM_LIBS -lm" 51260 elif test "x$OPENJDK_BUILD_OS" = xwindows; then 51261 OPENJDK_BUILD_JVM_LIBS="$OPENJDK_BUILD_JVM_LIBS kernel32.lib user32.lib gdi32.lib winspool.lib \ 51262 comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib \ 51263 wsock32.lib winmm.lib version.lib psapi.lib" 51264 fi 51265 51266 # Set OPENJDK_BUILD_JVM_ASFLAGS 51267 if test "x$OPENJDK_BUILD_OS" = xlinux; then 51268 if test "x$OPENJDK_BUILD_CPU" = xx86; then 51269 OPENJDK_BUILD_JVM_ASFLAGS="$OPENJDK_BUILD_JVM_ASFLAGS -march=i586" 51270 fi 51271 elif test "x$OPENJDK_BUILD_OS" = xmacosx; then 51272 OPENJDK_BUILD_JVM_ASFLAGS="$OPENJDK_BUILD_JVM_ASFLAGS -x assembler-with-cpp -mno-omit-leaf-frame-pointer -mstack-alignment=16" 51273 fi 51274 51275 OPENJDK_BUILD_LDFLAGS_JDKLIB="${OPENJDK_BUILD_LDFLAGS_JDKLIB} ${OPENJDK_BUILD_EXTRA_LDFLAGS_JDK}" 51276 51277 51278 51279 51280 51281 51282 51283 51284 51285 51286 51287 51288 51289 51290 51291 # Tests are only ever compiled for TARGET 51292 # Flags for compiling test libraries 51293 CFLAGS_TESTLIB="$COMMON_CCXXFLAGS_JDK $CFLAGS_JDK $PICFLAG $CFLAGS_JDKLIB_EXTRA" 51294 CXXFLAGS_TESTLIB="$COMMON_CCXXFLAGS_JDK $CXXFLAGS_JDK $PICFLAG $CXXFLAGS_JDKLIB_EXTRA" 51295 51296 # Flags for compiling test executables 51297 CFLAGS_TESTEXE="$COMMON_CCXXFLAGS_JDK $CFLAGS_JDK" 51298 CXXFLAGS_TESTEXE="$COMMON_CCXXFLAGS_JDK $CXXFLAGS_JDK" 51299 51300 51301 51302 51303 51304 51305 LDFLAGS_TESTLIB="$LDFLAGS_JDKLIB" 51306 LDFLAGS_TESTEXE="$LDFLAGS_JDKEXE $JAVA_BASE_LDFLAGS" 51307 51308 51309 51310 51311 51312 51313 # Some Zero and Shark settings. 51314 # ZERO_ARCHFLAG tells the compiler which mode to build for 51315 case "${OPENJDK_TARGET_CPU}" in 51316 s390) 51317 ZERO_ARCHFLAG="${COMPILER_TARGET_BITS_FLAG}31" 51318 ;; 51319 *) 51320 ZERO_ARCHFLAG="${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}" 51321 esac 51322 51323 51324 51325 51326 51327 51328 51329 51330 51331 51332 51333 51334 51335 51336 51337 51338 51339 51340 51341 51342 51343 51344 51345 51346 51347 51348 51349 51350 51351 51352 51353 51354 51355 51356 51357 51358 51359 51360 51361 51362 51363 51364 # Execute function body 51365 51366 51367 51368 51369 51370 51371 51372 51373 51374 51375 51376 51377 51378 51379 51380 51381 51382 51383 51384 51385 51386 51387 51388 51389 51390 51391 51392 51393 51394 51395 51396 51397 51398 51399 51400 51401 51402 51403 51404 51405 51406 51407 51408 51409 51410 51411 51412 51413 # Execute function body 51414 51415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the C compiler supports \"$ZERO_ARCHFLAG\"" >&5 51416 $as_echo_n "checking if the C compiler supports \"$ZERO_ARCHFLAG\"... " >&6; } 51417 supports=yes 51418 51419 saved_cflags="$CFLAGS" 51420 CFLAGS="$CFLAGS $ZERO_ARCHFLAG" 51421 ac_ext=c 51422 ac_cpp='$CPP $CPPFLAGS' 51423 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 51424 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 51425 ac_compiler_gnu=$ac_cv_c_compiler_gnu 51426 51427 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 51428 /* end confdefs.h. */ 51429 int i; 51430 _ACEOF 51431 if ac_fn_c_try_compile "$LINENO"; then : 51432 51433 else 51434 supports=no 51435 fi 51436 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 51437 ac_ext=cpp 51438 ac_cpp='$CXXCPP $CPPFLAGS' 51439 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 51440 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 51441 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 51442 51443 CFLAGS="$saved_cflags" 51444 51445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supports" >&5 51446 $as_echo "$supports" >&6; } 51447 if test "x$supports" = "xyes" ; then 51448 : 51449 C_COMP_SUPPORTS="yes" 51450 else 51451 : 51452 C_COMP_SUPPORTS="no" 51453 fi 51454 51455 51456 51457 51458 51459 51460 51461 51462 51463 51464 51465 51466 51467 51468 51469 51470 51471 51472 51473 51474 51475 51476 51477 51478 51479 51480 51481 51482 51483 51484 51485 51486 51487 51488 51489 51490 51491 51492 51493 51494 51495 51496 51497 51498 51499 51500 51501 51502 51503 51504 51505 51506 51507 51508 51509 51510 51511 51512 51513 # Execute function body 51514 51515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the C++ compiler supports \"$ZERO_ARCHFLAG\"" >&5 51516 $as_echo_n "checking if the C++ compiler supports \"$ZERO_ARCHFLAG\"... " >&6; } 51517 supports=yes 51518 51519 saved_cxxflags="$CXXFLAGS" 51520 CXXFLAGS="$CXXFLAG $ZERO_ARCHFLAG" 51521 ac_ext=cpp 51522 ac_cpp='$CXXCPP $CPPFLAGS' 51523 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 51524 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 51525 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 51526 51527 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 51528 /* end confdefs.h. */ 51529 int i; 51530 _ACEOF 51531 if ac_fn_cxx_try_compile "$LINENO"; then : 51532 51533 else 51534 supports=no 51535 fi 51536 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 51537 ac_ext=cpp 51538 ac_cpp='$CXXCPP $CPPFLAGS' 51539 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 51540 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 51541 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 51542 51543 CXXFLAGS="$saved_cxxflags" 51544 51545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supports" >&5 51546 $as_echo "$supports" >&6; } 51547 if test "x$supports" = "xyes" ; then 51548 : 51549 CXX_COMP_SUPPORTS="yes" 51550 else 51551 : 51552 CXX_COMP_SUPPORTS="no" 51553 fi 51554 51555 51556 51557 51558 51559 51560 51561 51562 51563 51564 51565 51566 51567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if both compilers support \"$ZERO_ARCHFLAG\"" >&5 51568 $as_echo_n "checking if both compilers support \"$ZERO_ARCHFLAG\"... " >&6; } 51569 supports=no 51570 if test "x$C_COMP_SUPPORTS" = "xyes" -a "x$CXX_COMP_SUPPORTS" = "xyes"; then supports=yes; fi 51571 51572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supports" >&5 51573 $as_echo "$supports" >&6; } 51574 if test "x$supports" = "xyes" ; then 51575 : 51576 51577 else 51578 : 51579 ZERO_ARCHFLAG="" 51580 fi 51581 51582 51583 51584 51585 51586 51587 51588 51589 # Check that the compiler supports -mX (or -qX on AIX) flags 51590 # Set COMPILER_SUPPORTS_TARGET_BITS_FLAG to 'true' if it does 51591 51592 51593 51594 51595 51596 51597 51598 51599 51600 51601 51602 51603 51604 51605 51606 51607 51608 51609 51610 51611 51612 51613 51614 51615 51616 51617 51618 51619 51620 51621 51622 51623 51624 51625 51626 51627 51628 51629 51630 51631 51632 51633 51634 51635 51636 51637 51638 # Execute function body 51639 51640 51641 51642 51643 51644 51645 51646 51647 51648 51649 51650 51651 51652 51653 51654 51655 51656 51657 51658 51659 51660 51661 51662 51663 51664 51665 51666 51667 51668 51669 51670 51671 51672 51673 51674 51675 51676 51677 51678 51679 51680 51681 51682 51683 51684 51685 51686 51687 # Execute function body 51688 51689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the C compiler supports \"${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}\"" >&5 51690 $as_echo_n "checking if the C compiler supports \"${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}\"... " >&6; } 51691 supports=yes 51692 51693 saved_cflags="$CFLAGS" 51694 CFLAGS="$CFLAGS ${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}" 51695 ac_ext=c 51696 ac_cpp='$CPP $CPPFLAGS' 51697 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 51698 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 51699 ac_compiler_gnu=$ac_cv_c_compiler_gnu 51700 51701 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 51702 /* end confdefs.h. */ 51703 int i; 51704 _ACEOF 51705 if ac_fn_c_try_compile "$LINENO"; then : 51706 51707 else 51708 supports=no 51709 fi 51710 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 51711 ac_ext=cpp 51712 ac_cpp='$CXXCPP $CPPFLAGS' 51713 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 51714 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 51715 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 51716 51717 CFLAGS="$saved_cflags" 51718 51719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supports" >&5 51720 $as_echo "$supports" >&6; } 51721 if test "x$supports" = "xyes" ; then 51722 : 51723 C_COMP_SUPPORTS="yes" 51724 else 51725 : 51726 C_COMP_SUPPORTS="no" 51727 fi 51728 51729 51730 51731 51732 51733 51734 51735 51736 51737 51738 51739 51740 51741 51742 51743 51744 51745 51746 51747 51748 51749 51750 51751 51752 51753 51754 51755 51756 51757 51758 51759 51760 51761 51762 51763 51764 51765 51766 51767 51768 51769 51770 51771 51772 51773 51774 51775 51776 51777 51778 51779 51780 51781 51782 51783 51784 51785 51786 51787 # Execute function body 51788 51789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the C++ compiler supports \"${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}\"" >&5 51790 $as_echo_n "checking if the C++ compiler supports \"${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}\"... " >&6; } 51791 supports=yes 51792 51793 saved_cxxflags="$CXXFLAGS" 51794 CXXFLAGS="$CXXFLAG ${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}" 51795 ac_ext=cpp 51796 ac_cpp='$CXXCPP $CPPFLAGS' 51797 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 51798 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 51799 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 51800 51801 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 51802 /* end confdefs.h. */ 51803 int i; 51804 _ACEOF 51805 if ac_fn_cxx_try_compile "$LINENO"; then : 51806 51807 else 51808 supports=no 51809 fi 51810 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 51811 ac_ext=cpp 51812 ac_cpp='$CXXCPP $CPPFLAGS' 51813 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 51814 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 51815 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 51816 51817 CXXFLAGS="$saved_cxxflags" 51818 51819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supports" >&5 51820 $as_echo "$supports" >&6; } 51821 if test "x$supports" = "xyes" ; then 51822 : 51823 CXX_COMP_SUPPORTS="yes" 51824 else 51825 : 51826 CXX_COMP_SUPPORTS="no" 51827 fi 51828 51829 51830 51831 51832 51833 51834 51835 51836 51837 51838 51839 51840 51841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if both compilers support \"${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}\"" >&5 51842 $as_echo_n "checking if both compilers support \"${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}\"... " >&6; } 51843 supports=no 51844 if test "x$C_COMP_SUPPORTS" = "xyes" -a "x$CXX_COMP_SUPPORTS" = "xyes"; then supports=yes; fi 51845 51846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supports" >&5 51847 $as_echo "$supports" >&6; } 51848 if test "x$supports" = "xyes" ; then 51849 : 51850 COMPILER_SUPPORTS_TARGET_BITS_FLAG=true 51851 else 51852 : 51853 COMPILER_SUPPORTS_TARGET_BITS_FLAG=false 51854 fi 51855 51856 51857 51858 51859 51860 51861 51862 51863 # Check whether --enable-warnings-as-errors was given. 51864 if test "${enable_warnings_as_errors+set}" = set; then : 51865 enableval=$enable_warnings_as_errors; 51866 fi 51867 51868 51869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if native warnings are errors" >&5 51870 $as_echo_n "checking if native warnings are errors... " >&6; } 51871 if test "x$enable_warnings_as_errors" = "xyes"; then 51872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (explicitly set)" >&5 51873 $as_echo "yes (explicitly set)" >&6; } 51874 WARNINGS_AS_ERRORS=true 51875 elif test "x$enable_warnings_as_errors" = "xno"; then 51876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 51877 $as_echo "no" >&6; } 51878 WARNINGS_AS_ERRORS=false 51879 elif test "x$enable_warnings_as_errors" = "x"; then 51880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (default)" >&5 51881 $as_echo "yes (default)" >&6; } 51882 WARNINGS_AS_ERRORS=true 51883 else 51884 as_fn_error $? "--enable-warnings-as-errors accepts no argument" "$LINENO" 5 51885 fi 51886 51887 if test "x$WARNINGS_AS_ERRORS" = "xfalse"; then 51888 # Set legacy hotspot variable 51889 HOTSPOT_SET_WARNINGS_AS_ERRORS="WARNINGS_ARE_ERRORS=" 51890 else 51891 HOTSPOT_SET_WARNINGS_AS_ERRORS="" 51892 fi 51893 51894 51895 51896 51897 case "${TOOLCHAIN_TYPE}" in 51898 microsoft) 51899 DISABLE_WARNING_PREFIX="-wd" 51900 CFLAGS_WARNINGS_ARE_ERRORS="-WX" 51901 ;; 51902 solstudio) 51903 DISABLE_WARNING_PREFIX="-erroff=" 51904 CFLAGS_WARNINGS_ARE_ERRORS="-errtags -errwarn=%all" 51905 ;; 51906 gcc) 51907 # Prior to gcc 4.4, a -Wno-X where X is unknown for that version of gcc will cause an error 51908 51909 51910 51911 51912 51913 51914 51915 51916 51917 51918 51919 51920 51921 51922 51923 51924 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 # Execute function body 51956 51957 51958 51959 51960 51961 51962 51963 51964 51965 51966 51967 51968 51969 51970 51971 51972 51973 51974 51975 51976 51977 51978 51979 51980 51981 51982 51983 51984 51985 51986 51987 51988 51989 51990 51991 51992 51993 51994 51995 51996 51997 51998 51999 52000 52001 52002 52003 52004 # Execute function body 52005 52006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the C compiler supports \"-Wno-this-is-a-warning-that-do-not-exist\"" >&5 52007 $as_echo_n "checking if the C compiler supports \"-Wno-this-is-a-warning-that-do-not-exist\"... " >&6; } 52008 supports=yes 52009 52010 saved_cflags="$CFLAGS" 52011 CFLAGS="$CFLAGS -Wno-this-is-a-warning-that-do-not-exist" 52012 ac_ext=c 52013 ac_cpp='$CPP $CPPFLAGS' 52014 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 52015 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 52016 ac_compiler_gnu=$ac_cv_c_compiler_gnu 52017 52018 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 52019 /* end confdefs.h. */ 52020 int i; 52021 _ACEOF 52022 if ac_fn_c_try_compile "$LINENO"; then : 52023 52024 else 52025 supports=no 52026 fi 52027 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 52028 ac_ext=cpp 52029 ac_cpp='$CXXCPP $CPPFLAGS' 52030 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 52031 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 52032 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 52033 52034 CFLAGS="$saved_cflags" 52035 52036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supports" >&5 52037 $as_echo "$supports" >&6; } 52038 if test "x$supports" = "xyes" ; then 52039 : 52040 C_COMP_SUPPORTS="yes" 52041 else 52042 : 52043 C_COMP_SUPPORTS="no" 52044 fi 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 52074 52075 52076 52077 52078 52079 52080 52081 52082 52083 52084 52085 52086 52087 52088 52089 52090 52091 52092 52093 52094 52095 52096 52097 52098 52099 52100 52101 52102 52103 52104 # Execute function body 52105 52106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the C++ compiler supports \"-Wno-this-is-a-warning-that-do-not-exist\"" >&5 52107 $as_echo_n "checking if the C++ compiler supports \"-Wno-this-is-a-warning-that-do-not-exist\"... " >&6; } 52108 supports=yes 52109 52110 saved_cxxflags="$CXXFLAGS" 52111 CXXFLAGS="$CXXFLAG -Wno-this-is-a-warning-that-do-not-exist" 52112 ac_ext=cpp 52113 ac_cpp='$CXXCPP $CPPFLAGS' 52114 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 52115 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 52116 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 52117 52118 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 52119 /* end confdefs.h. */ 52120 int i; 52121 _ACEOF 52122 if ac_fn_cxx_try_compile "$LINENO"; then : 52123 52124 else 52125 supports=no 52126 fi 52127 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 52128 ac_ext=cpp 52129 ac_cpp='$CXXCPP $CPPFLAGS' 52130 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 52131 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 52132 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 52133 52134 CXXFLAGS="$saved_cxxflags" 52135 52136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supports" >&5 52137 $as_echo "$supports" >&6; } 52138 if test "x$supports" = "xyes" ; then 52139 : 52140 CXX_COMP_SUPPORTS="yes" 52141 else 52142 : 52143 CXX_COMP_SUPPORTS="no" 52144 fi 52145 52146 52147 52148 52149 52150 52151 52152 52153 52154 52155 52156 52157 52158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if both compilers support \"-Wno-this-is-a-warning-that-do-not-exist\"" >&5 52159 $as_echo_n "checking if both compilers support \"-Wno-this-is-a-warning-that-do-not-exist\"... " >&6; } 52160 supports=no 52161 if test "x$C_COMP_SUPPORTS" = "xyes" -a "x$CXX_COMP_SUPPORTS" = "xyes"; then supports=yes; fi 52162 52163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supports" >&5 52164 $as_echo "$supports" >&6; } 52165 if test "x$supports" = "xyes" ; then 52166 : 52167 GCC_CAN_DISABLE_WARNINGS=true 52168 else 52169 : 52170 GCC_CAN_DISABLE_WARNINGS=false 52171 52172 fi 52173 52174 52175 52176 52177 52178 52179 if test "x$GCC_CAN_DISABLE_WARNINGS" = "xtrue"; then 52180 DISABLE_WARNING_PREFIX="-Wno-" 52181 else 52182 DISABLE_WARNING_PREFIX= 52183 fi 52184 CFLAGS_WARNINGS_ARE_ERRORS="-Werror" 52185 # Repeate the check for the BUILD_CC and BUILD_CXX. Need to also reset 52186 # CFLAGS since any target specific flags will likely not work with the 52187 # build compiler 52188 CC_OLD="$CC" 52189 CXX_OLD="$CXX" 52190 CC="$BUILD_CC" 52191 CXX="$BUILD_CXX" 52192 CFLAGS_OLD="$CFLAGS" 52193 CFLAGS="" 52194 52195 52196 52197 52198 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 # Execute function body 52242 52243 52244 52245 52246 52247 52248 52249 52250 52251 52252 52253 52254 52255 52256 52257 52258 52259 52260 52261 52262 52263 52264 52265 52266 52267 52268 52269 52270 52271 52272 52273 52274 52275 52276 52277 52278 52279 52280 52281 52282 52283 52284 52285 52286 52287 52288 52289 52290 # Execute function body 52291 52292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the C compiler supports \"-Wno-this-is-a-warning-that-do-not-exist\"" >&5 52293 $as_echo_n "checking if the C compiler supports \"-Wno-this-is-a-warning-that-do-not-exist\"... " >&6; } 52294 supports=yes 52295 52296 saved_cflags="$CFLAGS" 52297 CFLAGS="$CFLAGS -Wno-this-is-a-warning-that-do-not-exist" 52298 ac_ext=c 52299 ac_cpp='$CPP $CPPFLAGS' 52300 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 52301 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 52302 ac_compiler_gnu=$ac_cv_c_compiler_gnu 52303 52304 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 52305 /* end confdefs.h. */ 52306 int i; 52307 _ACEOF 52308 if ac_fn_c_try_compile "$LINENO"; then : 52309 52310 else 52311 supports=no 52312 fi 52313 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 52314 ac_ext=cpp 52315 ac_cpp='$CXXCPP $CPPFLAGS' 52316 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 52317 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 52318 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 52319 52320 CFLAGS="$saved_cflags" 52321 52322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supports" >&5 52323 $as_echo "$supports" >&6; } 52324 if test "x$supports" = "xyes" ; then 52325 : 52326 C_COMP_SUPPORTS="yes" 52327 else 52328 : 52329 C_COMP_SUPPORTS="no" 52330 fi 52331 52332 52333 52334 52335 52336 52337 52338 52339 52340 52341 52342 52343 52344 52345 52346 52347 52348 52349 52350 52351 52352 52353 52354 52355 52356 52357 52358 52359 52360 52361 52362 52363 52364 52365 52366 52367 52368 52369 52370 52371 52372 52373 52374 52375 52376 52377 52378 52379 52380 52381 52382 52383 52384 52385 52386 52387 52388 52389 52390 # Execute function body 52391 52392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the C++ compiler supports \"-Wno-this-is-a-warning-that-do-not-exist\"" >&5 52393 $as_echo_n "checking if the C++ compiler supports \"-Wno-this-is-a-warning-that-do-not-exist\"... " >&6; } 52394 supports=yes 52395 52396 saved_cxxflags="$CXXFLAGS" 52397 CXXFLAGS="$CXXFLAG -Wno-this-is-a-warning-that-do-not-exist" 52398 ac_ext=cpp 52399 ac_cpp='$CXXCPP $CPPFLAGS' 52400 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 52401 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 52402 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 52403 52404 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 52405 /* end confdefs.h. */ 52406 int i; 52407 _ACEOF 52408 if ac_fn_cxx_try_compile "$LINENO"; then : 52409 52410 else 52411 supports=no 52412 fi 52413 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 52414 ac_ext=cpp 52415 ac_cpp='$CXXCPP $CPPFLAGS' 52416 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 52417 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 52418 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 52419 52420 CXXFLAGS="$saved_cxxflags" 52421 52422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supports" >&5 52423 $as_echo "$supports" >&6; } 52424 if test "x$supports" = "xyes" ; then 52425 : 52426 CXX_COMP_SUPPORTS="yes" 52427 else 52428 : 52429 CXX_COMP_SUPPORTS="no" 52430 fi 52431 52432 52433 52434 52435 52436 52437 52438 52439 52440 52441 52442 52443 52444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if both compilers support \"-Wno-this-is-a-warning-that-do-not-exist\"" >&5 52445 $as_echo_n "checking if both compilers support \"-Wno-this-is-a-warning-that-do-not-exist\"... " >&6; } 52446 supports=no 52447 if test "x$C_COMP_SUPPORTS" = "xyes" -a "x$CXX_COMP_SUPPORTS" = "xyes"; then supports=yes; fi 52448 52449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supports" >&5 52450 $as_echo "$supports" >&6; } 52451 if test "x$supports" = "xyes" ; then 52452 : 52453 BUILD_CC_CAN_DISABLE_WARNINGS=true 52454 else 52455 : 52456 BUILD_CC_CAN_DISABLE_WARNINGS=false 52457 52458 fi 52459 52460 52461 52462 52463 52464 52465 if test "x$BUILD_CC_CAN_DISABLE_WARNINGS" = "xtrue"; then 52466 BUILD_CC_DISABLE_WARNING_PREFIX="-Wno-" 52467 else 52468 BUILD_CC_DISABLE_WARNING_PREFIX= 52469 fi 52470 CC="$CC_OLD" 52471 CXX="$CXX_OLD" 52472 CFLAGS="$CFLAGS_OLD" 52473 ;; 52474 clang) 52475 DISABLE_WARNING_PREFIX="-Wno-" 52476 CFLAGS_WARNINGS_ARE_ERRORS="-Werror" 52477 ;; 52478 xlc) 52479 DISABLE_WARNING_PREFIX="-qsuppress=" 52480 CFLAGS_WARNINGS_ARE_ERRORS="-qhalt=w" 52481 ;; 52482 esac 52483 52484 52485 52486 52487 52488 # Setup debug symbols (need objcopy from the toolchain for that) 52489 52490 # 52491 # NATIVE_DEBUG_SYMBOLS 52492 # This must be done after the toolchain is setup, since we're looking at objcopy. 52493 # 52494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what type of native debug symbols to use" >&5 52495 $as_echo_n "checking what type of native debug symbols to use... " >&6; } 52496 52497 # Check whether --with-native-debug-symbols was given. 52498 if test "${with_native_debug_symbols+set}" = set; then : 52499 withval=$with_native_debug_symbols; 52500 if test "x$OPENJDK_TARGET_OS" = xaix; then 52501 if test "x$withval" = xexternal || test "x$withval" = xzipped; then 52502 as_fn_error $? "AIX only supports the parameters 'none' and 'internal' for --with-native-debug-symbols" "$LINENO" 5 52503 fi 52504 fi 52505 52506 else 52507 52508 if test "x$OPENJDK_TARGET_OS" = xaix; then 52509 # AIX doesn't support 'zipped' so use 'internal' as default 52510 with_native_debug_symbols="internal" 52511 else 52512 if test "x$STATIC_BUILD" = xtrue; then 52513 with_native_debug_symbols="none" 52514 else 52515 with_native_debug_symbols="zipped" 52516 fi 52517 fi 52518 52519 fi 52520 52521 NATIVE_DEBUG_SYMBOLS=$with_native_debug_symbols 52522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NATIVE_DEBUG_SYMBOLS" >&5 52523 $as_echo "$NATIVE_DEBUG_SYMBOLS" >&6; } 52524 52525 if test "x$NATIVE_DEBUG_SYMBOLS" = xzipped; then 52526 52527 if test "x$OPENJDK_TARGET_OS" = xsolaris || test "x$OPENJDK_TARGET_OS" = xlinux; then 52528 if test "x$OBJCOPY" = x; then 52529 # enabling of enable-debug-symbols and can't find objcopy 52530 # this is an error 52531 as_fn_error $? "Unable to find objcopy, cannot enable native debug symbols" "$LINENO" 5 52532 fi 52533 fi 52534 52535 COMPILE_WITH_DEBUG_SYMBOLS=true 52536 COPY_DEBUG_SYMBOLS=true 52537 ZIP_EXTERNAL_DEBUG_SYMBOLS=true 52538 elif test "x$NATIVE_DEBUG_SYMBOLS" = xnone; then 52539 COMPILE_WITH_DEBUG_SYMBOLS=false 52540 COPY_DEBUG_SYMBOLS=false 52541 ZIP_EXTERNAL_DEBUG_SYMBOLS=false 52542 elif test "x$NATIVE_DEBUG_SYMBOLS" = xinternal; then 52543 COMPILE_WITH_DEBUG_SYMBOLS=true 52544 COPY_DEBUG_SYMBOLS=false 52545 ZIP_EXTERNAL_DEBUG_SYMBOLS=false 52546 elif test "x$NATIVE_DEBUG_SYMBOLS" = xexternal; then 52547 52548 if test "x$OPENJDK_TARGET_OS" = xsolaris || test "x$OPENJDK_TARGET_OS" = xlinux; then 52549 if test "x$OBJCOPY" = x; then 52550 # enabling of enable-debug-symbols and can't find objcopy 52551 # this is an error 52552 as_fn_error $? "Unable to find objcopy, cannot enable native debug symbols" "$LINENO" 5 52553 fi 52554 fi 52555 52556 COMPILE_WITH_DEBUG_SYMBOLS=true 52557 COPY_DEBUG_SYMBOLS=true 52558 ZIP_EXTERNAL_DEBUG_SYMBOLS=false 52559 else 52560 as_fn_error $? "Allowed native debug symbols are: none, internal, external, zipped" "$LINENO" 5 52561 fi 52562 52563 # --enable-debug-symbols is deprecated. 52564 # Please use --with-native-debug-symbols=[internal,external,zipped] . 52565 52566 # Check whether --enable-debug-symbols was given. 52567 if test "${enable_debug_symbols+set}" = set; then : 52568 enableval=$enable_debug_symbols; 52569 fi 52570 52571 if test "x$enable_debug_symbols" != x; then 52572 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Option --enable-debug-symbols is deprecated and will be ignored." >&5 52573 $as_echo "$as_me: WARNING: Option --enable-debug-symbols is deprecated and will be ignored." >&2;} 52574 52575 if test "xPlease use --with-native-debug-symbols=[internal,external,zipped] ." != x; then 52576 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Please use --with-native-debug-symbols=[internal,external,zipped] ." >&5 52577 $as_echo "$as_me: WARNING: Please use --with-native-debug-symbols=[internal,external,zipped] ." >&2;} 52578 fi 52579 52580 fi 52581 52582 52583 # --enable-zip-debug-info is deprecated. 52584 # Please use --with-native-debug-symbols=zipped . 52585 52586 # Check whether --enable-zip-debug-info was given. 52587 if test "${enable_zip_debug_info+set}" = set; then : 52588 enableval=$enable_zip_debug_info; 52589 fi 52590 52591 if test "x$enable_zip_debug_info" != x; then 52592 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Option --enable-zip-debug-info is deprecated and will be ignored." >&5 52593 $as_echo "$as_me: WARNING: Option --enable-zip-debug-info is deprecated and will be ignored." >&2;} 52594 52595 if test "xPlease use --with-native-debug-symbols=zipped ." != x; then 52596 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Please use --with-native-debug-symbols=zipped ." >&5 52597 $as_echo "$as_me: WARNING: Please use --with-native-debug-symbols=zipped ." >&2;} 52598 fi 52599 52600 fi 52601 52602 52603 52604 52605 52606 52607 52608 # Check whether --enable-native-coverage was given. 52609 if test "${enable_native_coverage+set}" = set; then : 52610 enableval=$enable_native_coverage; 52611 fi 52612 52613 GCOV_ENABLED="false" 52614 if test "x$enable_native_coverage" = "xyes"; then 52615 if test "x$TOOLCHAIN_TYPE" = "xgcc"; then 52616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if native coverage is enabled" >&5 52617 $as_echo_n "checking if native coverage is enabled... " >&6; } 52618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 52619 $as_echo "yes" >&6; } 52620 GCOV_CFLAGS="-fprofile-arcs -ftest-coverage -fno-inline" 52621 GCOV_LDFLAGS="-fprofile-arcs" 52622 LEGACY_EXTRA_CFLAGS="$LEGACY_EXTRA_CFLAGS $GCOV_CFLAGS" 52623 LEGACY_EXTRA_CXXFLAGS="$LEGACY_EXTRA_CXXFLAGS $GCOV_CFLAGS" 52624 LEGACY_EXTRA_LDFLAGS="$LEGACY_EXTRA_LDFLAGS $GCOV_LDFLAGS" 52625 CFLAGS_JDKLIB="$CFLAGS_JDKLIB $GCOV_CFLAGS" 52626 CFLAGS_JDKEXE="$CFLAGS_JDKEXE $GCOV_CFLAGS" 52627 CXXFLAGS_JDKLIB="$CXXFLAGS_JDKLIB $GCOV_CFLAGS" 52628 CXXFLAGS_JDKEXE="$CXXFLAGS_JDKEXE $GCOV_CFLAGS" 52629 LDFLAGS_JDKLIB="$LDFLAGS_JDKLIB $GCOV_LDFLAGS" 52630 LDFLAGS_JDKEXE="$LDFLAGS_JDKEXE $GCOV_LDFLAGS" 52631 GCOV_ENABLED="true" 52632 else 52633 as_fn_error $? "--enable-native-coverage only works with toolchain type gcc" "$LINENO" 5 52634 fi 52635 elif test "x$enable_native_coverage" = "xno"; then 52636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if native coverage is enabled" >&5 52637 $as_echo_n "checking if native coverage is enabled... " >&6; } 52638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 52639 $as_echo "no" >&6; } 52640 elif test "x$enable_native_coverage" != "x"; then 52641 as_fn_error $? "--enable-native-coverage can only be assigned \"yes\" or \"no\"" "$LINENO" 5 52642 fi 52643 52644 52645 52646 52647 # Need toolchain to setup dtrace 52648 52649 # Test for dtrace dependencies 52650 # Check whether --enable-dtrace was given. 52651 if test "${enable_dtrace+set}" = set; then : 52652 enableval=$enable_dtrace; 52653 fi 52654 52655 52656 DTRACE_DEP_MISSING=false 52657 52658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dtrace tool" >&5 52659 $as_echo_n "checking for dtrace tool... " >&6; } 52660 if test "x$DTRACE" != "x" && test -x "$DTRACE"; then 52661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DTRACE" >&5 52662 $as_echo "$DTRACE" >&6; } 52663 else 52664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found, cannot build dtrace" >&5 52665 $as_echo "not found, cannot build dtrace" >&6; } 52666 DTRACE_DEP_MISSING=true 52667 fi 52668 52669 for ac_header in sys/sdt.h 52670 do : 52671 ac_fn_cxx_check_header_mongrel "$LINENO" "sys/sdt.h" "ac_cv_header_sys_sdt_h" "$ac_includes_default" 52672 if test "x$ac_cv_header_sys_sdt_h" = xyes; then : 52673 cat >>confdefs.h <<_ACEOF 52674 #define HAVE_SYS_SDT_H 1 52675 _ACEOF 52676 DTRACE_HEADERS_OK=yes 52677 else 52678 DTRACE_HEADERS_OK=no 52679 fi 52680 52681 done 52682 52683 if test "x$DTRACE_HEADERS_OK" != "xyes"; then 52684 DTRACE_DEP_MISSING=true 52685 fi 52686 52687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if dtrace should be built" >&5 52688 $as_echo_n "checking if dtrace should be built... " >&6; } 52689 if test "x$enable_dtrace" = "xyes"; then 52690 if test "x$DTRACE_DEP_MISSING" = "xtrue"; then 52691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, missing dependencies" >&5 52692 $as_echo "no, missing dependencies" >&6; } 52693 52694 # Print a helpful message on how to acquire the necessary build dependency. 52695 # dtrace is the help tag: freetype, cups, alsa etc 52696 MISSING_DEPENDENCY=dtrace 52697 52698 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 52699 cygwin_help $MISSING_DEPENDENCY 52700 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 52701 msys_help $MISSING_DEPENDENCY 52702 else 52703 PKGHANDLER_COMMAND= 52704 52705 case $PKGHANDLER in 52706 apt-get) 52707 apt_help $MISSING_DEPENDENCY ;; 52708 yum) 52709 yum_help $MISSING_DEPENDENCY ;; 52710 port) 52711 port_help $MISSING_DEPENDENCY ;; 52712 pkgutil) 52713 pkgutil_help $MISSING_DEPENDENCY ;; 52714 pkgadd) 52715 pkgadd_help $MISSING_DEPENDENCY ;; 52716 esac 52717 52718 if test "x$PKGHANDLER_COMMAND" != x; then 52719 HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'." 52720 fi 52721 fi 52722 52723 as_fn_error $? "Cannot enable dtrace with missing dependencies. See above. $HELP_MSG" "$LINENO" 5 52724 else 52725 INCLUDE_DTRACE=true 52726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, forced" >&5 52727 $as_echo "yes, forced" >&6; } 52728 fi 52729 elif test "x$enable_dtrace" = "xno"; then 52730 INCLUDE_DTRACE=false 52731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, forced" >&5 52732 $as_echo "no, forced" >&6; } 52733 elif test "x$enable_dtrace" = "xauto" || test "x$enable_dtrace" = "x"; then 52734 if test "x$DTRACE_DEP_MISSING" = "xtrue"; then 52735 INCLUDE_DTRACE=false 52736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, missing dependencies" >&5 52737 $as_echo "no, missing dependencies" >&6; } 52738 else 52739 INCLUDE_DTRACE=true 52740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, dependencies present" >&5 52741 $as_echo "yes, dependencies present" >&6; } 52742 fi 52743 else 52744 as_fn_error $? "Invalid value for --enable-dtrace: $enable_dtrace" "$LINENO" 5 52745 fi 52746 52747 52748 52749 # The user can in some cases supply additional jvm features. For the custom 52750 # variant, this defines the entire variant. 52751 52752 # Check whether --with-jvm-features was given. 52753 if test "${with_jvm_features+set}" = set; then : 52754 withval=$with_jvm_features; 52755 fi 52756 52757 if test "x$with_jvm_features" != x; then 52758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking additional JVM features" >&5 52759 $as_echo_n "checking additional JVM features... " >&6; } 52760 JVM_FEATURES=`$ECHO $with_jvm_features | $SED -e 's/,/ /g'` 52761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JVM_FEATURES" >&5 52762 $as_echo "$JVM_FEATURES" >&6; } 52763 fi 52764 52765 # Verify that dependencies are met for explicitly set features. 52766 if [[ " $JVM_FEATURES " =~ " jvmti " ]] && ! [[ " $JVM_FEATURES " =~ " services " ]] ; then 52767 as_fn_error $? "Specified JVM feature 'jvmti' requires feature 'services'" "$LINENO" 5 52768 fi 52769 52770 if [[ " $JVM_FEATURES " =~ " management " ]] && ! [[ " $JVM_FEATURES " =~ " nmt " ]] ; then 52771 as_fn_error $? "Specified JVM feature 'management' requires feature 'nmt'" "$LINENO" 5 52772 fi 52773 52774 if [[ " $JVM_FEATURES " =~ " jvmci " ]] && ! ( [[ " $JVM_FEATURES " =~ " compiler1 " ]] || [[ " $JVM_FEATURES " =~ " compiler2 " ]] ); then 52775 as_fn_error $? "Specified JVM feature 'jvmci' requires feature 'compiler2' or 'compiler1'" "$LINENO" 5 52776 fi 52777 52778 if [[ " $JVM_FEATURES " =~ " compiler2 " ]] && ! [[ " $JVM_FEATURES " =~ " all-gcs " ]] ; then 52779 as_fn_error $? "Specified JVM feature 'compiler2' requires feature 'all-gcs'" "$LINENO" 5 52780 fi 52781 52782 if [[ " $JVM_FEATURES " =~ " vm-structs " ]] && ! [[ " $JVM_FEATURES " =~ " all-gcs " ]] ; then 52783 as_fn_error $? "Specified JVM feature 'vm-structs' requires feature 'all-gcs'" "$LINENO" 5 52784 fi 52785 52786 # Turn on additional features based on other parts of configure 52787 if test "x$INCLUDE_DTRACE" = "xtrue"; then 52788 JVM_FEATURES="$JVM_FEATURES dtrace" 52789 else 52790 if [[ " $JVM_FEATURES " =~ " dtrace " ]] ; then 52791 as_fn_error $? "To enable dtrace, you must use --enable-dtrace" "$LINENO" 5 52792 fi 52793 fi 52794 52795 if test "x$STATIC_BUILD" = "xtrue"; then 52796 JVM_FEATURES="$JVM_FEATURES static-build" 52797 else 52798 if [[ " $JVM_FEATURES " =~ " static-build " ]] ; then 52799 as_fn_error $? "To enable static-build, you must use --enable-static-build" "$LINENO" 5 52800 fi 52801 fi 52802 52803 if ! [[ " $JVM_VARIANTS " =~ " zero " ]] && ! [[ " $JVM_VARIANTS " =~ " zeroshark " ]] ; then 52804 if [[ " $JVM_FEATURES " =~ " zero " ]] ; then 52805 as_fn_error $? "To enable zero/zeroshark, you must use --with-jvm-variants=zero/zeroshark" "$LINENO" 5 52806 fi 52807 fi 52808 52809 if ! [[ " $JVM_VARIANTS " =~ " zeroshark " ]] ; then 52810 if [[ " $JVM_FEATURES " =~ " shark " ]] ; then 52811 as_fn_error $? "To enable shark, you must use --with-jvm-variants=zeroshark" "$LINENO" 5 52812 fi 52813 fi 52814 52815 # Only enable jvmci on x86_64, sparcv9 and aarch64. 52816 if test "x$OPENJDK_TARGET_CPU" = "xx86_64" || \ 52817 test "x$OPENJDK_TARGET_CPU" = "xsparcv9" || \ 52818 test "x$OPENJDK_TARGET_CPU" = "xaarch64" ; then 52819 JVM_FEATURES_jvmci="jvmci" 52820 else 52821 JVM_FEATURES_jvmci="" 52822 fi 52823 52824 # All variants but minimal (and custom) get these features 52825 NON_MINIMAL_FEATURES="$NON_MINIMAL_FEATURES jvmti fprof vm-structs jni-check services management all-gcs nmt cds" 52826 52827 # Enable features depending on variant. 52828 JVM_FEATURES_server="compiler1 compiler2 $NON_MINIMAL_FEATURES $JVM_FEATURES $JVM_FEATURES_jvmci" 52829 JVM_FEATURES_client="compiler1 $NON_MINIMAL_FEATURES $JVM_FEATURES $JVM_FEATURES_jvmci" 52830 JVM_FEATURES_core="$NON_MINIMAL_FEATURES $JVM_FEATURES" 52831 JVM_FEATURES_minimal="compiler1 minimal $JVM_FEATURES" 52832 JVM_FEATURES_zero="zero $NON_MINIMAL_FEATURES $JVM_FEATURES" 52833 JVM_FEATURES_zeroshark="zero shark $NON_MINIMAL_FEATURES $JVM_FEATURES" 52834 JVM_FEATURES_custom="$JVM_FEATURES" 52835 52836 52837 52838 52839 52840 52841 52842 52843 52844 # Used for verification of Makefiles by check-jvm-feature 52845 52846 52847 # We don't support --with-jvm-interpreter anymore, use zero instead. 52848 52849 52850 # Check whether --with-jvm-interpreter was given. 52851 if test "${with_jvm_interpreter+set}" = set; then : 52852 withval=$with_jvm_interpreter; { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Option --with-jvm-interpreter is deprecated and will be ignored." >&5 52853 $as_echo "$as_me: WARNING: Option --with-jvm-interpreter is deprecated and will be ignored." >&2;} 52854 fi 52855 52856 52857 52858 52859 # Check whether --enable-hotspot-gtest was given. 52860 if test "${enable_hotspot_gtest+set}" = set; then : 52861 enableval=$enable_hotspot_gtest; 52862 fi 52863 52864 52865 if test -e "$HOTSPOT_TOPDIR/test/native"; then 52866 GTEST_DIR_EXISTS="true" 52867 else 52868 GTEST_DIR_EXISTS="false" 52869 fi 52870 52871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Hotspot gtest unit tests should be built" >&5 52872 $as_echo_n "checking if Hotspot gtest unit tests should be built... " >&6; } 52873 if test "x$enable_hotspot_gtest" = "xyes"; then 52874 if test "x$GTEST_DIR_EXISTS" = "xtrue"; then 52875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, forced" >&5 52876 $as_echo "yes, forced" >&6; } 52877 BUILD_GTEST="true" 52878 else 52879 as_fn_error $? "Cannot build gtest without the test source" "$LINENO" 5 52880 fi 52881 elif test "x$enable_hotspot_gtest" = "xno"; then 52882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, forced" >&5 52883 $as_echo "no, forced" >&6; } 52884 BUILD_GTEST="false" 52885 elif test "x$enable_hotspot_gtest" = "x"; then 52886 if test "x$GTEST_DIR_EXISTS" = "xtrue" && test "x$OPENJDK_TARGET_OS" != "xaix"; then 52887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 52888 $as_echo "yes" >&6; } 52889 BUILD_GTEST="true" 52890 else 52891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 52892 $as_echo "no" >&6; } 52893 BUILD_GTEST="false" 52894 fi 52895 else 52896 as_fn_error $? "--enable-gtest must be either yes or no" "$LINENO" 5 52897 fi 52898 52899 52900 52901 52902 ############################################################################### 52903 # 52904 # Check dependencies for external and internal libraries. 52905 # 52906 ############################################################################### 52907 52908 # After we have toolchain, we can compile fixpath. It's needed by the lib checks. 52909 52910 # When using cygwin or msys, we need a wrapper binary that renames 52911 # /cygdrive/c/ arguments into c:/ arguments and peeks into 52912 # @files and rewrites these too! This wrapper binary is 52913 # called fixpath. 52914 FIXPATH= 52915 if test "x$OPENJDK_BUILD_OS" = xwindows; then 52916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fixpath can be created" >&5 52917 $as_echo_n "checking if fixpath can be created... " >&6; } 52918 FIXPATH_SRC="$SRC_ROOT/common/src/fixpath.c" 52919 FIXPATH_BIN="$CONFIGURESUPPORT_OUTPUTDIR/bin/fixpath.exe" 52920 FIXPATH_DIR="$CONFIGURESUPPORT_OUTPUTDIR/fixpath" 52921 if test "x$OPENJDK_BUILD_OS_ENV" = xwindows.cygwin; then 52922 # Important to keep the .exe suffix on Cygwin for Hotspot makefiles 52923 FIXPATH="$FIXPATH_BIN -c" 52924 elif test "x$OPENJDK_BUILD_OS_ENV" = xwindows.msys; then 52925 # Take all collected prefixes and turn them into a -m/c/foo@/c/bar@... command line 52926 # @ was chosen as separator to minimize risk of other tools messing around with it 52927 all_unique_prefixes=`echo "${all_fixpath_prefixes[@]}" \ 52928 | tr ' ' '\n' | $GREP '^/./' | $SORT | $UNIQ` 52929 fixpath_argument_list=`echo $all_unique_prefixes | tr ' ' '@'` 52930 FIXPATH="$FIXPATH_BIN -m$fixpath_argument_list" 52931 fi 52932 FIXPATH_SRC_W="$FIXPATH_SRC" 52933 FIXPATH_BIN_W="$FIXPATH_BIN" 52934 52935 unix_path="$FIXPATH_SRC_W" 52936 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 52937 windows_path=`$CYGPATH -m "$unix_path"` 52938 FIXPATH_SRC_W="$windows_path" 52939 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 52940 windows_path=`cmd //c echo $unix_path` 52941 FIXPATH_SRC_W="$windows_path" 52942 fi 52943 52944 52945 unix_path="$FIXPATH_BIN_W" 52946 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 52947 windows_path=`$CYGPATH -m "$unix_path"` 52948 FIXPATH_BIN_W="$windows_path" 52949 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 52950 windows_path=`cmd //c echo $unix_path` 52951 FIXPATH_BIN_W="$windows_path" 52952 fi 52953 52954 $RM -rf $FIXPATH_BIN $FIXPATH_DIR 52955 $MKDIR -p $FIXPATH_DIR $CONFIGURESUPPORT_OUTPUTDIR/bin 52956 cd $FIXPATH_DIR 52957 $CC $FIXPATH_SRC_W -Fe$FIXPATH_BIN_W > $FIXPATH_DIR/fixpath1.log 2>&1 52958 cd $CURDIR 52959 52960 if test ! -x $FIXPATH_BIN; then 52961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 52962 $as_echo "no" >&6; } 52963 cat $FIXPATH_DIR/fixpath1.log 52964 as_fn_error $? "Could not create $FIXPATH_BIN" "$LINENO" 5 52965 fi 52966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 52967 $as_echo "yes" >&6; } 52968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fixpath.exe works" >&5 52969 $as_echo_n "checking if fixpath.exe works... " >&6; } 52970 cd $FIXPATH_DIR 52971 $FIXPATH $CC $FIXPATH_SRC -Fe$FIXPATH_DIR/fixpath2.exe \ 52972 > $FIXPATH_DIR/fixpath2.log 2>&1 52973 cd $CURDIR 52974 if test ! -x $FIXPATH_DIR/fixpath2.exe; then 52975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 52976 $as_echo "no" >&6; } 52977 cat $FIXPATH_DIR/fixpath2.log 52978 as_fn_error $? "fixpath did not work!" "$LINENO" 5 52979 fi 52980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 52981 $as_echo "yes" >&6; } 52982 52983 FIXPATH_DETACH_FLAG="--detach" 52984 fi 52985 52986 52987 52988 52989 52990 52991 # Check if X11 is needed 52992 if test "x$OPENJDK_TARGET_OS" = xwindows || test "x$OPENJDK_TARGET_OS" = xmacosx; then 52993 # No X11 support on windows or macosx 52994 NEEDS_LIB_X11=false 52995 else 52996 # All other instances need X11, even if building headless only, libawt still 52997 # needs X11 headers. 52998 NEEDS_LIB_X11=true 52999 fi 53000 53001 # Check if cups is needed 53002 if test "x$OPENJDK_TARGET_OS" = xwindows; then 53003 # Windows have a separate print system 53004 NEEDS_LIB_CUPS=false 53005 else 53006 NEEDS_LIB_CUPS=true 53007 fi 53008 53009 # A custom hook may have set this already 53010 if test "x$NEEDS_LIB_FREETYPE" = "x"; then 53011 NEEDS_LIB_FREETYPE=true 53012 fi 53013 53014 # Check if alsa is needed 53015 if test "x$OPENJDK_TARGET_OS" = xlinux; then 53016 NEEDS_LIB_ALSA=true 53017 else 53018 NEEDS_LIB_ALSA=false 53019 fi 53020 53021 # Check if ffi is needed 53022 if [[ " $JVM_VARIANTS " =~ " zero " ]] || [[ " $JVM_VARIANTS " =~ " zeroshark " ]] ; then 53023 NEEDS_LIB_FFI=true 53024 else 53025 NEEDS_LIB_FFI=false 53026 fi 53027 53028 53029 # statically link libstdc++ before C++ ABI is stablized on Linux unless 53030 # dynamic build is configured on command line. 53031 53032 # Check whether --with-stdc++lib was given. 53033 if test "${with_stdc__lib+set}" = set; then : 53034 withval=$with_stdc__lib; 53035 if test "x$with_stdc__lib" != xdynamic && test "x$with_stdc__lib" != xstatic \ 53036 && test "x$with_stdc__lib" != xdefault; then 53037 as_fn_error $? "Bad parameter value --with-stdc++lib=$with_stdc__lib!" "$LINENO" 5 53038 fi 53039 53040 else 53041 with_stdc__lib=default 53042 53043 fi 53044 53045 53046 if test "x$OPENJDK_TARGET_OS" = xlinux; then 53047 # Test if stdc++ can be linked statically. 53048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if static link of stdc++ is possible" >&5 53049 $as_echo_n "checking if static link of stdc++ is possible... " >&6; } 53050 STATIC_STDCXX_FLAGS="-static-libstdc++ -static-libgcc" 53051 ac_ext=cpp 53052 ac_cpp='$CXXCPP $CPPFLAGS' 53053 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 53054 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 53055 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 53056 53057 OLD_LIBS="$LIBS" 53058 LIBS="$STATIC_STDCXX_FLAGS" 53059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 53060 /* end confdefs.h. */ 53061 53062 int 53063 main () 53064 { 53065 return 0; 53066 ; 53067 return 0; 53068 } 53069 _ACEOF 53070 if ac_fn_cxx_try_link "$LINENO"; then : 53071 has_static_libstdcxx=yes 53072 else 53073 has_static_libstdcxx=no 53074 fi 53075 rm -f core conftest.err conftest.$ac_objext \ 53076 conftest$ac_exeext conftest.$ac_ext 53077 LIBS="$OLD_LIBS" 53078 ac_ext=cpp 53079 ac_cpp='$CXXCPP $CPPFLAGS' 53080 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 53081 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 53082 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 53083 53084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_static_libstdcxx" >&5 53085 $as_echo "$has_static_libstdcxx" >&6; } 53086 53087 if test "x$with_stdc__lib" = xstatic && test "x$has_static_libstdcxx" = xno; then 53088 as_fn_error $? "Static linking of libstdc++ was not possible!" "$LINENO" 5 53089 fi 53090 53091 # If dynamic was requested, it's available since it would fail above otherwise. 53092 # If dynamic wasn't requested, go with static unless it isn't available. 53093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libstdc++" >&5 53094 $as_echo_n "checking how to link with libstdc++... " >&6; } 53095 if test "x$with_stdc__lib" = xdynamic || test "x$has_static_libstdcxx" = xno \ 53096 || [[ " $JVM_VARIANTS " =~ " zeroshark " ]] ; then 53097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: dynamic" >&5 53098 $as_echo "dynamic" >&6; } 53099 else 53100 LIBCXX="$LIBCXX $STATIC_STDCXX_FLAGS" 53101 JVM_LDFLAGS="$JVM_LDFLAGS $STATIC_STDCXX_FLAGS" 53102 # Ideally, we should test stdc++ for the BUILD toolchain separately. For now 53103 # just use the same setting as for the TARGET toolchain. 53104 OPENJDK_BUILD_JVM_LDFLAGS="$OPENJDK_BUILD_JVM_LDFLAGS $STATIC_STDCXX_FLAGS" 53105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: static" >&5 53106 $as_echo "static" >&6; } 53107 fi 53108 fi 53109 53110 # libCrun is the c++ runtime-library with SunStudio (roughly the equivalent of gcc's libstdc++.so) 53111 if test "x$TOOLCHAIN_TYPE" = xsolstudio && test "x$LIBCXX" = x; then 53112 LIBCXX="${SYSROOT}/usr/lib${OPENJDK_TARGET_CPU_ISADIR}/libCrun.so.1" 53113 fi 53114 53115 53116 53117 # Setup Windows runtime dlls 53118 if test "x$OPENJDK_TARGET_OS" = "xwindows"; then 53119 53120 53121 # Check whether --with-msvcr-dll was given. 53122 if test "${with_msvcr_dll+set}" = set; then : 53123 withval=$with_msvcr_dll; 53124 fi 53125 53126 53127 if test "x$with_msvcr_dll" != x; then 53128 # If given explicitly by user, do not probe. If not present, fail directly. 53129 53130 DLL_NAME="$MSVCR_NAME" 53131 POSSIBLE_MSVC_DLL="$with_msvcr_dll" 53132 METHOD="--with-msvcr-dll" 53133 if test -n "$POSSIBLE_MSVC_DLL" -a -e "$POSSIBLE_MSVC_DLL"; then 53134 { $as_echo "$as_me:${as_lineno-$LINENO}: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&5 53135 $as_echo "$as_me: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&6;} 53136 53137 # Need to check if the found msvcr is correct architecture 53138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking found $DLL_NAME architecture" >&5 53139 $as_echo_n "checking found $DLL_NAME architecture... " >&6; } 53140 MSVC_DLL_FILETYPE=`$FILE -b "$POSSIBLE_MSVC_DLL"` 53141 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 53142 # The MSYS 'file' command returns "PE32 executable for MS Windows (DLL) (GUI) Intel 80386 32-bit" 53143 # on x32 and "PE32+ executable for MS Windows (DLL) (GUI) Mono/.Net assembly" on x64 systems. 53144 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 53145 CORRECT_MSVCR_ARCH="PE32 executable" 53146 else 53147 CORRECT_MSVCR_ARCH="PE32+ executable" 53148 fi 53149 else 53150 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 53151 CORRECT_MSVCR_ARCH=386 53152 else 53153 CORRECT_MSVCR_ARCH=x86-64 53154 fi 53155 fi 53156 if $ECHO "$MSVC_DLL_FILETYPE" | $GREP "$CORRECT_MSVCR_ARCH" 2>&1 > /dev/null; then 53157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 53158 $as_echo "ok" >&6; } 53159 MSVC_DLL="$POSSIBLE_MSVC_DLL" 53160 53161 # Only process if variable expands to non-empty 53162 53163 if test "x$MSVC_DLL" != x; then 53164 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 53165 53166 # Input might be given as Windows format, start by converting to 53167 # unix format. 53168 path="$MSVC_DLL" 53169 new_path=`$CYGPATH -u "$path"` 53170 53171 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 53172 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 53173 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 53174 # "foo.exe" is OK but "foo" is an error. 53175 # 53176 # This test is therefore slightly more accurate than "test -f" to check for file precense. 53177 # It is also a way to make sure we got the proper file name for the real test later on. 53178 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 53179 if test "x$test_shortpath" = x; then 53180 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&5 53181 $as_echo "$as_me: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&6;} 53182 as_fn_error $? "Cannot locate the the path of MSVC_DLL" "$LINENO" 5 53183 fi 53184 53185 # Call helper function which possibly converts this using DOS-style short mode. 53186 # If so, the updated path is stored in $new_path. 53187 53188 input_path="$new_path" 53189 # Check if we need to convert this using DOS-style short mode. If the path 53190 # contains just simple characters, use it. Otherwise (spaces, weird characters), 53191 # take no chances and rewrite it. 53192 # Note: m4 eats our [], so we need to use [ and ] instead. 53193 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 53194 if test "x$has_forbidden_chars" != x; then 53195 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 53196 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 53197 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 53198 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 53199 # Going to short mode and back again did indeed matter. Since short mode is 53200 # case insensitive, let's make it lowercase to improve readability. 53201 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 53202 # Now convert it back to Unix-style (cygpath) 53203 input_path=`$CYGPATH -u "$shortmode_path"` 53204 new_path="$input_path" 53205 fi 53206 fi 53207 53208 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 53209 if test "x$test_cygdrive_prefix" = x; then 53210 # As a simple fix, exclude /usr/bin since it's not a real path. 53211 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 53212 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 53213 # a path prefixed by /cygdrive for fixpath to work. 53214 new_path="$CYGWIN_ROOT_PATH$input_path" 53215 fi 53216 fi 53217 53218 53219 if test "x$path" != "x$new_path"; then 53220 MSVC_DLL="$new_path" 53221 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVC_DLL to \"$new_path\"" >&5 53222 $as_echo "$as_me: Rewriting MSVC_DLL to \"$new_path\"" >&6;} 53223 fi 53224 53225 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 53226 53227 path="$MSVC_DLL" 53228 has_colon=`$ECHO $path | $GREP ^.:` 53229 new_path="$path" 53230 if test "x$has_colon" = x; then 53231 # Not in mixed or Windows style, start by that. 53232 new_path=`cmd //c echo $path` 53233 fi 53234 53235 53236 input_path="$new_path" 53237 # Check if we need to convert this using DOS-style short mode. If the path 53238 # contains just simple characters, use it. Otherwise (spaces, weird characters), 53239 # take no chances and rewrite it. 53240 # Note: m4 eats our [], so we need to use [ and ] instead. 53241 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 53242 if test "x$has_forbidden_chars" != x; then 53243 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 53244 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 53245 fi 53246 53247 53248 windows_path="$new_path" 53249 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 53250 unix_path=`$CYGPATH -u "$windows_path"` 53251 new_path="$unix_path" 53252 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 53253 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 53254 new_path="$unix_path" 53255 fi 53256 53257 if test "x$path" != "x$new_path"; then 53258 MSVC_DLL="$new_path" 53259 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVC_DLL to \"$new_path\"" >&5 53260 $as_echo "$as_me: Rewriting MSVC_DLL to \"$new_path\"" >&6;} 53261 fi 53262 53263 # Save the first 10 bytes of this path to the storage, so fixpath can work. 53264 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 53265 53266 else 53267 # We're on a unix platform. Hooray! :) 53268 path="$MSVC_DLL" 53269 has_space=`$ECHO "$path" | $GREP " "` 53270 if test "x$has_space" != x; then 53271 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&5 53272 $as_echo "$as_me: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&6;} 53273 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 53274 fi 53275 53276 # Use eval to expand a potential ~ 53277 eval path="$path" 53278 if test ! -f "$path" && test ! -d "$path"; then 53279 as_fn_error $? "The path of MSVC_DLL, which resolves as \"$path\", is not found." "$LINENO" 5 53280 fi 53281 53282 if test -d "$path"; then 53283 MSVC_DLL="`cd "$path"; $THEPWDCMD -L`" 53284 else 53285 dir="`$DIRNAME "$path"`" 53286 base="`$BASENAME "$path"`" 53287 MSVC_DLL="`cd "$dir"; $THEPWDCMD -L`/$base" 53288 fi 53289 fi 53290 fi 53291 53292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $DLL_NAME" >&5 53293 $as_echo_n "checking for $DLL_NAME... " >&6; } 53294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSVC_DLL" >&5 53295 $as_echo "$MSVC_DLL" >&6; } 53296 else 53297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: incorrect, ignoring" >&5 53298 $as_echo "incorrect, ignoring" >&6; } 53299 { $as_echo "$as_me:${as_lineno-$LINENO}: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&5 53300 $as_echo "$as_me: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&6;} 53301 fi 53302 fi 53303 53304 if test "x$MSVC_DLL" = x; then 53305 as_fn_error $? "Could not find a proper $MSVCR_NAME as specified by --with-msvcr-dll" "$LINENO" 5 53306 fi 53307 MSVCR_DLL="$MSVC_DLL" 53308 elif test "x$DEVKIT_MSVCR_DLL" != x; then 53309 53310 DLL_NAME="$MSVCR_NAME" 53311 POSSIBLE_MSVC_DLL="$DEVKIT_MSVCR_DLL" 53312 METHOD="devkit" 53313 if test -n "$POSSIBLE_MSVC_DLL" -a -e "$POSSIBLE_MSVC_DLL"; then 53314 { $as_echo "$as_me:${as_lineno-$LINENO}: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&5 53315 $as_echo "$as_me: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&6;} 53316 53317 # Need to check if the found msvcr is correct architecture 53318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking found $DLL_NAME architecture" >&5 53319 $as_echo_n "checking found $DLL_NAME architecture... " >&6; } 53320 MSVC_DLL_FILETYPE=`$FILE -b "$POSSIBLE_MSVC_DLL"` 53321 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 53322 # The MSYS 'file' command returns "PE32 executable for MS Windows (DLL) (GUI) Intel 80386 32-bit" 53323 # on x32 and "PE32+ executable for MS Windows (DLL) (GUI) Mono/.Net assembly" on x64 systems. 53324 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 53325 CORRECT_MSVCR_ARCH="PE32 executable" 53326 else 53327 CORRECT_MSVCR_ARCH="PE32+ executable" 53328 fi 53329 else 53330 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 53331 CORRECT_MSVCR_ARCH=386 53332 else 53333 CORRECT_MSVCR_ARCH=x86-64 53334 fi 53335 fi 53336 if $ECHO "$MSVC_DLL_FILETYPE" | $GREP "$CORRECT_MSVCR_ARCH" 2>&1 > /dev/null; then 53337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 53338 $as_echo "ok" >&6; } 53339 MSVC_DLL="$POSSIBLE_MSVC_DLL" 53340 53341 # Only process if variable expands to non-empty 53342 53343 if test "x$MSVC_DLL" != x; then 53344 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 53345 53346 # Input might be given as Windows format, start by converting to 53347 # unix format. 53348 path="$MSVC_DLL" 53349 new_path=`$CYGPATH -u "$path"` 53350 53351 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 53352 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 53353 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 53354 # "foo.exe" is OK but "foo" is an error. 53355 # 53356 # This test is therefore slightly more accurate than "test -f" to check for file precense. 53357 # It is also a way to make sure we got the proper file name for the real test later on. 53358 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 53359 if test "x$test_shortpath" = x; then 53360 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&5 53361 $as_echo "$as_me: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&6;} 53362 as_fn_error $? "Cannot locate the the path of MSVC_DLL" "$LINENO" 5 53363 fi 53364 53365 # Call helper function which possibly converts this using DOS-style short mode. 53366 # If so, the updated path is stored in $new_path. 53367 53368 input_path="$new_path" 53369 # Check if we need to convert this using DOS-style short mode. If the path 53370 # contains just simple characters, use it. Otherwise (spaces, weird characters), 53371 # take no chances and rewrite it. 53372 # Note: m4 eats our [], so we need to use [ and ] instead. 53373 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 53374 if test "x$has_forbidden_chars" != x; then 53375 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 53376 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 53377 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 53378 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 53379 # Going to short mode and back again did indeed matter. Since short mode is 53380 # case insensitive, let's make it lowercase to improve readability. 53381 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 53382 # Now convert it back to Unix-style (cygpath) 53383 input_path=`$CYGPATH -u "$shortmode_path"` 53384 new_path="$input_path" 53385 fi 53386 fi 53387 53388 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 53389 if test "x$test_cygdrive_prefix" = x; then 53390 # As a simple fix, exclude /usr/bin since it's not a real path. 53391 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 53392 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 53393 # a path prefixed by /cygdrive for fixpath to work. 53394 new_path="$CYGWIN_ROOT_PATH$input_path" 53395 fi 53396 fi 53397 53398 53399 if test "x$path" != "x$new_path"; then 53400 MSVC_DLL="$new_path" 53401 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVC_DLL to \"$new_path\"" >&5 53402 $as_echo "$as_me: Rewriting MSVC_DLL to \"$new_path\"" >&6;} 53403 fi 53404 53405 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 53406 53407 path="$MSVC_DLL" 53408 has_colon=`$ECHO $path | $GREP ^.:` 53409 new_path="$path" 53410 if test "x$has_colon" = x; then 53411 # Not in mixed or Windows style, start by that. 53412 new_path=`cmd //c echo $path` 53413 fi 53414 53415 53416 input_path="$new_path" 53417 # Check if we need to convert this using DOS-style short mode. If the path 53418 # contains just simple characters, use it. Otherwise (spaces, weird characters), 53419 # take no chances and rewrite it. 53420 # Note: m4 eats our [], so we need to use [ and ] instead. 53421 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 53422 if test "x$has_forbidden_chars" != x; then 53423 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 53424 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 53425 fi 53426 53427 53428 windows_path="$new_path" 53429 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 53430 unix_path=`$CYGPATH -u "$windows_path"` 53431 new_path="$unix_path" 53432 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 53433 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 53434 new_path="$unix_path" 53435 fi 53436 53437 if test "x$path" != "x$new_path"; then 53438 MSVC_DLL="$new_path" 53439 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVC_DLL to \"$new_path\"" >&5 53440 $as_echo "$as_me: Rewriting MSVC_DLL to \"$new_path\"" >&6;} 53441 fi 53442 53443 # Save the first 10 bytes of this path to the storage, so fixpath can work. 53444 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 53445 53446 else 53447 # We're on a unix platform. Hooray! :) 53448 path="$MSVC_DLL" 53449 has_space=`$ECHO "$path" | $GREP " "` 53450 if test "x$has_space" != x; then 53451 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&5 53452 $as_echo "$as_me: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&6;} 53453 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 53454 fi 53455 53456 # Use eval to expand a potential ~ 53457 eval path="$path" 53458 if test ! -f "$path" && test ! -d "$path"; then 53459 as_fn_error $? "The path of MSVC_DLL, which resolves as \"$path\", is not found." "$LINENO" 5 53460 fi 53461 53462 if test -d "$path"; then 53463 MSVC_DLL="`cd "$path"; $THEPWDCMD -L`" 53464 else 53465 dir="`$DIRNAME "$path"`" 53466 base="`$BASENAME "$path"`" 53467 MSVC_DLL="`cd "$dir"; $THEPWDCMD -L`/$base" 53468 fi 53469 fi 53470 fi 53471 53472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $DLL_NAME" >&5 53473 $as_echo_n "checking for $DLL_NAME... " >&6; } 53474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSVC_DLL" >&5 53475 $as_echo "$MSVC_DLL" >&6; } 53476 else 53477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: incorrect, ignoring" >&5 53478 $as_echo "incorrect, ignoring" >&6; } 53479 { $as_echo "$as_me:${as_lineno-$LINENO}: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&5 53480 $as_echo "$as_me: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&6;} 53481 fi 53482 fi 53483 53484 if test "x$MSVC_DLL" = x; then 53485 as_fn_error $? "Could not find a proper $MSVCR_NAME as specified by devkit" "$LINENO" 5 53486 fi 53487 MSVCR_DLL="$MSVC_DLL" 53488 else 53489 53490 DLL_NAME="${MSVCR_NAME}" 53491 MSVC_DLL= 53492 53493 if test "x$MSVC_DLL" = x; then 53494 # Probe: Using well-known location from Visual Studio 10.0 53495 if test "x$VCINSTALLDIR" != x; then 53496 CYGWIN_VC_INSTALL_DIR="$VCINSTALLDIR" 53497 53498 windows_path="$CYGWIN_VC_INSTALL_DIR" 53499 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 53500 unix_path=`$CYGPATH -u "$windows_path"` 53501 CYGWIN_VC_INSTALL_DIR="$unix_path" 53502 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 53503 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 53504 CYGWIN_VC_INSTALL_DIR="$unix_path" 53505 fi 53506 53507 if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then 53508 POSSIBLE_MSVC_DLL="$CYGWIN_VC_INSTALL_DIR/redist/x64/Microsoft.VC${VS_VERSION_INTERNAL}.CRT/$DLL_NAME" 53509 else 53510 POSSIBLE_MSVC_DLL="$CYGWIN_VC_INSTALL_DIR/redist/x86/Microsoft.VC${VS_VERSION_INTERNAL}.CRT/$DLL_NAME" 53511 fi 53512 $ECHO "POSSIBLE_MSVC_DLL $POSSIBLEMSVC_DLL" 53513 53514 DLL_NAME="$DLL_NAME" 53515 POSSIBLE_MSVC_DLL="$POSSIBLE_MSVC_DLL" 53516 METHOD="well-known location in VCINSTALLDIR" 53517 if test -n "$POSSIBLE_MSVC_DLL" -a -e "$POSSIBLE_MSVC_DLL"; then 53518 { $as_echo "$as_me:${as_lineno-$LINENO}: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&5 53519 $as_echo "$as_me: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&6;} 53520 53521 # Need to check if the found msvcr is correct architecture 53522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking found $DLL_NAME architecture" >&5 53523 $as_echo_n "checking found $DLL_NAME architecture... " >&6; } 53524 MSVC_DLL_FILETYPE=`$FILE -b "$POSSIBLE_MSVC_DLL"` 53525 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 53526 # The MSYS 'file' command returns "PE32 executable for MS Windows (DLL) (GUI) Intel 80386 32-bit" 53527 # on x32 and "PE32+ executable for MS Windows (DLL) (GUI) Mono/.Net assembly" on x64 systems. 53528 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 53529 CORRECT_MSVCR_ARCH="PE32 executable" 53530 else 53531 CORRECT_MSVCR_ARCH="PE32+ executable" 53532 fi 53533 else 53534 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 53535 CORRECT_MSVCR_ARCH=386 53536 else 53537 CORRECT_MSVCR_ARCH=x86-64 53538 fi 53539 fi 53540 if $ECHO "$MSVC_DLL_FILETYPE" | $GREP "$CORRECT_MSVCR_ARCH" 2>&1 > /dev/null; then 53541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 53542 $as_echo "ok" >&6; } 53543 MSVC_DLL="$POSSIBLE_MSVC_DLL" 53544 53545 # Only process if variable expands to non-empty 53546 53547 if test "x$MSVC_DLL" != x; then 53548 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 53549 53550 # Input might be given as Windows format, start by converting to 53551 # unix format. 53552 path="$MSVC_DLL" 53553 new_path=`$CYGPATH -u "$path"` 53554 53555 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 53556 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 53557 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 53558 # "foo.exe" is OK but "foo" is an error. 53559 # 53560 # This test is therefore slightly more accurate than "test -f" to check for file precense. 53561 # It is also a way to make sure we got the proper file name for the real test later on. 53562 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 53563 if test "x$test_shortpath" = x; then 53564 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&5 53565 $as_echo "$as_me: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&6;} 53566 as_fn_error $? "Cannot locate the the path of MSVC_DLL" "$LINENO" 5 53567 fi 53568 53569 # Call helper function which possibly converts this using DOS-style short mode. 53570 # If so, the updated path is stored in $new_path. 53571 53572 input_path="$new_path" 53573 # Check if we need to convert this using DOS-style short mode. If the path 53574 # contains just simple characters, use it. Otherwise (spaces, weird characters), 53575 # take no chances and rewrite it. 53576 # Note: m4 eats our [], so we need to use [ and ] instead. 53577 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 53578 if test "x$has_forbidden_chars" != x; then 53579 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 53580 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 53581 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 53582 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 53583 # Going to short mode and back again did indeed matter. Since short mode is 53584 # case insensitive, let's make it lowercase to improve readability. 53585 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 53586 # Now convert it back to Unix-style (cygpath) 53587 input_path=`$CYGPATH -u "$shortmode_path"` 53588 new_path="$input_path" 53589 fi 53590 fi 53591 53592 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 53593 if test "x$test_cygdrive_prefix" = x; then 53594 # As a simple fix, exclude /usr/bin since it's not a real path. 53595 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 53596 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 53597 # a path prefixed by /cygdrive for fixpath to work. 53598 new_path="$CYGWIN_ROOT_PATH$input_path" 53599 fi 53600 fi 53601 53602 53603 if test "x$path" != "x$new_path"; then 53604 MSVC_DLL="$new_path" 53605 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVC_DLL to \"$new_path\"" >&5 53606 $as_echo "$as_me: Rewriting MSVC_DLL to \"$new_path\"" >&6;} 53607 fi 53608 53609 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 53610 53611 path="$MSVC_DLL" 53612 has_colon=`$ECHO $path | $GREP ^.:` 53613 new_path="$path" 53614 if test "x$has_colon" = x; then 53615 # Not in mixed or Windows style, start by that. 53616 new_path=`cmd //c echo $path` 53617 fi 53618 53619 53620 input_path="$new_path" 53621 # Check if we need to convert this using DOS-style short mode. If the path 53622 # contains just simple characters, use it. Otherwise (spaces, weird characters), 53623 # take no chances and rewrite it. 53624 # Note: m4 eats our [], so we need to use [ and ] instead. 53625 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 53626 if test "x$has_forbidden_chars" != x; then 53627 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 53628 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 53629 fi 53630 53631 53632 windows_path="$new_path" 53633 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 53634 unix_path=`$CYGPATH -u "$windows_path"` 53635 new_path="$unix_path" 53636 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 53637 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 53638 new_path="$unix_path" 53639 fi 53640 53641 if test "x$path" != "x$new_path"; then 53642 MSVC_DLL="$new_path" 53643 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVC_DLL to \"$new_path\"" >&5 53644 $as_echo "$as_me: Rewriting MSVC_DLL to \"$new_path\"" >&6;} 53645 fi 53646 53647 # Save the first 10 bytes of this path to the storage, so fixpath can work. 53648 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 53649 53650 else 53651 # We're on a unix platform. Hooray! :) 53652 path="$MSVC_DLL" 53653 has_space=`$ECHO "$path" | $GREP " "` 53654 if test "x$has_space" != x; then 53655 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&5 53656 $as_echo "$as_me: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&6;} 53657 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 53658 fi 53659 53660 # Use eval to expand a potential ~ 53661 eval path="$path" 53662 if test ! -f "$path" && test ! -d "$path"; then 53663 as_fn_error $? "The path of MSVC_DLL, which resolves as \"$path\", is not found." "$LINENO" 5 53664 fi 53665 53666 if test -d "$path"; then 53667 MSVC_DLL="`cd "$path"; $THEPWDCMD -L`" 53668 else 53669 dir="`$DIRNAME "$path"`" 53670 base="`$BASENAME "$path"`" 53671 MSVC_DLL="`cd "$dir"; $THEPWDCMD -L`/$base" 53672 fi 53673 fi 53674 fi 53675 53676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $DLL_NAME" >&5 53677 $as_echo_n "checking for $DLL_NAME... " >&6; } 53678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSVC_DLL" >&5 53679 $as_echo "$MSVC_DLL" >&6; } 53680 else 53681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: incorrect, ignoring" >&5 53682 $as_echo "incorrect, ignoring" >&6; } 53683 { $as_echo "$as_me:${as_lineno-$LINENO}: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&5 53684 $as_echo "$as_me: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&6;} 53685 fi 53686 fi 53687 53688 fi 53689 fi 53690 53691 if test "x$MSVC_DLL" = x; then 53692 # Probe: Check in the Boot JDK directory. 53693 POSSIBLE_MSVC_DLL="$BOOT_JDK/bin/$DLL_NAME" 53694 53695 DLL_NAME="$DLL_NAME" 53696 POSSIBLE_MSVC_DLL="$POSSIBLE_MSVC_DLL" 53697 METHOD="well-known location in Boot JDK" 53698 if test -n "$POSSIBLE_MSVC_DLL" -a -e "$POSSIBLE_MSVC_DLL"; then 53699 { $as_echo "$as_me:${as_lineno-$LINENO}: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&5 53700 $as_echo "$as_me: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&6;} 53701 53702 # Need to check if the found msvcr is correct architecture 53703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking found $DLL_NAME architecture" >&5 53704 $as_echo_n "checking found $DLL_NAME architecture... " >&6; } 53705 MSVC_DLL_FILETYPE=`$FILE -b "$POSSIBLE_MSVC_DLL"` 53706 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 53707 # The MSYS 'file' command returns "PE32 executable for MS Windows (DLL) (GUI) Intel 80386 32-bit" 53708 # on x32 and "PE32+ executable for MS Windows (DLL) (GUI) Mono/.Net assembly" on x64 systems. 53709 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 53710 CORRECT_MSVCR_ARCH="PE32 executable" 53711 else 53712 CORRECT_MSVCR_ARCH="PE32+ executable" 53713 fi 53714 else 53715 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 53716 CORRECT_MSVCR_ARCH=386 53717 else 53718 CORRECT_MSVCR_ARCH=x86-64 53719 fi 53720 fi 53721 if $ECHO "$MSVC_DLL_FILETYPE" | $GREP "$CORRECT_MSVCR_ARCH" 2>&1 > /dev/null; then 53722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 53723 $as_echo "ok" >&6; } 53724 MSVC_DLL="$POSSIBLE_MSVC_DLL" 53725 53726 # Only process if variable expands to non-empty 53727 53728 if test "x$MSVC_DLL" != x; then 53729 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 53730 53731 # Input might be given as Windows format, start by converting to 53732 # unix format. 53733 path="$MSVC_DLL" 53734 new_path=`$CYGPATH -u "$path"` 53735 53736 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 53737 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 53738 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 53739 # "foo.exe" is OK but "foo" is an error. 53740 # 53741 # This test is therefore slightly more accurate than "test -f" to check for file precense. 53742 # It is also a way to make sure we got the proper file name for the real test later on. 53743 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 53744 if test "x$test_shortpath" = x; then 53745 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&5 53746 $as_echo "$as_me: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&6;} 53747 as_fn_error $? "Cannot locate the the path of MSVC_DLL" "$LINENO" 5 53748 fi 53749 53750 # Call helper function which possibly converts this using DOS-style short mode. 53751 # If so, the updated path is stored in $new_path. 53752 53753 input_path="$new_path" 53754 # Check if we need to convert this using DOS-style short mode. If the path 53755 # contains just simple characters, use it. Otherwise (spaces, weird characters), 53756 # take no chances and rewrite it. 53757 # Note: m4 eats our [], so we need to use [ and ] instead. 53758 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 53759 if test "x$has_forbidden_chars" != x; then 53760 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 53761 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 53762 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 53763 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 53764 # Going to short mode and back again did indeed matter. Since short mode is 53765 # case insensitive, let's make it lowercase to improve readability. 53766 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 53767 # Now convert it back to Unix-style (cygpath) 53768 input_path=`$CYGPATH -u "$shortmode_path"` 53769 new_path="$input_path" 53770 fi 53771 fi 53772 53773 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 53774 if test "x$test_cygdrive_prefix" = x; then 53775 # As a simple fix, exclude /usr/bin since it's not a real path. 53776 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 53777 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 53778 # a path prefixed by /cygdrive for fixpath to work. 53779 new_path="$CYGWIN_ROOT_PATH$input_path" 53780 fi 53781 fi 53782 53783 53784 if test "x$path" != "x$new_path"; then 53785 MSVC_DLL="$new_path" 53786 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVC_DLL to \"$new_path\"" >&5 53787 $as_echo "$as_me: Rewriting MSVC_DLL to \"$new_path\"" >&6;} 53788 fi 53789 53790 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 53791 53792 path="$MSVC_DLL" 53793 has_colon=`$ECHO $path | $GREP ^.:` 53794 new_path="$path" 53795 if test "x$has_colon" = x; then 53796 # Not in mixed or Windows style, start by that. 53797 new_path=`cmd //c echo $path` 53798 fi 53799 53800 53801 input_path="$new_path" 53802 # Check if we need to convert this using DOS-style short mode. If the path 53803 # contains just simple characters, use it. Otherwise (spaces, weird characters), 53804 # take no chances and rewrite it. 53805 # Note: m4 eats our [], so we need to use [ and ] instead. 53806 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 53807 if test "x$has_forbidden_chars" != x; then 53808 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 53809 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 53810 fi 53811 53812 53813 windows_path="$new_path" 53814 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 53815 unix_path=`$CYGPATH -u "$windows_path"` 53816 new_path="$unix_path" 53817 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 53818 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 53819 new_path="$unix_path" 53820 fi 53821 53822 if test "x$path" != "x$new_path"; then 53823 MSVC_DLL="$new_path" 53824 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVC_DLL to \"$new_path\"" >&5 53825 $as_echo "$as_me: Rewriting MSVC_DLL to \"$new_path\"" >&6;} 53826 fi 53827 53828 # Save the first 10 bytes of this path to the storage, so fixpath can work. 53829 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 53830 53831 else 53832 # We're on a unix platform. Hooray! :) 53833 path="$MSVC_DLL" 53834 has_space=`$ECHO "$path" | $GREP " "` 53835 if test "x$has_space" != x; then 53836 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&5 53837 $as_echo "$as_me: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&6;} 53838 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 53839 fi 53840 53841 # Use eval to expand a potential ~ 53842 eval path="$path" 53843 if test ! -f "$path" && test ! -d "$path"; then 53844 as_fn_error $? "The path of MSVC_DLL, which resolves as \"$path\", is not found." "$LINENO" 5 53845 fi 53846 53847 if test -d "$path"; then 53848 MSVC_DLL="`cd "$path"; $THEPWDCMD -L`" 53849 else 53850 dir="`$DIRNAME "$path"`" 53851 base="`$BASENAME "$path"`" 53852 MSVC_DLL="`cd "$dir"; $THEPWDCMD -L`/$base" 53853 fi 53854 fi 53855 fi 53856 53857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $DLL_NAME" >&5 53858 $as_echo_n "checking for $DLL_NAME... " >&6; } 53859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSVC_DLL" >&5 53860 $as_echo "$MSVC_DLL" >&6; } 53861 else 53862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: incorrect, ignoring" >&5 53863 $as_echo "incorrect, ignoring" >&6; } 53864 { $as_echo "$as_me:${as_lineno-$LINENO}: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&5 53865 $as_echo "$as_me: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&6;} 53866 fi 53867 fi 53868 53869 fi 53870 53871 if test "x$MSVC_DLL" = x; then 53872 # Probe: Look in the Windows system32 directory 53873 CYGWIN_SYSTEMROOT="$SYSTEMROOT" 53874 53875 windows_path="$CYGWIN_SYSTEMROOT" 53876 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 53877 unix_path=`$CYGPATH -u "$windows_path"` 53878 CYGWIN_SYSTEMROOT="$unix_path" 53879 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 53880 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 53881 CYGWIN_SYSTEMROOT="$unix_path" 53882 fi 53883 53884 POSSIBLE_MSVC_DLL="$CYGWIN_SYSTEMROOT/system32/$DLL_NAME" 53885 53886 DLL_NAME="$DLL_NAME" 53887 POSSIBLE_MSVC_DLL="$POSSIBLE_MSVC_DLL" 53888 METHOD="well-known location in SYSTEMROOT" 53889 if test -n "$POSSIBLE_MSVC_DLL" -a -e "$POSSIBLE_MSVC_DLL"; then 53890 { $as_echo "$as_me:${as_lineno-$LINENO}: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&5 53891 $as_echo "$as_me: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&6;} 53892 53893 # Need to check if the found msvcr is correct architecture 53894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking found $DLL_NAME architecture" >&5 53895 $as_echo_n "checking found $DLL_NAME architecture... " >&6; } 53896 MSVC_DLL_FILETYPE=`$FILE -b "$POSSIBLE_MSVC_DLL"` 53897 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 53898 # The MSYS 'file' command returns "PE32 executable for MS Windows (DLL) (GUI) Intel 80386 32-bit" 53899 # on x32 and "PE32+ executable for MS Windows (DLL) (GUI) Mono/.Net assembly" on x64 systems. 53900 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 53901 CORRECT_MSVCR_ARCH="PE32 executable" 53902 else 53903 CORRECT_MSVCR_ARCH="PE32+ executable" 53904 fi 53905 else 53906 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 53907 CORRECT_MSVCR_ARCH=386 53908 else 53909 CORRECT_MSVCR_ARCH=x86-64 53910 fi 53911 fi 53912 if $ECHO "$MSVC_DLL_FILETYPE" | $GREP "$CORRECT_MSVCR_ARCH" 2>&1 > /dev/null; then 53913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 53914 $as_echo "ok" >&6; } 53915 MSVC_DLL="$POSSIBLE_MSVC_DLL" 53916 53917 # Only process if variable expands to non-empty 53918 53919 if test "x$MSVC_DLL" != x; then 53920 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 53921 53922 # Input might be given as Windows format, start by converting to 53923 # unix format. 53924 path="$MSVC_DLL" 53925 new_path=`$CYGPATH -u "$path"` 53926 53927 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 53928 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 53929 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 53930 # "foo.exe" is OK but "foo" is an error. 53931 # 53932 # This test is therefore slightly more accurate than "test -f" to check for file precense. 53933 # It is also a way to make sure we got the proper file name for the real test later on. 53934 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 53935 if test "x$test_shortpath" = x; then 53936 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&5 53937 $as_echo "$as_me: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&6;} 53938 as_fn_error $? "Cannot locate the the path of MSVC_DLL" "$LINENO" 5 53939 fi 53940 53941 # Call helper function which possibly converts this using DOS-style short mode. 53942 # If so, the updated path is stored in $new_path. 53943 53944 input_path="$new_path" 53945 # Check if we need to convert this using DOS-style short mode. If the path 53946 # contains just simple characters, use it. Otherwise (spaces, weird characters), 53947 # take no chances and rewrite it. 53948 # Note: m4 eats our [], so we need to use [ and ] instead. 53949 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 53950 if test "x$has_forbidden_chars" != x; then 53951 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 53952 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 53953 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 53954 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 53955 # Going to short mode and back again did indeed matter. Since short mode is 53956 # case insensitive, let's make it lowercase to improve readability. 53957 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 53958 # Now convert it back to Unix-style (cygpath) 53959 input_path=`$CYGPATH -u "$shortmode_path"` 53960 new_path="$input_path" 53961 fi 53962 fi 53963 53964 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 53965 if test "x$test_cygdrive_prefix" = x; then 53966 # As a simple fix, exclude /usr/bin since it's not a real path. 53967 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 53968 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 53969 # a path prefixed by /cygdrive for fixpath to work. 53970 new_path="$CYGWIN_ROOT_PATH$input_path" 53971 fi 53972 fi 53973 53974 53975 if test "x$path" != "x$new_path"; then 53976 MSVC_DLL="$new_path" 53977 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVC_DLL to \"$new_path\"" >&5 53978 $as_echo "$as_me: Rewriting MSVC_DLL to \"$new_path\"" >&6;} 53979 fi 53980 53981 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 53982 53983 path="$MSVC_DLL" 53984 has_colon=`$ECHO $path | $GREP ^.:` 53985 new_path="$path" 53986 if test "x$has_colon" = x; then 53987 # Not in mixed or Windows style, start by that. 53988 new_path=`cmd //c echo $path` 53989 fi 53990 53991 53992 input_path="$new_path" 53993 # Check if we need to convert this using DOS-style short mode. If the path 53994 # contains just simple characters, use it. Otherwise (spaces, weird characters), 53995 # take no chances and rewrite it. 53996 # Note: m4 eats our [], so we need to use [ and ] instead. 53997 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 53998 if test "x$has_forbidden_chars" != x; then 53999 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 54000 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 54001 fi 54002 54003 54004 windows_path="$new_path" 54005 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 54006 unix_path=`$CYGPATH -u "$windows_path"` 54007 new_path="$unix_path" 54008 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 54009 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 54010 new_path="$unix_path" 54011 fi 54012 54013 if test "x$path" != "x$new_path"; then 54014 MSVC_DLL="$new_path" 54015 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVC_DLL to \"$new_path\"" >&5 54016 $as_echo "$as_me: Rewriting MSVC_DLL to \"$new_path\"" >&6;} 54017 fi 54018 54019 # Save the first 10 bytes of this path to the storage, so fixpath can work. 54020 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 54021 54022 else 54023 # We're on a unix platform. Hooray! :) 54024 path="$MSVC_DLL" 54025 has_space=`$ECHO "$path" | $GREP " "` 54026 if test "x$has_space" != x; then 54027 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&5 54028 $as_echo "$as_me: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&6;} 54029 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 54030 fi 54031 54032 # Use eval to expand a potential ~ 54033 eval path="$path" 54034 if test ! -f "$path" && test ! -d "$path"; then 54035 as_fn_error $? "The path of MSVC_DLL, which resolves as \"$path\", is not found." "$LINENO" 5 54036 fi 54037 54038 if test -d "$path"; then 54039 MSVC_DLL="`cd "$path"; $THEPWDCMD -L`" 54040 else 54041 dir="`$DIRNAME "$path"`" 54042 base="`$BASENAME "$path"`" 54043 MSVC_DLL="`cd "$dir"; $THEPWDCMD -L`/$base" 54044 fi 54045 fi 54046 fi 54047 54048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $DLL_NAME" >&5 54049 $as_echo_n "checking for $DLL_NAME... " >&6; } 54050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSVC_DLL" >&5 54051 $as_echo "$MSVC_DLL" >&6; } 54052 else 54053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: incorrect, ignoring" >&5 54054 $as_echo "incorrect, ignoring" >&6; } 54055 { $as_echo "$as_me:${as_lineno-$LINENO}: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&5 54056 $as_echo "$as_me: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&6;} 54057 fi 54058 fi 54059 54060 fi 54061 54062 if test "x$MSVC_DLL" = x; then 54063 # Probe: If Visual Studio Express is installed, there is usually one with the debugger 54064 if test "x$VS100COMNTOOLS" != x; then 54065 CYGWIN_VS_TOOLS_DIR="$VS100COMNTOOLS/.." 54066 54067 windows_path="$CYGWIN_VS_TOOLS_DIR" 54068 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 54069 unix_path=`$CYGPATH -u "$windows_path"` 54070 CYGWIN_VS_TOOLS_DIR="$unix_path" 54071 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 54072 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 54073 CYGWIN_VS_TOOLS_DIR="$unix_path" 54074 fi 54075 54076 if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then 54077 POSSIBLE_MSVC_DLL=`$FIND "$CYGWIN_VS_TOOLS_DIR" -name $DLL_NAME \ 54078 | $GREP -i /x64/ | $HEAD --lines 1` 54079 else 54080 POSSIBLE_MSVC_DLL=`$FIND "$CYGWIN_VS_TOOLS_DIR" -name $DLL_NAME \ 54081 | $GREP -i /x86/ | $HEAD --lines 1` 54082 fi 54083 54084 DLL_NAME="$DLL_NAME" 54085 POSSIBLE_MSVC_DLL="$POSSIBLE_MSVC_DLL" 54086 METHOD="search of VS100COMNTOOLS" 54087 if test -n "$POSSIBLE_MSVC_DLL" -a -e "$POSSIBLE_MSVC_DLL"; then 54088 { $as_echo "$as_me:${as_lineno-$LINENO}: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&5 54089 $as_echo "$as_me: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&6;} 54090 54091 # Need to check if the found msvcr is correct architecture 54092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking found $DLL_NAME architecture" >&5 54093 $as_echo_n "checking found $DLL_NAME architecture... " >&6; } 54094 MSVC_DLL_FILETYPE=`$FILE -b "$POSSIBLE_MSVC_DLL"` 54095 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 54096 # The MSYS 'file' command returns "PE32 executable for MS Windows (DLL) (GUI) Intel 80386 32-bit" 54097 # on x32 and "PE32+ executable for MS Windows (DLL) (GUI) Mono/.Net assembly" on x64 systems. 54098 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 54099 CORRECT_MSVCR_ARCH="PE32 executable" 54100 else 54101 CORRECT_MSVCR_ARCH="PE32+ executable" 54102 fi 54103 else 54104 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 54105 CORRECT_MSVCR_ARCH=386 54106 else 54107 CORRECT_MSVCR_ARCH=x86-64 54108 fi 54109 fi 54110 if $ECHO "$MSVC_DLL_FILETYPE" | $GREP "$CORRECT_MSVCR_ARCH" 2>&1 > /dev/null; then 54111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 54112 $as_echo "ok" >&6; } 54113 MSVC_DLL="$POSSIBLE_MSVC_DLL" 54114 54115 # Only process if variable expands to non-empty 54116 54117 if test "x$MSVC_DLL" != x; then 54118 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 54119 54120 # Input might be given as Windows format, start by converting to 54121 # unix format. 54122 path="$MSVC_DLL" 54123 new_path=`$CYGPATH -u "$path"` 54124 54125 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 54126 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 54127 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 54128 # "foo.exe" is OK but "foo" is an error. 54129 # 54130 # This test is therefore slightly more accurate than "test -f" to check for file precense. 54131 # It is also a way to make sure we got the proper file name for the real test later on. 54132 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 54133 if test "x$test_shortpath" = x; then 54134 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&5 54135 $as_echo "$as_me: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&6;} 54136 as_fn_error $? "Cannot locate the the path of MSVC_DLL" "$LINENO" 5 54137 fi 54138 54139 # Call helper function which possibly converts this using DOS-style short mode. 54140 # If so, the updated path is stored in $new_path. 54141 54142 input_path="$new_path" 54143 # Check if we need to convert this using DOS-style short mode. If the path 54144 # contains just simple characters, use it. Otherwise (spaces, weird characters), 54145 # take no chances and rewrite it. 54146 # Note: m4 eats our [], so we need to use [ and ] instead. 54147 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 54148 if test "x$has_forbidden_chars" != x; then 54149 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 54150 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 54151 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 54152 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 54153 # Going to short mode and back again did indeed matter. Since short mode is 54154 # case insensitive, let's make it lowercase to improve readability. 54155 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 54156 # Now convert it back to Unix-style (cygpath) 54157 input_path=`$CYGPATH -u "$shortmode_path"` 54158 new_path="$input_path" 54159 fi 54160 fi 54161 54162 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 54163 if test "x$test_cygdrive_prefix" = x; then 54164 # As a simple fix, exclude /usr/bin since it's not a real path. 54165 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 54166 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 54167 # a path prefixed by /cygdrive for fixpath to work. 54168 new_path="$CYGWIN_ROOT_PATH$input_path" 54169 fi 54170 fi 54171 54172 54173 if test "x$path" != "x$new_path"; then 54174 MSVC_DLL="$new_path" 54175 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVC_DLL to \"$new_path\"" >&5 54176 $as_echo "$as_me: Rewriting MSVC_DLL to \"$new_path\"" >&6;} 54177 fi 54178 54179 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 54180 54181 path="$MSVC_DLL" 54182 has_colon=`$ECHO $path | $GREP ^.:` 54183 new_path="$path" 54184 if test "x$has_colon" = x; then 54185 # Not in mixed or Windows style, start by that. 54186 new_path=`cmd //c echo $path` 54187 fi 54188 54189 54190 input_path="$new_path" 54191 # Check if we need to convert this using DOS-style short mode. If the path 54192 # contains just simple characters, use it. Otherwise (spaces, weird characters), 54193 # take no chances and rewrite it. 54194 # Note: m4 eats our [], so we need to use [ and ] instead. 54195 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 54196 if test "x$has_forbidden_chars" != x; then 54197 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 54198 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 54199 fi 54200 54201 54202 windows_path="$new_path" 54203 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 54204 unix_path=`$CYGPATH -u "$windows_path"` 54205 new_path="$unix_path" 54206 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 54207 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 54208 new_path="$unix_path" 54209 fi 54210 54211 if test "x$path" != "x$new_path"; then 54212 MSVC_DLL="$new_path" 54213 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVC_DLL to \"$new_path\"" >&5 54214 $as_echo "$as_me: Rewriting MSVC_DLL to \"$new_path\"" >&6;} 54215 fi 54216 54217 # Save the first 10 bytes of this path to the storage, so fixpath can work. 54218 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 54219 54220 else 54221 # We're on a unix platform. Hooray! :) 54222 path="$MSVC_DLL" 54223 has_space=`$ECHO "$path" | $GREP " "` 54224 if test "x$has_space" != x; then 54225 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&5 54226 $as_echo "$as_me: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&6;} 54227 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 54228 fi 54229 54230 # Use eval to expand a potential ~ 54231 eval path="$path" 54232 if test ! -f "$path" && test ! -d "$path"; then 54233 as_fn_error $? "The path of MSVC_DLL, which resolves as \"$path\", is not found." "$LINENO" 5 54234 fi 54235 54236 if test -d "$path"; then 54237 MSVC_DLL="`cd "$path"; $THEPWDCMD -L`" 54238 else 54239 dir="`$DIRNAME "$path"`" 54240 base="`$BASENAME "$path"`" 54241 MSVC_DLL="`cd "$dir"; $THEPWDCMD -L`/$base" 54242 fi 54243 fi 54244 fi 54245 54246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $DLL_NAME" >&5 54247 $as_echo_n "checking for $DLL_NAME... " >&6; } 54248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSVC_DLL" >&5 54249 $as_echo "$MSVC_DLL" >&6; } 54250 else 54251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: incorrect, ignoring" >&5 54252 $as_echo "incorrect, ignoring" >&6; } 54253 { $as_echo "$as_me:${as_lineno-$LINENO}: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&5 54254 $as_echo "$as_me: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&6;} 54255 fi 54256 fi 54257 54258 fi 54259 fi 54260 54261 if test "x$MSVC_DLL" = x; then 54262 # Probe: Search wildly in the VCINSTALLDIR. We've probably lost by now. 54263 # (This was the original behaviour; kept since it might turn something up) 54264 if test "x$CYGWIN_VC_INSTALL_DIR" != x; then 54265 if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then 54266 POSSIBLE_MSVC_DLL=`$FIND "$CYGWIN_VC_INSTALL_DIR" -name $DLL_NAME \ 54267 | $GREP x64 | $HEAD --lines 1` 54268 else 54269 POSSIBLE_MSVC_DLL=`$FIND "$CYGWIN_VC_INSTALL_DIR" -name $DLL_NAME \ 54270 | $GREP x86 | $GREP -v ia64 | $GREP -v x64 | $HEAD --lines 1` 54271 if test "x$POSSIBLE_MSVC_DLL" = x; then 54272 # We're grasping at straws now... 54273 POSSIBLE_MSVC_DLL=`$FIND "$CYGWIN_VC_INSTALL_DIR" -name $DLL_NAME \ 54274 | $HEAD --lines 1` 54275 fi 54276 fi 54277 54278 54279 DLL_NAME="$DLL_NAME" 54280 POSSIBLE_MSVC_DLL="$POSSIBLE_MSVC_DLL" 54281 METHOD="search of VCINSTALLDIR" 54282 if test -n "$POSSIBLE_MSVC_DLL" -a -e "$POSSIBLE_MSVC_DLL"; then 54283 { $as_echo "$as_me:${as_lineno-$LINENO}: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&5 54284 $as_echo "$as_me: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&6;} 54285 54286 # Need to check if the found msvcr is correct architecture 54287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking found $DLL_NAME architecture" >&5 54288 $as_echo_n "checking found $DLL_NAME architecture... " >&6; } 54289 MSVC_DLL_FILETYPE=`$FILE -b "$POSSIBLE_MSVC_DLL"` 54290 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 54291 # The MSYS 'file' command returns "PE32 executable for MS Windows (DLL) (GUI) Intel 80386 32-bit" 54292 # on x32 and "PE32+ executable for MS Windows (DLL) (GUI) Mono/.Net assembly" on x64 systems. 54293 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 54294 CORRECT_MSVCR_ARCH="PE32 executable" 54295 else 54296 CORRECT_MSVCR_ARCH="PE32+ executable" 54297 fi 54298 else 54299 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 54300 CORRECT_MSVCR_ARCH=386 54301 else 54302 CORRECT_MSVCR_ARCH=x86-64 54303 fi 54304 fi 54305 if $ECHO "$MSVC_DLL_FILETYPE" | $GREP "$CORRECT_MSVCR_ARCH" 2>&1 > /dev/null; then 54306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 54307 $as_echo "ok" >&6; } 54308 MSVC_DLL="$POSSIBLE_MSVC_DLL" 54309 54310 # Only process if variable expands to non-empty 54311 54312 if test "x$MSVC_DLL" != x; then 54313 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 54314 54315 # Input might be given as Windows format, start by converting to 54316 # unix format. 54317 path="$MSVC_DLL" 54318 new_path=`$CYGPATH -u "$path"` 54319 54320 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 54321 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 54322 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 54323 # "foo.exe" is OK but "foo" is an error. 54324 # 54325 # This test is therefore slightly more accurate than "test -f" to check for file precense. 54326 # It is also a way to make sure we got the proper file name for the real test later on. 54327 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 54328 if test "x$test_shortpath" = x; then 54329 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&5 54330 $as_echo "$as_me: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&6;} 54331 as_fn_error $? "Cannot locate the the path of MSVC_DLL" "$LINENO" 5 54332 fi 54333 54334 # Call helper function which possibly converts this using DOS-style short mode. 54335 # If so, the updated path is stored in $new_path. 54336 54337 input_path="$new_path" 54338 # Check if we need to convert this using DOS-style short mode. If the path 54339 # contains just simple characters, use it. Otherwise (spaces, weird characters), 54340 # take no chances and rewrite it. 54341 # Note: m4 eats our [], so we need to use [ and ] instead. 54342 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 54343 if test "x$has_forbidden_chars" != x; then 54344 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 54345 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 54346 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 54347 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 54348 # Going to short mode and back again did indeed matter. Since short mode is 54349 # case insensitive, let's make it lowercase to improve readability. 54350 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 54351 # Now convert it back to Unix-style (cygpath) 54352 input_path=`$CYGPATH -u "$shortmode_path"` 54353 new_path="$input_path" 54354 fi 54355 fi 54356 54357 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 54358 if test "x$test_cygdrive_prefix" = x; then 54359 # As a simple fix, exclude /usr/bin since it's not a real path. 54360 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 54361 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 54362 # a path prefixed by /cygdrive for fixpath to work. 54363 new_path="$CYGWIN_ROOT_PATH$input_path" 54364 fi 54365 fi 54366 54367 54368 if test "x$path" != "x$new_path"; then 54369 MSVC_DLL="$new_path" 54370 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVC_DLL to \"$new_path\"" >&5 54371 $as_echo "$as_me: Rewriting MSVC_DLL to \"$new_path\"" >&6;} 54372 fi 54373 54374 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 54375 54376 path="$MSVC_DLL" 54377 has_colon=`$ECHO $path | $GREP ^.:` 54378 new_path="$path" 54379 if test "x$has_colon" = x; then 54380 # Not in mixed or Windows style, start by that. 54381 new_path=`cmd //c echo $path` 54382 fi 54383 54384 54385 input_path="$new_path" 54386 # Check if we need to convert this using DOS-style short mode. If the path 54387 # contains just simple characters, use it. Otherwise (spaces, weird characters), 54388 # take no chances and rewrite it. 54389 # Note: m4 eats our [], so we need to use [ and ] instead. 54390 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 54391 if test "x$has_forbidden_chars" != x; then 54392 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 54393 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 54394 fi 54395 54396 54397 windows_path="$new_path" 54398 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 54399 unix_path=`$CYGPATH -u "$windows_path"` 54400 new_path="$unix_path" 54401 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 54402 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 54403 new_path="$unix_path" 54404 fi 54405 54406 if test "x$path" != "x$new_path"; then 54407 MSVC_DLL="$new_path" 54408 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVC_DLL to \"$new_path\"" >&5 54409 $as_echo "$as_me: Rewriting MSVC_DLL to \"$new_path\"" >&6;} 54410 fi 54411 54412 # Save the first 10 bytes of this path to the storage, so fixpath can work. 54413 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 54414 54415 else 54416 # We're on a unix platform. Hooray! :) 54417 path="$MSVC_DLL" 54418 has_space=`$ECHO "$path" | $GREP " "` 54419 if test "x$has_space" != x; then 54420 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&5 54421 $as_echo "$as_me: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&6;} 54422 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 54423 fi 54424 54425 # Use eval to expand a potential ~ 54426 eval path="$path" 54427 if test ! -f "$path" && test ! -d "$path"; then 54428 as_fn_error $? "The path of MSVC_DLL, which resolves as \"$path\", is not found." "$LINENO" 5 54429 fi 54430 54431 if test -d "$path"; then 54432 MSVC_DLL="`cd "$path"; $THEPWDCMD -L`" 54433 else 54434 dir="`$DIRNAME "$path"`" 54435 base="`$BASENAME "$path"`" 54436 MSVC_DLL="`cd "$dir"; $THEPWDCMD -L`/$base" 54437 fi 54438 fi 54439 fi 54440 54441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $DLL_NAME" >&5 54442 $as_echo_n "checking for $DLL_NAME... " >&6; } 54443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSVC_DLL" >&5 54444 $as_echo "$MSVC_DLL" >&6; } 54445 else 54446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: incorrect, ignoring" >&5 54447 $as_echo "incorrect, ignoring" >&6; } 54448 { $as_echo "$as_me:${as_lineno-$LINENO}: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&5 54449 $as_echo "$as_me: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&6;} 54450 fi 54451 fi 54452 54453 fi 54454 fi 54455 54456 if test "x$MSVC_DLL" = x; then 54457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $DLL_NAME" >&5 54458 $as_echo_n "checking for $DLL_NAME... " >&6; } 54459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 54460 $as_echo "no" >&6; } 54461 as_fn_error $? "Could not find $DLL_NAME. Please specify using --with-msvcr-dll." "$LINENO" 5 54462 fi 54463 54464 MSVCR_DLL="$MSVC_DLL" 54465 fi 54466 54467 54468 54469 # Check whether --with-msvcp-dll was given. 54470 if test "${with_msvcp_dll+set}" = set; then : 54471 withval=$with_msvcp_dll; 54472 fi 54473 54474 54475 if test "x$MSVCP_NAME" != "x"; then 54476 if test "x$with_msvcp_dll" != x; then 54477 # If given explicitly by user, do not probe. If not present, fail directly. 54478 54479 DLL_NAME="$MSVCP_NAME" 54480 POSSIBLE_MSVC_DLL="$with_msvcp_dll" 54481 METHOD="--with-msvcp-dll" 54482 if test -n "$POSSIBLE_MSVC_DLL" -a -e "$POSSIBLE_MSVC_DLL"; then 54483 { $as_echo "$as_me:${as_lineno-$LINENO}: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&5 54484 $as_echo "$as_me: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&6;} 54485 54486 # Need to check if the found msvcr is correct architecture 54487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking found $DLL_NAME architecture" >&5 54488 $as_echo_n "checking found $DLL_NAME architecture... " >&6; } 54489 MSVC_DLL_FILETYPE=`$FILE -b "$POSSIBLE_MSVC_DLL"` 54490 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 54491 # The MSYS 'file' command returns "PE32 executable for MS Windows (DLL) (GUI) Intel 80386 32-bit" 54492 # on x32 and "PE32+ executable for MS Windows (DLL) (GUI) Mono/.Net assembly" on x64 systems. 54493 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 54494 CORRECT_MSVCR_ARCH="PE32 executable" 54495 else 54496 CORRECT_MSVCR_ARCH="PE32+ executable" 54497 fi 54498 else 54499 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 54500 CORRECT_MSVCR_ARCH=386 54501 else 54502 CORRECT_MSVCR_ARCH=x86-64 54503 fi 54504 fi 54505 if $ECHO "$MSVC_DLL_FILETYPE" | $GREP "$CORRECT_MSVCR_ARCH" 2>&1 > /dev/null; then 54506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 54507 $as_echo "ok" >&6; } 54508 MSVC_DLL="$POSSIBLE_MSVC_DLL" 54509 54510 # Only process if variable expands to non-empty 54511 54512 if test "x$MSVC_DLL" != x; then 54513 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 54514 54515 # Input might be given as Windows format, start by converting to 54516 # unix format. 54517 path="$MSVC_DLL" 54518 new_path=`$CYGPATH -u "$path"` 54519 54520 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 54521 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 54522 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 54523 # "foo.exe" is OK but "foo" is an error. 54524 # 54525 # This test is therefore slightly more accurate than "test -f" to check for file precense. 54526 # It is also a way to make sure we got the proper file name for the real test later on. 54527 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 54528 if test "x$test_shortpath" = x; then 54529 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&5 54530 $as_echo "$as_me: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&6;} 54531 as_fn_error $? "Cannot locate the the path of MSVC_DLL" "$LINENO" 5 54532 fi 54533 54534 # Call helper function which possibly converts this using DOS-style short mode. 54535 # If so, the updated path is stored in $new_path. 54536 54537 input_path="$new_path" 54538 # Check if we need to convert this using DOS-style short mode. If the path 54539 # contains just simple characters, use it. Otherwise (spaces, weird characters), 54540 # take no chances and rewrite it. 54541 # Note: m4 eats our [], so we need to use [ and ] instead. 54542 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 54543 if test "x$has_forbidden_chars" != x; then 54544 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 54545 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 54546 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 54547 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 54548 # Going to short mode and back again did indeed matter. Since short mode is 54549 # case insensitive, let's make it lowercase to improve readability. 54550 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 54551 # Now convert it back to Unix-style (cygpath) 54552 input_path=`$CYGPATH -u "$shortmode_path"` 54553 new_path="$input_path" 54554 fi 54555 fi 54556 54557 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 54558 if test "x$test_cygdrive_prefix" = x; then 54559 # As a simple fix, exclude /usr/bin since it's not a real path. 54560 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 54561 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 54562 # a path prefixed by /cygdrive for fixpath to work. 54563 new_path="$CYGWIN_ROOT_PATH$input_path" 54564 fi 54565 fi 54566 54567 54568 if test "x$path" != "x$new_path"; then 54569 MSVC_DLL="$new_path" 54570 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVC_DLL to \"$new_path\"" >&5 54571 $as_echo "$as_me: Rewriting MSVC_DLL to \"$new_path\"" >&6;} 54572 fi 54573 54574 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 54575 54576 path="$MSVC_DLL" 54577 has_colon=`$ECHO $path | $GREP ^.:` 54578 new_path="$path" 54579 if test "x$has_colon" = x; then 54580 # Not in mixed or Windows style, start by that. 54581 new_path=`cmd //c echo $path` 54582 fi 54583 54584 54585 input_path="$new_path" 54586 # Check if we need to convert this using DOS-style short mode. If the path 54587 # contains just simple characters, use it. Otherwise (spaces, weird characters), 54588 # take no chances and rewrite it. 54589 # Note: m4 eats our [], so we need to use [ and ] instead. 54590 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 54591 if test "x$has_forbidden_chars" != x; then 54592 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 54593 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 54594 fi 54595 54596 54597 windows_path="$new_path" 54598 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 54599 unix_path=`$CYGPATH -u "$windows_path"` 54600 new_path="$unix_path" 54601 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 54602 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 54603 new_path="$unix_path" 54604 fi 54605 54606 if test "x$path" != "x$new_path"; then 54607 MSVC_DLL="$new_path" 54608 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVC_DLL to \"$new_path\"" >&5 54609 $as_echo "$as_me: Rewriting MSVC_DLL to \"$new_path\"" >&6;} 54610 fi 54611 54612 # Save the first 10 bytes of this path to the storage, so fixpath can work. 54613 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 54614 54615 else 54616 # We're on a unix platform. Hooray! :) 54617 path="$MSVC_DLL" 54618 has_space=`$ECHO "$path" | $GREP " "` 54619 if test "x$has_space" != x; then 54620 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&5 54621 $as_echo "$as_me: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&6;} 54622 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 54623 fi 54624 54625 # Use eval to expand a potential ~ 54626 eval path="$path" 54627 if test ! -f "$path" && test ! -d "$path"; then 54628 as_fn_error $? "The path of MSVC_DLL, which resolves as \"$path\", is not found." "$LINENO" 5 54629 fi 54630 54631 if test -d "$path"; then 54632 MSVC_DLL="`cd "$path"; $THEPWDCMD -L`" 54633 else 54634 dir="`$DIRNAME "$path"`" 54635 base="`$BASENAME "$path"`" 54636 MSVC_DLL="`cd "$dir"; $THEPWDCMD -L`/$base" 54637 fi 54638 fi 54639 fi 54640 54641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $DLL_NAME" >&5 54642 $as_echo_n "checking for $DLL_NAME... " >&6; } 54643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSVC_DLL" >&5 54644 $as_echo "$MSVC_DLL" >&6; } 54645 else 54646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: incorrect, ignoring" >&5 54647 $as_echo "incorrect, ignoring" >&6; } 54648 { $as_echo "$as_me:${as_lineno-$LINENO}: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&5 54649 $as_echo "$as_me: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&6;} 54650 fi 54651 fi 54652 54653 if test "x$MSVC_DLL" = x; then 54654 as_fn_error $? "Could not find a proper $MSVCP_NAME as specified by --with-msvcp-dll" "$LINENO" 5 54655 fi 54656 MSVCP_DLL="$MSVC_DLL" 54657 elif test "x$DEVKIT_MSVCP_DLL" != x; then 54658 54659 DLL_NAME="$MSVCP_NAME" 54660 POSSIBLE_MSVC_DLL="$DEVKIT_MSVCP_DLL" 54661 METHOD="devkit" 54662 if test -n "$POSSIBLE_MSVC_DLL" -a -e "$POSSIBLE_MSVC_DLL"; then 54663 { $as_echo "$as_me:${as_lineno-$LINENO}: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&5 54664 $as_echo "$as_me: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&6;} 54665 54666 # Need to check if the found msvcr is correct architecture 54667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking found $DLL_NAME architecture" >&5 54668 $as_echo_n "checking found $DLL_NAME architecture... " >&6; } 54669 MSVC_DLL_FILETYPE=`$FILE -b "$POSSIBLE_MSVC_DLL"` 54670 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 54671 # The MSYS 'file' command returns "PE32 executable for MS Windows (DLL) (GUI) Intel 80386 32-bit" 54672 # on x32 and "PE32+ executable for MS Windows (DLL) (GUI) Mono/.Net assembly" on x64 systems. 54673 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 54674 CORRECT_MSVCR_ARCH="PE32 executable" 54675 else 54676 CORRECT_MSVCR_ARCH="PE32+ executable" 54677 fi 54678 else 54679 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 54680 CORRECT_MSVCR_ARCH=386 54681 else 54682 CORRECT_MSVCR_ARCH=x86-64 54683 fi 54684 fi 54685 if $ECHO "$MSVC_DLL_FILETYPE" | $GREP "$CORRECT_MSVCR_ARCH" 2>&1 > /dev/null; then 54686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 54687 $as_echo "ok" >&6; } 54688 MSVC_DLL="$POSSIBLE_MSVC_DLL" 54689 54690 # Only process if variable expands to non-empty 54691 54692 if test "x$MSVC_DLL" != x; then 54693 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 54694 54695 # Input might be given as Windows format, start by converting to 54696 # unix format. 54697 path="$MSVC_DLL" 54698 new_path=`$CYGPATH -u "$path"` 54699 54700 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 54701 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 54702 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 54703 # "foo.exe" is OK but "foo" is an error. 54704 # 54705 # This test is therefore slightly more accurate than "test -f" to check for file precense. 54706 # It is also a way to make sure we got the proper file name for the real test later on. 54707 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 54708 if test "x$test_shortpath" = x; then 54709 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&5 54710 $as_echo "$as_me: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&6;} 54711 as_fn_error $? "Cannot locate the the path of MSVC_DLL" "$LINENO" 5 54712 fi 54713 54714 # Call helper function which possibly converts this using DOS-style short mode. 54715 # If so, the updated path is stored in $new_path. 54716 54717 input_path="$new_path" 54718 # Check if we need to convert this using DOS-style short mode. If the path 54719 # contains just simple characters, use it. Otherwise (spaces, weird characters), 54720 # take no chances and rewrite it. 54721 # Note: m4 eats our [], so we need to use [ and ] instead. 54722 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 54723 if test "x$has_forbidden_chars" != x; then 54724 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 54725 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 54726 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 54727 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 54728 # Going to short mode and back again did indeed matter. Since short mode is 54729 # case insensitive, let's make it lowercase to improve readability. 54730 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 54731 # Now convert it back to Unix-style (cygpath) 54732 input_path=`$CYGPATH -u "$shortmode_path"` 54733 new_path="$input_path" 54734 fi 54735 fi 54736 54737 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 54738 if test "x$test_cygdrive_prefix" = x; then 54739 # As a simple fix, exclude /usr/bin since it's not a real path. 54740 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 54741 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 54742 # a path prefixed by /cygdrive for fixpath to work. 54743 new_path="$CYGWIN_ROOT_PATH$input_path" 54744 fi 54745 fi 54746 54747 54748 if test "x$path" != "x$new_path"; then 54749 MSVC_DLL="$new_path" 54750 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVC_DLL to \"$new_path\"" >&5 54751 $as_echo "$as_me: Rewriting MSVC_DLL to \"$new_path\"" >&6;} 54752 fi 54753 54754 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 54755 54756 path="$MSVC_DLL" 54757 has_colon=`$ECHO $path | $GREP ^.:` 54758 new_path="$path" 54759 if test "x$has_colon" = x; then 54760 # Not in mixed or Windows style, start by that. 54761 new_path=`cmd //c echo $path` 54762 fi 54763 54764 54765 input_path="$new_path" 54766 # Check if we need to convert this using DOS-style short mode. If the path 54767 # contains just simple characters, use it. Otherwise (spaces, weird characters), 54768 # take no chances and rewrite it. 54769 # Note: m4 eats our [], so we need to use [ and ] instead. 54770 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 54771 if test "x$has_forbidden_chars" != x; then 54772 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 54773 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 54774 fi 54775 54776 54777 windows_path="$new_path" 54778 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 54779 unix_path=`$CYGPATH -u "$windows_path"` 54780 new_path="$unix_path" 54781 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 54782 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 54783 new_path="$unix_path" 54784 fi 54785 54786 if test "x$path" != "x$new_path"; then 54787 MSVC_DLL="$new_path" 54788 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVC_DLL to \"$new_path\"" >&5 54789 $as_echo "$as_me: Rewriting MSVC_DLL to \"$new_path\"" >&6;} 54790 fi 54791 54792 # Save the first 10 bytes of this path to the storage, so fixpath can work. 54793 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 54794 54795 else 54796 # We're on a unix platform. Hooray! :) 54797 path="$MSVC_DLL" 54798 has_space=`$ECHO "$path" | $GREP " "` 54799 if test "x$has_space" != x; then 54800 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&5 54801 $as_echo "$as_me: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&6;} 54802 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 54803 fi 54804 54805 # Use eval to expand a potential ~ 54806 eval path="$path" 54807 if test ! -f "$path" && test ! -d "$path"; then 54808 as_fn_error $? "The path of MSVC_DLL, which resolves as \"$path\", is not found." "$LINENO" 5 54809 fi 54810 54811 if test -d "$path"; then 54812 MSVC_DLL="`cd "$path"; $THEPWDCMD -L`" 54813 else 54814 dir="`$DIRNAME "$path"`" 54815 base="`$BASENAME "$path"`" 54816 MSVC_DLL="`cd "$dir"; $THEPWDCMD -L`/$base" 54817 fi 54818 fi 54819 fi 54820 54821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $DLL_NAME" >&5 54822 $as_echo_n "checking for $DLL_NAME... " >&6; } 54823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSVC_DLL" >&5 54824 $as_echo "$MSVC_DLL" >&6; } 54825 else 54826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: incorrect, ignoring" >&5 54827 $as_echo "incorrect, ignoring" >&6; } 54828 { $as_echo "$as_me:${as_lineno-$LINENO}: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&5 54829 $as_echo "$as_me: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&6;} 54830 fi 54831 fi 54832 54833 if test "x$MSVC_DLL" = x; then 54834 as_fn_error $? "Could not find a proper $MSVCP_NAME as specified by devkit" "$LINENO" 5 54835 fi 54836 MSVCP_DLL="$MSVC_DLL" 54837 else 54838 54839 DLL_NAME="${MSVCP_NAME}" 54840 MSVC_DLL= 54841 54842 if test "x$MSVC_DLL" = x; then 54843 # Probe: Using well-known location from Visual Studio 10.0 54844 if test "x$VCINSTALLDIR" != x; then 54845 CYGWIN_VC_INSTALL_DIR="$VCINSTALLDIR" 54846 54847 windows_path="$CYGWIN_VC_INSTALL_DIR" 54848 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 54849 unix_path=`$CYGPATH -u "$windows_path"` 54850 CYGWIN_VC_INSTALL_DIR="$unix_path" 54851 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 54852 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 54853 CYGWIN_VC_INSTALL_DIR="$unix_path" 54854 fi 54855 54856 if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then 54857 POSSIBLE_MSVC_DLL="$CYGWIN_VC_INSTALL_DIR/redist/x64/Microsoft.VC${VS_VERSION_INTERNAL}.CRT/$DLL_NAME" 54858 else 54859 POSSIBLE_MSVC_DLL="$CYGWIN_VC_INSTALL_DIR/redist/x86/Microsoft.VC${VS_VERSION_INTERNAL}.CRT/$DLL_NAME" 54860 fi 54861 $ECHO "POSSIBLE_MSVC_DLL $POSSIBLEMSVC_DLL" 54862 54863 DLL_NAME="$DLL_NAME" 54864 POSSIBLE_MSVC_DLL="$POSSIBLE_MSVC_DLL" 54865 METHOD="well-known location in VCINSTALLDIR" 54866 if test -n "$POSSIBLE_MSVC_DLL" -a -e "$POSSIBLE_MSVC_DLL"; then 54867 { $as_echo "$as_me:${as_lineno-$LINENO}: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&5 54868 $as_echo "$as_me: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&6;} 54869 54870 # Need to check if the found msvcr is correct architecture 54871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking found $DLL_NAME architecture" >&5 54872 $as_echo_n "checking found $DLL_NAME architecture... " >&6; } 54873 MSVC_DLL_FILETYPE=`$FILE -b "$POSSIBLE_MSVC_DLL"` 54874 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 54875 # The MSYS 'file' command returns "PE32 executable for MS Windows (DLL) (GUI) Intel 80386 32-bit" 54876 # on x32 and "PE32+ executable for MS Windows (DLL) (GUI) Mono/.Net assembly" on x64 systems. 54877 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 54878 CORRECT_MSVCR_ARCH="PE32 executable" 54879 else 54880 CORRECT_MSVCR_ARCH="PE32+ executable" 54881 fi 54882 else 54883 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 54884 CORRECT_MSVCR_ARCH=386 54885 else 54886 CORRECT_MSVCR_ARCH=x86-64 54887 fi 54888 fi 54889 if $ECHO "$MSVC_DLL_FILETYPE" | $GREP "$CORRECT_MSVCR_ARCH" 2>&1 > /dev/null; then 54890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 54891 $as_echo "ok" >&6; } 54892 MSVC_DLL="$POSSIBLE_MSVC_DLL" 54893 54894 # Only process if variable expands to non-empty 54895 54896 if test "x$MSVC_DLL" != x; then 54897 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 54898 54899 # Input might be given as Windows format, start by converting to 54900 # unix format. 54901 path="$MSVC_DLL" 54902 new_path=`$CYGPATH -u "$path"` 54903 54904 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 54905 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 54906 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 54907 # "foo.exe" is OK but "foo" is an error. 54908 # 54909 # This test is therefore slightly more accurate than "test -f" to check for file precense. 54910 # It is also a way to make sure we got the proper file name for the real test later on. 54911 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 54912 if test "x$test_shortpath" = x; then 54913 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&5 54914 $as_echo "$as_me: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&6;} 54915 as_fn_error $? "Cannot locate the the path of MSVC_DLL" "$LINENO" 5 54916 fi 54917 54918 # Call helper function which possibly converts this using DOS-style short mode. 54919 # If so, the updated path is stored in $new_path. 54920 54921 input_path="$new_path" 54922 # Check if we need to convert this using DOS-style short mode. If the path 54923 # contains just simple characters, use it. Otherwise (spaces, weird characters), 54924 # take no chances and rewrite it. 54925 # Note: m4 eats our [], so we need to use [ and ] instead. 54926 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 54927 if test "x$has_forbidden_chars" != x; then 54928 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 54929 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 54930 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 54931 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 54932 # Going to short mode and back again did indeed matter. Since short mode is 54933 # case insensitive, let's make it lowercase to improve readability. 54934 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 54935 # Now convert it back to Unix-style (cygpath) 54936 input_path=`$CYGPATH -u "$shortmode_path"` 54937 new_path="$input_path" 54938 fi 54939 fi 54940 54941 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 54942 if test "x$test_cygdrive_prefix" = x; then 54943 # As a simple fix, exclude /usr/bin since it's not a real path. 54944 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 54945 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 54946 # a path prefixed by /cygdrive for fixpath to work. 54947 new_path="$CYGWIN_ROOT_PATH$input_path" 54948 fi 54949 fi 54950 54951 54952 if test "x$path" != "x$new_path"; then 54953 MSVC_DLL="$new_path" 54954 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVC_DLL to \"$new_path\"" >&5 54955 $as_echo "$as_me: Rewriting MSVC_DLL to \"$new_path\"" >&6;} 54956 fi 54957 54958 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 54959 54960 path="$MSVC_DLL" 54961 has_colon=`$ECHO $path | $GREP ^.:` 54962 new_path="$path" 54963 if test "x$has_colon" = x; then 54964 # Not in mixed or Windows style, start by that. 54965 new_path=`cmd //c echo $path` 54966 fi 54967 54968 54969 input_path="$new_path" 54970 # Check if we need to convert this using DOS-style short mode. If the path 54971 # contains just simple characters, use it. Otherwise (spaces, weird characters), 54972 # take no chances and rewrite it. 54973 # Note: m4 eats our [], so we need to use [ and ] instead. 54974 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 54975 if test "x$has_forbidden_chars" != x; then 54976 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 54977 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 54978 fi 54979 54980 54981 windows_path="$new_path" 54982 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 54983 unix_path=`$CYGPATH -u "$windows_path"` 54984 new_path="$unix_path" 54985 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 54986 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 54987 new_path="$unix_path" 54988 fi 54989 54990 if test "x$path" != "x$new_path"; then 54991 MSVC_DLL="$new_path" 54992 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVC_DLL to \"$new_path\"" >&5 54993 $as_echo "$as_me: Rewriting MSVC_DLL to \"$new_path\"" >&6;} 54994 fi 54995 54996 # Save the first 10 bytes of this path to the storage, so fixpath can work. 54997 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 54998 54999 else 55000 # We're on a unix platform. Hooray! :) 55001 path="$MSVC_DLL" 55002 has_space=`$ECHO "$path" | $GREP " "` 55003 if test "x$has_space" != x; then 55004 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&5 55005 $as_echo "$as_me: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&6;} 55006 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 55007 fi 55008 55009 # Use eval to expand a potential ~ 55010 eval path="$path" 55011 if test ! -f "$path" && test ! -d "$path"; then 55012 as_fn_error $? "The path of MSVC_DLL, which resolves as \"$path\", is not found." "$LINENO" 5 55013 fi 55014 55015 if test -d "$path"; then 55016 MSVC_DLL="`cd "$path"; $THEPWDCMD -L`" 55017 else 55018 dir="`$DIRNAME "$path"`" 55019 base="`$BASENAME "$path"`" 55020 MSVC_DLL="`cd "$dir"; $THEPWDCMD -L`/$base" 55021 fi 55022 fi 55023 fi 55024 55025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $DLL_NAME" >&5 55026 $as_echo_n "checking for $DLL_NAME... " >&6; } 55027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSVC_DLL" >&5 55028 $as_echo "$MSVC_DLL" >&6; } 55029 else 55030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: incorrect, ignoring" >&5 55031 $as_echo "incorrect, ignoring" >&6; } 55032 { $as_echo "$as_me:${as_lineno-$LINENO}: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&5 55033 $as_echo "$as_me: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&6;} 55034 fi 55035 fi 55036 55037 fi 55038 fi 55039 55040 if test "x$MSVC_DLL" = x; then 55041 # Probe: Check in the Boot JDK directory. 55042 POSSIBLE_MSVC_DLL="$BOOT_JDK/bin/$DLL_NAME" 55043 55044 DLL_NAME="$DLL_NAME" 55045 POSSIBLE_MSVC_DLL="$POSSIBLE_MSVC_DLL" 55046 METHOD="well-known location in Boot JDK" 55047 if test -n "$POSSIBLE_MSVC_DLL" -a -e "$POSSIBLE_MSVC_DLL"; then 55048 { $as_echo "$as_me:${as_lineno-$LINENO}: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&5 55049 $as_echo "$as_me: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&6;} 55050 55051 # Need to check if the found msvcr is correct architecture 55052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking found $DLL_NAME architecture" >&5 55053 $as_echo_n "checking found $DLL_NAME architecture... " >&6; } 55054 MSVC_DLL_FILETYPE=`$FILE -b "$POSSIBLE_MSVC_DLL"` 55055 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 55056 # The MSYS 'file' command returns "PE32 executable for MS Windows (DLL) (GUI) Intel 80386 32-bit" 55057 # on x32 and "PE32+ executable for MS Windows (DLL) (GUI) Mono/.Net assembly" on x64 systems. 55058 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 55059 CORRECT_MSVCR_ARCH="PE32 executable" 55060 else 55061 CORRECT_MSVCR_ARCH="PE32+ executable" 55062 fi 55063 else 55064 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 55065 CORRECT_MSVCR_ARCH=386 55066 else 55067 CORRECT_MSVCR_ARCH=x86-64 55068 fi 55069 fi 55070 if $ECHO "$MSVC_DLL_FILETYPE" | $GREP "$CORRECT_MSVCR_ARCH" 2>&1 > /dev/null; then 55071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 55072 $as_echo "ok" >&6; } 55073 MSVC_DLL="$POSSIBLE_MSVC_DLL" 55074 55075 # Only process if variable expands to non-empty 55076 55077 if test "x$MSVC_DLL" != x; then 55078 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 55079 55080 # Input might be given as Windows format, start by converting to 55081 # unix format. 55082 path="$MSVC_DLL" 55083 new_path=`$CYGPATH -u "$path"` 55084 55085 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 55086 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 55087 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 55088 # "foo.exe" is OK but "foo" is an error. 55089 # 55090 # This test is therefore slightly more accurate than "test -f" to check for file precense. 55091 # It is also a way to make sure we got the proper file name for the real test later on. 55092 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 55093 if test "x$test_shortpath" = x; then 55094 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&5 55095 $as_echo "$as_me: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&6;} 55096 as_fn_error $? "Cannot locate the the path of MSVC_DLL" "$LINENO" 5 55097 fi 55098 55099 # Call helper function which possibly converts this using DOS-style short mode. 55100 # If so, the updated path is stored in $new_path. 55101 55102 input_path="$new_path" 55103 # Check if we need to convert this using DOS-style short mode. If the path 55104 # contains just simple characters, use it. Otherwise (spaces, weird characters), 55105 # take no chances and rewrite it. 55106 # Note: m4 eats our [], so we need to use [ and ] instead. 55107 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 55108 if test "x$has_forbidden_chars" != x; then 55109 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 55110 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 55111 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 55112 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 55113 # Going to short mode and back again did indeed matter. Since short mode is 55114 # case insensitive, let's make it lowercase to improve readability. 55115 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 55116 # Now convert it back to Unix-style (cygpath) 55117 input_path=`$CYGPATH -u "$shortmode_path"` 55118 new_path="$input_path" 55119 fi 55120 fi 55121 55122 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 55123 if test "x$test_cygdrive_prefix" = x; then 55124 # As a simple fix, exclude /usr/bin since it's not a real path. 55125 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 55126 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 55127 # a path prefixed by /cygdrive for fixpath to work. 55128 new_path="$CYGWIN_ROOT_PATH$input_path" 55129 fi 55130 fi 55131 55132 55133 if test "x$path" != "x$new_path"; then 55134 MSVC_DLL="$new_path" 55135 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVC_DLL to \"$new_path\"" >&5 55136 $as_echo "$as_me: Rewriting MSVC_DLL to \"$new_path\"" >&6;} 55137 fi 55138 55139 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 55140 55141 path="$MSVC_DLL" 55142 has_colon=`$ECHO $path | $GREP ^.:` 55143 new_path="$path" 55144 if test "x$has_colon" = x; then 55145 # Not in mixed or Windows style, start by that. 55146 new_path=`cmd //c echo $path` 55147 fi 55148 55149 55150 input_path="$new_path" 55151 # Check if we need to convert this using DOS-style short mode. If the path 55152 # contains just simple characters, use it. Otherwise (spaces, weird characters), 55153 # take no chances and rewrite it. 55154 # Note: m4 eats our [], so we need to use [ and ] instead. 55155 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 55156 if test "x$has_forbidden_chars" != x; then 55157 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 55158 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 55159 fi 55160 55161 55162 windows_path="$new_path" 55163 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 55164 unix_path=`$CYGPATH -u "$windows_path"` 55165 new_path="$unix_path" 55166 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 55167 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 55168 new_path="$unix_path" 55169 fi 55170 55171 if test "x$path" != "x$new_path"; then 55172 MSVC_DLL="$new_path" 55173 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVC_DLL to \"$new_path\"" >&5 55174 $as_echo "$as_me: Rewriting MSVC_DLL to \"$new_path\"" >&6;} 55175 fi 55176 55177 # Save the first 10 bytes of this path to the storage, so fixpath can work. 55178 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 55179 55180 else 55181 # We're on a unix platform. Hooray! :) 55182 path="$MSVC_DLL" 55183 has_space=`$ECHO "$path" | $GREP " "` 55184 if test "x$has_space" != x; then 55185 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&5 55186 $as_echo "$as_me: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&6;} 55187 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 55188 fi 55189 55190 # Use eval to expand a potential ~ 55191 eval path="$path" 55192 if test ! -f "$path" && test ! -d "$path"; then 55193 as_fn_error $? "The path of MSVC_DLL, which resolves as \"$path\", is not found." "$LINENO" 5 55194 fi 55195 55196 if test -d "$path"; then 55197 MSVC_DLL="`cd "$path"; $THEPWDCMD -L`" 55198 else 55199 dir="`$DIRNAME "$path"`" 55200 base="`$BASENAME "$path"`" 55201 MSVC_DLL="`cd "$dir"; $THEPWDCMD -L`/$base" 55202 fi 55203 fi 55204 fi 55205 55206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $DLL_NAME" >&5 55207 $as_echo_n "checking for $DLL_NAME... " >&6; } 55208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSVC_DLL" >&5 55209 $as_echo "$MSVC_DLL" >&6; } 55210 else 55211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: incorrect, ignoring" >&5 55212 $as_echo "incorrect, ignoring" >&6; } 55213 { $as_echo "$as_me:${as_lineno-$LINENO}: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&5 55214 $as_echo "$as_me: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&6;} 55215 fi 55216 fi 55217 55218 fi 55219 55220 if test "x$MSVC_DLL" = x; then 55221 # Probe: Look in the Windows system32 directory 55222 CYGWIN_SYSTEMROOT="$SYSTEMROOT" 55223 55224 windows_path="$CYGWIN_SYSTEMROOT" 55225 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 55226 unix_path=`$CYGPATH -u "$windows_path"` 55227 CYGWIN_SYSTEMROOT="$unix_path" 55228 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 55229 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 55230 CYGWIN_SYSTEMROOT="$unix_path" 55231 fi 55232 55233 POSSIBLE_MSVC_DLL="$CYGWIN_SYSTEMROOT/system32/$DLL_NAME" 55234 55235 DLL_NAME="$DLL_NAME" 55236 POSSIBLE_MSVC_DLL="$POSSIBLE_MSVC_DLL" 55237 METHOD="well-known location in SYSTEMROOT" 55238 if test -n "$POSSIBLE_MSVC_DLL" -a -e "$POSSIBLE_MSVC_DLL"; then 55239 { $as_echo "$as_me:${as_lineno-$LINENO}: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&5 55240 $as_echo "$as_me: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&6;} 55241 55242 # Need to check if the found msvcr is correct architecture 55243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking found $DLL_NAME architecture" >&5 55244 $as_echo_n "checking found $DLL_NAME architecture... " >&6; } 55245 MSVC_DLL_FILETYPE=`$FILE -b "$POSSIBLE_MSVC_DLL"` 55246 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 55247 # The MSYS 'file' command returns "PE32 executable for MS Windows (DLL) (GUI) Intel 80386 32-bit" 55248 # on x32 and "PE32+ executable for MS Windows (DLL) (GUI) Mono/.Net assembly" on x64 systems. 55249 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 55250 CORRECT_MSVCR_ARCH="PE32 executable" 55251 else 55252 CORRECT_MSVCR_ARCH="PE32+ executable" 55253 fi 55254 else 55255 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 55256 CORRECT_MSVCR_ARCH=386 55257 else 55258 CORRECT_MSVCR_ARCH=x86-64 55259 fi 55260 fi 55261 if $ECHO "$MSVC_DLL_FILETYPE" | $GREP "$CORRECT_MSVCR_ARCH" 2>&1 > /dev/null; then 55262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 55263 $as_echo "ok" >&6; } 55264 MSVC_DLL="$POSSIBLE_MSVC_DLL" 55265 55266 # Only process if variable expands to non-empty 55267 55268 if test "x$MSVC_DLL" != x; then 55269 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 55270 55271 # Input might be given as Windows format, start by converting to 55272 # unix format. 55273 path="$MSVC_DLL" 55274 new_path=`$CYGPATH -u "$path"` 55275 55276 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 55277 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 55278 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 55279 # "foo.exe" is OK but "foo" is an error. 55280 # 55281 # This test is therefore slightly more accurate than "test -f" to check for file precense. 55282 # It is also a way to make sure we got the proper file name for the real test later on. 55283 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 55284 if test "x$test_shortpath" = x; then 55285 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&5 55286 $as_echo "$as_me: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&6;} 55287 as_fn_error $? "Cannot locate the the path of MSVC_DLL" "$LINENO" 5 55288 fi 55289 55290 # Call helper function which possibly converts this using DOS-style short mode. 55291 # If so, the updated path is stored in $new_path. 55292 55293 input_path="$new_path" 55294 # Check if we need to convert this using DOS-style short mode. If the path 55295 # contains just simple characters, use it. Otherwise (spaces, weird characters), 55296 # take no chances and rewrite it. 55297 # Note: m4 eats our [], so we need to use [ and ] instead. 55298 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 55299 if test "x$has_forbidden_chars" != x; then 55300 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 55301 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 55302 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 55303 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 55304 # Going to short mode and back again did indeed matter. Since short mode is 55305 # case insensitive, let's make it lowercase to improve readability. 55306 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 55307 # Now convert it back to Unix-style (cygpath) 55308 input_path=`$CYGPATH -u "$shortmode_path"` 55309 new_path="$input_path" 55310 fi 55311 fi 55312 55313 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 55314 if test "x$test_cygdrive_prefix" = x; then 55315 # As a simple fix, exclude /usr/bin since it's not a real path. 55316 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 55317 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 55318 # a path prefixed by /cygdrive for fixpath to work. 55319 new_path="$CYGWIN_ROOT_PATH$input_path" 55320 fi 55321 fi 55322 55323 55324 if test "x$path" != "x$new_path"; then 55325 MSVC_DLL="$new_path" 55326 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVC_DLL to \"$new_path\"" >&5 55327 $as_echo "$as_me: Rewriting MSVC_DLL to \"$new_path\"" >&6;} 55328 fi 55329 55330 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 55331 55332 path="$MSVC_DLL" 55333 has_colon=`$ECHO $path | $GREP ^.:` 55334 new_path="$path" 55335 if test "x$has_colon" = x; then 55336 # Not in mixed or Windows style, start by that. 55337 new_path=`cmd //c echo $path` 55338 fi 55339 55340 55341 input_path="$new_path" 55342 # Check if we need to convert this using DOS-style short mode. If the path 55343 # contains just simple characters, use it. Otherwise (spaces, weird characters), 55344 # take no chances and rewrite it. 55345 # Note: m4 eats our [], so we need to use [ and ] instead. 55346 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 55347 if test "x$has_forbidden_chars" != x; then 55348 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 55349 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 55350 fi 55351 55352 55353 windows_path="$new_path" 55354 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 55355 unix_path=`$CYGPATH -u "$windows_path"` 55356 new_path="$unix_path" 55357 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 55358 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 55359 new_path="$unix_path" 55360 fi 55361 55362 if test "x$path" != "x$new_path"; then 55363 MSVC_DLL="$new_path" 55364 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVC_DLL to \"$new_path\"" >&5 55365 $as_echo "$as_me: Rewriting MSVC_DLL to \"$new_path\"" >&6;} 55366 fi 55367 55368 # Save the first 10 bytes of this path to the storage, so fixpath can work. 55369 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 55370 55371 else 55372 # We're on a unix platform. Hooray! :) 55373 path="$MSVC_DLL" 55374 has_space=`$ECHO "$path" | $GREP " "` 55375 if test "x$has_space" != x; then 55376 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&5 55377 $as_echo "$as_me: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&6;} 55378 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 55379 fi 55380 55381 # Use eval to expand a potential ~ 55382 eval path="$path" 55383 if test ! -f "$path" && test ! -d "$path"; then 55384 as_fn_error $? "The path of MSVC_DLL, which resolves as \"$path\", is not found." "$LINENO" 5 55385 fi 55386 55387 if test -d "$path"; then 55388 MSVC_DLL="`cd "$path"; $THEPWDCMD -L`" 55389 else 55390 dir="`$DIRNAME "$path"`" 55391 base="`$BASENAME "$path"`" 55392 MSVC_DLL="`cd "$dir"; $THEPWDCMD -L`/$base" 55393 fi 55394 fi 55395 fi 55396 55397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $DLL_NAME" >&5 55398 $as_echo_n "checking for $DLL_NAME... " >&6; } 55399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSVC_DLL" >&5 55400 $as_echo "$MSVC_DLL" >&6; } 55401 else 55402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: incorrect, ignoring" >&5 55403 $as_echo "incorrect, ignoring" >&6; } 55404 { $as_echo "$as_me:${as_lineno-$LINENO}: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&5 55405 $as_echo "$as_me: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&6;} 55406 fi 55407 fi 55408 55409 fi 55410 55411 if test "x$MSVC_DLL" = x; then 55412 # Probe: If Visual Studio Express is installed, there is usually one with the debugger 55413 if test "x$VS100COMNTOOLS" != x; then 55414 CYGWIN_VS_TOOLS_DIR="$VS100COMNTOOLS/.." 55415 55416 windows_path="$CYGWIN_VS_TOOLS_DIR" 55417 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 55418 unix_path=`$CYGPATH -u "$windows_path"` 55419 CYGWIN_VS_TOOLS_DIR="$unix_path" 55420 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 55421 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 55422 CYGWIN_VS_TOOLS_DIR="$unix_path" 55423 fi 55424 55425 if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then 55426 POSSIBLE_MSVC_DLL=`$FIND "$CYGWIN_VS_TOOLS_DIR" -name $DLL_NAME \ 55427 | $GREP -i /x64/ | $HEAD --lines 1` 55428 else 55429 POSSIBLE_MSVC_DLL=`$FIND "$CYGWIN_VS_TOOLS_DIR" -name $DLL_NAME \ 55430 | $GREP -i /x86/ | $HEAD --lines 1` 55431 fi 55432 55433 DLL_NAME="$DLL_NAME" 55434 POSSIBLE_MSVC_DLL="$POSSIBLE_MSVC_DLL" 55435 METHOD="search of VS100COMNTOOLS" 55436 if test -n "$POSSIBLE_MSVC_DLL" -a -e "$POSSIBLE_MSVC_DLL"; then 55437 { $as_echo "$as_me:${as_lineno-$LINENO}: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&5 55438 $as_echo "$as_me: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&6;} 55439 55440 # Need to check if the found msvcr is correct architecture 55441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking found $DLL_NAME architecture" >&5 55442 $as_echo_n "checking found $DLL_NAME architecture... " >&6; } 55443 MSVC_DLL_FILETYPE=`$FILE -b "$POSSIBLE_MSVC_DLL"` 55444 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 55445 # The MSYS 'file' command returns "PE32 executable for MS Windows (DLL) (GUI) Intel 80386 32-bit" 55446 # on x32 and "PE32+ executable for MS Windows (DLL) (GUI) Mono/.Net assembly" on x64 systems. 55447 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 55448 CORRECT_MSVCR_ARCH="PE32 executable" 55449 else 55450 CORRECT_MSVCR_ARCH="PE32+ executable" 55451 fi 55452 else 55453 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 55454 CORRECT_MSVCR_ARCH=386 55455 else 55456 CORRECT_MSVCR_ARCH=x86-64 55457 fi 55458 fi 55459 if $ECHO "$MSVC_DLL_FILETYPE" | $GREP "$CORRECT_MSVCR_ARCH" 2>&1 > /dev/null; then 55460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 55461 $as_echo "ok" >&6; } 55462 MSVC_DLL="$POSSIBLE_MSVC_DLL" 55463 55464 # Only process if variable expands to non-empty 55465 55466 if test "x$MSVC_DLL" != x; then 55467 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 55468 55469 # Input might be given as Windows format, start by converting to 55470 # unix format. 55471 path="$MSVC_DLL" 55472 new_path=`$CYGPATH -u "$path"` 55473 55474 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 55475 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 55476 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 55477 # "foo.exe" is OK but "foo" is an error. 55478 # 55479 # This test is therefore slightly more accurate than "test -f" to check for file precense. 55480 # It is also a way to make sure we got the proper file name for the real test later on. 55481 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 55482 if test "x$test_shortpath" = x; then 55483 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&5 55484 $as_echo "$as_me: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&6;} 55485 as_fn_error $? "Cannot locate the the path of MSVC_DLL" "$LINENO" 5 55486 fi 55487 55488 # Call helper function which possibly converts this using DOS-style short mode. 55489 # If so, the updated path is stored in $new_path. 55490 55491 input_path="$new_path" 55492 # Check if we need to convert this using DOS-style short mode. If the path 55493 # contains just simple characters, use it. Otherwise (spaces, weird characters), 55494 # take no chances and rewrite it. 55495 # Note: m4 eats our [], so we need to use [ and ] instead. 55496 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 55497 if test "x$has_forbidden_chars" != x; then 55498 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 55499 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 55500 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 55501 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 55502 # Going to short mode and back again did indeed matter. Since short mode is 55503 # case insensitive, let's make it lowercase to improve readability. 55504 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 55505 # Now convert it back to Unix-style (cygpath) 55506 input_path=`$CYGPATH -u "$shortmode_path"` 55507 new_path="$input_path" 55508 fi 55509 fi 55510 55511 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 55512 if test "x$test_cygdrive_prefix" = x; then 55513 # As a simple fix, exclude /usr/bin since it's not a real path. 55514 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 55515 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 55516 # a path prefixed by /cygdrive for fixpath to work. 55517 new_path="$CYGWIN_ROOT_PATH$input_path" 55518 fi 55519 fi 55520 55521 55522 if test "x$path" != "x$new_path"; then 55523 MSVC_DLL="$new_path" 55524 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVC_DLL to \"$new_path\"" >&5 55525 $as_echo "$as_me: Rewriting MSVC_DLL to \"$new_path\"" >&6;} 55526 fi 55527 55528 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 55529 55530 path="$MSVC_DLL" 55531 has_colon=`$ECHO $path | $GREP ^.:` 55532 new_path="$path" 55533 if test "x$has_colon" = x; then 55534 # Not in mixed or Windows style, start by that. 55535 new_path=`cmd //c echo $path` 55536 fi 55537 55538 55539 input_path="$new_path" 55540 # Check if we need to convert this using DOS-style short mode. If the path 55541 # contains just simple characters, use it. Otherwise (spaces, weird characters), 55542 # take no chances and rewrite it. 55543 # Note: m4 eats our [], so we need to use [ and ] instead. 55544 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 55545 if test "x$has_forbidden_chars" != x; then 55546 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 55547 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 55548 fi 55549 55550 55551 windows_path="$new_path" 55552 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 55553 unix_path=`$CYGPATH -u "$windows_path"` 55554 new_path="$unix_path" 55555 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 55556 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 55557 new_path="$unix_path" 55558 fi 55559 55560 if test "x$path" != "x$new_path"; then 55561 MSVC_DLL="$new_path" 55562 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVC_DLL to \"$new_path\"" >&5 55563 $as_echo "$as_me: Rewriting MSVC_DLL to \"$new_path\"" >&6;} 55564 fi 55565 55566 # Save the first 10 bytes of this path to the storage, so fixpath can work. 55567 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 55568 55569 else 55570 # We're on a unix platform. Hooray! :) 55571 path="$MSVC_DLL" 55572 has_space=`$ECHO "$path" | $GREP " "` 55573 if test "x$has_space" != x; then 55574 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&5 55575 $as_echo "$as_me: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&6;} 55576 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 55577 fi 55578 55579 # Use eval to expand a potential ~ 55580 eval path="$path" 55581 if test ! -f "$path" && test ! -d "$path"; then 55582 as_fn_error $? "The path of MSVC_DLL, which resolves as \"$path\", is not found." "$LINENO" 5 55583 fi 55584 55585 if test -d "$path"; then 55586 MSVC_DLL="`cd "$path"; $THEPWDCMD -L`" 55587 else 55588 dir="`$DIRNAME "$path"`" 55589 base="`$BASENAME "$path"`" 55590 MSVC_DLL="`cd "$dir"; $THEPWDCMD -L`/$base" 55591 fi 55592 fi 55593 fi 55594 55595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $DLL_NAME" >&5 55596 $as_echo_n "checking for $DLL_NAME... " >&6; } 55597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSVC_DLL" >&5 55598 $as_echo "$MSVC_DLL" >&6; } 55599 else 55600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: incorrect, ignoring" >&5 55601 $as_echo "incorrect, ignoring" >&6; } 55602 { $as_echo "$as_me:${as_lineno-$LINENO}: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&5 55603 $as_echo "$as_me: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&6;} 55604 fi 55605 fi 55606 55607 fi 55608 fi 55609 55610 if test "x$MSVC_DLL" = x; then 55611 # Probe: Search wildly in the VCINSTALLDIR. We've probably lost by now. 55612 # (This was the original behaviour; kept since it might turn something up) 55613 if test "x$CYGWIN_VC_INSTALL_DIR" != x; then 55614 if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then 55615 POSSIBLE_MSVC_DLL=`$FIND "$CYGWIN_VC_INSTALL_DIR" -name $DLL_NAME \ 55616 | $GREP x64 | $HEAD --lines 1` 55617 else 55618 POSSIBLE_MSVC_DLL=`$FIND "$CYGWIN_VC_INSTALL_DIR" -name $DLL_NAME \ 55619 | $GREP x86 | $GREP -v ia64 | $GREP -v x64 | $HEAD --lines 1` 55620 if test "x$POSSIBLE_MSVC_DLL" = x; then 55621 # We're grasping at straws now... 55622 POSSIBLE_MSVC_DLL=`$FIND "$CYGWIN_VC_INSTALL_DIR" -name $DLL_NAME \ 55623 | $HEAD --lines 1` 55624 fi 55625 fi 55626 55627 55628 DLL_NAME="$DLL_NAME" 55629 POSSIBLE_MSVC_DLL="$POSSIBLE_MSVC_DLL" 55630 METHOD="search of VCINSTALLDIR" 55631 if test -n "$POSSIBLE_MSVC_DLL" -a -e "$POSSIBLE_MSVC_DLL"; then 55632 { $as_echo "$as_me:${as_lineno-$LINENO}: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&5 55633 $as_echo "$as_me: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&6;} 55634 55635 # Need to check if the found msvcr is correct architecture 55636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking found $DLL_NAME architecture" >&5 55637 $as_echo_n "checking found $DLL_NAME architecture... " >&6; } 55638 MSVC_DLL_FILETYPE=`$FILE -b "$POSSIBLE_MSVC_DLL"` 55639 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 55640 # The MSYS 'file' command returns "PE32 executable for MS Windows (DLL) (GUI) Intel 80386 32-bit" 55641 # on x32 and "PE32+ executable for MS Windows (DLL) (GUI) Mono/.Net assembly" on x64 systems. 55642 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 55643 CORRECT_MSVCR_ARCH="PE32 executable" 55644 else 55645 CORRECT_MSVCR_ARCH="PE32+ executable" 55646 fi 55647 else 55648 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 55649 CORRECT_MSVCR_ARCH=386 55650 else 55651 CORRECT_MSVCR_ARCH=x86-64 55652 fi 55653 fi 55654 if $ECHO "$MSVC_DLL_FILETYPE" | $GREP "$CORRECT_MSVCR_ARCH" 2>&1 > /dev/null; then 55655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 55656 $as_echo "ok" >&6; } 55657 MSVC_DLL="$POSSIBLE_MSVC_DLL" 55658 55659 # Only process if variable expands to non-empty 55660 55661 if test "x$MSVC_DLL" != x; then 55662 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 55663 55664 # Input might be given as Windows format, start by converting to 55665 # unix format. 55666 path="$MSVC_DLL" 55667 new_path=`$CYGPATH -u "$path"` 55668 55669 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 55670 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 55671 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 55672 # "foo.exe" is OK but "foo" is an error. 55673 # 55674 # This test is therefore slightly more accurate than "test -f" to check for file precense. 55675 # It is also a way to make sure we got the proper file name for the real test later on. 55676 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 55677 if test "x$test_shortpath" = x; then 55678 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&5 55679 $as_echo "$as_me: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&6;} 55680 as_fn_error $? "Cannot locate the the path of MSVC_DLL" "$LINENO" 5 55681 fi 55682 55683 # Call helper function which possibly converts this using DOS-style short mode. 55684 # If so, the updated path is stored in $new_path. 55685 55686 input_path="$new_path" 55687 # Check if we need to convert this using DOS-style short mode. If the path 55688 # contains just simple characters, use it. Otherwise (spaces, weird characters), 55689 # take no chances and rewrite it. 55690 # Note: m4 eats our [], so we need to use [ and ] instead. 55691 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 55692 if test "x$has_forbidden_chars" != x; then 55693 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 55694 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 55695 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 55696 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 55697 # Going to short mode and back again did indeed matter. Since short mode is 55698 # case insensitive, let's make it lowercase to improve readability. 55699 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 55700 # Now convert it back to Unix-style (cygpath) 55701 input_path=`$CYGPATH -u "$shortmode_path"` 55702 new_path="$input_path" 55703 fi 55704 fi 55705 55706 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 55707 if test "x$test_cygdrive_prefix" = x; then 55708 # As a simple fix, exclude /usr/bin since it's not a real path. 55709 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 55710 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 55711 # a path prefixed by /cygdrive for fixpath to work. 55712 new_path="$CYGWIN_ROOT_PATH$input_path" 55713 fi 55714 fi 55715 55716 55717 if test "x$path" != "x$new_path"; then 55718 MSVC_DLL="$new_path" 55719 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVC_DLL to \"$new_path\"" >&5 55720 $as_echo "$as_me: Rewriting MSVC_DLL to \"$new_path\"" >&6;} 55721 fi 55722 55723 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 55724 55725 path="$MSVC_DLL" 55726 has_colon=`$ECHO $path | $GREP ^.:` 55727 new_path="$path" 55728 if test "x$has_colon" = x; then 55729 # Not in mixed or Windows style, start by that. 55730 new_path=`cmd //c echo $path` 55731 fi 55732 55733 55734 input_path="$new_path" 55735 # Check if we need to convert this using DOS-style short mode. If the path 55736 # contains just simple characters, use it. Otherwise (spaces, weird characters), 55737 # take no chances and rewrite it. 55738 # Note: m4 eats our [], so we need to use [ and ] instead. 55739 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 55740 if test "x$has_forbidden_chars" != x; then 55741 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 55742 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 55743 fi 55744 55745 55746 windows_path="$new_path" 55747 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 55748 unix_path=`$CYGPATH -u "$windows_path"` 55749 new_path="$unix_path" 55750 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 55751 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 55752 new_path="$unix_path" 55753 fi 55754 55755 if test "x$path" != "x$new_path"; then 55756 MSVC_DLL="$new_path" 55757 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVC_DLL to \"$new_path\"" >&5 55758 $as_echo "$as_me: Rewriting MSVC_DLL to \"$new_path\"" >&6;} 55759 fi 55760 55761 # Save the first 10 bytes of this path to the storage, so fixpath can work. 55762 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 55763 55764 else 55765 # We're on a unix platform. Hooray! :) 55766 path="$MSVC_DLL" 55767 has_space=`$ECHO "$path" | $GREP " "` 55768 if test "x$has_space" != x; then 55769 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&5 55770 $as_echo "$as_me: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&6;} 55771 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 55772 fi 55773 55774 # Use eval to expand a potential ~ 55775 eval path="$path" 55776 if test ! -f "$path" && test ! -d "$path"; then 55777 as_fn_error $? "The path of MSVC_DLL, which resolves as \"$path\", is not found." "$LINENO" 5 55778 fi 55779 55780 if test -d "$path"; then 55781 MSVC_DLL="`cd "$path"; $THEPWDCMD -L`" 55782 else 55783 dir="`$DIRNAME "$path"`" 55784 base="`$BASENAME "$path"`" 55785 MSVC_DLL="`cd "$dir"; $THEPWDCMD -L`/$base" 55786 fi 55787 fi 55788 fi 55789 55790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $DLL_NAME" >&5 55791 $as_echo_n "checking for $DLL_NAME... " >&6; } 55792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSVC_DLL" >&5 55793 $as_echo "$MSVC_DLL" >&6; } 55794 else 55795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: incorrect, ignoring" >&5 55796 $as_echo "incorrect, ignoring" >&6; } 55797 { $as_echo "$as_me:${as_lineno-$LINENO}: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&5 55798 $as_echo "$as_me: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&6;} 55799 fi 55800 fi 55801 55802 fi 55803 fi 55804 55805 if test "x$MSVC_DLL" = x; then 55806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $DLL_NAME" >&5 55807 $as_echo_n "checking for $DLL_NAME... " >&6; } 55808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 55809 $as_echo "no" >&6; } 55810 as_fn_error $? "Could not find $DLL_NAME. Please specify using --with-msvcr-dll." "$LINENO" 5 55811 fi 55812 55813 MSVCP_DLL="$MSVC_DLL" 55814 fi 55815 55816 fi 55817 55818 fi 55819 55820 55821 if test "x$NEEDS_LIB_X11" = xfalse; then 55822 if (test "x${with_x}" != x && test "x${with_x}" != xno); then 55823 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: X11 is not used, so --with-x is ignored" >&5 55824 $as_echo "$as_me: WARNING: X11 is not used, so --with-x is ignored" >&2;} 55825 fi 55826 X_CFLAGS= 55827 X_LIBS= 55828 else 55829 55830 if test "x${with_x}" = xno; then 55831 as_fn_error $? "It is not possible to disable the use of X11. Remove the --without-x option." "$LINENO" 5 55832 fi 55833 55834 if test "x${with_x}" != x && test "x${with_x}" != xyes; then 55835 # The user has specified a X11 base directory. Use it for includes and 55836 # libraries, unless explicitly overridden. 55837 if test "x$x_includes" = xNONE; then 55838 x_includes="${with_x}/include" 55839 fi 55840 if test "x$x_libraries" = xNONE; then 55841 x_libraries="${with_x}/lib" 55842 fi 55843 else 55844 # Check if the user has specified sysroot, but not --with-x, --x-includes or --x-libraries. 55845 # Make a simple check for the libraries at the sysroot, and setup --x-includes and 55846 # --x-libraries for the sysroot, if that seems to be correct. 55847 if test "x$SYSROOT" != "x"; then 55848 if test "x$x_includes" = xNONE; then 55849 if test -f "$SYSROOT/usr/X11R6/include/X11/Xlib.h"; then 55850 x_includes="$SYSROOT/usr/X11R6/include" 55851 elif test -f "$SYSROOT/usr/include/X11/Xlib.h"; then 55852 x_includes="$SYSROOT/usr/include" 55853 fi 55854 fi 55855 if test "x$x_libraries" = xNONE; then 55856 if test -f "$SYSROOT/usr/X11R6/lib/libX11.so"; then 55857 x_libraries="$SYSROOT/usr/X11R6/lib" 55858 elif test -f "$SYSROOT/usr/lib64/libX11.so" && test "x$OPENJDK_TARGET_CPU_BITS" = x64; then 55859 x_libraries="$SYSROOT/usr/lib64" 55860 elif test -f "$SYSROOT/usr/lib/libX11.so"; then 55861 x_libraries="$SYSROOT/usr/lib" 55862 fi 55863 fi 55864 fi 55865 fi 55866 55867 # Now let autoconf do it's magic 55868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5 55869 $as_echo_n "checking for X... " >&6; } 55870 55871 55872 # Check whether --with-x was given. 55873 if test "${with_x+set}" = set; then : 55874 withval=$with_x; 55875 fi 55876 55877 # $have_x is `yes', `no', `disabled', or empty when we do not yet know. 55878 if test "x$with_x" = xno; then 55879 # The user explicitly disabled X. 55880 have_x=disabled 55881 else 55882 case $x_includes,$x_libraries in #( 55883 *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #( 55884 *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then : 55885 $as_echo_n "(cached) " >&6 55886 else 55887 # One or both of the vars are not set, and there is no cached value. 55888 ac_x_includes=no ac_x_libraries=no 55889 rm -f -r conftest.dir 55890 if mkdir conftest.dir; then 55891 cd conftest.dir 55892 cat >Imakefile <<'_ACEOF' 55893 incroot: 55894 @echo incroot='${INCROOT}' 55895 usrlibdir: 55896 @echo usrlibdir='${USRLIBDIR}' 55897 libdir: 55898 @echo libdir='${LIBDIR}' 55899 _ACEOF 55900 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then 55901 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 55902 for ac_var in incroot usrlibdir libdir; do 55903 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`" 55904 done 55905 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR. 55906 for ac_extension in a so sl dylib la dll; do 55907 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" && 55908 test -f "$ac_im_libdir/libX11.$ac_extension"; then 55909 ac_im_usrlibdir=$ac_im_libdir; break 55910 fi 55911 done 55912 # Screen out bogus values from the imake configuration. They are 55913 # bogus both because they are the default anyway, and because 55914 # using them would break gcc on systems where it needs fixed includes. 55915 case $ac_im_incroot in 55916 /usr/include) ac_x_includes= ;; 55917 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;; 55918 esac 55919 case $ac_im_usrlibdir in 55920 /usr/lib | /usr/lib64 | /lib | /lib64) ;; 55921 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;; 55922 esac 55923 fi 55924 cd .. 55925 rm -f -r conftest.dir 55926 fi 55927 55928 # Standard set of common directories for X headers. 55929 # Check X11 before X11Rn because it is often a symlink to the current release. 55930 ac_x_header_dirs=' 55931 /usr/X11/include 55932 /usr/X11R7/include 55933 /usr/X11R6/include 55934 /usr/X11R5/include 55935 /usr/X11R4/include 55936 55937 /usr/include/X11 55938 /usr/include/X11R7 55939 /usr/include/X11R6 55940 /usr/include/X11R5 55941 /usr/include/X11R4 55942 55943 /usr/local/X11/include 55944 /usr/local/X11R7/include 55945 /usr/local/X11R6/include 55946 /usr/local/X11R5/include 55947 /usr/local/X11R4/include 55948 55949 /usr/local/include/X11 55950 /usr/local/include/X11R7 55951 /usr/local/include/X11R6 55952 /usr/local/include/X11R5 55953 /usr/local/include/X11R4 55954 55955 /usr/X386/include 55956 /usr/x386/include 55957 /usr/XFree86/include/X11 55958 55959 /usr/include 55960 /usr/local/include 55961 /usr/unsupported/include 55962 /usr/athena/include 55963 /usr/local/x11r5/include 55964 /usr/lpp/Xamples/include 55965 55966 /usr/openwin/include 55967 /usr/openwin/share/include' 55968 55969 if test "$ac_x_includes" = no; then 55970 # Guess where to find include files, by looking for Xlib.h. 55971 # First, try using that file with no special directory specified. 55972 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 55973 /* end confdefs.h. */ 55974 #include <X11/Xlib.h> 55975 _ACEOF 55976 if ac_fn_cxx_try_cpp "$LINENO"; then : 55977 # We can compile using X headers with no special include directory. 55978 ac_x_includes= 55979 else 55980 for ac_dir in $ac_x_header_dirs; do 55981 if test -r "$ac_dir/X11/Xlib.h"; then 55982 ac_x_includes=$ac_dir 55983 break 55984 fi 55985 done 55986 fi 55987 rm -f conftest.err conftest.i conftest.$ac_ext 55988 fi # $ac_x_includes = no 55989 55990 if test "$ac_x_libraries" = no; then 55991 # Check for the libraries. 55992 # See if we find them without any special options. 55993 # Don't add to $LIBS permanently. 55994 ac_save_LIBS=$LIBS 55995 LIBS="-lX11 $LIBS" 55996 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 55997 /* end confdefs.h. */ 55998 #include <X11/Xlib.h> 55999 int 56000 main () 56001 { 56002 XrmInitialize () 56003 ; 56004 return 0; 56005 } 56006 _ACEOF 56007 if ac_fn_cxx_try_link "$LINENO"; then : 56008 LIBS=$ac_save_LIBS 56009 # We can link X programs with no special library path. 56010 ac_x_libraries= 56011 else 56012 LIBS=$ac_save_LIBS 56013 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g` 56014 do 56015 # Don't even attempt the hair of trying to link an X program! 56016 for ac_extension in a so sl dylib la dll; do 56017 if test -r "$ac_dir/libX11.$ac_extension"; then 56018 ac_x_libraries=$ac_dir 56019 break 2 56020 fi 56021 done 56022 done 56023 fi 56024 rm -f core conftest.err conftest.$ac_objext \ 56025 conftest$ac_exeext conftest.$ac_ext 56026 fi # $ac_x_libraries = no 56027 56028 case $ac_x_includes,$ac_x_libraries in #( 56029 no,* | *,no | *\'*) 56030 # Didn't find X, or a directory has "'" in its name. 56031 ac_cv_have_x="have_x=no";; #( 56032 *) 56033 # Record where we found X for the cache. 56034 ac_cv_have_x="have_x=yes\ 56035 ac_x_includes='$ac_x_includes'\ 56036 ac_x_libraries='$ac_x_libraries'" 56037 esac 56038 fi 56039 ;; #( 56040 *) have_x=yes;; 56041 esac 56042 eval "$ac_cv_have_x" 56043 fi # $with_x != no 56044 56045 if test "$have_x" != yes; then 56046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5 56047 $as_echo "$have_x" >&6; } 56048 no_x=yes 56049 else 56050 # If each of the values was on the command line, it overrides each guess. 56051 test "x$x_includes" = xNONE && x_includes=$ac_x_includes 56052 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries 56053 # Update the cache value to reflect the command line values. 56054 ac_cv_have_x="have_x=yes\ 56055 ac_x_includes='$x_includes'\ 56056 ac_x_libraries='$x_libraries'" 56057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5 56058 $as_echo "libraries $x_libraries, headers $x_includes" >&6; } 56059 fi 56060 56061 if test "$no_x" = yes; then 56062 # Not all programs may use this symbol, but it does not hurt to define it. 56063 56064 $as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h 56065 56066 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS= 56067 else 56068 if test -n "$x_includes"; then 56069 X_CFLAGS="$X_CFLAGS -I$x_includes" 56070 fi 56071 56072 # It would also be nice to do this for all -L options, not just this one. 56073 if test -n "$x_libraries"; then 56074 X_LIBS="$X_LIBS -L$x_libraries" 56075 # For Solaris; some versions of Sun CC require a space after -R and 56076 # others require no space. Words are not sufficient . . . . 56077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5 56078 $as_echo_n "checking whether -R must be followed by a space... " >&6; } 56079 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries" 56080 ac_xsave_cxx_werror_flag=$ac_cxx_werror_flag 56081 ac_cxx_werror_flag=yes 56082 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 56083 /* end confdefs.h. */ 56084 56085 int 56086 main () 56087 { 56088 56089 ; 56090 return 0; 56091 } 56092 _ACEOF 56093 if ac_fn_cxx_try_link "$LINENO"; then : 56094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 56095 $as_echo "no" >&6; } 56096 X_LIBS="$X_LIBS -R$x_libraries" 56097 else 56098 LIBS="$ac_xsave_LIBS -R $x_libraries" 56099 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 56100 /* end confdefs.h. */ 56101 56102 int 56103 main () 56104 { 56105 56106 ; 56107 return 0; 56108 } 56109 _ACEOF 56110 if ac_fn_cxx_try_link "$LINENO"; then : 56111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 56112 $as_echo "yes" >&6; } 56113 X_LIBS="$X_LIBS -R $x_libraries" 56114 else 56115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5 56116 $as_echo "neither works" >&6; } 56117 fi 56118 rm -f core conftest.err conftest.$ac_objext \ 56119 conftest$ac_exeext conftest.$ac_ext 56120 fi 56121 rm -f core conftest.err conftest.$ac_objext \ 56122 conftest$ac_exeext conftest.$ac_ext 56123 ac_cxx_werror_flag=$ac_xsave_cxx_werror_flag 56124 LIBS=$ac_xsave_LIBS 56125 fi 56126 56127 # Check for system-dependent libraries X programs must link with. 56128 # Do this before checking for the system-independent R6 libraries 56129 # (-lICE), since we may need -lsocket or whatever for X linking. 56130 56131 if test "$ISC" = yes; then 56132 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet" 56133 else 56134 # Martyn Johnson says this is needed for Ultrix, if the X 56135 # libraries were built with DECnet support. And Karl Berry says 56136 # the Alpha needs dnet_stub (dnet does not exist). 56137 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11" 56138 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 56139 /* end confdefs.h. */ 56140 56141 /* Override any GCC internal prototype to avoid an error. 56142 Use char because int might match the return type of a GCC 56143 builtin and then its argument prototype would still apply. */ 56144 #ifdef __cplusplus 56145 extern "C" 56146 #endif 56147 char XOpenDisplay (); 56148 int 56149 main () 56150 { 56151 return XOpenDisplay (); 56152 ; 56153 return 0; 56154 } 56155 _ACEOF 56156 if ac_fn_cxx_try_link "$LINENO"; then : 56157 56158 else 56159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5 56160 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; } 56161 if ${ac_cv_lib_dnet_dnet_ntoa+:} false; then : 56162 $as_echo_n "(cached) " >&6 56163 else 56164 ac_check_lib_save_LIBS=$LIBS 56165 LIBS="-ldnet $LIBS" 56166 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 56167 /* end confdefs.h. */ 56168 56169 /* Override any GCC internal prototype to avoid an error. 56170 Use char because int might match the return type of a GCC 56171 builtin and then its argument prototype would still apply. */ 56172 #ifdef __cplusplus 56173 extern "C" 56174 #endif 56175 char dnet_ntoa (); 56176 int 56177 main () 56178 { 56179 return dnet_ntoa (); 56180 ; 56181 return 0; 56182 } 56183 _ACEOF 56184 if ac_fn_cxx_try_link "$LINENO"; then : 56185 ac_cv_lib_dnet_dnet_ntoa=yes 56186 else 56187 ac_cv_lib_dnet_dnet_ntoa=no 56188 fi 56189 rm -f core conftest.err conftest.$ac_objext \ 56190 conftest$ac_exeext conftest.$ac_ext 56191 LIBS=$ac_check_lib_save_LIBS 56192 fi 56193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5 56194 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; } 56195 if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes; then : 56196 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet" 56197 fi 56198 56199 if test $ac_cv_lib_dnet_dnet_ntoa = no; then 56200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5 56201 $as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; } 56202 if ${ac_cv_lib_dnet_stub_dnet_ntoa+:} false; then : 56203 $as_echo_n "(cached) " >&6 56204 else 56205 ac_check_lib_save_LIBS=$LIBS 56206 LIBS="-ldnet_stub $LIBS" 56207 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 56208 /* end confdefs.h. */ 56209 56210 /* Override any GCC internal prototype to avoid an error. 56211 Use char because int might match the return type of a GCC 56212 builtin and then its argument prototype would still apply. */ 56213 #ifdef __cplusplus 56214 extern "C" 56215 #endif 56216 char dnet_ntoa (); 56217 int 56218 main () 56219 { 56220 return dnet_ntoa (); 56221 ; 56222 return 0; 56223 } 56224 _ACEOF 56225 if ac_fn_cxx_try_link "$LINENO"; then : 56226 ac_cv_lib_dnet_stub_dnet_ntoa=yes 56227 else 56228 ac_cv_lib_dnet_stub_dnet_ntoa=no 56229 fi 56230 rm -f core conftest.err conftest.$ac_objext \ 56231 conftest$ac_exeext conftest.$ac_ext 56232 LIBS=$ac_check_lib_save_LIBS 56233 fi 56234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5 56235 $as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; } 56236 if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes; then : 56237 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub" 56238 fi 56239 56240 fi 56241 fi 56242 rm -f core conftest.err conftest.$ac_objext \ 56243 conftest$ac_exeext conftest.$ac_ext 56244 LIBS="$ac_xsave_LIBS" 56245 56246 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT, 56247 # to get the SysV transport functions. 56248 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4) 56249 # needs -lnsl. 56250 # The nsl library prevents programs from opening the X display 56251 # on Irix 5.2, according to T.E. Dickey. 56252 # The functions gethostbyname, getservbyname, and inet_addr are 56253 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking. 56254 ac_fn_cxx_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname" 56255 if test "x$ac_cv_func_gethostbyname" = xyes; then : 56256 56257 fi 56258 56259 if test $ac_cv_func_gethostbyname = no; then 56260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5 56261 $as_echo_n "checking for gethostbyname in -lnsl... " >&6; } 56262 if ${ac_cv_lib_nsl_gethostbyname+:} false; then : 56263 $as_echo_n "(cached) " >&6 56264 else 56265 ac_check_lib_save_LIBS=$LIBS 56266 LIBS="-lnsl $LIBS" 56267 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 56268 /* end confdefs.h. */ 56269 56270 /* Override any GCC internal prototype to avoid an error. 56271 Use char because int might match the return type of a GCC 56272 builtin and then its argument prototype would still apply. */ 56273 #ifdef __cplusplus 56274 extern "C" 56275 #endif 56276 char gethostbyname (); 56277 int 56278 main () 56279 { 56280 return gethostbyname (); 56281 ; 56282 return 0; 56283 } 56284 _ACEOF 56285 if ac_fn_cxx_try_link "$LINENO"; then : 56286 ac_cv_lib_nsl_gethostbyname=yes 56287 else 56288 ac_cv_lib_nsl_gethostbyname=no 56289 fi 56290 rm -f core conftest.err conftest.$ac_objext \ 56291 conftest$ac_exeext conftest.$ac_ext 56292 LIBS=$ac_check_lib_save_LIBS 56293 fi 56294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5 56295 $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; } 56296 if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then : 56297 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl" 56298 fi 56299 56300 if test $ac_cv_lib_nsl_gethostbyname = no; then 56301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5 56302 $as_echo_n "checking for gethostbyname in -lbsd... " >&6; } 56303 if ${ac_cv_lib_bsd_gethostbyname+:} false; then : 56304 $as_echo_n "(cached) " >&6 56305 else 56306 ac_check_lib_save_LIBS=$LIBS 56307 LIBS="-lbsd $LIBS" 56308 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 56309 /* end confdefs.h. */ 56310 56311 /* Override any GCC internal prototype to avoid an error. 56312 Use char because int might match the return type of a GCC 56313 builtin and then its argument prototype would still apply. */ 56314 #ifdef __cplusplus 56315 extern "C" 56316 #endif 56317 char gethostbyname (); 56318 int 56319 main () 56320 { 56321 return gethostbyname (); 56322 ; 56323 return 0; 56324 } 56325 _ACEOF 56326 if ac_fn_cxx_try_link "$LINENO"; then : 56327 ac_cv_lib_bsd_gethostbyname=yes 56328 else 56329 ac_cv_lib_bsd_gethostbyname=no 56330 fi 56331 rm -f core conftest.err conftest.$ac_objext \ 56332 conftest$ac_exeext conftest.$ac_ext 56333 LIBS=$ac_check_lib_save_LIBS 56334 fi 56335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5 56336 $as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; } 56337 if test "x$ac_cv_lib_bsd_gethostbyname" = xyes; then : 56338 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd" 56339 fi 56340 56341 fi 56342 fi 56343 56344 # lieder@skyler.mavd.honeywell.com says without -lsocket, 56345 # socket/setsockopt and other routines are undefined under SCO ODT 56346 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary 56347 # on later versions), says Simon Leinen: it contains gethostby* 56348 # variants that don't use the name server (or something). -lsocket 56349 # must be given before -lnsl if both are needed. We assume that 56350 # if connect needs -lnsl, so does gethostbyname. 56351 ac_fn_cxx_check_func "$LINENO" "connect" "ac_cv_func_connect" 56352 if test "x$ac_cv_func_connect" = xyes; then : 56353 56354 fi 56355 56356 if test $ac_cv_func_connect = no; then 56357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5 56358 $as_echo_n "checking for connect in -lsocket... " >&6; } 56359 if ${ac_cv_lib_socket_connect+:} false; then : 56360 $as_echo_n "(cached) " >&6 56361 else 56362 ac_check_lib_save_LIBS=$LIBS 56363 LIBS="-lsocket $X_EXTRA_LIBS $LIBS" 56364 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 56365 /* end confdefs.h. */ 56366 56367 /* Override any GCC internal prototype to avoid an error. 56368 Use char because int might match the return type of a GCC 56369 builtin and then its argument prototype would still apply. */ 56370 #ifdef __cplusplus 56371 extern "C" 56372 #endif 56373 char connect (); 56374 int 56375 main () 56376 { 56377 return connect (); 56378 ; 56379 return 0; 56380 } 56381 _ACEOF 56382 if ac_fn_cxx_try_link "$LINENO"; then : 56383 ac_cv_lib_socket_connect=yes 56384 else 56385 ac_cv_lib_socket_connect=no 56386 fi 56387 rm -f core conftest.err conftest.$ac_objext \ 56388 conftest$ac_exeext conftest.$ac_ext 56389 LIBS=$ac_check_lib_save_LIBS 56390 fi 56391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5 56392 $as_echo "$ac_cv_lib_socket_connect" >&6; } 56393 if test "x$ac_cv_lib_socket_connect" = xyes; then : 56394 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS" 56395 fi 56396 56397 fi 56398 56399 # Guillermo Gomez says -lposix is necessary on A/UX. 56400 ac_fn_cxx_check_func "$LINENO" "remove" "ac_cv_func_remove" 56401 if test "x$ac_cv_func_remove" = xyes; then : 56402 56403 fi 56404 56405 if test $ac_cv_func_remove = no; then 56406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5 56407 $as_echo_n "checking for remove in -lposix... " >&6; } 56408 if ${ac_cv_lib_posix_remove+:} false; then : 56409 $as_echo_n "(cached) " >&6 56410 else 56411 ac_check_lib_save_LIBS=$LIBS 56412 LIBS="-lposix $LIBS" 56413 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 56414 /* end confdefs.h. */ 56415 56416 /* Override any GCC internal prototype to avoid an error. 56417 Use char because int might match the return type of a GCC 56418 builtin and then its argument prototype would still apply. */ 56419 #ifdef __cplusplus 56420 extern "C" 56421 #endif 56422 char remove (); 56423 int 56424 main () 56425 { 56426 return remove (); 56427 ; 56428 return 0; 56429 } 56430 _ACEOF 56431 if ac_fn_cxx_try_link "$LINENO"; then : 56432 ac_cv_lib_posix_remove=yes 56433 else 56434 ac_cv_lib_posix_remove=no 56435 fi 56436 rm -f core conftest.err conftest.$ac_objext \ 56437 conftest$ac_exeext conftest.$ac_ext 56438 LIBS=$ac_check_lib_save_LIBS 56439 fi 56440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5 56441 $as_echo "$ac_cv_lib_posix_remove" >&6; } 56442 if test "x$ac_cv_lib_posix_remove" = xyes; then : 56443 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix" 56444 fi 56445 56446 fi 56447 56448 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay. 56449 ac_fn_cxx_check_func "$LINENO" "shmat" "ac_cv_func_shmat" 56450 if test "x$ac_cv_func_shmat" = xyes; then : 56451 56452 fi 56453 56454 if test $ac_cv_func_shmat = no; then 56455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5 56456 $as_echo_n "checking for shmat in -lipc... " >&6; } 56457 if ${ac_cv_lib_ipc_shmat+:} false; then : 56458 $as_echo_n "(cached) " >&6 56459 else 56460 ac_check_lib_save_LIBS=$LIBS 56461 LIBS="-lipc $LIBS" 56462 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 56463 /* end confdefs.h. */ 56464 56465 /* Override any GCC internal prototype to avoid an error. 56466 Use char because int might match the return type of a GCC 56467 builtin and then its argument prototype would still apply. */ 56468 #ifdef __cplusplus 56469 extern "C" 56470 #endif 56471 char shmat (); 56472 int 56473 main () 56474 { 56475 return shmat (); 56476 ; 56477 return 0; 56478 } 56479 _ACEOF 56480 if ac_fn_cxx_try_link "$LINENO"; then : 56481 ac_cv_lib_ipc_shmat=yes 56482 else 56483 ac_cv_lib_ipc_shmat=no 56484 fi 56485 rm -f core conftest.err conftest.$ac_objext \ 56486 conftest$ac_exeext conftest.$ac_ext 56487 LIBS=$ac_check_lib_save_LIBS 56488 fi 56489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5 56490 $as_echo "$ac_cv_lib_ipc_shmat" >&6; } 56491 if test "x$ac_cv_lib_ipc_shmat" = xyes; then : 56492 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc" 56493 fi 56494 56495 fi 56496 fi 56497 56498 # Check for libraries that X11R6 Xt/Xaw programs need. 56499 ac_save_LDFLAGS=$LDFLAGS 56500 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries" 56501 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to 56502 # check for ICE first), but we must link in the order -lSM -lICE or 56503 # we get undefined symbols. So assume we have SM if we have ICE. 56504 # These have to be linked with before -lX11, unlike the other 56505 # libraries we check for below, so use a different variable. 56506 # John Interrante, Karl Berry 56507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5 56508 $as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; } 56509 if ${ac_cv_lib_ICE_IceConnectionNumber+:} false; then : 56510 $as_echo_n "(cached) " >&6 56511 else 56512 ac_check_lib_save_LIBS=$LIBS 56513 LIBS="-lICE $X_EXTRA_LIBS $LIBS" 56514 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 56515 /* end confdefs.h. */ 56516 56517 /* Override any GCC internal prototype to avoid an error. 56518 Use char because int might match the return type of a GCC 56519 builtin and then its argument prototype would still apply. */ 56520 #ifdef __cplusplus 56521 extern "C" 56522 #endif 56523 char IceConnectionNumber (); 56524 int 56525 main () 56526 { 56527 return IceConnectionNumber (); 56528 ; 56529 return 0; 56530 } 56531 _ACEOF 56532 if ac_fn_cxx_try_link "$LINENO"; then : 56533 ac_cv_lib_ICE_IceConnectionNumber=yes 56534 else 56535 ac_cv_lib_ICE_IceConnectionNumber=no 56536 fi 56537 rm -f core conftest.err conftest.$ac_objext \ 56538 conftest$ac_exeext conftest.$ac_ext 56539 LIBS=$ac_check_lib_save_LIBS 56540 fi 56541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5 56542 $as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; } 56543 if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes; then : 56544 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE" 56545 fi 56546 56547 LDFLAGS=$ac_save_LDFLAGS 56548 56549 fi 56550 56551 56552 # AC_PATH_XTRA creates X_LIBS and sometimes adds -R flags. When cross compiling 56553 # this doesn't make sense so we remove it. 56554 if test "x$COMPILE_TYPE" = xcross; then 56555 X_LIBS=`$ECHO $X_LIBS | $SED 's/-R \{0,1\}[^ ]*//g'` 56556 fi 56557 56558 if test "x$no_x" = xyes; then 56559 56560 # Print a helpful message on how to acquire the necessary build dependency. 56561 # x11 is the help tag: freetype, cups, alsa etc 56562 MISSING_DEPENDENCY=x11 56563 56564 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 56565 cygwin_help $MISSING_DEPENDENCY 56566 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 56567 msys_help $MISSING_DEPENDENCY 56568 else 56569 PKGHANDLER_COMMAND= 56570 56571 case $PKGHANDLER in 56572 apt-get) 56573 apt_help $MISSING_DEPENDENCY ;; 56574 yum) 56575 yum_help $MISSING_DEPENDENCY ;; 56576 port) 56577 port_help $MISSING_DEPENDENCY ;; 56578 pkgutil) 56579 pkgutil_help $MISSING_DEPENDENCY ;; 56580 pkgadd) 56581 pkgadd_help $MISSING_DEPENDENCY ;; 56582 esac 56583 56584 if test "x$PKGHANDLER_COMMAND" != x; then 56585 HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'." 56586 fi 56587 fi 56588 56589 as_fn_error $? "Could not find X11 libraries. $HELP_MSG" "$LINENO" 5 56590 fi 56591 56592 if test "x$OPENJDK_TARGET_OS" = xsolaris; then 56593 OPENWIN_HOME="/usr/openwin" 56594 X_CFLAGS="-I$SYSROOT$OPENWIN_HOME/include -I$SYSROOT$OPENWIN_HOME/include/X11/extensions" 56595 X_LIBS="-L$SYSROOT$OPENWIN_HOME/lib$OPENJDK_TARGET_CPU_ISADIR \ 56596 -R$OPENWIN_HOME/lib$OPENJDK_TARGET_CPU_ISADIR" 56597 fi 56598 56599 ac_ext=c 56600 ac_cpp='$CPP $CPPFLAGS' 56601 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 56602 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 56603 ac_compiler_gnu=$ac_cv_c_compiler_gnu 56604 56605 OLD_CFLAGS="$CFLAGS" 56606 CFLAGS="$CFLAGS $SYSROOT_CFLAGS $X_CFLAGS" 56607 56608 # Need to include Xlib.h and Xutil.h to avoid "present but cannot be compiled" warnings on Solaris 10 56609 for ac_header in X11/extensions/shape.h X11/extensions/Xrender.h X11/extensions/XTest.h X11/Intrinsic.h 56610 do : 56611 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 56612 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" " 56613 # include <X11/Xlib.h> 56614 # include <X11/Xutil.h> 56615 56616 56617 " 56618 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 56619 cat >>confdefs.h <<_ACEOF 56620 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 56621 _ACEOF 56622 X11_HEADERS_OK=yes 56623 else 56624 X11_HEADERS_OK=no; break 56625 fi 56626 56627 done 56628 56629 56630 if test "x$X11_HEADERS_OK" = xno; then 56631 56632 # Print a helpful message on how to acquire the necessary build dependency. 56633 # x11 is the help tag: freetype, cups, alsa etc 56634 MISSING_DEPENDENCY=x11 56635 56636 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 56637 cygwin_help $MISSING_DEPENDENCY 56638 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 56639 msys_help $MISSING_DEPENDENCY 56640 else 56641 PKGHANDLER_COMMAND= 56642 56643 case $PKGHANDLER in 56644 apt-get) 56645 apt_help $MISSING_DEPENDENCY ;; 56646 yum) 56647 yum_help $MISSING_DEPENDENCY ;; 56648 port) 56649 port_help $MISSING_DEPENDENCY ;; 56650 pkgutil) 56651 pkgutil_help $MISSING_DEPENDENCY ;; 56652 pkgadd) 56653 pkgadd_help $MISSING_DEPENDENCY ;; 56654 esac 56655 56656 if test "x$PKGHANDLER_COMMAND" != x; then 56657 HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'." 56658 fi 56659 fi 56660 56661 as_fn_error $? "Could not find all X11 headers (shape.h Xrender.h XTest.h Intrinsic.h). $HELP_MSG" "$LINENO" 5 56662 fi 56663 56664 # If XLinearGradient isn't available in Xrender.h, signal that it needs to be 56665 # defined in libawt_xawt. 56666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if XlinearGradient is defined in Xrender.h" >&5 56667 $as_echo_n "checking if XlinearGradient is defined in Xrender.h... " >&6; } 56668 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 56669 /* end confdefs.h. */ 56670 #include <X11/extensions/Xrender.h> 56671 int 56672 main () 56673 { 56674 XLinearGradient x; 56675 ; 56676 return 0; 56677 } 56678 _ACEOF 56679 if ac_fn_c_try_compile "$LINENO"; then : 56680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 56681 $as_echo "yes" >&6; } 56682 else 56683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 56684 $as_echo "no" >&6; } 56685 X_CFLAGS="$X_CFLAGS -DSOLARIS10_NO_XRENDER_STRUCTS" 56686 fi 56687 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 56688 56689 CFLAGS="$OLD_CFLAGS" 56690 ac_ext=cpp 56691 ac_cpp='$CXXCPP $CPPFLAGS' 56692 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 56693 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 56694 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 56695 56696 fi # NEEDS_LIB_X11 56697 56698 56699 56700 56701 56702 56703 # Check whether --with-cups was given. 56704 if test "${with_cups+set}" = set; then : 56705 withval=$with_cups; 56706 fi 56707 56708 56709 # Check whether --with-cups-include was given. 56710 if test "${with_cups_include+set}" = set; then : 56711 withval=$with_cups_include; 56712 fi 56713 56714 56715 if test "x$NEEDS_LIB_CUPS" = xfalse; then 56716 if (test "x${with_cups}" != x && test "x${with_cups}" != xno) || \ 56717 (test "x${with_cups_include}" != x && test "x${with_cups_include}" != xno); then 56718 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cups not used, so --with-cups[-*] is ignored" >&5 56719 $as_echo "$as_me: WARNING: cups not used, so --with-cups[-*] is ignored" >&2;} 56720 fi 56721 CUPS_CFLAGS= 56722 else 56723 CUPS_FOUND=no 56724 56725 if test "x${with_cups}" = xno || test "x${with_cups_include}" = xno; then 56726 as_fn_error $? "It is not possible to disable the use of cups. Remove the --without-cups option." "$LINENO" 5 56727 fi 56728 56729 if test "x${with_cups}" != x; then 56730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cups headers" >&5 56731 $as_echo_n "checking for cups headers... " >&6; } 56732 if test -s "${with_cups}/include/cups/cups.h"; then 56733 CUPS_CFLAGS="-I${with_cups}/include" 56734 CUPS_FOUND=yes 56735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CUPS_FOUND" >&5 56736 $as_echo "$CUPS_FOUND" >&6; } 56737 else 56738 as_fn_error $? "Can't find 'include/cups/cups.h' under ${with_cups} given with the --with-cups option." "$LINENO" 5 56739 fi 56740 fi 56741 if test "x${with_cups_include}" != x; then 56742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cups headers" >&5 56743 $as_echo_n "checking for cups headers... " >&6; } 56744 if test -s "${with_cups_include}/cups/cups.h"; then 56745 CUPS_CFLAGS="-I${with_cups_include}" 56746 CUPS_FOUND=yes 56747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CUPS_FOUND" >&5 56748 $as_echo "$CUPS_FOUND" >&6; } 56749 else 56750 as_fn_error $? "Can't find 'cups/cups.h' under ${with_cups_include} given with the --with-cups-include option." "$LINENO" 5 56751 fi 56752 fi 56753 if test "x$CUPS_FOUND" = xno; then 56754 # Are the cups headers installed in the default /usr/include location? 56755 for ac_header in cups/cups.h cups/ppd.h 56756 do : 56757 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 56758 ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 56759 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 56760 cat >>confdefs.h <<_ACEOF 56761 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 56762 _ACEOF 56763 56764 CUPS_FOUND=yes 56765 CUPS_CFLAGS= 56766 DEFAULT_CUPS=yes 56767 56768 fi 56769 56770 done 56771 56772 fi 56773 if test "x$CUPS_FOUND" = xno; then 56774 56775 # Print a helpful message on how to acquire the necessary build dependency. 56776 # cups is the help tag: freetype, cups, alsa etc 56777 MISSING_DEPENDENCY=cups 56778 56779 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 56780 cygwin_help $MISSING_DEPENDENCY 56781 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 56782 msys_help $MISSING_DEPENDENCY 56783 else 56784 PKGHANDLER_COMMAND= 56785 56786 case $PKGHANDLER in 56787 apt-get) 56788 apt_help $MISSING_DEPENDENCY ;; 56789 yum) 56790 yum_help $MISSING_DEPENDENCY ;; 56791 port) 56792 port_help $MISSING_DEPENDENCY ;; 56793 pkgutil) 56794 pkgutil_help $MISSING_DEPENDENCY ;; 56795 pkgadd) 56796 pkgadd_help $MISSING_DEPENDENCY ;; 56797 esac 56798 56799 if test "x$PKGHANDLER_COMMAND" != x; then 56800 HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'." 56801 fi 56802 fi 56803 56804 as_fn_error $? "Could not find cups! $HELP_MSG " "$LINENO" 5 56805 fi 56806 fi 56807 56808 56809 56810 56811 56812 # Check whether --with-freetype was given. 56813 if test "${with_freetype+set}" = set; then : 56814 withval=$with_freetype; 56815 fi 56816 56817 56818 # Check whether --with-freetype-include was given. 56819 if test "${with_freetype_include+set}" = set; then : 56820 withval=$with_freetype_include; 56821 fi 56822 56823 56824 # Check whether --with-freetype-lib was given. 56825 if test "${with_freetype_lib+set}" = set; then : 56826 withval=$with_freetype_lib; 56827 fi 56828 56829 56830 # Check whether --with-freetype-src was given. 56831 if test "${with_freetype_src+set}" = set; then : 56832 withval=$with_freetype_src; 56833 fi 56834 56835 # Check whether --enable-freetype-bundling was given. 56836 if test "${enable_freetype_bundling+set}" = set; then : 56837 enableval=$enable_freetype_bundling; 56838 fi 56839 56840 56841 # Need to specify explicitly since it needs to be overridden on some versions of macosx 56842 FREETYPE_BASE_NAME=freetype 56843 FREETYPE_CFLAGS= 56844 FREETYPE_LIBS= 56845 FREETYPE_BUNDLE_LIB_PATH= 56846 56847 if test "x$NEEDS_LIB_FREETYPE" = xfalse; then 56848 if (test "x$with_freetype" != x && test "x$with_freetype" != xno) || \ 56849 (test "x$with_freetype_include" != x && test "x$with_freetype_include" != xno) || \ 56850 (test "x$with_freetype_lib" != x && test "x$with_freetype_lib" != xno) || \ 56851 (test "x$with_freetype_src" != x && test "x$with_freetype_src" != xno); then 56852 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: freetype not used, so --with-freetype[-*] is ignored" >&5 56853 $as_echo "$as_me: WARNING: freetype not used, so --with-freetype[-*] is ignored" >&2;} 56854 fi 56855 if (test "x$enable_freetype_bundling" != x && test "x$enable_freetype_bundling" != xno); then 56856 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: freetype not used, so --enable-freetype-bundling is ignored" >&5 56857 $as_echo "$as_me: WARNING: freetype not used, so --enable-freetype-bundling is ignored" >&2;} 56858 fi 56859 else 56860 # freetype is needed to build; go get it! 56861 56862 BUNDLE_FREETYPE="$enable_freetype_bundling" 56863 56864 if test "x$with_freetype_src" != x; then 56865 if test "x$OPENJDK_TARGET_OS" = xwindows; then 56866 # Try to build freetype if --with-freetype-src was given on Windows 56867 56868 FREETYPE_SRC_PATH="$with_freetype_src" 56869 BUILD_FREETYPE=yes 56870 56871 # Check if the freetype sources are acessible.. 56872 if ! test -d $FREETYPE_SRC_PATH; then 56873 { $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 56874 $as_echo "$as_me: WARNING: --with-freetype-src specified, but can not find path \"$FREETYPE_SRC_PATH\" - ignoring --with-freetype-src" >&2;} 56875 BUILD_FREETYPE=no 56876 fi 56877 # ..and contain a vc2010 project file 56878 vcxproj_path="$FREETYPE_SRC_PATH/builds/windows/vc2010/freetype.vcxproj" 56879 if test "x$BUILD_FREETYPE" = xyes && ! test -s $vcxproj_path; then 56880 { $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 56881 $as_echo "$as_me: WARNING: Can not find project file $vcxproj_path (you may try a newer freetype version) - ignoring --with-freetype-src" >&2;} 56882 BUILD_FREETYPE=no 56883 fi 56884 # Now check if configure found a version of 'msbuild.exe' 56885 if test "x$BUILD_FREETYPE" = xyes && test "x$MSBUILD" == x ; then 56886 { $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 56887 $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;} 56888 BUILD_FREETYPE=no 56889 fi 56890 56891 # Ready to go.. 56892 if test "x$BUILD_FREETYPE" = xyes; then 56893 # msbuild requires trailing slashes for output directories 56894 freetype_lib_path="$FREETYPE_SRC_PATH/lib$OPENJDK_TARGET_CPU_BITS/" 56895 freetype_lib_path_unix="$freetype_lib_path" 56896 freetype_obj_path="$FREETYPE_SRC_PATH/obj$OPENJDK_TARGET_CPU_BITS/" 56897 56898 unix_path="$vcxproj_path" 56899 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 56900 windows_path=`$CYGPATH -m "$unix_path"` 56901 vcxproj_path="$windows_path" 56902 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 56903 windows_path=`cmd //c echo $unix_path` 56904 vcxproj_path="$windows_path" 56905 fi 56906 56907 56908 unix_path="$freetype_lib_path" 56909 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 56910 windows_path=`$CYGPATH -m "$unix_path"` 56911 freetype_lib_path="$windows_path" 56912 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 56913 windows_path=`cmd //c echo $unix_path` 56914 freetype_lib_path="$windows_path" 56915 fi 56916 56917 56918 unix_path="$freetype_obj_path" 56919 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 56920 windows_path=`$CYGPATH -m "$unix_path"` 56921 freetype_obj_path="$windows_path" 56922 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 56923 windows_path=`cmd //c echo $unix_path` 56924 freetype_obj_path="$windows_path" 56925 fi 56926 56927 if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then 56928 freetype_platform=x64 56929 else 56930 freetype_platform=win32 56931 fi 56932 56933 # The original freetype project file is for VS 2010 (i.e. 'v100'), 56934 # so we have to adapt the toolset if building with any other toolsed (i.e. SDK). 56935 # Currently 'PLATFORM_TOOLSET' is set in 'TOOLCHAIN_CHECK_POSSIBLE_VISUAL_STUDIO_ROOT'/ 56936 # 'TOOLCHAIN_CHECK_POSSIBLE_WIN_SDK_ROOT' in toolchain_windows.m4 56937 { $as_echo "$as_me:${as_lineno-$LINENO}: Trying to compile freetype sources with PlatformToolset=$PLATFORM_TOOLSET to $freetype_lib_path_unix ..." >&5 56938 $as_echo "$as_me: Trying to compile freetype sources with PlatformToolset=$PLATFORM_TOOLSET to $freetype_lib_path_unix ..." >&6;} 56939 56940 # First we try to build the freetype.dll 56941 $ECHO -e "@echo off\n"\ 56942 "$MSBUILD $vcxproj_path "\ 56943 "/p:PlatformToolset=$PLATFORM_TOOLSET "\ 56944 "/p:Configuration=\"Release Multithreaded\" "\ 56945 "/p:Platform=$freetype_platform "\ 56946 "/p:ConfigurationType=DynamicLibrary "\ 56947 "/p:TargetName=freetype "\ 56948 "/p:OutDir=\"$freetype_lib_path\" "\ 56949 "/p:IntDir=\"$freetype_obj_path\" > freetype.log" > freetype.bat 56950 cmd /c freetype.bat 56951 56952 if test -s "$freetype_lib_path_unix/freetype.dll"; then 56953 # If that succeeds we also build freetype.lib 56954 $ECHO -e "@echo off\n"\ 56955 "$MSBUILD $vcxproj_path "\ 56956 "/p:PlatformToolset=$PLATFORM_TOOLSET "\ 56957 "/p:Configuration=\"Release Multithreaded\" "\ 56958 "/p:Platform=$freetype_platform "\ 56959 "/p:ConfigurationType=StaticLibrary "\ 56960 "/p:TargetName=freetype "\ 56961 "/p:OutDir=\"$freetype_lib_path\" "\ 56962 "/p:IntDir=\"$freetype_obj_path\" >> freetype.log" > freetype.bat 56963 cmd /c freetype.bat 56964 56965 if test -s "$freetype_lib_path_unix/freetype.lib"; then 56966 # Once we build both, lib and dll, set freetype lib and include path appropriately 56967 POTENTIAL_FREETYPE_INCLUDE_PATH="$FREETYPE_SRC_PATH/include" 56968 POTENTIAL_FREETYPE_LIB_PATH="$freetype_lib_path_unix" 56969 { $as_echo "$as_me:${as_lineno-$LINENO}: Compiling freetype sources succeeded! (see freetype.log for build results)" >&5 56970 $as_echo "$as_me: Compiling freetype sources succeeded! (see freetype.log for build results)" >&6;} 56971 else 56972 BUILD_FREETYPE=no 56973 fi 56974 else 56975 BUILD_FREETYPE=no 56976 fi 56977 fi 56978 56979 if test "x$BUILD_FREETYPE" = xyes; then 56980 # Okay, we built it. Check that it works. 56981 56982 POTENTIAL_FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH" 56983 POTENTIAL_FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH" 56984 METHOD="--with-freetype-src" 56985 56986 # Let's start with an optimistic view of the world :-) 56987 FOUND_FREETYPE=yes 56988 56989 # First look for the canonical freetype main include file ft2build.h. 56990 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 56991 # Oh no! Let's try in the freetype2 directory. This is needed at least at Mac OS X Yosemite. 56992 POTENTIAL_FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH/freetype2" 56993 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 56994 # Fail. 56995 FOUND_FREETYPE=no 56996 fi 56997 fi 56998 56999 if test "x$FOUND_FREETYPE" = xyes; then 57000 # Include file found, let's continue the sanity check. 57001 { $as_echo "$as_me:${as_lineno-$LINENO}: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&5 57002 $as_echo "$as_me: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&6;} 57003 57004 # Reset to default value 57005 FREETYPE_BASE_NAME=freetype 57006 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 57007 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME"; then 57008 if test "x$OPENJDK_TARGET_OS" = xmacosx \ 57009 && test -s "$POTENTIAL_FREETYPE_LIB_PATH/${LIBRARY_PREFIX}freetype.6${SHARED_LIBRARY_SUFFIX}"; then 57010 # On Mac OS X Yosemite, the symlink from libfreetype.dylib to libfreetype.6.dylib disappeared. Check 57011 # for the .6 version explicitly. 57012 FREETYPE_BASE_NAME=freetype.6 57013 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 57014 { $as_echo "$as_me:${as_lineno-$LINENO}: Compensating for missing symlink by using version 6 explicitly" >&5 57015 $as_echo "$as_me: Compensating for missing symlink by using version 6 explicitly" >&6;} 57016 else 57017 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&5 57018 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&6;} 57019 FOUND_FREETYPE=no 57020 fi 57021 else 57022 if test "x$OPENJDK_TARGET_OS" = xwindows; then 57023 # On Windows, we will need both .lib and .dll file. 57024 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib"; then 57025 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&5 57026 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&6;} 57027 FOUND_FREETYPE=no 57028 fi 57029 elif test "x$OPENJDK_TARGET_OS" = xsolaris \ 57030 && test -s "$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR/$FREETYPE_LIB_NAME"; then 57031 # Found lib in isa dir, use that instead. 57032 POTENTIAL_FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR" 57033 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&5 57034 $as_echo "$as_me: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&6;} 57035 fi 57036 fi 57037 fi 57038 57039 if test "x$FOUND_FREETYPE" = xyes; then 57040 57041 # Only process if variable expands to non-empty 57042 57043 if test "x$POTENTIAL_FREETYPE_INCLUDE_PATH" != x; then 57044 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 57045 57046 # Input might be given as Windows format, start by converting to 57047 # unix format. 57048 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 57049 new_path=`$CYGPATH -u "$path"` 57050 57051 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 57052 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 57053 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 57054 # "foo.exe" is OK but "foo" is an error. 57055 # 57056 # This test is therefore slightly more accurate than "test -f" to check for file precense. 57057 # It is also a way to make sure we got the proper file name for the real test later on. 57058 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 57059 if test "x$test_shortpath" = x; then 57060 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 57061 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 57062 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_INCLUDE_PATH" "$LINENO" 5 57063 fi 57064 57065 # Call helper function which possibly converts this using DOS-style short mode. 57066 # If so, the updated path is stored in $new_path. 57067 57068 input_path="$new_path" 57069 # Check if we need to convert this using DOS-style short mode. If the path 57070 # contains just simple characters, use it. Otherwise (spaces, weird characters), 57071 # take no chances and rewrite it. 57072 # Note: m4 eats our [], so we need to use [ and ] instead. 57073 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 57074 if test "x$has_forbidden_chars" != x; then 57075 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 57076 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 57077 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 57078 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 57079 # Going to short mode and back again did indeed matter. Since short mode is 57080 # case insensitive, let's make it lowercase to improve readability. 57081 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 57082 # Now convert it back to Unix-style (cygpath) 57083 input_path=`$CYGPATH -u "$shortmode_path"` 57084 new_path="$input_path" 57085 fi 57086 fi 57087 57088 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 57089 if test "x$test_cygdrive_prefix" = x; then 57090 # As a simple fix, exclude /usr/bin since it's not a real path. 57091 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 57092 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 57093 # a path prefixed by /cygdrive for fixpath to work. 57094 new_path="$CYGWIN_ROOT_PATH$input_path" 57095 fi 57096 fi 57097 57098 57099 if test "x$path" != "x$new_path"; then 57100 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 57101 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 57102 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 57103 fi 57104 57105 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 57106 57107 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 57108 has_colon=`$ECHO $path | $GREP ^.:` 57109 new_path="$path" 57110 if test "x$has_colon" = x; then 57111 # Not in mixed or Windows style, start by that. 57112 new_path=`cmd //c echo $path` 57113 fi 57114 57115 57116 input_path="$new_path" 57117 # Check if we need to convert this using DOS-style short mode. If the path 57118 # contains just simple characters, use it. Otherwise (spaces, weird characters), 57119 # take no chances and rewrite it. 57120 # Note: m4 eats our [], so we need to use [ and ] instead. 57121 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 57122 if test "x$has_forbidden_chars" != x; then 57123 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 57124 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 57125 fi 57126 57127 57128 windows_path="$new_path" 57129 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 57130 unix_path=`$CYGPATH -u "$windows_path"` 57131 new_path="$unix_path" 57132 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 57133 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 57134 new_path="$unix_path" 57135 fi 57136 57137 if test "x$path" != "x$new_path"; then 57138 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 57139 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 57140 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 57141 fi 57142 57143 # Save the first 10 bytes of this path to the storage, so fixpath can work. 57144 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 57145 57146 else 57147 # We're on a unix platform. Hooray! :) 57148 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 57149 has_space=`$ECHO "$path" | $GREP " "` 57150 if test "x$has_space" != x; then 57151 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 57152 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 57153 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 57154 fi 57155 57156 # Use eval to expand a potential ~ 57157 eval path="$path" 57158 if test ! -f "$path" && test ! -d "$path"; then 57159 as_fn_error $? "The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 57160 fi 57161 57162 if test -d "$path"; then 57163 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$path"; $THEPWDCMD -L`" 57164 else 57165 dir="`$DIRNAME "$path"`" 57166 base="`$BASENAME "$path"`" 57167 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$dir"; $THEPWDCMD -L`/$base" 57168 fi 57169 fi 57170 fi 57171 57172 57173 # Only process if variable expands to non-empty 57174 57175 if test "x$POTENTIAL_FREETYPE_LIB_PATH" != x; then 57176 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 57177 57178 # Input might be given as Windows format, start by converting to 57179 # unix format. 57180 path="$POTENTIAL_FREETYPE_LIB_PATH" 57181 new_path=`$CYGPATH -u "$path"` 57182 57183 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 57184 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 57185 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 57186 # "foo.exe" is OK but "foo" is an error. 57187 # 57188 # This test is therefore slightly more accurate than "test -f" to check for file precense. 57189 # It is also a way to make sure we got the proper file name for the real test later on. 57190 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 57191 if test "x$test_shortpath" = x; then 57192 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 57193 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 57194 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_LIB_PATH" "$LINENO" 5 57195 fi 57196 57197 # Call helper function which possibly converts this using DOS-style short mode. 57198 # If so, the updated path is stored in $new_path. 57199 57200 input_path="$new_path" 57201 # Check if we need to convert this using DOS-style short mode. If the path 57202 # contains just simple characters, use it. Otherwise (spaces, weird characters), 57203 # take no chances and rewrite it. 57204 # Note: m4 eats our [], so we need to use [ and ] instead. 57205 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 57206 if test "x$has_forbidden_chars" != x; then 57207 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 57208 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 57209 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 57210 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 57211 # Going to short mode and back again did indeed matter. Since short mode is 57212 # case insensitive, let's make it lowercase to improve readability. 57213 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 57214 # Now convert it back to Unix-style (cygpath) 57215 input_path=`$CYGPATH -u "$shortmode_path"` 57216 new_path="$input_path" 57217 fi 57218 fi 57219 57220 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 57221 if test "x$test_cygdrive_prefix" = x; then 57222 # As a simple fix, exclude /usr/bin since it's not a real path. 57223 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 57224 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 57225 # a path prefixed by /cygdrive for fixpath to work. 57226 new_path="$CYGWIN_ROOT_PATH$input_path" 57227 fi 57228 fi 57229 57230 57231 if test "x$path" != "x$new_path"; then 57232 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 57233 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 57234 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 57235 fi 57236 57237 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 57238 57239 path="$POTENTIAL_FREETYPE_LIB_PATH" 57240 has_colon=`$ECHO $path | $GREP ^.:` 57241 new_path="$path" 57242 if test "x$has_colon" = x; then 57243 # Not in mixed or Windows style, start by that. 57244 new_path=`cmd //c echo $path` 57245 fi 57246 57247 57248 input_path="$new_path" 57249 # Check if we need to convert this using DOS-style short mode. If the path 57250 # contains just simple characters, use it. Otherwise (spaces, weird characters), 57251 # take no chances and rewrite it. 57252 # Note: m4 eats our [], so we need to use [ and ] instead. 57253 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 57254 if test "x$has_forbidden_chars" != x; then 57255 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 57256 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 57257 fi 57258 57259 57260 windows_path="$new_path" 57261 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 57262 unix_path=`$CYGPATH -u "$windows_path"` 57263 new_path="$unix_path" 57264 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 57265 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 57266 new_path="$unix_path" 57267 fi 57268 57269 if test "x$path" != "x$new_path"; then 57270 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 57271 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 57272 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 57273 fi 57274 57275 # Save the first 10 bytes of this path to the storage, so fixpath can work. 57276 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 57277 57278 else 57279 # We're on a unix platform. Hooray! :) 57280 path="$POTENTIAL_FREETYPE_LIB_PATH" 57281 has_space=`$ECHO "$path" | $GREP " "` 57282 if test "x$has_space" != x; then 57283 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 57284 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 57285 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 57286 fi 57287 57288 # Use eval to expand a potential ~ 57289 eval path="$path" 57290 if test ! -f "$path" && test ! -d "$path"; then 57291 as_fn_error $? "The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 57292 fi 57293 57294 if test -d "$path"; then 57295 POTENTIAL_FREETYPE_LIB_PATH="`cd "$path"; $THEPWDCMD -L`" 57296 else 57297 dir="`$DIRNAME "$path"`" 57298 base="`$BASENAME "$path"`" 57299 POTENTIAL_FREETYPE_LIB_PATH="`cd "$dir"; $THEPWDCMD -L`/$base" 57300 fi 57301 fi 57302 fi 57303 57304 57305 FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH" 57306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype includes" >&5 57307 $as_echo_n "checking for freetype includes... " >&6; } 57308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_INCLUDE_PATH" >&5 57309 $as_echo "$FREETYPE_INCLUDE_PATH" >&6; } 57310 FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH" 57311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype libraries" >&5 57312 $as_echo_n "checking for freetype libraries... " >&6; } 57313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_LIB_PATH" >&5 57314 $as_echo "$FREETYPE_LIB_PATH" >&6; } 57315 fi 57316 57317 if test "x$FOUND_FREETYPE" != xyes; then 57318 as_fn_error $? "Can not use the built freetype at location given by --with-freetype-src" "$LINENO" 5 57319 fi 57320 else 57321 { $as_echo "$as_me:${as_lineno-$LINENO}: User specified --with-freetype-src but building freetype failed. (see freetype.log for build results)" >&5 57322 $as_echo "$as_me: User specified --with-freetype-src but building freetype failed. (see freetype.log for build results)" >&6;} 57323 as_fn_error $? "Consider building freetype manually and using --with-freetype instead." "$LINENO" 5 57324 fi 57325 else 57326 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --with-freetype-src is currently only supported on Windows - ignoring" >&5 57327 $as_echo "$as_me: WARNING: --with-freetype-src is currently only supported on Windows - ignoring" >&2;} 57328 fi 57329 fi 57330 57331 if test "x$with_freetype" != x || test "x$with_freetype_include" != x || test "x$with_freetype_lib" != x; then 57332 # User has specified settings 57333 57334 if test "x$BUNDLE_FREETYPE" = x; then 57335 # If not specified, default is to bundle freetype 57336 BUNDLE_FREETYPE=yes 57337 fi 57338 57339 if test "x$with_freetype" != x; then 57340 POTENTIAL_FREETYPE_INCLUDE_PATH="$with_freetype/include" 57341 POTENTIAL_FREETYPE_LIB_PATH="$with_freetype/lib" 57342 fi 57343 57344 # Allow --with-freetype-lib and --with-freetype-include to override 57345 if test "x$with_freetype_include" != x; then 57346 POTENTIAL_FREETYPE_INCLUDE_PATH="$with_freetype_include" 57347 fi 57348 if test "x$with_freetype_lib" != x; then 57349 POTENTIAL_FREETYPE_LIB_PATH="$with_freetype_lib" 57350 fi 57351 57352 if test "x$POTENTIAL_FREETYPE_INCLUDE_PATH" != x && test "x$POTENTIAL_FREETYPE_LIB_PATH" != x; then 57353 # Okay, we got it. Check that it works. 57354 57355 POTENTIAL_FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH" 57356 POTENTIAL_FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH" 57357 METHOD="--with-freetype" 57358 57359 # Let's start with an optimistic view of the world :-) 57360 FOUND_FREETYPE=yes 57361 57362 # First look for the canonical freetype main include file ft2build.h. 57363 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 57364 # Oh no! Let's try in the freetype2 directory. This is needed at least at Mac OS X Yosemite. 57365 POTENTIAL_FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH/freetype2" 57366 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 57367 # Fail. 57368 FOUND_FREETYPE=no 57369 fi 57370 fi 57371 57372 if test "x$FOUND_FREETYPE" = xyes; then 57373 # Include file found, let's continue the sanity check. 57374 { $as_echo "$as_me:${as_lineno-$LINENO}: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&5 57375 $as_echo "$as_me: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&6;} 57376 57377 # Reset to default value 57378 FREETYPE_BASE_NAME=freetype 57379 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 57380 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME"; then 57381 if test "x$OPENJDK_TARGET_OS" = xmacosx \ 57382 && test -s "$POTENTIAL_FREETYPE_LIB_PATH/${LIBRARY_PREFIX}freetype.6${SHARED_LIBRARY_SUFFIX}"; then 57383 # On Mac OS X Yosemite, the symlink from libfreetype.dylib to libfreetype.6.dylib disappeared. Check 57384 # for the .6 version explicitly. 57385 FREETYPE_BASE_NAME=freetype.6 57386 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 57387 { $as_echo "$as_me:${as_lineno-$LINENO}: Compensating for missing symlink by using version 6 explicitly" >&5 57388 $as_echo "$as_me: Compensating for missing symlink by using version 6 explicitly" >&6;} 57389 else 57390 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&5 57391 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&6;} 57392 FOUND_FREETYPE=no 57393 fi 57394 else 57395 if test "x$OPENJDK_TARGET_OS" = xwindows; then 57396 # On Windows, we will need both .lib and .dll file. 57397 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib"; then 57398 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&5 57399 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&6;} 57400 FOUND_FREETYPE=no 57401 fi 57402 elif test "x$OPENJDK_TARGET_OS" = xsolaris \ 57403 && test -s "$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR/$FREETYPE_LIB_NAME"; then 57404 # Found lib in isa dir, use that instead. 57405 POTENTIAL_FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR" 57406 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&5 57407 $as_echo "$as_me: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&6;} 57408 fi 57409 fi 57410 fi 57411 57412 if test "x$FOUND_FREETYPE" = xyes; then 57413 57414 # Only process if variable expands to non-empty 57415 57416 if test "x$POTENTIAL_FREETYPE_INCLUDE_PATH" != x; then 57417 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 57418 57419 # Input might be given as Windows format, start by converting to 57420 # unix format. 57421 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 57422 new_path=`$CYGPATH -u "$path"` 57423 57424 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 57425 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 57426 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 57427 # "foo.exe" is OK but "foo" is an error. 57428 # 57429 # This test is therefore slightly more accurate than "test -f" to check for file precense. 57430 # It is also a way to make sure we got the proper file name for the real test later on. 57431 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 57432 if test "x$test_shortpath" = x; then 57433 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 57434 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 57435 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_INCLUDE_PATH" "$LINENO" 5 57436 fi 57437 57438 # Call helper function which possibly converts this using DOS-style short mode. 57439 # If so, the updated path is stored in $new_path. 57440 57441 input_path="$new_path" 57442 # Check if we need to convert this using DOS-style short mode. If the path 57443 # contains just simple characters, use it. Otherwise (spaces, weird characters), 57444 # take no chances and rewrite it. 57445 # Note: m4 eats our [], so we need to use [ and ] instead. 57446 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 57447 if test "x$has_forbidden_chars" != x; then 57448 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 57449 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 57450 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 57451 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 57452 # Going to short mode and back again did indeed matter. Since short mode is 57453 # case insensitive, let's make it lowercase to improve readability. 57454 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 57455 # Now convert it back to Unix-style (cygpath) 57456 input_path=`$CYGPATH -u "$shortmode_path"` 57457 new_path="$input_path" 57458 fi 57459 fi 57460 57461 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 57462 if test "x$test_cygdrive_prefix" = x; then 57463 # As a simple fix, exclude /usr/bin since it's not a real path. 57464 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 57465 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 57466 # a path prefixed by /cygdrive for fixpath to work. 57467 new_path="$CYGWIN_ROOT_PATH$input_path" 57468 fi 57469 fi 57470 57471 57472 if test "x$path" != "x$new_path"; then 57473 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 57474 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 57475 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 57476 fi 57477 57478 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 57479 57480 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 57481 has_colon=`$ECHO $path | $GREP ^.:` 57482 new_path="$path" 57483 if test "x$has_colon" = x; then 57484 # Not in mixed or Windows style, start by that. 57485 new_path=`cmd //c echo $path` 57486 fi 57487 57488 57489 input_path="$new_path" 57490 # Check if we need to convert this using DOS-style short mode. If the path 57491 # contains just simple characters, use it. Otherwise (spaces, weird characters), 57492 # take no chances and rewrite it. 57493 # Note: m4 eats our [], so we need to use [ and ] instead. 57494 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 57495 if test "x$has_forbidden_chars" != x; then 57496 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 57497 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 57498 fi 57499 57500 57501 windows_path="$new_path" 57502 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 57503 unix_path=`$CYGPATH -u "$windows_path"` 57504 new_path="$unix_path" 57505 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 57506 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 57507 new_path="$unix_path" 57508 fi 57509 57510 if test "x$path" != "x$new_path"; then 57511 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 57512 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 57513 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 57514 fi 57515 57516 # Save the first 10 bytes of this path to the storage, so fixpath can work. 57517 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 57518 57519 else 57520 # We're on a unix platform. Hooray! :) 57521 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 57522 has_space=`$ECHO "$path" | $GREP " "` 57523 if test "x$has_space" != x; then 57524 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 57525 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 57526 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 57527 fi 57528 57529 # Use eval to expand a potential ~ 57530 eval path="$path" 57531 if test ! -f "$path" && test ! -d "$path"; then 57532 as_fn_error $? "The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 57533 fi 57534 57535 if test -d "$path"; then 57536 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$path"; $THEPWDCMD -L`" 57537 else 57538 dir="`$DIRNAME "$path"`" 57539 base="`$BASENAME "$path"`" 57540 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$dir"; $THEPWDCMD -L`/$base" 57541 fi 57542 fi 57543 fi 57544 57545 57546 # Only process if variable expands to non-empty 57547 57548 if test "x$POTENTIAL_FREETYPE_LIB_PATH" != x; then 57549 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 57550 57551 # Input might be given as Windows format, start by converting to 57552 # unix format. 57553 path="$POTENTIAL_FREETYPE_LIB_PATH" 57554 new_path=`$CYGPATH -u "$path"` 57555 57556 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 57557 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 57558 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 57559 # "foo.exe" is OK but "foo" is an error. 57560 # 57561 # This test is therefore slightly more accurate than "test -f" to check for file precense. 57562 # It is also a way to make sure we got the proper file name for the real test later on. 57563 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 57564 if test "x$test_shortpath" = x; then 57565 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 57566 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 57567 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_LIB_PATH" "$LINENO" 5 57568 fi 57569 57570 # Call helper function which possibly converts this using DOS-style short mode. 57571 # If so, the updated path is stored in $new_path. 57572 57573 input_path="$new_path" 57574 # Check if we need to convert this using DOS-style short mode. If the path 57575 # contains just simple characters, use it. Otherwise (spaces, weird characters), 57576 # take no chances and rewrite it. 57577 # Note: m4 eats our [], so we need to use [ and ] instead. 57578 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 57579 if test "x$has_forbidden_chars" != x; then 57580 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 57581 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 57582 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 57583 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 57584 # Going to short mode and back again did indeed matter. Since short mode is 57585 # case insensitive, let's make it lowercase to improve readability. 57586 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 57587 # Now convert it back to Unix-style (cygpath) 57588 input_path=`$CYGPATH -u "$shortmode_path"` 57589 new_path="$input_path" 57590 fi 57591 fi 57592 57593 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 57594 if test "x$test_cygdrive_prefix" = x; then 57595 # As a simple fix, exclude /usr/bin since it's not a real path. 57596 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 57597 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 57598 # a path prefixed by /cygdrive for fixpath to work. 57599 new_path="$CYGWIN_ROOT_PATH$input_path" 57600 fi 57601 fi 57602 57603 57604 if test "x$path" != "x$new_path"; then 57605 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 57606 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 57607 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 57608 fi 57609 57610 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 57611 57612 path="$POTENTIAL_FREETYPE_LIB_PATH" 57613 has_colon=`$ECHO $path | $GREP ^.:` 57614 new_path="$path" 57615 if test "x$has_colon" = x; then 57616 # Not in mixed or Windows style, start by that. 57617 new_path=`cmd //c echo $path` 57618 fi 57619 57620 57621 input_path="$new_path" 57622 # Check if we need to convert this using DOS-style short mode. If the path 57623 # contains just simple characters, use it. Otherwise (spaces, weird characters), 57624 # take no chances and rewrite it. 57625 # Note: m4 eats our [], so we need to use [ and ] instead. 57626 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 57627 if test "x$has_forbidden_chars" != x; then 57628 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 57629 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 57630 fi 57631 57632 57633 windows_path="$new_path" 57634 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 57635 unix_path=`$CYGPATH -u "$windows_path"` 57636 new_path="$unix_path" 57637 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 57638 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 57639 new_path="$unix_path" 57640 fi 57641 57642 if test "x$path" != "x$new_path"; then 57643 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 57644 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 57645 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 57646 fi 57647 57648 # Save the first 10 bytes of this path to the storage, so fixpath can work. 57649 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 57650 57651 else 57652 # We're on a unix platform. Hooray! :) 57653 path="$POTENTIAL_FREETYPE_LIB_PATH" 57654 has_space=`$ECHO "$path" | $GREP " "` 57655 if test "x$has_space" != x; then 57656 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 57657 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 57658 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 57659 fi 57660 57661 # Use eval to expand a potential ~ 57662 eval path="$path" 57663 if test ! -f "$path" && test ! -d "$path"; then 57664 as_fn_error $? "The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 57665 fi 57666 57667 if test -d "$path"; then 57668 POTENTIAL_FREETYPE_LIB_PATH="`cd "$path"; $THEPWDCMD -L`" 57669 else 57670 dir="`$DIRNAME "$path"`" 57671 base="`$BASENAME "$path"`" 57672 POTENTIAL_FREETYPE_LIB_PATH="`cd "$dir"; $THEPWDCMD -L`/$base" 57673 fi 57674 fi 57675 fi 57676 57677 57678 FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH" 57679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype includes" >&5 57680 $as_echo_n "checking for freetype includes... " >&6; } 57681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_INCLUDE_PATH" >&5 57682 $as_echo "$FREETYPE_INCLUDE_PATH" >&6; } 57683 FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH" 57684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype libraries" >&5 57685 $as_echo_n "checking for freetype libraries... " >&6; } 57686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_LIB_PATH" >&5 57687 $as_echo "$FREETYPE_LIB_PATH" >&6; } 57688 fi 57689 57690 if test "x$FOUND_FREETYPE" != xyes; then 57691 as_fn_error $? "Can not find or use freetype at location given by --with-freetype" "$LINENO" 5 57692 fi 57693 else 57694 # User specified only one of lib or include. This is an error. 57695 if test "x$POTENTIAL_FREETYPE_INCLUDE_PATH" = x ; then 57696 { $as_echo "$as_me:${as_lineno-$LINENO}: User specified --with-freetype-lib but not --with-freetype-include" >&5 57697 $as_echo "$as_me: User specified --with-freetype-lib but not --with-freetype-include" >&6;} 57698 as_fn_error $? "Need both freetype lib and include paths. Consider using --with-freetype instead." "$LINENO" 5 57699 else 57700 { $as_echo "$as_me:${as_lineno-$LINENO}: User specified --with-freetype-include but not --with-freetype-lib" >&5 57701 $as_echo "$as_me: User specified --with-freetype-include but not --with-freetype-lib" >&6;} 57702 as_fn_error $? "Need both freetype lib and include paths. Consider using --with-freetype instead." "$LINENO" 5 57703 fi 57704 fi 57705 else 57706 # User did not specify settings, but we need freetype. Try to locate it. 57707 57708 if test "x$BUNDLE_FREETYPE" = x; then 57709 # If not specified, default is to bundle freetype only on windows 57710 if test "x$OPENJDK_TARGET_OS" = xwindows; then 57711 BUNDLE_FREETYPE=yes 57712 else 57713 BUNDLE_FREETYPE=no 57714 fi 57715 fi 57716 57717 # If we have a sysroot, assume that's where we are supposed to look and skip pkg-config. 57718 if test "x$SYSROOT" = x; then 57719 if test "x$FOUND_FREETYPE" != xyes; then 57720 # Check modules using pkg-config, but only if we have it (ugly output results otherwise) 57721 if test "x$PKG_CONFIG" != x; then 57722 57723 pkg_failed=no 57724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FREETYPE" >&5 57725 $as_echo_n "checking for FREETYPE... " >&6; } 57726 57727 if test -n "$FREETYPE_CFLAGS"; then 57728 pkg_cv_FREETYPE_CFLAGS="$FREETYPE_CFLAGS" 57729 elif test -n "$PKG_CONFIG"; then 57730 if test -n "$PKG_CONFIG" && \ 57731 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"freetype2\""; } >&5 57732 ($PKG_CONFIG --exists --print-errors "freetype2") 2>&5 57733 ac_status=$? 57734 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 57735 test $ac_status = 0; }; then 57736 pkg_cv_FREETYPE_CFLAGS=`$PKG_CONFIG --cflags "freetype2" 2>/dev/null` 57737 else 57738 pkg_failed=yes 57739 fi 57740 else 57741 pkg_failed=untried 57742 fi 57743 if test -n "$FREETYPE_LIBS"; then 57744 pkg_cv_FREETYPE_LIBS="$FREETYPE_LIBS" 57745 elif test -n "$PKG_CONFIG"; then 57746 if test -n "$PKG_CONFIG" && \ 57747 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"freetype2\""; } >&5 57748 ($PKG_CONFIG --exists --print-errors "freetype2") 2>&5 57749 ac_status=$? 57750 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 57751 test $ac_status = 0; }; then 57752 pkg_cv_FREETYPE_LIBS=`$PKG_CONFIG --libs "freetype2" 2>/dev/null` 57753 else 57754 pkg_failed=yes 57755 fi 57756 else 57757 pkg_failed=untried 57758 fi 57759 57760 57761 57762 if test $pkg_failed = yes; then 57763 57764 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 57765 _pkg_short_errors_supported=yes 57766 else 57767 _pkg_short_errors_supported=no 57768 fi 57769 if test $_pkg_short_errors_supported = yes; then 57770 FREETYPE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "freetype2" 2>&1` 57771 else 57772 FREETYPE_PKG_ERRORS=`$PKG_CONFIG --print-errors "freetype2" 2>&1` 57773 fi 57774 # Put the nasty error message in config.log where it belongs 57775 echo "$FREETYPE_PKG_ERRORS" >&5 57776 57777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 57778 $as_echo "no" >&6; } 57779 FOUND_FREETYPE=no 57780 elif test $pkg_failed = untried; then 57781 FOUND_FREETYPE=no 57782 else 57783 FREETYPE_CFLAGS=$pkg_cv_FREETYPE_CFLAGS 57784 FREETYPE_LIBS=$pkg_cv_FREETYPE_LIBS 57785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 57786 $as_echo "yes" >&6; } 57787 FOUND_FREETYPE=yes 57788 fi 57789 if test "x$FOUND_FREETYPE" = xyes; then 57790 # On solaris, pkg_check adds -lz to freetype libs, which isn't necessary for us. 57791 FREETYPE_LIBS=`$ECHO $FREETYPE_LIBS | $SED 's/-lz//g'` 57792 # 64-bit libs for Solaris x86 are installed in the amd64 subdirectory, change lib to lib/amd64 57793 if test "x$OPENJDK_TARGET_OS" = xsolaris && test "x$OPENJDK_TARGET_CPU" = xx86_64; then 57794 FREETYPE_LIBS=`$ECHO $FREETYPE_LIBS | $SED 's?/lib?/lib/amd64?g'` 57795 fi 57796 # PKG_CHECK_MODULES will set FREETYPE_CFLAGS and _LIBS, but we don't get a lib path for bundling. 57797 if test "x$BUNDLE_FREETYPE" = xyes; then 57798 { $as_echo "$as_me:${as_lineno-$LINENO}: Found freetype using pkg-config, but ignoring since we can not bundle that" >&5 57799 $as_echo "$as_me: Found freetype using pkg-config, but ignoring since we can not bundle that" >&6;} 57800 FOUND_FREETYPE=no 57801 else 57802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype" >&5 57803 $as_echo_n "checking for freetype... " >&6; } 57804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (using pkg-config)" >&5 57805 $as_echo "yes (using pkg-config)" >&6; } 57806 fi 57807 fi 57808 fi 57809 fi 57810 fi 57811 57812 if test "x$FOUND_FREETYPE" != xyes; then 57813 # Check in well-known locations 57814 if test "x$OPENJDK_TARGET_OS" = xwindows; then 57815 FREETYPE_BASE_DIR="$PROGRAMFILES/GnuWin32" 57816 57817 windows_path="$FREETYPE_BASE_DIR" 57818 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 57819 unix_path=`$CYGPATH -u "$windows_path"` 57820 FREETYPE_BASE_DIR="$unix_path" 57821 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 57822 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 57823 FREETYPE_BASE_DIR="$unix_path" 57824 fi 57825 57826 57827 POTENTIAL_FREETYPE_INCLUDE_PATH="$FREETYPE_BASE_DIR/include" 57828 POTENTIAL_FREETYPE_LIB_PATH="$FREETYPE_BASE_DIR/lib" 57829 METHOD="well-known location" 57830 57831 # Let's start with an optimistic view of the world :-) 57832 FOUND_FREETYPE=yes 57833 57834 # First look for the canonical freetype main include file ft2build.h. 57835 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 57836 # Oh no! Let's try in the freetype2 directory. This is needed at least at Mac OS X Yosemite. 57837 POTENTIAL_FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH/freetype2" 57838 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 57839 # Fail. 57840 FOUND_FREETYPE=no 57841 fi 57842 fi 57843 57844 if test "x$FOUND_FREETYPE" = xyes; then 57845 # Include file found, let's continue the sanity check. 57846 { $as_echo "$as_me:${as_lineno-$LINENO}: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&5 57847 $as_echo "$as_me: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&6;} 57848 57849 # Reset to default value 57850 FREETYPE_BASE_NAME=freetype 57851 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 57852 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME"; then 57853 if test "x$OPENJDK_TARGET_OS" = xmacosx \ 57854 && test -s "$POTENTIAL_FREETYPE_LIB_PATH/${LIBRARY_PREFIX}freetype.6${SHARED_LIBRARY_SUFFIX}"; then 57855 # On Mac OS X Yosemite, the symlink from libfreetype.dylib to libfreetype.6.dylib disappeared. Check 57856 # for the .6 version explicitly. 57857 FREETYPE_BASE_NAME=freetype.6 57858 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 57859 { $as_echo "$as_me:${as_lineno-$LINENO}: Compensating for missing symlink by using version 6 explicitly" >&5 57860 $as_echo "$as_me: Compensating for missing symlink by using version 6 explicitly" >&6;} 57861 else 57862 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&5 57863 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&6;} 57864 FOUND_FREETYPE=no 57865 fi 57866 else 57867 if test "x$OPENJDK_TARGET_OS" = xwindows; then 57868 # On Windows, we will need both .lib and .dll file. 57869 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib"; then 57870 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&5 57871 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&6;} 57872 FOUND_FREETYPE=no 57873 fi 57874 elif test "x$OPENJDK_TARGET_OS" = xsolaris \ 57875 && test -s "$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR/$FREETYPE_LIB_NAME"; then 57876 # Found lib in isa dir, use that instead. 57877 POTENTIAL_FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR" 57878 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&5 57879 $as_echo "$as_me: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&6;} 57880 fi 57881 fi 57882 fi 57883 57884 if test "x$FOUND_FREETYPE" = xyes; then 57885 57886 # Only process if variable expands to non-empty 57887 57888 if test "x$POTENTIAL_FREETYPE_INCLUDE_PATH" != x; then 57889 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 57890 57891 # Input might be given as Windows format, start by converting to 57892 # unix format. 57893 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 57894 new_path=`$CYGPATH -u "$path"` 57895 57896 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 57897 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 57898 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 57899 # "foo.exe" is OK but "foo" is an error. 57900 # 57901 # This test is therefore slightly more accurate than "test -f" to check for file precense. 57902 # It is also a way to make sure we got the proper file name for the real test later on. 57903 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 57904 if test "x$test_shortpath" = x; then 57905 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 57906 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 57907 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_INCLUDE_PATH" "$LINENO" 5 57908 fi 57909 57910 # Call helper function which possibly converts this using DOS-style short mode. 57911 # If so, the updated path is stored in $new_path. 57912 57913 input_path="$new_path" 57914 # Check if we need to convert this using DOS-style short mode. If the path 57915 # contains just simple characters, use it. Otherwise (spaces, weird characters), 57916 # take no chances and rewrite it. 57917 # Note: m4 eats our [], so we need to use [ and ] instead. 57918 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 57919 if test "x$has_forbidden_chars" != x; then 57920 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 57921 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 57922 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 57923 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 57924 # Going to short mode and back again did indeed matter. Since short mode is 57925 # case insensitive, let's make it lowercase to improve readability. 57926 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 57927 # Now convert it back to Unix-style (cygpath) 57928 input_path=`$CYGPATH -u "$shortmode_path"` 57929 new_path="$input_path" 57930 fi 57931 fi 57932 57933 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 57934 if test "x$test_cygdrive_prefix" = x; then 57935 # As a simple fix, exclude /usr/bin since it's not a real path. 57936 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 57937 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 57938 # a path prefixed by /cygdrive for fixpath to work. 57939 new_path="$CYGWIN_ROOT_PATH$input_path" 57940 fi 57941 fi 57942 57943 57944 if test "x$path" != "x$new_path"; then 57945 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 57946 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 57947 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 57948 fi 57949 57950 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 57951 57952 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 57953 has_colon=`$ECHO $path | $GREP ^.:` 57954 new_path="$path" 57955 if test "x$has_colon" = x; then 57956 # Not in mixed or Windows style, start by that. 57957 new_path=`cmd //c echo $path` 57958 fi 57959 57960 57961 input_path="$new_path" 57962 # Check if we need to convert this using DOS-style short mode. If the path 57963 # contains just simple characters, use it. Otherwise (spaces, weird characters), 57964 # take no chances and rewrite it. 57965 # Note: m4 eats our [], so we need to use [ and ] instead. 57966 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 57967 if test "x$has_forbidden_chars" != x; then 57968 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 57969 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 57970 fi 57971 57972 57973 windows_path="$new_path" 57974 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 57975 unix_path=`$CYGPATH -u "$windows_path"` 57976 new_path="$unix_path" 57977 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 57978 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 57979 new_path="$unix_path" 57980 fi 57981 57982 if test "x$path" != "x$new_path"; then 57983 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 57984 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 57985 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 57986 fi 57987 57988 # Save the first 10 bytes of this path to the storage, so fixpath can work. 57989 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 57990 57991 else 57992 # We're on a unix platform. Hooray! :) 57993 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 57994 has_space=`$ECHO "$path" | $GREP " "` 57995 if test "x$has_space" != x; then 57996 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 57997 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 57998 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 57999 fi 58000 58001 # Use eval to expand a potential ~ 58002 eval path="$path" 58003 if test ! -f "$path" && test ! -d "$path"; then 58004 as_fn_error $? "The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 58005 fi 58006 58007 if test -d "$path"; then 58008 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$path"; $THEPWDCMD -L`" 58009 else 58010 dir="`$DIRNAME "$path"`" 58011 base="`$BASENAME "$path"`" 58012 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$dir"; $THEPWDCMD -L`/$base" 58013 fi 58014 fi 58015 fi 58016 58017 58018 # Only process if variable expands to non-empty 58019 58020 if test "x$POTENTIAL_FREETYPE_LIB_PATH" != x; then 58021 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 58022 58023 # Input might be given as Windows format, start by converting to 58024 # unix format. 58025 path="$POTENTIAL_FREETYPE_LIB_PATH" 58026 new_path=`$CYGPATH -u "$path"` 58027 58028 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 58029 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 58030 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 58031 # "foo.exe" is OK but "foo" is an error. 58032 # 58033 # This test is therefore slightly more accurate than "test -f" to check for file precense. 58034 # It is also a way to make sure we got the proper file name for the real test later on. 58035 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 58036 if test "x$test_shortpath" = x; then 58037 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 58038 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 58039 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_LIB_PATH" "$LINENO" 5 58040 fi 58041 58042 # Call helper function which possibly converts this using DOS-style short mode. 58043 # If so, the updated path is stored in $new_path. 58044 58045 input_path="$new_path" 58046 # Check if we need to convert this using DOS-style short mode. If the path 58047 # contains just simple characters, use it. Otherwise (spaces, weird characters), 58048 # take no chances and rewrite it. 58049 # Note: m4 eats our [], so we need to use [ and ] instead. 58050 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 58051 if test "x$has_forbidden_chars" != x; then 58052 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 58053 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 58054 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 58055 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 58056 # Going to short mode and back again did indeed matter. Since short mode is 58057 # case insensitive, let's make it lowercase to improve readability. 58058 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 58059 # Now convert it back to Unix-style (cygpath) 58060 input_path=`$CYGPATH -u "$shortmode_path"` 58061 new_path="$input_path" 58062 fi 58063 fi 58064 58065 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 58066 if test "x$test_cygdrive_prefix" = x; then 58067 # As a simple fix, exclude /usr/bin since it's not a real path. 58068 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 58069 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 58070 # a path prefixed by /cygdrive for fixpath to work. 58071 new_path="$CYGWIN_ROOT_PATH$input_path" 58072 fi 58073 fi 58074 58075 58076 if test "x$path" != "x$new_path"; then 58077 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 58078 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 58079 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 58080 fi 58081 58082 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 58083 58084 path="$POTENTIAL_FREETYPE_LIB_PATH" 58085 has_colon=`$ECHO $path | $GREP ^.:` 58086 new_path="$path" 58087 if test "x$has_colon" = x; then 58088 # Not in mixed or Windows style, start by that. 58089 new_path=`cmd //c echo $path` 58090 fi 58091 58092 58093 input_path="$new_path" 58094 # Check if we need to convert this using DOS-style short mode. If the path 58095 # contains just simple characters, use it. Otherwise (spaces, weird characters), 58096 # take no chances and rewrite it. 58097 # Note: m4 eats our [], so we need to use [ and ] instead. 58098 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 58099 if test "x$has_forbidden_chars" != x; then 58100 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 58101 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 58102 fi 58103 58104 58105 windows_path="$new_path" 58106 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 58107 unix_path=`$CYGPATH -u "$windows_path"` 58108 new_path="$unix_path" 58109 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 58110 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 58111 new_path="$unix_path" 58112 fi 58113 58114 if test "x$path" != "x$new_path"; then 58115 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 58116 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 58117 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 58118 fi 58119 58120 # Save the first 10 bytes of this path to the storage, so fixpath can work. 58121 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 58122 58123 else 58124 # We're on a unix platform. Hooray! :) 58125 path="$POTENTIAL_FREETYPE_LIB_PATH" 58126 has_space=`$ECHO "$path" | $GREP " "` 58127 if test "x$has_space" != x; then 58128 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 58129 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 58130 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 58131 fi 58132 58133 # Use eval to expand a potential ~ 58134 eval path="$path" 58135 if test ! -f "$path" && test ! -d "$path"; then 58136 as_fn_error $? "The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 58137 fi 58138 58139 if test -d "$path"; then 58140 POTENTIAL_FREETYPE_LIB_PATH="`cd "$path"; $THEPWDCMD -L`" 58141 else 58142 dir="`$DIRNAME "$path"`" 58143 base="`$BASENAME "$path"`" 58144 POTENTIAL_FREETYPE_LIB_PATH="`cd "$dir"; $THEPWDCMD -L`/$base" 58145 fi 58146 fi 58147 fi 58148 58149 58150 FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH" 58151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype includes" >&5 58152 $as_echo_n "checking for freetype includes... " >&6; } 58153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_INCLUDE_PATH" >&5 58154 $as_echo "$FREETYPE_INCLUDE_PATH" >&6; } 58155 FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH" 58156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype libraries" >&5 58157 $as_echo_n "checking for freetype libraries... " >&6; } 58158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_LIB_PATH" >&5 58159 $as_echo "$FREETYPE_LIB_PATH" >&6; } 58160 fi 58161 58162 if test "x$FOUND_FREETYPE" != xyes; then 58163 FREETYPE_BASE_DIR="$ProgramW6432/GnuWin32" 58164 58165 windows_path="$FREETYPE_BASE_DIR" 58166 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 58167 unix_path=`$CYGPATH -u "$windows_path"` 58168 FREETYPE_BASE_DIR="$unix_path" 58169 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 58170 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 58171 FREETYPE_BASE_DIR="$unix_path" 58172 fi 58173 58174 58175 POTENTIAL_FREETYPE_INCLUDE_PATH="$FREETYPE_BASE_DIR/include" 58176 POTENTIAL_FREETYPE_LIB_PATH="$FREETYPE_BASE_DIR/lib" 58177 METHOD="well-known location" 58178 58179 # Let's start with an optimistic view of the world :-) 58180 FOUND_FREETYPE=yes 58181 58182 # First look for the canonical freetype main include file ft2build.h. 58183 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 58184 # Oh no! Let's try in the freetype2 directory. This is needed at least at Mac OS X Yosemite. 58185 POTENTIAL_FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH/freetype2" 58186 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 58187 # Fail. 58188 FOUND_FREETYPE=no 58189 fi 58190 fi 58191 58192 if test "x$FOUND_FREETYPE" = xyes; then 58193 # Include file found, let's continue the sanity check. 58194 { $as_echo "$as_me:${as_lineno-$LINENO}: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&5 58195 $as_echo "$as_me: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&6;} 58196 58197 # Reset to default value 58198 FREETYPE_BASE_NAME=freetype 58199 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 58200 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME"; then 58201 if test "x$OPENJDK_TARGET_OS" = xmacosx \ 58202 && test -s "$POTENTIAL_FREETYPE_LIB_PATH/${LIBRARY_PREFIX}freetype.6${SHARED_LIBRARY_SUFFIX}"; then 58203 # On Mac OS X Yosemite, the symlink from libfreetype.dylib to libfreetype.6.dylib disappeared. Check 58204 # for the .6 version explicitly. 58205 FREETYPE_BASE_NAME=freetype.6 58206 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 58207 { $as_echo "$as_me:${as_lineno-$LINENO}: Compensating for missing symlink by using version 6 explicitly" >&5 58208 $as_echo "$as_me: Compensating for missing symlink by using version 6 explicitly" >&6;} 58209 else 58210 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&5 58211 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&6;} 58212 FOUND_FREETYPE=no 58213 fi 58214 else 58215 if test "x$OPENJDK_TARGET_OS" = xwindows; then 58216 # On Windows, we will need both .lib and .dll file. 58217 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib"; then 58218 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&5 58219 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&6;} 58220 FOUND_FREETYPE=no 58221 fi 58222 elif test "x$OPENJDK_TARGET_OS" = xsolaris \ 58223 && test -s "$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR/$FREETYPE_LIB_NAME"; then 58224 # Found lib in isa dir, use that instead. 58225 POTENTIAL_FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR" 58226 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&5 58227 $as_echo "$as_me: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&6;} 58228 fi 58229 fi 58230 fi 58231 58232 if test "x$FOUND_FREETYPE" = xyes; then 58233 58234 # Only process if variable expands to non-empty 58235 58236 if test "x$POTENTIAL_FREETYPE_INCLUDE_PATH" != x; then 58237 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 58238 58239 # Input might be given as Windows format, start by converting to 58240 # unix format. 58241 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 58242 new_path=`$CYGPATH -u "$path"` 58243 58244 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 58245 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 58246 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 58247 # "foo.exe" is OK but "foo" is an error. 58248 # 58249 # This test is therefore slightly more accurate than "test -f" to check for file precense. 58250 # It is also a way to make sure we got the proper file name for the real test later on. 58251 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 58252 if test "x$test_shortpath" = x; then 58253 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 58254 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 58255 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_INCLUDE_PATH" "$LINENO" 5 58256 fi 58257 58258 # Call helper function which possibly converts this using DOS-style short mode. 58259 # If so, the updated path is stored in $new_path. 58260 58261 input_path="$new_path" 58262 # Check if we need to convert this using DOS-style short mode. If the path 58263 # contains just simple characters, use it. Otherwise (spaces, weird characters), 58264 # take no chances and rewrite it. 58265 # Note: m4 eats our [], so we need to use [ and ] instead. 58266 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 58267 if test "x$has_forbidden_chars" != x; then 58268 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 58269 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 58270 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 58271 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 58272 # Going to short mode and back again did indeed matter. Since short mode is 58273 # case insensitive, let's make it lowercase to improve readability. 58274 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 58275 # Now convert it back to Unix-style (cygpath) 58276 input_path=`$CYGPATH -u "$shortmode_path"` 58277 new_path="$input_path" 58278 fi 58279 fi 58280 58281 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 58282 if test "x$test_cygdrive_prefix" = x; then 58283 # As a simple fix, exclude /usr/bin since it's not a real path. 58284 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 58285 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 58286 # a path prefixed by /cygdrive for fixpath to work. 58287 new_path="$CYGWIN_ROOT_PATH$input_path" 58288 fi 58289 fi 58290 58291 58292 if test "x$path" != "x$new_path"; then 58293 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 58294 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 58295 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 58296 fi 58297 58298 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 58299 58300 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 58301 has_colon=`$ECHO $path | $GREP ^.:` 58302 new_path="$path" 58303 if test "x$has_colon" = x; then 58304 # Not in mixed or Windows style, start by that. 58305 new_path=`cmd //c echo $path` 58306 fi 58307 58308 58309 input_path="$new_path" 58310 # Check if we need to convert this using DOS-style short mode. If the path 58311 # contains just simple characters, use it. Otherwise (spaces, weird characters), 58312 # take no chances and rewrite it. 58313 # Note: m4 eats our [], so we need to use [ and ] instead. 58314 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 58315 if test "x$has_forbidden_chars" != x; then 58316 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 58317 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 58318 fi 58319 58320 58321 windows_path="$new_path" 58322 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 58323 unix_path=`$CYGPATH -u "$windows_path"` 58324 new_path="$unix_path" 58325 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 58326 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 58327 new_path="$unix_path" 58328 fi 58329 58330 if test "x$path" != "x$new_path"; then 58331 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 58332 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 58333 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 58334 fi 58335 58336 # Save the first 10 bytes of this path to the storage, so fixpath can work. 58337 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 58338 58339 else 58340 # We're on a unix platform. Hooray! :) 58341 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 58342 has_space=`$ECHO "$path" | $GREP " "` 58343 if test "x$has_space" != x; then 58344 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 58345 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 58346 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 58347 fi 58348 58349 # Use eval to expand a potential ~ 58350 eval path="$path" 58351 if test ! -f "$path" && test ! -d "$path"; then 58352 as_fn_error $? "The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 58353 fi 58354 58355 if test -d "$path"; then 58356 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$path"; $THEPWDCMD -L`" 58357 else 58358 dir="`$DIRNAME "$path"`" 58359 base="`$BASENAME "$path"`" 58360 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$dir"; $THEPWDCMD -L`/$base" 58361 fi 58362 fi 58363 fi 58364 58365 58366 # Only process if variable expands to non-empty 58367 58368 if test "x$POTENTIAL_FREETYPE_LIB_PATH" != x; then 58369 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 58370 58371 # Input might be given as Windows format, start by converting to 58372 # unix format. 58373 path="$POTENTIAL_FREETYPE_LIB_PATH" 58374 new_path=`$CYGPATH -u "$path"` 58375 58376 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 58377 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 58378 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 58379 # "foo.exe" is OK but "foo" is an error. 58380 # 58381 # This test is therefore slightly more accurate than "test -f" to check for file precense. 58382 # It is also a way to make sure we got the proper file name for the real test later on. 58383 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 58384 if test "x$test_shortpath" = x; then 58385 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 58386 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 58387 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_LIB_PATH" "$LINENO" 5 58388 fi 58389 58390 # Call helper function which possibly converts this using DOS-style short mode. 58391 # If so, the updated path is stored in $new_path. 58392 58393 input_path="$new_path" 58394 # Check if we need to convert this using DOS-style short mode. If the path 58395 # contains just simple characters, use it. Otherwise (spaces, weird characters), 58396 # take no chances and rewrite it. 58397 # Note: m4 eats our [], so we need to use [ and ] instead. 58398 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 58399 if test "x$has_forbidden_chars" != x; then 58400 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 58401 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 58402 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 58403 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 58404 # Going to short mode and back again did indeed matter. Since short mode is 58405 # case insensitive, let's make it lowercase to improve readability. 58406 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 58407 # Now convert it back to Unix-style (cygpath) 58408 input_path=`$CYGPATH -u "$shortmode_path"` 58409 new_path="$input_path" 58410 fi 58411 fi 58412 58413 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 58414 if test "x$test_cygdrive_prefix" = x; then 58415 # As a simple fix, exclude /usr/bin since it's not a real path. 58416 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 58417 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 58418 # a path prefixed by /cygdrive for fixpath to work. 58419 new_path="$CYGWIN_ROOT_PATH$input_path" 58420 fi 58421 fi 58422 58423 58424 if test "x$path" != "x$new_path"; then 58425 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 58426 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 58427 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 58428 fi 58429 58430 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 58431 58432 path="$POTENTIAL_FREETYPE_LIB_PATH" 58433 has_colon=`$ECHO $path | $GREP ^.:` 58434 new_path="$path" 58435 if test "x$has_colon" = x; then 58436 # Not in mixed or Windows style, start by that. 58437 new_path=`cmd //c echo $path` 58438 fi 58439 58440 58441 input_path="$new_path" 58442 # Check if we need to convert this using DOS-style short mode. If the path 58443 # contains just simple characters, use it. Otherwise (spaces, weird characters), 58444 # take no chances and rewrite it. 58445 # Note: m4 eats our [], so we need to use [ and ] instead. 58446 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 58447 if test "x$has_forbidden_chars" != x; then 58448 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 58449 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 58450 fi 58451 58452 58453 windows_path="$new_path" 58454 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 58455 unix_path=`$CYGPATH -u "$windows_path"` 58456 new_path="$unix_path" 58457 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 58458 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 58459 new_path="$unix_path" 58460 fi 58461 58462 if test "x$path" != "x$new_path"; then 58463 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 58464 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 58465 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 58466 fi 58467 58468 # Save the first 10 bytes of this path to the storage, so fixpath can work. 58469 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 58470 58471 else 58472 # We're on a unix platform. Hooray! :) 58473 path="$POTENTIAL_FREETYPE_LIB_PATH" 58474 has_space=`$ECHO "$path" | $GREP " "` 58475 if test "x$has_space" != x; then 58476 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 58477 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 58478 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 58479 fi 58480 58481 # Use eval to expand a potential ~ 58482 eval path="$path" 58483 if test ! -f "$path" && test ! -d "$path"; then 58484 as_fn_error $? "The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 58485 fi 58486 58487 if test -d "$path"; then 58488 POTENTIAL_FREETYPE_LIB_PATH="`cd "$path"; $THEPWDCMD -L`" 58489 else 58490 dir="`$DIRNAME "$path"`" 58491 base="`$BASENAME "$path"`" 58492 POTENTIAL_FREETYPE_LIB_PATH="`cd "$dir"; $THEPWDCMD -L`/$base" 58493 fi 58494 fi 58495 fi 58496 58497 58498 FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH" 58499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype includes" >&5 58500 $as_echo_n "checking for freetype includes... " >&6; } 58501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_INCLUDE_PATH" >&5 58502 $as_echo "$FREETYPE_INCLUDE_PATH" >&6; } 58503 FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH" 58504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype libraries" >&5 58505 $as_echo_n "checking for freetype libraries... " >&6; } 58506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_LIB_PATH" >&5 58507 $as_echo "$FREETYPE_LIB_PATH" >&6; } 58508 fi 58509 58510 fi 58511 if test "x$FOUND_FREETYPE" != xyes; then 58512 FREETYPE_BASE_DIR="$HOME/freetype" 58513 58514 windows_path="$FREETYPE_BASE_DIR" 58515 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 58516 unix_path=`$CYGPATH -u "$windows_path"` 58517 FREETYPE_BASE_DIR="$unix_path" 58518 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 58519 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 58520 FREETYPE_BASE_DIR="$unix_path" 58521 fi 58522 58523 if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then 58524 58525 POTENTIAL_FREETYPE_INCLUDE_PATH="$FREETYPE_BASE_DIR/include" 58526 POTENTIAL_FREETYPE_LIB_PATH="$FREETYPE_BASE_DIR/lib64" 58527 METHOD="well-known location" 58528 58529 # Let's start with an optimistic view of the world :-) 58530 FOUND_FREETYPE=yes 58531 58532 # First look for the canonical freetype main include file ft2build.h. 58533 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 58534 # Oh no! Let's try in the freetype2 directory. This is needed at least at Mac OS X Yosemite. 58535 POTENTIAL_FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH/freetype2" 58536 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 58537 # Fail. 58538 FOUND_FREETYPE=no 58539 fi 58540 fi 58541 58542 if test "x$FOUND_FREETYPE" = xyes; then 58543 # Include file found, let's continue the sanity check. 58544 { $as_echo "$as_me:${as_lineno-$LINENO}: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&5 58545 $as_echo "$as_me: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&6;} 58546 58547 # Reset to default value 58548 FREETYPE_BASE_NAME=freetype 58549 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 58550 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME"; then 58551 if test "x$OPENJDK_TARGET_OS" = xmacosx \ 58552 && test -s "$POTENTIAL_FREETYPE_LIB_PATH/${LIBRARY_PREFIX}freetype.6${SHARED_LIBRARY_SUFFIX}"; then 58553 # On Mac OS X Yosemite, the symlink from libfreetype.dylib to libfreetype.6.dylib disappeared. Check 58554 # for the .6 version explicitly. 58555 FREETYPE_BASE_NAME=freetype.6 58556 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 58557 { $as_echo "$as_me:${as_lineno-$LINENO}: Compensating for missing symlink by using version 6 explicitly" >&5 58558 $as_echo "$as_me: Compensating for missing symlink by using version 6 explicitly" >&6;} 58559 else 58560 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&5 58561 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&6;} 58562 FOUND_FREETYPE=no 58563 fi 58564 else 58565 if test "x$OPENJDK_TARGET_OS" = xwindows; then 58566 # On Windows, we will need both .lib and .dll file. 58567 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib"; then 58568 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&5 58569 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&6;} 58570 FOUND_FREETYPE=no 58571 fi 58572 elif test "x$OPENJDK_TARGET_OS" = xsolaris \ 58573 && test -s "$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR/$FREETYPE_LIB_NAME"; then 58574 # Found lib in isa dir, use that instead. 58575 POTENTIAL_FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR" 58576 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&5 58577 $as_echo "$as_me: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&6;} 58578 fi 58579 fi 58580 fi 58581 58582 if test "x$FOUND_FREETYPE" = xyes; then 58583 58584 # Only process if variable expands to non-empty 58585 58586 if test "x$POTENTIAL_FREETYPE_INCLUDE_PATH" != x; then 58587 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 58588 58589 # Input might be given as Windows format, start by converting to 58590 # unix format. 58591 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 58592 new_path=`$CYGPATH -u "$path"` 58593 58594 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 58595 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 58596 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 58597 # "foo.exe" is OK but "foo" is an error. 58598 # 58599 # This test is therefore slightly more accurate than "test -f" to check for file precense. 58600 # It is also a way to make sure we got the proper file name for the real test later on. 58601 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 58602 if test "x$test_shortpath" = x; then 58603 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 58604 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 58605 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_INCLUDE_PATH" "$LINENO" 5 58606 fi 58607 58608 # Call helper function which possibly converts this using DOS-style short mode. 58609 # If so, the updated path is stored in $new_path. 58610 58611 input_path="$new_path" 58612 # Check if we need to convert this using DOS-style short mode. If the path 58613 # contains just simple characters, use it. Otherwise (spaces, weird characters), 58614 # take no chances and rewrite it. 58615 # Note: m4 eats our [], so we need to use [ and ] instead. 58616 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 58617 if test "x$has_forbidden_chars" != x; then 58618 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 58619 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 58620 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 58621 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 58622 # Going to short mode and back again did indeed matter. Since short mode is 58623 # case insensitive, let's make it lowercase to improve readability. 58624 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 58625 # Now convert it back to Unix-style (cygpath) 58626 input_path=`$CYGPATH -u "$shortmode_path"` 58627 new_path="$input_path" 58628 fi 58629 fi 58630 58631 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 58632 if test "x$test_cygdrive_prefix" = x; then 58633 # As a simple fix, exclude /usr/bin since it's not a real path. 58634 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 58635 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 58636 # a path prefixed by /cygdrive for fixpath to work. 58637 new_path="$CYGWIN_ROOT_PATH$input_path" 58638 fi 58639 fi 58640 58641 58642 if test "x$path" != "x$new_path"; then 58643 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 58644 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 58645 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 58646 fi 58647 58648 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 58649 58650 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 58651 has_colon=`$ECHO $path | $GREP ^.:` 58652 new_path="$path" 58653 if test "x$has_colon" = x; then 58654 # Not in mixed or Windows style, start by that. 58655 new_path=`cmd //c echo $path` 58656 fi 58657 58658 58659 input_path="$new_path" 58660 # Check if we need to convert this using DOS-style short mode. If the path 58661 # contains just simple characters, use it. Otherwise (spaces, weird characters), 58662 # take no chances and rewrite it. 58663 # Note: m4 eats our [], so we need to use [ and ] instead. 58664 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 58665 if test "x$has_forbidden_chars" != x; then 58666 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 58667 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 58668 fi 58669 58670 58671 windows_path="$new_path" 58672 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 58673 unix_path=`$CYGPATH -u "$windows_path"` 58674 new_path="$unix_path" 58675 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 58676 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 58677 new_path="$unix_path" 58678 fi 58679 58680 if test "x$path" != "x$new_path"; then 58681 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 58682 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 58683 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 58684 fi 58685 58686 # Save the first 10 bytes of this path to the storage, so fixpath can work. 58687 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 58688 58689 else 58690 # We're on a unix platform. Hooray! :) 58691 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 58692 has_space=`$ECHO "$path" | $GREP " "` 58693 if test "x$has_space" != x; then 58694 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 58695 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 58696 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 58697 fi 58698 58699 # Use eval to expand a potential ~ 58700 eval path="$path" 58701 if test ! -f "$path" && test ! -d "$path"; then 58702 as_fn_error $? "The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 58703 fi 58704 58705 if test -d "$path"; then 58706 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$path"; $THEPWDCMD -L`" 58707 else 58708 dir="`$DIRNAME "$path"`" 58709 base="`$BASENAME "$path"`" 58710 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$dir"; $THEPWDCMD -L`/$base" 58711 fi 58712 fi 58713 fi 58714 58715 58716 # Only process if variable expands to non-empty 58717 58718 if test "x$POTENTIAL_FREETYPE_LIB_PATH" != x; then 58719 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 58720 58721 # Input might be given as Windows format, start by converting to 58722 # unix format. 58723 path="$POTENTIAL_FREETYPE_LIB_PATH" 58724 new_path=`$CYGPATH -u "$path"` 58725 58726 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 58727 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 58728 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 58729 # "foo.exe" is OK but "foo" is an error. 58730 # 58731 # This test is therefore slightly more accurate than "test -f" to check for file precense. 58732 # It is also a way to make sure we got the proper file name for the real test later on. 58733 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 58734 if test "x$test_shortpath" = x; then 58735 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 58736 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 58737 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_LIB_PATH" "$LINENO" 5 58738 fi 58739 58740 # Call helper function which possibly converts this using DOS-style short mode. 58741 # If so, the updated path is stored in $new_path. 58742 58743 input_path="$new_path" 58744 # Check if we need to convert this using DOS-style short mode. If the path 58745 # contains just simple characters, use it. Otherwise (spaces, weird characters), 58746 # take no chances and rewrite it. 58747 # Note: m4 eats our [], so we need to use [ and ] instead. 58748 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 58749 if test "x$has_forbidden_chars" != x; then 58750 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 58751 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 58752 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 58753 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 58754 # Going to short mode and back again did indeed matter. Since short mode is 58755 # case insensitive, let's make it lowercase to improve readability. 58756 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 58757 # Now convert it back to Unix-style (cygpath) 58758 input_path=`$CYGPATH -u "$shortmode_path"` 58759 new_path="$input_path" 58760 fi 58761 fi 58762 58763 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 58764 if test "x$test_cygdrive_prefix" = x; then 58765 # As a simple fix, exclude /usr/bin since it's not a real path. 58766 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 58767 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 58768 # a path prefixed by /cygdrive for fixpath to work. 58769 new_path="$CYGWIN_ROOT_PATH$input_path" 58770 fi 58771 fi 58772 58773 58774 if test "x$path" != "x$new_path"; then 58775 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 58776 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 58777 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 58778 fi 58779 58780 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 58781 58782 path="$POTENTIAL_FREETYPE_LIB_PATH" 58783 has_colon=`$ECHO $path | $GREP ^.:` 58784 new_path="$path" 58785 if test "x$has_colon" = x; then 58786 # Not in mixed or Windows style, start by that. 58787 new_path=`cmd //c echo $path` 58788 fi 58789 58790 58791 input_path="$new_path" 58792 # Check if we need to convert this using DOS-style short mode. If the path 58793 # contains just simple characters, use it. Otherwise (spaces, weird characters), 58794 # take no chances and rewrite it. 58795 # Note: m4 eats our [], so we need to use [ and ] instead. 58796 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 58797 if test "x$has_forbidden_chars" != x; then 58798 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 58799 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 58800 fi 58801 58802 58803 windows_path="$new_path" 58804 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 58805 unix_path=`$CYGPATH -u "$windows_path"` 58806 new_path="$unix_path" 58807 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 58808 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 58809 new_path="$unix_path" 58810 fi 58811 58812 if test "x$path" != "x$new_path"; then 58813 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 58814 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 58815 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 58816 fi 58817 58818 # Save the first 10 bytes of this path to the storage, so fixpath can work. 58819 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 58820 58821 else 58822 # We're on a unix platform. Hooray! :) 58823 path="$POTENTIAL_FREETYPE_LIB_PATH" 58824 has_space=`$ECHO "$path" | $GREP " "` 58825 if test "x$has_space" != x; then 58826 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 58827 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 58828 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 58829 fi 58830 58831 # Use eval to expand a potential ~ 58832 eval path="$path" 58833 if test ! -f "$path" && test ! -d "$path"; then 58834 as_fn_error $? "The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 58835 fi 58836 58837 if test -d "$path"; then 58838 POTENTIAL_FREETYPE_LIB_PATH="`cd "$path"; $THEPWDCMD -L`" 58839 else 58840 dir="`$DIRNAME "$path"`" 58841 base="`$BASENAME "$path"`" 58842 POTENTIAL_FREETYPE_LIB_PATH="`cd "$dir"; $THEPWDCMD -L`/$base" 58843 fi 58844 fi 58845 fi 58846 58847 58848 FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH" 58849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype includes" >&5 58850 $as_echo_n "checking for freetype includes... " >&6; } 58851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_INCLUDE_PATH" >&5 58852 $as_echo "$FREETYPE_INCLUDE_PATH" >&6; } 58853 FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH" 58854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype libraries" >&5 58855 $as_echo_n "checking for freetype libraries... " >&6; } 58856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_LIB_PATH" >&5 58857 $as_echo "$FREETYPE_LIB_PATH" >&6; } 58858 fi 58859 58860 else 58861 58862 POTENTIAL_FREETYPE_INCLUDE_PATH="$FREETYPE_BASE_DIR/include" 58863 POTENTIAL_FREETYPE_LIB_PATH="$FREETYPE_BASE_DIR/lib32" 58864 METHOD="well-known location" 58865 58866 # Let's start with an optimistic view of the world :-) 58867 FOUND_FREETYPE=yes 58868 58869 # First look for the canonical freetype main include file ft2build.h. 58870 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 58871 # Oh no! Let's try in the freetype2 directory. This is needed at least at Mac OS X Yosemite. 58872 POTENTIAL_FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH/freetype2" 58873 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 58874 # Fail. 58875 FOUND_FREETYPE=no 58876 fi 58877 fi 58878 58879 if test "x$FOUND_FREETYPE" = xyes; then 58880 # Include file found, let's continue the sanity check. 58881 { $as_echo "$as_me:${as_lineno-$LINENO}: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&5 58882 $as_echo "$as_me: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&6;} 58883 58884 # Reset to default value 58885 FREETYPE_BASE_NAME=freetype 58886 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 58887 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME"; then 58888 if test "x$OPENJDK_TARGET_OS" = xmacosx \ 58889 && test -s "$POTENTIAL_FREETYPE_LIB_PATH/${LIBRARY_PREFIX}freetype.6${SHARED_LIBRARY_SUFFIX}"; then 58890 # On Mac OS X Yosemite, the symlink from libfreetype.dylib to libfreetype.6.dylib disappeared. Check 58891 # for the .6 version explicitly. 58892 FREETYPE_BASE_NAME=freetype.6 58893 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 58894 { $as_echo "$as_me:${as_lineno-$LINENO}: Compensating for missing symlink by using version 6 explicitly" >&5 58895 $as_echo "$as_me: Compensating for missing symlink by using version 6 explicitly" >&6;} 58896 else 58897 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&5 58898 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&6;} 58899 FOUND_FREETYPE=no 58900 fi 58901 else 58902 if test "x$OPENJDK_TARGET_OS" = xwindows; then 58903 # On Windows, we will need both .lib and .dll file. 58904 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib"; then 58905 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&5 58906 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&6;} 58907 FOUND_FREETYPE=no 58908 fi 58909 elif test "x$OPENJDK_TARGET_OS" = xsolaris \ 58910 && test -s "$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR/$FREETYPE_LIB_NAME"; then 58911 # Found lib in isa dir, use that instead. 58912 POTENTIAL_FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR" 58913 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&5 58914 $as_echo "$as_me: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&6;} 58915 fi 58916 fi 58917 fi 58918 58919 if test "x$FOUND_FREETYPE" = xyes; then 58920 58921 # Only process if variable expands to non-empty 58922 58923 if test "x$POTENTIAL_FREETYPE_INCLUDE_PATH" != x; then 58924 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 58925 58926 # Input might be given as Windows format, start by converting to 58927 # unix format. 58928 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 58929 new_path=`$CYGPATH -u "$path"` 58930 58931 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 58932 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 58933 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 58934 # "foo.exe" is OK but "foo" is an error. 58935 # 58936 # This test is therefore slightly more accurate than "test -f" to check for file precense. 58937 # It is also a way to make sure we got the proper file name for the real test later on. 58938 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 58939 if test "x$test_shortpath" = x; then 58940 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 58941 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 58942 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_INCLUDE_PATH" "$LINENO" 5 58943 fi 58944 58945 # Call helper function which possibly converts this using DOS-style short mode. 58946 # If so, the updated path is stored in $new_path. 58947 58948 input_path="$new_path" 58949 # Check if we need to convert this using DOS-style short mode. If the path 58950 # contains just simple characters, use it. Otherwise (spaces, weird characters), 58951 # take no chances and rewrite it. 58952 # Note: m4 eats our [], so we need to use [ and ] instead. 58953 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 58954 if test "x$has_forbidden_chars" != x; then 58955 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 58956 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 58957 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 58958 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 58959 # Going to short mode and back again did indeed matter. Since short mode is 58960 # case insensitive, let's make it lowercase to improve readability. 58961 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 58962 # Now convert it back to Unix-style (cygpath) 58963 input_path=`$CYGPATH -u "$shortmode_path"` 58964 new_path="$input_path" 58965 fi 58966 fi 58967 58968 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 58969 if test "x$test_cygdrive_prefix" = x; then 58970 # As a simple fix, exclude /usr/bin since it's not a real path. 58971 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 58972 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 58973 # a path prefixed by /cygdrive for fixpath to work. 58974 new_path="$CYGWIN_ROOT_PATH$input_path" 58975 fi 58976 fi 58977 58978 58979 if test "x$path" != "x$new_path"; then 58980 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 58981 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 58982 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 58983 fi 58984 58985 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 58986 58987 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 58988 has_colon=`$ECHO $path | $GREP ^.:` 58989 new_path="$path" 58990 if test "x$has_colon" = x; then 58991 # Not in mixed or Windows style, start by that. 58992 new_path=`cmd //c echo $path` 58993 fi 58994 58995 58996 input_path="$new_path" 58997 # Check if we need to convert this using DOS-style short mode. If the path 58998 # contains just simple characters, use it. Otherwise (spaces, weird characters), 58999 # take no chances and rewrite it. 59000 # Note: m4 eats our [], so we need to use [ and ] instead. 59001 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 59002 if test "x$has_forbidden_chars" != x; then 59003 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 59004 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 59005 fi 59006 59007 59008 windows_path="$new_path" 59009 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 59010 unix_path=`$CYGPATH -u "$windows_path"` 59011 new_path="$unix_path" 59012 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 59013 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 59014 new_path="$unix_path" 59015 fi 59016 59017 if test "x$path" != "x$new_path"; then 59018 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 59019 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 59020 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 59021 fi 59022 59023 # Save the first 10 bytes of this path to the storage, so fixpath can work. 59024 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 59025 59026 else 59027 # We're on a unix platform. Hooray! :) 59028 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 59029 has_space=`$ECHO "$path" | $GREP " "` 59030 if test "x$has_space" != x; then 59031 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 59032 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 59033 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 59034 fi 59035 59036 # Use eval to expand a potential ~ 59037 eval path="$path" 59038 if test ! -f "$path" && test ! -d "$path"; then 59039 as_fn_error $? "The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 59040 fi 59041 59042 if test -d "$path"; then 59043 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$path"; $THEPWDCMD -L`" 59044 else 59045 dir="`$DIRNAME "$path"`" 59046 base="`$BASENAME "$path"`" 59047 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$dir"; $THEPWDCMD -L`/$base" 59048 fi 59049 fi 59050 fi 59051 59052 59053 # Only process if variable expands to non-empty 59054 59055 if test "x$POTENTIAL_FREETYPE_LIB_PATH" != x; then 59056 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 59057 59058 # Input might be given as Windows format, start by converting to 59059 # unix format. 59060 path="$POTENTIAL_FREETYPE_LIB_PATH" 59061 new_path=`$CYGPATH -u "$path"` 59062 59063 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 59064 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 59065 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 59066 # "foo.exe" is OK but "foo" is an error. 59067 # 59068 # This test is therefore slightly more accurate than "test -f" to check for file precense. 59069 # It is also a way to make sure we got the proper file name for the real test later on. 59070 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 59071 if test "x$test_shortpath" = x; then 59072 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 59073 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 59074 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_LIB_PATH" "$LINENO" 5 59075 fi 59076 59077 # Call helper function which possibly converts this using DOS-style short mode. 59078 # If so, the updated path is stored in $new_path. 59079 59080 input_path="$new_path" 59081 # Check if we need to convert this using DOS-style short mode. If the path 59082 # contains just simple characters, use it. Otherwise (spaces, weird characters), 59083 # take no chances and rewrite it. 59084 # Note: m4 eats our [], so we need to use [ and ] instead. 59085 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 59086 if test "x$has_forbidden_chars" != x; then 59087 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 59088 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 59089 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 59090 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 59091 # Going to short mode and back again did indeed matter. Since short mode is 59092 # case insensitive, let's make it lowercase to improve readability. 59093 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 59094 # Now convert it back to Unix-style (cygpath) 59095 input_path=`$CYGPATH -u "$shortmode_path"` 59096 new_path="$input_path" 59097 fi 59098 fi 59099 59100 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 59101 if test "x$test_cygdrive_prefix" = x; then 59102 # As a simple fix, exclude /usr/bin since it's not a real path. 59103 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 59104 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 59105 # a path prefixed by /cygdrive for fixpath to work. 59106 new_path="$CYGWIN_ROOT_PATH$input_path" 59107 fi 59108 fi 59109 59110 59111 if test "x$path" != "x$new_path"; then 59112 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 59113 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 59114 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 59115 fi 59116 59117 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 59118 59119 path="$POTENTIAL_FREETYPE_LIB_PATH" 59120 has_colon=`$ECHO $path | $GREP ^.:` 59121 new_path="$path" 59122 if test "x$has_colon" = x; then 59123 # Not in mixed or Windows style, start by that. 59124 new_path=`cmd //c echo $path` 59125 fi 59126 59127 59128 input_path="$new_path" 59129 # Check if we need to convert this using DOS-style short mode. If the path 59130 # contains just simple characters, use it. Otherwise (spaces, weird characters), 59131 # take no chances and rewrite it. 59132 # Note: m4 eats our [], so we need to use [ and ] instead. 59133 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 59134 if test "x$has_forbidden_chars" != x; then 59135 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 59136 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 59137 fi 59138 59139 59140 windows_path="$new_path" 59141 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 59142 unix_path=`$CYGPATH -u "$windows_path"` 59143 new_path="$unix_path" 59144 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 59145 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 59146 new_path="$unix_path" 59147 fi 59148 59149 if test "x$path" != "x$new_path"; then 59150 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 59151 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 59152 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 59153 fi 59154 59155 # Save the first 10 bytes of this path to the storage, so fixpath can work. 59156 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 59157 59158 else 59159 # We're on a unix platform. Hooray! :) 59160 path="$POTENTIAL_FREETYPE_LIB_PATH" 59161 has_space=`$ECHO "$path" | $GREP " "` 59162 if test "x$has_space" != x; then 59163 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 59164 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 59165 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 59166 fi 59167 59168 # Use eval to expand a potential ~ 59169 eval path="$path" 59170 if test ! -f "$path" && test ! -d "$path"; then 59171 as_fn_error $? "The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 59172 fi 59173 59174 if test -d "$path"; then 59175 POTENTIAL_FREETYPE_LIB_PATH="`cd "$path"; $THEPWDCMD -L`" 59176 else 59177 dir="`$DIRNAME "$path"`" 59178 base="`$BASENAME "$path"`" 59179 POTENTIAL_FREETYPE_LIB_PATH="`cd "$dir"; $THEPWDCMD -L`/$base" 59180 fi 59181 fi 59182 fi 59183 59184 59185 FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH" 59186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype includes" >&5 59187 $as_echo_n "checking for freetype includes... " >&6; } 59188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_INCLUDE_PATH" >&5 59189 $as_echo "$FREETYPE_INCLUDE_PATH" >&6; } 59190 FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH" 59191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype libraries" >&5 59192 $as_echo_n "checking for freetype libraries... " >&6; } 59193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_LIB_PATH" >&5 59194 $as_echo "$FREETYPE_LIB_PATH" >&6; } 59195 fi 59196 59197 fi 59198 if test "x$FOUND_FREETYPE" != xyes && test -d $FREETYPE_BASE_DIR \ 59199 && test -s "$FREETYPE_BASE_DIR/builds/windows/vc2010/freetype.vcxproj" && test "x$MSBUILD" != x; then 59200 # Source is available, as a last resort try to build freetype in default location 59201 59202 FREETYPE_SRC_PATH="$FREETYPE_BASE_DIR" 59203 BUILD_FREETYPE=yes 59204 59205 # Check if the freetype sources are acessible.. 59206 if ! test -d $FREETYPE_SRC_PATH; then 59207 { $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 59208 $as_echo "$as_me: WARNING: --with-freetype-src specified, but can not find path \"$FREETYPE_SRC_PATH\" - ignoring --with-freetype-src" >&2;} 59209 BUILD_FREETYPE=no 59210 fi 59211 # ..and contain a vc2010 project file 59212 vcxproj_path="$FREETYPE_SRC_PATH/builds/windows/vc2010/freetype.vcxproj" 59213 if test "x$BUILD_FREETYPE" = xyes && ! test -s $vcxproj_path; then 59214 { $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 59215 $as_echo "$as_me: WARNING: Can not find project file $vcxproj_path (you may try a newer freetype version) - ignoring --with-freetype-src" >&2;} 59216 BUILD_FREETYPE=no 59217 fi 59218 # Now check if configure found a version of 'msbuild.exe' 59219 if test "x$BUILD_FREETYPE" = xyes && test "x$MSBUILD" == x ; then 59220 { $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 59221 $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;} 59222 BUILD_FREETYPE=no 59223 fi 59224 59225 # Ready to go.. 59226 if test "x$BUILD_FREETYPE" = xyes; then 59227 # msbuild requires trailing slashes for output directories 59228 freetype_lib_path="$FREETYPE_SRC_PATH/lib$OPENJDK_TARGET_CPU_BITS/" 59229 freetype_lib_path_unix="$freetype_lib_path" 59230 freetype_obj_path="$FREETYPE_SRC_PATH/obj$OPENJDK_TARGET_CPU_BITS/" 59231 59232 unix_path="$vcxproj_path" 59233 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 59234 windows_path=`$CYGPATH -m "$unix_path"` 59235 vcxproj_path="$windows_path" 59236 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 59237 windows_path=`cmd //c echo $unix_path` 59238 vcxproj_path="$windows_path" 59239 fi 59240 59241 59242 unix_path="$freetype_lib_path" 59243 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 59244 windows_path=`$CYGPATH -m "$unix_path"` 59245 freetype_lib_path="$windows_path" 59246 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 59247 windows_path=`cmd //c echo $unix_path` 59248 freetype_lib_path="$windows_path" 59249 fi 59250 59251 59252 unix_path="$freetype_obj_path" 59253 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 59254 windows_path=`$CYGPATH -m "$unix_path"` 59255 freetype_obj_path="$windows_path" 59256 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 59257 windows_path=`cmd //c echo $unix_path` 59258 freetype_obj_path="$windows_path" 59259 fi 59260 59261 if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then 59262 freetype_platform=x64 59263 else 59264 freetype_platform=win32 59265 fi 59266 59267 # The original freetype project file is for VS 2010 (i.e. 'v100'), 59268 # so we have to adapt the toolset if building with any other toolsed (i.e. SDK). 59269 # Currently 'PLATFORM_TOOLSET' is set in 'TOOLCHAIN_CHECK_POSSIBLE_VISUAL_STUDIO_ROOT'/ 59270 # 'TOOLCHAIN_CHECK_POSSIBLE_WIN_SDK_ROOT' in toolchain_windows.m4 59271 { $as_echo "$as_me:${as_lineno-$LINENO}: Trying to compile freetype sources with PlatformToolset=$PLATFORM_TOOLSET to $freetype_lib_path_unix ..." >&5 59272 $as_echo "$as_me: Trying to compile freetype sources with PlatformToolset=$PLATFORM_TOOLSET to $freetype_lib_path_unix ..." >&6;} 59273 59274 # First we try to build the freetype.dll 59275 $ECHO -e "@echo off\n"\ 59276 "$MSBUILD $vcxproj_path "\ 59277 "/p:PlatformToolset=$PLATFORM_TOOLSET "\ 59278 "/p:Configuration=\"Release Multithreaded\" "\ 59279 "/p:Platform=$freetype_platform "\ 59280 "/p:ConfigurationType=DynamicLibrary "\ 59281 "/p:TargetName=freetype "\ 59282 "/p:OutDir=\"$freetype_lib_path\" "\ 59283 "/p:IntDir=\"$freetype_obj_path\" > freetype.log" > freetype.bat 59284 cmd /c freetype.bat 59285 59286 if test -s "$freetype_lib_path_unix/freetype.dll"; then 59287 # If that succeeds we also build freetype.lib 59288 $ECHO -e "@echo off\n"\ 59289 "$MSBUILD $vcxproj_path "\ 59290 "/p:PlatformToolset=$PLATFORM_TOOLSET "\ 59291 "/p:Configuration=\"Release Multithreaded\" "\ 59292 "/p:Platform=$freetype_platform "\ 59293 "/p:ConfigurationType=StaticLibrary "\ 59294 "/p:TargetName=freetype "\ 59295 "/p:OutDir=\"$freetype_lib_path\" "\ 59296 "/p:IntDir=\"$freetype_obj_path\" >> freetype.log" > freetype.bat 59297 cmd /c freetype.bat 59298 59299 if test -s "$freetype_lib_path_unix/freetype.lib"; then 59300 # Once we build both, lib and dll, set freetype lib and include path appropriately 59301 POTENTIAL_FREETYPE_INCLUDE_PATH="$FREETYPE_SRC_PATH/include" 59302 POTENTIAL_FREETYPE_LIB_PATH="$freetype_lib_path_unix" 59303 { $as_echo "$as_me:${as_lineno-$LINENO}: Compiling freetype sources succeeded! (see freetype.log for build results)" >&5 59304 $as_echo "$as_me: Compiling freetype sources succeeded! (see freetype.log for build results)" >&6;} 59305 else 59306 BUILD_FREETYPE=no 59307 fi 59308 else 59309 BUILD_FREETYPE=no 59310 fi 59311 fi 59312 59313 if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then 59314 59315 POTENTIAL_FREETYPE_INCLUDE_PATH="$FREETYPE_BASE_DIR/include" 59316 POTENTIAL_FREETYPE_LIB_PATH="$FREETYPE_BASE_DIR/lib64" 59317 METHOD="well-known location" 59318 59319 # Let's start with an optimistic view of the world :-) 59320 FOUND_FREETYPE=yes 59321 59322 # First look for the canonical freetype main include file ft2build.h. 59323 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 59324 # Oh no! Let's try in the freetype2 directory. This is needed at least at Mac OS X Yosemite. 59325 POTENTIAL_FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH/freetype2" 59326 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 59327 # Fail. 59328 FOUND_FREETYPE=no 59329 fi 59330 fi 59331 59332 if test "x$FOUND_FREETYPE" = xyes; then 59333 # Include file found, let's continue the sanity check. 59334 { $as_echo "$as_me:${as_lineno-$LINENO}: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&5 59335 $as_echo "$as_me: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&6;} 59336 59337 # Reset to default value 59338 FREETYPE_BASE_NAME=freetype 59339 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 59340 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME"; then 59341 if test "x$OPENJDK_TARGET_OS" = xmacosx \ 59342 && test -s "$POTENTIAL_FREETYPE_LIB_PATH/${LIBRARY_PREFIX}freetype.6${SHARED_LIBRARY_SUFFIX}"; then 59343 # On Mac OS X Yosemite, the symlink from libfreetype.dylib to libfreetype.6.dylib disappeared. Check 59344 # for the .6 version explicitly. 59345 FREETYPE_BASE_NAME=freetype.6 59346 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 59347 { $as_echo "$as_me:${as_lineno-$LINENO}: Compensating for missing symlink by using version 6 explicitly" >&5 59348 $as_echo "$as_me: Compensating for missing symlink by using version 6 explicitly" >&6;} 59349 else 59350 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&5 59351 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&6;} 59352 FOUND_FREETYPE=no 59353 fi 59354 else 59355 if test "x$OPENJDK_TARGET_OS" = xwindows; then 59356 # On Windows, we will need both .lib and .dll file. 59357 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib"; then 59358 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&5 59359 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&6;} 59360 FOUND_FREETYPE=no 59361 fi 59362 elif test "x$OPENJDK_TARGET_OS" = xsolaris \ 59363 && test -s "$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR/$FREETYPE_LIB_NAME"; then 59364 # Found lib in isa dir, use that instead. 59365 POTENTIAL_FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR" 59366 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&5 59367 $as_echo "$as_me: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&6;} 59368 fi 59369 fi 59370 fi 59371 59372 if test "x$FOUND_FREETYPE" = xyes; then 59373 59374 # Only process if variable expands to non-empty 59375 59376 if test "x$POTENTIAL_FREETYPE_INCLUDE_PATH" != x; then 59377 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 59378 59379 # Input might be given as Windows format, start by converting to 59380 # unix format. 59381 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 59382 new_path=`$CYGPATH -u "$path"` 59383 59384 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 59385 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 59386 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 59387 # "foo.exe" is OK but "foo" is an error. 59388 # 59389 # This test is therefore slightly more accurate than "test -f" to check for file precense. 59390 # It is also a way to make sure we got the proper file name for the real test later on. 59391 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 59392 if test "x$test_shortpath" = x; then 59393 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 59394 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 59395 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_INCLUDE_PATH" "$LINENO" 5 59396 fi 59397 59398 # Call helper function which possibly converts this using DOS-style short mode. 59399 # If so, the updated path is stored in $new_path. 59400 59401 input_path="$new_path" 59402 # Check if we need to convert this using DOS-style short mode. If the path 59403 # contains just simple characters, use it. Otherwise (spaces, weird characters), 59404 # take no chances and rewrite it. 59405 # Note: m4 eats our [], so we need to use [ and ] instead. 59406 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 59407 if test "x$has_forbidden_chars" != x; then 59408 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 59409 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 59410 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 59411 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 59412 # Going to short mode and back again did indeed matter. Since short mode is 59413 # case insensitive, let's make it lowercase to improve readability. 59414 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 59415 # Now convert it back to Unix-style (cygpath) 59416 input_path=`$CYGPATH -u "$shortmode_path"` 59417 new_path="$input_path" 59418 fi 59419 fi 59420 59421 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 59422 if test "x$test_cygdrive_prefix" = x; then 59423 # As a simple fix, exclude /usr/bin since it's not a real path. 59424 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 59425 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 59426 # a path prefixed by /cygdrive for fixpath to work. 59427 new_path="$CYGWIN_ROOT_PATH$input_path" 59428 fi 59429 fi 59430 59431 59432 if test "x$path" != "x$new_path"; then 59433 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 59434 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 59435 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 59436 fi 59437 59438 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 59439 59440 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 59441 has_colon=`$ECHO $path | $GREP ^.:` 59442 new_path="$path" 59443 if test "x$has_colon" = x; then 59444 # Not in mixed or Windows style, start by that. 59445 new_path=`cmd //c echo $path` 59446 fi 59447 59448 59449 input_path="$new_path" 59450 # Check if we need to convert this using DOS-style short mode. If the path 59451 # contains just simple characters, use it. Otherwise (spaces, weird characters), 59452 # take no chances and rewrite it. 59453 # Note: m4 eats our [], so we need to use [ and ] instead. 59454 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 59455 if test "x$has_forbidden_chars" != x; then 59456 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 59457 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 59458 fi 59459 59460 59461 windows_path="$new_path" 59462 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 59463 unix_path=`$CYGPATH -u "$windows_path"` 59464 new_path="$unix_path" 59465 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 59466 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 59467 new_path="$unix_path" 59468 fi 59469 59470 if test "x$path" != "x$new_path"; then 59471 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 59472 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 59473 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 59474 fi 59475 59476 # Save the first 10 bytes of this path to the storage, so fixpath can work. 59477 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 59478 59479 else 59480 # We're on a unix platform. Hooray! :) 59481 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 59482 has_space=`$ECHO "$path" | $GREP " "` 59483 if test "x$has_space" != x; then 59484 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 59485 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 59486 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 59487 fi 59488 59489 # Use eval to expand a potential ~ 59490 eval path="$path" 59491 if test ! -f "$path" && test ! -d "$path"; then 59492 as_fn_error $? "The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 59493 fi 59494 59495 if test -d "$path"; then 59496 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$path"; $THEPWDCMD -L`" 59497 else 59498 dir="`$DIRNAME "$path"`" 59499 base="`$BASENAME "$path"`" 59500 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$dir"; $THEPWDCMD -L`/$base" 59501 fi 59502 fi 59503 fi 59504 59505 59506 # Only process if variable expands to non-empty 59507 59508 if test "x$POTENTIAL_FREETYPE_LIB_PATH" != x; then 59509 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 59510 59511 # Input might be given as Windows format, start by converting to 59512 # unix format. 59513 path="$POTENTIAL_FREETYPE_LIB_PATH" 59514 new_path=`$CYGPATH -u "$path"` 59515 59516 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 59517 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 59518 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 59519 # "foo.exe" is OK but "foo" is an error. 59520 # 59521 # This test is therefore slightly more accurate than "test -f" to check for file precense. 59522 # It is also a way to make sure we got the proper file name for the real test later on. 59523 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 59524 if test "x$test_shortpath" = x; then 59525 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 59526 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 59527 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_LIB_PATH" "$LINENO" 5 59528 fi 59529 59530 # Call helper function which possibly converts this using DOS-style short mode. 59531 # If so, the updated path is stored in $new_path. 59532 59533 input_path="$new_path" 59534 # Check if we need to convert this using DOS-style short mode. If the path 59535 # contains just simple characters, use it. Otherwise (spaces, weird characters), 59536 # take no chances and rewrite it. 59537 # Note: m4 eats our [], so we need to use [ and ] instead. 59538 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 59539 if test "x$has_forbidden_chars" != x; then 59540 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 59541 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 59542 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 59543 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 59544 # Going to short mode and back again did indeed matter. Since short mode is 59545 # case insensitive, let's make it lowercase to improve readability. 59546 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 59547 # Now convert it back to Unix-style (cygpath) 59548 input_path=`$CYGPATH -u "$shortmode_path"` 59549 new_path="$input_path" 59550 fi 59551 fi 59552 59553 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 59554 if test "x$test_cygdrive_prefix" = x; then 59555 # As a simple fix, exclude /usr/bin since it's not a real path. 59556 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 59557 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 59558 # a path prefixed by /cygdrive for fixpath to work. 59559 new_path="$CYGWIN_ROOT_PATH$input_path" 59560 fi 59561 fi 59562 59563 59564 if test "x$path" != "x$new_path"; then 59565 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 59566 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 59567 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 59568 fi 59569 59570 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 59571 59572 path="$POTENTIAL_FREETYPE_LIB_PATH" 59573 has_colon=`$ECHO $path | $GREP ^.:` 59574 new_path="$path" 59575 if test "x$has_colon" = x; then 59576 # Not in mixed or Windows style, start by that. 59577 new_path=`cmd //c echo $path` 59578 fi 59579 59580 59581 input_path="$new_path" 59582 # Check if we need to convert this using DOS-style short mode. If the path 59583 # contains just simple characters, use it. Otherwise (spaces, weird characters), 59584 # take no chances and rewrite it. 59585 # Note: m4 eats our [], so we need to use [ and ] instead. 59586 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 59587 if test "x$has_forbidden_chars" != x; then 59588 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 59589 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 59590 fi 59591 59592 59593 windows_path="$new_path" 59594 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 59595 unix_path=`$CYGPATH -u "$windows_path"` 59596 new_path="$unix_path" 59597 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 59598 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 59599 new_path="$unix_path" 59600 fi 59601 59602 if test "x$path" != "x$new_path"; then 59603 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 59604 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 59605 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 59606 fi 59607 59608 # Save the first 10 bytes of this path to the storage, so fixpath can work. 59609 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 59610 59611 else 59612 # We're on a unix platform. Hooray! :) 59613 path="$POTENTIAL_FREETYPE_LIB_PATH" 59614 has_space=`$ECHO "$path" | $GREP " "` 59615 if test "x$has_space" != x; then 59616 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 59617 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 59618 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 59619 fi 59620 59621 # Use eval to expand a potential ~ 59622 eval path="$path" 59623 if test ! -f "$path" && test ! -d "$path"; then 59624 as_fn_error $? "The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 59625 fi 59626 59627 if test -d "$path"; then 59628 POTENTIAL_FREETYPE_LIB_PATH="`cd "$path"; $THEPWDCMD -L`" 59629 else 59630 dir="`$DIRNAME "$path"`" 59631 base="`$BASENAME "$path"`" 59632 POTENTIAL_FREETYPE_LIB_PATH="`cd "$dir"; $THEPWDCMD -L`/$base" 59633 fi 59634 fi 59635 fi 59636 59637 59638 FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH" 59639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype includes" >&5 59640 $as_echo_n "checking for freetype includes... " >&6; } 59641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_INCLUDE_PATH" >&5 59642 $as_echo "$FREETYPE_INCLUDE_PATH" >&6; } 59643 FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH" 59644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype libraries" >&5 59645 $as_echo_n "checking for freetype libraries... " >&6; } 59646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_LIB_PATH" >&5 59647 $as_echo "$FREETYPE_LIB_PATH" >&6; } 59648 fi 59649 59650 else 59651 59652 POTENTIAL_FREETYPE_INCLUDE_PATH="$FREETYPE_BASE_DIR/include" 59653 POTENTIAL_FREETYPE_LIB_PATH="$FREETYPE_BASE_DIR/lib32" 59654 METHOD="well-known location" 59655 59656 # Let's start with an optimistic view of the world :-) 59657 FOUND_FREETYPE=yes 59658 59659 # First look for the canonical freetype main include file ft2build.h. 59660 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 59661 # Oh no! Let's try in the freetype2 directory. This is needed at least at Mac OS X Yosemite. 59662 POTENTIAL_FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH/freetype2" 59663 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 59664 # Fail. 59665 FOUND_FREETYPE=no 59666 fi 59667 fi 59668 59669 if test "x$FOUND_FREETYPE" = xyes; then 59670 # Include file found, let's continue the sanity check. 59671 { $as_echo "$as_me:${as_lineno-$LINENO}: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&5 59672 $as_echo "$as_me: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&6;} 59673 59674 # Reset to default value 59675 FREETYPE_BASE_NAME=freetype 59676 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 59677 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME"; then 59678 if test "x$OPENJDK_TARGET_OS" = xmacosx \ 59679 && test -s "$POTENTIAL_FREETYPE_LIB_PATH/${LIBRARY_PREFIX}freetype.6${SHARED_LIBRARY_SUFFIX}"; then 59680 # On Mac OS X Yosemite, the symlink from libfreetype.dylib to libfreetype.6.dylib disappeared. Check 59681 # for the .6 version explicitly. 59682 FREETYPE_BASE_NAME=freetype.6 59683 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 59684 { $as_echo "$as_me:${as_lineno-$LINENO}: Compensating for missing symlink by using version 6 explicitly" >&5 59685 $as_echo "$as_me: Compensating for missing symlink by using version 6 explicitly" >&6;} 59686 else 59687 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&5 59688 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&6;} 59689 FOUND_FREETYPE=no 59690 fi 59691 else 59692 if test "x$OPENJDK_TARGET_OS" = xwindows; then 59693 # On Windows, we will need both .lib and .dll file. 59694 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib"; then 59695 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&5 59696 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&6;} 59697 FOUND_FREETYPE=no 59698 fi 59699 elif test "x$OPENJDK_TARGET_OS" = xsolaris \ 59700 && test -s "$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR/$FREETYPE_LIB_NAME"; then 59701 # Found lib in isa dir, use that instead. 59702 POTENTIAL_FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR" 59703 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&5 59704 $as_echo "$as_me: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&6;} 59705 fi 59706 fi 59707 fi 59708 59709 if test "x$FOUND_FREETYPE" = xyes; then 59710 59711 # Only process if variable expands to non-empty 59712 59713 if test "x$POTENTIAL_FREETYPE_INCLUDE_PATH" != x; then 59714 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 59715 59716 # Input might be given as Windows format, start by converting to 59717 # unix format. 59718 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 59719 new_path=`$CYGPATH -u "$path"` 59720 59721 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 59722 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 59723 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 59724 # "foo.exe" is OK but "foo" is an error. 59725 # 59726 # This test is therefore slightly more accurate than "test -f" to check for file precense. 59727 # It is also a way to make sure we got the proper file name for the real test later on. 59728 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 59729 if test "x$test_shortpath" = x; then 59730 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 59731 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 59732 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_INCLUDE_PATH" "$LINENO" 5 59733 fi 59734 59735 # Call helper function which possibly converts this using DOS-style short mode. 59736 # If so, the updated path is stored in $new_path. 59737 59738 input_path="$new_path" 59739 # Check if we need to convert this using DOS-style short mode. If the path 59740 # contains just simple characters, use it. Otherwise (spaces, weird characters), 59741 # take no chances and rewrite it. 59742 # Note: m4 eats our [], so we need to use [ and ] instead. 59743 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 59744 if test "x$has_forbidden_chars" != x; then 59745 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 59746 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 59747 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 59748 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 59749 # Going to short mode and back again did indeed matter. Since short mode is 59750 # case insensitive, let's make it lowercase to improve readability. 59751 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 59752 # Now convert it back to Unix-style (cygpath) 59753 input_path=`$CYGPATH -u "$shortmode_path"` 59754 new_path="$input_path" 59755 fi 59756 fi 59757 59758 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 59759 if test "x$test_cygdrive_prefix" = x; then 59760 # As a simple fix, exclude /usr/bin since it's not a real path. 59761 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 59762 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 59763 # a path prefixed by /cygdrive for fixpath to work. 59764 new_path="$CYGWIN_ROOT_PATH$input_path" 59765 fi 59766 fi 59767 59768 59769 if test "x$path" != "x$new_path"; then 59770 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 59771 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 59772 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 59773 fi 59774 59775 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 59776 59777 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 59778 has_colon=`$ECHO $path | $GREP ^.:` 59779 new_path="$path" 59780 if test "x$has_colon" = x; then 59781 # Not in mixed or Windows style, start by that. 59782 new_path=`cmd //c echo $path` 59783 fi 59784 59785 59786 input_path="$new_path" 59787 # Check if we need to convert this using DOS-style short mode. If the path 59788 # contains just simple characters, use it. Otherwise (spaces, weird characters), 59789 # take no chances and rewrite it. 59790 # Note: m4 eats our [], so we need to use [ and ] instead. 59791 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 59792 if test "x$has_forbidden_chars" != x; then 59793 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 59794 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 59795 fi 59796 59797 59798 windows_path="$new_path" 59799 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 59800 unix_path=`$CYGPATH -u "$windows_path"` 59801 new_path="$unix_path" 59802 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 59803 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 59804 new_path="$unix_path" 59805 fi 59806 59807 if test "x$path" != "x$new_path"; then 59808 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 59809 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 59810 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 59811 fi 59812 59813 # Save the first 10 bytes of this path to the storage, so fixpath can work. 59814 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 59815 59816 else 59817 # We're on a unix platform. Hooray! :) 59818 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 59819 has_space=`$ECHO "$path" | $GREP " "` 59820 if test "x$has_space" != x; then 59821 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 59822 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 59823 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 59824 fi 59825 59826 # Use eval to expand a potential ~ 59827 eval path="$path" 59828 if test ! -f "$path" && test ! -d "$path"; then 59829 as_fn_error $? "The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 59830 fi 59831 59832 if test -d "$path"; then 59833 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$path"; $THEPWDCMD -L`" 59834 else 59835 dir="`$DIRNAME "$path"`" 59836 base="`$BASENAME "$path"`" 59837 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$dir"; $THEPWDCMD -L`/$base" 59838 fi 59839 fi 59840 fi 59841 59842 59843 # Only process if variable expands to non-empty 59844 59845 if test "x$POTENTIAL_FREETYPE_LIB_PATH" != x; then 59846 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 59847 59848 # Input might be given as Windows format, start by converting to 59849 # unix format. 59850 path="$POTENTIAL_FREETYPE_LIB_PATH" 59851 new_path=`$CYGPATH -u "$path"` 59852 59853 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 59854 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 59855 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 59856 # "foo.exe" is OK but "foo" is an error. 59857 # 59858 # This test is therefore slightly more accurate than "test -f" to check for file precense. 59859 # It is also a way to make sure we got the proper file name for the real test later on. 59860 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 59861 if test "x$test_shortpath" = x; then 59862 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 59863 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 59864 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_LIB_PATH" "$LINENO" 5 59865 fi 59866 59867 # Call helper function which possibly converts this using DOS-style short mode. 59868 # If so, the updated path is stored in $new_path. 59869 59870 input_path="$new_path" 59871 # Check if we need to convert this using DOS-style short mode. If the path 59872 # contains just simple characters, use it. Otherwise (spaces, weird characters), 59873 # take no chances and rewrite it. 59874 # Note: m4 eats our [], so we need to use [ and ] instead. 59875 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 59876 if test "x$has_forbidden_chars" != x; then 59877 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 59878 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 59879 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 59880 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 59881 # Going to short mode and back again did indeed matter. Since short mode is 59882 # case insensitive, let's make it lowercase to improve readability. 59883 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 59884 # Now convert it back to Unix-style (cygpath) 59885 input_path=`$CYGPATH -u "$shortmode_path"` 59886 new_path="$input_path" 59887 fi 59888 fi 59889 59890 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 59891 if test "x$test_cygdrive_prefix" = x; then 59892 # As a simple fix, exclude /usr/bin since it's not a real path. 59893 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 59894 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 59895 # a path prefixed by /cygdrive for fixpath to work. 59896 new_path="$CYGWIN_ROOT_PATH$input_path" 59897 fi 59898 fi 59899 59900 59901 if test "x$path" != "x$new_path"; then 59902 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 59903 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 59904 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 59905 fi 59906 59907 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 59908 59909 path="$POTENTIAL_FREETYPE_LIB_PATH" 59910 has_colon=`$ECHO $path | $GREP ^.:` 59911 new_path="$path" 59912 if test "x$has_colon" = x; then 59913 # Not in mixed or Windows style, start by that. 59914 new_path=`cmd //c echo $path` 59915 fi 59916 59917 59918 input_path="$new_path" 59919 # Check if we need to convert this using DOS-style short mode. If the path 59920 # contains just simple characters, use it. Otherwise (spaces, weird characters), 59921 # take no chances and rewrite it. 59922 # Note: m4 eats our [], so we need to use [ and ] instead. 59923 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 59924 if test "x$has_forbidden_chars" != x; then 59925 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 59926 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 59927 fi 59928 59929 59930 windows_path="$new_path" 59931 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 59932 unix_path=`$CYGPATH -u "$windows_path"` 59933 new_path="$unix_path" 59934 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 59935 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 59936 new_path="$unix_path" 59937 fi 59938 59939 if test "x$path" != "x$new_path"; then 59940 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 59941 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 59942 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 59943 fi 59944 59945 # Save the first 10 bytes of this path to the storage, so fixpath can work. 59946 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 59947 59948 else 59949 # We're on a unix platform. Hooray! :) 59950 path="$POTENTIAL_FREETYPE_LIB_PATH" 59951 has_space=`$ECHO "$path" | $GREP " "` 59952 if test "x$has_space" != x; then 59953 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 59954 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 59955 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 59956 fi 59957 59958 # Use eval to expand a potential ~ 59959 eval path="$path" 59960 if test ! -f "$path" && test ! -d "$path"; then 59961 as_fn_error $? "The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 59962 fi 59963 59964 if test -d "$path"; then 59965 POTENTIAL_FREETYPE_LIB_PATH="`cd "$path"; $THEPWDCMD -L`" 59966 else 59967 dir="`$DIRNAME "$path"`" 59968 base="`$BASENAME "$path"`" 59969 POTENTIAL_FREETYPE_LIB_PATH="`cd "$dir"; $THEPWDCMD -L`/$base" 59970 fi 59971 fi 59972 fi 59973 59974 59975 FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH" 59976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype includes" >&5 59977 $as_echo_n "checking for freetype includes... " >&6; } 59978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_INCLUDE_PATH" >&5 59979 $as_echo "$FREETYPE_INCLUDE_PATH" >&6; } 59980 FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH" 59981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype libraries" >&5 59982 $as_echo_n "checking for freetype libraries... " >&6; } 59983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_LIB_PATH" >&5 59984 $as_echo "$FREETYPE_LIB_PATH" >&6; } 59985 fi 59986 59987 fi 59988 fi 59989 fi 59990 else 59991 FREETYPE_BASE_DIR="$SYSROOT/usr" 59992 59993 POTENTIAL_FREETYPE_INCLUDE_PATH="$FREETYPE_BASE_DIR/include" 59994 POTENTIAL_FREETYPE_LIB_PATH="$FREETYPE_BASE_DIR/lib" 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 60329 if test "x$FOUND_FREETYPE" != xyes; then 60330 FREETYPE_BASE_DIR="$SYSROOT/usr/X11" 60331 60332 POTENTIAL_FREETYPE_INCLUDE_PATH="$FREETYPE_BASE_DIR/include" 60333 POTENTIAL_FREETYPE_LIB_PATH="$FREETYPE_BASE_DIR/lib" 60334 METHOD="well-known location" 60335 60336 # Let's start with an optimistic view of the world :-) 60337 FOUND_FREETYPE=yes 60338 60339 # First look for the canonical freetype main include file ft2build.h. 60340 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 60341 # Oh no! Let's try in the freetype2 directory. This is needed at least at Mac OS X Yosemite. 60342 POTENTIAL_FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH/freetype2" 60343 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 60344 # Fail. 60345 FOUND_FREETYPE=no 60346 fi 60347 fi 60348 60349 if test "x$FOUND_FREETYPE" = xyes; then 60350 # Include file found, let's continue the sanity check. 60351 { $as_echo "$as_me:${as_lineno-$LINENO}: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&5 60352 $as_echo "$as_me: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&6;} 60353 60354 # Reset to default value 60355 FREETYPE_BASE_NAME=freetype 60356 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 60357 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME"; then 60358 if test "x$OPENJDK_TARGET_OS" = xmacosx \ 60359 && test -s "$POTENTIAL_FREETYPE_LIB_PATH/${LIBRARY_PREFIX}freetype.6${SHARED_LIBRARY_SUFFIX}"; then 60360 # On Mac OS X Yosemite, the symlink from libfreetype.dylib to libfreetype.6.dylib disappeared. Check 60361 # for the .6 version explicitly. 60362 FREETYPE_BASE_NAME=freetype.6 60363 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 60364 { $as_echo "$as_me:${as_lineno-$LINENO}: Compensating for missing symlink by using version 6 explicitly" >&5 60365 $as_echo "$as_me: Compensating for missing symlink by using version 6 explicitly" >&6;} 60366 else 60367 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&5 60368 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&6;} 60369 FOUND_FREETYPE=no 60370 fi 60371 else 60372 if test "x$OPENJDK_TARGET_OS" = xwindows; then 60373 # On Windows, we will need both .lib and .dll file. 60374 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib"; then 60375 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&5 60376 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&6;} 60377 FOUND_FREETYPE=no 60378 fi 60379 elif test "x$OPENJDK_TARGET_OS" = xsolaris \ 60380 && test -s "$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR/$FREETYPE_LIB_NAME"; then 60381 # Found lib in isa dir, use that instead. 60382 POTENTIAL_FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR" 60383 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&5 60384 $as_echo "$as_me: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&6;} 60385 fi 60386 fi 60387 fi 60388 60389 if test "x$FOUND_FREETYPE" = xyes; then 60390 60391 # Only process if variable expands to non-empty 60392 60393 if test "x$POTENTIAL_FREETYPE_INCLUDE_PATH" != x; then 60394 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 60395 60396 # Input might be given as Windows format, start by converting to 60397 # unix format. 60398 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 60399 new_path=`$CYGPATH -u "$path"` 60400 60401 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 60402 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 60403 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 60404 # "foo.exe" is OK but "foo" is an error. 60405 # 60406 # This test is therefore slightly more accurate than "test -f" to check for file precense. 60407 # It is also a way to make sure we got the proper file name for the real test later on. 60408 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 60409 if test "x$test_shortpath" = x; then 60410 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 60411 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 60412 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_INCLUDE_PATH" "$LINENO" 5 60413 fi 60414 60415 # Call helper function which possibly converts this using DOS-style short mode. 60416 # If so, the updated path is stored in $new_path. 60417 60418 input_path="$new_path" 60419 # Check if we need to convert this using DOS-style short mode. If the path 60420 # contains just simple characters, use it. Otherwise (spaces, weird characters), 60421 # take no chances and rewrite it. 60422 # Note: m4 eats our [], so we need to use [ and ] instead. 60423 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 60424 if test "x$has_forbidden_chars" != x; then 60425 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 60426 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 60427 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 60428 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 60429 # Going to short mode and back again did indeed matter. Since short mode is 60430 # case insensitive, let's make it lowercase to improve readability. 60431 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 60432 # Now convert it back to Unix-style (cygpath) 60433 input_path=`$CYGPATH -u "$shortmode_path"` 60434 new_path="$input_path" 60435 fi 60436 fi 60437 60438 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 60439 if test "x$test_cygdrive_prefix" = x; then 60440 # As a simple fix, exclude /usr/bin since it's not a real path. 60441 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 60442 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 60443 # a path prefixed by /cygdrive for fixpath to work. 60444 new_path="$CYGWIN_ROOT_PATH$input_path" 60445 fi 60446 fi 60447 60448 60449 if test "x$path" != "x$new_path"; then 60450 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 60451 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 60452 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 60453 fi 60454 60455 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 60456 60457 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 60458 has_colon=`$ECHO $path | $GREP ^.:` 60459 new_path="$path" 60460 if test "x$has_colon" = x; then 60461 # Not in mixed or Windows style, start by that. 60462 new_path=`cmd //c echo $path` 60463 fi 60464 60465 60466 input_path="$new_path" 60467 # Check if we need to convert this using DOS-style short mode. If the path 60468 # contains just simple characters, use it. Otherwise (spaces, weird characters), 60469 # take no chances and rewrite it. 60470 # Note: m4 eats our [], so we need to use [ and ] instead. 60471 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 60472 if test "x$has_forbidden_chars" != x; then 60473 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 60474 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 60475 fi 60476 60477 60478 windows_path="$new_path" 60479 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 60480 unix_path=`$CYGPATH -u "$windows_path"` 60481 new_path="$unix_path" 60482 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 60483 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 60484 new_path="$unix_path" 60485 fi 60486 60487 if test "x$path" != "x$new_path"; then 60488 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 60489 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 60490 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 60491 fi 60492 60493 # Save the first 10 bytes of this path to the storage, so fixpath can work. 60494 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 60495 60496 else 60497 # We're on a unix platform. Hooray! :) 60498 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 60499 has_space=`$ECHO "$path" | $GREP " "` 60500 if test "x$has_space" != x; then 60501 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 60502 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 60503 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 60504 fi 60505 60506 # Use eval to expand a potential ~ 60507 eval path="$path" 60508 if test ! -f "$path" && test ! -d "$path"; then 60509 as_fn_error $? "The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 60510 fi 60511 60512 if test -d "$path"; then 60513 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$path"; $THEPWDCMD -L`" 60514 else 60515 dir="`$DIRNAME "$path"`" 60516 base="`$BASENAME "$path"`" 60517 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$dir"; $THEPWDCMD -L`/$base" 60518 fi 60519 fi 60520 fi 60521 60522 60523 # Only process if variable expands to non-empty 60524 60525 if test "x$POTENTIAL_FREETYPE_LIB_PATH" != x; then 60526 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 60527 60528 # Input might be given as Windows format, start by converting to 60529 # unix format. 60530 path="$POTENTIAL_FREETYPE_LIB_PATH" 60531 new_path=`$CYGPATH -u "$path"` 60532 60533 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 60534 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 60535 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 60536 # "foo.exe" is OK but "foo" is an error. 60537 # 60538 # This test is therefore slightly more accurate than "test -f" to check for file precense. 60539 # It is also a way to make sure we got the proper file name for the real test later on. 60540 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 60541 if test "x$test_shortpath" = x; then 60542 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 60543 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 60544 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_LIB_PATH" "$LINENO" 5 60545 fi 60546 60547 # Call helper function which possibly converts this using DOS-style short mode. 60548 # If so, the updated path is stored in $new_path. 60549 60550 input_path="$new_path" 60551 # Check if we need to convert this using DOS-style short mode. If the path 60552 # contains just simple characters, use it. Otherwise (spaces, weird characters), 60553 # take no chances and rewrite it. 60554 # Note: m4 eats our [], so we need to use [ and ] instead. 60555 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 60556 if test "x$has_forbidden_chars" != x; then 60557 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 60558 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 60559 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 60560 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 60561 # Going to short mode and back again did indeed matter. Since short mode is 60562 # case insensitive, let's make it lowercase to improve readability. 60563 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 60564 # Now convert it back to Unix-style (cygpath) 60565 input_path=`$CYGPATH -u "$shortmode_path"` 60566 new_path="$input_path" 60567 fi 60568 fi 60569 60570 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 60571 if test "x$test_cygdrive_prefix" = x; then 60572 # As a simple fix, exclude /usr/bin since it's not a real path. 60573 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 60574 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 60575 # a path prefixed by /cygdrive for fixpath to work. 60576 new_path="$CYGWIN_ROOT_PATH$input_path" 60577 fi 60578 fi 60579 60580 60581 if test "x$path" != "x$new_path"; then 60582 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 60583 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 60584 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 60585 fi 60586 60587 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 60588 60589 path="$POTENTIAL_FREETYPE_LIB_PATH" 60590 has_colon=`$ECHO $path | $GREP ^.:` 60591 new_path="$path" 60592 if test "x$has_colon" = x; then 60593 # Not in mixed or Windows style, start by that. 60594 new_path=`cmd //c echo $path` 60595 fi 60596 60597 60598 input_path="$new_path" 60599 # Check if we need to convert this using DOS-style short mode. If the path 60600 # contains just simple characters, use it. Otherwise (spaces, weird characters), 60601 # take no chances and rewrite it. 60602 # Note: m4 eats our [], so we need to use [ and ] instead. 60603 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 60604 if test "x$has_forbidden_chars" != x; then 60605 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 60606 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 60607 fi 60608 60609 60610 windows_path="$new_path" 60611 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 60612 unix_path=`$CYGPATH -u "$windows_path"` 60613 new_path="$unix_path" 60614 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 60615 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 60616 new_path="$unix_path" 60617 fi 60618 60619 if test "x$path" != "x$new_path"; then 60620 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 60621 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 60622 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 60623 fi 60624 60625 # Save the first 10 bytes of this path to the storage, so fixpath can work. 60626 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 60627 60628 else 60629 # We're on a unix platform. Hooray! :) 60630 path="$POTENTIAL_FREETYPE_LIB_PATH" 60631 has_space=`$ECHO "$path" | $GREP " "` 60632 if test "x$has_space" != x; then 60633 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 60634 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 60635 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 60636 fi 60637 60638 # Use eval to expand a potential ~ 60639 eval path="$path" 60640 if test ! -f "$path" && test ! -d "$path"; then 60641 as_fn_error $? "The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 60642 fi 60643 60644 if test -d "$path"; then 60645 POTENTIAL_FREETYPE_LIB_PATH="`cd "$path"; $THEPWDCMD -L`" 60646 else 60647 dir="`$DIRNAME "$path"`" 60648 base="`$BASENAME "$path"`" 60649 POTENTIAL_FREETYPE_LIB_PATH="`cd "$dir"; $THEPWDCMD -L`/$base" 60650 fi 60651 fi 60652 fi 60653 60654 60655 FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH" 60656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype includes" >&5 60657 $as_echo_n "checking for freetype includes... " >&6; } 60658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_INCLUDE_PATH" >&5 60659 $as_echo "$FREETYPE_INCLUDE_PATH" >&6; } 60660 FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH" 60661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype libraries" >&5 60662 $as_echo_n "checking for freetype libraries... " >&6; } 60663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_LIB_PATH" >&5 60664 $as_echo "$FREETYPE_LIB_PATH" >&6; } 60665 fi 60666 60667 fi 60668 60669 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 60670 if test "x$FOUND_FREETYPE" != xyes; then 60671 # Due to changes in OSX 10.11 XQuartz now installs to /opt/X11 60672 FREETYPE_BASE_DIR="$SYSROOT/opt/X11" 60673 60674 POTENTIAL_FREETYPE_INCLUDE_PATH="$FREETYPE_BASE_DIR/include" 60675 POTENTIAL_FREETYPE_LIB_PATH="$FREETYPE_BASE_DIR/lib" 60676 METHOD="well-known location" 60677 60678 # Let's start with an optimistic view of the world :-) 60679 FOUND_FREETYPE=yes 60680 60681 # First look for the canonical freetype main include file ft2build.h. 60682 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 60683 # Oh no! Let's try in the freetype2 directory. This is needed at least at Mac OS X Yosemite. 60684 POTENTIAL_FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH/freetype2" 60685 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 60686 # Fail. 60687 FOUND_FREETYPE=no 60688 fi 60689 fi 60690 60691 if test "x$FOUND_FREETYPE" = xyes; then 60692 # Include file found, let's continue the sanity check. 60693 { $as_echo "$as_me:${as_lineno-$LINENO}: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&5 60694 $as_echo "$as_me: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&6;} 60695 60696 # Reset to default value 60697 FREETYPE_BASE_NAME=freetype 60698 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 60699 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME"; then 60700 if test "x$OPENJDK_TARGET_OS" = xmacosx \ 60701 && test -s "$POTENTIAL_FREETYPE_LIB_PATH/${LIBRARY_PREFIX}freetype.6${SHARED_LIBRARY_SUFFIX}"; then 60702 # On Mac OS X Yosemite, the symlink from libfreetype.dylib to libfreetype.6.dylib disappeared. Check 60703 # for the .6 version explicitly. 60704 FREETYPE_BASE_NAME=freetype.6 60705 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 60706 { $as_echo "$as_me:${as_lineno-$LINENO}: Compensating for missing symlink by using version 6 explicitly" >&5 60707 $as_echo "$as_me: Compensating for missing symlink by using version 6 explicitly" >&6;} 60708 else 60709 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&5 60710 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&6;} 60711 FOUND_FREETYPE=no 60712 fi 60713 else 60714 if test "x$OPENJDK_TARGET_OS" = xwindows; then 60715 # On Windows, we will need both .lib and .dll file. 60716 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib"; then 60717 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&5 60718 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&6;} 60719 FOUND_FREETYPE=no 60720 fi 60721 elif test "x$OPENJDK_TARGET_OS" = xsolaris \ 60722 && test -s "$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR/$FREETYPE_LIB_NAME"; then 60723 # Found lib in isa dir, use that instead. 60724 POTENTIAL_FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR" 60725 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&5 60726 $as_echo "$as_me: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&6;} 60727 fi 60728 fi 60729 fi 60730 60731 if test "x$FOUND_FREETYPE" = xyes; then 60732 60733 # Only process if variable expands to non-empty 60734 60735 if test "x$POTENTIAL_FREETYPE_INCLUDE_PATH" != x; then 60736 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 60737 60738 # Input might be given as Windows format, start by converting to 60739 # unix format. 60740 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 60741 new_path=`$CYGPATH -u "$path"` 60742 60743 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 60744 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 60745 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 60746 # "foo.exe" is OK but "foo" is an error. 60747 # 60748 # This test is therefore slightly more accurate than "test -f" to check for file precense. 60749 # It is also a way to make sure we got the proper file name for the real test later on. 60750 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 60751 if test "x$test_shortpath" = x; then 60752 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 60753 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 60754 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_INCLUDE_PATH" "$LINENO" 5 60755 fi 60756 60757 # Call helper function which possibly converts this using DOS-style short mode. 60758 # If so, the updated path is stored in $new_path. 60759 60760 input_path="$new_path" 60761 # Check if we need to convert this using DOS-style short mode. If the path 60762 # contains just simple characters, use it. Otherwise (spaces, weird characters), 60763 # take no chances and rewrite it. 60764 # Note: m4 eats our [], so we need to use [ and ] instead. 60765 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 60766 if test "x$has_forbidden_chars" != x; then 60767 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 60768 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 60769 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 60770 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 60771 # Going to short mode and back again did indeed matter. Since short mode is 60772 # case insensitive, let's make it lowercase to improve readability. 60773 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 60774 # Now convert it back to Unix-style (cygpath) 60775 input_path=`$CYGPATH -u "$shortmode_path"` 60776 new_path="$input_path" 60777 fi 60778 fi 60779 60780 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 60781 if test "x$test_cygdrive_prefix" = x; then 60782 # As a simple fix, exclude /usr/bin since it's not a real path. 60783 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 60784 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 60785 # a path prefixed by /cygdrive for fixpath to work. 60786 new_path="$CYGWIN_ROOT_PATH$input_path" 60787 fi 60788 fi 60789 60790 60791 if test "x$path" != "x$new_path"; then 60792 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 60793 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 60794 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 60795 fi 60796 60797 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 60798 60799 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 60800 has_colon=`$ECHO $path | $GREP ^.:` 60801 new_path="$path" 60802 if test "x$has_colon" = x; then 60803 # Not in mixed or Windows style, start by that. 60804 new_path=`cmd //c echo $path` 60805 fi 60806 60807 60808 input_path="$new_path" 60809 # Check if we need to convert this using DOS-style short mode. If the path 60810 # contains just simple characters, use it. Otherwise (spaces, weird characters), 60811 # take no chances and rewrite it. 60812 # Note: m4 eats our [], so we need to use [ and ] instead. 60813 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 60814 if test "x$has_forbidden_chars" != x; then 60815 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 60816 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 60817 fi 60818 60819 60820 windows_path="$new_path" 60821 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 60822 unix_path=`$CYGPATH -u "$windows_path"` 60823 new_path="$unix_path" 60824 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 60825 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 60826 new_path="$unix_path" 60827 fi 60828 60829 if test "x$path" != "x$new_path"; then 60830 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 60831 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 60832 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 60833 fi 60834 60835 # Save the first 10 bytes of this path to the storage, so fixpath can work. 60836 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 60837 60838 else 60839 # We're on a unix platform. Hooray! :) 60840 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 60841 has_space=`$ECHO "$path" | $GREP " "` 60842 if test "x$has_space" != x; then 60843 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 60844 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 60845 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 60846 fi 60847 60848 # Use eval to expand a potential ~ 60849 eval path="$path" 60850 if test ! -f "$path" && test ! -d "$path"; then 60851 as_fn_error $? "The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 60852 fi 60853 60854 if test -d "$path"; then 60855 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$path"; $THEPWDCMD -L`" 60856 else 60857 dir="`$DIRNAME "$path"`" 60858 base="`$BASENAME "$path"`" 60859 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$dir"; $THEPWDCMD -L`/$base" 60860 fi 60861 fi 60862 fi 60863 60864 60865 # Only process if variable expands to non-empty 60866 60867 if test "x$POTENTIAL_FREETYPE_LIB_PATH" != x; then 60868 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 60869 60870 # Input might be given as Windows format, start by converting to 60871 # unix format. 60872 path="$POTENTIAL_FREETYPE_LIB_PATH" 60873 new_path=`$CYGPATH -u "$path"` 60874 60875 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 60876 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 60877 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 60878 # "foo.exe" is OK but "foo" is an error. 60879 # 60880 # This test is therefore slightly more accurate than "test -f" to check for file precense. 60881 # It is also a way to make sure we got the proper file name for the real test later on. 60882 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 60883 if test "x$test_shortpath" = x; then 60884 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 60885 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 60886 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_LIB_PATH" "$LINENO" 5 60887 fi 60888 60889 # Call helper function which possibly converts this using DOS-style short mode. 60890 # If so, the updated path is stored in $new_path. 60891 60892 input_path="$new_path" 60893 # Check if we need to convert this using DOS-style short mode. If the path 60894 # contains just simple characters, use it. Otherwise (spaces, weird characters), 60895 # take no chances and rewrite it. 60896 # Note: m4 eats our [], so we need to use [ and ] instead. 60897 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 60898 if test "x$has_forbidden_chars" != x; then 60899 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 60900 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 60901 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 60902 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 60903 # Going to short mode and back again did indeed matter. Since short mode is 60904 # case insensitive, let's make it lowercase to improve readability. 60905 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 60906 # Now convert it back to Unix-style (cygpath) 60907 input_path=`$CYGPATH -u "$shortmode_path"` 60908 new_path="$input_path" 60909 fi 60910 fi 60911 60912 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 60913 if test "x$test_cygdrive_prefix" = x; then 60914 # As a simple fix, exclude /usr/bin since it's not a real path. 60915 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 60916 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 60917 # a path prefixed by /cygdrive for fixpath to work. 60918 new_path="$CYGWIN_ROOT_PATH$input_path" 60919 fi 60920 fi 60921 60922 60923 if test "x$path" != "x$new_path"; then 60924 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 60925 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 60926 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 60927 fi 60928 60929 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 60930 60931 path="$POTENTIAL_FREETYPE_LIB_PATH" 60932 has_colon=`$ECHO $path | $GREP ^.:` 60933 new_path="$path" 60934 if test "x$has_colon" = x; then 60935 # Not in mixed or Windows style, start by that. 60936 new_path=`cmd //c echo $path` 60937 fi 60938 60939 60940 input_path="$new_path" 60941 # Check if we need to convert this using DOS-style short mode. If the path 60942 # contains just simple characters, use it. Otherwise (spaces, weird characters), 60943 # take no chances and rewrite it. 60944 # Note: m4 eats our [], so we need to use [ and ] instead. 60945 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 60946 if test "x$has_forbidden_chars" != x; then 60947 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 60948 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 60949 fi 60950 60951 60952 windows_path="$new_path" 60953 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 60954 unix_path=`$CYGPATH -u "$windows_path"` 60955 new_path="$unix_path" 60956 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 60957 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 60958 new_path="$unix_path" 60959 fi 60960 60961 if test "x$path" != "x$new_path"; then 60962 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 60963 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 60964 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 60965 fi 60966 60967 # Save the first 10 bytes of this path to the storage, so fixpath can work. 60968 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 60969 60970 else 60971 # We're on a unix platform. Hooray! :) 60972 path="$POTENTIAL_FREETYPE_LIB_PATH" 60973 has_space=`$ECHO "$path" | $GREP " "` 60974 if test "x$has_space" != x; then 60975 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 60976 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 60977 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 60978 fi 60979 60980 # Use eval to expand a potential ~ 60981 eval path="$path" 60982 if test ! -f "$path" && test ! -d "$path"; then 60983 as_fn_error $? "The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 60984 fi 60985 60986 if test -d "$path"; then 60987 POTENTIAL_FREETYPE_LIB_PATH="`cd "$path"; $THEPWDCMD -L`" 60988 else 60989 dir="`$DIRNAME "$path"`" 60990 base="`$BASENAME "$path"`" 60991 POTENTIAL_FREETYPE_LIB_PATH="`cd "$dir"; $THEPWDCMD -L`/$base" 60992 fi 60993 fi 60994 fi 60995 60996 60997 FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH" 60998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype includes" >&5 60999 $as_echo_n "checking for freetype includes... " >&6; } 61000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_INCLUDE_PATH" >&5 61001 $as_echo "$FREETYPE_INCLUDE_PATH" >&6; } 61002 FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH" 61003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype libraries" >&5 61004 $as_echo_n "checking for freetype libraries... " >&6; } 61005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_LIB_PATH" >&5 61006 $as_echo "$FREETYPE_LIB_PATH" >&6; } 61007 fi 61008 61009 fi 61010 fi 61011 61012 if test "x$FOUND_FREETYPE" != xyes; then 61013 FREETYPE_BASE_DIR="$SYSROOT/usr" 61014 if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then 61015 61016 POTENTIAL_FREETYPE_INCLUDE_PATH="$FREETYPE_BASE_DIR/include" 61017 POTENTIAL_FREETYPE_LIB_PATH="$FREETYPE_BASE_DIR/lib/x86_64-linux-gnu" 61018 METHOD="well-known location" 61019 61020 # Let's start with an optimistic view of the world :-) 61021 FOUND_FREETYPE=yes 61022 61023 # First look for the canonical freetype main include file ft2build.h. 61024 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 61025 # Oh no! Let's try in the freetype2 directory. This is needed at least at Mac OS X Yosemite. 61026 POTENTIAL_FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH/freetype2" 61027 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 61028 # Fail. 61029 FOUND_FREETYPE=no 61030 fi 61031 fi 61032 61033 if test "x$FOUND_FREETYPE" = xyes; then 61034 # Include file found, let's continue the sanity check. 61035 { $as_echo "$as_me:${as_lineno-$LINENO}: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&5 61036 $as_echo "$as_me: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&6;} 61037 61038 # Reset to default value 61039 FREETYPE_BASE_NAME=freetype 61040 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 61041 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME"; then 61042 if test "x$OPENJDK_TARGET_OS" = xmacosx \ 61043 && test -s "$POTENTIAL_FREETYPE_LIB_PATH/${LIBRARY_PREFIX}freetype.6${SHARED_LIBRARY_SUFFIX}"; then 61044 # On Mac OS X Yosemite, the symlink from libfreetype.dylib to libfreetype.6.dylib disappeared. Check 61045 # for the .6 version explicitly. 61046 FREETYPE_BASE_NAME=freetype.6 61047 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 61048 { $as_echo "$as_me:${as_lineno-$LINENO}: Compensating for missing symlink by using version 6 explicitly" >&5 61049 $as_echo "$as_me: Compensating for missing symlink by using version 6 explicitly" >&6;} 61050 else 61051 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&5 61052 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&6;} 61053 FOUND_FREETYPE=no 61054 fi 61055 else 61056 if test "x$OPENJDK_TARGET_OS" = xwindows; then 61057 # On Windows, we will need both .lib and .dll file. 61058 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib"; then 61059 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&5 61060 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&6;} 61061 FOUND_FREETYPE=no 61062 fi 61063 elif test "x$OPENJDK_TARGET_OS" = xsolaris \ 61064 && test -s "$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR/$FREETYPE_LIB_NAME"; then 61065 # Found lib in isa dir, use that instead. 61066 POTENTIAL_FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR" 61067 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&5 61068 $as_echo "$as_me: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&6;} 61069 fi 61070 fi 61071 fi 61072 61073 if test "x$FOUND_FREETYPE" = xyes; then 61074 61075 # Only process if variable expands to non-empty 61076 61077 if test "x$POTENTIAL_FREETYPE_INCLUDE_PATH" != x; then 61078 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 61079 61080 # Input might be given as Windows format, start by converting to 61081 # unix format. 61082 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 61083 new_path=`$CYGPATH -u "$path"` 61084 61085 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 61086 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 61087 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 61088 # "foo.exe" is OK but "foo" is an error. 61089 # 61090 # This test is therefore slightly more accurate than "test -f" to check for file precense. 61091 # It is also a way to make sure we got the proper file name for the real test later on. 61092 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 61093 if test "x$test_shortpath" = x; then 61094 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 61095 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 61096 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_INCLUDE_PATH" "$LINENO" 5 61097 fi 61098 61099 # Call helper function which possibly converts this using DOS-style short mode. 61100 # If so, the updated path is stored in $new_path. 61101 61102 input_path="$new_path" 61103 # Check if we need to convert this using DOS-style short mode. If the path 61104 # contains just simple characters, use it. Otherwise (spaces, weird characters), 61105 # take no chances and rewrite it. 61106 # Note: m4 eats our [], so we need to use [ and ] instead. 61107 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 61108 if test "x$has_forbidden_chars" != x; then 61109 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 61110 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 61111 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 61112 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 61113 # Going to short mode and back again did indeed matter. Since short mode is 61114 # case insensitive, let's make it lowercase to improve readability. 61115 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 61116 # Now convert it back to Unix-style (cygpath) 61117 input_path=`$CYGPATH -u "$shortmode_path"` 61118 new_path="$input_path" 61119 fi 61120 fi 61121 61122 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 61123 if test "x$test_cygdrive_prefix" = x; then 61124 # As a simple fix, exclude /usr/bin since it's not a real path. 61125 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 61126 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 61127 # a path prefixed by /cygdrive for fixpath to work. 61128 new_path="$CYGWIN_ROOT_PATH$input_path" 61129 fi 61130 fi 61131 61132 61133 if test "x$path" != "x$new_path"; then 61134 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 61135 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 61136 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 61137 fi 61138 61139 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 61140 61141 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 61142 has_colon=`$ECHO $path | $GREP ^.:` 61143 new_path="$path" 61144 if test "x$has_colon" = x; then 61145 # Not in mixed or Windows style, start by that. 61146 new_path=`cmd //c echo $path` 61147 fi 61148 61149 61150 input_path="$new_path" 61151 # Check if we need to convert this using DOS-style short mode. If the path 61152 # contains just simple characters, use it. Otherwise (spaces, weird characters), 61153 # take no chances and rewrite it. 61154 # Note: m4 eats our [], so we need to use [ and ] instead. 61155 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 61156 if test "x$has_forbidden_chars" != x; then 61157 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 61158 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 61159 fi 61160 61161 61162 windows_path="$new_path" 61163 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 61164 unix_path=`$CYGPATH -u "$windows_path"` 61165 new_path="$unix_path" 61166 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 61167 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 61168 new_path="$unix_path" 61169 fi 61170 61171 if test "x$path" != "x$new_path"; then 61172 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 61173 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 61174 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 61175 fi 61176 61177 # Save the first 10 bytes of this path to the storage, so fixpath can work. 61178 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 61179 61180 else 61181 # We're on a unix platform. Hooray! :) 61182 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 61183 has_space=`$ECHO "$path" | $GREP " "` 61184 if test "x$has_space" != x; then 61185 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 61186 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 61187 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 61188 fi 61189 61190 # Use eval to expand a potential ~ 61191 eval path="$path" 61192 if test ! -f "$path" && test ! -d "$path"; then 61193 as_fn_error $? "The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 61194 fi 61195 61196 if test -d "$path"; then 61197 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$path"; $THEPWDCMD -L`" 61198 else 61199 dir="`$DIRNAME "$path"`" 61200 base="`$BASENAME "$path"`" 61201 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$dir"; $THEPWDCMD -L`/$base" 61202 fi 61203 fi 61204 fi 61205 61206 61207 # Only process if variable expands to non-empty 61208 61209 if test "x$POTENTIAL_FREETYPE_LIB_PATH" != x; then 61210 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 61211 61212 # Input might be given as Windows format, start by converting to 61213 # unix format. 61214 path="$POTENTIAL_FREETYPE_LIB_PATH" 61215 new_path=`$CYGPATH -u "$path"` 61216 61217 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 61218 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 61219 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 61220 # "foo.exe" is OK but "foo" is an error. 61221 # 61222 # This test is therefore slightly more accurate than "test -f" to check for file precense. 61223 # It is also a way to make sure we got the proper file name for the real test later on. 61224 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 61225 if test "x$test_shortpath" = x; then 61226 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 61227 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 61228 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_LIB_PATH" "$LINENO" 5 61229 fi 61230 61231 # Call helper function which possibly converts this using DOS-style short mode. 61232 # If so, the updated path is stored in $new_path. 61233 61234 input_path="$new_path" 61235 # Check if we need to convert this using DOS-style short mode. If the path 61236 # contains just simple characters, use it. Otherwise (spaces, weird characters), 61237 # take no chances and rewrite it. 61238 # Note: m4 eats our [], so we need to use [ and ] instead. 61239 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 61240 if test "x$has_forbidden_chars" != x; then 61241 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 61242 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 61243 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 61244 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 61245 # Going to short mode and back again did indeed matter. Since short mode is 61246 # case insensitive, let's make it lowercase to improve readability. 61247 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 61248 # Now convert it back to Unix-style (cygpath) 61249 input_path=`$CYGPATH -u "$shortmode_path"` 61250 new_path="$input_path" 61251 fi 61252 fi 61253 61254 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 61255 if test "x$test_cygdrive_prefix" = x; then 61256 # As a simple fix, exclude /usr/bin since it's not a real path. 61257 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 61258 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 61259 # a path prefixed by /cygdrive for fixpath to work. 61260 new_path="$CYGWIN_ROOT_PATH$input_path" 61261 fi 61262 fi 61263 61264 61265 if test "x$path" != "x$new_path"; then 61266 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 61267 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 61268 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 61269 fi 61270 61271 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 61272 61273 path="$POTENTIAL_FREETYPE_LIB_PATH" 61274 has_colon=`$ECHO $path | $GREP ^.:` 61275 new_path="$path" 61276 if test "x$has_colon" = x; then 61277 # Not in mixed or Windows style, start by that. 61278 new_path=`cmd //c echo $path` 61279 fi 61280 61281 61282 input_path="$new_path" 61283 # Check if we need to convert this using DOS-style short mode. If the path 61284 # contains just simple characters, use it. Otherwise (spaces, weird characters), 61285 # take no chances and rewrite it. 61286 # Note: m4 eats our [], so we need to use [ and ] instead. 61287 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 61288 if test "x$has_forbidden_chars" != x; then 61289 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 61290 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 61291 fi 61292 61293 61294 windows_path="$new_path" 61295 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 61296 unix_path=`$CYGPATH -u "$windows_path"` 61297 new_path="$unix_path" 61298 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 61299 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 61300 new_path="$unix_path" 61301 fi 61302 61303 if test "x$path" != "x$new_path"; then 61304 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 61305 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 61306 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 61307 fi 61308 61309 # Save the first 10 bytes of this path to the storage, so fixpath can work. 61310 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 61311 61312 else 61313 # We're on a unix platform. Hooray! :) 61314 path="$POTENTIAL_FREETYPE_LIB_PATH" 61315 has_space=`$ECHO "$path" | $GREP " "` 61316 if test "x$has_space" != x; then 61317 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 61318 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 61319 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 61320 fi 61321 61322 # Use eval to expand a potential ~ 61323 eval path="$path" 61324 if test ! -f "$path" && test ! -d "$path"; then 61325 as_fn_error $? "The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 61326 fi 61327 61328 if test -d "$path"; then 61329 POTENTIAL_FREETYPE_LIB_PATH="`cd "$path"; $THEPWDCMD -L`" 61330 else 61331 dir="`$DIRNAME "$path"`" 61332 base="`$BASENAME "$path"`" 61333 POTENTIAL_FREETYPE_LIB_PATH="`cd "$dir"; $THEPWDCMD -L`/$base" 61334 fi 61335 fi 61336 fi 61337 61338 61339 FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH" 61340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype includes" >&5 61341 $as_echo_n "checking for freetype includes... " >&6; } 61342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_INCLUDE_PATH" >&5 61343 $as_echo "$FREETYPE_INCLUDE_PATH" >&6; } 61344 FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH" 61345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype libraries" >&5 61346 $as_echo_n "checking for freetype libraries... " >&6; } 61347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_LIB_PATH" >&5 61348 $as_echo "$FREETYPE_LIB_PATH" >&6; } 61349 fi 61350 61351 else 61352 61353 POTENTIAL_FREETYPE_INCLUDE_PATH="$FREETYPE_BASE_DIR/include" 61354 POTENTIAL_FREETYPE_LIB_PATH="$FREETYPE_BASE_DIR/lib/i386-linux-gnu" 61355 METHOD="well-known location" 61356 61357 # Let's start with an optimistic view of the world :-) 61358 FOUND_FREETYPE=yes 61359 61360 # First look for the canonical freetype main include file ft2build.h. 61361 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 61362 # Oh no! Let's try in the freetype2 directory. This is needed at least at Mac OS X Yosemite. 61363 POTENTIAL_FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH/freetype2" 61364 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 61365 # Fail. 61366 FOUND_FREETYPE=no 61367 fi 61368 fi 61369 61370 if test "x$FOUND_FREETYPE" = xyes; then 61371 # Include file found, let's continue the sanity check. 61372 { $as_echo "$as_me:${as_lineno-$LINENO}: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&5 61373 $as_echo "$as_me: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&6;} 61374 61375 # Reset to default value 61376 FREETYPE_BASE_NAME=freetype 61377 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 61378 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME"; then 61379 if test "x$OPENJDK_TARGET_OS" = xmacosx \ 61380 && test -s "$POTENTIAL_FREETYPE_LIB_PATH/${LIBRARY_PREFIX}freetype.6${SHARED_LIBRARY_SUFFIX}"; then 61381 # On Mac OS X Yosemite, the symlink from libfreetype.dylib to libfreetype.6.dylib disappeared. Check 61382 # for the .6 version explicitly. 61383 FREETYPE_BASE_NAME=freetype.6 61384 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 61385 { $as_echo "$as_me:${as_lineno-$LINENO}: Compensating for missing symlink by using version 6 explicitly" >&5 61386 $as_echo "$as_me: Compensating for missing symlink by using version 6 explicitly" >&6;} 61387 else 61388 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&5 61389 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&6;} 61390 FOUND_FREETYPE=no 61391 fi 61392 else 61393 if test "x$OPENJDK_TARGET_OS" = xwindows; then 61394 # On Windows, we will need both .lib and .dll file. 61395 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib"; then 61396 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&5 61397 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&6;} 61398 FOUND_FREETYPE=no 61399 fi 61400 elif test "x$OPENJDK_TARGET_OS" = xsolaris \ 61401 && test -s "$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR/$FREETYPE_LIB_NAME"; then 61402 # Found lib in isa dir, use that instead. 61403 POTENTIAL_FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR" 61404 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&5 61405 $as_echo "$as_me: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&6;} 61406 fi 61407 fi 61408 fi 61409 61410 if test "x$FOUND_FREETYPE" = xyes; then 61411 61412 # Only process if variable expands to non-empty 61413 61414 if test "x$POTENTIAL_FREETYPE_INCLUDE_PATH" != x; then 61415 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 61416 61417 # Input might be given as Windows format, start by converting to 61418 # unix format. 61419 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 61420 new_path=`$CYGPATH -u "$path"` 61421 61422 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 61423 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 61424 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 61425 # "foo.exe" is OK but "foo" is an error. 61426 # 61427 # This test is therefore slightly more accurate than "test -f" to check for file precense. 61428 # It is also a way to make sure we got the proper file name for the real test later on. 61429 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 61430 if test "x$test_shortpath" = x; then 61431 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 61432 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 61433 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_INCLUDE_PATH" "$LINENO" 5 61434 fi 61435 61436 # Call helper function which possibly converts this using DOS-style short mode. 61437 # If so, the updated path is stored in $new_path. 61438 61439 input_path="$new_path" 61440 # Check if we need to convert this using DOS-style short mode. If the path 61441 # contains just simple characters, use it. Otherwise (spaces, weird characters), 61442 # take no chances and rewrite it. 61443 # Note: m4 eats our [], so we need to use [ and ] instead. 61444 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 61445 if test "x$has_forbidden_chars" != x; then 61446 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 61447 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 61448 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 61449 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 61450 # Going to short mode and back again did indeed matter. Since short mode is 61451 # case insensitive, let's make it lowercase to improve readability. 61452 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 61453 # Now convert it back to Unix-style (cygpath) 61454 input_path=`$CYGPATH -u "$shortmode_path"` 61455 new_path="$input_path" 61456 fi 61457 fi 61458 61459 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 61460 if test "x$test_cygdrive_prefix" = x; then 61461 # As a simple fix, exclude /usr/bin since it's not a real path. 61462 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 61463 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 61464 # a path prefixed by /cygdrive for fixpath to work. 61465 new_path="$CYGWIN_ROOT_PATH$input_path" 61466 fi 61467 fi 61468 61469 61470 if test "x$path" != "x$new_path"; then 61471 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 61472 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 61473 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 61474 fi 61475 61476 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 61477 61478 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 61479 has_colon=`$ECHO $path | $GREP ^.:` 61480 new_path="$path" 61481 if test "x$has_colon" = x; then 61482 # Not in mixed or Windows style, start by that. 61483 new_path=`cmd //c echo $path` 61484 fi 61485 61486 61487 input_path="$new_path" 61488 # Check if we need to convert this using DOS-style short mode. If the path 61489 # contains just simple characters, use it. Otherwise (spaces, weird characters), 61490 # take no chances and rewrite it. 61491 # Note: m4 eats our [], so we need to use [ and ] instead. 61492 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 61493 if test "x$has_forbidden_chars" != x; then 61494 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 61495 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 61496 fi 61497 61498 61499 windows_path="$new_path" 61500 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 61501 unix_path=`$CYGPATH -u "$windows_path"` 61502 new_path="$unix_path" 61503 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 61504 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 61505 new_path="$unix_path" 61506 fi 61507 61508 if test "x$path" != "x$new_path"; then 61509 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 61510 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 61511 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 61512 fi 61513 61514 # Save the first 10 bytes of this path to the storage, so fixpath can work. 61515 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 61516 61517 else 61518 # We're on a unix platform. Hooray! :) 61519 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 61520 has_space=`$ECHO "$path" | $GREP " "` 61521 if test "x$has_space" != x; then 61522 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 61523 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 61524 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 61525 fi 61526 61527 # Use eval to expand a potential ~ 61528 eval path="$path" 61529 if test ! -f "$path" && test ! -d "$path"; then 61530 as_fn_error $? "The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 61531 fi 61532 61533 if test -d "$path"; then 61534 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$path"; $THEPWDCMD -L`" 61535 else 61536 dir="`$DIRNAME "$path"`" 61537 base="`$BASENAME "$path"`" 61538 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$dir"; $THEPWDCMD -L`/$base" 61539 fi 61540 fi 61541 fi 61542 61543 61544 # Only process if variable expands to non-empty 61545 61546 if test "x$POTENTIAL_FREETYPE_LIB_PATH" != x; then 61547 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 61548 61549 # Input might be given as Windows format, start by converting to 61550 # unix format. 61551 path="$POTENTIAL_FREETYPE_LIB_PATH" 61552 new_path=`$CYGPATH -u "$path"` 61553 61554 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 61555 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 61556 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 61557 # "foo.exe" is OK but "foo" is an error. 61558 # 61559 # This test is therefore slightly more accurate than "test -f" to check for file precense. 61560 # It is also a way to make sure we got the proper file name for the real test later on. 61561 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 61562 if test "x$test_shortpath" = x; then 61563 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 61564 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 61565 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_LIB_PATH" "$LINENO" 5 61566 fi 61567 61568 # Call helper function which possibly converts this using DOS-style short mode. 61569 # If so, the updated path is stored in $new_path. 61570 61571 input_path="$new_path" 61572 # Check if we need to convert this using DOS-style short mode. If the path 61573 # contains just simple characters, use it. Otherwise (spaces, weird characters), 61574 # take no chances and rewrite it. 61575 # Note: m4 eats our [], so we need to use [ and ] instead. 61576 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 61577 if test "x$has_forbidden_chars" != x; then 61578 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 61579 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 61580 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 61581 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 61582 # Going to short mode and back again did indeed matter. Since short mode is 61583 # case insensitive, let's make it lowercase to improve readability. 61584 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 61585 # Now convert it back to Unix-style (cygpath) 61586 input_path=`$CYGPATH -u "$shortmode_path"` 61587 new_path="$input_path" 61588 fi 61589 fi 61590 61591 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 61592 if test "x$test_cygdrive_prefix" = x; then 61593 # As a simple fix, exclude /usr/bin since it's not a real path. 61594 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 61595 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 61596 # a path prefixed by /cygdrive for fixpath to work. 61597 new_path="$CYGWIN_ROOT_PATH$input_path" 61598 fi 61599 fi 61600 61601 61602 if test "x$path" != "x$new_path"; then 61603 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 61604 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 61605 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 61606 fi 61607 61608 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 61609 61610 path="$POTENTIAL_FREETYPE_LIB_PATH" 61611 has_colon=`$ECHO $path | $GREP ^.:` 61612 new_path="$path" 61613 if test "x$has_colon" = x; then 61614 # Not in mixed or Windows style, start by that. 61615 new_path=`cmd //c echo $path` 61616 fi 61617 61618 61619 input_path="$new_path" 61620 # Check if we need to convert this using DOS-style short mode. If the path 61621 # contains just simple characters, use it. Otherwise (spaces, weird characters), 61622 # take no chances and rewrite it. 61623 # Note: m4 eats our [], so we need to use [ and ] instead. 61624 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 61625 if test "x$has_forbidden_chars" != x; then 61626 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 61627 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 61628 fi 61629 61630 61631 windows_path="$new_path" 61632 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 61633 unix_path=`$CYGPATH -u "$windows_path"` 61634 new_path="$unix_path" 61635 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 61636 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 61637 new_path="$unix_path" 61638 fi 61639 61640 if test "x$path" != "x$new_path"; then 61641 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 61642 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 61643 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 61644 fi 61645 61646 # Save the first 10 bytes of this path to the storage, so fixpath can work. 61647 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 61648 61649 else 61650 # We're on a unix platform. Hooray! :) 61651 path="$POTENTIAL_FREETYPE_LIB_PATH" 61652 has_space=`$ECHO "$path" | $GREP " "` 61653 if test "x$has_space" != x; then 61654 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 61655 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 61656 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 61657 fi 61658 61659 # Use eval to expand a potential ~ 61660 eval path="$path" 61661 if test ! -f "$path" && test ! -d "$path"; then 61662 as_fn_error $? "The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 61663 fi 61664 61665 if test -d "$path"; then 61666 POTENTIAL_FREETYPE_LIB_PATH="`cd "$path"; $THEPWDCMD -L`" 61667 else 61668 dir="`$DIRNAME "$path"`" 61669 base="`$BASENAME "$path"`" 61670 POTENTIAL_FREETYPE_LIB_PATH="`cd "$dir"; $THEPWDCMD -L`/$base" 61671 fi 61672 fi 61673 fi 61674 61675 61676 FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH" 61677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype includes" >&5 61678 $as_echo_n "checking for freetype includes... " >&6; } 61679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_INCLUDE_PATH" >&5 61680 $as_echo "$FREETYPE_INCLUDE_PATH" >&6; } 61681 FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH" 61682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype libraries" >&5 61683 $as_echo_n "checking for freetype libraries... " >&6; } 61684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_LIB_PATH" >&5 61685 $as_echo "$FREETYPE_LIB_PATH" >&6; } 61686 fi 61687 61688 if test "x$FOUND_FREETYPE" != xyes; then 61689 61690 POTENTIAL_FREETYPE_INCLUDE_PATH="$FREETYPE_BASE_DIR/include" 61691 POTENTIAL_FREETYPE_LIB_PATH="$FREETYPE_BASE_DIR/lib32" 61692 METHOD="well-known location" 61693 61694 # Let's start with an optimistic view of the world :-) 61695 FOUND_FREETYPE=yes 61696 61697 # First look for the canonical freetype main include file ft2build.h. 61698 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 61699 # Oh no! Let's try in the freetype2 directory. This is needed at least at Mac OS X Yosemite. 61700 POTENTIAL_FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH/freetype2" 61701 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 61702 # Fail. 61703 FOUND_FREETYPE=no 61704 fi 61705 fi 61706 61707 if test "x$FOUND_FREETYPE" = xyes; then 61708 # Include file found, let's continue the sanity check. 61709 { $as_echo "$as_me:${as_lineno-$LINENO}: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&5 61710 $as_echo "$as_me: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&6;} 61711 61712 # Reset to default value 61713 FREETYPE_BASE_NAME=freetype 61714 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 61715 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME"; then 61716 if test "x$OPENJDK_TARGET_OS" = xmacosx \ 61717 && test -s "$POTENTIAL_FREETYPE_LIB_PATH/${LIBRARY_PREFIX}freetype.6${SHARED_LIBRARY_SUFFIX}"; then 61718 # On Mac OS X Yosemite, the symlink from libfreetype.dylib to libfreetype.6.dylib disappeared. Check 61719 # for the .6 version explicitly. 61720 FREETYPE_BASE_NAME=freetype.6 61721 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 61722 { $as_echo "$as_me:${as_lineno-$LINENO}: Compensating for missing symlink by using version 6 explicitly" >&5 61723 $as_echo "$as_me: Compensating for missing symlink by using version 6 explicitly" >&6;} 61724 else 61725 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&5 61726 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&6;} 61727 FOUND_FREETYPE=no 61728 fi 61729 else 61730 if test "x$OPENJDK_TARGET_OS" = xwindows; then 61731 # On Windows, we will need both .lib and .dll file. 61732 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib"; then 61733 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&5 61734 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&6;} 61735 FOUND_FREETYPE=no 61736 fi 61737 elif test "x$OPENJDK_TARGET_OS" = xsolaris \ 61738 && test -s "$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR/$FREETYPE_LIB_NAME"; then 61739 # Found lib in isa dir, use that instead. 61740 POTENTIAL_FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR" 61741 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&5 61742 $as_echo "$as_me: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&6;} 61743 fi 61744 fi 61745 fi 61746 61747 if test "x$FOUND_FREETYPE" = xyes; then 61748 61749 # Only process if variable expands to non-empty 61750 61751 if test "x$POTENTIAL_FREETYPE_INCLUDE_PATH" != x; then 61752 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 61753 61754 # Input might be given as Windows format, start by converting to 61755 # unix format. 61756 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 61757 new_path=`$CYGPATH -u "$path"` 61758 61759 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 61760 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 61761 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 61762 # "foo.exe" is OK but "foo" is an error. 61763 # 61764 # This test is therefore slightly more accurate than "test -f" to check for file precense. 61765 # It is also a way to make sure we got the proper file name for the real test later on. 61766 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 61767 if test "x$test_shortpath" = x; then 61768 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 61769 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 61770 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_INCLUDE_PATH" "$LINENO" 5 61771 fi 61772 61773 # Call helper function which possibly converts this using DOS-style short mode. 61774 # If so, the updated path is stored in $new_path. 61775 61776 input_path="$new_path" 61777 # Check if we need to convert this using DOS-style short mode. If the path 61778 # contains just simple characters, use it. Otherwise (spaces, weird characters), 61779 # take no chances and rewrite it. 61780 # Note: m4 eats our [], so we need to use [ and ] instead. 61781 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 61782 if test "x$has_forbidden_chars" != x; then 61783 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 61784 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 61785 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 61786 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 61787 # Going to short mode and back again did indeed matter. Since short mode is 61788 # case insensitive, let's make it lowercase to improve readability. 61789 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 61790 # Now convert it back to Unix-style (cygpath) 61791 input_path=`$CYGPATH -u "$shortmode_path"` 61792 new_path="$input_path" 61793 fi 61794 fi 61795 61796 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 61797 if test "x$test_cygdrive_prefix" = x; then 61798 # As a simple fix, exclude /usr/bin since it's not a real path. 61799 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 61800 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 61801 # a path prefixed by /cygdrive for fixpath to work. 61802 new_path="$CYGWIN_ROOT_PATH$input_path" 61803 fi 61804 fi 61805 61806 61807 if test "x$path" != "x$new_path"; then 61808 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 61809 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 61810 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 61811 fi 61812 61813 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 61814 61815 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 61816 has_colon=`$ECHO $path | $GREP ^.:` 61817 new_path="$path" 61818 if test "x$has_colon" = x; then 61819 # Not in mixed or Windows style, start by that. 61820 new_path=`cmd //c echo $path` 61821 fi 61822 61823 61824 input_path="$new_path" 61825 # Check if we need to convert this using DOS-style short mode. If the path 61826 # contains just simple characters, use it. Otherwise (spaces, weird characters), 61827 # take no chances and rewrite it. 61828 # Note: m4 eats our [], so we need to use [ and ] instead. 61829 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 61830 if test "x$has_forbidden_chars" != x; then 61831 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 61832 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 61833 fi 61834 61835 61836 windows_path="$new_path" 61837 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 61838 unix_path=`$CYGPATH -u "$windows_path"` 61839 new_path="$unix_path" 61840 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 61841 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 61842 new_path="$unix_path" 61843 fi 61844 61845 if test "x$path" != "x$new_path"; then 61846 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 61847 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 61848 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 61849 fi 61850 61851 # Save the first 10 bytes of this path to the storage, so fixpath can work. 61852 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 61853 61854 else 61855 # We're on a unix platform. Hooray! :) 61856 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 61857 has_space=`$ECHO "$path" | $GREP " "` 61858 if test "x$has_space" != x; then 61859 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 61860 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 61861 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 61862 fi 61863 61864 # Use eval to expand a potential ~ 61865 eval path="$path" 61866 if test ! -f "$path" && test ! -d "$path"; then 61867 as_fn_error $? "The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 61868 fi 61869 61870 if test -d "$path"; then 61871 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$path"; $THEPWDCMD -L`" 61872 else 61873 dir="`$DIRNAME "$path"`" 61874 base="`$BASENAME "$path"`" 61875 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$dir"; $THEPWDCMD -L`/$base" 61876 fi 61877 fi 61878 fi 61879 61880 61881 # Only process if variable expands to non-empty 61882 61883 if test "x$POTENTIAL_FREETYPE_LIB_PATH" != x; then 61884 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 61885 61886 # Input might be given as Windows format, start by converting to 61887 # unix format. 61888 path="$POTENTIAL_FREETYPE_LIB_PATH" 61889 new_path=`$CYGPATH -u "$path"` 61890 61891 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 61892 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 61893 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 61894 # "foo.exe" is OK but "foo" is an error. 61895 # 61896 # This test is therefore slightly more accurate than "test -f" to check for file precense. 61897 # It is also a way to make sure we got the proper file name for the real test later on. 61898 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 61899 if test "x$test_shortpath" = x; then 61900 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 61901 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 61902 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_LIB_PATH" "$LINENO" 5 61903 fi 61904 61905 # Call helper function which possibly converts this using DOS-style short mode. 61906 # If so, the updated path is stored in $new_path. 61907 61908 input_path="$new_path" 61909 # Check if we need to convert this using DOS-style short mode. If the path 61910 # contains just simple characters, use it. Otherwise (spaces, weird characters), 61911 # take no chances and rewrite it. 61912 # Note: m4 eats our [], so we need to use [ and ] instead. 61913 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 61914 if test "x$has_forbidden_chars" != x; then 61915 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 61916 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 61917 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 61918 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 61919 # Going to short mode and back again did indeed matter. Since short mode is 61920 # case insensitive, let's make it lowercase to improve readability. 61921 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 61922 # Now convert it back to Unix-style (cygpath) 61923 input_path=`$CYGPATH -u "$shortmode_path"` 61924 new_path="$input_path" 61925 fi 61926 fi 61927 61928 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 61929 if test "x$test_cygdrive_prefix" = x; then 61930 # As a simple fix, exclude /usr/bin since it's not a real path. 61931 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 61932 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 61933 # a path prefixed by /cygdrive for fixpath to work. 61934 new_path="$CYGWIN_ROOT_PATH$input_path" 61935 fi 61936 fi 61937 61938 61939 if test "x$path" != "x$new_path"; then 61940 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 61941 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 61942 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 61943 fi 61944 61945 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 61946 61947 path="$POTENTIAL_FREETYPE_LIB_PATH" 61948 has_colon=`$ECHO $path | $GREP ^.:` 61949 new_path="$path" 61950 if test "x$has_colon" = x; then 61951 # Not in mixed or Windows style, start by that. 61952 new_path=`cmd //c echo $path` 61953 fi 61954 61955 61956 input_path="$new_path" 61957 # Check if we need to convert this using DOS-style short mode. If the path 61958 # contains just simple characters, use it. Otherwise (spaces, weird characters), 61959 # take no chances and rewrite it. 61960 # Note: m4 eats our [], so we need to use [ and ] instead. 61961 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 61962 if test "x$has_forbidden_chars" != x; then 61963 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 61964 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 61965 fi 61966 61967 61968 windows_path="$new_path" 61969 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 61970 unix_path=`$CYGPATH -u "$windows_path"` 61971 new_path="$unix_path" 61972 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 61973 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 61974 new_path="$unix_path" 61975 fi 61976 61977 if test "x$path" != "x$new_path"; then 61978 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 61979 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 61980 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 61981 fi 61982 61983 # Save the first 10 bytes of this path to the storage, so fixpath can work. 61984 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 61985 61986 else 61987 # We're on a unix platform. Hooray! :) 61988 path="$POTENTIAL_FREETYPE_LIB_PATH" 61989 has_space=`$ECHO "$path" | $GREP " "` 61990 if test "x$has_space" != x; then 61991 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 61992 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 61993 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 61994 fi 61995 61996 # Use eval to expand a potential ~ 61997 eval path="$path" 61998 if test ! -f "$path" && test ! -d "$path"; then 61999 as_fn_error $? "The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 62000 fi 62001 62002 if test -d "$path"; then 62003 POTENTIAL_FREETYPE_LIB_PATH="`cd "$path"; $THEPWDCMD -L`" 62004 else 62005 dir="`$DIRNAME "$path"`" 62006 base="`$BASENAME "$path"`" 62007 POTENTIAL_FREETYPE_LIB_PATH="`cd "$dir"; $THEPWDCMD -L`/$base" 62008 fi 62009 fi 62010 fi 62011 62012 62013 FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH" 62014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype includes" >&5 62015 $as_echo_n "checking for freetype includes... " >&6; } 62016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_INCLUDE_PATH" >&5 62017 $as_echo "$FREETYPE_INCLUDE_PATH" >&6; } 62018 FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH" 62019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype libraries" >&5 62020 $as_echo_n "checking for freetype libraries... " >&6; } 62021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_LIB_PATH" >&5 62022 $as_echo "$FREETYPE_LIB_PATH" >&6; } 62023 fi 62024 62025 fi 62026 fi 62027 fi 62028 fi 62029 fi # end check in well-known locations 62030 62031 if test "x$FOUND_FREETYPE" != xyes; then 62032 62033 # Print a helpful message on how to acquire the necessary build dependency. 62034 # freetype is the help tag: freetype, cups, alsa etc 62035 MISSING_DEPENDENCY=freetype 62036 62037 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 62038 cygwin_help $MISSING_DEPENDENCY 62039 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 62040 msys_help $MISSING_DEPENDENCY 62041 else 62042 PKGHANDLER_COMMAND= 62043 62044 case $PKGHANDLER in 62045 apt-get) 62046 apt_help $MISSING_DEPENDENCY ;; 62047 yum) 62048 yum_help $MISSING_DEPENDENCY ;; 62049 port) 62050 port_help $MISSING_DEPENDENCY ;; 62051 pkgutil) 62052 pkgutil_help $MISSING_DEPENDENCY ;; 62053 pkgadd) 62054 pkgadd_help $MISSING_DEPENDENCY ;; 62055 esac 62056 62057 if test "x$PKGHANDLER_COMMAND" != x; then 62058 HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'." 62059 fi 62060 fi 62061 62062 as_fn_error $? "Could not find freetype! $HELP_MSG " "$LINENO" 5 62063 fi 62064 fi # end user specified settings 62065 62066 # Set FREETYPE_CFLAGS, _LIBS and _LIB_PATH from include and lib dir. 62067 if test "x$FREETYPE_CFLAGS" = x; then 62068 62069 # Only process if variable expands to non-empty 62070 62071 if test "x$FREETYPE_INCLUDE_PATH" != x; then 62072 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 62073 62074 # Input might be given as Windows format, start by converting to 62075 # unix format. 62076 path="$FREETYPE_INCLUDE_PATH" 62077 new_path=`$CYGPATH -u "$path"` 62078 62079 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 62080 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 62081 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 62082 # "foo.exe" is OK but "foo" is an error. 62083 # 62084 # This test is therefore slightly more accurate than "test -f" to check for file precense. 62085 # It is also a way to make sure we got the proper file name for the real test later on. 62086 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 62087 if test "x$test_shortpath" = x; then 62088 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 62089 $as_echo "$as_me: The path of FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 62090 as_fn_error $? "Cannot locate the the path of FREETYPE_INCLUDE_PATH" "$LINENO" 5 62091 fi 62092 62093 # Call helper function which possibly converts this using DOS-style short mode. 62094 # If so, the updated path is stored in $new_path. 62095 62096 input_path="$new_path" 62097 # Check if we need to convert this using DOS-style short mode. If the path 62098 # contains just simple characters, use it. Otherwise (spaces, weird characters), 62099 # take no chances and rewrite it. 62100 # Note: m4 eats our [], so we need to use [ and ] instead. 62101 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 62102 if test "x$has_forbidden_chars" != x; then 62103 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 62104 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 62105 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 62106 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 62107 # Going to short mode and back again did indeed matter. Since short mode is 62108 # case insensitive, let's make it lowercase to improve readability. 62109 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 62110 # Now convert it back to Unix-style (cygpath) 62111 input_path=`$CYGPATH -u "$shortmode_path"` 62112 new_path="$input_path" 62113 fi 62114 fi 62115 62116 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 62117 if test "x$test_cygdrive_prefix" = x; then 62118 # As a simple fix, exclude /usr/bin since it's not a real path. 62119 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 62120 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 62121 # a path prefixed by /cygdrive for fixpath to work. 62122 new_path="$CYGWIN_ROOT_PATH$input_path" 62123 fi 62124 fi 62125 62126 62127 if test "x$path" != "x$new_path"; then 62128 FREETYPE_INCLUDE_PATH="$new_path" 62129 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 62130 $as_echo "$as_me: Rewriting FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 62131 fi 62132 62133 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 62134 62135 path="$FREETYPE_INCLUDE_PATH" 62136 has_colon=`$ECHO $path | $GREP ^.:` 62137 new_path="$path" 62138 if test "x$has_colon" = x; then 62139 # Not in mixed or Windows style, start by that. 62140 new_path=`cmd //c echo $path` 62141 fi 62142 62143 62144 input_path="$new_path" 62145 # Check if we need to convert this using DOS-style short mode. If the path 62146 # contains just simple characters, use it. Otherwise (spaces, weird characters), 62147 # take no chances and rewrite it. 62148 # Note: m4 eats our [], so we need to use [ and ] instead. 62149 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 62150 if test "x$has_forbidden_chars" != x; then 62151 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 62152 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 62153 fi 62154 62155 62156 windows_path="$new_path" 62157 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 62158 unix_path=`$CYGPATH -u "$windows_path"` 62159 new_path="$unix_path" 62160 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 62161 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 62162 new_path="$unix_path" 62163 fi 62164 62165 if test "x$path" != "x$new_path"; then 62166 FREETYPE_INCLUDE_PATH="$new_path" 62167 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 62168 $as_echo "$as_me: Rewriting FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 62169 fi 62170 62171 # Save the first 10 bytes of this path to the storage, so fixpath can work. 62172 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 62173 62174 else 62175 # We're on a unix platform. Hooray! :) 62176 path="$FREETYPE_INCLUDE_PATH" 62177 has_space=`$ECHO "$path" | $GREP " "` 62178 if test "x$has_space" != x; then 62179 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 62180 $as_echo "$as_me: The path of FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 62181 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 62182 fi 62183 62184 # Use eval to expand a potential ~ 62185 eval path="$path" 62186 if test ! -f "$path" && test ! -d "$path"; then 62187 as_fn_error $? "The path of FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 62188 fi 62189 62190 if test -d "$path"; then 62191 FREETYPE_INCLUDE_PATH="`cd "$path"; $THEPWDCMD -L`" 62192 else 62193 dir="`$DIRNAME "$path"`" 62194 base="`$BASENAME "$path"`" 62195 FREETYPE_INCLUDE_PATH="`cd "$dir"; $THEPWDCMD -L`/$base" 62196 fi 62197 fi 62198 fi 62199 62200 if test -d $FREETYPE_INCLUDE_PATH/freetype2/freetype; then 62201 FREETYPE_CFLAGS="-I$FREETYPE_INCLUDE_PATH/freetype2 -I$FREETYPE_INCLUDE_PATH" 62202 else 62203 FREETYPE_CFLAGS="-I$FREETYPE_INCLUDE_PATH" 62204 fi 62205 fi 62206 62207 if test "x$FREETYPE_LIBS" = x; then 62208 62209 # Only process if variable expands to non-empty 62210 62211 if test "x$FREETYPE_LIB_PATH" != x; then 62212 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 62213 62214 # Input might be given as Windows format, start by converting to 62215 # unix format. 62216 path="$FREETYPE_LIB_PATH" 62217 new_path=`$CYGPATH -u "$path"` 62218 62219 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 62220 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 62221 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 62222 # "foo.exe" is OK but "foo" is an error. 62223 # 62224 # This test is therefore slightly more accurate than "test -f" to check for file precense. 62225 # It is also a way to make sure we got the proper file name for the real test later on. 62226 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 62227 if test "x$test_shortpath" = x; then 62228 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 62229 $as_echo "$as_me: The path of FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 62230 as_fn_error $? "Cannot locate the the path of FREETYPE_LIB_PATH" "$LINENO" 5 62231 fi 62232 62233 # Call helper function which possibly converts this using DOS-style short mode. 62234 # If so, the updated path is stored in $new_path. 62235 62236 input_path="$new_path" 62237 # Check if we need to convert this using DOS-style short mode. If the path 62238 # contains just simple characters, use it. Otherwise (spaces, weird characters), 62239 # take no chances and rewrite it. 62240 # Note: m4 eats our [], so we need to use [ and ] instead. 62241 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 62242 if test "x$has_forbidden_chars" != x; then 62243 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 62244 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 62245 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 62246 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 62247 # Going to short mode and back again did indeed matter. Since short mode is 62248 # case insensitive, let's make it lowercase to improve readability. 62249 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 62250 # Now convert it back to Unix-style (cygpath) 62251 input_path=`$CYGPATH -u "$shortmode_path"` 62252 new_path="$input_path" 62253 fi 62254 fi 62255 62256 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 62257 if test "x$test_cygdrive_prefix" = x; then 62258 # As a simple fix, exclude /usr/bin since it's not a real path. 62259 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 62260 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 62261 # a path prefixed by /cygdrive for fixpath to work. 62262 new_path="$CYGWIN_ROOT_PATH$input_path" 62263 fi 62264 fi 62265 62266 62267 if test "x$path" != "x$new_path"; then 62268 FREETYPE_LIB_PATH="$new_path" 62269 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FREETYPE_LIB_PATH to \"$new_path\"" >&5 62270 $as_echo "$as_me: Rewriting FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 62271 fi 62272 62273 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 62274 62275 path="$FREETYPE_LIB_PATH" 62276 has_colon=`$ECHO $path | $GREP ^.:` 62277 new_path="$path" 62278 if test "x$has_colon" = x; then 62279 # Not in mixed or Windows style, start by that. 62280 new_path=`cmd //c echo $path` 62281 fi 62282 62283 62284 input_path="$new_path" 62285 # Check if we need to convert this using DOS-style short mode. If the path 62286 # contains just simple characters, use it. Otherwise (spaces, weird characters), 62287 # take no chances and rewrite it. 62288 # Note: m4 eats our [], so we need to use [ and ] instead. 62289 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 62290 if test "x$has_forbidden_chars" != x; then 62291 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 62292 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 62293 fi 62294 62295 62296 windows_path="$new_path" 62297 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 62298 unix_path=`$CYGPATH -u "$windows_path"` 62299 new_path="$unix_path" 62300 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 62301 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 62302 new_path="$unix_path" 62303 fi 62304 62305 if test "x$path" != "x$new_path"; then 62306 FREETYPE_LIB_PATH="$new_path" 62307 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FREETYPE_LIB_PATH to \"$new_path\"" >&5 62308 $as_echo "$as_me: Rewriting FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 62309 fi 62310 62311 # Save the first 10 bytes of this path to the storage, so fixpath can work. 62312 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 62313 62314 else 62315 # We're on a unix platform. Hooray! :) 62316 path="$FREETYPE_LIB_PATH" 62317 has_space=`$ECHO "$path" | $GREP " "` 62318 if test "x$has_space" != x; then 62319 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 62320 $as_echo "$as_me: The path of FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 62321 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 62322 fi 62323 62324 # Use eval to expand a potential ~ 62325 eval path="$path" 62326 if test ! -f "$path" && test ! -d "$path"; then 62327 as_fn_error $? "The path of FREETYPE_LIB_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 62328 fi 62329 62330 if test -d "$path"; then 62331 FREETYPE_LIB_PATH="`cd "$path"; $THEPWDCMD -L`" 62332 else 62333 dir="`$DIRNAME "$path"`" 62334 base="`$BASENAME "$path"`" 62335 FREETYPE_LIB_PATH="`cd "$dir"; $THEPWDCMD -L`/$base" 62336 fi 62337 fi 62338 fi 62339 62340 if test "x$OPENJDK_TARGET_OS" = xwindows; then 62341 FREETYPE_LIBS="$FREETYPE_LIB_PATH/$FREETYPE_BASE_NAME.lib" 62342 else 62343 FREETYPE_LIBS="-L$FREETYPE_LIB_PATH -l$FREETYPE_BASE_NAME" 62344 fi 62345 fi 62346 62347 # Try to compile it 62348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can compile and link with freetype" >&5 62349 $as_echo_n "checking if we can compile and link with freetype... " >&6; } 62350 ac_ext=cpp 62351 ac_cpp='$CXXCPP $CPPFLAGS' 62352 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 62353 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 62354 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 62355 62356 PREV_CXXCFLAGS="$CXXFLAGS" 62357 PREV_LIBS="$LIBS" 62358 PREV_CXX="$CXX" 62359 CXXFLAGS="$CXXFLAGS $FREETYPE_CFLAGS" 62360 LIBS="$LIBS $FREETYPE_LIBS" 62361 CXX="$FIXPATH $CXX" 62362 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 62363 /* end confdefs.h. */ 62364 62365 #include<ft2build.h> 62366 #include FT_FREETYPE_H 62367 int main () { 62368 FT_Init_FreeType(NULL); 62369 return 0; 62370 } 62371 62372 _ACEOF 62373 if ac_fn_cxx_try_link "$LINENO"; then : 62374 62375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 62376 $as_echo "yes" >&6; } 62377 62378 else 62379 62380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 62381 $as_echo "no" >&6; } 62382 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not compile and link with freetype. This might be a 32/64-bit mismatch." >&5 62383 $as_echo "$as_me: Could not compile and link with freetype. This might be a 32/64-bit mismatch." >&6;} 62384 { $as_echo "$as_me:${as_lineno-$LINENO}: Using FREETYPE_CFLAGS=$FREETYPE_CFLAGS and FREETYPE_LIBS=$FREETYPE_LIBS" >&5 62385 $as_echo "$as_me: Using FREETYPE_CFLAGS=$FREETYPE_CFLAGS and FREETYPE_LIBS=$FREETYPE_LIBS" >&6;} 62386 62387 62388 # Print a helpful message on how to acquire the necessary build dependency. 62389 # freetype is the help tag: freetype, cups, alsa etc 62390 MISSING_DEPENDENCY=freetype 62391 62392 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 62393 cygwin_help $MISSING_DEPENDENCY 62394 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 62395 msys_help $MISSING_DEPENDENCY 62396 else 62397 PKGHANDLER_COMMAND= 62398 62399 case $PKGHANDLER in 62400 apt-get) 62401 apt_help $MISSING_DEPENDENCY ;; 62402 yum) 62403 yum_help $MISSING_DEPENDENCY ;; 62404 port) 62405 port_help $MISSING_DEPENDENCY ;; 62406 pkgutil) 62407 pkgutil_help $MISSING_DEPENDENCY ;; 62408 pkgadd) 62409 pkgadd_help $MISSING_DEPENDENCY ;; 62410 esac 62411 62412 if test "x$PKGHANDLER_COMMAND" != x; then 62413 HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'." 62414 fi 62415 fi 62416 62417 62418 as_fn_error $? "Can not continue without freetype. $HELP_MSG" "$LINENO" 5 62419 62420 62421 fi 62422 rm -f core conftest.err conftest.$ac_objext \ 62423 conftest$ac_exeext conftest.$ac_ext 62424 CXXCFLAGS="$PREV_CXXFLAGS" 62425 LIBS="$PREV_LIBS" 62426 CXX="$PREV_CXX" 62427 ac_ext=cpp 62428 ac_cpp='$CXXCPP $CPPFLAGS' 62429 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 62430 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 62431 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 62432 62433 62434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we should bundle freetype" >&5 62435 $as_echo_n "checking if we should bundle freetype... " >&6; } 62436 if test "x$BUNDLE_FREETYPE" = xyes; then 62437 FREETYPE_BUNDLE_LIB_PATH="$FREETYPE_LIB_PATH" 62438 fi 62439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUNDLE_FREETYPE" >&5 62440 $as_echo "$BUNDLE_FREETYPE" >&6; } 62441 62442 fi # end freetype needed 62443 62444 62445 62446 62447 62448 62449 62450 # Check whether --with-alsa was given. 62451 if test "${with_alsa+set}" = set; then : 62452 withval=$with_alsa; 62453 fi 62454 62455 62456 # Check whether --with-alsa-include was given. 62457 if test "${with_alsa_include+set}" = set; then : 62458 withval=$with_alsa_include; 62459 fi 62460 62461 62462 # Check whether --with-alsa-lib was given. 62463 if test "${with_alsa_lib+set}" = set; then : 62464 withval=$with_alsa_lib; 62465 fi 62466 62467 62468 if test "x$NEEDS_LIB_ALSA" = xfalse; then 62469 if (test "x${with_alsa}" != x && test "x${with_alsa}" != xno) || \ 62470 (test "x${with_alsa_include}" != x && test "x${with_alsa_include}" != xno) || \ 62471 (test "x${with_alsa_lib}" != x && test "x${with_alsa_lib}" != xno); then 62472 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: alsa not used, so --with-alsa[-*] is ignored" >&5 62473 $as_echo "$as_me: WARNING: alsa not used, so --with-alsa[-*] is ignored" >&2;} 62474 fi 62475 ALSA_CFLAGS= 62476 ALSA_LIBS= 62477 else 62478 ALSA_FOUND=no 62479 62480 if test "x${with_alsa}" = xno || test "x${with_alsa_include}" = xno || test "x${with_alsa_lib}" = xno; then 62481 as_fn_error $? "It is not possible to disable the use of alsa. Remove the --without-alsa option." "$LINENO" 5 62482 fi 62483 62484 if test "x${with_alsa}" != x; then 62485 ALSA_LIBS="-L${with_alsa}/lib -lasound" 62486 ALSA_CFLAGS="-I${with_alsa}/include" 62487 ALSA_FOUND=yes 62488 fi 62489 if test "x${with_alsa_include}" != x; then 62490 ALSA_CFLAGS="-I${with_alsa_include}" 62491 ALSA_FOUND=yes 62492 fi 62493 if test "x${with_alsa_lib}" != x; then 62494 ALSA_LIBS="-L${with_alsa_lib} -lasound" 62495 ALSA_FOUND=yes 62496 fi 62497 # Do not try pkg-config if we have a sysroot set. 62498 if test "x$SYSROOT" = x; then 62499 if test "x$ALSA_FOUND" = xno; then 62500 62501 pkg_failed=no 62502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ALSA" >&5 62503 $as_echo_n "checking for ALSA... " >&6; } 62504 62505 if test -n "$ALSA_CFLAGS"; then 62506 pkg_cv_ALSA_CFLAGS="$ALSA_CFLAGS" 62507 elif test -n "$PKG_CONFIG"; then 62508 if test -n "$PKG_CONFIG" && \ 62509 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"alsa\""; } >&5 62510 ($PKG_CONFIG --exists --print-errors "alsa") 2>&5 62511 ac_status=$? 62512 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 62513 test $ac_status = 0; }; then 62514 pkg_cv_ALSA_CFLAGS=`$PKG_CONFIG --cflags "alsa" 2>/dev/null` 62515 else 62516 pkg_failed=yes 62517 fi 62518 else 62519 pkg_failed=untried 62520 fi 62521 if test -n "$ALSA_LIBS"; then 62522 pkg_cv_ALSA_LIBS="$ALSA_LIBS" 62523 elif test -n "$PKG_CONFIG"; then 62524 if test -n "$PKG_CONFIG" && \ 62525 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"alsa\""; } >&5 62526 ($PKG_CONFIG --exists --print-errors "alsa") 2>&5 62527 ac_status=$? 62528 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 62529 test $ac_status = 0; }; then 62530 pkg_cv_ALSA_LIBS=`$PKG_CONFIG --libs "alsa" 2>/dev/null` 62531 else 62532 pkg_failed=yes 62533 fi 62534 else 62535 pkg_failed=untried 62536 fi 62537 62538 62539 62540 if test $pkg_failed = yes; then 62541 62542 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 62543 _pkg_short_errors_supported=yes 62544 else 62545 _pkg_short_errors_supported=no 62546 fi 62547 if test $_pkg_short_errors_supported = yes; then 62548 ALSA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "alsa" 2>&1` 62549 else 62550 ALSA_PKG_ERRORS=`$PKG_CONFIG --print-errors "alsa" 2>&1` 62551 fi 62552 # Put the nasty error message in config.log where it belongs 62553 echo "$ALSA_PKG_ERRORS" >&5 62554 62555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 62556 $as_echo "no" >&6; } 62557 ALSA_FOUND=no 62558 elif test $pkg_failed = untried; then 62559 ALSA_FOUND=no 62560 else 62561 ALSA_CFLAGS=$pkg_cv_ALSA_CFLAGS 62562 ALSA_LIBS=$pkg_cv_ALSA_LIBS 62563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 62564 $as_echo "yes" >&6; } 62565 ALSA_FOUND=yes 62566 fi 62567 fi 62568 fi 62569 if test "x$ALSA_FOUND" = xno; then 62570 for ac_header in alsa/asoundlib.h 62571 do : 62572 ac_fn_cxx_check_header_mongrel "$LINENO" "alsa/asoundlib.h" "ac_cv_header_alsa_asoundlib_h" "$ac_includes_default" 62573 if test "x$ac_cv_header_alsa_asoundlib_h" = xyes; then : 62574 cat >>confdefs.h <<_ACEOF 62575 #define HAVE_ALSA_ASOUNDLIB_H 1 62576 _ACEOF 62577 62578 ALSA_FOUND=yes 62579 ALSA_CFLAGS=-Iignoreme 62580 ALSA_LIBS=-lasound 62581 DEFAULT_ALSA=yes 62582 62583 else 62584 ALSA_FOUND=no 62585 62586 fi 62587 62588 done 62589 62590 fi 62591 if test "x$ALSA_FOUND" = xno; then 62592 62593 # Print a helpful message on how to acquire the necessary build dependency. 62594 # alsa is the help tag: freetype, cups, alsa etc 62595 MISSING_DEPENDENCY=alsa 62596 62597 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 62598 cygwin_help $MISSING_DEPENDENCY 62599 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 62600 msys_help $MISSING_DEPENDENCY 62601 else 62602 PKGHANDLER_COMMAND= 62603 62604 case $PKGHANDLER in 62605 apt-get) 62606 apt_help $MISSING_DEPENDENCY ;; 62607 yum) 62608 yum_help $MISSING_DEPENDENCY ;; 62609 port) 62610 port_help $MISSING_DEPENDENCY ;; 62611 pkgutil) 62612 pkgutil_help $MISSING_DEPENDENCY ;; 62613 pkgadd) 62614 pkgadd_help $MISSING_DEPENDENCY ;; 62615 esac 62616 62617 if test "x$PKGHANDLER_COMMAND" != x; then 62618 HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'." 62619 fi 62620 fi 62621 62622 as_fn_error $? "Could not find alsa! $HELP_MSG" "$LINENO" 5 62623 fi 62624 fi 62625 62626 62627 62628 62629 62630 62631 # Check whether --with-libffi was given. 62632 if test "${with_libffi+set}" = set; then : 62633 withval=$with_libffi; 62634 fi 62635 62636 62637 # Check whether --with-libffi-include was given. 62638 if test "${with_libffi_include+set}" = set; then : 62639 withval=$with_libffi_include; 62640 fi 62641 62642 62643 # Check whether --with-libffi-lib was given. 62644 if test "${with_libffi_lib+set}" = set; then : 62645 withval=$with_libffi_lib; 62646 fi 62647 62648 # Check whether --enable-libffi-bundling was given. 62649 if test "${enable_libffi_bundling+set}" = set; then : 62650 enableval=$enable_libffi_bundling; 62651 fi 62652 62653 62654 if test "x$NEEDS_LIB_FFI" = xfalse; then 62655 if (test "x${with_libffi}" != x && test "x${with_libffi}" != xno) || \ 62656 (test "x${with_libffi_include}" != x && test "x${with_libffi_include}" != xno) || \ 62657 (test "x${with_libffi_lib}" != x && test "x${with_libffi_lib}" != xno); then 62658 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libffi not used, so --with-libffi[-*] is ignored" >&5 62659 $as_echo "$as_me: WARNING: libffi not used, so --with-libffi[-*] is ignored" >&2;} 62660 fi 62661 LIBFFI_CFLAGS= 62662 LIBFFI_LIBS= 62663 else 62664 LIBFFI_FOUND=no 62665 62666 if test "x${with_libffi}" = xno || test "x${with_libffi_include}" = xno || test "x${with_libffi_lib}" = xno; then 62667 as_fn_error $? "It is not possible to disable the use of libffi. Remove the --without-libffi option." "$LINENO" 5 62668 fi 62669 62670 if test "x${with_libffi}" != x; then 62671 LIBFFI_LIB_PATH="${with_libffi}/lib" 62672 LIBFFI_LIBS="-L${with_libffi}/lib -lffi" 62673 LIBFFI_CFLAGS="-I${with_libffi}/include" 62674 LIBFFI_FOUND=yes 62675 fi 62676 if test "x${with_libffi_include}" != x; then 62677 LIBFFI_CFLAGS="-I${with_libffi_include}" 62678 LIBFFI_FOUND=yes 62679 fi 62680 if test "x${with_libffi_lib}" != x; then 62681 LIBFFI_LIB_PATH="${with_libffi_lib}" 62682 LIBFFI_LIBS="-L${with_libffi_lib} -lffi" 62683 LIBFFI_FOUND=yes 62684 fi 62685 # Do not try pkg-config if we have a sysroot set. 62686 if test "x$SYSROOT" = x; then 62687 if test "x$LIBFFI_FOUND" = xno; then 62688 # Figure out LIBFFI_CFLAGS and LIBFFI_LIBS 62689 62690 pkg_failed=no 62691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBFFI" >&5 62692 $as_echo_n "checking for LIBFFI... " >&6; } 62693 62694 if test -n "$LIBFFI_CFLAGS"; then 62695 pkg_cv_LIBFFI_CFLAGS="$LIBFFI_CFLAGS" 62696 elif test -n "$PKG_CONFIG"; then 62697 if test -n "$PKG_CONFIG" && \ 62698 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libffi\""; } >&5 62699 ($PKG_CONFIG --exists --print-errors "libffi") 2>&5 62700 ac_status=$? 62701 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 62702 test $ac_status = 0; }; then 62703 pkg_cv_LIBFFI_CFLAGS=`$PKG_CONFIG --cflags "libffi" 2>/dev/null` 62704 else 62705 pkg_failed=yes 62706 fi 62707 else 62708 pkg_failed=untried 62709 fi 62710 if test -n "$LIBFFI_LIBS"; then 62711 pkg_cv_LIBFFI_LIBS="$LIBFFI_LIBS" 62712 elif test -n "$PKG_CONFIG"; then 62713 if test -n "$PKG_CONFIG" && \ 62714 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libffi\""; } >&5 62715 ($PKG_CONFIG --exists --print-errors "libffi") 2>&5 62716 ac_status=$? 62717 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 62718 test $ac_status = 0; }; then 62719 pkg_cv_LIBFFI_LIBS=`$PKG_CONFIG --libs "libffi" 2>/dev/null` 62720 else 62721 pkg_failed=yes 62722 fi 62723 else 62724 pkg_failed=untried 62725 fi 62726 62727 62728 62729 if test $pkg_failed = yes; then 62730 62731 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 62732 _pkg_short_errors_supported=yes 62733 else 62734 _pkg_short_errors_supported=no 62735 fi 62736 if test $_pkg_short_errors_supported = yes; then 62737 LIBFFI_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libffi" 2>&1` 62738 else 62739 LIBFFI_PKG_ERRORS=`$PKG_CONFIG --print-errors "libffi" 2>&1` 62740 fi 62741 # Put the nasty error message in config.log where it belongs 62742 echo "$LIBFFI_PKG_ERRORS" >&5 62743 62744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 62745 $as_echo "no" >&6; } 62746 LIBFFI_FOUND=no 62747 elif test $pkg_failed = untried; then 62748 LIBFFI_FOUND=no 62749 else 62750 LIBFFI_CFLAGS=$pkg_cv_LIBFFI_CFLAGS 62751 LIBFFI_LIBS=$pkg_cv_LIBFFI_LIBS 62752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 62753 $as_echo "yes" >&6; } 62754 LIBFFI_FOUND=yes 62755 fi 62756 fi 62757 fi 62758 if test "x$LIBFFI_FOUND" = xno; then 62759 for ac_header in ffi.h 62760 do : 62761 ac_fn_cxx_check_header_mongrel "$LINENO" "ffi.h" "ac_cv_header_ffi_h" "$ac_includes_default" 62762 if test "x$ac_cv_header_ffi_h" = xyes; then : 62763 cat >>confdefs.h <<_ACEOF 62764 #define HAVE_FFI_H 1 62765 _ACEOF 62766 62767 LIBFFI_FOUND=yes 62768 LIBFFI_CFLAGS= 62769 LIBFFI_LIBS=-lffi 62770 62771 else 62772 LIBFFI_FOUND=no 62773 62774 fi 62775 62776 done 62777 62778 fi 62779 if test "x$LIBFFI_FOUND" = xno; then 62780 62781 # Print a helpful message on how to acquire the necessary build dependency. 62782 # ffi is the help tag: freetype, cups, alsa etc 62783 MISSING_DEPENDENCY=ffi 62784 62785 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 62786 cygwin_help $MISSING_DEPENDENCY 62787 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 62788 msys_help $MISSING_DEPENDENCY 62789 else 62790 PKGHANDLER_COMMAND= 62791 62792 case $PKGHANDLER in 62793 apt-get) 62794 apt_help $MISSING_DEPENDENCY ;; 62795 yum) 62796 yum_help $MISSING_DEPENDENCY ;; 62797 port) 62798 port_help $MISSING_DEPENDENCY ;; 62799 pkgutil) 62800 pkgutil_help $MISSING_DEPENDENCY ;; 62801 pkgadd) 62802 pkgadd_help $MISSING_DEPENDENCY ;; 62803 esac 62804 62805 if test "x$PKGHANDLER_COMMAND" != x; then 62806 HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'." 62807 fi 62808 fi 62809 62810 as_fn_error $? "Could not find libffi! $HELP_MSG" "$LINENO" 5 62811 fi 62812 62813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libffi works" >&5 62814 $as_echo_n "checking if libffi works... " >&6; } 62815 ac_ext=c 62816 ac_cpp='$CPP $CPPFLAGS' 62817 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 62818 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 62819 ac_compiler_gnu=$ac_cv_c_compiler_gnu 62820 62821 OLD_CFLAGS="$CFLAGS" 62822 CFLAGS="$CFLAGS $LIBFFI_CFLAGS" 62823 OLD_LIBS="$LIBS" 62824 LIBS="$LIBS $LIBFFI_LIBS" 62825 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 62826 /* end confdefs.h. */ 62827 #include <ffi.h> 62828 int 62829 main () 62830 { 62831 62832 ffi_call(NULL, NULL, NULL, NULL); 62833 return 0; 62834 62835 ; 62836 return 0; 62837 } 62838 _ACEOF 62839 if ac_fn_c_try_link "$LINENO"; then : 62840 LIBFFI_WORKS=yes 62841 else 62842 LIBFFI_WORKS=no 62843 62844 fi 62845 rm -f core conftest.err conftest.$ac_objext \ 62846 conftest$ac_exeext conftest.$ac_ext 62847 CFLAGS="$OLD_CFLAGS" 62848 LIBS="$OLD_LIBS" 62849 ac_ext=cpp 62850 ac_cpp='$CXXCPP $CPPFLAGS' 62851 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 62852 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 62853 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 62854 62855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBFFI_WORKS" >&5 62856 $as_echo "$LIBFFI_WORKS" >&6; } 62857 62858 if test "x$LIBFFI_WORKS" = xno; then 62859 62860 # Print a helpful message on how to acquire the necessary build dependency. 62861 # ffi is the help tag: freetype, cups, alsa etc 62862 MISSING_DEPENDENCY=ffi 62863 62864 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 62865 cygwin_help $MISSING_DEPENDENCY 62866 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 62867 msys_help $MISSING_DEPENDENCY 62868 else 62869 PKGHANDLER_COMMAND= 62870 62871 case $PKGHANDLER in 62872 apt-get) 62873 apt_help $MISSING_DEPENDENCY ;; 62874 yum) 62875 yum_help $MISSING_DEPENDENCY ;; 62876 port) 62877 port_help $MISSING_DEPENDENCY ;; 62878 pkgutil) 62879 pkgutil_help $MISSING_DEPENDENCY ;; 62880 pkgadd) 62881 pkgadd_help $MISSING_DEPENDENCY ;; 62882 esac 62883 62884 if test "x$PKGHANDLER_COMMAND" != x; then 62885 HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'." 62886 fi 62887 fi 62888 62889 as_fn_error $? "Found libffi but could not link and compile with it. $HELP_MSG" "$LINENO" 5 62890 fi 62891 62892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libffi should be bundled" >&5 62893 $as_echo_n "checking if libffi should be bundled... " >&6; } 62894 if test "x$enable_libffi_bundling" = "x"; then 62895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 62896 $as_echo "no" >&6; } 62897 ENABLE_LIBFFI_BUNDLING=false 62898 elif test "x$enable_libffi_bundling" = "xno"; then 62899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, forced" >&5 62900 $as_echo "no, forced" >&6; } 62901 ENABLE_LIBFFI_BUNDLING=false 62902 elif test "x$enable_libffi_bundling" = "xyes"; then 62903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, forced" >&5 62904 $as_echo "yes, forced" >&6; } 62905 ENABLE_LIBFFI_BUNDLING=true 62906 else 62907 as_fn_error $? "Invalid value for --enable-libffi-bundling" "$LINENO" 5 62908 fi 62909 62910 # Find the libffi.so.X to bundle 62911 if test "x${ENABLE_LIBFFI_BUNDLING}" = "xtrue"; then 62912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libffi lib file location" >&5 62913 $as_echo_n "checking for libffi lib file location... " >&6; } 62914 if test "x${LIBFFI_LIB_PATH}" != x; then 62915 if test -e ${LIBFFI_LIB_PATH}/libffi.so.?; then 62916 LIBFFI_LIB_FILE="${LIBFFI_LIB_PATH}/libffi.so.?" 62917 else 62918 as_fn_error $? "Could not locate libffi.so.? for bundling in ${LIBFFI_LIB_PATH}" "$LINENO" 5 62919 fi 62920 else 62921 # If we don't have an explicit path, look in a few obvious places 62922 if test "x${OPENJDK_TARGET_CPU}" = "xx86"; then 62923 if test -e ${SYSROOT}/usr/lib/libffi.so.? ; then 62924 LIBFFI_LIB_FILE="${SYSROOT}/usr/lib/libffi.so.?" 62925 elif test -e ${SYSROOT}/usr/lib/i386-linux-gnu/libffi.so.? ; then 62926 LIBFFI_LIB_FILE="${SYSROOT}/usr/lib/i386-linux-gnu/libffi.so.?" 62927 else 62928 as_fn_error $? "Could not locate libffi.so.? for bundling" "$LINENO" 5 62929 fi 62930 elif test "x${OPENJDK_TARGET_CPU}" = "xx86_64"; then 62931 if test -e ${SYSROOT}/usr/lib64/libffi.so.? ; then 62932 LIBFFI_LIB_FILE="${SYSROOT}/usr/lib64/libffi.so.?" 62933 elif test -e ${SYSROOT}/usr/lib/x86_64-linux-gnu/libffi.so.? ; then 62934 LIBFFI_LIB_FILE="${SYSROOT}/usr/lib/x86_64-linux-gnu/libffi.so.?" 62935 else 62936 as_fn_error $? "Could not locate libffi.so.? for bundling" "$LINENO" 5 62937 fi 62938 else 62939 # Fallback on the default /usr/lib dir 62940 if test -e ${SYSROOT}/usr/lib/libffi.so.? ; then 62941 LIBFFI_LIB_FILE="${SYSROOT}/usr/lib/libffi.so.?" 62942 else 62943 as_fn_error $? "Could not locate libffi.so.? for bundling" "$LINENO" 5 62944 fi 62945 fi 62946 fi 62947 # Make sure the wildcard is evaluated 62948 LIBFFI_LIB_FILE="$(ls ${LIBFFI_LIB_FILE})" 62949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${LIBFFI_LIB_FILE}" >&5 62950 $as_echo "${LIBFFI_LIB_FILE}" >&6; } 62951 fi 62952 fi 62953 62954 62955 62956 62957 62958 62959 62960 if [[ " $JVM_VARIANTS " =~ " zeroshark " ]] ; then 62961 # Extract the first word of "llvm-config", so it can be a program name with args. 62962 set dummy llvm-config; ac_word=$2 62963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 62964 $as_echo_n "checking for $ac_word... " >&6; } 62965 if ${ac_cv_prog_LLVM_CONFIG+:} false; then : 62966 $as_echo_n "(cached) " >&6 62967 else 62968 if test -n "$LLVM_CONFIG"; then 62969 ac_cv_prog_LLVM_CONFIG="$LLVM_CONFIG" # Let the user override the test. 62970 else 62971 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 62972 for as_dir in $PATH 62973 do 62974 IFS=$as_save_IFS 62975 test -z "$as_dir" && as_dir=. 62976 for ac_exec_ext in '' $ac_executable_extensions; do 62977 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 62978 ac_cv_prog_LLVM_CONFIG="llvm-config" 62979 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 62980 break 2 62981 fi 62982 done 62983 done 62984 IFS=$as_save_IFS 62985 62986 fi 62987 fi 62988 LLVM_CONFIG=$ac_cv_prog_LLVM_CONFIG 62989 if test -n "$LLVM_CONFIG"; then 62990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LLVM_CONFIG" >&5 62991 $as_echo "$LLVM_CONFIG" >&6; } 62992 else 62993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 62994 $as_echo "no" >&6; } 62995 fi 62996 62997 62998 62999 if test "x$LLVM_CONFIG" != xllvm-config; then 63000 as_fn_error $? "llvm-config not found in $PATH." "$LINENO" 5 63001 fi 63002 63003 llvm_components="jit mcjit engine nativecodegen native" 63004 unset LLVM_CFLAGS 63005 for flag in $("$LLVM_CONFIG" --cxxflags); do 63006 if echo "${flag}" | grep -q '^-[ID]'; then 63007 if test "${flag}" != "-D_DEBUG" ; then 63008 if test "${LLVM_CFLAGS}" != "" ; then 63009 LLVM_CFLAGS="${LLVM_CFLAGS} " 63010 fi 63011 LLVM_CFLAGS="${LLVM_CFLAGS}${flag}" 63012 fi 63013 fi 63014 done 63015 llvm_version=$("${LLVM_CONFIG}" --version | $SED 's/\.//; s/svn.*//') 63016 LLVM_CFLAGS="${LLVM_CFLAGS} -DSHARK_LLVM_VERSION=${llvm_version}" 63017 63018 unset LLVM_LDFLAGS 63019 for flag in $("${LLVM_CONFIG}" --ldflags); do 63020 if echo "${flag}" | grep -q '^-L'; then 63021 if test "${LLVM_LDFLAGS}" != ""; then 63022 LLVM_LDFLAGS="${LLVM_LDFLAGS} " 63023 fi 63024 LLVM_LDFLAGS="${LLVM_LDFLAGS}${flag}" 63025 fi 63026 done 63027 63028 unset LLVM_LIBS 63029 for flag in $("${LLVM_CONFIG}" --libs ${llvm_components}); do 63030 if echo "${flag}" | grep -q '^-l'; then 63031 if test "${LLVM_LIBS}" != ""; then 63032 LLVM_LIBS="${LLVM_LIBS} " 63033 fi 63034 LLVM_LIBS="${LLVM_LIBS}${flag}" 63035 fi 63036 done 63037 63038 # Due to https://llvm.org/bugs/show_bug.cgi?id=16902, llvm does not 63039 # always properly detect -ltinfo 63040 LLVM_LIBS="${LLVM_LIBS} -ltinfo" 63041 63042 63043 63044 63045 fi 63046 63047 63048 63049 # Check whether --with-libjpeg was given. 63050 if test "${with_libjpeg+set}" = set; then : 63051 withval=$with_libjpeg; 63052 fi 63053 63054 63055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for which libjpeg to use" >&5 63056 $as_echo_n "checking for which libjpeg to use... " >&6; } 63057 # default is bundled 63058 DEFAULT_LIBJPEG=bundled 63059 # if user didn't specify, use DEFAULT_LIBJPEG 63060 if test "x${with_libjpeg}" = "x"; then 63061 with_libjpeg=${DEFAULT_LIBJPEG} 63062 fi 63063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_libjpeg}" >&5 63064 $as_echo "${with_libjpeg}" >&6; } 63065 63066 if test "x${with_libjpeg}" = "xbundled"; then 63067 USE_EXTERNAL_LIBJPEG=false 63068 elif test "x${with_libjpeg}" = "xsystem"; then 63069 ac_fn_cxx_check_header_mongrel "$LINENO" "jpeglib.h" "ac_cv_header_jpeglib_h" "$ac_includes_default" 63070 if test "x$ac_cv_header_jpeglib_h" = xyes; then : 63071 63072 else 63073 as_fn_error $? "--with-libjpeg=system specified, but jpeglib.h not found!" "$LINENO" 5 63074 fi 63075 63076 63077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jpeg_CreateDecompress in -ljpeg" >&5 63078 $as_echo_n "checking for jpeg_CreateDecompress in -ljpeg... " >&6; } 63079 if ${ac_cv_lib_jpeg_jpeg_CreateDecompress+:} false; then : 63080 $as_echo_n "(cached) " >&6 63081 else 63082 ac_check_lib_save_LIBS=$LIBS 63083 LIBS="-ljpeg $LIBS" 63084 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 63085 /* end confdefs.h. */ 63086 63087 /* Override any GCC internal prototype to avoid an error. 63088 Use char because int might match the return type of a GCC 63089 builtin and then its argument prototype would still apply. */ 63090 #ifdef __cplusplus 63091 extern "C" 63092 #endif 63093 char jpeg_CreateDecompress (); 63094 int 63095 main () 63096 { 63097 return jpeg_CreateDecompress (); 63098 ; 63099 return 0; 63100 } 63101 _ACEOF 63102 if ac_fn_cxx_try_link "$LINENO"; then : 63103 ac_cv_lib_jpeg_jpeg_CreateDecompress=yes 63104 else 63105 ac_cv_lib_jpeg_jpeg_CreateDecompress=no 63106 fi 63107 rm -f core conftest.err conftest.$ac_objext \ 63108 conftest$ac_exeext conftest.$ac_ext 63109 LIBS=$ac_check_lib_save_LIBS 63110 fi 63111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jpeg_jpeg_CreateDecompress" >&5 63112 $as_echo "$ac_cv_lib_jpeg_jpeg_CreateDecompress" >&6; } 63113 if test "x$ac_cv_lib_jpeg_jpeg_CreateDecompress" = xyes; then : 63114 cat >>confdefs.h <<_ACEOF 63115 #define HAVE_LIBJPEG 1 63116 _ACEOF 63117 63118 LIBS="-ljpeg $LIBS" 63119 63120 else 63121 as_fn_error $? "--with-libjpeg=system specified, but no libjpeg found" "$LINENO" 5 63122 fi 63123 63124 63125 USE_EXTERNAL_LIBJPEG=true 63126 else 63127 as_fn_error $? "Invalid use of --with-libjpeg: ${with_libjpeg}, use 'system' or 'bundled'" "$LINENO" 5 63128 fi 63129 63130 63131 63132 63133 63134 # Check whether --with-giflib was given. 63135 if test "${with_giflib+set}" = set; then : 63136 withval=$with_giflib; 63137 fi 63138 63139 63140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for which giflib to use" >&5 63141 $as_echo_n "checking for which giflib to use... " >&6; } 63142 # default is bundled 63143 DEFAULT_GIFLIB=bundled 63144 # if user didn't specify, use DEFAULT_GIFLIB 63145 if test "x${with_giflib}" = "x"; then 63146 with_giflib=${DEFAULT_GIFLIB} 63147 fi 63148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_giflib}" >&5 63149 $as_echo "${with_giflib}" >&6; } 63150 63151 if test "x${with_giflib}" = "xbundled"; then 63152 USE_EXTERNAL_LIBGIF=false 63153 elif test "x${with_giflib}" = "xsystem"; then 63154 ac_fn_cxx_check_header_mongrel "$LINENO" "gif_lib.h" "ac_cv_header_gif_lib_h" "$ac_includes_default" 63155 if test "x$ac_cv_header_gif_lib_h" = xyes; then : 63156 63157 else 63158 as_fn_error $? "--with-giflib=system specified, but gif_lib.h not found!" "$LINENO" 5 63159 fi 63160 63161 63162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DGifGetCode in -lgif" >&5 63163 $as_echo_n "checking for DGifGetCode in -lgif... " >&6; } 63164 if ${ac_cv_lib_gif_DGifGetCode+:} false; then : 63165 $as_echo_n "(cached) " >&6 63166 else 63167 ac_check_lib_save_LIBS=$LIBS 63168 LIBS="-lgif $LIBS" 63169 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 63170 /* end confdefs.h. */ 63171 63172 /* Override any GCC internal prototype to avoid an error. 63173 Use char because int might match the return type of a GCC 63174 builtin and then its argument prototype would still apply. */ 63175 #ifdef __cplusplus 63176 extern "C" 63177 #endif 63178 char DGifGetCode (); 63179 int 63180 main () 63181 { 63182 return DGifGetCode (); 63183 ; 63184 return 0; 63185 } 63186 _ACEOF 63187 if ac_fn_cxx_try_link "$LINENO"; then : 63188 ac_cv_lib_gif_DGifGetCode=yes 63189 else 63190 ac_cv_lib_gif_DGifGetCode=no 63191 fi 63192 rm -f core conftest.err conftest.$ac_objext \ 63193 conftest$ac_exeext conftest.$ac_ext 63194 LIBS=$ac_check_lib_save_LIBS 63195 fi 63196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gif_DGifGetCode" >&5 63197 $as_echo "$ac_cv_lib_gif_DGifGetCode" >&6; } 63198 if test "x$ac_cv_lib_gif_DGifGetCode" = xyes; then : 63199 cat >>confdefs.h <<_ACEOF 63200 #define HAVE_LIBGIF 1 63201 _ACEOF 63202 63203 LIBS="-lgif $LIBS" 63204 63205 else 63206 as_fn_error $? "--with-giflib=system specified, but no giflib found!" "$LINENO" 5 63207 fi 63208 63209 63210 USE_EXTERNAL_LIBGIF=true 63211 else 63212 as_fn_error $? "Invalid value of --with-giflib: ${with_giflib}, use 'system' or 'bundled'" "$LINENO" 5 63213 fi 63214 63215 63216 63217 63218 63219 # Check whether --with-libpng was given. 63220 if test "${with_libpng+set}" = set; then : 63221 withval=$with_libpng; 63222 fi 63223 63224 63225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for which libpng to use" >&5 63226 $as_echo_n "checking for which libpng to use... " >&6; } 63227 63228 # default is bundled 63229 DEFAULT_LIBPNG=bundled 63230 # if user didn't specify, use DEFAULT_LIBPNG 63231 if test "x${with_libpng}" = "x"; then 63232 with_libpng=${DEFAULT_LIBPNG} 63233 fi 63234 63235 if test "x${with_libpng}" = "xbundled"; then 63236 USE_EXTERNAL_LIBPNG=false 63237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: bundled" >&5 63238 $as_echo "bundled" >&6; } 63239 elif test "x${with_libpng}" = "xsystem"; then 63240 63241 pkg_failed=no 63242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PNG" >&5 63243 $as_echo_n "checking for PNG... " >&6; } 63244 63245 if test -n "$PNG_CFLAGS"; then 63246 pkg_cv_PNG_CFLAGS="$PNG_CFLAGS" 63247 elif test -n "$PKG_CONFIG"; then 63248 if test -n "$PKG_CONFIG" && \ 63249 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpng\""; } >&5 63250 ($PKG_CONFIG --exists --print-errors "libpng") 2>&5 63251 ac_status=$? 63252 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 63253 test $ac_status = 0; }; then 63254 pkg_cv_PNG_CFLAGS=`$PKG_CONFIG --cflags "libpng" 2>/dev/null` 63255 else 63256 pkg_failed=yes 63257 fi 63258 else 63259 pkg_failed=untried 63260 fi 63261 if test -n "$PNG_LIBS"; then 63262 pkg_cv_PNG_LIBS="$PNG_LIBS" 63263 elif test -n "$PKG_CONFIG"; then 63264 if test -n "$PKG_CONFIG" && \ 63265 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpng\""; } >&5 63266 ($PKG_CONFIG --exists --print-errors "libpng") 2>&5 63267 ac_status=$? 63268 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 63269 test $ac_status = 0; }; then 63270 pkg_cv_PNG_LIBS=`$PKG_CONFIG --libs "libpng" 2>/dev/null` 63271 else 63272 pkg_failed=yes 63273 fi 63274 else 63275 pkg_failed=untried 63276 fi 63277 63278 63279 63280 if test $pkg_failed = yes; then 63281 63282 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 63283 _pkg_short_errors_supported=yes 63284 else 63285 _pkg_short_errors_supported=no 63286 fi 63287 if test $_pkg_short_errors_supported = yes; then 63288 PNG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libpng" 2>&1` 63289 else 63290 PNG_PKG_ERRORS=`$PKG_CONFIG --print-errors "libpng" 2>&1` 63291 fi 63292 # Put the nasty error message in config.log where it belongs 63293 echo "$PNG_PKG_ERRORS" >&5 63294 63295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 63296 $as_echo "no" >&6; } 63297 LIBPNG_FOUND=no 63298 elif test $pkg_failed = untried; then 63299 LIBPNG_FOUND=no 63300 else 63301 PNG_CFLAGS=$pkg_cv_PNG_CFLAGS 63302 PNG_LIBS=$pkg_cv_PNG_LIBS 63303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 63304 $as_echo "yes" >&6; } 63305 LIBPNG_FOUND=yes 63306 fi 63307 if test "x${LIBPNG_FOUND}" = "xyes"; then 63308 USE_EXTERNAL_LIBPNG=true 63309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: system" >&5 63310 $as_echo "system" >&6; } 63311 else 63312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: system not found" >&5 63313 $as_echo "system not found" >&6; } 63314 as_fn_error $? "--with-libpng=system specified, but no libpng found!" "$LINENO" 5 63315 fi 63316 else 63317 as_fn_error $? "Invalid value of --with-libpng: ${with_libpng}, use 'system' or 'bundled'" "$LINENO" 5 63318 fi 63319 63320 63321 63322 63323 63324 # Check whether --with-zlib was given. 63325 if test "${with_zlib+set}" = set; then : 63326 withval=$with_zlib; 63327 fi 63328 63329 63330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compress in -lz" >&5 63331 $as_echo_n "checking for compress in -lz... " >&6; } 63332 if ${ac_cv_lib_z_compress+:} false; then : 63333 $as_echo_n "(cached) " >&6 63334 else 63335 ac_check_lib_save_LIBS=$LIBS 63336 LIBS="-lz $LIBS" 63337 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 63338 /* end confdefs.h. */ 63339 63340 /* Override any GCC internal prototype to avoid an error. 63341 Use char because int might match the return type of a GCC 63342 builtin and then its argument prototype would still apply. */ 63343 #ifdef __cplusplus 63344 extern "C" 63345 #endif 63346 char compress (); 63347 int 63348 main () 63349 { 63350 return compress (); 63351 ; 63352 return 0; 63353 } 63354 _ACEOF 63355 if ac_fn_cxx_try_link "$LINENO"; then : 63356 ac_cv_lib_z_compress=yes 63357 else 63358 ac_cv_lib_z_compress=no 63359 fi 63360 rm -f core conftest.err conftest.$ac_objext \ 63361 conftest$ac_exeext conftest.$ac_ext 63362 LIBS=$ac_check_lib_save_LIBS 63363 fi 63364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_compress" >&5 63365 $as_echo "$ac_cv_lib_z_compress" >&6; } 63366 if test "x$ac_cv_lib_z_compress" = xyes; then : 63367 ZLIB_FOUND=yes 63368 else 63369 ZLIB_FOUND=no 63370 fi 63371 63372 63373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for which zlib to use" >&5 63374 $as_echo_n "checking for which zlib to use... " >&6; } 63375 63376 DEFAULT_ZLIB=system 63377 if test "x$OPENJDK_TARGET_OS" = xwindows; then 63378 # On windows default is bundled...on others default is system 63379 DEFAULT_ZLIB=bundled 63380 fi 63381 63382 if test "x${ZLIB_FOUND}" != "xyes"; then 63383 # If we don't find any system...set default to bundled 63384 DEFAULT_ZLIB=bundled 63385 fi 63386 63387 # If user didn't specify, use DEFAULT_ZLIB 63388 if test "x${with_zlib}" = "x"; then 63389 with_zlib=${DEFAULT_ZLIB} 63390 fi 63391 63392 if test "x${with_zlib}" = "xbundled"; then 63393 USE_EXTERNAL_LIBZ=false 63394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: bundled" >&5 63395 $as_echo "bundled" >&6; } 63396 elif test "x${with_zlib}" = "xsystem"; then 63397 if test "x${ZLIB_FOUND}" = "xyes"; then 63398 USE_EXTERNAL_LIBZ=true 63399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: system" >&5 63400 $as_echo "system" >&6; } 63401 else 63402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: system not found" >&5 63403 $as_echo "system not found" >&6; } 63404 as_fn_error $? "--with-zlib=system specified, but no zlib found!" "$LINENO" 5 63405 fi 63406 else 63407 as_fn_error $? "Invalid value for --with-zlib: ${with_zlib}, use 'system' or 'bundled'" "$LINENO" 5 63408 fi 63409 63410 63411 63412 63413 63414 # Check whether --with-lcms was given. 63415 if test "${with_lcms+set}" = set; then : 63416 withval=$with_lcms; 63417 fi 63418 63419 63420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for which lcms to use" >&5 63421 $as_echo_n "checking for which lcms to use... " >&6; } 63422 63423 DEFAULT_LCMS=bundled 63424 # If user didn't specify, use DEFAULT_LCMS 63425 if test "x${with_lcms}" = "x"; then 63426 with_lcms=${DEFAULT_LCMS} 63427 fi 63428 63429 if test "x${with_lcms}" = "xbundled"; then 63430 USE_EXTERNAL_LCMS=false 63431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: bundled" >&5 63432 $as_echo "bundled" >&6; } 63433 elif test "x${with_lcms}" = "xsystem"; then 63434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: system" >&5 63435 $as_echo "system" >&6; } 63436 63437 pkg_failed=no 63438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LCMS" >&5 63439 $as_echo_n "checking for LCMS... " >&6; } 63440 63441 if test -n "$LCMS_CFLAGS"; then 63442 pkg_cv_LCMS_CFLAGS="$LCMS_CFLAGS" 63443 elif test -n "$PKG_CONFIG"; then 63444 if test -n "$PKG_CONFIG" && \ 63445 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lcms2\""; } >&5 63446 ($PKG_CONFIG --exists --print-errors "lcms2") 2>&5 63447 ac_status=$? 63448 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 63449 test $ac_status = 0; }; then 63450 pkg_cv_LCMS_CFLAGS=`$PKG_CONFIG --cflags "lcms2" 2>/dev/null` 63451 else 63452 pkg_failed=yes 63453 fi 63454 else 63455 pkg_failed=untried 63456 fi 63457 if test -n "$LCMS_LIBS"; then 63458 pkg_cv_LCMS_LIBS="$LCMS_LIBS" 63459 elif test -n "$PKG_CONFIG"; then 63460 if test -n "$PKG_CONFIG" && \ 63461 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lcms2\""; } >&5 63462 ($PKG_CONFIG --exists --print-errors "lcms2") 2>&5 63463 ac_status=$? 63464 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 63465 test $ac_status = 0; }; then 63466 pkg_cv_LCMS_LIBS=`$PKG_CONFIG --libs "lcms2" 2>/dev/null` 63467 else 63468 pkg_failed=yes 63469 fi 63470 else 63471 pkg_failed=untried 63472 fi 63473 63474 63475 63476 if test $pkg_failed = yes; then 63477 63478 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 63479 _pkg_short_errors_supported=yes 63480 else 63481 _pkg_short_errors_supported=no 63482 fi 63483 if test $_pkg_short_errors_supported = yes; then 63484 LCMS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "lcms2" 2>&1` 63485 else 63486 LCMS_PKG_ERRORS=`$PKG_CONFIG --print-errors "lcms2" 2>&1` 63487 fi 63488 # Put the nasty error message in config.log where it belongs 63489 echo "$LCMS_PKG_ERRORS" >&5 63490 63491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 63492 $as_echo "no" >&6; } 63493 LCMS_FOUND=no 63494 elif test $pkg_failed = untried; then 63495 LCMS_FOUND=no 63496 else 63497 LCMS_CFLAGS=$pkg_cv_LCMS_CFLAGS 63498 LCMS_LIBS=$pkg_cv_LCMS_LIBS 63499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 63500 $as_echo "yes" >&6; } 63501 LCMS_FOUND=yes 63502 fi 63503 if test "x${LCMS_FOUND}" = "xyes"; then 63504 USE_EXTERNAL_LCMS=true 63505 else 63506 as_fn_error $? "--with-lcms=system specified, but no lcms found!" "$LINENO" 5 63507 fi 63508 else 63509 as_fn_error $? "Invalid value for --with-lcms: ${with_lcms}, use 'system' or 'bundled'" "$LINENO" 5 63510 fi 63511 63512 63513 63514 63515 63516 63517 63518 63519 63520 63521 63522 # Setup libm (the maths library) 63523 if test "x$OPENJDK_TARGET_OS" != "xwindows"; then 63524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cos in -lm" >&5 63525 $as_echo_n "checking for cos in -lm... " >&6; } 63526 if ${ac_cv_lib_m_cos+:} false; then : 63527 $as_echo_n "(cached) " >&6 63528 else 63529 ac_check_lib_save_LIBS=$LIBS 63530 LIBS="-lm $LIBS" 63531 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 63532 /* end confdefs.h. */ 63533 63534 /* Override any GCC internal prototype to avoid an error. 63535 Use char because int might match the return type of a GCC 63536 builtin and then its argument prototype would still apply. */ 63537 #ifdef __cplusplus 63538 extern "C" 63539 #endif 63540 char cos (); 63541 int 63542 main () 63543 { 63544 return cos (); 63545 ; 63546 return 0; 63547 } 63548 _ACEOF 63549 if ac_fn_cxx_try_link "$LINENO"; then : 63550 ac_cv_lib_m_cos=yes 63551 else 63552 ac_cv_lib_m_cos=no 63553 fi 63554 rm -f core conftest.err conftest.$ac_objext \ 63555 conftest$ac_exeext conftest.$ac_ext 63556 LIBS=$ac_check_lib_save_LIBS 63557 fi 63558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_cos" >&5 63559 $as_echo "$ac_cv_lib_m_cos" >&6; } 63560 if test "x$ac_cv_lib_m_cos" = xyes; then : 63561 cat >>confdefs.h <<_ACEOF 63562 #define HAVE_LIBM 1 63563 _ACEOF 63564 63565 LIBS="-lm $LIBS" 63566 63567 else 63568 63569 { $as_echo "$as_me:${as_lineno-$LINENO}: Maths library was not found" >&5 63570 $as_echo "$as_me: Maths library was not found" >&6;} 63571 63572 fi 63573 63574 LIBM="-lm" 63575 else 63576 LIBM="" 63577 fi 63578 63579 63580 # Setup libdl (for dynamic library loading) 63581 save_LIBS="$LIBS" 63582 LIBS="" 63583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 63584 $as_echo_n "checking for dlopen in -ldl... " >&6; } 63585 if ${ac_cv_lib_dl_dlopen+:} false; then : 63586 $as_echo_n "(cached) " >&6 63587 else 63588 ac_check_lib_save_LIBS=$LIBS 63589 LIBS="-ldl $LIBS" 63590 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 63591 /* end confdefs.h. */ 63592 63593 /* Override any GCC internal prototype to avoid an error. 63594 Use char because int might match the return type of a GCC 63595 builtin and then its argument prototype would still apply. */ 63596 #ifdef __cplusplus 63597 extern "C" 63598 #endif 63599 char dlopen (); 63600 int 63601 main () 63602 { 63603 return dlopen (); 63604 ; 63605 return 0; 63606 } 63607 _ACEOF 63608 if ac_fn_cxx_try_link "$LINENO"; then : 63609 ac_cv_lib_dl_dlopen=yes 63610 else 63611 ac_cv_lib_dl_dlopen=no 63612 fi 63613 rm -f core conftest.err conftest.$ac_objext \ 63614 conftest$ac_exeext conftest.$ac_ext 63615 LIBS=$ac_check_lib_save_LIBS 63616 fi 63617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 63618 $as_echo "$ac_cv_lib_dl_dlopen" >&6; } 63619 if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 63620 cat >>confdefs.h <<_ACEOF 63621 #define HAVE_LIBDL 1 63622 _ACEOF 63623 63624 LIBS="-ldl $LIBS" 63625 63626 fi 63627 63628 LIBDL="$LIBS" 63629 63630 LIBS="$save_LIBS" 63631 63632 # Deprecated libraries, keep the flags for backwards compatibility 63633 if test "x$OPENJDK_TARGET_OS" = "xwindows"; then 63634 63635 63636 # Check whether --with-dxsdk was given. 63637 if test "${with_dxsdk+set}" = set; then : 63638 withval=$with_dxsdk; { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Option --with-dxsdk is deprecated and will be ignored." >&5 63639 $as_echo "$as_me: WARNING: Option --with-dxsdk is deprecated and will be ignored." >&2;} 63640 fi 63641 63642 63643 63644 63645 # Check whether --with-dxsdk-lib was given. 63646 if test "${with_dxsdk_lib+set}" = set; then : 63647 withval=$with_dxsdk_lib; { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Option --with-dxsdk-lib is deprecated and will be ignored." >&5 63648 $as_echo "$as_me: WARNING: Option --with-dxsdk-lib is deprecated and will be ignored." >&2;} 63649 fi 63650 63651 63652 63653 63654 # Check whether --with-dxsdk-include was given. 63655 if test "${with_dxsdk_include+set}" = set; then : 63656 withval=$with_dxsdk_include; { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Option --with-dxsdk-include is deprecated and will be ignored." >&5 63657 $as_echo "$as_me: WARNING: Option --with-dxsdk-include is deprecated and will be ignored." >&2;} 63658 fi 63659 63660 63661 fi 63662 63663 # Control if libzip can use mmap. Available for purposes of overriding. 63664 LIBZIP_CAN_USE_MMAP=true 63665 63666 63667 63668 if test "$OPENJDK_TARGET_OS" = "solaris" && test "x$BUILD_GTEST" = "xtrue"; then 63669 # Find the root of the Solaris Studio installation from the compiler path 63670 SOLARIS_STUDIO_DIR="$(dirname $CC)/.." 63671 STLPORT_LIB="$SOLARIS_STUDIO_DIR/lib/stlport4$OPENJDK_TARGET_CPU_ISADIR/libstlport.so.1" 63672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libstlport.so.1" >&5 63673 $as_echo_n "checking for libstlport.so.1... " >&6; } 63674 if ! test -f "$STLPORT_LIB" && test "x$OPENJDK_TARGET_CPU_ISADIR" = "x/sparcv9"; then 63675 # SS12u3 has libstlport under 'stlport4/v9' instead of 'stlport4/sparcv9' 63676 STLPORT_LIB="$SOLARIS_STUDIO_DIR/lib/stlport4/v9/libstlport.so.1" 63677 fi 63678 if test -f "$STLPORT_LIB"; then 63679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, $STLPORT_LIB" >&5 63680 $as_echo "yes, $STLPORT_LIB" >&6; } 63681 63682 # Only process if variable expands to non-empty 63683 63684 if test "x$STLPORT_LIB" != x; then 63685 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 63686 63687 # Input might be given as Windows format, start by converting to 63688 # unix format. 63689 path="$STLPORT_LIB" 63690 new_path=`$CYGPATH -u "$path"` 63691 63692 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 63693 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 63694 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 63695 # "foo.exe" is OK but "foo" is an error. 63696 # 63697 # This test is therefore slightly more accurate than "test -f" to check for file precense. 63698 # It is also a way to make sure we got the proper file name for the real test later on. 63699 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 63700 if test "x$test_shortpath" = x; then 63701 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of STLPORT_LIB, which resolves as \"$path\", is invalid." >&5 63702 $as_echo "$as_me: The path of STLPORT_LIB, which resolves as \"$path\", is invalid." >&6;} 63703 as_fn_error $? "Cannot locate the the path of STLPORT_LIB" "$LINENO" 5 63704 fi 63705 63706 # Call helper function which possibly converts this using DOS-style short mode. 63707 # If so, the updated path is stored in $new_path. 63708 63709 input_path="$new_path" 63710 # Check if we need to convert this using DOS-style short mode. If the path 63711 # contains just simple characters, use it. Otherwise (spaces, weird characters), 63712 # take no chances and rewrite it. 63713 # Note: m4 eats our [], so we need to use [ and ] instead. 63714 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 63715 if test "x$has_forbidden_chars" != x; then 63716 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 63717 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 63718 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 63719 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 63720 # Going to short mode and back again did indeed matter. Since short mode is 63721 # case insensitive, let's make it lowercase to improve readability. 63722 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 63723 # Now convert it back to Unix-style (cygpath) 63724 input_path=`$CYGPATH -u "$shortmode_path"` 63725 new_path="$input_path" 63726 fi 63727 fi 63728 63729 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 63730 if test "x$test_cygdrive_prefix" = x; then 63731 # As a simple fix, exclude /usr/bin since it's not a real path. 63732 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 63733 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 63734 # a path prefixed by /cygdrive for fixpath to work. 63735 new_path="$CYGWIN_ROOT_PATH$input_path" 63736 fi 63737 fi 63738 63739 63740 if test "x$path" != "x$new_path"; then 63741 STLPORT_LIB="$new_path" 63742 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting STLPORT_LIB to \"$new_path\"" >&5 63743 $as_echo "$as_me: Rewriting STLPORT_LIB to \"$new_path\"" >&6;} 63744 fi 63745 63746 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 63747 63748 path="$STLPORT_LIB" 63749 has_colon=`$ECHO $path | $GREP ^.:` 63750 new_path="$path" 63751 if test "x$has_colon" = x; then 63752 # Not in mixed or Windows style, start by that. 63753 new_path=`cmd //c echo $path` 63754 fi 63755 63756 63757 input_path="$new_path" 63758 # Check if we need to convert this using DOS-style short mode. If the path 63759 # contains just simple characters, use it. Otherwise (spaces, weird characters), 63760 # take no chances and rewrite it. 63761 # Note: m4 eats our [], so we need to use [ and ] instead. 63762 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 63763 if test "x$has_forbidden_chars" != x; then 63764 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 63765 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 63766 fi 63767 63768 63769 windows_path="$new_path" 63770 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 63771 unix_path=`$CYGPATH -u "$windows_path"` 63772 new_path="$unix_path" 63773 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 63774 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 63775 new_path="$unix_path" 63776 fi 63777 63778 if test "x$path" != "x$new_path"; then 63779 STLPORT_LIB="$new_path" 63780 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting STLPORT_LIB to \"$new_path\"" >&5 63781 $as_echo "$as_me: Rewriting STLPORT_LIB to \"$new_path\"" >&6;} 63782 fi 63783 63784 # Save the first 10 bytes of this path to the storage, so fixpath can work. 63785 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 63786 63787 else 63788 # We're on a unix platform. Hooray! :) 63789 path="$STLPORT_LIB" 63790 has_space=`$ECHO "$path" | $GREP " "` 63791 if test "x$has_space" != x; then 63792 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of STLPORT_LIB, which resolves as \"$path\", is invalid." >&5 63793 $as_echo "$as_me: The path of STLPORT_LIB, which resolves as \"$path\", is invalid." >&6;} 63794 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 63795 fi 63796 63797 # Use eval to expand a potential ~ 63798 eval path="$path" 63799 if test ! -f "$path" && test ! -d "$path"; then 63800 as_fn_error $? "The path of STLPORT_LIB, which resolves as \"$path\", is not found." "$LINENO" 5 63801 fi 63802 63803 if test -d "$path"; then 63804 STLPORT_LIB="`cd "$path"; $THEPWDCMD -L`" 63805 else 63806 dir="`$DIRNAME "$path"`" 63807 base="`$BASENAME "$path"`" 63808 STLPORT_LIB="`cd "$dir"; $THEPWDCMD -L`/$base" 63809 fi 63810 fi 63811 fi 63812 63813 else 63814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, not found at $STLPORT_LIB" >&5 63815 $as_echo "no, not found at $STLPORT_LIB" >&6; } 63816 as_fn_error $? "Failed to find libstlport.so.1, cannot build Hotspot gtests" "$LINENO" 5 63817 fi 63818 63819 fi 63820 63821 63822 63823 63824 63825 63826 63827 63828 63829 63830 63831 63832 63833 63834 ############################################################################### 63835 # 63836 # We need to do some final tweaking, when everything else is done. 63837 # 63838 ############################################################################### 63839 63840 63841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if elliptic curve crypto implementation is present" >&5 63842 $as_echo_n "checking if elliptic curve crypto implementation is present... " >&6; } 63843 63844 if test -d "${SRC_ROOT}/jdk/src/jdk.crypto.ec/share/native/libsunec/impl"; then 63845 ENABLE_INTREE_EC=yes 63846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 63847 $as_echo "yes" >&6; } 63848 else 63849 ENABLE_INTREE_EC=no 63850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 63851 $as_echo "no" >&6; } 63852 fi 63853 63854 63855 63856 63857 # Check whether --enable-jtreg-failure-handler was given. 63858 if test "${enable_jtreg_failure_handler+set}" = set; then : 63859 enableval=$enable_jtreg_failure_handler; 63860 fi 63861 63862 63863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if jtreg failure handler should be built" >&5 63864 $as_echo_n "checking if jtreg failure handler should be built... " >&6; } 63865 63866 if test "x$enable_jtreg_failure_handler" = "xyes"; then 63867 if test "x$JT_HOME" = "x"; then 63868 as_fn_error $? "Cannot enable jtreg failure handler without jtreg." "$LINENO" 5 63869 else 63870 BUILD_FAILURE_HANDLER=true 63871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, forced" >&5 63872 $as_echo "yes, forced" >&6; } 63873 fi 63874 elif test "x$enable_jtreg_failure_handler" = "xno"; then 63875 BUILD_FAILURE_HANDLER=false 63876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, forced" >&5 63877 $as_echo "no, forced" >&6; } 63878 elif test "x$enable_jtreg_failure_handler" = "xauto" \ 63879 || test "x$enable_jtreg_failure_handler" = "x"; then 63880 if test "x$JT_HOME" = "x"; then 63881 BUILD_FAILURE_HANDLER=false 63882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, missing jtreg" >&5 63883 $as_echo "no, missing jtreg" >&6; } 63884 else 63885 BUILD_FAILURE_HANDLER=true 63886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, jtreg present" >&5 63887 $as_echo "yes, jtreg present" >&6; } 63888 fi 63889 else 63890 as_fn_error $? "Invalid value for --enable-jtreg-failure-handler: $enable_jtreg_failure_handler" "$LINENO" 5 63891 fi 63892 63893 63894 63895 63896 # Check whether --enable-generate-classlist was given. 63897 if test "${enable_generate_classlist+set}" = set; then : 63898 enableval=$enable_generate_classlist; 63899 fi 63900 63901 63902 # Check if it's likely that it's possible to generate the classlist. Depending 63903 # on exact jvm configuration it could be possible anyway. 63904 if [[ " $JVM_VARIANTS " =~ " server " ]] || [[ " $JVM_VARIANTS " =~ " client " ]] ; then 63905 ENABLE_GENERATE_CLASSLIST_POSSIBLE="true" 63906 else 63907 ENABLE_GENERATE_CLASSLIST_POSSIBLE="false" 63908 fi 63909 63910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the CDS classlist generation should be enabled" >&5 63911 $as_echo_n "checking if the CDS classlist generation should be enabled... " >&6; } 63912 if test "x$enable_generate_classlist" = "xyes"; then 63913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, forced" >&5 63914 $as_echo "yes, forced" >&6; } 63915 ENABLE_GENERATE_CLASSLIST="true" 63916 if test "x$ENABLE_GENERATE_CLASSLIST_POSSIBLE" = "xfalse"; then 63917 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Generation of classlist might not be possible with JVM Variants $JVM_VARIANTS" >&5 63918 $as_echo "$as_me: WARNING: Generation of classlist might not be possible with JVM Variants $JVM_VARIANTS" >&2;} 63919 fi 63920 elif test "x$enable_generate_classlist" = "xno"; then 63921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, forced" >&5 63922 $as_echo "no, forced" >&6; } 63923 ENABLE_GENERATE_CLASSLIST="false" 63924 elif test "x$enable_generate_classlist" = "x"; then 63925 if test "x$ENABLE_GENERATE_CLASSLIST_POSSIBLE" = "xtrue"; then 63926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 63927 $as_echo "yes" >&6; } 63928 ENABLE_GENERATE_CLASSLIST="true" 63929 else 63930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 63931 $as_echo "no" >&6; } 63932 ENABLE_GENERATE_CLASSLIST="false" 63933 fi 63934 else 63935 as_fn_error $? "Invalid value for --enable-generate-classlist: $enable_generate_classlist" "$LINENO" 5 63936 fi 63937 63938 63939 63940 63941 ############################################################################### 63942 # 63943 # Configure parts of the build that only affect the build performance, 63944 # not the result. 63945 # 63946 ############################################################################### 63947 63948 63949 # How many cores do we have on this build system? 63950 63951 # Check whether --with-num-cores was given. 63952 if test "${with_num_cores+set}" = set; then : 63953 withval=$with_num_cores; 63954 fi 63955 63956 if test "x$with_num_cores" = x; then 63957 # The number of cores were not specified, try to probe them. 63958 63959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for number of cores" >&5 63960 $as_echo_n "checking for number of cores... " >&6; } 63961 NUM_CORES=1 63962 FOUND_CORES=no 63963 63964 if test -f /proc/cpuinfo; then 63965 # Looks like a Linux (or cygwin) system 63966 NUM_CORES=`cat /proc/cpuinfo | grep -c processor` 63967 FOUND_CORES=yes 63968 elif test -x /usr/sbin/psrinfo; then 63969 # Looks like a Solaris system 63970 NUM_CORES=`LC_MESSAGES=C /usr/sbin/psrinfo -v | grep -c on-line` 63971 FOUND_CORES=yes 63972 elif test -x /usr/sbin/sysctl; then 63973 # Looks like a MacOSX system 63974 NUM_CORES=`/usr/sbin/sysctl -n hw.ncpu` 63975 FOUND_CORES=yes 63976 elif test "x$OPENJDK_BUILD_OS" = xaix ; then 63977 NUM_CORES=`/usr/sbin/prtconf | grep "^Number Of Processors" | awk '{ print $4 }'` 63978 FOUND_CORES=yes 63979 elif test -n "$NUMBER_OF_PROCESSORS"; then 63980 # On windows, look in the env 63981 NUM_CORES=$NUMBER_OF_PROCESSORS 63982 FOUND_CORES=yes 63983 fi 63984 63985 if test "x$FOUND_CORES" = xyes; then 63986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NUM_CORES" >&5 63987 $as_echo "$NUM_CORES" >&6; } 63988 else 63989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: could not detect number of cores, defaulting to 1" >&5 63990 $as_echo "could not detect number of cores, defaulting to 1" >&6; } 63991 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This will disable all parallelism from build!" >&5 63992 $as_echo "$as_me: WARNING: This will disable all parallelism from build!" >&2;} 63993 fi 63994 63995 else 63996 NUM_CORES=$with_num_cores 63997 fi 63998 63999 64000 64001 # How much memory do we have on this build system? 64002 64003 # Check whether --with-memory-size was given. 64004 if test "${with_memory_size+set}" = set; then : 64005 withval=$with_memory_size; 64006 fi 64007 64008 if test "x$with_memory_size" = x; then 64009 # The memory size was not specified, try to probe it. 64010 64011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for memory size" >&5 64012 $as_echo_n "checking for memory size... " >&6; } 64013 # Default to 1024 MB 64014 MEMORY_SIZE=1024 64015 FOUND_MEM=no 64016 64017 if test -f /proc/meminfo; then 64018 # Looks like a Linux (or cygwin) system 64019 MEMORY_SIZE=`cat /proc/meminfo | grep MemTotal | awk '{print $2}'` 64020 MEMORY_SIZE=`expr $MEMORY_SIZE / 1024` 64021 FOUND_MEM=yes 64022 elif test -x /usr/sbin/prtconf; then 64023 # Looks like a Solaris or AIX system 64024 MEMORY_SIZE=`/usr/sbin/prtconf 2> /dev/null | grep "^Memory [Ss]ize" | awk '{ print $3 }'` 64025 FOUND_MEM=yes 64026 elif test -x /usr/sbin/sysctl; then 64027 # Looks like a MacOSX system 64028 MEMORY_SIZE=`/usr/sbin/sysctl -n hw.memsize` 64029 MEMORY_SIZE=`expr $MEMORY_SIZE / 1024 / 1024` 64030 FOUND_MEM=yes 64031 elif test "x$OPENJDK_BUILD_OS" = xwindows; then 64032 # Windows, but without cygwin 64033 MEMORY_SIZE=`wmic computersystem get totalphysicalmemory -value | grep = | cut -d "=" -f 2-` 64034 MEMORY_SIZE=`expr $MEMORY_SIZE / 1024 / 1024` 64035 FOUND_MEM=yes 64036 fi 64037 64038 if test "x$FOUND_MEM" = xyes; then 64039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MEMORY_SIZE MB" >&5 64040 $as_echo "$MEMORY_SIZE MB" >&6; } 64041 else 64042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: could not detect memory size, defaulting to $MEMORY_SIZE MB" >&5 64043 $as_echo "could not detect memory size, defaulting to $MEMORY_SIZE MB" >&6; } 64044 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This might seriously impact build performance!" >&5 64045 $as_echo "$as_me: WARNING: This might seriously impact build performance!" >&2;} 64046 fi 64047 64048 else 64049 MEMORY_SIZE=$with_memory_size 64050 fi 64051 64052 64053 64054 # Provide a decent default number of parallel jobs for make depending on 64055 # number of cores, amount of memory and machine architecture. 64056 64057 # Check whether --with-jobs was given. 64058 if test "${with_jobs+set}" = set; then : 64059 withval=$with_jobs; 64060 fi 64061 64062 if test "x$with_jobs" = x; then 64063 # Number of jobs was not specified, calculate. 64064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for appropriate number of jobs to run in parallel" >&5 64065 $as_echo_n "checking for appropriate number of jobs to run in parallel... " >&6; } 64066 # Approximate memory in GB. 64067 memory_gb=`expr $MEMORY_SIZE / 1024` 64068 # Pick the lowest of memory in gb and number of cores. 64069 if test "$memory_gb" -lt "$NUM_CORES"; then 64070 JOBS="$memory_gb" 64071 else 64072 JOBS="$NUM_CORES" 64073 fi 64074 if test "$JOBS" -eq "0"; then 64075 JOBS=1 64076 fi 64077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JOBS" >&5 64078 $as_echo "$JOBS" >&6; } 64079 else 64080 JOBS=$with_jobs 64081 fi 64082 64083 64084 64085 # The number of test jobs will be chosen automatically if TEST_JOBS is 0 64086 64087 # Check whether --with-test-jobs was given. 64088 if test "${with_test_jobs+set}" = set; then : 64089 withval=$with_test_jobs; 64090 fi 64091 64092 if test "x$with_test_jobs" = x; then 64093 TEST_JOBS=0 64094 else 64095 TEST_JOBS=$with_test_jobs 64096 fi 64097 64098 64099 64100 # Setup arguments for the boot jdk (after cores and memory have been setup) 64101 64102 ############################################################################## 64103 # 64104 # Specify jvm options for anything that is run with the Boot JDK. 64105 # Not all JVM:s accept the same arguments on the command line. 64106 # 64107 64108 # Check whether --with-boot-jdk-jvmargs was given. 64109 if test "${with_boot_jdk_jvmargs+set}" = set; then : 64110 withval=$with_boot_jdk_jvmargs; 64111 fi 64112 64113 64114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking flags for boot jdk java command " >&5 64115 $as_echo_n "checking flags for boot jdk java command ... " >&6; } 64116 64117 # Disable special log output when a debug build is used as Boot JDK... 64118 64119 $ECHO "Check if jvm arg is ok: -XX:-PrintVMOptions -XX:-UnlockDiagnosticVMOptions -XX:-LogVMOutput" >&5 64120 $ECHO "Command: $JAVA -XX:-PrintVMOptions -XX:-UnlockDiagnosticVMOptions -XX:-LogVMOutput -version" >&5 64121 OUTPUT=`$JAVA -XX:-PrintVMOptions -XX:-UnlockDiagnosticVMOptions -XX:-LogVMOutput -version 2>&1` 64122 FOUND_WARN=`$ECHO "$OUTPUT" | $GREP -i warn` 64123 FOUND_VERSION=`$ECHO $OUTPUT | $GREP " version \""` 64124 if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then 64125 boot_jdk_jvmargs="$boot_jdk_jvmargs -XX:-PrintVMOptions -XX:-UnlockDiagnosticVMOptions -XX:-LogVMOutput" 64126 JVM_ARG_OK=true 64127 else 64128 $ECHO "Arg failed:" >&5 64129 $ECHO "$OUTPUT" >&5 64130 JVM_ARG_OK=false 64131 fi 64132 64133 64134 # Force en-US environment 64135 64136 $ECHO "Check if jvm arg is ok: -Duser.language=en -Duser.country=US" >&5 64137 $ECHO "Command: $JAVA -Duser.language=en -Duser.country=US -version" >&5 64138 OUTPUT=`$JAVA -Duser.language=en -Duser.country=US -version 2>&1` 64139 FOUND_WARN=`$ECHO "$OUTPUT" | $GREP -i warn` 64140 FOUND_VERSION=`$ECHO $OUTPUT | $GREP " version \""` 64141 if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then 64142 boot_jdk_jvmargs="$boot_jdk_jvmargs -Duser.language=en -Duser.country=US" 64143 JVM_ARG_OK=true 64144 else 64145 $ECHO "Arg failed:" >&5 64146 $ECHO "$OUTPUT" >&5 64147 JVM_ARG_OK=false 64148 fi 64149 64150 64151 # Apply user provided options. 64152 64153 $ECHO "Check if jvm arg is ok: $with_boot_jdk_jvmargs" >&5 64154 $ECHO "Command: $JAVA $with_boot_jdk_jvmargs -version" >&5 64155 OUTPUT=`$JAVA $with_boot_jdk_jvmargs -version 2>&1` 64156 FOUND_WARN=`$ECHO "$OUTPUT" | $GREP -i warn` 64157 FOUND_VERSION=`$ECHO $OUTPUT | $GREP " version \""` 64158 if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then 64159 boot_jdk_jvmargs="$boot_jdk_jvmargs $with_boot_jdk_jvmargs" 64160 JVM_ARG_OK=true 64161 else 64162 $ECHO "Arg failed:" >&5 64163 $ECHO "$OUTPUT" >&5 64164 JVM_ARG_OK=false 64165 fi 64166 64167 64168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $boot_jdk_jvmargs" >&5 64169 $as_echo "$boot_jdk_jvmargs" >&6; } 64170 64171 # For now, general JAVA_FLAGS are the same as the boot jdk jvmargs 64172 JAVA_FLAGS=$boot_jdk_jvmargs 64173 64174 64175 64176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking flags for boot jdk java command for big workloads" >&5 64177 $as_echo_n "checking flags for boot jdk java command for big workloads... " >&6; } 64178 64179 # Starting amount of heap memory. 64180 64181 $ECHO "Check if jvm arg is ok: -Xms64M" >&5 64182 $ECHO "Command: $JAVA -Xms64M -version" >&5 64183 OUTPUT=`$JAVA -Xms64M -version 2>&1` 64184 FOUND_WARN=`$ECHO "$OUTPUT" | $GREP -i warn` 64185 FOUND_VERSION=`$ECHO $OUTPUT | $GREP " version \""` 64186 if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then 64187 boot_jdk_jvmargs_big="$boot_jdk_jvmargs_big -Xms64M" 64188 JVM_ARG_OK=true 64189 else 64190 $ECHO "Arg failed:" >&5 64191 $ECHO "$OUTPUT" >&5 64192 JVM_ARG_OK=false 64193 fi 64194 64195 BOOTCYCLE_JVM_ARGS_BIG=-Xms64M 64196 64197 # Maximum amount of heap memory and stack size. 64198 JVM_HEAP_LIMIT_32="1024" 64199 # Running a 64 bit JVM allows for and requires a bigger heap 64200 JVM_HEAP_LIMIT_64="1600" 64201 STACK_SIZE_32=768 64202 STACK_SIZE_64=1536 64203 JVM_HEAP_LIMIT_GLOBAL=`expr $MEMORY_SIZE / 2` 64204 if test "$JVM_HEAP_LIMIT_GLOBAL" -lt "$JVM_HEAP_LIMIT_32"; then 64205 JVM_HEAP_LIMIT_32=$JVM_HEAP_LIMIT_GLOBAL 64206 fi 64207 if test "$JVM_HEAP_LIMIT_GLOBAL" -lt "$JVM_HEAP_LIMIT_64"; then 64208 JVM_HEAP_LIMIT_64=$JVM_HEAP_LIMIT_GLOBAL 64209 fi 64210 if test "$JVM_HEAP_LIMIT_GLOBAL" -lt "512"; then 64211 JVM_HEAP_LIMIT_32=512 64212 JVM_HEAP_LIMIT_64=512 64213 fi 64214 64215 if test "x$BOOT_JDK_BITS" = "x32"; then 64216 STACK_SIZE=$STACK_SIZE_32 64217 JVM_MAX_HEAP=$JVM_HEAP_LIMIT_32 64218 else 64219 STACK_SIZE=$STACK_SIZE_64 64220 JVM_MAX_HEAP=$JVM_HEAP_LIMIT_64 64221 fi 64222 64223 $ECHO "Check if jvm arg is ok: -Xmx${JVM_MAX_HEAP}M" >&5 64224 $ECHO "Command: $JAVA -Xmx${JVM_MAX_HEAP}M -version" >&5 64225 OUTPUT=`$JAVA -Xmx${JVM_MAX_HEAP}M -version 2>&1` 64226 FOUND_WARN=`$ECHO "$OUTPUT" | $GREP -i warn` 64227 FOUND_VERSION=`$ECHO $OUTPUT | $GREP " version \""` 64228 if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then 64229 boot_jdk_jvmargs_big="$boot_jdk_jvmargs_big -Xmx${JVM_MAX_HEAP}M" 64230 JVM_ARG_OK=true 64231 else 64232 $ECHO "Arg failed:" >&5 64233 $ECHO "$OUTPUT" >&5 64234 JVM_ARG_OK=false 64235 fi 64236 64237 64238 $ECHO "Check if jvm arg is ok: -XX:ThreadStackSize=$STACK_SIZE" >&5 64239 $ECHO "Command: $JAVA -XX:ThreadStackSize=$STACK_SIZE -version" >&5 64240 OUTPUT=`$JAVA -XX:ThreadStackSize=$STACK_SIZE -version 2>&1` 64241 FOUND_WARN=`$ECHO "$OUTPUT" | $GREP -i warn` 64242 FOUND_VERSION=`$ECHO $OUTPUT | $GREP " version \""` 64243 if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then 64244 boot_jdk_jvmargs_big="$boot_jdk_jvmargs_big -XX:ThreadStackSize=$STACK_SIZE" 64245 JVM_ARG_OK=true 64246 else 64247 $ECHO "Arg failed:" >&5 64248 $ECHO "$OUTPUT" >&5 64249 JVM_ARG_OK=false 64250 fi 64251 64252 64253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $boot_jdk_jvmargs_big" >&5 64254 $as_echo "$boot_jdk_jvmargs_big" >&6; } 64255 64256 JAVA_FLAGS_BIG=$boot_jdk_jvmargs_big 64257 64258 64259 if test "x$OPENJDK_TARGET_CPU_BITS" = "x32"; then 64260 BOOTCYCLE_MAX_HEAP=$JVM_HEAP_LIMIT_32 64261 BOOTCYCLE_STACK_SIZE=$STACK_SIZE_32 64262 else 64263 BOOTCYCLE_MAX_HEAP=$JVM_HEAP_LIMIT_64 64264 BOOTCYCLE_STACK_SIZE=$STACK_SIZE_64 64265 fi 64266 BOOTCYCLE_JVM_ARGS_BIG="$BOOTCYCLE_JVM_ARGS_BIG -Xmx${BOOTCYCLE_MAX_HEAP}M" 64267 BOOTCYCLE_JVM_ARGS_BIG="$BOOTCYCLE_JVM_ARGS_BIG -XX:ThreadStackSize=$BOOTCYCLE_STACK_SIZE" 64268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking flags for bootcycle boot jdk java command for big workloads" >&5 64269 $as_echo_n "checking flags for bootcycle boot jdk java command for big workloads... " >&6; } 64270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOTCYCLE_JVM_ARGS_BIG" >&5 64271 $as_echo "$BOOTCYCLE_JVM_ARGS_BIG" >&6; } 64272 64273 64274 # By default, the main javac compilations use big 64275 JAVA_FLAGS_JAVAC="$JAVA_FLAGS_BIG" 64276 64277 64278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking flags for boot jdk java command for small workloads" >&5 64279 $as_echo_n "checking flags for boot jdk java command for small workloads... " >&6; } 64280 64281 # Use serial gc for small short lived tools if possible 64282 64283 $ECHO "Check if jvm arg is ok: -XX:+UseSerialGC" >&5 64284 $ECHO "Command: $JAVA -XX:+UseSerialGC -version" >&5 64285 OUTPUT=`$JAVA -XX:+UseSerialGC -version 2>&1` 64286 FOUND_WARN=`$ECHO "$OUTPUT" | $GREP -i warn` 64287 FOUND_VERSION=`$ECHO $OUTPUT | $GREP " version \""` 64288 if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then 64289 boot_jdk_jvmargs_small="$boot_jdk_jvmargs_small -XX:+UseSerialGC" 64290 JVM_ARG_OK=true 64291 else 64292 $ECHO "Arg failed:" >&5 64293 $ECHO "$OUTPUT" >&5 64294 JVM_ARG_OK=false 64295 fi 64296 64297 64298 $ECHO "Check if jvm arg is ok: -Xms32M" >&5 64299 $ECHO "Command: $JAVA -Xms32M -version" >&5 64300 OUTPUT=`$JAVA -Xms32M -version 2>&1` 64301 FOUND_WARN=`$ECHO "$OUTPUT" | $GREP -i warn` 64302 FOUND_VERSION=`$ECHO $OUTPUT | $GREP " version \""` 64303 if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then 64304 boot_jdk_jvmargs_small="$boot_jdk_jvmargs_small -Xms32M" 64305 JVM_ARG_OK=true 64306 else 64307 $ECHO "Arg failed:" >&5 64308 $ECHO "$OUTPUT" >&5 64309 JVM_ARG_OK=false 64310 fi 64311 64312 64313 $ECHO "Check if jvm arg is ok: -Xmx512M" >&5 64314 $ECHO "Command: $JAVA -Xmx512M -version" >&5 64315 OUTPUT=`$JAVA -Xmx512M -version 2>&1` 64316 FOUND_WARN=`$ECHO "$OUTPUT" | $GREP -i warn` 64317 FOUND_VERSION=`$ECHO $OUTPUT | $GREP " version \""` 64318 if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then 64319 boot_jdk_jvmargs_small="$boot_jdk_jvmargs_small -Xmx512M" 64320 JVM_ARG_OK=true 64321 else 64322 $ECHO "Arg failed:" >&5 64323 $ECHO "$OUTPUT" >&5 64324 JVM_ARG_OK=false 64325 fi 64326 64327 64328 $ECHO "Check if jvm arg is ok: -XX:TieredStopAtLevel=1" >&5 64329 $ECHO "Command: $JAVA -XX:TieredStopAtLevel=1 -version" >&5 64330 OUTPUT=`$JAVA -XX:TieredStopAtLevel=1 -version 2>&1` 64331 FOUND_WARN=`$ECHO "$OUTPUT" | $GREP -i warn` 64332 FOUND_VERSION=`$ECHO $OUTPUT | $GREP " version \""` 64333 if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then 64334 boot_jdk_jvmargs_small="$boot_jdk_jvmargs_small -XX:TieredStopAtLevel=1" 64335 JVM_ARG_OK=true 64336 else 64337 $ECHO "Arg failed:" >&5 64338 $ECHO "$OUTPUT" >&5 64339 JVM_ARG_OK=false 64340 fi 64341 64342 64343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $boot_jdk_jvmargs_small" >&5 64344 $as_echo "$boot_jdk_jvmargs_small" >&6; } 64345 64346 JAVA_FLAGS_SMALL=$boot_jdk_jvmargs_small 64347 64348 64349 JAVA_TOOL_FLAGS_SMALL="" 64350 for f in $JAVA_FLAGS_SMALL; do 64351 JAVA_TOOL_FLAGS_SMALL="$JAVA_TOOL_FLAGS_SMALL -J$f" 64352 done 64353 64354 64355 64356 # Setup smart javac (after cores and memory have been setup) 64357 64358 64359 # Check whether --with-sjavac-server-java was given. 64360 if test "${with_sjavac_server_java+set}" = set; then : 64361 withval=$with_sjavac_server_java; 64362 fi 64363 64364 64365 if test "x$with_sjavac_server_java" != x; then 64366 SJAVAC_SERVER_JAVA="$with_sjavac_server_java" 64367 FOUND_VERSION=`$SJAVAC_SERVER_JAVA -version 2>&1 | grep " version \""` 64368 if test "x$FOUND_VERSION" = x; then 64369 as_fn_error $? "Could not execute server java: $SJAVAC_SERVER_JAVA" "$LINENO" 5 64370 fi 64371 else 64372 SJAVAC_SERVER_JAVA="$JAVA" 64373 fi 64374 64375 64376 if test "$MEMORY_SIZE" -gt "3000"; then 64377 64378 $ECHO "Check if jvm arg is ok: -d64" >&5 64379 $ECHO "Command: $SJAVAC_SERVER_JAVA -d64 -version" >&5 64380 OUTPUT=`$SJAVAC_SERVER_JAVA -d64 -version 2>&1` 64381 FOUND_WARN=`$ECHO "$OUTPUT" | $GREP -i warn` 64382 FOUND_VERSION=`$ECHO $OUTPUT | $GREP " version \""` 64383 if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then 64384 SJAVAC_SERVER_JAVA_FLAGS="$SJAVAC_SERVER_JAVA_FLAGS -d64" 64385 JVM_ARG_OK=true 64386 else 64387 $ECHO "Arg failed:" >&5 64388 $ECHO "$OUTPUT" >&5 64389 JVM_ARG_OK=false 64390 fi 64391 64392 if test "$JVM_ARG_OK" = true; then 64393 JVM_64BIT=true 64394 JVM_ARG_OK=false 64395 fi 64396 fi 64397 64398 MX_VALUE=`expr $MEMORY_SIZE / 2` 64399 if test "$JVM_64BIT" = true; then 64400 # Set ms lower than mx since more than one instance of the server might 64401 # get launched at the same time before they figure out which instance won. 64402 MS_VALUE=512 64403 if test "$MX_VALUE" -gt "2048"; then 64404 MX_VALUE=2048 64405 fi 64406 else 64407 MS_VALUE=256 64408 if test "$MX_VALUE" -gt "1500"; then 64409 MX_VALUE=1500 64410 fi 64411 fi 64412 if test "$MX_VALUE" -lt "512"; then 64413 MX_VALUE=512 64414 fi 64415 64416 $ECHO "Check if jvm arg is ok: -Xms${MS_VALUE}M -Xmx${MX_VALUE}M" >&5 64417 $ECHO "Command: $SJAVAC_SERVER_JAVA -Xms${MS_VALUE}M -Xmx${MX_VALUE}M -version" >&5 64418 OUTPUT=`$SJAVAC_SERVER_JAVA -Xms${MS_VALUE}M -Xmx${MX_VALUE}M -version 2>&1` 64419 FOUND_WARN=`$ECHO "$OUTPUT" | $GREP -i warn` 64420 FOUND_VERSION=`$ECHO $OUTPUT | $GREP " version \""` 64421 if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then 64422 SJAVAC_SERVER_JAVA_FLAGS="$SJAVAC_SERVER_JAVA_FLAGS -Xms${MS_VALUE}M -Xmx${MX_VALUE}M" 64423 JVM_ARG_OK=true 64424 else 64425 $ECHO "Arg failed:" >&5 64426 $ECHO "$OUTPUT" >&5 64427 JVM_ARG_OK=false 64428 fi 64429 64430 64431 64432 # Check whether --enable-sjavac was given. 64433 if test "${enable_sjavac+set}" = set; then : 64434 enableval=$enable_sjavac; ENABLE_SJAVAC="${enableval}" 64435 else 64436 ENABLE_SJAVAC="no" 64437 fi 64438 64439 if test "x$JVM_ARG_OK" = "xfalse"; then 64440 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not set -Xms${MS_VALUE}M -Xmx${MX_VALUE}M, disabling sjavac" >&5 64441 $as_echo "$as_me: WARNING: Could not set -Xms${MS_VALUE}M -Xmx${MX_VALUE}M, disabling sjavac" >&2;} 64442 ENABLE_SJAVAC="no" 64443 fi 64444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use sjavac" >&5 64445 $as_echo_n "checking whether to use sjavac... " >&6; } 64446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ENABLE_SJAVAC" >&5 64447 $as_echo "$ENABLE_SJAVAC" >&6; } 64448 64449 64450 # Check whether --enable-javac-server was given. 64451 if test "${enable_javac_server+set}" = set; then : 64452 enableval=$enable_javac_server; ENABLE_JAVAC_SERVER="${enableval}" 64453 else 64454 ENABLE_JAVAC_SERVER="yes" 64455 fi 64456 64457 if test "x$JVM_ARG_OK" = "xfalse"; then 64458 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not set -Xms${MS_VALUE}M -Xmx${MX_VALUE}M, disabling javac server" >&5 64459 $as_echo "$as_me: WARNING: Could not set -Xms${MS_VALUE}M -Xmx${MX_VALUE}M, disabling javac server" >&2;} 64460 ENABLE_JAVAC_SERVER="no" 64461 fi 64462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use javac server" >&5 64463 $as_echo_n "checking whether to use javac server... " >&6; } 64464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ENABLE_JAVAC_SERVER" >&5 64465 $as_echo "$ENABLE_JAVAC_SERVER" >&6; } 64466 64467 64468 if test "x$ENABLE_JAVAC_SERVER" = "xyes" || test "x$ENABLE_SJAVAC" = "xyes"; then 64469 # When using a server javac, the small client instances do not need much 64470 # resources. 64471 JAVA_FLAGS_JAVAC="$JAVA_FLAGS_SMALL" 64472 fi 64473 64474 64475 # Setup use of icecc if requested 64476 64477 # Check whether --enable-icecc was given. 64478 if test "${enable_icecc+set}" = set; then : 64479 enableval=$enable_icecc; 64480 fi 64481 64482 64483 if test "x${enable_icecc}" = "xyes"; then 64484 64485 64486 64487 # Publish this variable in the help. 64488 64489 64490 if [ -z "${ICECC_CMD+x}" ]; then 64491 # The variable is not set by user, try to locate tool using the code snippet 64492 for ac_prog in icecc 64493 do 64494 # Extract the first word of "$ac_prog", so it can be a program name with args. 64495 set dummy $ac_prog; ac_word=$2 64496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 64497 $as_echo_n "checking for $ac_word... " >&6; } 64498 if ${ac_cv_path_ICECC_CMD+:} false; then : 64499 $as_echo_n "(cached) " >&6 64500 else 64501 case $ICECC_CMD in 64502 [\\/]* | ?:[\\/]*) 64503 ac_cv_path_ICECC_CMD="$ICECC_CMD" # Let the user override the test with a path. 64504 ;; 64505 *) 64506 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 64507 for as_dir in $PATH 64508 do 64509 IFS=$as_save_IFS 64510 test -z "$as_dir" && as_dir=. 64511 for ac_exec_ext in '' $ac_executable_extensions; do 64512 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 64513 ac_cv_path_ICECC_CMD="$as_dir/$ac_word$ac_exec_ext" 64514 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 64515 break 2 64516 fi 64517 done 64518 done 64519 IFS=$as_save_IFS 64520 64521 ;; 64522 esac 64523 fi 64524 ICECC_CMD=$ac_cv_path_ICECC_CMD 64525 if test -n "$ICECC_CMD"; then 64526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ICECC_CMD" >&5 64527 $as_echo "$ICECC_CMD" >&6; } 64528 else 64529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 64530 $as_echo "no" >&6; } 64531 fi 64532 64533 64534 test -n "$ICECC_CMD" && break 64535 done 64536 64537 else 64538 # The variable is set, but is it from the command line or the environment? 64539 64540 # Try to remove the string !ICECC_CMD! from our list. 64541 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!ICECC_CMD!/} 64542 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 64543 # If it failed, the variable was not from the command line. Ignore it, 64544 # but warn the user (except for BASH, which is always set by the calling BASH). 64545 if test "xICECC_CMD" != xBASH; then 64546 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of ICECC_CMD from the environment. Use command line variables instead." >&5 64547 $as_echo "$as_me: WARNING: Ignoring value of ICECC_CMD from the environment. Use command line variables instead." >&2;} 64548 fi 64549 # Try to locate tool using the code snippet 64550 for ac_prog in icecc 64551 do 64552 # Extract the first word of "$ac_prog", so it can be a program name with args. 64553 set dummy $ac_prog; ac_word=$2 64554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 64555 $as_echo_n "checking for $ac_word... " >&6; } 64556 if ${ac_cv_path_ICECC_CMD+:} false; then : 64557 $as_echo_n "(cached) " >&6 64558 else 64559 case $ICECC_CMD in 64560 [\\/]* | ?:[\\/]*) 64561 ac_cv_path_ICECC_CMD="$ICECC_CMD" # Let the user override the test with a path. 64562 ;; 64563 *) 64564 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 64565 for as_dir in $PATH 64566 do 64567 IFS=$as_save_IFS 64568 test -z "$as_dir" && as_dir=. 64569 for ac_exec_ext in '' $ac_executable_extensions; do 64570 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 64571 ac_cv_path_ICECC_CMD="$as_dir/$ac_word$ac_exec_ext" 64572 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 64573 break 2 64574 fi 64575 done 64576 done 64577 IFS=$as_save_IFS 64578 64579 ;; 64580 esac 64581 fi 64582 ICECC_CMD=$ac_cv_path_ICECC_CMD 64583 if test -n "$ICECC_CMD"; then 64584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ICECC_CMD" >&5 64585 $as_echo "$ICECC_CMD" >&6; } 64586 else 64587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 64588 $as_echo "no" >&6; } 64589 fi 64590 64591 64592 test -n "$ICECC_CMD" && break 64593 done 64594 64595 else 64596 # If it succeeded, then it was overridden by the user. We will use it 64597 # for the tool. 64598 64599 # First remove it from the list of overridden variables, so we can test 64600 # for unknown variables in the end. 64601 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 64602 64603 # Check if we try to supply an empty value 64604 if test "x$ICECC_CMD" = x; then 64605 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool ICECC_CMD= (no value)" >&5 64606 $as_echo "$as_me: Setting user supplied tool ICECC_CMD= (no value)" >&6;} 64607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ICECC_CMD" >&5 64608 $as_echo_n "checking for ICECC_CMD... " >&6; } 64609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 64610 $as_echo "disabled" >&6; } 64611 else 64612 # Check if the provided tool contains a complete path. 64613 tool_specified="$ICECC_CMD" 64614 tool_basename="${tool_specified##*/}" 64615 if test "x$tool_basename" = "x$tool_specified"; then 64616 # A command without a complete path is provided, search $PATH. 64617 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool ICECC_CMD=$tool_basename" >&5 64618 $as_echo "$as_me: Will search for user supplied tool ICECC_CMD=$tool_basename" >&6;} 64619 # Extract the first word of "$tool_basename", so it can be a program name with args. 64620 set dummy $tool_basename; ac_word=$2 64621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 64622 $as_echo_n "checking for $ac_word... " >&6; } 64623 if ${ac_cv_path_ICECC_CMD+:} false; then : 64624 $as_echo_n "(cached) " >&6 64625 else 64626 case $ICECC_CMD in 64627 [\\/]* | ?:[\\/]*) 64628 ac_cv_path_ICECC_CMD="$ICECC_CMD" # Let the user override the test with a path. 64629 ;; 64630 *) 64631 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 64632 for as_dir in $PATH 64633 do 64634 IFS=$as_save_IFS 64635 test -z "$as_dir" && as_dir=. 64636 for ac_exec_ext in '' $ac_executable_extensions; do 64637 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 64638 ac_cv_path_ICECC_CMD="$as_dir/$ac_word$ac_exec_ext" 64639 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 64640 break 2 64641 fi 64642 done 64643 done 64644 IFS=$as_save_IFS 64645 64646 ;; 64647 esac 64648 fi 64649 ICECC_CMD=$ac_cv_path_ICECC_CMD 64650 if test -n "$ICECC_CMD"; then 64651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ICECC_CMD" >&5 64652 $as_echo "$ICECC_CMD" >&6; } 64653 else 64654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 64655 $as_echo "no" >&6; } 64656 fi 64657 64658 64659 if test "x$ICECC_CMD" = x; then 64660 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 64661 fi 64662 else 64663 # Otherwise we believe it is a complete path. Use it as it is. 64664 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool ICECC_CMD=$tool_specified" >&5 64665 $as_echo "$as_me: Will use user supplied tool ICECC_CMD=$tool_specified" >&6;} 64666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ICECC_CMD" >&5 64667 $as_echo_n "checking for ICECC_CMD... " >&6; } 64668 if test ! -x "$tool_specified"; then 64669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 64670 $as_echo "not found" >&6; } 64671 as_fn_error $? "User supplied tool ICECC_CMD=$tool_specified does not exist or is not executable" "$LINENO" 5 64672 fi 64673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 64674 $as_echo "$tool_specified" >&6; } 64675 fi 64676 fi 64677 fi 64678 64679 fi 64680 64681 64682 64683 if test "x$ICECC_CMD" = x; then 64684 as_fn_error $? "Could not find required tool for ICECC_CMD" "$LINENO" 5 64685 fi 64686 64687 64688 old_path="$PATH" 64689 64690 # Look for icecc-create-env in some known places 64691 PATH="$PATH:/usr/lib/icecc:/usr/lib64/icecc" 64692 64693 64694 64695 # Publish this variable in the help. 64696 64697 64698 if [ -z "${ICECC_CREATE_ENV+x}" ]; then 64699 # The variable is not set by user, try to locate tool using the code snippet 64700 for ac_prog in icecc-create-env 64701 do 64702 # Extract the first word of "$ac_prog", so it can be a program name with args. 64703 set dummy $ac_prog; ac_word=$2 64704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 64705 $as_echo_n "checking for $ac_word... " >&6; } 64706 if ${ac_cv_path_ICECC_CREATE_ENV+:} false; then : 64707 $as_echo_n "(cached) " >&6 64708 else 64709 case $ICECC_CREATE_ENV in 64710 [\\/]* | ?:[\\/]*) 64711 ac_cv_path_ICECC_CREATE_ENV="$ICECC_CREATE_ENV" # Let the user override the test with a path. 64712 ;; 64713 *) 64714 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 64715 for as_dir in $PATH 64716 do 64717 IFS=$as_save_IFS 64718 test -z "$as_dir" && as_dir=. 64719 for ac_exec_ext in '' $ac_executable_extensions; do 64720 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 64721 ac_cv_path_ICECC_CREATE_ENV="$as_dir/$ac_word$ac_exec_ext" 64722 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 64723 break 2 64724 fi 64725 done 64726 done 64727 IFS=$as_save_IFS 64728 64729 ;; 64730 esac 64731 fi 64732 ICECC_CREATE_ENV=$ac_cv_path_ICECC_CREATE_ENV 64733 if test -n "$ICECC_CREATE_ENV"; then 64734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ICECC_CREATE_ENV" >&5 64735 $as_echo "$ICECC_CREATE_ENV" >&6; } 64736 else 64737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 64738 $as_echo "no" >&6; } 64739 fi 64740 64741 64742 test -n "$ICECC_CREATE_ENV" && break 64743 done 64744 64745 else 64746 # The variable is set, but is it from the command line or the environment? 64747 64748 # Try to remove the string !ICECC_CREATE_ENV! from our list. 64749 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!ICECC_CREATE_ENV!/} 64750 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 64751 # If it failed, the variable was not from the command line. Ignore it, 64752 # but warn the user (except for BASH, which is always set by the calling BASH). 64753 if test "xICECC_CREATE_ENV" != xBASH; then 64754 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of ICECC_CREATE_ENV from the environment. Use command line variables instead." >&5 64755 $as_echo "$as_me: WARNING: Ignoring value of ICECC_CREATE_ENV from the environment. Use command line variables instead." >&2;} 64756 fi 64757 # Try to locate tool using the code snippet 64758 for ac_prog in icecc-create-env 64759 do 64760 # Extract the first word of "$ac_prog", so it can be a program name with args. 64761 set dummy $ac_prog; ac_word=$2 64762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 64763 $as_echo_n "checking for $ac_word... " >&6; } 64764 if ${ac_cv_path_ICECC_CREATE_ENV+:} false; then : 64765 $as_echo_n "(cached) " >&6 64766 else 64767 case $ICECC_CREATE_ENV in 64768 [\\/]* | ?:[\\/]*) 64769 ac_cv_path_ICECC_CREATE_ENV="$ICECC_CREATE_ENV" # Let the user override the test with a path. 64770 ;; 64771 *) 64772 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 64773 for as_dir in $PATH 64774 do 64775 IFS=$as_save_IFS 64776 test -z "$as_dir" && as_dir=. 64777 for ac_exec_ext in '' $ac_executable_extensions; do 64778 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 64779 ac_cv_path_ICECC_CREATE_ENV="$as_dir/$ac_word$ac_exec_ext" 64780 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 64781 break 2 64782 fi 64783 done 64784 done 64785 IFS=$as_save_IFS 64786 64787 ;; 64788 esac 64789 fi 64790 ICECC_CREATE_ENV=$ac_cv_path_ICECC_CREATE_ENV 64791 if test -n "$ICECC_CREATE_ENV"; then 64792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ICECC_CREATE_ENV" >&5 64793 $as_echo "$ICECC_CREATE_ENV" >&6; } 64794 else 64795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 64796 $as_echo "no" >&6; } 64797 fi 64798 64799 64800 test -n "$ICECC_CREATE_ENV" && break 64801 done 64802 64803 else 64804 # If it succeeded, then it was overridden by the user. We will use it 64805 # for the tool. 64806 64807 # First remove it from the list of overridden variables, so we can test 64808 # for unknown variables in the end. 64809 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 64810 64811 # Check if we try to supply an empty value 64812 if test "x$ICECC_CREATE_ENV" = x; then 64813 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool ICECC_CREATE_ENV= (no value)" >&5 64814 $as_echo "$as_me: Setting user supplied tool ICECC_CREATE_ENV= (no value)" >&6;} 64815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ICECC_CREATE_ENV" >&5 64816 $as_echo_n "checking for ICECC_CREATE_ENV... " >&6; } 64817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 64818 $as_echo "disabled" >&6; } 64819 else 64820 # Check if the provided tool contains a complete path. 64821 tool_specified="$ICECC_CREATE_ENV" 64822 tool_basename="${tool_specified##*/}" 64823 if test "x$tool_basename" = "x$tool_specified"; then 64824 # A command without a complete path is provided, search $PATH. 64825 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool ICECC_CREATE_ENV=$tool_basename" >&5 64826 $as_echo "$as_me: Will search for user supplied tool ICECC_CREATE_ENV=$tool_basename" >&6;} 64827 # Extract the first word of "$tool_basename", so it can be a program name with args. 64828 set dummy $tool_basename; ac_word=$2 64829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 64830 $as_echo_n "checking for $ac_word... " >&6; } 64831 if ${ac_cv_path_ICECC_CREATE_ENV+:} false; then : 64832 $as_echo_n "(cached) " >&6 64833 else 64834 case $ICECC_CREATE_ENV in 64835 [\\/]* | ?:[\\/]*) 64836 ac_cv_path_ICECC_CREATE_ENV="$ICECC_CREATE_ENV" # Let the user override the test with a path. 64837 ;; 64838 *) 64839 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 64840 for as_dir in $PATH 64841 do 64842 IFS=$as_save_IFS 64843 test -z "$as_dir" && as_dir=. 64844 for ac_exec_ext in '' $ac_executable_extensions; do 64845 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 64846 ac_cv_path_ICECC_CREATE_ENV="$as_dir/$ac_word$ac_exec_ext" 64847 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 64848 break 2 64849 fi 64850 done 64851 done 64852 IFS=$as_save_IFS 64853 64854 ;; 64855 esac 64856 fi 64857 ICECC_CREATE_ENV=$ac_cv_path_ICECC_CREATE_ENV 64858 if test -n "$ICECC_CREATE_ENV"; then 64859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ICECC_CREATE_ENV" >&5 64860 $as_echo "$ICECC_CREATE_ENV" >&6; } 64861 else 64862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 64863 $as_echo "no" >&6; } 64864 fi 64865 64866 64867 if test "x$ICECC_CREATE_ENV" = x; then 64868 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 64869 fi 64870 else 64871 # Otherwise we believe it is a complete path. Use it as it is. 64872 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool ICECC_CREATE_ENV=$tool_specified" >&5 64873 $as_echo "$as_me: Will use user supplied tool ICECC_CREATE_ENV=$tool_specified" >&6;} 64874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ICECC_CREATE_ENV" >&5 64875 $as_echo_n "checking for ICECC_CREATE_ENV... " >&6; } 64876 if test ! -x "$tool_specified"; then 64877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 64878 $as_echo "not found" >&6; } 64879 as_fn_error $? "User supplied tool ICECC_CREATE_ENV=$tool_specified does not exist or is not executable" "$LINENO" 5 64880 fi 64881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 64882 $as_echo "$tool_specified" >&6; } 64883 fi 64884 fi 64885 fi 64886 64887 fi 64888 64889 64890 64891 if test "x$ICECC_CREATE_ENV" = x; then 64892 as_fn_error $? "Could not find required tool for ICECC_CREATE_ENV" "$LINENO" 5 64893 fi 64894 64895 64896 # Use icecc-create-env to create a minimal compilation environment that can 64897 # be sent to the other hosts in the icecream cluster. 64898 icecc_create_env_log="${CONFIGURESUPPORT_OUTPUTDIR}/icecc/icecc_create_env.log" 64899 ${MKDIR} -p ${CONFIGURESUPPORT_OUTPUTDIR}/icecc 64900 # Older versions of icecc does not have the --gcc parameter 64901 if ${ICECC_CREATE_ENV} | $GREP -q -e --gcc; then 64902 icecc_gcc_arg="--gcc" 64903 fi 64904 if test "x${TOOLCHAIN_TYPE}" = "xgcc"; then 64905 64906 ( cd ${CONFIGURESUPPORT_OUTPUTDIR}/icecc \ 64907 && ${ICECC_CREATE_ENV} ${icecc_gcc_arg} ${CC} ${CXX} > \ 64908 ${icecc_create_env_log} 2>&1 ) 64909 if test "$?" != "0"; then 64910 { $as_echo "$as_me:${as_lineno-$LINENO}: icecc-create-env output:" >&5 64911 $as_echo "$as_me: icecc-create-env output:" >&6;} 64912 cat \ 64913 ${icecc_create_env_log} 64914 as_fn_error $? "Failed to create icecc compiler environment" "$LINENO" 5 64915 fi 64916 64917 elif test "x$TOOLCHAIN_TYPE" = "xclang"; then 64918 # For clang, the icecc compilerwrapper is needed. It usually resides next 64919 # to icecc-create-env. 64920 64921 64922 64923 # Publish this variable in the help. 64924 64925 64926 if [ -z "${ICECC_WRAPPER+x}" ]; then 64927 # The variable is not set by user, try to locate tool using the code snippet 64928 for ac_prog in compilerwrapper 64929 do 64930 # Extract the first word of "$ac_prog", so it can be a program name with args. 64931 set dummy $ac_prog; ac_word=$2 64932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 64933 $as_echo_n "checking for $ac_word... " >&6; } 64934 if ${ac_cv_path_ICECC_WRAPPER+:} false; then : 64935 $as_echo_n "(cached) " >&6 64936 else 64937 case $ICECC_WRAPPER in 64938 [\\/]* | ?:[\\/]*) 64939 ac_cv_path_ICECC_WRAPPER="$ICECC_WRAPPER" # Let the user override the test with a path. 64940 ;; 64941 *) 64942 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 64943 for as_dir in $PATH 64944 do 64945 IFS=$as_save_IFS 64946 test -z "$as_dir" && as_dir=. 64947 for ac_exec_ext in '' $ac_executable_extensions; do 64948 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 64949 ac_cv_path_ICECC_WRAPPER="$as_dir/$ac_word$ac_exec_ext" 64950 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 64951 break 2 64952 fi 64953 done 64954 done 64955 IFS=$as_save_IFS 64956 64957 ;; 64958 esac 64959 fi 64960 ICECC_WRAPPER=$ac_cv_path_ICECC_WRAPPER 64961 if test -n "$ICECC_WRAPPER"; then 64962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ICECC_WRAPPER" >&5 64963 $as_echo "$ICECC_WRAPPER" >&6; } 64964 else 64965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 64966 $as_echo "no" >&6; } 64967 fi 64968 64969 64970 test -n "$ICECC_WRAPPER" && break 64971 done 64972 64973 else 64974 # The variable is set, but is it from the command line or the environment? 64975 64976 # Try to remove the string !ICECC_WRAPPER! from our list. 64977 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!ICECC_WRAPPER!/} 64978 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 64979 # If it failed, the variable was not from the command line. Ignore it, 64980 # but warn the user (except for BASH, which is always set by the calling BASH). 64981 if test "xICECC_WRAPPER" != xBASH; then 64982 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of ICECC_WRAPPER from the environment. Use command line variables instead." >&5 64983 $as_echo "$as_me: WARNING: Ignoring value of ICECC_WRAPPER from the environment. Use command line variables instead." >&2;} 64984 fi 64985 # Try to locate tool using the code snippet 64986 for ac_prog in compilerwrapper 64987 do 64988 # Extract the first word of "$ac_prog", so it can be a program name with args. 64989 set dummy $ac_prog; ac_word=$2 64990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 64991 $as_echo_n "checking for $ac_word... " >&6; } 64992 if ${ac_cv_path_ICECC_WRAPPER+:} false; then : 64993 $as_echo_n "(cached) " >&6 64994 else 64995 case $ICECC_WRAPPER in 64996 [\\/]* | ?:[\\/]*) 64997 ac_cv_path_ICECC_WRAPPER="$ICECC_WRAPPER" # Let the user override the test with a path. 64998 ;; 64999 *) 65000 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 65001 for as_dir in $PATH 65002 do 65003 IFS=$as_save_IFS 65004 test -z "$as_dir" && as_dir=. 65005 for ac_exec_ext in '' $ac_executable_extensions; do 65006 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 65007 ac_cv_path_ICECC_WRAPPER="$as_dir/$ac_word$ac_exec_ext" 65008 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 65009 break 2 65010 fi 65011 done 65012 done 65013 IFS=$as_save_IFS 65014 65015 ;; 65016 esac 65017 fi 65018 ICECC_WRAPPER=$ac_cv_path_ICECC_WRAPPER 65019 if test -n "$ICECC_WRAPPER"; then 65020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ICECC_WRAPPER" >&5 65021 $as_echo "$ICECC_WRAPPER" >&6; } 65022 else 65023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 65024 $as_echo "no" >&6; } 65025 fi 65026 65027 65028 test -n "$ICECC_WRAPPER" && break 65029 done 65030 65031 else 65032 # If it succeeded, then it was overridden by the user. We will use it 65033 # for the tool. 65034 65035 # First remove it from the list of overridden variables, so we can test 65036 # for unknown variables in the end. 65037 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 65038 65039 # Check if we try to supply an empty value 65040 if test "x$ICECC_WRAPPER" = x; then 65041 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool ICECC_WRAPPER= (no value)" >&5 65042 $as_echo "$as_me: Setting user supplied tool ICECC_WRAPPER= (no value)" >&6;} 65043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ICECC_WRAPPER" >&5 65044 $as_echo_n "checking for ICECC_WRAPPER... " >&6; } 65045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 65046 $as_echo "disabled" >&6; } 65047 else 65048 # Check if the provided tool contains a complete path. 65049 tool_specified="$ICECC_WRAPPER" 65050 tool_basename="${tool_specified##*/}" 65051 if test "x$tool_basename" = "x$tool_specified"; then 65052 # A command without a complete path is provided, search $PATH. 65053 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool ICECC_WRAPPER=$tool_basename" >&5 65054 $as_echo "$as_me: Will search for user supplied tool ICECC_WRAPPER=$tool_basename" >&6;} 65055 # Extract the first word of "$tool_basename", so it can be a program name with args. 65056 set dummy $tool_basename; ac_word=$2 65057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 65058 $as_echo_n "checking for $ac_word... " >&6; } 65059 if ${ac_cv_path_ICECC_WRAPPER+:} false; then : 65060 $as_echo_n "(cached) " >&6 65061 else 65062 case $ICECC_WRAPPER in 65063 [\\/]* | ?:[\\/]*) 65064 ac_cv_path_ICECC_WRAPPER="$ICECC_WRAPPER" # Let the user override the test with a path. 65065 ;; 65066 *) 65067 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 65068 for as_dir in $PATH 65069 do 65070 IFS=$as_save_IFS 65071 test -z "$as_dir" && as_dir=. 65072 for ac_exec_ext in '' $ac_executable_extensions; do 65073 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 65074 ac_cv_path_ICECC_WRAPPER="$as_dir/$ac_word$ac_exec_ext" 65075 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 65076 break 2 65077 fi 65078 done 65079 done 65080 IFS=$as_save_IFS 65081 65082 ;; 65083 esac 65084 fi 65085 ICECC_WRAPPER=$ac_cv_path_ICECC_WRAPPER 65086 if test -n "$ICECC_WRAPPER"; then 65087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ICECC_WRAPPER" >&5 65088 $as_echo "$ICECC_WRAPPER" >&6; } 65089 else 65090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 65091 $as_echo "no" >&6; } 65092 fi 65093 65094 65095 if test "x$ICECC_WRAPPER" = x; then 65096 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 65097 fi 65098 else 65099 # Otherwise we believe it is a complete path. Use it as it is. 65100 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool ICECC_WRAPPER=$tool_specified" >&5 65101 $as_echo "$as_me: Will use user supplied tool ICECC_WRAPPER=$tool_specified" >&6;} 65102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ICECC_WRAPPER" >&5 65103 $as_echo_n "checking for ICECC_WRAPPER... " >&6; } 65104 if test ! -x "$tool_specified"; then 65105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 65106 $as_echo "not found" >&6; } 65107 as_fn_error $? "User supplied tool ICECC_WRAPPER=$tool_specified does not exist or is not executable" "$LINENO" 5 65108 fi 65109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 65110 $as_echo "$tool_specified" >&6; } 65111 fi 65112 fi 65113 fi 65114 65115 fi 65116 65117 65118 65119 if test "x$ICECC_WRAPPER" = x; then 65120 as_fn_error $? "Could not find required tool for ICECC_WRAPPER" "$LINENO" 5 65121 fi 65122 65123 65124 65125 ( cd ${CONFIGURESUPPORT_OUTPUTDIR}/icecc \ 65126 && ${ICECC_CREATE_ENV} --clang ${CC} ${ICECC_WRAPPER} > ${icecc_create_env_log} 2>&1 ) 65127 if test "$?" != "0"; then 65128 { $as_echo "$as_me:${as_lineno-$LINENO}: icecc-create-env output:" >&5 65129 $as_echo "$as_me: icecc-create-env output:" >&6;} 65130 cat ${icecc_create_env_log} 65131 as_fn_error $? "Failed to create icecc compiler environment" "$LINENO" 5 65132 fi 65133 65134 else 65135 as_fn_error $? "Can only create icecc compiler packages for toolchain types gcc and clang" "$LINENO" 5 65136 fi 65137 PATH="$old_path" 65138 # The bundle with the compiler gets a name based on checksums. Parse log file 65139 # to find it. 65140 ICECC_ENV_BUNDLE_BASENAME="`${SED} -n '/^creating/s/creating //p' ${icecc_create_env_log}`" 65141 ICECC_ENV_BUNDLE="${CONFIGURESUPPORT_OUTPUTDIR}/icecc/${ICECC_ENV_BUNDLE_BASENAME}" 65142 if test ! -f ${ICECC_ENV_BUNDLE}; then 65143 as_fn_error $? "icecc-create-env did not produce an environment ${ICECC_ENV_BUNDLE}" "$LINENO" 5 65144 fi 65145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for icecc build environment for target compiler" >&5 65146 $as_echo_n "checking for icecc build environment for target compiler... " >&6; } 65147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ICECC_ENV_BUNDLE}" >&5 65148 $as_echo "${ICECC_ENV_BUNDLE}" >&6; } 65149 ICECC="ICECC_VERSION=${ICECC_ENV_BUNDLE} ICECC_CC=${CC} ICECC_CXX=${CXX} ${ICECC_CMD}" 65150 65151 if test "x${COMPILE_TYPE}" = "xcross"; then 65152 # If cross compiling, create a separate env package for the build compiler 65153 # Assume "gcc" or "cc" is gcc and "clang" is clang. Otherwise bail. 65154 icecc_create_env_log_build="${CONFIGURESUPPORT_OUTPUTDIR}/icecc/icecc_create_env_build.log" 65155 if test "x${BUILD_CC##*/}" = "xgcc" || test "x${BUILD_CC##*/}" = "xcc"; then 65156 65157 ( cd ${CONFIGURESUPPORT_OUTPUTDIR}/icecc \ 65158 && ${ICECC_CREATE_ENV} ${icecc_gcc_arg} ${BUILD_CC} ${BUILD_CXX} > \ 65159 ${icecc_create_env_log_build} 2>&1 ) 65160 if test "$?" != "0"; then 65161 { $as_echo "$as_me:${as_lineno-$LINENO}: icecc-create-env output:" >&5 65162 $as_echo "$as_me: icecc-create-env output:" >&6;} 65163 cat \ 65164 ${icecc_create_env_log_build} 65165 as_fn_error $? "Failed to create icecc compiler environment" "$LINENO" 5 65166 fi 65167 65168 elif test "x${BUILD_CC##*/}" = "xclang"; then 65169 65170 ( cd ${CONFIGURESUPPORT_OUTPUTDIR}/icecc \ 65171 && ${ICECC_CREATE_ENV} --clang ${BUILD_CC} ${ICECC_WRAPPER} > ${icecc_create_env_log_build} 2>&1 ) 65172 if test "$?" != "0"; then 65173 { $as_echo "$as_me:${as_lineno-$LINENO}: icecc-create-env output:" >&5 65174 $as_echo "$as_me: icecc-create-env output:" >&6;} 65175 cat ${icecc_create_env_log_build} 65176 as_fn_error $? "Failed to create icecc compiler environment" "$LINENO" 5 65177 fi 65178 65179 else 65180 as_fn_error $? "Cannot create icecc compiler package for ${BUILD_CC}" "$LINENO" 5 65181 fi 65182 ICECC_ENV_BUNDLE_BASENAME="`${SED} -n '/^creating/s/creating //p' ${icecc_create_env_log_build}`" 65183 ICECC_ENV_BUNDLE="${CONFIGURESUPPORT_OUTPUTDIR}/icecc/${ICECC_ENV_BUNDLE_BASENAME}" 65184 if test ! -f ${ICECC_ENV_BUNDLE}; then 65185 as_fn_error $? "icecc-create-env did not produce an environment ${ICECC_ENV_BUNDLE}" "$LINENO" 5 65186 fi 65187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for icecc build environment for build compiler" >&5 65188 $as_echo_n "checking for icecc build environment for build compiler... " >&6; } 65189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ICECC_ENV_BUNDLE}" >&5 65190 $as_echo "${ICECC_ENV_BUNDLE}" >&6; } 65191 BUILD_ICECC="ICECC_VERSION=${ICECC_ENV_BUNDLE} ICECC_CC=${BUILD_CC} \ 65192 ICECC_CXX=${BUILD_CXX} ${ICECC_CMD}" 65193 else 65194 BUILD_ICECC="${ICECC}" 65195 fi 65196 65197 65198 fi 65199 65200 65201 # Can the C/C++ compiler use precompiled headers? 65202 65203 65204 ############################################################################### 65205 # 65206 # Can the C/C++ compiler use precompiled headers? 65207 # 65208 # Check whether --enable-precompiled-headers was given. 65209 if test "${enable_precompiled_headers+set}" = set; then : 65210 enableval=$enable_precompiled_headers; ENABLE_PRECOMPH=${enable_precompiled_headers} 65211 else 65212 ENABLE_PRECOMPH=yes 65213 fi 65214 65215 65216 USE_PRECOMPILED_HEADER=1 65217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking If precompiled header is enabled" >&5 65218 $as_echo_n "checking If precompiled header is enabled... " >&6; } 65219 if test "x$ENABLE_PRECOMPH" = xno; then 65220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, forced" >&5 65221 $as_echo "no, forced" >&6; } 65222 USE_PRECOMPILED_HEADER=0 65223 elif test "x$ICECC" != "x"; then 65224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, does not work effectively with icecc" >&5 65225 $as_echo "no, does not work effectively with icecc" >&6; } 65226 USE_PRECOMPILED_HEADER=0 65227 elif test "x$TOOLCHAIN_TYPE" = xsolstudio; then 65228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, does not work with Solaris Studio" >&5 65229 $as_echo "no, does not work with Solaris Studio" >&6; } 65230 USE_PRECOMPILED_HEADER=0 65231 elif test "x$TOOLCHAIN_TYPE" = xxlc; then 65232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, does not work with xlc" >&5 65233 $as_echo "no, does not work with xlc" >&6; } 65234 USE_PRECOMPILED_HEADER=0 65235 else 65236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 65237 $as_echo "yes" >&6; } 65238 fi 65239 65240 if test "x$ENABLE_PRECOMPH" = xyes; then 65241 # Check that the compiler actually supports precomp headers. 65242 if test "x$TOOLCHAIN_TYPE" = xgcc; then 65243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that precompiled headers work" >&5 65244 $as_echo_n "checking that precompiled headers work... " >&6; } 65245 echo "int alfa();" > conftest.h 65246 $CXX -x c++-header conftest.h -o conftest.hpp.gch 2>&5 >&5 65247 if test ! -f conftest.hpp.gch; then 65248 USE_PRECOMPILED_HEADER=0 65249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 65250 $as_echo "no" >&6; } 65251 else 65252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 65253 $as_echo "yes" >&6; } 65254 fi 65255 $RM conftest.h conftest.hpp.gch 65256 fi 65257 fi 65258 65259 65260 65261 65262 # Setup use of ccache, if available 65263 65264 # Check whether --enable-ccache was given. 65265 if test "${enable_ccache+set}" = set; then : 65266 enableval=$enable_ccache; 65267 fi 65268 65269 65270 CCACHE_STATUS= 65271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking is ccache enabled" >&5 65272 $as_echo_n "checking is ccache enabled... " >&6; } 65273 if test "x$enable_ccache" = xyes; then 65274 if test "x$TOOLCHAIN_TYPE" = "xgcc" -o "x$TOOLCHAIN_TYPE" = "xclang"; then 65275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 65276 $as_echo "yes" >&6; } 65277 OLD_PATH="$PATH" 65278 if test "x$TOOLCHAIN_PATH" != x; then 65279 PATH=$TOOLCHAIN_PATH:$PATH 65280 fi 65281 65282 65283 65284 # Publish this variable in the help. 65285 65286 65287 if [ -z "${CCACHE+x}" ]; then 65288 # The variable is not set by user, try to locate tool using the code snippet 65289 for ac_prog in ccache 65290 do 65291 # Extract the first word of "$ac_prog", so it can be a program name with args. 65292 set dummy $ac_prog; ac_word=$2 65293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 65294 $as_echo_n "checking for $ac_word... " >&6; } 65295 if ${ac_cv_path_CCACHE+:} false; then : 65296 $as_echo_n "(cached) " >&6 65297 else 65298 case $CCACHE in 65299 [\\/]* | ?:[\\/]*) 65300 ac_cv_path_CCACHE="$CCACHE" # Let the user override the test with a path. 65301 ;; 65302 *) 65303 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 65304 for as_dir in $PATH 65305 do 65306 IFS=$as_save_IFS 65307 test -z "$as_dir" && as_dir=. 65308 for ac_exec_ext in '' $ac_executable_extensions; do 65309 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 65310 ac_cv_path_CCACHE="$as_dir/$ac_word$ac_exec_ext" 65311 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 65312 break 2 65313 fi 65314 done 65315 done 65316 IFS=$as_save_IFS 65317 65318 ;; 65319 esac 65320 fi 65321 CCACHE=$ac_cv_path_CCACHE 65322 if test -n "$CCACHE"; then 65323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CCACHE" >&5 65324 $as_echo "$CCACHE" >&6; } 65325 else 65326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 65327 $as_echo "no" >&6; } 65328 fi 65329 65330 65331 test -n "$CCACHE" && break 65332 done 65333 65334 else 65335 # The variable is set, but is it from the command line or the environment? 65336 65337 # Try to remove the string !CCACHE! from our list. 65338 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CCACHE!/} 65339 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 65340 # If it failed, the variable was not from the command line. Ignore it, 65341 # but warn the user (except for BASH, which is always set by the calling BASH). 65342 if test "xCCACHE" != xBASH; then 65343 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CCACHE from the environment. Use command line variables instead." >&5 65344 $as_echo "$as_me: WARNING: Ignoring value of CCACHE from the environment. Use command line variables instead." >&2;} 65345 fi 65346 # Try to locate tool using the code snippet 65347 for ac_prog in ccache 65348 do 65349 # Extract the first word of "$ac_prog", so it can be a program name with args. 65350 set dummy $ac_prog; ac_word=$2 65351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 65352 $as_echo_n "checking for $ac_word... " >&6; } 65353 if ${ac_cv_path_CCACHE+:} false; then : 65354 $as_echo_n "(cached) " >&6 65355 else 65356 case $CCACHE in 65357 [\\/]* | ?:[\\/]*) 65358 ac_cv_path_CCACHE="$CCACHE" # Let the user override the test with a path. 65359 ;; 65360 *) 65361 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 65362 for as_dir in $PATH 65363 do 65364 IFS=$as_save_IFS 65365 test -z "$as_dir" && as_dir=. 65366 for ac_exec_ext in '' $ac_executable_extensions; do 65367 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 65368 ac_cv_path_CCACHE="$as_dir/$ac_word$ac_exec_ext" 65369 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 65370 break 2 65371 fi 65372 done 65373 done 65374 IFS=$as_save_IFS 65375 65376 ;; 65377 esac 65378 fi 65379 CCACHE=$ac_cv_path_CCACHE 65380 if test -n "$CCACHE"; then 65381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CCACHE" >&5 65382 $as_echo "$CCACHE" >&6; } 65383 else 65384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 65385 $as_echo "no" >&6; } 65386 fi 65387 65388 65389 test -n "$CCACHE" && break 65390 done 65391 65392 else 65393 # If it succeeded, then it was overridden by the user. We will use it 65394 # for the tool. 65395 65396 # First remove it from the list of overridden variables, so we can test 65397 # for unknown variables in the end. 65398 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 65399 65400 # Check if we try to supply an empty value 65401 if test "x$CCACHE" = x; then 65402 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool CCACHE= (no value)" >&5 65403 $as_echo "$as_me: Setting user supplied tool CCACHE= (no value)" >&6;} 65404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CCACHE" >&5 65405 $as_echo_n "checking for CCACHE... " >&6; } 65406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 65407 $as_echo "disabled" >&6; } 65408 else 65409 # Check if the provided tool contains a complete path. 65410 tool_specified="$CCACHE" 65411 tool_basename="${tool_specified##*/}" 65412 if test "x$tool_basename" = "x$tool_specified"; then 65413 # A command without a complete path is provided, search $PATH. 65414 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CCACHE=$tool_basename" >&5 65415 $as_echo "$as_me: Will search for user supplied tool CCACHE=$tool_basename" >&6;} 65416 # Extract the first word of "$tool_basename", so it can be a program name with args. 65417 set dummy $tool_basename; ac_word=$2 65418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 65419 $as_echo_n "checking for $ac_word... " >&6; } 65420 if ${ac_cv_path_CCACHE+:} false; then : 65421 $as_echo_n "(cached) " >&6 65422 else 65423 case $CCACHE in 65424 [\\/]* | ?:[\\/]*) 65425 ac_cv_path_CCACHE="$CCACHE" # Let the user override the test with a path. 65426 ;; 65427 *) 65428 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 65429 for as_dir in $PATH 65430 do 65431 IFS=$as_save_IFS 65432 test -z "$as_dir" && as_dir=. 65433 for ac_exec_ext in '' $ac_executable_extensions; do 65434 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 65435 ac_cv_path_CCACHE="$as_dir/$ac_word$ac_exec_ext" 65436 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 65437 break 2 65438 fi 65439 done 65440 done 65441 IFS=$as_save_IFS 65442 65443 ;; 65444 esac 65445 fi 65446 CCACHE=$ac_cv_path_CCACHE 65447 if test -n "$CCACHE"; then 65448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CCACHE" >&5 65449 $as_echo "$CCACHE" >&6; } 65450 else 65451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 65452 $as_echo "no" >&6; } 65453 fi 65454 65455 65456 if test "x$CCACHE" = x; then 65457 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 65458 fi 65459 else 65460 # Otherwise we believe it is a complete path. Use it as it is. 65461 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CCACHE=$tool_specified" >&5 65462 $as_echo "$as_me: Will use user supplied tool CCACHE=$tool_specified" >&6;} 65463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CCACHE" >&5 65464 $as_echo_n "checking for CCACHE... " >&6; } 65465 if test ! -x "$tool_specified"; then 65466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 65467 $as_echo "not found" >&6; } 65468 as_fn_error $? "User supplied tool CCACHE=$tool_specified does not exist or is not executable" "$LINENO" 5 65469 fi 65470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 65471 $as_echo "$tool_specified" >&6; } 65472 fi 65473 fi 65474 fi 65475 65476 fi 65477 65478 65479 65480 if test "x$CCACHE" = x; then 65481 as_fn_error $? "Could not find required tool for CCACHE" "$LINENO" 5 65482 fi 65483 65484 65485 PATH="$OLD_PATH" 65486 CCACHE_VERSION=`$CCACHE --version | head -n1 | $SED 's/[A-Za-z ]*//'` 65487 CCACHE_STATUS="Active ($CCACHE_VERSION)" 65488 else 65489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 65490 $as_echo "no" >&6; } 65491 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ccache is not supported with toolchain type $TOOLCHAIN_TYPE" >&5 65492 $as_echo "$as_me: WARNING: ccache is not supported with toolchain type $TOOLCHAIN_TYPE" >&2;} 65493 fi 65494 elif test "x$enable_ccache" = xno; then 65495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, explicitly disabled" >&5 65496 $as_echo "no, explicitly disabled" >&6; } 65497 CCACHE_STATUS="Disabled" 65498 elif test "x$enable_ccache" = x; then 65499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 65500 $as_echo "no" >&6; } 65501 else 65502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unknown" >&5 65503 $as_echo "unknown" >&6; } 65504 as_fn_error $? "--enable-ccache does not accept any parameters" "$LINENO" 5 65505 fi 65506 65507 65508 65509 # Check whether --with-ccache-dir was given. 65510 if test "${with_ccache_dir+set}" = set; then : 65511 withval=$with_ccache_dir; 65512 fi 65513 65514 65515 if test "x$with_ccache_dir" != x; then 65516 # When using a non home ccache directory, assume the use is to share ccache files 65517 # with other users. Thus change the umask. 65518 SET_CCACHE_DIR="CCACHE_DIR=$with_ccache_dir CCACHE_UMASK=002" 65519 if test "x$CCACHE" = x; then 65520 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --with-ccache-dir has no meaning when ccache is not enabled" >&5 65521 $as_echo "$as_me: WARNING: --with-ccache-dir has no meaning when ccache is not enabled" >&2;} 65522 fi 65523 fi 65524 65525 if test "x$CCACHE" != x; then 65526 65527 if test "x$CCACHE" != x; then 65528 if test "x$OPENJDK_BUILD_OS" = "xmacosx"; then 65529 HAS_BAD_CCACHE=`$ECHO $CCACHE_VERSION | \ 65530 $GREP -e '^1\.' -e '^2\.' -e '^3\.0\.' -e '^3\.1\.'` 65531 if test "x$HAS_BAD_CCACHE" != "x"; then 65532 as_fn_error $? "On macosx, ccache 3.2 or later is required, found $CCACHE_VERSION" "$LINENO" 5 65533 fi 65534 fi 65535 if test "x$USE_PRECOMPILED_HEADER" = "x1"; then 65536 HAS_BAD_CCACHE=`$ECHO $CCACHE_VERSION | \ 65537 $GREP -e '^1.*' -e '^2.*' -e '^3\.0.*' -e '^3\.1\.[0123]$'` 65538 if test "x$HAS_BAD_CCACHE" != "x"; then 65539 as_fn_error $? "Precompiled headers requires ccache 3.1.4 or later, found $CCACHE_VERSION" "$LINENO" 5 65540 fi 65541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if C-compiler supports ccache precompiled headers" >&5 65542 $as_echo_n "checking if C-compiler supports ccache precompiled headers... " >&6; } 65543 CCACHE_PRECOMP_FLAG="-fpch-preprocess" 65544 PUSHED_FLAGS="$CXXFLAGS" 65545 CXXFLAGS="$CCACHE_PRECOMP_FLAG $CXXFLAGS" 65546 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 65547 /* end confdefs.h. */ 65548 65549 int 65550 main () 65551 { 65552 65553 ; 65554 return 0; 65555 } 65556 _ACEOF 65557 if ac_fn_cxx_try_compile "$LINENO"; then : 65558 CC_KNOWS_CCACHE_TRICK=yes 65559 else 65560 CC_KNOWS_CCACHE_TRICK=no 65561 fi 65562 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 65563 CXXFLAGS="$PUSHED_FLAGS" 65564 if test "x$CC_KNOWS_CCACHE_TRICK" = xyes; then 65565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 65566 $as_echo "yes" >&6; } 65567 CFLAGS_CCACHE="$CCACHE_PRECOMP_FLAG" 65568 65569 CCACHE_SLOPPINESS=pch_defines,time_macros 65570 else 65571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 65572 $as_echo "no" >&6; } 65573 as_fn_error $? "Cannot use ccache with precompiled headers without compiler support for $CCACHE_PRECOMP_FLAG" "$LINENO" 5 65574 fi 65575 fi 65576 65577 CCACHE="CCACHE_COMPRESS=1 $SET_CCACHE_DIR \ 65578 CCACHE_SLOPPINESS=$CCACHE_SLOPPINESS CCACHE_BASEDIR=$TOPDIR $CCACHE" 65579 65580 if test "x$SET_CCACHE_DIR" != x; then 65581 mkdir -p $CCACHE_DIR > /dev/null 2>&1 65582 chmod a+rwxs $CCACHE_DIR > /dev/null 2>&1 65583 fi 65584 fi 65585 65586 fi 65587 65588 65589 ############################################################################### 65590 # 65591 # And now the finish... 65592 # 65593 ############################################################################### 65594 65595 # Check for some common pitfalls 65596 65597 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 65598 file_to_test="$SRC_ROOT/LICENSE" 65599 if test `$STAT -c '%a' "$file_to_test"` -lt 400; then 65600 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 65601 fi 65602 fi 65603 65604 65605 # Did user specify any unknown variables? 65606 65607 if test "x$CONFIGURE_OVERRIDDEN_VARIABLES" != x; then 65608 # Replace the separating ! with spaces before presenting for end user. 65609 unknown_variables=${CONFIGURE_OVERRIDDEN_VARIABLES//!/ } 65610 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: The following variables might be unknown to configure: $unknown_variables" >&5 65611 $as_echo "$as_me: WARNING: The following variables might be unknown to configure: $unknown_variables" >&2;} 65612 fi 65613 65614 65615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if build directory is on local disk" >&5 65616 $as_echo_n "checking if build directory is on local disk... " >&6; } 65617 65618 # df -l lists only local disks; if the given directory is not found then 65619 # a non-zero exit code is given 65620 if test "x$DF" = x; then 65621 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 65622 # msys does not have df; use Windows "net use" instead. 65623 IS_NETWORK_DISK=`net use | grep \`pwd -W | cut -d ":" -f 1 | tr a-z A-Z\`:` 65624 if test "x$IS_NETWORK_DISK" = x; then 65625 OUTPUT_DIR_IS_LOCAL="yes" 65626 else 65627 OUTPUT_DIR_IS_LOCAL="no" 65628 fi 65629 else 65630 # No df here, say it's local 65631 OUTPUT_DIR_IS_LOCAL="yes" 65632 fi 65633 else 65634 if $DF -l $OUTPUT_ROOT > /dev/null 2>&1; then 65635 OUTPUT_DIR_IS_LOCAL="yes" 65636 else 65637 OUTPUT_DIR_IS_LOCAL="no" 65638 fi 65639 fi 65640 65641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OUTPUT_DIR_IS_LOCAL" >&5 65642 $as_echo "$OUTPUT_DIR_IS_LOCAL" >&6; } 65643 65644 65645 65646 # Check if the user has any old-style ALT_ variables set. 65647 FOUND_ALT_VARIABLES=`env | grep ^ALT_` 65648 65649 # Before generating output files, test if they exist. If they do, this is a reconfigure. 65650 # Since we can't properly handle the dependencies for this, warn the user about the situation 65651 if test -e $OUTPUT_ROOT/spec.gmk; then 65652 IS_RECONFIGURE=yes 65653 else 65654 IS_RECONFIGURE=no 65655 fi 65656 65657 65658 # At the end, call the custom hook. (Dummy macro if no custom sources available) 65659 65660 65661 # This needs to be done after CUSTOM_LATE_HOOK since we can setup custom features. 65662 65663 # Keep feature lists sorted and free of duplicates 65664 JVM_FEATURES_server="$($ECHO $($PRINTF '%s\n' $JVM_FEATURES_server | $SORT -u))" 65665 JVM_FEATURES_client="$($ECHO $($PRINTF '%s\n' $JVM_FEATURES_client | $SORT -u))" 65666 JVM_FEATURES_core="$($ECHO $($PRINTF '%s\n' $JVM_FEATURES_core | $SORT -u))" 65667 JVM_FEATURES_minimal="$($ECHO $($PRINTF '%s\n' $JVM_FEATURES_minimal | $SORT -u))" 65668 JVM_FEATURES_zero="$($ECHO $($PRINTF '%s\n' $JVM_FEATURES_zero | $SORT -u))" 65669 JVM_FEATURES_zeroshark="$($ECHO $($PRINTF '%s\n' $JVM_FEATURES_zeroshark | $SORT -u))" 65670 JVM_FEATURES_custom="$($ECHO $($PRINTF '%s\n' $JVM_FEATURES_custom | $SORT -u))" 65671 65672 # Validate features 65673 for variant in $JVM_VARIANTS; do 65674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking JVM features for JVM variant '$variant'" >&5 65675 $as_echo_n "checking JVM features for JVM variant '$variant'... " >&6; } 65676 features_var_name=JVM_FEATURES_$variant 65677 JVM_FEATURES_TO_TEST=${!features_var_name} 65678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JVM_FEATURES_TO_TEST" >&5 65679 $as_echo "$JVM_FEATURES_TO_TEST" >&6; } 65680 NEEDLE=${VALID_JVM_FEATURES// /$'\n'} 65681 STACK=${JVM_FEATURES_TO_TEST// /$'\n'} 65682 INVALID_FEATURES=`$GREP -Fvx "${NEEDLE}" <<< "${STACK}"` 65683 if test "x$INVALID_FEATURES" != x; then 65684 as_fn_error $? "Invalid JVM feature(s): $INVALID_FEATURES" "$LINENO" 5 65685 fi 65686 done 65687 65688 65689 # We're messing a bit with internal autoconf variables to put the config.status 65690 # in the output directory instead of the current directory. 65691 CONFIG_STATUS="$CONFIGURESUPPORT_OUTPUTDIR/config.status" 65692 65693 # Create the actual output files. Now the main work of configure is done. 65694 cat >confcache <<\_ACEOF 65695 # This file is a shell script that caches the results of configure 65696 # tests run on this system so they can be shared between configure 65697 # scripts and configure runs, see configure's option --config-cache. 65698 # It is not useful on other systems. If it contains results you don't 65699 # want to keep, you may remove or edit it. 65700 # 65701 # config.status only pays attention to the cache file if you give it 65702 # the --recheck option to rerun configure. 65703 # 65704 # `ac_cv_env_foo' variables (set or unset) will be overridden when 65705 # loading this file, other *unset* `ac_cv_foo' will be assigned the 65706 # following values. 65707 65708 _ACEOF 65709 65710 # The following way of writing the cache mishandles newlines in values, 65711 # but we know of no workaround that is simple, portable, and efficient. 65712 # So, we kill variables containing newlines. 65713 # Ultrix sh set writes to stderr and can't be redirected directly, 65714 # and sets the high bit in the cache file unless we assign to the vars. 65715 ( 65716 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 65717 eval ac_val=\$$ac_var 65718 case $ac_val in #( 65719 *${as_nl}*) 65720 case $ac_var in #( 65721 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 65722 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 65723 esac 65724 case $ac_var in #( 65725 _ | IFS | as_nl) ;; #( 65726 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 65727 *) { eval $ac_var=; unset $ac_var;} ;; 65728 esac ;; 65729 esac 65730 done 65731 65732 (set) 2>&1 | 65733 case $as_nl`(ac_space=' '; set) 2>&1` in #( 65734 *${as_nl}ac_space=\ *) 65735 # `set' does not quote correctly, so add quotes: double-quote 65736 # substitution turns \\\\ into \\, and sed turns \\ into \. 65737 sed -n \ 65738 "s/'/'\\\\''/g; 65739 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 65740 ;; #( 65741 *) 65742 # `set' quotes correctly as required by POSIX, so do not add quotes. 65743 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 65744 ;; 65745 esac | 65746 sort 65747 ) | 65748 sed ' 65749 /^ac_cv_env_/b end 65750 t clear 65751 :clear 65752 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 65753 t end 65754 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 65755 :end' >>confcache 65756 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 65757 if test -w "$cache_file"; then 65758 if test "x$cache_file" != "x/dev/null"; then 65759 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 65760 $as_echo "$as_me: updating cache $cache_file" >&6;} 65761 if test ! -f "$cache_file" || test -h "$cache_file"; then 65762 cat confcache >"$cache_file" 65763 else 65764 case $cache_file in #( 65765 */* | ?:*) 65766 mv -f confcache "$cache_file"$$ && 65767 mv -f "$cache_file"$$ "$cache_file" ;; #( 65768 *) 65769 mv -f confcache "$cache_file" ;; 65770 esac 65771 fi 65772 fi 65773 else 65774 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 65775 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 65776 fi 65777 fi 65778 rm -f confcache 65779 65780 test "x$prefix" = xNONE && prefix=$ac_default_prefix 65781 # Let make expand exec_prefix. 65782 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 65783 65784 # Transform confdefs.h into DEFS. 65785 # Protect against shell expansion while executing Makefile rules. 65786 # Protect against Makefile macro expansion. 65787 # 65788 # If the first sed substitution is executed (which looks for macros that 65789 # take arguments), then branch to the quote section. Otherwise, 65790 # look for a macro that doesn't take arguments. 65791 ac_script=' 65792 :mline 65793 /\\$/{ 65794 N 65795 s,\\\n,, 65796 b mline 65797 } 65798 t clear 65799 :clear 65800 s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g 65801 t quote 65802 s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g 65803 t quote 65804 b any 65805 :quote 65806 s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g 65807 s/\[/\\&/g 65808 s/\]/\\&/g 65809 s/\$/$$/g 65810 H 65811 :any 65812 ${ 65813 g 65814 s/^\n// 65815 s/\n/ /g 65816 p 65817 } 65818 ' 65819 DEFS=`sed -n "$ac_script" confdefs.h` 65820 65821 65822 ac_libobjs= 65823 ac_ltlibobjs= 65824 U= 65825 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 65826 # 1. Remove the extension, and $U if already installed. 65827 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 65828 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 65829 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 65830 # will be set to the directory where LIBOBJS objects are built. 65831 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 65832 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 65833 done 65834 LIBOBJS=$ac_libobjs 65835 65836 LTLIBOBJS=$ac_ltlibobjs 65837 65838 65839 65840 : "${CONFIG_STATUS=./config.status}" 65841 ac_write_fail=0 65842 ac_clean_files_save=$ac_clean_files 65843 ac_clean_files="$ac_clean_files $CONFIG_STATUS" 65844 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 65845 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 65846 as_write_fail=0 65847 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 65848 #! $SHELL 65849 # Generated by $as_me. 65850 # Run this file to recreate the current configuration. 65851 # Compiler output produced by configure, useful for debugging 65852 # configure, is in config.log if it exists. 65853 65854 debug=false 65855 ac_cs_recheck=false 65856 ac_cs_silent=false 65857 65858 SHELL=\${CONFIG_SHELL-$SHELL} 65859 export SHELL 65860 _ASEOF 65861 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 65862 ## -------------------- ## 65863 ## M4sh Initialization. ## 65864 ## -------------------- ## 65865 65866 # Be more Bourne compatible 65867 DUALCASE=1; export DUALCASE # for MKS sh 65868 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 65869 emulate sh 65870 NULLCMD=: 65871 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 65872 # is contrary to our usage. Disable this feature. 65873 alias -g '${1+"$@"}'='"$@"' 65874 setopt NO_GLOB_SUBST 65875 else 65876 case `(set -o) 2>/dev/null` in #( 65877 *posix*) : 65878 set -o posix ;; #( 65879 *) : 65880 ;; 65881 esac 65882 fi 65883 65884 65885 as_nl=' 65886 ' 65887 export as_nl 65888 # Printing a long string crashes Solaris 7 /usr/bin/printf. 65889 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 65890 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 65891 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 65892 # Prefer a ksh shell builtin over an external printf program on Solaris, 65893 # but without wasting forks for bash or zsh. 65894 if test -z "$BASH_VERSION$ZSH_VERSION" \ 65895 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 65896 as_echo='print -r --' 65897 as_echo_n='print -rn --' 65898 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 65899 as_echo='printf %s\n' 65900 as_echo_n='printf %s' 65901 else 65902 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 65903 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 65904 as_echo_n='/usr/ucb/echo -n' 65905 else 65906 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 65907 as_echo_n_body='eval 65908 arg=$1; 65909 case $arg in #( 65910 *"$as_nl"*) 65911 expr "X$arg" : "X\\(.*\\)$as_nl"; 65912 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 65913 esac; 65914 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 65915 ' 65916 export as_echo_n_body 65917 as_echo_n='sh -c $as_echo_n_body as_echo' 65918 fi 65919 export as_echo_body 65920 as_echo='sh -c $as_echo_body as_echo' 65921 fi 65922 65923 # The user is always right. 65924 if test "${PATH_SEPARATOR+set}" != set; then 65925 PATH_SEPARATOR=: 65926 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 65927 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 65928 PATH_SEPARATOR=';' 65929 } 65930 fi 65931 65932 65933 # IFS 65934 # We need space, tab and new line, in precisely that order. Quoting is 65935 # there to prevent editors from complaining about space-tab. 65936 # (If _AS_PATH_WALK were called with IFS unset, it would disable word 65937 # splitting by setting IFS to empty value.) 65938 IFS=" "" $as_nl" 65939 65940 # Find who we are. Look in the path if we contain no directory separator. 65941 as_myself= 65942 case $0 in #(( 65943 *[\\/]* ) as_myself=$0 ;; 65944 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 65945 for as_dir in $PATH 65946 do 65947 IFS=$as_save_IFS 65948 test -z "$as_dir" && as_dir=. 65949 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 65950 done 65951 IFS=$as_save_IFS 65952 65953 ;; 65954 esac 65955 # We did not find ourselves, most probably we were run as `sh COMMAND' 65956 # in which case we are not to be found in the path. 65957 if test "x$as_myself" = x; then 65958 as_myself=$0 65959 fi 65960 if test ! -f "$as_myself"; then 65961 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 65962 exit 1 65963 fi 65964 65965 # Unset variables that we do not need and which cause bugs (e.g. in 65966 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 65967 # suppresses any "Segmentation fault" message there. '((' could 65968 # trigger a bug in pdksh 5.2.14. 65969 for as_var in BASH_ENV ENV MAIL MAILPATH 65970 do eval test x\${$as_var+set} = xset \ 65971 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 65972 done 65973 PS1='$ ' 65974 PS2='> ' 65975 PS4='+ ' 65976 65977 # NLS nuisances. 65978 LC_ALL=C 65979 export LC_ALL 65980 LANGUAGE=C 65981 export LANGUAGE 65982 65983 # CDPATH. 65984 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH 65985 65986 65987 # as_fn_error STATUS ERROR [LINENO LOG_FD] 65988 # ---------------------------------------- 65989 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 65990 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the 65991 # script with STATUS, using 1 if that was 0. 65992 as_fn_error () 65993 { 65994 as_status=$1; test $as_status -eq 0 && as_status=1 65995 if test "$4"; then 65996 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 65997 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 65998 fi 65999 $as_echo "$as_me: error: $2" >&2 66000 as_fn_exit $as_status 66001 } # as_fn_error 66002 66003 66004 # as_fn_set_status STATUS 66005 # ----------------------- 66006 # Set $? to STATUS, without forking. 66007 as_fn_set_status () 66008 { 66009 return $1 66010 } # as_fn_set_status 66011 66012 # as_fn_exit STATUS 66013 # ----------------- 66014 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 66015 as_fn_exit () 66016 { 66017 set +e 66018 as_fn_set_status $1 66019 exit $1 66020 } # as_fn_exit 66021 66022 # as_fn_unset VAR 66023 # --------------- 66024 # Portably unset VAR. 66025 as_fn_unset () 66026 { 66027 { eval $1=; unset $1;} 66028 } 66029 as_unset=as_fn_unset 66030 # as_fn_append VAR VALUE 66031 # ---------------------- 66032 # Append the text in VALUE to the end of the definition contained in VAR. Take 66033 # advantage of any shell optimizations that allow amortized linear growth over 66034 # repeated appends, instead of the typical quadratic growth present in naive 66035 # implementations. 66036 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 66037 eval 'as_fn_append () 66038 { 66039 eval $1+=\$2 66040 }' 66041 else 66042 as_fn_append () 66043 { 66044 eval $1=\$$1\$2 66045 } 66046 fi # as_fn_append 66047 66048 # as_fn_arith ARG... 66049 # ------------------ 66050 # Perform arithmetic evaluation on the ARGs, and store the result in the 66051 # global $as_val. Take advantage of shells that can avoid forks. The arguments 66052 # must be portable across $(()) and expr. 66053 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 66054 eval 'as_fn_arith () 66055 { 66056 as_val=$(( $* )) 66057 }' 66058 else 66059 as_fn_arith () 66060 { 66061 as_val=`expr "$@" || test $? -eq 1` 66062 } 66063 fi # as_fn_arith 66064 66065 66066 if expr a : '\(a\)' >/dev/null 2>&1 && 66067 test "X`expr 00001 : '.*\(...\)'`" = X001; then 66068 as_expr=expr 66069 else 66070 as_expr=false 66071 fi 66072 66073 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 66074 as_basename=basename 66075 else 66076 as_basename=false 66077 fi 66078 66079 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 66080 as_dirname=dirname 66081 else 66082 as_dirname=false 66083 fi 66084 66085 as_me=`$as_basename -- "$0" || 66086 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 66087 X"$0" : 'X\(//\)$' \| \ 66088 X"$0" : 'X\(/\)' \| . 2>/dev/null || 66089 $as_echo X/"$0" | 66090 sed '/^.*\/\([^/][^/]*\)\/*$/{ 66091 s//\1/ 66092 q 66093 } 66094 /^X\/\(\/\/\)$/{ 66095 s//\1/ 66096 q 66097 } 66098 /^X\/\(\/\).*/{ 66099 s//\1/ 66100 q 66101 } 66102 s/.*/./; q'` 66103 66104 # Avoid depending upon Character Ranges. 66105 as_cr_letters='abcdefghijklmnopqrstuvwxyz' 66106 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 66107 as_cr_Letters=$as_cr_letters$as_cr_LETTERS 66108 as_cr_digits='0123456789' 66109 as_cr_alnum=$as_cr_Letters$as_cr_digits 66110 66111 ECHO_C= ECHO_N= ECHO_T= 66112 case `echo -n x` in #((((( 66113 -n*) 66114 case `echo 'xy\c'` in 66115 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 66116 xy) ECHO_C='\c';; 66117 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 66118 ECHO_T=' ';; 66119 esac;; 66120 *) 66121 ECHO_N='-n';; 66122 esac 66123 66124 rm -f conf$$ conf$$.exe conf$$.file 66125 if test -d conf$$.dir; then 66126 rm -f conf$$.dir/conf$$.file 66127 else 66128 rm -f conf$$.dir 66129 mkdir conf$$.dir 2>/dev/null 66130 fi 66131 if (echo >conf$$.file) 2>/dev/null; then 66132 if ln -s conf$$.file conf$$ 2>/dev/null; then 66133 as_ln_s='ln -s' 66134 # ... but there are two gotchas: 66135 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 66136 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 66137 # In both cases, we have to default to `cp -pR'. 66138 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 66139 as_ln_s='cp -pR' 66140 elif ln conf$$.file conf$$ 2>/dev/null; then 66141 as_ln_s=ln 66142 else 66143 as_ln_s='cp -pR' 66144 fi 66145 else 66146 as_ln_s='cp -pR' 66147 fi 66148 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 66149 rmdir conf$$.dir 2>/dev/null 66150 66151 66152 # as_fn_mkdir_p 66153 # ------------- 66154 # Create "$as_dir" as a directory, including parents if necessary. 66155 as_fn_mkdir_p () 66156 { 66157 66158 case $as_dir in #( 66159 -*) as_dir=./$as_dir;; 66160 esac 66161 test -d "$as_dir" || eval $as_mkdir_p || { 66162 as_dirs= 66163 while :; do 66164 case $as_dir in #( 66165 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 66166 *) as_qdir=$as_dir;; 66167 esac 66168 as_dirs="'$as_qdir' $as_dirs" 66169 as_dir=`$as_dirname -- "$as_dir" || 66170 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 66171 X"$as_dir" : 'X\(//\)[^/]' \| \ 66172 X"$as_dir" : 'X\(//\)$' \| \ 66173 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 66174 $as_echo X"$as_dir" | 66175 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 66176 s//\1/ 66177 q 66178 } 66179 /^X\(\/\/\)[^/].*/{ 66180 s//\1/ 66181 q 66182 } 66183 /^X\(\/\/\)$/{ 66184 s//\1/ 66185 q 66186 } 66187 /^X\(\/\).*/{ 66188 s//\1/ 66189 q 66190 } 66191 s/.*/./; q'` 66192 test -d "$as_dir" && break 66193 done 66194 test -z "$as_dirs" || eval "mkdir $as_dirs" 66195 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 66196 66197 66198 } # as_fn_mkdir_p 66199 if mkdir -p . 2>/dev/null; then 66200 as_mkdir_p='mkdir -p "$as_dir"' 66201 else 66202 test -d ./-p && rmdir ./-p 66203 as_mkdir_p=false 66204 fi 66205 66206 66207 # as_fn_executable_p FILE 66208 # ----------------------- 66209 # Test if FILE is an executable regular file. 66210 as_fn_executable_p () 66211 { 66212 test -f "$1" && test -x "$1" 66213 } # as_fn_executable_p 66214 as_test_x='test -x' 66215 as_executable_p=as_fn_executable_p 66216 66217 # Sed expression to map a string onto a valid CPP name. 66218 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 66219 66220 # Sed expression to map a string onto a valid variable name. 66221 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 66222 66223 66224 exec 6>&1 66225 ## ----------------------------------- ## 66226 ## Main body of $CONFIG_STATUS script. ## 66227 ## ----------------------------------- ## 66228 _ASEOF 66229 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 66230 66231 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 66232 # Save the log message, to keep $0 and so on meaningful, and to 66233 # report actual input values of CONFIG_FILES etc. instead of their 66234 # values after options handling. 66235 ac_log=" 66236 This file was extended by OpenJDK $as_me jdk9, which was 66237 generated by GNU Autoconf 2.69. Invocation command line was 66238 66239 CONFIG_FILES = $CONFIG_FILES 66240 CONFIG_HEADERS = $CONFIG_HEADERS 66241 CONFIG_LINKS = $CONFIG_LINKS 66242 CONFIG_COMMANDS = $CONFIG_COMMANDS 66243 $ $0 $@ 66244 66245 on `(hostname || uname -n) 2>/dev/null | sed 1q` 66246 " 66247 66248 _ACEOF 66249 66250 case $ac_config_files in *" 66251 "*) set x $ac_config_files; shift; ac_config_files=$*;; 66252 esac 66253 66254 66255 66256 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 66257 # Files that config.status was made for. 66258 config_files="$ac_config_files" 66259 66260 _ACEOF 66261 66262 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 66263 ac_cs_usage="\ 66264 \`$as_me' instantiates files and other configuration actions 66265 from templates according to the current configuration. Unless the files 66266 and actions are specified as TAGs, all are instantiated by default. 66267 66268 Usage: $0 [OPTION]... [TAG]... 66269 66270 -h, --help print this help, then exit 66271 -V, --version print version number and configuration settings, then exit 66272 --config print configuration, then exit 66273 -q, --quiet, --silent 66274 do not print progress messages 66275 -d, --debug don't remove temporary files 66276 --recheck update $as_me by reconfiguring in the same conditions 66277 --file=FILE[:TEMPLATE] 66278 instantiate the configuration file FILE 66279 66280 Configuration files: 66281 $config_files 66282 66283 Report bugs to <build-dev@openjdk.java.net>. 66284 OpenJDK home page: <http://openjdk.java.net>." 66285 66286 _ACEOF 66287 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 66288 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 66289 ac_cs_version="\\ 66290 OpenJDK config.status jdk9 66291 configured by $0, generated by GNU Autoconf 2.69, 66292 with options \\"\$ac_cs_config\\" 66293 66294 Copyright (C) 2012 Free Software Foundation, Inc. 66295 This config.status script is free software; the Free Software Foundation 66296 gives unlimited permission to copy, distribute and modify it." 66297 66298 ac_pwd='$ac_pwd' 66299 srcdir='$srcdir' 66300 AWK='$AWK' 66301 test -n "\$AWK" || AWK=awk 66302 _ACEOF 66303 66304 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 66305 # The default lists apply if the user does not specify any file. 66306 ac_need_defaults=: 66307 while test $# != 0 66308 do 66309 case $1 in 66310 --*=?*) 66311 ac_option=`expr "X$1" : 'X\([^=]*\)='` 66312 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 66313 ac_shift=: 66314 ;; 66315 --*=) 66316 ac_option=`expr "X$1" : 'X\([^=]*\)='` 66317 ac_optarg= 66318 ac_shift=: 66319 ;; 66320 *) 66321 ac_option=$1 66322 ac_optarg=$2 66323 ac_shift=shift 66324 ;; 66325 esac 66326 66327 case $ac_option in 66328 # Handling of the options. 66329 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 66330 ac_cs_recheck=: ;; 66331 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 66332 $as_echo "$ac_cs_version"; exit ;; 66333 --config | --confi | --conf | --con | --co | --c ) 66334 $as_echo "$ac_cs_config"; exit ;; 66335 --debug | --debu | --deb | --de | --d | -d ) 66336 debug=: ;; 66337 --file | --fil | --fi | --f ) 66338 $ac_shift 66339 case $ac_optarg in 66340 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 66341 '') as_fn_error $? "missing file argument" ;; 66342 esac 66343 as_fn_append CONFIG_FILES " '$ac_optarg'" 66344 ac_need_defaults=false;; 66345 --he | --h | --help | --hel | -h ) 66346 $as_echo "$ac_cs_usage"; exit ;; 66347 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 66348 | -silent | --silent | --silen | --sile | --sil | --si | --s) 66349 ac_cs_silent=: ;; 66350 66351 # This is an error. 66352 -*) as_fn_error $? "unrecognized option: \`$1' 66353 Try \`$0 --help' for more information." ;; 66354 66355 *) as_fn_append ac_config_targets " $1" 66356 ac_need_defaults=false ;; 66357 66358 esac 66359 shift 66360 done 66361 66362 ac_configure_extra_args= 66363 66364 if $ac_cs_silent; then 66365 exec 6>/dev/null 66366 ac_configure_extra_args="$ac_configure_extra_args --silent" 66367 fi 66368 66369 _ACEOF 66370 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 66371 if \$ac_cs_recheck; then 66372 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 66373 shift 66374 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 66375 CONFIG_SHELL='$SHELL' 66376 export CONFIG_SHELL 66377 exec "\$@" 66378 fi 66379 66380 _ACEOF 66381 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 66382 exec 5>>config.log 66383 { 66384 echo 66385 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 66386 ## Running $as_me. ## 66387 _ASBOX 66388 $as_echo "$ac_log" 66389 } >&5 66390 66391 _ACEOF 66392 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 66393 _ACEOF 66394 66395 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 66396 66397 # Handling of arguments. 66398 for ac_config_target in $ac_config_targets 66399 do 66400 case $ac_config_target in 66401 "$OUTPUT_ROOT/spec.gmk") CONFIG_FILES="$CONFIG_FILES $OUTPUT_ROOT/spec.gmk:$AUTOCONF_DIR/spec.gmk.in" ;; 66402 "$OUTPUT_ROOT/bootcycle-spec.gmk") CONFIG_FILES="$CONFIG_FILES $OUTPUT_ROOT/bootcycle-spec.gmk:$AUTOCONF_DIR/bootcycle-spec.gmk.in" ;; 66403 "$OUTPUT_ROOT/buildjdk-spec.gmk") CONFIG_FILES="$CONFIG_FILES $OUTPUT_ROOT/buildjdk-spec.gmk:$AUTOCONF_DIR/buildjdk-spec.gmk.in" ;; 66404 "$OUTPUT_ROOT/compare.sh") CONFIG_FILES="$CONFIG_FILES $OUTPUT_ROOT/compare.sh:$AUTOCONF_DIR/compare.sh.in" ;; 66405 "$OUTPUT_ROOT/Makefile") CONFIG_FILES="$CONFIG_FILES $OUTPUT_ROOT/Makefile:$AUTOCONF_DIR/Makefile.in" ;; 66406 66407 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 66408 esac 66409 done 66410 66411 66412 # If the user did not use the arguments to specify the items to instantiate, 66413 # then the envvar interface is used. Set only those that are not. 66414 # We use the long form for the default assignment because of an extremely 66415 # bizarre bug on SunOS 4.1.3. 66416 if $ac_need_defaults; then 66417 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 66418 fi 66419 66420 # Have a temporary directory for convenience. Make it in the build tree 66421 # simply because there is no reason against having it here, and in addition, 66422 # creating and moving files from /tmp can sometimes cause problems. 66423 # Hook for its removal unless debugging. 66424 # Note that there is a small window in which the directory will not be cleaned: 66425 # after its creation but before its name has been assigned to `$tmp'. 66426 $debug || 66427 { 66428 tmp= ac_tmp= 66429 trap 'exit_status=$? 66430 : "${ac_tmp:=$tmp}" 66431 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 66432 ' 0 66433 trap 'as_fn_exit 1' 1 2 13 15 66434 } 66435 # Create a (secure) tmp directory for tmp files. 66436 66437 { 66438 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 66439 test -d "$tmp" 66440 } || 66441 { 66442 tmp=./conf$$-$RANDOM 66443 (umask 077 && mkdir "$tmp") 66444 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 66445 ac_tmp=$tmp 66446 66447 # Set up the scripts for CONFIG_FILES section. 66448 # No need to generate them if there are no CONFIG_FILES. 66449 # This happens for instance with `./config.status config.h'. 66450 if test -n "$CONFIG_FILES"; then 66451 66452 66453 ac_cr=`echo X | tr X '\015'` 66454 # On cygwin, bash can eat \r inside `` if the user requested igncr. 66455 # But we know of no other shell where ac_cr would be empty at this 66456 # point, so we can use a bashism as a fallback. 66457 if test "x$ac_cr" = x; then 66458 eval ac_cr=\$\'\\r\' 66459 fi 66460 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 66461 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 66462 ac_cs_awk_cr='\\r' 66463 else 66464 ac_cs_awk_cr=$ac_cr 66465 fi 66466 66467 echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 66468 _ACEOF 66469 66470 66471 { 66472 echo "cat >conf$$subs.awk <<_ACEOF" && 66473 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 66474 echo "_ACEOF" 66475 } >conf$$subs.sh || 66476 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 66477 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 66478 ac_delim='%!_!# ' 66479 for ac_last_try in false false false false false :; do 66480 . ./conf$$subs.sh || 66481 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 66482 66483 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 66484 if test $ac_delim_n = $ac_delim_num; then 66485 break 66486 elif $ac_last_try; then 66487 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 66488 else 66489 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 66490 fi 66491 done 66492 rm -f conf$$subs.sh 66493 66494 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 66495 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 66496 _ACEOF 66497 sed -n ' 66498 h 66499 s/^/S["/; s/!.*/"]=/ 66500 p 66501 g 66502 s/^[^!]*!// 66503 :repl 66504 t repl 66505 s/'"$ac_delim"'$// 66506 t delim 66507 :nl 66508 h 66509 s/\(.\{148\}\)..*/\1/ 66510 t more1 66511 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 66512 p 66513 n 66514 b repl 66515 :more1 66516 s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 66517 p 66518 g 66519 s/.\{148\}// 66520 t nl 66521 :delim 66522 h 66523 s/\(.\{148\}\)..*/\1/ 66524 t more2 66525 s/["\\]/\\&/g; s/^/"/; s/$/"/ 66526 p 66527 b 66528 :more2 66529 s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 66530 p 66531 g 66532 s/.\{148\}// 66533 t delim 66534 ' <conf$$subs.awk | sed ' 66535 /^[^""]/{ 66536 N 66537 s/\n// 66538 } 66539 ' >>$CONFIG_STATUS || ac_write_fail=1 66540 rm -f conf$$subs.awk 66541 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 66542 _ACAWK 66543 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 66544 for (key in S) S_is_set[key] = 1 66545 FS = "" 66546 66547 } 66548 { 66549 line = $ 0 66550 nfields = split(line, field, "@") 66551 substed = 0 66552 len = length(field[1]) 66553 for (i = 2; i < nfields; i++) { 66554 key = field[i] 66555 keylen = length(key) 66556 if (S_is_set[key]) { 66557 value = S[key] 66558 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 66559 len += length(value) + length(field[++i]) 66560 substed = 1 66561 } else 66562 len += 1 + keylen 66563 } 66564 66565 print line 66566 } 66567 66568 _ACAWK 66569 _ACEOF 66570 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 66571 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 66572 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 66573 else 66574 cat 66575 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 66576 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 66577 _ACEOF 66578 66579 # VPATH may cause trouble with some makes, so we remove sole $(srcdir), 66580 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 66581 # trailing colons and then remove the whole line if VPATH becomes empty 66582 # (actually we leave an empty line to preserve line numbers). 66583 if test "x$srcdir" = x.; then 66584 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 66585 h 66586 s/// 66587 s/^/:/ 66588 s/[ ]*$/:/ 66589 s/:\$(srcdir):/:/g 66590 s/:\${srcdir}:/:/g 66591 s/:@srcdir@:/:/g 66592 s/^:*// 66593 s/:*$// 66594 x 66595 s/\(=[ ]*\).*/\1/ 66596 G 66597 s/\n// 66598 s/^[^=]*=[ ]*$// 66599 }' 66600 fi 66601 66602 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 66603 fi # test -n "$CONFIG_FILES" 66604 66605 66606 eval set X " :F $CONFIG_FILES " 66607 shift 66608 for ac_tag 66609 do 66610 case $ac_tag in 66611 :[FHLC]) ac_mode=$ac_tag; continue;; 66612 esac 66613 case $ac_mode$ac_tag in 66614 :[FHL]*:*);; 66615 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 66616 :[FH]-) ac_tag=-:-;; 66617 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 66618 esac 66619 ac_save_IFS=$IFS 66620 IFS=: 66621 set x $ac_tag 66622 IFS=$ac_save_IFS 66623 shift 66624 ac_file=$1 66625 shift 66626 66627 case $ac_mode in 66628 :L) ac_source=$1;; 66629 :[FH]) 66630 ac_file_inputs= 66631 for ac_f 66632 do 66633 case $ac_f in 66634 -) ac_f="$ac_tmp/stdin";; 66635 *) # Look for the file first in the build tree, then in the source tree 66636 # (if the path is not absolute). The absolute path cannot be DOS-style, 66637 # because $ac_f cannot contain `:'. 66638 test -f "$ac_f" || 66639 case $ac_f in 66640 [\\/$]*) false;; 66641 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 66642 esac || 66643 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 66644 esac 66645 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 66646 as_fn_append ac_file_inputs " '$ac_f'" 66647 done 66648 66649 # Let's still pretend it is `configure' which instantiates (i.e., don't 66650 # use $as_me), people would be surprised to read: 66651 # /* config.h. Generated by config.status. */ 66652 configure_input='Generated from '` 66653 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 66654 `' by configure.' 66655 if test x"$ac_file" != x-; then 66656 configure_input="$ac_file. $configure_input" 66657 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 66658 $as_echo "$as_me: creating $ac_file" >&6;} 66659 fi 66660 # Neutralize special characters interpreted by sed in replacement strings. 66661 case $configure_input in #( 66662 *\&* | *\|* | *\\* ) 66663 ac_sed_conf_input=`$as_echo "$configure_input" | 66664 sed 's/[\\\\&|]/\\\\&/g'`;; #( 66665 *) ac_sed_conf_input=$configure_input;; 66666 esac 66667 66668 case $ac_tag in 66669 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 66670 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 66671 esac 66672 ;; 66673 esac 66674 66675 ac_dir=`$as_dirname -- "$ac_file" || 66676 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 66677 X"$ac_file" : 'X\(//\)[^/]' \| \ 66678 X"$ac_file" : 'X\(//\)$' \| \ 66679 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 66680 $as_echo X"$ac_file" | 66681 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 66682 s//\1/ 66683 q 66684 } 66685 /^X\(\/\/\)[^/].*/{ 66686 s//\1/ 66687 q 66688 } 66689 /^X\(\/\/\)$/{ 66690 s//\1/ 66691 q 66692 } 66693 /^X\(\/\).*/{ 66694 s//\1/ 66695 q 66696 } 66697 s/.*/./; q'` 66698 as_dir="$ac_dir"; as_fn_mkdir_p 66699 ac_builddir=. 66700 66701 case "$ac_dir" in 66702 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 66703 *) 66704 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 66705 # A ".." for each directory in $ac_dir_suffix. 66706 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 66707 case $ac_top_builddir_sub in 66708 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 66709 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 66710 esac ;; 66711 esac 66712 ac_abs_top_builddir=$ac_pwd 66713 ac_abs_builddir=$ac_pwd$ac_dir_suffix 66714 # for backward compatibility: 66715 ac_top_builddir=$ac_top_build_prefix 66716 66717 case $srcdir in 66718 .) # We are building in place. 66719 ac_srcdir=. 66720 ac_top_srcdir=$ac_top_builddir_sub 66721 ac_abs_top_srcdir=$ac_pwd ;; 66722 [\\/]* | ?:[\\/]* ) # Absolute name. 66723 ac_srcdir=$srcdir$ac_dir_suffix; 66724 ac_top_srcdir=$srcdir 66725 ac_abs_top_srcdir=$srcdir ;; 66726 *) # Relative name. 66727 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 66728 ac_top_srcdir=$ac_top_build_prefix$srcdir 66729 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 66730 esac 66731 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 66732 66733 66734 case $ac_mode in 66735 :F) 66736 # 66737 # CONFIG_FILE 66738 # 66739 66740 _ACEOF 66741 66742 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 66743 # If the template does not know about datarootdir, expand it. 66744 # FIXME: This hack should be removed a few years after 2.60. 66745 ac_datarootdir_hack=; ac_datarootdir_seen= 66746 ac_sed_dataroot=' 66747 /datarootdir/ { 66748 p 66749 q 66750 } 66751 /@datadir@/p 66752 /@docdir@/p 66753 /@infodir@/p 66754 /@localedir@/p 66755 /@mandir@/p' 66756 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 66757 *datarootdir*) ac_datarootdir_seen=yes;; 66758 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 66759 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 66760 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 66761 _ACEOF 66762 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 66763 ac_datarootdir_hack=' 66764 s&@datadir@&$datadir&g 66765 s&@docdir@&$docdir&g 66766 s&@infodir@&$infodir&g 66767 s&@localedir@&$localedir&g 66768 s&@mandir@&$mandir&g 66769 s&\\\${datarootdir}&$datarootdir&g' ;; 66770 esac 66771 _ACEOF 66772 66773 # Neutralize VPATH when `$srcdir' = `.'. 66774 # Shell code in configure.ac might set extrasub. 66775 # FIXME: do we really want to maintain this feature? 66776 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 66777 ac_sed_extra="$ac_vpsub 66778 $extrasub 66779 _ACEOF 66780 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 66781 :t 66782 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b 66783 s|@configure_input@|$ac_sed_conf_input|;t t 66784 s&@top_builddir@&$ac_top_builddir_sub&;t t 66785 s&@top_build_prefix@&$ac_top_build_prefix&;t t 66786 s&@srcdir@&$ac_srcdir&;t t 66787 s&@abs_srcdir@&$ac_abs_srcdir&;t t 66788 s&@top_srcdir@&$ac_top_srcdir&;t t 66789 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 66790 s&@builddir@&$ac_builddir&;t t 66791 s&@abs_builddir@&$ac_abs_builddir&;t t 66792 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 66793 $ac_datarootdir_hack 66794 " 66795 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 66796 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 66797 66798 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 66799 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 66800 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 66801 "$ac_tmp/out"`; test -z "$ac_out"; } && 66802 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 66803 which seems to be undefined. Please make sure it is defined" >&5 66804 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 66805 which seems to be undefined. Please make sure it is defined" >&2;} 66806 66807 rm -f "$ac_tmp/stdin" 66808 case $ac_file in 66809 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 66810 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 66811 esac \ 66812 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 66813 ;; 66814 66815 66816 66817 esac 66818 66819 done # for ac_tag 66820 66821 66822 as_fn_exit 0 66823 _ACEOF 66824 ac_clean_files=$ac_clean_files_save 66825 66826 test $ac_write_fail = 0 || 66827 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 66828 66829 66830 # configure is writing to config.log, and then calls config.status. 66831 # config.status does its own redirection, appending to config.log. 66832 # Unfortunately, on DOS this fails, as config.log is still kept open 66833 # by configure, so config.status won't be able to write to it; its 66834 # output is simply discarded. So we exec the FD to /dev/null, 66835 # effectively closing config.log, so it can be properly (re)opened and 66836 # appended to by config.status. When coming back to configure, we 66837 # need to make the FD available again. 66838 if test "$no_create" != yes; then 66839 ac_cs_success=: 66840 ac_config_status_args= 66841 test "$silent" = yes && 66842 ac_config_status_args="$ac_config_status_args --quiet" 66843 exec 5>/dev/null 66844 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 66845 exec 5>>config.log 66846 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 66847 # would make configure fail if this is the last instruction. 66848 $ac_cs_success || as_fn_exit 1 66849 fi 66850 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 66851 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 66852 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 66853 fi 66854 66855 66856 # After AC_OUTPUT, we need to do final work 66857 66858 66859 # Try to move config.log (generated by autoconf) to the configure-support directory. 66860 if test -e ./config.log; then 66861 $MV -f ./config.log "$CONFIGURESUPPORT_OUTPUTDIR/config.log" 2> /dev/null 66862 fi 66863 66864 # Rotate our log file (configure.log) 66865 if test -e "$OUTPUT_ROOT/configure.log.old"; then 66866 $RM -f "$OUTPUT_ROOT/configure.log.old" 66867 fi 66868 if test -e "$OUTPUT_ROOT/configure.log"; then 66869 $MV -f "$OUTPUT_ROOT/configure.log" "$OUTPUT_ROOT/configure.log.old" 2> /dev/null 66870 fi 66871 66872 # Move configure.log from current directory to the build output root 66873 if test -e ./configure.log; then 66874 $MV -f ./configure.log "$OUTPUT_ROOT/configure.log" 2> /dev/null 66875 fi 66876 66877 # Make the compare script executable 66878 $CHMOD +x $OUTPUT_ROOT/compare.sh 66879 66880 66881 # Finally output some useful information to the user 66882 66883 # Finally output some useful information to the user 66884 66885 printf "\n" 66886 printf "====================================================\n" 66887 if test "x$no_create" != "xyes"; then 66888 if test "x$IS_RECONFIGURE" != "xyes"; then 66889 printf "A new configuration has been successfully created in\n%s\n" "$OUTPUT_ROOT" 66890 else 66891 printf "The existing configuration has been successfully updated in\n%s\n" "$OUTPUT_ROOT" 66892 fi 66893 else 66894 if test "x$IS_RECONFIGURE" != "xyes"; then 66895 printf "A configuration has been successfully checked but not created\n" 66896 else 66897 printf "The existing configuration has been successfully checked in\n%s\n" "$OUTPUT_ROOT" 66898 fi 66899 fi 66900 if test "x$CONFIGURE_COMMAND_LINE" != x; then 66901 printf "using configure arguments '$CONFIGURE_COMMAND_LINE'.\n" 66902 else 66903 printf "using default settings.\n" 66904 fi 66905 66906 printf "\n" 66907 printf "Configuration summary:\n" 66908 printf "* Debug level: $DEBUG_LEVEL\n" 66909 printf "* HS debug level: $HOTSPOT_DEBUG_LEVEL\n" 66910 printf "* JDK variant: $JDK_VARIANT\n" 66911 printf "* JVM variants: $JVM_VARIANTS\n" 66912 printf "* OpenJDK target: OS: $OPENJDK_TARGET_OS, CPU architecture: $OPENJDK_TARGET_CPU_ARCH, address length: $OPENJDK_TARGET_CPU_BITS\n" 66913 printf "* Version string: $VERSION_STRING ($VERSION_SHORT)\n" 66914 66915 printf "\n" 66916 printf "Tools summary:\n" 66917 if test "x$OPENJDK_BUILD_OS" = "xwindows"; then 66918 printf "* Environment: $WINDOWS_ENV_VENDOR version $WINDOWS_ENV_VERSION (root at $WINDOWS_ENV_ROOT_PATH)\n" 66919 fi 66920 printf "* Boot JDK: $BOOT_JDK_VERSION (at $BOOT_JDK)\n" 66921 if test "x$TOOLCHAIN_VERSION" != "x"; then 66922 print_version=" $TOOLCHAIN_VERSION" 66923 fi 66924 printf "* Toolchain: $TOOLCHAIN_TYPE ($TOOLCHAIN_DESCRIPTION$print_version)\n" 66925 printf "* C Compiler: Version $CC_VERSION_NUMBER (at $CC)\n" 66926 printf "* C++ Compiler: Version $CXX_VERSION_NUMBER (at $CXX)\n" 66927 66928 printf "\n" 66929 printf "Build performance summary:\n" 66930 printf "* Cores to use: $JOBS\n" 66931 printf "* Memory limit: $MEMORY_SIZE MB\n" 66932 if test "x$CCACHE_STATUS" != "x"; then 66933 printf "* ccache status: $CCACHE_STATUS\n" 66934 fi 66935 printf "\n" 66936 66937 if test "x$BUILDING_MULTIPLE_JVM_VARIANTS" = "xtrue"; then 66938 printf "NOTE: You have requested to build more than one version of the JVM, which\n" 66939 printf "will result in longer build times.\n" 66940 printf "\n" 66941 fi 66942 66943 if test "x$FOUND_ALT_VARIABLES" != "x"; then 66944 printf "WARNING: You have old-style ALT_ environment variables set.\n" 66945 printf "These are not respected, and will be ignored. It is recommended\n" 66946 printf "that you clean your environment. The following variables are set:\n" 66947 printf "$FOUND_ALT_VARIABLES\n" 66948 printf "\n" 66949 fi 66950 66951 if test "x$OUTPUT_DIR_IS_LOCAL" != "xyes"; then 66952 printf "WARNING: Your build output directory is not on a local disk.\n" 66953 printf "This will severely degrade build performance!\n" 66954 printf "It is recommended that you create an output directory on a local disk,\n" 66955 printf "and run the configure script again from that directory.\n" 66956 printf "\n" 66957 fi 66958 66959 if test "x$IS_RECONFIGURE" = "xyes" && test "x$no_create" != "xyes"; then 66960 printf "WARNING: The result of this configuration has overridden an older\n" 66961 printf "configuration. You *should* run 'make clean' to make sure you get a\n" 66962 printf "proper build. Failure to do so might result in strange build problems.\n" 66963 printf "\n" 66964 fi 66965 66966 if test "x$IS_RECONFIGURE" != "xyes" && test "x$no_create" = "xyes"; then 66967 printf "WARNING: The result of this configuration was not saved.\n" 66968 printf "You should run without '--no-create | -n' to create the configuration.\n" 66969 printf "\n" 66970 fi 66971 66972 66973 66974 # Locate config.log. 66975 if test -e "$CONFIGURESUPPORT_OUTPUTDIR/config.log"; then 66976 CONFIG_LOG_PATH="$CONFIGURESUPPORT_OUTPUTDIR" 66977 elif test -e "./config.log"; then 66978 CONFIG_LOG_PATH="." 66979 fi 66980 66981 if test -e "$CONFIG_LOG_PATH/config.log"; then 66982 $GREP '^configure:.*: WARNING:' "$CONFIG_LOG_PATH/config.log" > /dev/null 2>&1 66983 if test $? -eq 0; then 66984 printf "The following warnings were produced. Repeated here for convenience:\n" 66985 # We must quote sed expression (using []) to stop m4 from eating the []. 66986 $GREP '^configure:.*: WARNING:' "$CONFIG_LOG_PATH/config.log" | $SED -e 's/^configure:[0-9]*: //' 66987 printf "\n" 66988 fi 66989 fi 66990