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=1481104795 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_src"; then 31193 IMPORT_MODULES_SRC="$IMPORT_MODULES_TOPDIR/modules_src" 31194 fi 31195 # Workaround for using different imported module-info.java in Jake due to a 31196 # change in format. Remove once new format is standard in JDK 9 and javafx 31197 # delivers just that. 31198 if test -d "$IMPORT_MODULES_TOPDIR/modules_src_jake"; then 31199 IMPORT_MODULES_SRC="$IMPORT_MODULES_TOPDIR/modules_src_jake $IMPORT_MODULES_SRC" 31200 fi 31201 if test -d "$IMPORT_MODULES_TOPDIR/make"; then 31202 IMPORT_MODULES_MAKE="$IMPORT_MODULES_TOPDIR/make" 31203 fi 31204 31205 31206 31207 31208 31209 31210 31211 31212 31213 ############################################################################### 31214 # 31215 # Setup the toolchain (compilers etc), i.e. tools used to compile and process 31216 # native code. 31217 # 31218 ############################################################################### 31219 31220 # See if we are doing a complete static build or not 31221 31222 # Check whether --enable-static-build was given. 31223 if test "${enable_static_build+set}" = set; then : 31224 enableval=$enable_static_build; 31225 fi 31226 31227 STATIC_BUILD=false 31228 if test "x$enable_static_build" = "xyes"; then 31229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if static build is enabled" >&5 31230 $as_echo_n "checking if static build is enabled... " >&6; } 31231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 31232 $as_echo "yes" >&6; } 31233 if test "x$OPENJDK_TARGET_OS" != "xmacosx"; then 31234 as_fn_error $? "--enable-static-build is only supported for macosx builds" "$LINENO" 5 31235 fi 31236 STATIC_BUILD_CFLAGS="-DSTATIC_BUILD=1" 31237 LEGACY_EXTRA_CFLAGS="$LEGACY_EXTRA_CFLAGS $STATIC_BUILD_CFLAGS" 31238 LEGACY_EXTRA_CXXFLAGS="$LEGACY_EXTRA_CXXFLAGS $STATIC_BUILD_CFLAGS" 31239 CFLAGS_JDKLIB_EXTRA="$CFLAGS_JDKLIB_EXTRA $STATIC_BUILD_CFLAGS" 31240 CXXFLAGS_JDKLIB_EXTRA="$CXXFLAGS_JDKLIB_EXTRA $STATIC_BUILD_CFLAGS" 31241 STATIC_BUILD=true 31242 elif test "x$enable_static_build" = "xno"; then 31243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if static build is enabled" >&5 31244 $as_echo_n "checking if static build is enabled... " >&6; } 31245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 31246 $as_echo "no" >&6; } 31247 elif test "x$enable_static_build" != "x"; then 31248 as_fn_error $? "--enable-static-build can only be assigned \"yes\" or \"no\"" "$LINENO" 5 31249 fi 31250 31251 31252 31253 31254 # First determine the toolchain type (compiler family) 31255 31256 31257 # Check whether --with-toolchain-type was given. 31258 if test "${with_toolchain_type+set}" = set; then : 31259 withval=$with_toolchain_type; 31260 fi 31261 31262 31263 # Use indirect variable referencing 31264 toolchain_var_name=VALID_TOOLCHAINS_$OPENJDK_BUILD_OS 31265 VALID_TOOLCHAINS=${!toolchain_var_name} 31266 31267 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 31268 if test -n "$XCODEBUILD"; then 31269 # On Mac OS X, default toolchain to clang after Xcode 5 31270 XCODE_VERSION_OUTPUT=`"$XCODEBUILD" -version 2>&1 | $HEAD -n 1` 31271 $ECHO "$XCODE_VERSION_OUTPUT" | $GREP "Xcode " > /dev/null 31272 if test $? -ne 0; then 31273 as_fn_error $? "Failed to determine Xcode version." "$LINENO" 5 31274 fi 31275 XCODE_MAJOR_VERSION=`$ECHO $XCODE_VERSION_OUTPUT | \ 31276 $SED -e 's/^Xcode \([1-9][0-9.]*\)/\1/' | \ 31277 $CUT -f 1 -d .` 31278 { $as_echo "$as_me:${as_lineno-$LINENO}: Xcode major version: $XCODE_MAJOR_VERSION" >&5 31279 $as_echo "$as_me: Xcode major version: $XCODE_MAJOR_VERSION" >&6;} 31280 if test $XCODE_MAJOR_VERSION -ge 5; then 31281 DEFAULT_TOOLCHAIN="clang" 31282 else 31283 DEFAULT_TOOLCHAIN="gcc" 31284 fi 31285 else 31286 # If Xcode is not installed, but the command line tools are 31287 # then we can't run xcodebuild. On these systems we should 31288 # default to clang 31289 DEFAULT_TOOLCHAIN="clang" 31290 fi 31291 else 31292 # First toolchain type in the list is the default 31293 DEFAULT_TOOLCHAIN=${VALID_TOOLCHAINS%% *} 31294 fi 31295 31296 if test "x$with_toolchain_type" = xlist; then 31297 # List all toolchains 31298 { $as_echo "$as_me:${as_lineno-$LINENO}: The following toolchains are valid on this platform:" >&5 31299 $as_echo "$as_me: The following toolchains are valid on this platform:" >&6;} 31300 for toolchain in $VALID_TOOLCHAINS; do 31301 toolchain_var_name=TOOLCHAIN_DESCRIPTION_$toolchain 31302 TOOLCHAIN_DESCRIPTION=${!toolchain_var_name} 31303 $PRINTF " %-10s %s\n" $toolchain "$TOOLCHAIN_DESCRIPTION" 31304 done 31305 31306 exit 0 31307 elif test "x$with_toolchain_type" != x; then 31308 # User override; check that it is valid 31309 if test "x${VALID_TOOLCHAINS/$with_toolchain_type/}" = "x${VALID_TOOLCHAINS}"; then 31310 { $as_echo "$as_me:${as_lineno-$LINENO}: Toolchain type $with_toolchain_type is not valid on this platform." >&5 31311 $as_echo "$as_me: Toolchain type $with_toolchain_type is not valid on this platform." >&6;} 31312 { $as_echo "$as_me:${as_lineno-$LINENO}: Valid toolchains: $VALID_TOOLCHAINS." >&5 31313 $as_echo "$as_me: Valid toolchains: $VALID_TOOLCHAINS." >&6;} 31314 as_fn_error $? "Cannot continue." "$LINENO" 5 31315 fi 31316 TOOLCHAIN_TYPE=$with_toolchain_type 31317 else 31318 # No flag given, use default 31319 TOOLCHAIN_TYPE=$DEFAULT_TOOLCHAIN 31320 fi 31321 31322 31323 TOOLCHAIN_CC_BINARY_clang="clang" 31324 TOOLCHAIN_CC_BINARY_gcc="gcc" 31325 TOOLCHAIN_CC_BINARY_microsoft="cl" 31326 TOOLCHAIN_CC_BINARY_solstudio="cc" 31327 TOOLCHAIN_CC_BINARY_xlc="xlc_r" 31328 31329 TOOLCHAIN_CXX_BINARY_clang="clang++" 31330 TOOLCHAIN_CXX_BINARY_gcc="g++" 31331 TOOLCHAIN_CXX_BINARY_microsoft="cl" 31332 TOOLCHAIN_CXX_BINARY_solstudio="CC" 31333 TOOLCHAIN_CXX_BINARY_xlc="xlC_r" 31334 31335 # Use indirect variable referencing 31336 toolchain_var_name=TOOLCHAIN_DESCRIPTION_$TOOLCHAIN_TYPE 31337 TOOLCHAIN_DESCRIPTION=${!toolchain_var_name} 31338 toolchain_var_name=TOOLCHAIN_MINIMUM_VERSION_$TOOLCHAIN_TYPE 31339 TOOLCHAIN_MINIMUM_VERSION=${!toolchain_var_name} 31340 toolchain_var_name=TOOLCHAIN_CC_BINARY_$TOOLCHAIN_TYPE 31341 TOOLCHAIN_CC_BINARY=${!toolchain_var_name} 31342 toolchain_var_name=TOOLCHAIN_CXX_BINARY_$TOOLCHAIN_TYPE 31343 TOOLCHAIN_CXX_BINARY=${!toolchain_var_name} 31344 31345 31346 # Define filename patterns 31347 if test "x$OPENJDK_TARGET_OS" = xwindows; then 31348 LIBRARY_PREFIX= 31349 SHARED_LIBRARY_SUFFIX='.dll' 31350 STATIC_LIBRARY_SUFFIX='.lib' 31351 SHARED_LIBRARY='$1.dll' 31352 STATIC_LIBRARY='$1.lib' 31353 OBJ_SUFFIX='.obj' 31354 EXE_SUFFIX='.exe' 31355 else 31356 LIBRARY_PREFIX=lib 31357 SHARED_LIBRARY_SUFFIX='.so' 31358 STATIC_LIBRARY_SUFFIX='.a' 31359 SHARED_LIBRARY='lib$1.so' 31360 STATIC_LIBRARY='lib$1.a' 31361 OBJ_SUFFIX='.o' 31362 EXE_SUFFIX='' 31363 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 31364 # For full static builds, we're overloading the SHARED_LIBRARY 31365 # variables in order to limit the amount of changes required. 31366 # It would be better to remove SHARED and just use LIBRARY and 31367 # LIBRARY_SUFFIX for libraries that can be built either 31368 # shared or static and use STATIC_* for libraries that are 31369 # always built statically. 31370 if test "x$STATIC_BUILD" = xtrue; then 31371 SHARED_LIBRARY='lib$1.a' 31372 SHARED_LIBRARY_SUFFIX='.a' 31373 else 31374 SHARED_LIBRARY='lib$1.dylib' 31375 SHARED_LIBRARY_SUFFIX='.dylib' 31376 fi 31377 fi 31378 fi 31379 31380 31381 31382 31383 31384 31385 31386 31387 31388 31389 if test "x$TOOLCHAIN_TYPE" = "x$DEFAULT_TOOLCHAIN"; then 31390 { $as_echo "$as_me:${as_lineno-$LINENO}: Using default toolchain $TOOLCHAIN_TYPE ($TOOLCHAIN_DESCRIPTION)" >&5 31391 $as_echo "$as_me: Using default toolchain $TOOLCHAIN_TYPE ($TOOLCHAIN_DESCRIPTION)" >&6;} 31392 else 31393 { $as_echo "$as_me:${as_lineno-$LINENO}: Using user selected toolchain $TOOLCHAIN_TYPE ($TOOLCHAIN_DESCRIPTION). Default toolchain is $DEFAULT_TOOLCHAIN." >&5 31394 $as_echo "$as_me: Using user selected toolchain $TOOLCHAIN_TYPE ($TOOLCHAIN_DESCRIPTION). Default toolchain is $DEFAULT_TOOLCHAIN." >&6;} 31395 fi 31396 31397 31398 # User supplied flags should be used when configure detects compilers 31399 31400 if test "x$CFLAGS" != "x${ADDED_CFLAGS}"; then 31401 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring CFLAGS($CFLAGS) found in environment. Use --with-extra-cflags" >&5 31402 $as_echo "$as_me: WARNING: Ignoring CFLAGS($CFLAGS) found in environment. Use --with-extra-cflags" >&2;} 31403 fi 31404 31405 if test "x$CXXFLAGS" != "x${ADDED_CXXFLAGS}"; then 31406 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring CXXFLAGS($CXXFLAGS) found in environment. Use --with-extra-cxxflags" >&5 31407 $as_echo "$as_me: WARNING: Ignoring CXXFLAGS($CXXFLAGS) found in environment. Use --with-extra-cxxflags" >&2;} 31408 fi 31409 31410 if test "x$LDFLAGS" != "x${ADDED_LDFLAGS}"; then 31411 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring LDFLAGS($LDFLAGS) found in environment. Use --with-extra-ldflags" >&5 31412 $as_echo "$as_me: WARNING: Ignoring LDFLAGS($LDFLAGS) found in environment. Use --with-extra-ldflags" >&2;} 31413 fi 31414 31415 31416 # Check whether --with-extra-cflags was given. 31417 if test "${with_extra_cflags+set}" = set; then : 31418 withval=$with_extra_cflags; 31419 fi 31420 31421 31422 31423 # Check whether --with-extra-cxxflags was given. 31424 if test "${with_extra_cxxflags+set}" = set; then : 31425 withval=$with_extra_cxxflags; 31426 fi 31427 31428 31429 31430 # Check whether --with-extra-ldflags was given. 31431 if test "${with_extra_ldflags+set}" = set; then : 31432 withval=$with_extra_ldflags; 31433 fi 31434 31435 31436 EXTRA_CFLAGS="$with_extra_cflags" 31437 EXTRA_CXXFLAGS="$with_extra_cxxflags" 31438 EXTRA_LDFLAGS="$with_extra_ldflags" 31439 31440 # Hotspot needs these set in their legacy form 31441 LEGACY_EXTRA_CFLAGS="$LEGACY_EXTRA_CFLAGS $EXTRA_CFLAGS" 31442 LEGACY_EXTRA_CXXFLAGS="$LEGACY_EXTRA_CXXFLAGS $EXTRA_CXXFLAGS" 31443 LEGACY_EXTRA_LDFLAGS="$LEGACY_EXTRA_LDFLAGS $EXTRA_LDFLAGS" 31444 31445 31446 31447 31448 31449 31450 31451 31452 31453 # The global CFLAGS and LDLAGS variables are used by configure tests and 31454 # should include the extra parameters 31455 CFLAGS="$EXTRA_CFLAGS" 31456 CXXFLAGS="$EXTRA_CXXFLAGS" 31457 LDFLAGS="$EXTRA_LDFLAGS" 31458 CPPFLAGS="" 31459 31460 # The sysroot cflags are needed for configure to be able to run the compilers 31461 31462 if test "x$SYSROOT" != "x"; then 31463 if test "x$TOOLCHAIN_TYPE" = xsolstudio; then 31464 if test "x$OPENJDK_TARGET_OS" = xsolaris; then 31465 # Solaris Studio does not have a concept of sysroot. Instead we must 31466 # make sure the default include and lib dirs are appended to each 31467 # compile and link command line. Must also add -I-xbuiltin to enable 31468 # inlining of system functions and intrinsics. 31469 SYSROOT_CFLAGS="-I-xbuiltin -I$SYSROOT/usr/include" 31470 SYSROOT_LDFLAGS="-L$SYSROOT/usr/lib$OPENJDK_TARGET_CPU_ISADIR \ 31471 -L$SYSROOT/lib$OPENJDK_TARGET_CPU_ISADIR" 31472 fi 31473 elif test "x$TOOLCHAIN_TYPE" = xgcc; then 31474 SYSROOT_CFLAGS="--sysroot=$SYSROOT" 31475 SYSROOT_LDFLAGS="--sysroot=$SYSROOT" 31476 elif test "x$TOOLCHAIN_TYPE" = xclang; then 31477 SYSROOT_CFLAGS="-isysroot $SYSROOT" 31478 SYSROOT_LDFLAGS="-isysroot $SYSROOT" 31479 fi 31480 # Propagate the sysroot args to hotspot 31481 LEGACY_EXTRA_CFLAGS="$LEGACY_EXTRA_CFLAGS $SYSROOT_CFLAGS" 31482 LEGACY_EXTRA_CXXFLAGS="$LEGACY_EXTRA_CXXFLAGS $SYSROOT_CFLAGS" 31483 LEGACY_EXTRA_LDFLAGS="$LEGACY_EXTRA_LDFLAGS $SYSROOT_LDFLAGS" 31484 # The global CFLAGS and LDFLAGS variables need these for configure to function 31485 CFLAGS="$CFLAGS $SYSROOT_CFLAGS" 31486 CPPFLAGS="$CPPFLAGS $SYSROOT_CFLAGS" 31487 CXXFLAGS="$CXXFLAGS $SYSROOT_CFLAGS" 31488 LDFLAGS="$LDFLAGS $SYSROOT_LDFLAGS" 31489 fi 31490 31491 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 31492 # We also need -iframework<path>/System/Library/Frameworks 31493 SYSROOT_CFLAGS="$SYSROOT_CFLAGS -iframework $SYSROOT/System/Library/Frameworks" 31494 SYSROOT_LDFLAGS="$SYSROOT_LDFLAGS -iframework $SYSROOT/System/Library/Frameworks" 31495 # These always need to be set, or we can't find the frameworks embedded in JavaVM.framework 31496 # set this here so it doesn't have to be peppered throughout the forest 31497 SYSROOT_CFLAGS="$SYSROOT_CFLAGS -F $SYSROOT/System/Library/Frameworks/JavaVM.framework/Frameworks" 31498 SYSROOT_LDFLAGS="$SYSROOT_LDFLAGS -F $SYSROOT/System/Library/Frameworks/JavaVM.framework/Frameworks" 31499 fi 31500 31501 31502 31503 31504 31505 # Then detect the actual binaries needed 31506 31507 # FIXME: Is this needed? 31508 ac_ext=cpp 31509 ac_cpp='$CXXCPP $CPPFLAGS' 31510 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 31511 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 31512 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 31513 31514 31515 # Store the CFLAGS etc passed to the configure script. 31516 ORG_CFLAGS="$CFLAGS" 31517 ORG_CXXFLAGS="$CXXFLAGS" 31518 31519 # autoconf magic only relies on PATH, so update it if tools dir is specified 31520 OLD_PATH="$PATH" 31521 31522 # On Windows, we need to detect the visual studio installation first. 31523 # This will change the PATH, but we need to keep that new PATH even 31524 # after toolchain detection is done, since the compiler (on x86) uses 31525 # it for DLL resolution in runtime. 31526 if test "x$OPENJDK_BUILD_OS" = "xwindows" \ 31527 && test "x$TOOLCHAIN_TYPE" = "xmicrosoft"; then 31528 31529 # Store path to cygwin link.exe to help excluding it when searching for 31530 # VS linker. This must be done before changing the PATH when looking for VS. 31531 # Extract the first word of "link", so it can be a program name with args. 31532 set dummy link; ac_word=$2 31533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 31534 $as_echo_n "checking for $ac_word... " >&6; } 31535 if ${ac_cv_path_CYGWIN_LINK+:} false; then : 31536 $as_echo_n "(cached) " >&6 31537 else 31538 case $CYGWIN_LINK in 31539 [\\/]* | ?:[\\/]*) 31540 ac_cv_path_CYGWIN_LINK="$CYGWIN_LINK" # Let the user override the test with a path. 31541 ;; 31542 *) 31543 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 31544 for as_dir in $PATH 31545 do 31546 IFS=$as_save_IFS 31547 test -z "$as_dir" && as_dir=. 31548 for ac_exec_ext in '' $ac_executable_extensions; do 31549 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 31550 ac_cv_path_CYGWIN_LINK="$as_dir/$ac_word$ac_exec_ext" 31551 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 31552 break 2 31553 fi 31554 done 31555 done 31556 IFS=$as_save_IFS 31557 31558 ;; 31559 esac 31560 fi 31561 CYGWIN_LINK=$ac_cv_path_CYGWIN_LINK 31562 if test -n "$CYGWIN_LINK"; then 31563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CYGWIN_LINK" >&5 31564 $as_echo "$CYGWIN_LINK" >&6; } 31565 else 31566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 31567 $as_echo "no" >&6; } 31568 fi 31569 31570 31571 if test "x$CYGWIN_LINK" != x; then 31572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the first found link.exe is actually the Cygwin link tool" >&5 31573 $as_echo_n "checking if the first found link.exe is actually the Cygwin link tool... " >&6; } 31574 "$CYGWIN_LINK" --version > /dev/null 31575 if test $? -eq 0 ; then 31576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 31577 $as_echo "yes" >&6; } 31578 else 31579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 31580 $as_echo "no" >&6; } 31581 # This might be the VS linker. Don't exclude it later on. 31582 CYGWIN_LINK="" 31583 fi 31584 fi 31585 31586 # First-hand choice is to locate and run the vsvars bat file. 31587 31588 31589 # Check whether --with-toolchain-version was given. 31590 if test "${with_toolchain_version+set}" = set; then : 31591 withval=$with_toolchain_version; 31592 fi 31593 31594 31595 if test "x$with_toolchain_version" = xlist; then 31596 # List all toolchains 31597 { $as_echo "$as_me:${as_lineno-$LINENO}: The following toolchain versions are valid on this platform:" >&5 31598 $as_echo "$as_me: The following toolchain versions are valid on this platform:" >&6;} 31599 for version in $VALID_VS_VERSIONS; do 31600 eval VS_DESCRIPTION=\${VS_DESCRIPTION_$version} 31601 $PRINTF " %-10s %s\n" $version "$VS_DESCRIPTION" 31602 done 31603 31604 exit 0 31605 elif test "x$DEVKIT_VS_VERSION" != x; then 31606 VS_VERSION=$DEVKIT_VS_VERSION 31607 TOOLCHAIN_VERSION=$VS_VERSION 31608 eval VS_DESCRIPTION="\${VS_DESCRIPTION_${VS_VERSION}}" 31609 eval VS_VERSION_INTERNAL="\${VS_VERSION_INTERNAL_${VS_VERSION}}" 31610 eval MSVCR_NAME="\${VS_MSVCR_${VS_VERSION}}" 31611 eval MSVCP_NAME="\${VS_MSVCP_${VS_VERSION}}" 31612 eval PLATFORM_TOOLSET="\${VS_VS_PLATFORM_NAME_${VS_VERSION}}" 31613 VS_PATH="$TOOLCHAIN_PATH:$PATH" 31614 31615 # Convert DEVKIT_VS_INCLUDE into windows style VS_INCLUDE so that it 31616 # can still be exported as INCLUDE for compiler invocations without 31617 # SYSROOT_CFLAGS 31618 OLDIFS="$IFS" 31619 IFS=";" 31620 for i in $DEVKIT_VS_INCLUDE; do 31621 ipath=$i 31622 31623 unix_path="$ipath" 31624 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 31625 windows_path=`$CYGPATH -m "$unix_path"` 31626 ipath="$windows_path" 31627 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 31628 windows_path=`cmd //c echo $unix_path` 31629 ipath="$windows_path" 31630 fi 31631 31632 VS_INCLUDE="$VS_INCLUDE;$ipath" 31633 done 31634 # Convert DEVKIT_VS_LIB into VS_LIB so that it can still be exported 31635 # as LIB for compiler invocations without SYSROOT_LDFLAGS 31636 for i in $DEVKIT_VS_LIB; do 31637 libpath=$i 31638 31639 unix_path="$libpath" 31640 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 31641 windows_path=`$CYGPATH -m "$unix_path"` 31642 libpath="$windows_path" 31643 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 31644 windows_path=`cmd //c echo $unix_path` 31645 libpath="$windows_path" 31646 fi 31647 31648 VS_LIB="$VS_LIB;$libpath" 31649 done 31650 IFS="$OLDIFS" 31651 31652 { $as_echo "$as_me:${as_lineno-$LINENO}: Found devkit $VS_DESCRIPTION" >&5 31653 $as_echo "$as_me: Found devkit $VS_DESCRIPTION" >&6;} 31654 31655 elif test "x$with_toolchain_version" != x; then 31656 # User override; check that it is valid 31657 if test "x${VALID_VS_VERSIONS/$with_toolchain_version/}" = "x${VALID_VS_VERSIONS}"; then 31658 { $as_echo "$as_me:${as_lineno-$LINENO}: Visual Studio version $with_toolchain_version is not valid." >&5 31659 $as_echo "$as_me: Visual Studio version $with_toolchain_version is not valid." >&6;} 31660 { $as_echo "$as_me:${as_lineno-$LINENO}: Valid Visual Studio versions: $VALID_VS_VERSIONS." >&5 31661 $as_echo "$as_me: Valid Visual Studio versions: $VALID_VS_VERSIONS." >&6;} 31662 as_fn_error $? "Cannot continue." "$LINENO" 5 31663 fi 31664 VS_VERSIONS_PROBE_LIST="$with_toolchain_version" 31665 else 31666 # No flag given, use default 31667 VS_VERSIONS_PROBE_LIST="$VALID_VS_VERSIONS" 31668 fi 31669 31670 for VS_VERSION in $VS_VERSIONS_PROBE_LIST; do 31671 31672 VS_VERSION="$VS_VERSION" 31673 eval VS_COMNTOOLS_VAR="\${VS_ENVVAR_${VS_VERSION}}" 31674 eval VS_COMNTOOLS="\$${VS_COMNTOOLS_VAR}" 31675 eval VS_INSTALL_DIR="\${VS_VS_INSTALLDIR_${VS_VERSION}}" 31676 eval SDK_INSTALL_DIR="\${VS_SDK_INSTALLDIR_${VS_VERSION}}" 31677 31678 # When using --with-tools-dir, assume it points to the correct and default 31679 # version of Visual Studio or that --with-toolchain-version was also set. 31680 if test "x$with_tools_dir" != x; then 31681 31682 if test "x$VS_ENV_CMD" = x; then 31683 VS_VERSION="${VS_VERSION}" 31684 VS_BASE="$with_tools_dir/../.." 31685 METHOD="--with-tools-dir" 31686 31687 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 31688 VCVARSFILE="vc/bin/vcvars32.bat" 31689 else 31690 VCVARSFILE="vc/bin/amd64/vcvars64.bat" 31691 fi 31692 31693 31694 windows_path="$VS_BASE" 31695 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 31696 unix_path=`$CYGPATH -u "$windows_path"` 31697 VS_BASE="$unix_path" 31698 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 31699 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 31700 VS_BASE="$unix_path" 31701 fi 31702 31703 if test -d "$VS_BASE"; then 31704 if test -f "$VS_BASE/$VCVARSFILE"; then 31705 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Visual Studio installation at $VS_BASE using $METHOD" >&5 31706 $as_echo "$as_me: Found Visual Studio installation at $VS_BASE using $METHOD" >&6;} 31707 VS_ENV_CMD="$VS_BASE/$VCVARSFILE" 31708 # PLATFORM_TOOLSET is used during the compilation of the freetype sources (see 31709 # 'LIB_BUILD_FREETYPE' in libraries.m4) and must be one of 'v100', 'v110' or 'v120' for VS 2010, 2012 or VS2013 31710 eval PLATFORM_TOOLSET="\${VS_VS_PLATFORM_NAME_${VS_VERSION}}" 31711 else 31712 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Visual Studio installation at $VS_BASE using $METHOD" >&5 31713 $as_echo "$as_me: Found Visual Studio installation at $VS_BASE using $METHOD" >&6;} 31714 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: $VCVARSFILE is missing, this is probably Visual Studio Express. Ignoring" >&5 31715 $as_echo "$as_me: Warning: $VCVARSFILE is missing, this is probably Visual Studio Express. Ignoring" >&6;} 31716 fi 31717 fi 31718 fi 31719 31720 31721 if test "x$VS_ENV_CMD" = x; then 31722 VS_VERSION="${VS_VERSION}" 31723 VS_BASE="$with_tools_dir/../../.." 31724 METHOD="--with-tools-dir" 31725 31726 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 31727 VCVARSFILE="vc/bin/vcvars32.bat" 31728 else 31729 VCVARSFILE="vc/bin/amd64/vcvars64.bat" 31730 fi 31731 31732 31733 windows_path="$VS_BASE" 31734 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 31735 unix_path=`$CYGPATH -u "$windows_path"` 31736 VS_BASE="$unix_path" 31737 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 31738 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 31739 VS_BASE="$unix_path" 31740 fi 31741 31742 if test -d "$VS_BASE"; then 31743 if test -f "$VS_BASE/$VCVARSFILE"; then 31744 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Visual Studio installation at $VS_BASE using $METHOD" >&5 31745 $as_echo "$as_me: Found Visual Studio installation at $VS_BASE using $METHOD" >&6;} 31746 VS_ENV_CMD="$VS_BASE/$VCVARSFILE" 31747 # PLATFORM_TOOLSET is used during the compilation of the freetype sources (see 31748 # 'LIB_BUILD_FREETYPE' in libraries.m4) and must be one of 'v100', 'v110' or 'v120' for VS 2010, 2012 or VS2013 31749 eval PLATFORM_TOOLSET="\${VS_VS_PLATFORM_NAME_${VS_VERSION}}" 31750 else 31751 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Visual Studio installation at $VS_BASE using $METHOD" >&5 31752 $as_echo "$as_me: Found Visual Studio installation at $VS_BASE using $METHOD" >&6;} 31753 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: $VCVARSFILE is missing, this is probably Visual Studio Express. Ignoring" >&5 31754 $as_echo "$as_me: Warning: $VCVARSFILE is missing, this is probably Visual Studio Express. Ignoring" >&6;} 31755 fi 31756 fi 31757 fi 31758 31759 if test "x$VS_ENV_CMD" = x; then 31760 # Having specified an argument which is incorrect will produce an instant failure; 31761 # we should not go on looking 31762 { $as_echo "$as_me:${as_lineno-$LINENO}: The path given by --with-tools-dir does not contain a valid" >&5 31763 $as_echo "$as_me: The path given by --with-tools-dir does not contain a valid" >&6;} 31764 { $as_echo "$as_me:${as_lineno-$LINENO}: Visual Studio installation. Please point to the VC/bin or VC/bin/amd64" >&5 31765 $as_echo "$as_me: Visual Studio installation. Please point to the VC/bin or VC/bin/amd64" >&6;} 31766 { $as_echo "$as_me:${as_lineno-$LINENO}: directory within the Visual Studio installation" >&5 31767 $as_echo "$as_me: directory within the Visual Studio installation" >&6;} 31768 as_fn_error $? "Cannot locate a valid Visual Studio installation" "$LINENO" 5 31769 fi 31770 fi 31771 31772 VS_ENV_CMD="" 31773 VS_ENV_ARGS="" 31774 31775 if test "x$VS_COMNTOOLS" != x; then 31776 31777 if test "x$VS_ENV_CMD" = x; then 31778 VS_VERSION="${VS_VERSION}" 31779 VS_BASE="$VS_COMNTOOLS/../.." 31780 METHOD="$VS_COMNTOOLS_VAR variable" 31781 31782 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 31783 VCVARSFILE="vc/bin/vcvars32.bat" 31784 else 31785 VCVARSFILE="vc/bin/amd64/vcvars64.bat" 31786 fi 31787 31788 31789 windows_path="$VS_BASE" 31790 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 31791 unix_path=`$CYGPATH -u "$windows_path"` 31792 VS_BASE="$unix_path" 31793 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 31794 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 31795 VS_BASE="$unix_path" 31796 fi 31797 31798 if test -d "$VS_BASE"; then 31799 if test -f "$VS_BASE/$VCVARSFILE"; then 31800 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Visual Studio installation at $VS_BASE using $METHOD" >&5 31801 $as_echo "$as_me: Found Visual Studio installation at $VS_BASE using $METHOD" >&6;} 31802 VS_ENV_CMD="$VS_BASE/$VCVARSFILE" 31803 # PLATFORM_TOOLSET is used during the compilation of the freetype sources (see 31804 # 'LIB_BUILD_FREETYPE' in libraries.m4) and must be one of 'v100', 'v110' or 'v120' for VS 2010, 2012 or VS2013 31805 eval PLATFORM_TOOLSET="\${VS_VS_PLATFORM_NAME_${VS_VERSION}}" 31806 else 31807 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Visual Studio installation at $VS_BASE using $METHOD" >&5 31808 $as_echo "$as_me: Found Visual Studio installation at $VS_BASE using $METHOD" >&6;} 31809 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: $VCVARSFILE is missing, this is probably Visual Studio Express. Ignoring" >&5 31810 $as_echo "$as_me: Warning: $VCVARSFILE is missing, this is probably Visual Studio Express. Ignoring" >&6;} 31811 fi 31812 fi 31813 fi 31814 31815 fi 31816 if test "x$PROGRAMFILES" != x; then 31817 31818 if test "x$VS_ENV_CMD" = x; then 31819 VS_VERSION="${VS_VERSION}" 31820 VS_BASE="$PROGRAMFILES/$VS_INSTALL_DIR" 31821 METHOD="well-known name" 31822 31823 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 31824 VCVARSFILE="vc/bin/vcvars32.bat" 31825 else 31826 VCVARSFILE="vc/bin/amd64/vcvars64.bat" 31827 fi 31828 31829 31830 windows_path="$VS_BASE" 31831 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 31832 unix_path=`$CYGPATH -u "$windows_path"` 31833 VS_BASE="$unix_path" 31834 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 31835 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 31836 VS_BASE="$unix_path" 31837 fi 31838 31839 if test -d "$VS_BASE"; then 31840 if test -f "$VS_BASE/$VCVARSFILE"; then 31841 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Visual Studio installation at $VS_BASE using $METHOD" >&5 31842 $as_echo "$as_me: Found Visual Studio installation at $VS_BASE using $METHOD" >&6;} 31843 VS_ENV_CMD="$VS_BASE/$VCVARSFILE" 31844 # PLATFORM_TOOLSET is used during the compilation of the freetype sources (see 31845 # 'LIB_BUILD_FREETYPE' in libraries.m4) and must be one of 'v100', 'v110' or 'v120' for VS 2010, 2012 or VS2013 31846 eval PLATFORM_TOOLSET="\${VS_VS_PLATFORM_NAME_${VS_VERSION}}" 31847 else 31848 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Visual Studio installation at $VS_BASE using $METHOD" >&5 31849 $as_echo "$as_me: Found Visual Studio installation at $VS_BASE using $METHOD" >&6;} 31850 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: $VCVARSFILE is missing, this is probably Visual Studio Express. Ignoring" >&5 31851 $as_echo "$as_me: Warning: $VCVARSFILE is missing, this is probably Visual Studio Express. Ignoring" >&6;} 31852 fi 31853 fi 31854 fi 31855 31856 fi 31857 # Work around the insanely named ProgramFiles(x86) env variable 31858 PROGRAMFILES_X86="`env | $SED -n 's/^ProgramFiles(x86)=//p'`" 31859 if test "x$PROGRAMFILES_X86" != x; then 31860 31861 if test "x$VS_ENV_CMD" = x; then 31862 VS_VERSION="${VS_VERSION}" 31863 VS_BASE="$PROGRAMFILES_X86/$VS_INSTALL_DIR" 31864 METHOD="well-known name" 31865 31866 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 31867 VCVARSFILE="vc/bin/vcvars32.bat" 31868 else 31869 VCVARSFILE="vc/bin/amd64/vcvars64.bat" 31870 fi 31871 31872 31873 windows_path="$VS_BASE" 31874 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 31875 unix_path=`$CYGPATH -u "$windows_path"` 31876 VS_BASE="$unix_path" 31877 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 31878 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 31879 VS_BASE="$unix_path" 31880 fi 31881 31882 if test -d "$VS_BASE"; then 31883 if test -f "$VS_BASE/$VCVARSFILE"; then 31884 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Visual Studio installation at $VS_BASE using $METHOD" >&5 31885 $as_echo "$as_me: Found Visual Studio installation at $VS_BASE using $METHOD" >&6;} 31886 VS_ENV_CMD="$VS_BASE/$VCVARSFILE" 31887 # PLATFORM_TOOLSET is used during the compilation of the freetype sources (see 31888 # 'LIB_BUILD_FREETYPE' in libraries.m4) and must be one of 'v100', 'v110' or 'v120' for VS 2010, 2012 or VS2013 31889 eval PLATFORM_TOOLSET="\${VS_VS_PLATFORM_NAME_${VS_VERSION}}" 31890 else 31891 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Visual Studio installation at $VS_BASE using $METHOD" >&5 31892 $as_echo "$as_me: Found Visual Studio installation at $VS_BASE using $METHOD" >&6;} 31893 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: $VCVARSFILE is missing, this is probably Visual Studio Express. Ignoring" >&5 31894 $as_echo "$as_me: Warning: $VCVARSFILE is missing, this is probably Visual Studio Express. Ignoring" >&6;} 31895 fi 31896 fi 31897 fi 31898 31899 fi 31900 31901 if test "x$VS_ENV_CMD" = x; then 31902 VS_VERSION="${VS_VERSION}" 31903 VS_BASE="C:/Program Files/$VS_INSTALL_DIR" 31904 METHOD="well-known name" 31905 31906 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 31907 VCVARSFILE="vc/bin/vcvars32.bat" 31908 else 31909 VCVARSFILE="vc/bin/amd64/vcvars64.bat" 31910 fi 31911 31912 31913 windows_path="$VS_BASE" 31914 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 31915 unix_path=`$CYGPATH -u "$windows_path"` 31916 VS_BASE="$unix_path" 31917 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 31918 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 31919 VS_BASE="$unix_path" 31920 fi 31921 31922 if test -d "$VS_BASE"; then 31923 if test -f "$VS_BASE/$VCVARSFILE"; then 31924 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Visual Studio installation at $VS_BASE using $METHOD" >&5 31925 $as_echo "$as_me: Found Visual Studio installation at $VS_BASE using $METHOD" >&6;} 31926 VS_ENV_CMD="$VS_BASE/$VCVARSFILE" 31927 # PLATFORM_TOOLSET is used during the compilation of the freetype sources (see 31928 # 'LIB_BUILD_FREETYPE' in libraries.m4) and must be one of 'v100', 'v110' or 'v120' for VS 2010, 2012 or VS2013 31929 eval PLATFORM_TOOLSET="\${VS_VS_PLATFORM_NAME_${VS_VERSION}}" 31930 else 31931 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Visual Studio installation at $VS_BASE using $METHOD" >&5 31932 $as_echo "$as_me: Found Visual Studio installation at $VS_BASE using $METHOD" >&6;} 31933 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: $VCVARSFILE is missing, this is probably Visual Studio Express. Ignoring" >&5 31934 $as_echo "$as_me: Warning: $VCVARSFILE is missing, this is probably Visual Studio Express. Ignoring" >&6;} 31935 fi 31936 fi 31937 fi 31938 31939 31940 if test "x$VS_ENV_CMD" = x; then 31941 VS_VERSION="${VS_VERSION}" 31942 VS_BASE="C:/Program Files (x86)/$VS_INSTALL_DIR" 31943 METHOD="well-known name" 31944 31945 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 31946 VCVARSFILE="vc/bin/vcvars32.bat" 31947 else 31948 VCVARSFILE="vc/bin/amd64/vcvars64.bat" 31949 fi 31950 31951 31952 windows_path="$VS_BASE" 31953 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 31954 unix_path=`$CYGPATH -u "$windows_path"` 31955 VS_BASE="$unix_path" 31956 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 31957 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 31958 VS_BASE="$unix_path" 31959 fi 31960 31961 if test -d "$VS_BASE"; then 31962 if test -f "$VS_BASE/$VCVARSFILE"; then 31963 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Visual Studio installation at $VS_BASE using $METHOD" >&5 31964 $as_echo "$as_me: Found Visual Studio installation at $VS_BASE using $METHOD" >&6;} 31965 VS_ENV_CMD="$VS_BASE/$VCVARSFILE" 31966 # PLATFORM_TOOLSET is used during the compilation of the freetype sources (see 31967 # 'LIB_BUILD_FREETYPE' in libraries.m4) and must be one of 'v100', 'v110' or 'v120' for VS 2010, 2012 or VS2013 31968 eval PLATFORM_TOOLSET="\${VS_VS_PLATFORM_NAME_${VS_VERSION}}" 31969 else 31970 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Visual Studio installation at $VS_BASE using $METHOD" >&5 31971 $as_echo "$as_me: Found Visual Studio installation at $VS_BASE using $METHOD" >&6;} 31972 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: $VCVARSFILE is missing, this is probably Visual Studio Express. Ignoring" >&5 31973 $as_echo "$as_me: Warning: $VCVARSFILE is missing, this is probably Visual Studio Express. Ignoring" >&6;} 31974 fi 31975 fi 31976 fi 31977 31978 31979 if test "x$SDK_INSTALL_DIR" != x; then 31980 if test "x$ProgramW6432" != x; then 31981 31982 if test "x$VS_ENV_CMD" = x; then 31983 VS_VERSION="${VS_VERSION}" 31984 WIN_SDK_BASE="$ProgramW6432/$SDK_INSTALL_DIR" 31985 METHOD="well-known name" 31986 31987 windows_path="$WIN_SDK_BASE" 31988 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 31989 unix_path=`$CYGPATH -u "$windows_path"` 31990 WIN_SDK_BASE="$unix_path" 31991 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 31992 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 31993 WIN_SDK_BASE="$unix_path" 31994 fi 31995 31996 if test -d "$WIN_SDK_BASE"; then 31997 # There have been cases of partial or broken SDK installations. A missing 31998 # lib dir is not going to work. 31999 if test ! -d "$WIN_SDK_BASE/lib"; then 32000 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5 32001 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;} 32002 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: Installation is broken, lib dir is missing. Ignoring" >&5 32003 $as_echo "$as_me: Warning: Installation is broken, lib dir is missing. Ignoring" >&6;} 32004 elif test -f "$WIN_SDK_BASE/Bin/SetEnv.Cmd"; then 32005 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5 32006 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;} 32007 VS_ENV_CMD="$WIN_SDK_BASE/Bin/SetEnv.Cmd" 32008 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 32009 VS_ENV_ARGS="/x86" 32010 else 32011 VS_ENV_ARGS="/x64" 32012 fi 32013 # PLATFORM_TOOLSET is used during the compilation of the freetype sources (see 32014 # 'LIB_BUILD_FREETYPE' in libraries.m4) and must be 'Windows7.1SDK' for Windows7.1SDK 32015 # TODO: improve detection for other versions of SDK 32016 eval PLATFORM_TOOLSET="\${VS_SDK_PLATFORM_NAME_${VS_VERSION}}" 32017 else 32018 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5 32019 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;} 32020 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: Installation is broken, SetEnv.Cmd is missing. Ignoring" >&5 32021 $as_echo "$as_me: Warning: Installation is broken, SetEnv.Cmd is missing. Ignoring" >&6;} 32022 fi 32023 fi 32024 fi 32025 32026 fi 32027 if test "x$PROGRAMW6432" != x; then 32028 32029 if test "x$VS_ENV_CMD" = x; then 32030 VS_VERSION="${VS_VERSION}" 32031 WIN_SDK_BASE="$PROGRAMW6432/$SDK_INSTALL_DIR" 32032 METHOD="well-known name" 32033 32034 windows_path="$WIN_SDK_BASE" 32035 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 32036 unix_path=`$CYGPATH -u "$windows_path"` 32037 WIN_SDK_BASE="$unix_path" 32038 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 32039 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 32040 WIN_SDK_BASE="$unix_path" 32041 fi 32042 32043 if test -d "$WIN_SDK_BASE"; then 32044 # There have been cases of partial or broken SDK installations. A missing 32045 # lib dir is not going to work. 32046 if test ! -d "$WIN_SDK_BASE/lib"; then 32047 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5 32048 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;} 32049 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: Installation is broken, lib dir is missing. Ignoring" >&5 32050 $as_echo "$as_me: Warning: Installation is broken, lib dir is missing. Ignoring" >&6;} 32051 elif test -f "$WIN_SDK_BASE/Bin/SetEnv.Cmd"; then 32052 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5 32053 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;} 32054 VS_ENV_CMD="$WIN_SDK_BASE/Bin/SetEnv.Cmd" 32055 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 32056 VS_ENV_ARGS="/x86" 32057 else 32058 VS_ENV_ARGS="/x64" 32059 fi 32060 # PLATFORM_TOOLSET is used during the compilation of the freetype sources (see 32061 # 'LIB_BUILD_FREETYPE' in libraries.m4) and must be 'Windows7.1SDK' for Windows7.1SDK 32062 # TODO: improve detection for other versions of SDK 32063 eval PLATFORM_TOOLSET="\${VS_SDK_PLATFORM_NAME_${VS_VERSION}}" 32064 else 32065 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5 32066 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;} 32067 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: Installation is broken, SetEnv.Cmd is missing. Ignoring" >&5 32068 $as_echo "$as_me: Warning: Installation is broken, SetEnv.Cmd is missing. Ignoring" >&6;} 32069 fi 32070 fi 32071 fi 32072 32073 fi 32074 if test "x$PROGRAMFILES" != x; then 32075 32076 if test "x$VS_ENV_CMD" = x; then 32077 VS_VERSION="${VS_VERSION}" 32078 WIN_SDK_BASE="$PROGRAMFILES/$SDK_INSTALL_DIR" 32079 METHOD="well-known name" 32080 32081 windows_path="$WIN_SDK_BASE" 32082 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 32083 unix_path=`$CYGPATH -u "$windows_path"` 32084 WIN_SDK_BASE="$unix_path" 32085 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 32086 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 32087 WIN_SDK_BASE="$unix_path" 32088 fi 32089 32090 if test -d "$WIN_SDK_BASE"; then 32091 # There have been cases of partial or broken SDK installations. A missing 32092 # lib dir is not going to work. 32093 if test ! -d "$WIN_SDK_BASE/lib"; then 32094 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5 32095 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;} 32096 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: Installation is broken, lib dir is missing. Ignoring" >&5 32097 $as_echo "$as_me: Warning: Installation is broken, lib dir is missing. Ignoring" >&6;} 32098 elif test -f "$WIN_SDK_BASE/Bin/SetEnv.Cmd"; then 32099 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5 32100 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;} 32101 VS_ENV_CMD="$WIN_SDK_BASE/Bin/SetEnv.Cmd" 32102 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 32103 VS_ENV_ARGS="/x86" 32104 else 32105 VS_ENV_ARGS="/x64" 32106 fi 32107 # PLATFORM_TOOLSET is used during the compilation of the freetype sources (see 32108 # 'LIB_BUILD_FREETYPE' in libraries.m4) and must be 'Windows7.1SDK' for Windows7.1SDK 32109 # TODO: improve detection for other versions of SDK 32110 eval PLATFORM_TOOLSET="\${VS_SDK_PLATFORM_NAME_${VS_VERSION}}" 32111 else 32112 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5 32113 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;} 32114 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: Installation is broken, SetEnv.Cmd is missing. Ignoring" >&5 32115 $as_echo "$as_me: Warning: Installation is broken, SetEnv.Cmd is missing. Ignoring" >&6;} 32116 fi 32117 fi 32118 fi 32119 32120 fi 32121 32122 if test "x$VS_ENV_CMD" = x; then 32123 VS_VERSION="${VS_VERSION}" 32124 WIN_SDK_BASE="C:/Program Files/$SDK_INSTALL_DIR" 32125 METHOD="well-known name" 32126 32127 windows_path="$WIN_SDK_BASE" 32128 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 32129 unix_path=`$CYGPATH -u "$windows_path"` 32130 WIN_SDK_BASE="$unix_path" 32131 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 32132 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 32133 WIN_SDK_BASE="$unix_path" 32134 fi 32135 32136 if test -d "$WIN_SDK_BASE"; then 32137 # There have been cases of partial or broken SDK installations. A missing 32138 # lib dir is not going to work. 32139 if test ! -d "$WIN_SDK_BASE/lib"; then 32140 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5 32141 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;} 32142 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: Installation is broken, lib dir is missing. Ignoring" >&5 32143 $as_echo "$as_me: Warning: Installation is broken, lib dir is missing. Ignoring" >&6;} 32144 elif test -f "$WIN_SDK_BASE/Bin/SetEnv.Cmd"; then 32145 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5 32146 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;} 32147 VS_ENV_CMD="$WIN_SDK_BASE/Bin/SetEnv.Cmd" 32148 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 32149 VS_ENV_ARGS="/x86" 32150 else 32151 VS_ENV_ARGS="/x64" 32152 fi 32153 # PLATFORM_TOOLSET is used during the compilation of the freetype sources (see 32154 # 'LIB_BUILD_FREETYPE' in libraries.m4) and must be 'Windows7.1SDK' for Windows7.1SDK 32155 # TODO: improve detection for other versions of SDK 32156 eval PLATFORM_TOOLSET="\${VS_SDK_PLATFORM_NAME_${VS_VERSION}}" 32157 else 32158 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5 32159 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;} 32160 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: Installation is broken, SetEnv.Cmd is missing. Ignoring" >&5 32161 $as_echo "$as_me: Warning: Installation is broken, SetEnv.Cmd is missing. Ignoring" >&6;} 32162 fi 32163 fi 32164 fi 32165 32166 32167 if test "x$VS_ENV_CMD" = x; then 32168 VS_VERSION="${VS_VERSION}" 32169 WIN_SDK_BASE="C:/Program Files (x86)/$SDK_INSTALL_DIR" 32170 METHOD="well-known name" 32171 32172 windows_path="$WIN_SDK_BASE" 32173 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 32174 unix_path=`$CYGPATH -u "$windows_path"` 32175 WIN_SDK_BASE="$unix_path" 32176 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 32177 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 32178 WIN_SDK_BASE="$unix_path" 32179 fi 32180 32181 if test -d "$WIN_SDK_BASE"; then 32182 # There have been cases of partial or broken SDK installations. A missing 32183 # lib dir is not going to work. 32184 if test ! -d "$WIN_SDK_BASE/lib"; then 32185 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5 32186 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;} 32187 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: Installation is broken, lib dir is missing. Ignoring" >&5 32188 $as_echo "$as_me: Warning: Installation is broken, lib dir is missing. Ignoring" >&6;} 32189 elif test -f "$WIN_SDK_BASE/Bin/SetEnv.Cmd"; then 32190 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5 32191 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;} 32192 VS_ENV_CMD="$WIN_SDK_BASE/Bin/SetEnv.Cmd" 32193 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 32194 VS_ENV_ARGS="/x86" 32195 else 32196 VS_ENV_ARGS="/x64" 32197 fi 32198 # PLATFORM_TOOLSET is used during the compilation of the freetype sources (see 32199 # 'LIB_BUILD_FREETYPE' in libraries.m4) and must be 'Windows7.1SDK' for Windows7.1SDK 32200 # TODO: improve detection for other versions of SDK 32201 eval PLATFORM_TOOLSET="\${VS_SDK_PLATFORM_NAME_${VS_VERSION}}" 32202 else 32203 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5 32204 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;} 32205 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: Installation is broken, SetEnv.Cmd is missing. Ignoring" >&5 32206 $as_echo "$as_me: Warning: Installation is broken, SetEnv.Cmd is missing. Ignoring" >&6;} 32207 fi 32208 fi 32209 fi 32210 32211 fi 32212 32213 if test "x$VS_ENV_CMD" != x; then 32214 TOOLCHAIN_VERSION=$VS_VERSION 32215 eval VS_DESCRIPTION="\${VS_DESCRIPTION_${VS_VERSION}}" 32216 eval VS_VERSION_INTERNAL="\${VS_VERSION_INTERNAL_${VS_VERSION}}" 32217 eval MSVCR_NAME="\${VS_MSVCR_${VS_VERSION}}" 32218 eval MSVCP_NAME="\${VS_MSVCP_${VS_VERSION}}" 32219 # The rest of the variables are already evaled while probing 32220 { $as_echo "$as_me:${as_lineno-$LINENO}: Found $VS_DESCRIPTION" >&5 32221 $as_echo "$as_me: Found $VS_DESCRIPTION" >&6;} 32222 break 32223 fi 32224 done 32225 32226 32227 # If we have a devkit, skip all of the below. 32228 if test "x$DEVKIT_VS_VERSION" = x; then 32229 if test "x$VS_ENV_CMD" != x; then 32230 # We have found a Visual Studio environment on disk, let's extract variables from the vsvars bat file. 32231 32232 # Only process if variable expands to non-empty 32233 32234 if test "x$VS_ENV_CMD" != x; then 32235 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 32236 32237 # First separate the path from the arguments. This will split at the first 32238 # space. 32239 complete="$VS_ENV_CMD" 32240 path="${complete%% *}" 32241 tmp="$complete EOL" 32242 arguments="${tmp#* }" 32243 32244 # Input might be given as Windows format, start by converting to 32245 # unix format. 32246 new_path=`$CYGPATH -u "$path"` 32247 32248 # Now try to locate executable using which 32249 new_path=`$WHICH "$new_path" 2> /dev/null` 32250 # bat and cmd files are not always considered executable in cygwin causing which 32251 # to not find them 32252 if test "x$new_path" = x \ 32253 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 32254 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 32255 new_path=`$CYGPATH -u "$path"` 32256 fi 32257 if test "x$new_path" = x; then 32258 # Oops. Which didn't find the executable. 32259 # The splitting of arguments from the executable at a space might have been incorrect, 32260 # since paths with space are more likely in Windows. Give it another try with the whole 32261 # argument. 32262 path="$complete" 32263 arguments="EOL" 32264 new_path=`$CYGPATH -u "$path"` 32265 new_path=`$WHICH "$new_path" 2> /dev/null` 32266 # bat and cmd files are not always considered executable in cygwin causing which 32267 # to not find them 32268 if test "x$new_path" = x \ 32269 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 32270 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 32271 new_path=`$CYGPATH -u "$path"` 32272 fi 32273 if test "x$new_path" = x; then 32274 # It's still not found. Now this is an unrecoverable error. 32275 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of VS_ENV_CMD, which resolves as \"$complete\", is not found." >&5 32276 $as_echo "$as_me: The path of VS_ENV_CMD, which resolves as \"$complete\", is not found." >&6;} 32277 has_space=`$ECHO "$complete" | $GREP " "` 32278 if test "x$has_space" != x; then 32279 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 32280 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 32281 fi 32282 as_fn_error $? "Cannot locate the the path of VS_ENV_CMD" "$LINENO" 5 32283 fi 32284 fi 32285 32286 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 32287 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 32288 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 32289 # "foo.exe" is OK but "foo" is an error. 32290 # 32291 # This test is therefore slightly more accurate than "test -f" to check for file presence. 32292 # It is also a way to make sure we got the proper file name for the real test later on. 32293 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 32294 if test "x$test_shortpath" = x; then 32295 # Short path failed, file does not exist as specified. 32296 # Try adding .exe or .cmd 32297 if test -f "${new_path}.exe"; then 32298 input_to_shortpath="${new_path}.exe" 32299 elif test -f "${new_path}.cmd"; then 32300 input_to_shortpath="${new_path}.cmd" 32301 else 32302 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of VS_ENV_CMD, which resolves as \"$new_path\", is invalid." >&5 32303 $as_echo "$as_me: The path of VS_ENV_CMD, which resolves as \"$new_path\", is invalid." >&6;} 32304 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 32305 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 32306 as_fn_error $? "Cannot locate the the path of VS_ENV_CMD" "$LINENO" 5 32307 fi 32308 else 32309 input_to_shortpath="$new_path" 32310 fi 32311 32312 # Call helper function which possibly converts this using DOS-style short mode. 32313 # If so, the updated path is stored in $new_path. 32314 new_path="$input_to_shortpath" 32315 32316 input_path="$input_to_shortpath" 32317 # Check if we need to convert this using DOS-style short mode. If the path 32318 # contains just simple characters, use it. Otherwise (spaces, weird characters), 32319 # take no chances and rewrite it. 32320 # Note: m4 eats our [], so we need to use [ and ] instead. 32321 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 32322 if test "x$has_forbidden_chars" != x; then 32323 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 32324 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 32325 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 32326 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 32327 # Going to short mode and back again did indeed matter. Since short mode is 32328 # case insensitive, let's make it lowercase to improve readability. 32329 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 32330 # Now convert it back to Unix-style (cygpath) 32331 input_path=`$CYGPATH -u "$shortmode_path"` 32332 new_path="$input_path" 32333 fi 32334 fi 32335 32336 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 32337 if test "x$test_cygdrive_prefix" = x; then 32338 # As a simple fix, exclude /usr/bin since it's not a real path. 32339 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 32340 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 32341 # a path prefixed by /cygdrive for fixpath to work. 32342 new_path="$CYGWIN_ROOT_PATH$input_path" 32343 fi 32344 fi 32345 32346 # remove trailing .exe if any 32347 new_path="${new_path/%.exe/}" 32348 32349 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 32350 32351 # First separate the path from the arguments. This will split at the first 32352 # space. 32353 complete="$VS_ENV_CMD" 32354 path="${complete%% *}" 32355 tmp="$complete EOL" 32356 arguments="${tmp#* }" 32357 32358 # Input might be given as Windows format, start by converting to 32359 # unix format. 32360 new_path="$path" 32361 32362 windows_path="$new_path" 32363 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 32364 unix_path=`$CYGPATH -u "$windows_path"` 32365 new_path="$unix_path" 32366 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 32367 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 32368 new_path="$unix_path" 32369 fi 32370 32371 32372 # Now try to locate executable using which 32373 new_path=`$WHICH "$new_path" 2> /dev/null` 32374 32375 if test "x$new_path" = x; then 32376 # Oops. Which didn't find the executable. 32377 # The splitting of arguments from the executable at a space might have been incorrect, 32378 # since paths with space are more likely in Windows. Give it another try with the whole 32379 # argument. 32380 path="$complete" 32381 arguments="EOL" 32382 new_path="$path" 32383 32384 windows_path="$new_path" 32385 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 32386 unix_path=`$CYGPATH -u "$windows_path"` 32387 new_path="$unix_path" 32388 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 32389 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 32390 new_path="$unix_path" 32391 fi 32392 32393 32394 new_path=`$WHICH "$new_path" 2> /dev/null` 32395 # bat and cmd files are not always considered executable in MSYS causing which 32396 # to not find them 32397 if test "x$new_path" = x \ 32398 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 32399 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 32400 new_path="$path" 32401 32402 windows_path="$new_path" 32403 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 32404 unix_path=`$CYGPATH -u "$windows_path"` 32405 new_path="$unix_path" 32406 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 32407 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 32408 new_path="$unix_path" 32409 fi 32410 32411 fi 32412 32413 if test "x$new_path" = x; then 32414 # It's still not found. Now this is an unrecoverable error. 32415 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of VS_ENV_CMD, which resolves as \"$complete\", is not found." >&5 32416 $as_echo "$as_me: The path of VS_ENV_CMD, which resolves as \"$complete\", is not found." >&6;} 32417 has_space=`$ECHO "$complete" | $GREP " "` 32418 if test "x$has_space" != x; then 32419 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 32420 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 32421 fi 32422 as_fn_error $? "Cannot locate the the path of VS_ENV_CMD" "$LINENO" 5 32423 fi 32424 fi 32425 32426 # Now new_path has a complete unix path to the binary 32427 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 32428 # Keep paths in /bin as-is, but remove trailing .exe if any 32429 new_path="${new_path/%.exe/}" 32430 # Do not save /bin paths to all_fixpath_prefixes! 32431 else 32432 # Not in mixed or Windows style, start by that. 32433 new_path=`cmd //c echo $new_path` 32434 32435 input_path="$new_path" 32436 # Check if we need to convert this using DOS-style short mode. If the path 32437 # contains just simple characters, use it. Otherwise (spaces, weird characters), 32438 # take no chances and rewrite it. 32439 # Note: m4 eats our [], so we need to use [ and ] instead. 32440 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 32441 if test "x$has_forbidden_chars" != x; then 32442 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 32443 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 32444 fi 32445 32446 # Output is in $new_path 32447 32448 windows_path="$new_path" 32449 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 32450 unix_path=`$CYGPATH -u "$windows_path"` 32451 new_path="$unix_path" 32452 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 32453 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 32454 new_path="$unix_path" 32455 fi 32456 32457 # remove trailing .exe if any 32458 new_path="${new_path/%.exe/}" 32459 32460 # Save the first 10 bytes of this path to the storage, so fixpath can work. 32461 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 32462 fi 32463 32464 else 32465 # We're on a unix platform. Hooray! :) 32466 # First separate the path from the arguments. This will split at the first 32467 # space. 32468 complete="$VS_ENV_CMD" 32469 path="${complete%% *}" 32470 tmp="$complete EOL" 32471 arguments="${tmp#* }" 32472 32473 # Cannot rely on the command "which" here since it doesn't always work. 32474 is_absolute_path=`$ECHO "$path" | $GREP ^/` 32475 if test -z "$is_absolute_path"; then 32476 # Path to executable is not absolute. Find it. 32477 IFS_save="$IFS" 32478 IFS=: 32479 for p in $PATH; do 32480 if test -f "$p/$path" && test -x "$p/$path"; then 32481 new_path="$p/$path" 32482 break 32483 fi 32484 done 32485 IFS="$IFS_save" 32486 else 32487 # This is an absolute path, we can use it without further modifications. 32488 new_path="$path" 32489 fi 32490 32491 if test "x$new_path" = x; then 32492 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of VS_ENV_CMD, which resolves as \"$complete\", is not found." >&5 32493 $as_echo "$as_me: The path of VS_ENV_CMD, which resolves as \"$complete\", is not found." >&6;} 32494 has_space=`$ECHO "$complete" | $GREP " "` 32495 if test "x$has_space" != x; then 32496 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 32497 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 32498 fi 32499 as_fn_error $? "Cannot locate the the path of VS_ENV_CMD" "$LINENO" 5 32500 fi 32501 fi 32502 32503 # Now join together the path and the arguments once again 32504 if test "x$arguments" != xEOL; then 32505 new_complete="$new_path ${arguments% *}" 32506 else 32507 new_complete="$new_path" 32508 fi 32509 32510 if test "x$complete" != "x$new_complete"; then 32511 VS_ENV_CMD="$new_complete" 32512 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting VS_ENV_CMD to \"$new_complete\"" >&5 32513 $as_echo "$as_me: Rewriting VS_ENV_CMD to \"$new_complete\"" >&6;} 32514 fi 32515 fi 32516 32517 32518 # Lets extract the variables that are set by vcvarsall.bat/vsvars32.bat/vsvars64.bat 32519 { $as_echo "$as_me:${as_lineno-$LINENO}: Trying to extract Visual Studio environment variables" >&5 32520 $as_echo "$as_me: Trying to extract Visual Studio environment variables" >&6;} 32521 32522 # We need to create a couple of temporary files. 32523 VS_ENV_TMP_DIR="$CONFIGURESUPPORT_OUTPUTDIR/vs-env" 32524 $MKDIR -p $VS_ENV_TMP_DIR 32525 32526 # Cannot use the VS10 setup script directly (since it only updates the DOS subshell environment). 32527 # Instead create a shell script which will set the relevant variables when run. 32528 WINPATH_VS_ENV_CMD="$VS_ENV_CMD" 32529 32530 unix_path="$WINPATH_VS_ENV_CMD" 32531 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 32532 windows_path=`$CYGPATH -m "$unix_path"` 32533 WINPATH_VS_ENV_CMD="$windows_path" 32534 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 32535 windows_path=`cmd //c echo $unix_path` 32536 WINPATH_VS_ENV_CMD="$windows_path" 32537 fi 32538 32539 WINPATH_BASH="$BASH" 32540 32541 unix_path="$WINPATH_BASH" 32542 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 32543 windows_path=`$CYGPATH -m "$unix_path"` 32544 WINPATH_BASH="$windows_path" 32545 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 32546 windows_path=`cmd //c echo $unix_path` 32547 WINPATH_BASH="$windows_path" 32548 fi 32549 32550 32551 # Generate a DOS batch file which runs $VS_ENV_CMD, and then creates a shell 32552 # script (executable by bash) that will setup the important variables. 32553 EXTRACT_VC_ENV_BAT_FILE="$VS_ENV_TMP_DIR/extract-vs-env.bat" 32554 $ECHO "@echo off" > $EXTRACT_VC_ENV_BAT_FILE 32555 # This will end up something like: 32556 # call C:/progra~2/micros~2.0/vc/bin/amd64/vcvars64.bat 32557 $ECHO "call $WINPATH_VS_ENV_CMD $VS_ENV_ARGS" >> $EXTRACT_VC_ENV_BAT_FILE 32558 # These will end up something like: 32559 # C:/CygWin/bin/bash -c 'echo VS_PATH=\"$PATH\" > localdevenv.sh 32560 # The trailing space for everyone except PATH is no typo, but is needed due 32561 # to trailing \ in the Windows paths. These will be stripped later. 32562 $ECHO "$WINPATH_BASH -c 'echo VS_PATH="'\"$PATH\" > set-vs-env.sh' \ 32563 >> $EXTRACT_VC_ENV_BAT_FILE 32564 $ECHO "$WINPATH_BASH -c 'echo VS_INCLUDE="'\"$INCLUDE\;$include \" >> set-vs-env.sh' \ 32565 >> $EXTRACT_VC_ENV_BAT_FILE 32566 $ECHO "$WINPATH_BASH -c 'echo VS_LIB="'\"$LIB\;$lib \" >> set-vs-env.sh' \ 32567 >> $EXTRACT_VC_ENV_BAT_FILE 32568 $ECHO "$WINPATH_BASH -c 'echo VCINSTALLDIR="'\"$VCINSTALLDIR \" >> set-vs-env.sh' \ 32569 >> $EXTRACT_VC_ENV_BAT_FILE 32570 $ECHO "$WINPATH_BASH -c 'echo WindowsSdkDir="'\"$WindowsSdkDir \" >> set-vs-env.sh' \ 32571 >> $EXTRACT_VC_ENV_BAT_FILE 32572 $ECHO "$WINPATH_BASH -c 'echo WINDOWSSDKDIR="'\"$WINDOWSSDKDIR \" >> set-vs-env.sh' \ 32573 >> $EXTRACT_VC_ENV_BAT_FILE 32574 32575 # Now execute the newly created bat file. 32576 # The | cat is to stop SetEnv.Cmd to mess with system colors on msys. 32577 # Change directory so we don't need to mess with Windows paths in redirects. 32578 cd $VS_ENV_TMP_DIR 32579 cmd /c extract-vs-env.bat | $CAT 32580 cd $CURDIR 32581 32582 if test ! -s $VS_ENV_TMP_DIR/set-vs-env.sh; then 32583 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not succesfully extract the envionment variables needed for the VS setup." >&5 32584 $as_echo "$as_me: Could not succesfully extract the envionment variables needed for the VS setup." >&6;} 32585 { $as_echo "$as_me:${as_lineno-$LINENO}: Try setting --with-tools-dir to the VC/bin directory within the VS installation" >&5 32586 $as_echo "$as_me: Try setting --with-tools-dir to the VC/bin directory within the VS installation" >&6;} 32587 { $as_echo "$as_me:${as_lineno-$LINENO}: or run \"bash.exe -l\" from a VS command prompt and then run configure from there." >&5 32588 $as_echo "$as_me: or run \"bash.exe -l\" from a VS command prompt and then run configure from there." >&6;} 32589 as_fn_error $? "Cannot continue" "$LINENO" 5 32590 fi 32591 32592 # Now set all paths and other env variables. This will allow the rest of 32593 # the configure script to find and run the compiler in the proper way. 32594 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting extracted environment variables" >&5 32595 $as_echo "$as_me: Setting extracted environment variables" >&6;} 32596 . $VS_ENV_TMP_DIR/set-vs-env.sh 32597 # Now we have VS_PATH, VS_INCLUDE, VS_LIB. For further checking, we 32598 # also define VCINSTALLDIR, WindowsSdkDir and WINDOWSSDKDIR. 32599 else 32600 # We did not find a vsvars bat file, let's hope we are run from a VS command prompt. 32601 { $as_echo "$as_me:${as_lineno-$LINENO}: Cannot locate a valid Visual Studio installation, checking current environment" >&5 32602 $as_echo "$as_me: Cannot locate a valid Visual Studio installation, checking current environment" >&6;} 32603 fi 32604 fi 32605 32606 # At this point, we should have correct variables in the environment, or we can't continue. 32607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Visual Studio variables" >&5 32608 $as_echo_n "checking for Visual Studio variables... " >&6; } 32609 32610 if test "x$VCINSTALLDIR" != x || test "x$WindowsSDKDir" != x \ 32611 || test "x$WINDOWSSDKDIR" != x || test "x$DEVKIT_NAME" != x; then 32612 if test "x$VS_INCLUDE" = x || test "x$VS_LIB" = x; then 32613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: present but broken" >&5 32614 $as_echo "present but broken" >&6; } 32615 as_fn_error $? "Your VC command prompt seems broken, INCLUDE and/or LIB is missing." "$LINENO" 5 32616 else 32617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 32618 $as_echo "ok" >&6; } 32619 # Remove any trailing "\" ";" and " " from the variables. 32620 VS_INCLUDE=`$ECHO "$VS_INCLUDE" | $SED -e 's/\\\\*;* *$//'` 32621 VS_LIB=`$ECHO "$VS_LIB" | $SED 's/\\\\*;* *$//'` 32622 VCINSTALLDIR=`$ECHO "$VCINSTALLDIR" | $SED 's/\\\\* *$//'` 32623 WindowsSDKDir=`$ECHO "$WindowsSDKDir" | $SED 's/\\\\* *$//'` 32624 WINDOWSSDKDIR=`$ECHO "$WINDOWSSDKDIR" | $SED 's/\\\\* *$//'` 32625 # Remove any paths containing # (typically F#) as that messes up make. This 32626 # is needed if visual studio was installed with F# support. 32627 VS_PATH=`$ECHO "$VS_PATH" | $SED 's/[^:#]*#[^:]*://g'` 32628 32629 32630 32631 32632 32633 # Convert VS_INCLUDE into SYSROOT_CFLAGS 32634 OLDIFS="$IFS" 32635 IFS=";" 32636 for i in $VS_INCLUDE; do 32637 ipath=$i 32638 # Only process non-empty elements 32639 if test "x$ipath" != x; then 32640 IFS="$OLDIFS" 32641 # Check that directory exists before calling fixup_path 32642 testpath=$ipath 32643 32644 windows_path="$testpath" 32645 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 32646 unix_path=`$CYGPATH -u "$windows_path"` 32647 testpath="$unix_path" 32648 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 32649 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 32650 testpath="$unix_path" 32651 fi 32652 32653 if test -d "$testpath"; then 32654 32655 # Only process if variable expands to non-empty 32656 32657 if test "x$ipath" != x; then 32658 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 32659 32660 # Input might be given as Windows format, start by converting to 32661 # unix format. 32662 path="$ipath" 32663 new_path=`$CYGPATH -u "$path"` 32664 32665 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 32666 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 32667 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 32668 # "foo.exe" is OK but "foo" is an error. 32669 # 32670 # This test is therefore slightly more accurate than "test -f" to check for file precense. 32671 # It is also a way to make sure we got the proper file name for the real test later on. 32672 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 32673 if test "x$test_shortpath" = x; then 32674 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of ipath, which resolves as \"$path\", is invalid." >&5 32675 $as_echo "$as_me: The path of ipath, which resolves as \"$path\", is invalid." >&6;} 32676 as_fn_error $? "Cannot locate the the path of ipath" "$LINENO" 5 32677 fi 32678 32679 # Call helper function which possibly converts this using DOS-style short mode. 32680 # If so, the updated path is stored in $new_path. 32681 32682 input_path="$new_path" 32683 # Check if we need to convert this using DOS-style short mode. If the path 32684 # contains just simple characters, use it. Otherwise (spaces, weird characters), 32685 # take no chances and rewrite it. 32686 # Note: m4 eats our [], so we need to use [ and ] instead. 32687 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 32688 if test "x$has_forbidden_chars" != x; then 32689 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 32690 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 32691 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 32692 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 32693 # Going to short mode and back again did indeed matter. Since short mode is 32694 # case insensitive, let's make it lowercase to improve readability. 32695 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 32696 # Now convert it back to Unix-style (cygpath) 32697 input_path=`$CYGPATH -u "$shortmode_path"` 32698 new_path="$input_path" 32699 fi 32700 fi 32701 32702 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 32703 if test "x$test_cygdrive_prefix" = x; then 32704 # As a simple fix, exclude /usr/bin since it's not a real path. 32705 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 32706 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 32707 # a path prefixed by /cygdrive for fixpath to work. 32708 new_path="$CYGWIN_ROOT_PATH$input_path" 32709 fi 32710 fi 32711 32712 32713 if test "x$path" != "x$new_path"; then 32714 ipath="$new_path" 32715 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting ipath to \"$new_path\"" >&5 32716 $as_echo "$as_me: Rewriting ipath to \"$new_path\"" >&6;} 32717 fi 32718 32719 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 32720 32721 path="$ipath" 32722 has_colon=`$ECHO $path | $GREP ^.:` 32723 new_path="$path" 32724 if test "x$has_colon" = x; then 32725 # Not in mixed or Windows style, start by that. 32726 new_path=`cmd //c echo $path` 32727 fi 32728 32729 32730 input_path="$new_path" 32731 # Check if we need to convert this using DOS-style short mode. If the path 32732 # contains just simple characters, use it. Otherwise (spaces, weird characters), 32733 # take no chances and rewrite it. 32734 # Note: m4 eats our [], so we need to use [ and ] instead. 32735 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 32736 if test "x$has_forbidden_chars" != x; then 32737 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 32738 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 32739 fi 32740 32741 32742 windows_path="$new_path" 32743 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 32744 unix_path=`$CYGPATH -u "$windows_path"` 32745 new_path="$unix_path" 32746 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 32747 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 32748 new_path="$unix_path" 32749 fi 32750 32751 if test "x$path" != "x$new_path"; then 32752 ipath="$new_path" 32753 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting ipath to \"$new_path\"" >&5 32754 $as_echo "$as_me: Rewriting ipath to \"$new_path\"" >&6;} 32755 fi 32756 32757 # Save the first 10 bytes of this path to the storage, so fixpath can work. 32758 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 32759 32760 else 32761 # We're on a unix platform. Hooray! :) 32762 path="$ipath" 32763 has_space=`$ECHO "$path" | $GREP " "` 32764 if test "x$has_space" != x; then 32765 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of ipath, which resolves as \"$path\", is invalid." >&5 32766 $as_echo "$as_me: The path of ipath, which resolves as \"$path\", is invalid." >&6;} 32767 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 32768 fi 32769 32770 # Use eval to expand a potential ~ 32771 eval path="$path" 32772 if test ! -f "$path" && test ! -d "$path"; then 32773 as_fn_error $? "The path of ipath, which resolves as \"$path\", is not found." "$LINENO" 5 32774 fi 32775 32776 if test -d "$path"; then 32777 ipath="`cd "$path"; $THEPWDCMD -L`" 32778 else 32779 dir="`$DIRNAME "$path"`" 32780 base="`$BASENAME "$path"`" 32781 ipath="`cd "$dir"; $THEPWDCMD -L`/$base" 32782 fi 32783 fi 32784 fi 32785 32786 SYSROOT_CFLAGS="$SYSROOT_CFLAGS -I$ipath" 32787 fi 32788 IFS=";" 32789 fi 32790 done 32791 # Convert VS_LIB into SYSROOT_LDFLAGS 32792 for i in $VS_LIB; do 32793 libpath=$i 32794 # Only process non-empty elements 32795 if test "x$libpath" != x; then 32796 IFS="$OLDIFS" 32797 # Check that directory exists before calling fixup_path 32798 testpath=$libpath 32799 32800 windows_path="$testpath" 32801 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 32802 unix_path=`$CYGPATH -u "$windows_path"` 32803 testpath="$unix_path" 32804 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 32805 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 32806 testpath="$unix_path" 32807 fi 32808 32809 if test -d "$testpath"; then 32810 32811 # Only process if variable expands to non-empty 32812 32813 if test "x$libpath" != x; then 32814 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 32815 32816 # Input might be given as Windows format, start by converting to 32817 # unix format. 32818 path="$libpath" 32819 new_path=`$CYGPATH -u "$path"` 32820 32821 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 32822 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 32823 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 32824 # "foo.exe" is OK but "foo" is an error. 32825 # 32826 # This test is therefore slightly more accurate than "test -f" to check for file precense. 32827 # It is also a way to make sure we got the proper file name for the real test later on. 32828 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 32829 if test "x$test_shortpath" = x; then 32830 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of libpath, which resolves as \"$path\", is invalid." >&5 32831 $as_echo "$as_me: The path of libpath, which resolves as \"$path\", is invalid." >&6;} 32832 as_fn_error $? "Cannot locate the the path of libpath" "$LINENO" 5 32833 fi 32834 32835 # Call helper function which possibly converts this using DOS-style short mode. 32836 # If so, the updated path is stored in $new_path. 32837 32838 input_path="$new_path" 32839 # Check if we need to convert this using DOS-style short mode. If the path 32840 # contains just simple characters, use it. Otherwise (spaces, weird characters), 32841 # take no chances and rewrite it. 32842 # Note: m4 eats our [], so we need to use [ and ] instead. 32843 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 32844 if test "x$has_forbidden_chars" != x; then 32845 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 32846 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 32847 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 32848 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 32849 # Going to short mode and back again did indeed matter. Since short mode is 32850 # case insensitive, let's make it lowercase to improve readability. 32851 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 32852 # Now convert it back to Unix-style (cygpath) 32853 input_path=`$CYGPATH -u "$shortmode_path"` 32854 new_path="$input_path" 32855 fi 32856 fi 32857 32858 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 32859 if test "x$test_cygdrive_prefix" = x; then 32860 # As a simple fix, exclude /usr/bin since it's not a real path. 32861 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 32862 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 32863 # a path prefixed by /cygdrive for fixpath to work. 32864 new_path="$CYGWIN_ROOT_PATH$input_path" 32865 fi 32866 fi 32867 32868 32869 if test "x$path" != "x$new_path"; then 32870 libpath="$new_path" 32871 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting libpath to \"$new_path\"" >&5 32872 $as_echo "$as_me: Rewriting libpath to \"$new_path\"" >&6;} 32873 fi 32874 32875 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 32876 32877 path="$libpath" 32878 has_colon=`$ECHO $path | $GREP ^.:` 32879 new_path="$path" 32880 if test "x$has_colon" = x; then 32881 # Not in mixed or Windows style, start by that. 32882 new_path=`cmd //c echo $path` 32883 fi 32884 32885 32886 input_path="$new_path" 32887 # Check if we need to convert this using DOS-style short mode. If the path 32888 # contains just simple characters, use it. Otherwise (spaces, weird characters), 32889 # take no chances and rewrite it. 32890 # Note: m4 eats our [], so we need to use [ and ] instead. 32891 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 32892 if test "x$has_forbidden_chars" != x; then 32893 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 32894 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 32895 fi 32896 32897 32898 windows_path="$new_path" 32899 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 32900 unix_path=`$CYGPATH -u "$windows_path"` 32901 new_path="$unix_path" 32902 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 32903 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 32904 new_path="$unix_path" 32905 fi 32906 32907 if test "x$path" != "x$new_path"; then 32908 libpath="$new_path" 32909 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting libpath to \"$new_path\"" >&5 32910 $as_echo "$as_me: Rewriting libpath to \"$new_path\"" >&6;} 32911 fi 32912 32913 # Save the first 10 bytes of this path to the storage, so fixpath can work. 32914 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 32915 32916 else 32917 # We're on a unix platform. Hooray! :) 32918 path="$libpath" 32919 has_space=`$ECHO "$path" | $GREP " "` 32920 if test "x$has_space" != x; then 32921 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of libpath, which resolves as \"$path\", is invalid." >&5 32922 $as_echo "$as_me: The path of libpath, which resolves as \"$path\", is invalid." >&6;} 32923 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 32924 fi 32925 32926 # Use eval to expand a potential ~ 32927 eval path="$path" 32928 if test ! -f "$path" && test ! -d "$path"; then 32929 as_fn_error $? "The path of libpath, which resolves as \"$path\", is not found." "$LINENO" 5 32930 fi 32931 32932 if test -d "$path"; then 32933 libpath="`cd "$path"; $THEPWDCMD -L`" 32934 else 32935 dir="`$DIRNAME "$path"`" 32936 base="`$BASENAME "$path"`" 32937 libpath="`cd "$dir"; $THEPWDCMD -L`/$base" 32938 fi 32939 fi 32940 fi 32941 32942 SYSROOT_LDFLAGS="$SYSROOT_LDFLAGS -libpath:$libpath" 32943 fi 32944 IFS=";" 32945 fi 32946 done 32947 IFS="$OLDIFS" 32948 fi 32949 else 32950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 32951 $as_echo "not found" >&6; } 32952 32953 if test "x$VS_ENV_CMD" = x; then 32954 { $as_echo "$as_me:${as_lineno-$LINENO}: Cannot locate a valid Visual Studio or Windows SDK installation on disk," >&5 32955 $as_echo "$as_me: Cannot locate a valid Visual Studio or Windows SDK installation on disk," >&6;} 32956 { $as_echo "$as_me:${as_lineno-$LINENO}: nor is this script run from a Visual Studio command prompt." >&5 32957 $as_echo "$as_me: nor is this script run from a Visual Studio command prompt." >&6;} 32958 else 32959 { $as_echo "$as_me:${as_lineno-$LINENO}: Running the extraction script failed." >&5 32960 $as_echo "$as_me: Running the extraction script failed." >&6;} 32961 fi 32962 { $as_echo "$as_me:${as_lineno-$LINENO}: Try setting --with-tools-dir to the VC/bin directory within the VS installation" >&5 32963 $as_echo "$as_me: Try setting --with-tools-dir to the VC/bin directory within the VS installation" >&6;} 32964 { $as_echo "$as_me:${as_lineno-$LINENO}: or run \"bash.exe -l\" from a VS command prompt and then run configure from there." >&5 32965 $as_echo "$as_me: or run \"bash.exe -l\" from a VS command prompt and then run configure from there." >&6;} 32966 as_fn_error $? "Cannot continue" "$LINENO" 5 32967 fi 32968 32969 # Reset path to VS_PATH. It will include everything that was on PATH at the time we 32970 # ran TOOLCHAIN_SETUP_VISUAL_STUDIO_ENV. 32971 PATH="$VS_PATH" 32972 # The microsoft toolchain also requires INCLUDE and LIB to be set. 32973 export INCLUDE="$VS_INCLUDE" 32974 export LIB="$VS_LIB" 32975 else 32976 if test "x$XCODE_VERSION_OUTPUT" != x; then 32977 # For Xcode, we set the Xcode version as TOOLCHAIN_VERSION 32978 TOOLCHAIN_VERSION=`$ECHO $XCODE_VERSION_OUTPUT | $CUT -f 2 -d ' '` 32979 TOOLCHAIN_DESCRIPTION="$TOOLCHAIN_DESCRIPTION from Xcode" 32980 else 32981 # Currently we do not define this for other toolchains. This might change as the need arise. 32982 TOOLCHAIN_VERSION= 32983 fi 32984 fi 32985 32986 32987 # Finally add TOOLCHAIN_PATH at the beginning, to allow --with-tools-dir to 32988 # override all other locations. 32989 if test "x$TOOLCHAIN_PATH" != x; then 32990 PATH=$TOOLCHAIN_PATH:$PATH 32991 fi 32992 32993 32994 # 32995 # Setup the compilers (CC and CXX) 32996 # 32997 32998 COMPILER_NAME=C 32999 SEARCH_LIST="$TOOLCHAIN_CC_BINARY" 33000 33001 if test "x$CC" != x; then 33002 # User has supplied compiler name already, always let that override. 33003 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied compiler CC=$CC" >&5 33004 $as_echo "$as_me: Will use user supplied compiler CC=$CC" >&6;} 33005 if test "x`basename $CC`" = "x$CC"; then 33006 # A command without a complete path is provided, search $PATH. 33007 33008 for ac_prog in $CC 33009 do 33010 # Extract the first word of "$ac_prog", so it can be a program name with args. 33011 set dummy $ac_prog; ac_word=$2 33012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 33013 $as_echo_n "checking for $ac_word... " >&6; } 33014 if ${ac_cv_path_POTENTIAL_CC+:} false; then : 33015 $as_echo_n "(cached) " >&6 33016 else 33017 case $POTENTIAL_CC in 33018 [\\/]* | ?:[\\/]*) 33019 ac_cv_path_POTENTIAL_CC="$POTENTIAL_CC" # Let the user override the test with a path. 33020 ;; 33021 *) 33022 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 33023 for as_dir in $PATH 33024 do 33025 IFS=$as_save_IFS 33026 test -z "$as_dir" && as_dir=. 33027 for ac_exec_ext in '' $ac_executable_extensions; do 33028 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 33029 ac_cv_path_POTENTIAL_CC="$as_dir/$ac_word$ac_exec_ext" 33030 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 33031 break 2 33032 fi 33033 done 33034 done 33035 IFS=$as_save_IFS 33036 33037 ;; 33038 esac 33039 fi 33040 POTENTIAL_CC=$ac_cv_path_POTENTIAL_CC 33041 if test -n "$POTENTIAL_CC"; then 33042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $POTENTIAL_CC" >&5 33043 $as_echo "$POTENTIAL_CC" >&6; } 33044 else 33045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 33046 $as_echo "no" >&6; } 33047 fi 33048 33049 33050 test -n "$POTENTIAL_CC" && break 33051 done 33052 33053 if test "x$POTENTIAL_CC" != x; then 33054 CC=$POTENTIAL_CC 33055 else 33056 as_fn_error $? "User supplied compiler CC=$CC could not be found" "$LINENO" 5 33057 fi 33058 else 33059 # Otherwise it might already be a complete path 33060 if test ! -x "$CC"; then 33061 as_fn_error $? "User supplied compiler CC=$CC does not exist" "$LINENO" 5 33062 fi 33063 fi 33064 else 33065 # No user supplied value. Locate compiler ourselves. 33066 33067 # If we are cross compiling, assume cross compilation tools follows the 33068 # cross compilation standard where they are prefixed with the autoconf 33069 # standard name for the target. For example the binary 33070 # i686-sun-solaris2.10-gcc will cross compile for i686-sun-solaris2.10. 33071 # If we are not cross compiling, then the default compiler name will be 33072 # used. 33073 33074 CC= 33075 # If TOOLCHAIN_PATH is set, check for all compiler names in there first 33076 # before checking the rest of the PATH. 33077 # FIXME: Now that we prefix the TOOLS_DIR to the PATH in the PRE_DETECTION 33078 # step, this should not be necessary. 33079 if test -n "$TOOLCHAIN_PATH"; then 33080 PATH_save="$PATH" 33081 PATH="$TOOLCHAIN_PATH" 33082 for ac_prog in $SEARCH_LIST 33083 do 33084 # Extract the first word of "$ac_prog", so it can be a program name with args. 33085 set dummy $ac_prog; ac_word=$2 33086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 33087 $as_echo_n "checking for $ac_word... " >&6; } 33088 if ${ac_cv_path_TOOLCHAIN_PATH_CC+:} false; then : 33089 $as_echo_n "(cached) " >&6 33090 else 33091 case $TOOLCHAIN_PATH_CC in 33092 [\\/]* | ?:[\\/]*) 33093 ac_cv_path_TOOLCHAIN_PATH_CC="$TOOLCHAIN_PATH_CC" # Let the user override the test with a path. 33094 ;; 33095 *) 33096 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 33097 for as_dir in $PATH 33098 do 33099 IFS=$as_save_IFS 33100 test -z "$as_dir" && as_dir=. 33101 for ac_exec_ext in '' $ac_executable_extensions; do 33102 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 33103 ac_cv_path_TOOLCHAIN_PATH_CC="$as_dir/$ac_word$ac_exec_ext" 33104 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 33105 break 2 33106 fi 33107 done 33108 done 33109 IFS=$as_save_IFS 33110 33111 ;; 33112 esac 33113 fi 33114 TOOLCHAIN_PATH_CC=$ac_cv_path_TOOLCHAIN_PATH_CC 33115 if test -n "$TOOLCHAIN_PATH_CC"; then 33116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOOLCHAIN_PATH_CC" >&5 33117 $as_echo "$TOOLCHAIN_PATH_CC" >&6; } 33118 else 33119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 33120 $as_echo "no" >&6; } 33121 fi 33122 33123 33124 test -n "$TOOLCHAIN_PATH_CC" && break 33125 done 33126 33127 CC=$TOOLCHAIN_PATH_CC 33128 PATH="$PATH_save" 33129 fi 33130 33131 # AC_PATH_PROGS can't be run multiple times with the same variable, 33132 # so create a new name for this run. 33133 if test "x$CC" = x; then 33134 for ac_prog in $SEARCH_LIST 33135 do 33136 # Extract the first word of "$ac_prog", so it can be a program name with args. 33137 set dummy $ac_prog; ac_word=$2 33138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 33139 $as_echo_n "checking for $ac_word... " >&6; } 33140 if ${ac_cv_path_POTENTIAL_CC+:} false; then : 33141 $as_echo_n "(cached) " >&6 33142 else 33143 case $POTENTIAL_CC in 33144 [\\/]* | ?:[\\/]*) 33145 ac_cv_path_POTENTIAL_CC="$POTENTIAL_CC" # Let the user override the test with a path. 33146 ;; 33147 *) 33148 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 33149 for as_dir in $PATH 33150 do 33151 IFS=$as_save_IFS 33152 test -z "$as_dir" && as_dir=. 33153 for ac_exec_ext in '' $ac_executable_extensions; do 33154 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 33155 ac_cv_path_POTENTIAL_CC="$as_dir/$ac_word$ac_exec_ext" 33156 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 33157 break 2 33158 fi 33159 done 33160 done 33161 IFS=$as_save_IFS 33162 33163 ;; 33164 esac 33165 fi 33166 POTENTIAL_CC=$ac_cv_path_POTENTIAL_CC 33167 if test -n "$POTENTIAL_CC"; then 33168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $POTENTIAL_CC" >&5 33169 $as_echo "$POTENTIAL_CC" >&6; } 33170 else 33171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 33172 $as_echo "no" >&6; } 33173 fi 33174 33175 33176 test -n "$POTENTIAL_CC" && break 33177 done 33178 33179 CC=$POTENTIAL_CC 33180 fi 33181 33182 if test "x$CC" = x; then 33183 33184 # Print a helpful message on how to acquire the necessary build dependency. 33185 # devkit is the help tag: freetype, cups, alsa etc 33186 MISSING_DEPENDENCY=devkit 33187 33188 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 33189 cygwin_help $MISSING_DEPENDENCY 33190 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 33191 msys_help $MISSING_DEPENDENCY 33192 else 33193 PKGHANDLER_COMMAND= 33194 33195 case $PKGHANDLER in 33196 apt-get) 33197 apt_help $MISSING_DEPENDENCY ;; 33198 yum) 33199 yum_help $MISSING_DEPENDENCY ;; 33200 port) 33201 port_help $MISSING_DEPENDENCY ;; 33202 pkgutil) 33203 pkgutil_help $MISSING_DEPENDENCY ;; 33204 pkgadd) 33205 pkgadd_help $MISSING_DEPENDENCY ;; 33206 esac 33207 33208 if test "x$PKGHANDLER_COMMAND" != x; then 33209 HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'." 33210 fi 33211 fi 33212 33213 as_fn_error $? "Could not find a $COMPILER_NAME compiler. $HELP_MSG" "$LINENO" 5 33214 fi 33215 fi 33216 33217 # Now we have a compiler binary in CC. Make sure it's okay. 33218 33219 # Only process if variable expands to non-empty 33220 33221 if test "x$CC" != x; then 33222 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 33223 33224 # First separate the path from the arguments. This will split at the first 33225 # space. 33226 complete="$CC" 33227 path="${complete%% *}" 33228 tmp="$complete EOL" 33229 arguments="${tmp#* }" 33230 33231 # Input might be given as Windows format, start by converting to 33232 # unix format. 33233 new_path=`$CYGPATH -u "$path"` 33234 33235 # Now try to locate executable using which 33236 new_path=`$WHICH "$new_path" 2> /dev/null` 33237 # bat and cmd files are not always considered executable in cygwin causing which 33238 # to not find them 33239 if test "x$new_path" = x \ 33240 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 33241 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 33242 new_path=`$CYGPATH -u "$path"` 33243 fi 33244 if test "x$new_path" = x; then 33245 # Oops. Which didn't find the executable. 33246 # The splitting of arguments from the executable at a space might have been incorrect, 33247 # since paths with space are more likely in Windows. Give it another try with the whole 33248 # argument. 33249 path="$complete" 33250 arguments="EOL" 33251 new_path=`$CYGPATH -u "$path"` 33252 new_path=`$WHICH "$new_path" 2> /dev/null` 33253 # bat and cmd files are not always considered executable in cygwin causing which 33254 # to not find them 33255 if test "x$new_path" = x \ 33256 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 33257 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 33258 new_path=`$CYGPATH -u "$path"` 33259 fi 33260 if test "x$new_path" = x; then 33261 # It's still not found. Now this is an unrecoverable error. 33262 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CC, which resolves as \"$complete\", is not found." >&5 33263 $as_echo "$as_me: The path of CC, which resolves as \"$complete\", is not found." >&6;} 33264 has_space=`$ECHO "$complete" | $GREP " "` 33265 if test "x$has_space" != x; then 33266 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 33267 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 33268 fi 33269 as_fn_error $? "Cannot locate the the path of CC" "$LINENO" 5 33270 fi 33271 fi 33272 33273 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 33274 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 33275 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 33276 # "foo.exe" is OK but "foo" is an error. 33277 # 33278 # This test is therefore slightly more accurate than "test -f" to check for file presence. 33279 # It is also a way to make sure we got the proper file name for the real test later on. 33280 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 33281 if test "x$test_shortpath" = x; then 33282 # Short path failed, file does not exist as specified. 33283 # Try adding .exe or .cmd 33284 if test -f "${new_path}.exe"; then 33285 input_to_shortpath="${new_path}.exe" 33286 elif test -f "${new_path}.cmd"; then 33287 input_to_shortpath="${new_path}.cmd" 33288 else 33289 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CC, which resolves as \"$new_path\", is invalid." >&5 33290 $as_echo "$as_me: The path of CC, which resolves as \"$new_path\", is invalid." >&6;} 33291 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 33292 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 33293 as_fn_error $? "Cannot locate the the path of CC" "$LINENO" 5 33294 fi 33295 else 33296 input_to_shortpath="$new_path" 33297 fi 33298 33299 # Call helper function which possibly converts this using DOS-style short mode. 33300 # If so, the updated path is stored in $new_path. 33301 new_path="$input_to_shortpath" 33302 33303 input_path="$input_to_shortpath" 33304 # Check if we need to convert this using DOS-style short mode. If the path 33305 # contains just simple characters, use it. Otherwise (spaces, weird characters), 33306 # take no chances and rewrite it. 33307 # Note: m4 eats our [], so we need to use [ and ] instead. 33308 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 33309 if test "x$has_forbidden_chars" != x; then 33310 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 33311 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 33312 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 33313 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 33314 # Going to short mode and back again did indeed matter. Since short mode is 33315 # case insensitive, let's make it lowercase to improve readability. 33316 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 33317 # Now convert it back to Unix-style (cygpath) 33318 input_path=`$CYGPATH -u "$shortmode_path"` 33319 new_path="$input_path" 33320 fi 33321 fi 33322 33323 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 33324 if test "x$test_cygdrive_prefix" = x; then 33325 # As a simple fix, exclude /usr/bin since it's not a real path. 33326 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 33327 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 33328 # a path prefixed by /cygdrive for fixpath to work. 33329 new_path="$CYGWIN_ROOT_PATH$input_path" 33330 fi 33331 fi 33332 33333 # remove trailing .exe if any 33334 new_path="${new_path/%.exe/}" 33335 33336 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 33337 33338 # First separate the path from the arguments. This will split at the first 33339 # space. 33340 complete="$CC" 33341 path="${complete%% *}" 33342 tmp="$complete EOL" 33343 arguments="${tmp#* }" 33344 33345 # Input might be given as Windows format, start by converting to 33346 # unix format. 33347 new_path="$path" 33348 33349 windows_path="$new_path" 33350 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 33351 unix_path=`$CYGPATH -u "$windows_path"` 33352 new_path="$unix_path" 33353 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 33354 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 33355 new_path="$unix_path" 33356 fi 33357 33358 33359 # Now try to locate executable using which 33360 new_path=`$WHICH "$new_path" 2> /dev/null` 33361 33362 if test "x$new_path" = x; then 33363 # Oops. Which didn't find the executable. 33364 # The splitting of arguments from the executable at a space might have been incorrect, 33365 # since paths with space are more likely in Windows. Give it another try with the whole 33366 # argument. 33367 path="$complete" 33368 arguments="EOL" 33369 new_path="$path" 33370 33371 windows_path="$new_path" 33372 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 33373 unix_path=`$CYGPATH -u "$windows_path"` 33374 new_path="$unix_path" 33375 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 33376 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 33377 new_path="$unix_path" 33378 fi 33379 33380 33381 new_path=`$WHICH "$new_path" 2> /dev/null` 33382 # bat and cmd files are not always considered executable in MSYS causing which 33383 # to not find them 33384 if test "x$new_path" = x \ 33385 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 33386 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 33387 new_path="$path" 33388 33389 windows_path="$new_path" 33390 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 33391 unix_path=`$CYGPATH -u "$windows_path"` 33392 new_path="$unix_path" 33393 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 33394 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 33395 new_path="$unix_path" 33396 fi 33397 33398 fi 33399 33400 if test "x$new_path" = x; then 33401 # It's still not found. Now this is an unrecoverable error. 33402 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CC, which resolves as \"$complete\", is not found." >&5 33403 $as_echo "$as_me: The path of CC, which resolves as \"$complete\", is not found." >&6;} 33404 has_space=`$ECHO "$complete" | $GREP " "` 33405 if test "x$has_space" != x; then 33406 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 33407 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 33408 fi 33409 as_fn_error $? "Cannot locate the the path of CC" "$LINENO" 5 33410 fi 33411 fi 33412 33413 # Now new_path has a complete unix path to the binary 33414 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 33415 # Keep paths in /bin as-is, but remove trailing .exe if any 33416 new_path="${new_path/%.exe/}" 33417 # Do not save /bin paths to all_fixpath_prefixes! 33418 else 33419 # Not in mixed or Windows style, start by that. 33420 new_path=`cmd //c echo $new_path` 33421 33422 input_path="$new_path" 33423 # Check if we need to convert this using DOS-style short mode. If the path 33424 # contains just simple characters, use it. Otherwise (spaces, weird characters), 33425 # take no chances and rewrite it. 33426 # Note: m4 eats our [], so we need to use [ and ] instead. 33427 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 33428 if test "x$has_forbidden_chars" != x; then 33429 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 33430 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 33431 fi 33432 33433 # Output is in $new_path 33434 33435 windows_path="$new_path" 33436 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 33437 unix_path=`$CYGPATH -u "$windows_path"` 33438 new_path="$unix_path" 33439 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 33440 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 33441 new_path="$unix_path" 33442 fi 33443 33444 # remove trailing .exe if any 33445 new_path="${new_path/%.exe/}" 33446 33447 # Save the first 10 bytes of this path to the storage, so fixpath can work. 33448 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 33449 fi 33450 33451 else 33452 # We're on a unix platform. Hooray! :) 33453 # First separate the path from the arguments. This will split at the first 33454 # space. 33455 complete="$CC" 33456 path="${complete%% *}" 33457 tmp="$complete EOL" 33458 arguments="${tmp#* }" 33459 33460 # Cannot rely on the command "which" here since it doesn't always work. 33461 is_absolute_path=`$ECHO "$path" | $GREP ^/` 33462 if test -z "$is_absolute_path"; then 33463 # Path to executable is not absolute. Find it. 33464 IFS_save="$IFS" 33465 IFS=: 33466 for p in $PATH; do 33467 if test -f "$p/$path" && test -x "$p/$path"; then 33468 new_path="$p/$path" 33469 break 33470 fi 33471 done 33472 IFS="$IFS_save" 33473 else 33474 # This is an absolute path, we can use it without further modifications. 33475 new_path="$path" 33476 fi 33477 33478 if test "x$new_path" = x; then 33479 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CC, which resolves as \"$complete\", is not found." >&5 33480 $as_echo "$as_me: The path of CC, which resolves as \"$complete\", is not found." >&6;} 33481 has_space=`$ECHO "$complete" | $GREP " "` 33482 if test "x$has_space" != x; then 33483 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 33484 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 33485 fi 33486 as_fn_error $? "Cannot locate the the path of CC" "$LINENO" 5 33487 fi 33488 fi 33489 33490 # Now join together the path and the arguments once again 33491 if test "x$arguments" != xEOL; then 33492 new_complete="$new_path ${arguments% *}" 33493 else 33494 new_complete="$new_path" 33495 fi 33496 33497 if test "x$complete" != "x$new_complete"; then 33498 CC="$new_complete" 33499 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting CC to \"$new_complete\"" >&5 33500 $as_echo "$as_me: Rewriting CC to \"$new_complete\"" >&6;} 33501 fi 33502 fi 33503 33504 TEST_COMPILER="$CC" 33505 33506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking resolved symbolic links for CC" >&5 33507 $as_echo_n "checking resolved symbolic links for CC... " >&6; } 33508 SYMLINK_ORIGINAL="$TEST_COMPILER" 33509 33510 if test "x$OPENJDK_BUILD_OS" != xwindows; then 33511 # Follow a chain of symbolic links. Use readlink 33512 # where it exists, else fall back to horribly 33513 # complicated shell code. 33514 if test "x$READLINK_TESTED" != yes; then 33515 # On MacOSX there is a readlink tool with a different 33516 # purpose than the GNU readlink tool. Check the found readlink. 33517 ISGNU=`$READLINK --version 2>&1 | $GREP GNU` 33518 if test "x$ISGNU" = x; then 33519 # A readlink that we do not know how to use. 33520 # Are there other non-GNU readlinks out there? 33521 READLINK_TESTED=yes 33522 READLINK= 33523 fi 33524 fi 33525 33526 if test "x$READLINK" != x; then 33527 SYMLINK_ORIGINAL=`$READLINK -f $SYMLINK_ORIGINAL` 33528 else 33529 # Save the current directory for restoring afterwards 33530 STARTDIR=$PWD 33531 COUNTER=0 33532 sym_link_dir=`$DIRNAME $SYMLINK_ORIGINAL` 33533 sym_link_file=`$BASENAME $SYMLINK_ORIGINAL` 33534 cd $sym_link_dir 33535 # Use -P flag to resolve symlinks in directories. 33536 cd `$THEPWDCMD -P` 33537 sym_link_dir=`$THEPWDCMD -P` 33538 # Resolve file symlinks 33539 while test $COUNTER -lt 20; do 33540 ISLINK=`$LS -l $sym_link_dir/$sym_link_file | $GREP '\->' | $SED -e 's/.*-> \(.*\)/\1/'` 33541 if test "x$ISLINK" == x; then 33542 # This is not a symbolic link! We are done! 33543 break 33544 fi 33545 # Again resolve directory symlinks since the target of the just found 33546 # link could be in a different directory 33547 cd `$DIRNAME $ISLINK` 33548 sym_link_dir=`$THEPWDCMD -P` 33549 sym_link_file=`$BASENAME $ISLINK` 33550 let COUNTER=COUNTER+1 33551 done 33552 cd $STARTDIR 33553 SYMLINK_ORIGINAL=$sym_link_dir/$sym_link_file 33554 fi 33555 fi 33556 33557 if test "x$TEST_COMPILER" = "x$SYMLINK_ORIGINAL"; then 33558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no symlink" >&5 33559 $as_echo "no symlink" >&6; } 33560 else 33561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SYMLINK_ORIGINAL" >&5 33562 $as_echo "$SYMLINK_ORIGINAL" >&6; } 33563 33564 # We can't handle ccache by gcc wrappers, since we need to know if we're 33565 # using ccache. Instead ccache usage must be controlled by a configure option. 33566 COMPILER_BASENAME=`$BASENAME "$SYMLINK_ORIGINAL"` 33567 if test "x$COMPILER_BASENAME" = "xccache"; then 33568 { $as_echo "$as_me:${as_lineno-$LINENO}: Please use --enable-ccache instead of providing a wrapped compiler." >&5 33569 $as_echo "$as_me: Please use --enable-ccache instead of providing a wrapped compiler." >&6;} 33570 as_fn_error $? "$TEST_COMPILER is a symbolic link to ccache. This is not supported." "$LINENO" 5 33571 fi 33572 fi 33573 33574 33575 COMPILER=$CC 33576 COMPILER_NAME=$COMPILER_NAME 33577 33578 if test "x$TOOLCHAIN_TYPE" = xsolstudio; then 33579 # cc -V output typically looks like 33580 # cc: Sun C 5.12 Linux_i386 2011/11/16 33581 # or 33582 # cc: Studio 12.5 Sun C 5.14 SunOS_sparc 2016/05/31 33583 COMPILER_VERSION_OUTPUT=`$COMPILER -V 2>&1` 33584 # Check that this is likely to be the Solaris Studio cc. 33585 $ECHO "$COMPILER_VERSION_OUTPUT" | $GREP "^.* Sun $COMPILER_NAME" > /dev/null 33586 if test $? -ne 0; then 33587 ALT_VERSION_OUTPUT=`$COMPILER --version 2>&1` 33588 { $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 33589 $as_echo "$as_me: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required $TOOLCHAIN_TYPE compiler." >&6;} 33590 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with -V was: \"$COMPILER_VERSION_OUTPUT\"" >&5 33591 $as_echo "$as_me: The result from running with -V was: \"$COMPILER_VERSION_OUTPUT\"" >&6;} 33592 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with --version was: \"$ALT_VERSION_OUTPUT\"" >&5 33593 $as_echo "$as_me: The result from running with --version was: \"$ALT_VERSION_OUTPUT\"" >&6;} 33594 as_fn_error $? "A $TOOLCHAIN_TYPE compiler is required. Try setting --with-tools-dir." "$LINENO" 5 33595 fi 33596 # Remove usage instructions (if present), and 33597 # collapse compiler output into a single line 33598 COMPILER_VERSION_STRING=`$ECHO $COMPILER_VERSION_OUTPUT | \ 33599 $SED -e 's/ *[Uu]sage:.*//'` 33600 COMPILER_VERSION_NUMBER=`$ECHO $COMPILER_VERSION_OUTPUT | \ 33601 $SED -e "s/^.*[ ,\t]$COMPILER_NAME[ ,\t]\([1-9]\.[0-9][0-9]*\).*/\1/"` 33602 elif test "x$TOOLCHAIN_TYPE" = xxlc; then 33603 # xlc -qversion output typically looks like 33604 # IBM XL C/C++ for AIX, V11.1 (5724-X13) 33605 # Version: 11.01.0000.0015 33606 COMPILER_VERSION_OUTPUT=`$COMPILER -qversion 2>&1` 33607 # Check that this is likely to be the IBM XL C compiler. 33608 $ECHO "$COMPILER_VERSION_OUTPUT" | $GREP "IBM XL C" > /dev/null 33609 if test $? -ne 0; then 33610 ALT_VERSION_OUTPUT=`$COMPILER --version 2>&1` 33611 { $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 33612 $as_echo "$as_me: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required $TOOLCHAIN_TYPE compiler." >&6;} 33613 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with -qversion was: \"$COMPILER_VERSION_OUTPUT\"" >&5 33614 $as_echo "$as_me: The result from running with -qversion was: \"$COMPILER_VERSION_OUTPUT\"" >&6;} 33615 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with --version was: \"$ALT_VERSION_OUTPUT\"" >&5 33616 $as_echo "$as_me: The result from running with --version was: \"$ALT_VERSION_OUTPUT\"" >&6;} 33617 as_fn_error $? "A $TOOLCHAIN_TYPE compiler is required. Try setting --with-tools-dir." "$LINENO" 5 33618 fi 33619 # Collapse compiler output into a single line 33620 COMPILER_VERSION_STRING=`$ECHO $COMPILER_VERSION_OUTPUT` 33621 COMPILER_VERSION_NUMBER=`$ECHO $COMPILER_VERSION_OUTPUT | \ 33622 $SED -e 's/^.*, V\([1-9][0-9.]*\).*$/\1/'` 33623 elif test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 33624 # There is no specific version flag, but all output starts with a version string. 33625 # First line typically looks something like: 33626 # Microsoft (R) 32-bit C/C++ Optimizing Compiler Version 16.00.40219.01 for 80x86 33627 COMPILER_VERSION_OUTPUT=`$COMPILER 2>&1 | $HEAD -n 1 | $TR -d '\r'` 33628 # Check that this is likely to be Microsoft CL.EXE. 33629 $ECHO "$COMPILER_VERSION_OUTPUT" | $GREP "Microsoft.*Compiler" > /dev/null 33630 if test $? -ne 0; then 33631 { $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 33632 $as_echo "$as_me: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required $TOOLCHAIN_TYPE compiler." >&6;} 33633 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running it was: \"$COMPILER_VERSION_OUTPUT\"" >&5 33634 $as_echo "$as_me: The result from running it was: \"$COMPILER_VERSION_OUTPUT\"" >&6;} 33635 as_fn_error $? "A $TOOLCHAIN_TYPE compiler is required. Try setting --with-tools-dir." "$LINENO" 5 33636 fi 33637 # Collapse compiler output into a single line 33638 COMPILER_VERSION_STRING=`$ECHO $COMPILER_VERSION_OUTPUT` 33639 COMPILER_VERSION_NUMBER=`$ECHO $COMPILER_VERSION_OUTPUT | \ 33640 $SED -e 's/^.*ersion.\([1-9][0-9.]*\) .*$/\1/'` 33641 elif test "x$TOOLCHAIN_TYPE" = xgcc; then 33642 # gcc --version output typically looks like 33643 # gcc (Ubuntu/Linaro 4.8.1-10ubuntu9) 4.8.1 33644 # Copyright (C) 2013 Free Software Foundation, Inc. 33645 # This is free software; see the source for copying conditions. There is NO 33646 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 33647 COMPILER_VERSION_OUTPUT=`$COMPILER --version 2>&1` 33648 # Check that this is likely to be GCC. 33649 $ECHO "$COMPILER_VERSION_OUTPUT" | $GREP "Free Software Foundation" > /dev/null 33650 if test $? -ne 0; then 33651 { $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 33652 $as_echo "$as_me: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required $TOOLCHAIN_TYPE compiler." >&6;} 33653 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with --version was: \"$COMPILER_VERSION\"" >&5 33654 $as_echo "$as_me: The result from running with --version was: \"$COMPILER_VERSION\"" >&6;} 33655 as_fn_error $? "A $TOOLCHAIN_TYPE compiler is required. Try setting --with-tools-dir." "$LINENO" 5 33656 fi 33657 # Remove Copyright and legalese from version string, and 33658 # collapse into a single line 33659 COMPILER_VERSION_STRING=`$ECHO $COMPILER_VERSION_OUTPUT | \ 33660 $SED -e 's/ *Copyright .*//'` 33661 COMPILER_VERSION_NUMBER=`$ECHO $COMPILER_VERSION_OUTPUT | \ 33662 $SED -e 's/^.* \([1-9]\.[0-9.]*\)[^0-9.].*$/\1/'` 33663 elif test "x$TOOLCHAIN_TYPE" = xclang; then 33664 # clang --version output typically looks like 33665 # Apple LLVM version 5.0 (clang-500.2.79) (based on LLVM 3.3svn) 33666 # clang version 3.3 (tags/RELEASE_33/final) 33667 # or 33668 # Debian clang version 3.2-7ubuntu1 (tags/RELEASE_32/final) (based on LLVM 3.2) 33669 # Target: x86_64-pc-linux-gnu 33670 # Thread model: posix 33671 COMPILER_VERSION_OUTPUT=`$COMPILER --version 2>&1` 33672 # Check that this is likely to be clang 33673 $ECHO "$COMPILER_VERSION_OUTPUT" | $GREP "clang" > /dev/null 33674 if test $? -ne 0; then 33675 { $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 33676 $as_echo "$as_me: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required $TOOLCHAIN_TYPE compiler." >&6;} 33677 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with --version was: \"$COMPILER_VERSION_OUTPUT\"" >&5 33678 $as_echo "$as_me: The result from running with --version was: \"$COMPILER_VERSION_OUTPUT\"" >&6;} 33679 as_fn_error $? "A $TOOLCHAIN_TYPE compiler is required. Try setting --with-tools-dir." "$LINENO" 5 33680 fi 33681 # Collapse compiler output into a single line 33682 COMPILER_VERSION_STRING=`$ECHO $COMPILER_VERSION_OUTPUT` 33683 COMPILER_VERSION_NUMBER=`$ECHO $COMPILER_VERSION_OUTPUT | \ 33684 $SED -e 's/^.* version \([1-9][0-9.]*\).*$/\1/'` 33685 else 33686 as_fn_error $? "Unknown toolchain type $TOOLCHAIN_TYPE." "$LINENO" 5 33687 fi 33688 # This sets CC_VERSION_NUMBER or CXX_VERSION_NUMBER. (This comment is a grep marker) 33689 CC_VERSION_NUMBER="$COMPILER_VERSION_NUMBER" 33690 # This sets CC_VERSION_STRING or CXX_VERSION_STRING. (This comment is a grep marker) 33691 CC_VERSION_STRING="$COMPILER_VERSION_STRING" 33692 33693 { $as_echo "$as_me:${as_lineno-$LINENO}: Using $TOOLCHAIN_TYPE $COMPILER_NAME compiler version $COMPILER_VERSION_NUMBER [$COMPILER_VERSION_STRING]" >&5 33694 $as_echo "$as_me: Using $TOOLCHAIN_TYPE $COMPILER_NAME compiler version $COMPILER_VERSION_NUMBER [$COMPILER_VERSION_STRING]" >&6;} 33695 33696 33697 # Now that we have resolved CC ourself, let autoconf have its go at it 33698 ac_ext=c 33699 ac_cpp='$CPP $CPPFLAGS' 33700 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 33701 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 33702 ac_compiler_gnu=$ac_cv_c_compiler_gnu 33703 if test -n "$ac_tool_prefix"; then 33704 for ac_prog in $CC 33705 do 33706 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 33707 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 33708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 33709 $as_echo_n "checking for $ac_word... " >&6; } 33710 if ${ac_cv_prog_CC+:} false; then : 33711 $as_echo_n "(cached) " >&6 33712 else 33713 if test -n "$CC"; then 33714 ac_cv_prog_CC="$CC" # Let the user override the test. 33715 else 33716 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 33717 for as_dir in $PATH 33718 do 33719 IFS=$as_save_IFS 33720 test -z "$as_dir" && as_dir=. 33721 for ac_exec_ext in '' $ac_executable_extensions; do 33722 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 33723 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 33724 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 33725 break 2 33726 fi 33727 done 33728 done 33729 IFS=$as_save_IFS 33730 33731 fi 33732 fi 33733 CC=$ac_cv_prog_CC 33734 if test -n "$CC"; then 33735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 33736 $as_echo "$CC" >&6; } 33737 else 33738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 33739 $as_echo "no" >&6; } 33740 fi 33741 33742 33743 test -n "$CC" && break 33744 done 33745 fi 33746 if test -z "$CC"; then 33747 ac_ct_CC=$CC 33748 for ac_prog in $CC 33749 do 33750 # Extract the first word of "$ac_prog", so it can be a program name with args. 33751 set dummy $ac_prog; ac_word=$2 33752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 33753 $as_echo_n "checking for $ac_word... " >&6; } 33754 if ${ac_cv_prog_ac_ct_CC+:} false; then : 33755 $as_echo_n "(cached) " >&6 33756 else 33757 if test -n "$ac_ct_CC"; then 33758 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 33759 else 33760 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 33761 for as_dir in $PATH 33762 do 33763 IFS=$as_save_IFS 33764 test -z "$as_dir" && as_dir=. 33765 for ac_exec_ext in '' $ac_executable_extensions; do 33766 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 33767 ac_cv_prog_ac_ct_CC="$ac_prog" 33768 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 33769 break 2 33770 fi 33771 done 33772 done 33773 IFS=$as_save_IFS 33774 33775 fi 33776 fi 33777 ac_ct_CC=$ac_cv_prog_ac_ct_CC 33778 if test -n "$ac_ct_CC"; then 33779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 33780 $as_echo "$ac_ct_CC" >&6; } 33781 else 33782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 33783 $as_echo "no" >&6; } 33784 fi 33785 33786 33787 test -n "$ac_ct_CC" && break 33788 done 33789 33790 if test "x$ac_ct_CC" = x; then 33791 CC="" 33792 else 33793 case $cross_compiling:$ac_tool_warned in 33794 yes:) 33795 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 33796 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 33797 ac_tool_warned=yes ;; 33798 esac 33799 CC=$ac_ct_CC 33800 fi 33801 fi 33802 33803 33804 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 33805 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 33806 as_fn_error $? "no acceptable C compiler found in \$PATH 33807 See \`config.log' for more details" "$LINENO" 5; } 33808 33809 # Provide some information about the compiler. 33810 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 33811 set X $ac_compile 33812 ac_compiler=$2 33813 for ac_option in --version -v -V -qversion; do 33814 { { ac_try="$ac_compiler $ac_option >&5" 33815 case "(($ac_try" in 33816 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 33817 *) ac_try_echo=$ac_try;; 33818 esac 33819 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 33820 $as_echo "$ac_try_echo"; } >&5 33821 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 33822 ac_status=$? 33823 if test -s conftest.err; then 33824 sed '10a\ 33825 ... rest of stderr output deleted ... 33826 10q' conftest.err >conftest.er1 33827 cat conftest.er1 >&5 33828 fi 33829 rm -f conftest.er1 conftest.err 33830 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 33831 test $ac_status = 0; } 33832 done 33833 33834 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 33835 /* end confdefs.h. */ 33836 33837 int 33838 main () 33839 { 33840 33841 ; 33842 return 0; 33843 } 33844 _ACEOF 33845 ac_clean_files_save=$ac_clean_files 33846 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 33847 # Try to create an executable without -o first, disregard a.out. 33848 # It will help us diagnose broken compilers, and finding out an intuition 33849 # of exeext. 33850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 33851 $as_echo_n "checking whether the C compiler works... " >&6; } 33852 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 33853 33854 # The possible output files: 33855 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 33856 33857 ac_rmfiles= 33858 for ac_file in $ac_files 33859 do 33860 case $ac_file in 33861 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 33862 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 33863 esac 33864 done 33865 rm -f $ac_rmfiles 33866 33867 if { { ac_try="$ac_link_default" 33868 case "(($ac_try" in 33869 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 33870 *) ac_try_echo=$ac_try;; 33871 esac 33872 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 33873 $as_echo "$ac_try_echo"; } >&5 33874 (eval "$ac_link_default") 2>&5 33875 ac_status=$? 33876 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 33877 test $ac_status = 0; }; then : 33878 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 33879 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 33880 # in a Makefile. We should not override ac_cv_exeext if it was cached, 33881 # so that the user can short-circuit this test for compilers unknown to 33882 # Autoconf. 33883 for ac_file in $ac_files '' 33884 do 33885 test -f "$ac_file" || continue 33886 case $ac_file in 33887 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 33888 ;; 33889 [ab].out ) 33890 # We found the default executable, but exeext='' is most 33891 # certainly right. 33892 break;; 33893 *.* ) 33894 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 33895 then :; else 33896 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 33897 fi 33898 # We set ac_cv_exeext here because the later test for it is not 33899 # safe: cross compilers may not add the suffix if given an `-o' 33900 # argument, so we may need to know it at that point already. 33901 # Even if this section looks crufty: it has the advantage of 33902 # actually working. 33903 break;; 33904 * ) 33905 break;; 33906 esac 33907 done 33908 test "$ac_cv_exeext" = no && ac_cv_exeext= 33909 33910 else 33911 ac_file='' 33912 fi 33913 if test -z "$ac_file"; then : 33914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 33915 $as_echo "no" >&6; } 33916 $as_echo "$as_me: failed program was:" >&5 33917 sed 's/^/| /' conftest.$ac_ext >&5 33918 33919 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 33920 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 33921 as_fn_error 77 "C compiler cannot create executables 33922 See \`config.log' for more details" "$LINENO" 5; } 33923 else 33924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 33925 $as_echo "yes" >&6; } 33926 fi 33927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 33928 $as_echo_n "checking for C compiler default output file name... " >&6; } 33929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 33930 $as_echo "$ac_file" >&6; } 33931 ac_exeext=$ac_cv_exeext 33932 33933 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 33934 ac_clean_files=$ac_clean_files_save 33935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 33936 $as_echo_n "checking for suffix of executables... " >&6; } 33937 if { { ac_try="$ac_link" 33938 case "(($ac_try" in 33939 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 33940 *) ac_try_echo=$ac_try;; 33941 esac 33942 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 33943 $as_echo "$ac_try_echo"; } >&5 33944 (eval "$ac_link") 2>&5 33945 ac_status=$? 33946 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 33947 test $ac_status = 0; }; then : 33948 # If both `conftest.exe' and `conftest' are `present' (well, observable) 33949 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 33950 # work properly (i.e., refer to `conftest.exe'), while it won't with 33951 # `rm'. 33952 for ac_file in conftest.exe conftest conftest.*; do 33953 test -f "$ac_file" || continue 33954 case $ac_file in 33955 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 33956 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 33957 break;; 33958 * ) break;; 33959 esac 33960 done 33961 else 33962 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 33963 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 33964 as_fn_error $? "cannot compute suffix of executables: cannot compile and link 33965 See \`config.log' for more details" "$LINENO" 5; } 33966 fi 33967 rm -f conftest conftest$ac_cv_exeext 33968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 33969 $as_echo "$ac_cv_exeext" >&6; } 33970 33971 rm -f conftest.$ac_ext 33972 EXEEXT=$ac_cv_exeext 33973 ac_exeext=$EXEEXT 33974 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 33975 /* end confdefs.h. */ 33976 #include <stdio.h> 33977 int 33978 main () 33979 { 33980 FILE *f = fopen ("conftest.out", "w"); 33981 return ferror (f) || fclose (f) != 0; 33982 33983 ; 33984 return 0; 33985 } 33986 _ACEOF 33987 ac_clean_files="$ac_clean_files conftest.out" 33988 # Check that the compiler produces executables we can run. If not, either 33989 # the compiler is broken, or we cross compile. 33990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 33991 $as_echo_n "checking whether we are cross compiling... " >&6; } 33992 if test "$cross_compiling" != yes; then 33993 { { ac_try="$ac_link" 33994 case "(($ac_try" in 33995 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 33996 *) ac_try_echo=$ac_try;; 33997 esac 33998 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 33999 $as_echo "$ac_try_echo"; } >&5 34000 (eval "$ac_link") 2>&5 34001 ac_status=$? 34002 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 34003 test $ac_status = 0; } 34004 if { ac_try='./conftest$ac_cv_exeext' 34005 { { case "(($ac_try" in 34006 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 34007 *) ac_try_echo=$ac_try;; 34008 esac 34009 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 34010 $as_echo "$ac_try_echo"; } >&5 34011 (eval "$ac_try") 2>&5 34012 ac_status=$? 34013 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 34014 test $ac_status = 0; }; }; then 34015 cross_compiling=no 34016 else 34017 if test "$cross_compiling" = maybe; then 34018 cross_compiling=yes 34019 else 34020 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 34021 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 34022 as_fn_error $? "cannot run C compiled programs. 34023 If you meant to cross compile, use \`--host'. 34024 See \`config.log' for more details" "$LINENO" 5; } 34025 fi 34026 fi 34027 fi 34028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 34029 $as_echo "$cross_compiling" >&6; } 34030 34031 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 34032 ac_clean_files=$ac_clean_files_save 34033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 34034 $as_echo_n "checking for suffix of object files... " >&6; } 34035 if ${ac_cv_objext+:} false; then : 34036 $as_echo_n "(cached) " >&6 34037 else 34038 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 34039 /* end confdefs.h. */ 34040 34041 int 34042 main () 34043 { 34044 34045 ; 34046 return 0; 34047 } 34048 _ACEOF 34049 rm -f conftest.o conftest.obj 34050 if { { ac_try="$ac_compile" 34051 case "(($ac_try" in 34052 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 34053 *) ac_try_echo=$ac_try;; 34054 esac 34055 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 34056 $as_echo "$ac_try_echo"; } >&5 34057 (eval "$ac_compile") 2>&5 34058 ac_status=$? 34059 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 34060 test $ac_status = 0; }; then : 34061 for ac_file in conftest.o conftest.obj conftest.*; do 34062 test -f "$ac_file" || continue; 34063 case $ac_file in 34064 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 34065 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 34066 break;; 34067 esac 34068 done 34069 else 34070 $as_echo "$as_me: failed program was:" >&5 34071 sed 's/^/| /' conftest.$ac_ext >&5 34072 34073 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 34074 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 34075 as_fn_error $? "cannot compute suffix of object files: cannot compile 34076 See \`config.log' for more details" "$LINENO" 5; } 34077 fi 34078 rm -f conftest.$ac_cv_objext conftest.$ac_ext 34079 fi 34080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 34081 $as_echo "$ac_cv_objext" >&6; } 34082 OBJEXT=$ac_cv_objext 34083 ac_objext=$OBJEXT 34084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 34085 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 34086 if ${ac_cv_c_compiler_gnu+:} false; then : 34087 $as_echo_n "(cached) " >&6 34088 else 34089 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 34090 /* end confdefs.h. */ 34091 34092 int 34093 main () 34094 { 34095 #ifndef __GNUC__ 34096 choke me 34097 #endif 34098 34099 ; 34100 return 0; 34101 } 34102 _ACEOF 34103 if ac_fn_c_try_compile "$LINENO"; then : 34104 ac_compiler_gnu=yes 34105 else 34106 ac_compiler_gnu=no 34107 fi 34108 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 34109 ac_cv_c_compiler_gnu=$ac_compiler_gnu 34110 34111 fi 34112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 34113 $as_echo "$ac_cv_c_compiler_gnu" >&6; } 34114 if test $ac_compiler_gnu = yes; then 34115 GCC=yes 34116 else 34117 GCC= 34118 fi 34119 ac_test_CFLAGS=${CFLAGS+set} 34120 ac_save_CFLAGS=$CFLAGS 34121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 34122 $as_echo_n "checking whether $CC accepts -g... " >&6; } 34123 if ${ac_cv_prog_cc_g+:} false; then : 34124 $as_echo_n "(cached) " >&6 34125 else 34126 ac_save_c_werror_flag=$ac_c_werror_flag 34127 ac_c_werror_flag=yes 34128 ac_cv_prog_cc_g=no 34129 CFLAGS="-g" 34130 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 34131 /* end confdefs.h. */ 34132 34133 int 34134 main () 34135 { 34136 34137 ; 34138 return 0; 34139 } 34140 _ACEOF 34141 if ac_fn_c_try_compile "$LINENO"; then : 34142 ac_cv_prog_cc_g=yes 34143 else 34144 CFLAGS="" 34145 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 34146 /* end confdefs.h. */ 34147 34148 int 34149 main () 34150 { 34151 34152 ; 34153 return 0; 34154 } 34155 _ACEOF 34156 if ac_fn_c_try_compile "$LINENO"; then : 34157 34158 else 34159 ac_c_werror_flag=$ac_save_c_werror_flag 34160 CFLAGS="-g" 34161 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 34162 /* end confdefs.h. */ 34163 34164 int 34165 main () 34166 { 34167 34168 ; 34169 return 0; 34170 } 34171 _ACEOF 34172 if ac_fn_c_try_compile "$LINENO"; then : 34173 ac_cv_prog_cc_g=yes 34174 fi 34175 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 34176 fi 34177 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 34178 fi 34179 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 34180 ac_c_werror_flag=$ac_save_c_werror_flag 34181 fi 34182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 34183 $as_echo "$ac_cv_prog_cc_g" >&6; } 34184 if test "$ac_test_CFLAGS" = set; then 34185 CFLAGS=$ac_save_CFLAGS 34186 elif test $ac_cv_prog_cc_g = yes; then 34187 if test "$GCC" = yes; then 34188 CFLAGS="-g -O2" 34189 else 34190 CFLAGS="-g" 34191 fi 34192 else 34193 if test "$GCC" = yes; then 34194 CFLAGS="-O2" 34195 else 34196 CFLAGS= 34197 fi 34198 fi 34199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 34200 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 34201 if ${ac_cv_prog_cc_c89+:} false; then : 34202 $as_echo_n "(cached) " >&6 34203 else 34204 ac_cv_prog_cc_c89=no 34205 ac_save_CC=$CC 34206 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 34207 /* end confdefs.h. */ 34208 #include <stdarg.h> 34209 #include <stdio.h> 34210 struct stat; 34211 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 34212 struct buf { int x; }; 34213 FILE * (*rcsopen) (struct buf *, struct stat *, int); 34214 static char *e (p, i) 34215 char **p; 34216 int i; 34217 { 34218 return p[i]; 34219 } 34220 static char *f (char * (*g) (char **, int), char **p, ...) 34221 { 34222 char *s; 34223 va_list v; 34224 va_start (v,p); 34225 s = g (p, va_arg (v,int)); 34226 va_end (v); 34227 return s; 34228 } 34229 34230 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 34231 function prototypes and stuff, but not '\xHH' hex character constants. 34232 These don't provoke an error unfortunately, instead are silently treated 34233 as 'x'. The following induces an error, until -std is added to get 34234 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 34235 array size at least. It's necessary to write '\x00'==0 to get something 34236 that's true only with -std. */ 34237 int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 34238 34239 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 34240 inside strings and character constants. */ 34241 #define FOO(x) 'x' 34242 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 34243 34244 int test (int i, double x); 34245 struct s1 {int (*f) (int a);}; 34246 struct s2 {int (*f) (double a);}; 34247 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 34248 int argc; 34249 char **argv; 34250 int 34251 main () 34252 { 34253 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 34254 ; 34255 return 0; 34256 } 34257 _ACEOF 34258 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 34259 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 34260 do 34261 CC="$ac_save_CC $ac_arg" 34262 if ac_fn_c_try_compile "$LINENO"; then : 34263 ac_cv_prog_cc_c89=$ac_arg 34264 fi 34265 rm -f core conftest.err conftest.$ac_objext 34266 test "x$ac_cv_prog_cc_c89" != "xno" && break 34267 done 34268 rm -f conftest.$ac_ext 34269 CC=$ac_save_CC 34270 34271 fi 34272 # AC_CACHE_VAL 34273 case "x$ac_cv_prog_cc_c89" in 34274 x) 34275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 34276 $as_echo "none needed" >&6; } ;; 34277 xno) 34278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 34279 $as_echo "unsupported" >&6; } ;; 34280 *) 34281 CC="$CC $ac_cv_prog_cc_c89" 34282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 34283 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 34284 esac 34285 if test "x$ac_cv_prog_cc_c89" != xno; then : 34286 34287 fi 34288 34289 ac_ext=cpp 34290 ac_cpp='$CXXCPP $CPPFLAGS' 34291 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 34292 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 34293 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 34294 34295 34296 34297 COMPILER_NAME=C++ 34298 SEARCH_LIST="$TOOLCHAIN_CXX_BINARY" 34299 34300 if test "x$CXX" != x; then 34301 # User has supplied compiler name already, always let that override. 34302 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied compiler CXX=$CXX" >&5 34303 $as_echo "$as_me: Will use user supplied compiler CXX=$CXX" >&6;} 34304 if test "x`basename $CXX`" = "x$CXX"; then 34305 # A command without a complete path is provided, search $PATH. 34306 34307 for ac_prog in $CXX 34308 do 34309 # Extract the first word of "$ac_prog", so it can be a program name with args. 34310 set dummy $ac_prog; ac_word=$2 34311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 34312 $as_echo_n "checking for $ac_word... " >&6; } 34313 if ${ac_cv_path_POTENTIAL_CXX+:} false; then : 34314 $as_echo_n "(cached) " >&6 34315 else 34316 case $POTENTIAL_CXX in 34317 [\\/]* | ?:[\\/]*) 34318 ac_cv_path_POTENTIAL_CXX="$POTENTIAL_CXX" # Let the user override the test with a path. 34319 ;; 34320 *) 34321 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 34322 for as_dir in $PATH 34323 do 34324 IFS=$as_save_IFS 34325 test -z "$as_dir" && as_dir=. 34326 for ac_exec_ext in '' $ac_executable_extensions; do 34327 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 34328 ac_cv_path_POTENTIAL_CXX="$as_dir/$ac_word$ac_exec_ext" 34329 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 34330 break 2 34331 fi 34332 done 34333 done 34334 IFS=$as_save_IFS 34335 34336 ;; 34337 esac 34338 fi 34339 POTENTIAL_CXX=$ac_cv_path_POTENTIAL_CXX 34340 if test -n "$POTENTIAL_CXX"; then 34341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $POTENTIAL_CXX" >&5 34342 $as_echo "$POTENTIAL_CXX" >&6; } 34343 else 34344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 34345 $as_echo "no" >&6; } 34346 fi 34347 34348 34349 test -n "$POTENTIAL_CXX" && break 34350 done 34351 34352 if test "x$POTENTIAL_CXX" != x; then 34353 CXX=$POTENTIAL_CXX 34354 else 34355 as_fn_error $? "User supplied compiler CXX=$CXX could not be found" "$LINENO" 5 34356 fi 34357 else 34358 # Otherwise it might already be a complete path 34359 if test ! -x "$CXX"; then 34360 as_fn_error $? "User supplied compiler CXX=$CXX does not exist" "$LINENO" 5 34361 fi 34362 fi 34363 else 34364 # No user supplied value. Locate compiler ourselves. 34365 34366 # If we are cross compiling, assume cross compilation tools follows the 34367 # cross compilation standard where they are prefixed with the autoconf 34368 # standard name for the target. For example the binary 34369 # i686-sun-solaris2.10-gcc will cross compile for i686-sun-solaris2.10. 34370 # If we are not cross compiling, then the default compiler name will be 34371 # used. 34372 34373 CXX= 34374 # If TOOLCHAIN_PATH is set, check for all compiler names in there first 34375 # before checking the rest of the PATH. 34376 # FIXME: Now that we prefix the TOOLS_DIR to the PATH in the PRE_DETECTION 34377 # step, this should not be necessary. 34378 if test -n "$TOOLCHAIN_PATH"; then 34379 PATH_save="$PATH" 34380 PATH="$TOOLCHAIN_PATH" 34381 for ac_prog in $SEARCH_LIST 34382 do 34383 # Extract the first word of "$ac_prog", so it can be a program name with args. 34384 set dummy $ac_prog; ac_word=$2 34385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 34386 $as_echo_n "checking for $ac_word... " >&6; } 34387 if ${ac_cv_path_TOOLCHAIN_PATH_CXX+:} false; then : 34388 $as_echo_n "(cached) " >&6 34389 else 34390 case $TOOLCHAIN_PATH_CXX in 34391 [\\/]* | ?:[\\/]*) 34392 ac_cv_path_TOOLCHAIN_PATH_CXX="$TOOLCHAIN_PATH_CXX" # Let the user override the test with a path. 34393 ;; 34394 *) 34395 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 34396 for as_dir in $PATH 34397 do 34398 IFS=$as_save_IFS 34399 test -z "$as_dir" && as_dir=. 34400 for ac_exec_ext in '' $ac_executable_extensions; do 34401 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 34402 ac_cv_path_TOOLCHAIN_PATH_CXX="$as_dir/$ac_word$ac_exec_ext" 34403 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 34404 break 2 34405 fi 34406 done 34407 done 34408 IFS=$as_save_IFS 34409 34410 ;; 34411 esac 34412 fi 34413 TOOLCHAIN_PATH_CXX=$ac_cv_path_TOOLCHAIN_PATH_CXX 34414 if test -n "$TOOLCHAIN_PATH_CXX"; then 34415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOOLCHAIN_PATH_CXX" >&5 34416 $as_echo "$TOOLCHAIN_PATH_CXX" >&6; } 34417 else 34418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 34419 $as_echo "no" >&6; } 34420 fi 34421 34422 34423 test -n "$TOOLCHAIN_PATH_CXX" && break 34424 done 34425 34426 CXX=$TOOLCHAIN_PATH_CXX 34427 PATH="$PATH_save" 34428 fi 34429 34430 # AC_PATH_PROGS can't be run multiple times with the same variable, 34431 # so create a new name for this run. 34432 if test "x$CXX" = x; then 34433 for ac_prog in $SEARCH_LIST 34434 do 34435 # Extract the first word of "$ac_prog", so it can be a program name with args. 34436 set dummy $ac_prog; ac_word=$2 34437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 34438 $as_echo_n "checking for $ac_word... " >&6; } 34439 if ${ac_cv_path_POTENTIAL_CXX+:} false; then : 34440 $as_echo_n "(cached) " >&6 34441 else 34442 case $POTENTIAL_CXX in 34443 [\\/]* | ?:[\\/]*) 34444 ac_cv_path_POTENTIAL_CXX="$POTENTIAL_CXX" # Let the user override the test with a path. 34445 ;; 34446 *) 34447 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 34448 for as_dir in $PATH 34449 do 34450 IFS=$as_save_IFS 34451 test -z "$as_dir" && as_dir=. 34452 for ac_exec_ext in '' $ac_executable_extensions; do 34453 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 34454 ac_cv_path_POTENTIAL_CXX="$as_dir/$ac_word$ac_exec_ext" 34455 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 34456 break 2 34457 fi 34458 done 34459 done 34460 IFS=$as_save_IFS 34461 34462 ;; 34463 esac 34464 fi 34465 POTENTIAL_CXX=$ac_cv_path_POTENTIAL_CXX 34466 if test -n "$POTENTIAL_CXX"; then 34467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $POTENTIAL_CXX" >&5 34468 $as_echo "$POTENTIAL_CXX" >&6; } 34469 else 34470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 34471 $as_echo "no" >&6; } 34472 fi 34473 34474 34475 test -n "$POTENTIAL_CXX" && break 34476 done 34477 34478 CXX=$POTENTIAL_CXX 34479 fi 34480 34481 if test "x$CXX" = x; then 34482 34483 # Print a helpful message on how to acquire the necessary build dependency. 34484 # devkit is the help tag: freetype, cups, alsa etc 34485 MISSING_DEPENDENCY=devkit 34486 34487 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 34488 cygwin_help $MISSING_DEPENDENCY 34489 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 34490 msys_help $MISSING_DEPENDENCY 34491 else 34492 PKGHANDLER_COMMAND= 34493 34494 case $PKGHANDLER in 34495 apt-get) 34496 apt_help $MISSING_DEPENDENCY ;; 34497 yum) 34498 yum_help $MISSING_DEPENDENCY ;; 34499 port) 34500 port_help $MISSING_DEPENDENCY ;; 34501 pkgutil) 34502 pkgutil_help $MISSING_DEPENDENCY ;; 34503 pkgadd) 34504 pkgadd_help $MISSING_DEPENDENCY ;; 34505 esac 34506 34507 if test "x$PKGHANDLER_COMMAND" != x; then 34508 HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'." 34509 fi 34510 fi 34511 34512 as_fn_error $? "Could not find a $COMPILER_NAME compiler. $HELP_MSG" "$LINENO" 5 34513 fi 34514 fi 34515 34516 # Now we have a compiler binary in CXX. Make sure it's okay. 34517 34518 # Only process if variable expands to non-empty 34519 34520 if test "x$CXX" != x; then 34521 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 34522 34523 # First separate the path from the arguments. This will split at the first 34524 # space. 34525 complete="$CXX" 34526 path="${complete%% *}" 34527 tmp="$complete EOL" 34528 arguments="${tmp#* }" 34529 34530 # Input might be given as Windows format, start by converting to 34531 # unix format. 34532 new_path=`$CYGPATH -u "$path"` 34533 34534 # Now try to locate executable using which 34535 new_path=`$WHICH "$new_path" 2> /dev/null` 34536 # bat and cmd files are not always considered executable in cygwin causing which 34537 # to not find them 34538 if test "x$new_path" = x \ 34539 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 34540 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 34541 new_path=`$CYGPATH -u "$path"` 34542 fi 34543 if test "x$new_path" = x; then 34544 # Oops. Which didn't find the executable. 34545 # The splitting of arguments from the executable at a space might have been incorrect, 34546 # since paths with space are more likely in Windows. Give it another try with the whole 34547 # argument. 34548 path="$complete" 34549 arguments="EOL" 34550 new_path=`$CYGPATH -u "$path"` 34551 new_path=`$WHICH "$new_path" 2> /dev/null` 34552 # bat and cmd files are not always considered executable in cygwin causing which 34553 # to not find them 34554 if test "x$new_path" = x \ 34555 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 34556 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 34557 new_path=`$CYGPATH -u "$path"` 34558 fi 34559 if test "x$new_path" = x; then 34560 # It's still not found. Now this is an unrecoverable error. 34561 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CXX, which resolves as \"$complete\", is not found." >&5 34562 $as_echo "$as_me: The path of CXX, which resolves as \"$complete\", is not found." >&6;} 34563 has_space=`$ECHO "$complete" | $GREP " "` 34564 if test "x$has_space" != x; then 34565 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 34566 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 34567 fi 34568 as_fn_error $? "Cannot locate the the path of CXX" "$LINENO" 5 34569 fi 34570 fi 34571 34572 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 34573 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 34574 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 34575 # "foo.exe" is OK but "foo" is an error. 34576 # 34577 # This test is therefore slightly more accurate than "test -f" to check for file presence. 34578 # It is also a way to make sure we got the proper file name for the real test later on. 34579 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 34580 if test "x$test_shortpath" = x; then 34581 # Short path failed, file does not exist as specified. 34582 # Try adding .exe or .cmd 34583 if test -f "${new_path}.exe"; then 34584 input_to_shortpath="${new_path}.exe" 34585 elif test -f "${new_path}.cmd"; then 34586 input_to_shortpath="${new_path}.cmd" 34587 else 34588 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CXX, which resolves as \"$new_path\", is invalid." >&5 34589 $as_echo "$as_me: The path of CXX, which resolves as \"$new_path\", is invalid." >&6;} 34590 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 34591 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 34592 as_fn_error $? "Cannot locate the the path of CXX" "$LINENO" 5 34593 fi 34594 else 34595 input_to_shortpath="$new_path" 34596 fi 34597 34598 # Call helper function which possibly converts this using DOS-style short mode. 34599 # If so, the updated path is stored in $new_path. 34600 new_path="$input_to_shortpath" 34601 34602 input_path="$input_to_shortpath" 34603 # Check if we need to convert this using DOS-style short mode. If the path 34604 # contains just simple characters, use it. Otherwise (spaces, weird characters), 34605 # take no chances and rewrite it. 34606 # Note: m4 eats our [], so we need to use [ and ] instead. 34607 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 34608 if test "x$has_forbidden_chars" != x; then 34609 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 34610 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 34611 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 34612 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 34613 # Going to short mode and back again did indeed matter. Since short mode is 34614 # case insensitive, let's make it lowercase to improve readability. 34615 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 34616 # Now convert it back to Unix-style (cygpath) 34617 input_path=`$CYGPATH -u "$shortmode_path"` 34618 new_path="$input_path" 34619 fi 34620 fi 34621 34622 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 34623 if test "x$test_cygdrive_prefix" = x; then 34624 # As a simple fix, exclude /usr/bin since it's not a real path. 34625 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 34626 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 34627 # a path prefixed by /cygdrive for fixpath to work. 34628 new_path="$CYGWIN_ROOT_PATH$input_path" 34629 fi 34630 fi 34631 34632 # remove trailing .exe if any 34633 new_path="${new_path/%.exe/}" 34634 34635 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 34636 34637 # First separate the path from the arguments. This will split at the first 34638 # space. 34639 complete="$CXX" 34640 path="${complete%% *}" 34641 tmp="$complete EOL" 34642 arguments="${tmp#* }" 34643 34644 # Input might be given as Windows format, start by converting to 34645 # unix format. 34646 new_path="$path" 34647 34648 windows_path="$new_path" 34649 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 34650 unix_path=`$CYGPATH -u "$windows_path"` 34651 new_path="$unix_path" 34652 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 34653 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 34654 new_path="$unix_path" 34655 fi 34656 34657 34658 # Now try to locate executable using which 34659 new_path=`$WHICH "$new_path" 2> /dev/null` 34660 34661 if test "x$new_path" = x; then 34662 # Oops. Which didn't find the executable. 34663 # The splitting of arguments from the executable at a space might have been incorrect, 34664 # since paths with space are more likely in Windows. Give it another try with the whole 34665 # argument. 34666 path="$complete" 34667 arguments="EOL" 34668 new_path="$path" 34669 34670 windows_path="$new_path" 34671 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 34672 unix_path=`$CYGPATH -u "$windows_path"` 34673 new_path="$unix_path" 34674 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 34675 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 34676 new_path="$unix_path" 34677 fi 34678 34679 34680 new_path=`$WHICH "$new_path" 2> /dev/null` 34681 # bat and cmd files are not always considered executable in MSYS causing which 34682 # to not find them 34683 if test "x$new_path" = x \ 34684 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 34685 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 34686 new_path="$path" 34687 34688 windows_path="$new_path" 34689 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 34690 unix_path=`$CYGPATH -u "$windows_path"` 34691 new_path="$unix_path" 34692 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 34693 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 34694 new_path="$unix_path" 34695 fi 34696 34697 fi 34698 34699 if test "x$new_path" = x; then 34700 # It's still not found. Now this is an unrecoverable error. 34701 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CXX, which resolves as \"$complete\", is not found." >&5 34702 $as_echo "$as_me: The path of CXX, which resolves as \"$complete\", is not found." >&6;} 34703 has_space=`$ECHO "$complete" | $GREP " "` 34704 if test "x$has_space" != x; then 34705 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 34706 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 34707 fi 34708 as_fn_error $? "Cannot locate the the path of CXX" "$LINENO" 5 34709 fi 34710 fi 34711 34712 # Now new_path has a complete unix path to the binary 34713 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 34714 # Keep paths in /bin as-is, but remove trailing .exe if any 34715 new_path="${new_path/%.exe/}" 34716 # Do not save /bin paths to all_fixpath_prefixes! 34717 else 34718 # Not in mixed or Windows style, start by that. 34719 new_path=`cmd //c echo $new_path` 34720 34721 input_path="$new_path" 34722 # Check if we need to convert this using DOS-style short mode. If the path 34723 # contains just simple characters, use it. Otherwise (spaces, weird characters), 34724 # take no chances and rewrite it. 34725 # Note: m4 eats our [], so we need to use [ and ] instead. 34726 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 34727 if test "x$has_forbidden_chars" != x; then 34728 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 34729 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 34730 fi 34731 34732 # Output is in $new_path 34733 34734 windows_path="$new_path" 34735 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 34736 unix_path=`$CYGPATH -u "$windows_path"` 34737 new_path="$unix_path" 34738 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 34739 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 34740 new_path="$unix_path" 34741 fi 34742 34743 # remove trailing .exe if any 34744 new_path="${new_path/%.exe/}" 34745 34746 # Save the first 10 bytes of this path to the storage, so fixpath can work. 34747 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 34748 fi 34749 34750 else 34751 # We're on a unix platform. Hooray! :) 34752 # First separate the path from the arguments. This will split at the first 34753 # space. 34754 complete="$CXX" 34755 path="${complete%% *}" 34756 tmp="$complete EOL" 34757 arguments="${tmp#* }" 34758 34759 # Cannot rely on the command "which" here since it doesn't always work. 34760 is_absolute_path=`$ECHO "$path" | $GREP ^/` 34761 if test -z "$is_absolute_path"; then 34762 # Path to executable is not absolute. Find it. 34763 IFS_save="$IFS" 34764 IFS=: 34765 for p in $PATH; do 34766 if test -f "$p/$path" && test -x "$p/$path"; then 34767 new_path="$p/$path" 34768 break 34769 fi 34770 done 34771 IFS="$IFS_save" 34772 else 34773 # This is an absolute path, we can use it without further modifications. 34774 new_path="$path" 34775 fi 34776 34777 if test "x$new_path" = x; then 34778 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CXX, which resolves as \"$complete\", is not found." >&5 34779 $as_echo "$as_me: The path of CXX, which resolves as \"$complete\", is not found." >&6;} 34780 has_space=`$ECHO "$complete" | $GREP " "` 34781 if test "x$has_space" != x; then 34782 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 34783 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 34784 fi 34785 as_fn_error $? "Cannot locate the the path of CXX" "$LINENO" 5 34786 fi 34787 fi 34788 34789 # Now join together the path and the arguments once again 34790 if test "x$arguments" != xEOL; then 34791 new_complete="$new_path ${arguments% *}" 34792 else 34793 new_complete="$new_path" 34794 fi 34795 34796 if test "x$complete" != "x$new_complete"; then 34797 CXX="$new_complete" 34798 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting CXX to \"$new_complete\"" >&5 34799 $as_echo "$as_me: Rewriting CXX to \"$new_complete\"" >&6;} 34800 fi 34801 fi 34802 34803 TEST_COMPILER="$CXX" 34804 34805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking resolved symbolic links for CXX" >&5 34806 $as_echo_n "checking resolved symbolic links for CXX... " >&6; } 34807 SYMLINK_ORIGINAL="$TEST_COMPILER" 34808 34809 if test "x$OPENJDK_BUILD_OS" != xwindows; then 34810 # Follow a chain of symbolic links. Use readlink 34811 # where it exists, else fall back to horribly 34812 # complicated shell code. 34813 if test "x$READLINK_TESTED" != yes; then 34814 # On MacOSX there is a readlink tool with a different 34815 # purpose than the GNU readlink tool. Check the found readlink. 34816 ISGNU=`$READLINK --version 2>&1 | $GREP GNU` 34817 if test "x$ISGNU" = x; then 34818 # A readlink that we do not know how to use. 34819 # Are there other non-GNU readlinks out there? 34820 READLINK_TESTED=yes 34821 READLINK= 34822 fi 34823 fi 34824 34825 if test "x$READLINK" != x; then 34826 SYMLINK_ORIGINAL=`$READLINK -f $SYMLINK_ORIGINAL` 34827 else 34828 # Save the current directory for restoring afterwards 34829 STARTDIR=$PWD 34830 COUNTER=0 34831 sym_link_dir=`$DIRNAME $SYMLINK_ORIGINAL` 34832 sym_link_file=`$BASENAME $SYMLINK_ORIGINAL` 34833 cd $sym_link_dir 34834 # Use -P flag to resolve symlinks in directories. 34835 cd `$THEPWDCMD -P` 34836 sym_link_dir=`$THEPWDCMD -P` 34837 # Resolve file symlinks 34838 while test $COUNTER -lt 20; do 34839 ISLINK=`$LS -l $sym_link_dir/$sym_link_file | $GREP '\->' | $SED -e 's/.*-> \(.*\)/\1/'` 34840 if test "x$ISLINK" == x; then 34841 # This is not a symbolic link! We are done! 34842 break 34843 fi 34844 # Again resolve directory symlinks since the target of the just found 34845 # link could be in a different directory 34846 cd `$DIRNAME $ISLINK` 34847 sym_link_dir=`$THEPWDCMD -P` 34848 sym_link_file=`$BASENAME $ISLINK` 34849 let COUNTER=COUNTER+1 34850 done 34851 cd $STARTDIR 34852 SYMLINK_ORIGINAL=$sym_link_dir/$sym_link_file 34853 fi 34854 fi 34855 34856 if test "x$TEST_COMPILER" = "x$SYMLINK_ORIGINAL"; then 34857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no symlink" >&5 34858 $as_echo "no symlink" >&6; } 34859 else 34860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SYMLINK_ORIGINAL" >&5 34861 $as_echo "$SYMLINK_ORIGINAL" >&6; } 34862 34863 # We can't handle ccache by gcc wrappers, since we need to know if we're 34864 # using ccache. Instead ccache usage must be controlled by a configure option. 34865 COMPILER_BASENAME=`$BASENAME "$SYMLINK_ORIGINAL"` 34866 if test "x$COMPILER_BASENAME" = "xccache"; then 34867 { $as_echo "$as_me:${as_lineno-$LINENO}: Please use --enable-ccache instead of providing a wrapped compiler." >&5 34868 $as_echo "$as_me: Please use --enable-ccache instead of providing a wrapped compiler." >&6;} 34869 as_fn_error $? "$TEST_COMPILER is a symbolic link to ccache. This is not supported." "$LINENO" 5 34870 fi 34871 fi 34872 34873 34874 COMPILER=$CXX 34875 COMPILER_NAME=$COMPILER_NAME 34876 34877 if test "x$TOOLCHAIN_TYPE" = xsolstudio; then 34878 # cc -V output typically looks like 34879 # cc: Sun C 5.12 Linux_i386 2011/11/16 34880 # or 34881 # cc: Studio 12.5 Sun C 5.14 SunOS_sparc 2016/05/31 34882 COMPILER_VERSION_OUTPUT=`$COMPILER -V 2>&1` 34883 # Check that this is likely to be the Solaris Studio cc. 34884 $ECHO "$COMPILER_VERSION_OUTPUT" | $GREP "^.* Sun $COMPILER_NAME" > /dev/null 34885 if test $? -ne 0; then 34886 ALT_VERSION_OUTPUT=`$COMPILER --version 2>&1` 34887 { $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 34888 $as_echo "$as_me: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required $TOOLCHAIN_TYPE compiler." >&6;} 34889 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with -V was: \"$COMPILER_VERSION_OUTPUT\"" >&5 34890 $as_echo "$as_me: The result from running with -V was: \"$COMPILER_VERSION_OUTPUT\"" >&6;} 34891 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with --version was: \"$ALT_VERSION_OUTPUT\"" >&5 34892 $as_echo "$as_me: The result from running with --version was: \"$ALT_VERSION_OUTPUT\"" >&6;} 34893 as_fn_error $? "A $TOOLCHAIN_TYPE compiler is required. Try setting --with-tools-dir." "$LINENO" 5 34894 fi 34895 # Remove usage instructions (if present), and 34896 # collapse compiler output into a single line 34897 COMPILER_VERSION_STRING=`$ECHO $COMPILER_VERSION_OUTPUT | \ 34898 $SED -e 's/ *[Uu]sage:.*//'` 34899 COMPILER_VERSION_NUMBER=`$ECHO $COMPILER_VERSION_OUTPUT | \ 34900 $SED -e "s/^.*[ ,\t]$COMPILER_NAME[ ,\t]\([1-9]\.[0-9][0-9]*\).*/\1/"` 34901 elif test "x$TOOLCHAIN_TYPE" = xxlc; then 34902 # xlc -qversion output typically looks like 34903 # IBM XL C/C++ for AIX, V11.1 (5724-X13) 34904 # Version: 11.01.0000.0015 34905 COMPILER_VERSION_OUTPUT=`$COMPILER -qversion 2>&1` 34906 # Check that this is likely to be the IBM XL C compiler. 34907 $ECHO "$COMPILER_VERSION_OUTPUT" | $GREP "IBM XL C" > /dev/null 34908 if test $? -ne 0; then 34909 ALT_VERSION_OUTPUT=`$COMPILER --version 2>&1` 34910 { $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 34911 $as_echo "$as_me: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required $TOOLCHAIN_TYPE compiler." >&6;} 34912 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with -qversion was: \"$COMPILER_VERSION_OUTPUT\"" >&5 34913 $as_echo "$as_me: The result from running with -qversion was: \"$COMPILER_VERSION_OUTPUT\"" >&6;} 34914 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with --version was: \"$ALT_VERSION_OUTPUT\"" >&5 34915 $as_echo "$as_me: The result from running with --version was: \"$ALT_VERSION_OUTPUT\"" >&6;} 34916 as_fn_error $? "A $TOOLCHAIN_TYPE compiler is required. Try setting --with-tools-dir." "$LINENO" 5 34917 fi 34918 # Collapse compiler output into a single line 34919 COMPILER_VERSION_STRING=`$ECHO $COMPILER_VERSION_OUTPUT` 34920 COMPILER_VERSION_NUMBER=`$ECHO $COMPILER_VERSION_OUTPUT | \ 34921 $SED -e 's/^.*, V\([1-9][0-9.]*\).*$/\1/'` 34922 elif test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 34923 # There is no specific version flag, but all output starts with a version string. 34924 # First line typically looks something like: 34925 # Microsoft (R) 32-bit C/C++ Optimizing Compiler Version 16.00.40219.01 for 80x86 34926 COMPILER_VERSION_OUTPUT=`$COMPILER 2>&1 | $HEAD -n 1 | $TR -d '\r'` 34927 # Check that this is likely to be Microsoft CL.EXE. 34928 $ECHO "$COMPILER_VERSION_OUTPUT" | $GREP "Microsoft.*Compiler" > /dev/null 34929 if test $? -ne 0; then 34930 { $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 34931 $as_echo "$as_me: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required $TOOLCHAIN_TYPE compiler." >&6;} 34932 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running it was: \"$COMPILER_VERSION_OUTPUT\"" >&5 34933 $as_echo "$as_me: The result from running it was: \"$COMPILER_VERSION_OUTPUT\"" >&6;} 34934 as_fn_error $? "A $TOOLCHAIN_TYPE compiler is required. Try setting --with-tools-dir." "$LINENO" 5 34935 fi 34936 # Collapse compiler output into a single line 34937 COMPILER_VERSION_STRING=`$ECHO $COMPILER_VERSION_OUTPUT` 34938 COMPILER_VERSION_NUMBER=`$ECHO $COMPILER_VERSION_OUTPUT | \ 34939 $SED -e 's/^.*ersion.\([1-9][0-9.]*\) .*$/\1/'` 34940 elif test "x$TOOLCHAIN_TYPE" = xgcc; then 34941 # gcc --version output typically looks like 34942 # gcc (Ubuntu/Linaro 4.8.1-10ubuntu9) 4.8.1 34943 # Copyright (C) 2013 Free Software Foundation, Inc. 34944 # This is free software; see the source for copying conditions. There is NO 34945 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 34946 COMPILER_VERSION_OUTPUT=`$COMPILER --version 2>&1` 34947 # Check that this is likely to be GCC. 34948 $ECHO "$COMPILER_VERSION_OUTPUT" | $GREP "Free Software Foundation" > /dev/null 34949 if test $? -ne 0; then 34950 { $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 34951 $as_echo "$as_me: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required $TOOLCHAIN_TYPE compiler." >&6;} 34952 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with --version was: \"$COMPILER_VERSION\"" >&5 34953 $as_echo "$as_me: The result from running with --version was: \"$COMPILER_VERSION\"" >&6;} 34954 as_fn_error $? "A $TOOLCHAIN_TYPE compiler is required. Try setting --with-tools-dir." "$LINENO" 5 34955 fi 34956 # Remove Copyright and legalese from version string, and 34957 # collapse into a single line 34958 COMPILER_VERSION_STRING=`$ECHO $COMPILER_VERSION_OUTPUT | \ 34959 $SED -e 's/ *Copyright .*//'` 34960 COMPILER_VERSION_NUMBER=`$ECHO $COMPILER_VERSION_OUTPUT | \ 34961 $SED -e 's/^.* \([1-9]\.[0-9.]*\)[^0-9.].*$/\1/'` 34962 elif test "x$TOOLCHAIN_TYPE" = xclang; then 34963 # clang --version output typically looks like 34964 # Apple LLVM version 5.0 (clang-500.2.79) (based on LLVM 3.3svn) 34965 # clang version 3.3 (tags/RELEASE_33/final) 34966 # or 34967 # Debian clang version 3.2-7ubuntu1 (tags/RELEASE_32/final) (based on LLVM 3.2) 34968 # Target: x86_64-pc-linux-gnu 34969 # Thread model: posix 34970 COMPILER_VERSION_OUTPUT=`$COMPILER --version 2>&1` 34971 # Check that this is likely to be clang 34972 $ECHO "$COMPILER_VERSION_OUTPUT" | $GREP "clang" > /dev/null 34973 if test $? -ne 0; then 34974 { $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 34975 $as_echo "$as_me: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required $TOOLCHAIN_TYPE compiler." >&6;} 34976 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with --version was: \"$COMPILER_VERSION_OUTPUT\"" >&5 34977 $as_echo "$as_me: The result from running with --version was: \"$COMPILER_VERSION_OUTPUT\"" >&6;} 34978 as_fn_error $? "A $TOOLCHAIN_TYPE compiler is required. Try setting --with-tools-dir." "$LINENO" 5 34979 fi 34980 # Collapse compiler output into a single line 34981 COMPILER_VERSION_STRING=`$ECHO $COMPILER_VERSION_OUTPUT` 34982 COMPILER_VERSION_NUMBER=`$ECHO $COMPILER_VERSION_OUTPUT | \ 34983 $SED -e 's/^.* version \([1-9][0-9.]*\).*$/\1/'` 34984 else 34985 as_fn_error $? "Unknown toolchain type $TOOLCHAIN_TYPE." "$LINENO" 5 34986 fi 34987 # This sets CC_VERSION_NUMBER or CXX_VERSION_NUMBER. (This comment is a grep marker) 34988 CXX_VERSION_NUMBER="$COMPILER_VERSION_NUMBER" 34989 # This sets CC_VERSION_STRING or CXX_VERSION_STRING. (This comment is a grep marker) 34990 CXX_VERSION_STRING="$COMPILER_VERSION_STRING" 34991 34992 { $as_echo "$as_me:${as_lineno-$LINENO}: Using $TOOLCHAIN_TYPE $COMPILER_NAME compiler version $COMPILER_VERSION_NUMBER [$COMPILER_VERSION_STRING]" >&5 34993 $as_echo "$as_me: Using $TOOLCHAIN_TYPE $COMPILER_NAME compiler version $COMPILER_VERSION_NUMBER [$COMPILER_VERSION_STRING]" >&6;} 34994 34995 34996 # Now that we have resolved CXX ourself, let autoconf have its go at it 34997 ac_ext=cpp 34998 ac_cpp='$CXXCPP $CPPFLAGS' 34999 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 35000 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 35001 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 35002 if test -z "$CXX"; then 35003 if test -n "$CCC"; then 35004 CXX=$CCC 35005 else 35006 if test -n "$ac_tool_prefix"; then 35007 for ac_prog in $CXX 35008 do 35009 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 35010 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 35011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 35012 $as_echo_n "checking for $ac_word... " >&6; } 35013 if ${ac_cv_prog_CXX+:} false; then : 35014 $as_echo_n "(cached) " >&6 35015 else 35016 if test -n "$CXX"; then 35017 ac_cv_prog_CXX="$CXX" # Let the user override the test. 35018 else 35019 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 35020 for as_dir in $PATH 35021 do 35022 IFS=$as_save_IFS 35023 test -z "$as_dir" && as_dir=. 35024 for ac_exec_ext in '' $ac_executable_extensions; do 35025 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 35026 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" 35027 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 35028 break 2 35029 fi 35030 done 35031 done 35032 IFS=$as_save_IFS 35033 35034 fi 35035 fi 35036 CXX=$ac_cv_prog_CXX 35037 if test -n "$CXX"; then 35038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 35039 $as_echo "$CXX" >&6; } 35040 else 35041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 35042 $as_echo "no" >&6; } 35043 fi 35044 35045 35046 test -n "$CXX" && break 35047 done 35048 fi 35049 if test -z "$CXX"; then 35050 ac_ct_CXX=$CXX 35051 for ac_prog in $CXX 35052 do 35053 # Extract the first word of "$ac_prog", so it can be a program name with args. 35054 set dummy $ac_prog; ac_word=$2 35055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 35056 $as_echo_n "checking for $ac_word... " >&6; } 35057 if ${ac_cv_prog_ac_ct_CXX+:} false; then : 35058 $as_echo_n "(cached) " >&6 35059 else 35060 if test -n "$ac_ct_CXX"; then 35061 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. 35062 else 35063 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 35064 for as_dir in $PATH 35065 do 35066 IFS=$as_save_IFS 35067 test -z "$as_dir" && as_dir=. 35068 for ac_exec_ext in '' $ac_executable_extensions; do 35069 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 35070 ac_cv_prog_ac_ct_CXX="$ac_prog" 35071 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 35072 break 2 35073 fi 35074 done 35075 done 35076 IFS=$as_save_IFS 35077 35078 fi 35079 fi 35080 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX 35081 if test -n "$ac_ct_CXX"; then 35082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 35083 $as_echo "$ac_ct_CXX" >&6; } 35084 else 35085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 35086 $as_echo "no" >&6; } 35087 fi 35088 35089 35090 test -n "$ac_ct_CXX" && break 35091 done 35092 35093 if test "x$ac_ct_CXX" = x; then 35094 CXX="g++" 35095 else 35096 case $cross_compiling:$ac_tool_warned in 35097 yes:) 35098 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 35099 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 35100 ac_tool_warned=yes ;; 35101 esac 35102 CXX=$ac_ct_CXX 35103 fi 35104 fi 35105 35106 fi 35107 fi 35108 # Provide some information about the compiler. 35109 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5 35110 set X $ac_compile 35111 ac_compiler=$2 35112 for ac_option in --version -v -V -qversion; do 35113 { { ac_try="$ac_compiler $ac_option >&5" 35114 case "(($ac_try" in 35115 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 35116 *) ac_try_echo=$ac_try;; 35117 esac 35118 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 35119 $as_echo "$ac_try_echo"; } >&5 35120 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 35121 ac_status=$? 35122 if test -s conftest.err; then 35123 sed '10a\ 35124 ... rest of stderr output deleted ... 35125 10q' conftest.err >conftest.er1 35126 cat conftest.er1 >&5 35127 fi 35128 rm -f conftest.er1 conftest.err 35129 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 35130 test $ac_status = 0; } 35131 done 35132 35133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5 35134 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; } 35135 if ${ac_cv_cxx_compiler_gnu+:} false; then : 35136 $as_echo_n "(cached) " >&6 35137 else 35138 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 35139 /* end confdefs.h. */ 35140 35141 int 35142 main () 35143 { 35144 #ifndef __GNUC__ 35145 choke me 35146 #endif 35147 35148 ; 35149 return 0; 35150 } 35151 _ACEOF 35152 if ac_fn_cxx_try_compile "$LINENO"; then : 35153 ac_compiler_gnu=yes 35154 else 35155 ac_compiler_gnu=no 35156 fi 35157 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 35158 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu 35159 35160 fi 35161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5 35162 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; } 35163 if test $ac_compiler_gnu = yes; then 35164 GXX=yes 35165 else 35166 GXX= 35167 fi 35168 ac_test_CXXFLAGS=${CXXFLAGS+set} 35169 ac_save_CXXFLAGS=$CXXFLAGS 35170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5 35171 $as_echo_n "checking whether $CXX accepts -g... " >&6; } 35172 if ${ac_cv_prog_cxx_g+:} false; then : 35173 $as_echo_n "(cached) " >&6 35174 else 35175 ac_save_cxx_werror_flag=$ac_cxx_werror_flag 35176 ac_cxx_werror_flag=yes 35177 ac_cv_prog_cxx_g=no 35178 CXXFLAGS="-g" 35179 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 35180 /* end confdefs.h. */ 35181 35182 int 35183 main () 35184 { 35185 35186 ; 35187 return 0; 35188 } 35189 _ACEOF 35190 if ac_fn_cxx_try_compile "$LINENO"; then : 35191 ac_cv_prog_cxx_g=yes 35192 else 35193 CXXFLAGS="" 35194 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 35195 /* end confdefs.h. */ 35196 35197 int 35198 main () 35199 { 35200 35201 ; 35202 return 0; 35203 } 35204 _ACEOF 35205 if ac_fn_cxx_try_compile "$LINENO"; then : 35206 35207 else 35208 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 35209 CXXFLAGS="-g" 35210 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 35211 /* end confdefs.h. */ 35212 35213 int 35214 main () 35215 { 35216 35217 ; 35218 return 0; 35219 } 35220 _ACEOF 35221 if ac_fn_cxx_try_compile "$LINENO"; then : 35222 ac_cv_prog_cxx_g=yes 35223 fi 35224 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 35225 fi 35226 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 35227 fi 35228 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 35229 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 35230 fi 35231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5 35232 $as_echo "$ac_cv_prog_cxx_g" >&6; } 35233 if test "$ac_test_CXXFLAGS" = set; then 35234 CXXFLAGS=$ac_save_CXXFLAGS 35235 elif test $ac_cv_prog_cxx_g = yes; then 35236 if test "$GXX" = yes; then 35237 CXXFLAGS="-g -O2" 35238 else 35239 CXXFLAGS="-g" 35240 fi 35241 else 35242 if test "$GXX" = yes; then 35243 CXXFLAGS="-O2" 35244 else 35245 CXXFLAGS= 35246 fi 35247 fi 35248 ac_ext=cpp 35249 ac_cpp='$CXXCPP $CPPFLAGS' 35250 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 35251 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 35252 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 35253 35254 35255 # This is the compiler version number on the form X.Y[.Z] 35256 35257 35258 35259 35260 if test "x$CC_VERSION_NUMBER" != "x$CXX_VERSION_NUMBER"; then 35261 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: C and C++ compiler have different version numbers, $CC_VERSION_NUMBER vs $CXX_VERSION_NUMBER." >&5 35262 $as_echo "$as_me: WARNING: C and C++ compiler have different version numbers, $CC_VERSION_NUMBER vs $CXX_VERSION_NUMBER." >&2;} 35263 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This typically indicates a broken setup, and is not supported" >&5 35264 $as_echo "$as_me: WARNING: This typically indicates a broken setup, and is not supported" >&2;} 35265 fi 35266 35267 # We only check CC_VERSION_NUMBER since we assume CXX_VERSION_NUMBER is equal. 35268 if [[ "[$]CC_VERSION_NUMBER" =~ (.*\.){4} ]] ; then 35269 { $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 35270 $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;} 35271 fi 35272 35273 if [[ "[$]CC_VERSION_NUMBER" =~ [0-9]{6} ]] ; then 35274 { $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 35275 $as_echo "$as_me: WARNING: C compiler version number has a part larger than 99999: $CC_VERSION_NUMBER. Comparisons might be wrong." >&2;} 35276 fi 35277 35278 COMPARABLE_ACTUAL_VERSION=`$AWK -F. '{ printf("%05d%05d%05d%05d\n", $1, $2, $3, $4) }' <<< "$CC_VERSION_NUMBER"` 35279 35280 35281 if test "x$TOOLCHAIN_MINIMUM_VERSION" != x; then 35282 35283 35284 35285 35286 35287 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 # Execute function body 35332 35333 # Need to assign to a variable since m4 is blocked from modifying parts in []. 35334 REFERENCE_VERSION=$TOOLCHAIN_MINIMUM_VERSION 35335 35336 if [[ "$REFERENCE_VERSION" =~ (.*\.){4} ]] ; then 35337 as_fn_error $? "Internal error: Cannot compare to $TOOLCHAIN_MINIMUM_VERSION, only four parts (W.X.Y.Z) is supported" "$LINENO" 5 35338 fi 35339 35340 if [[ "$REFERENCE_VERSION" =~ [0-9]{6} ]] ; then 35341 as_fn_error $? "Internal error: Cannot compare to $TOOLCHAIN_MINIMUM_VERSION, only parts < 99999 is supported" "$LINENO" 5 35342 fi 35343 35344 # Version comparison method inspired by http://stackoverflow.com/a/24067243 35345 COMPARABLE_REFERENCE_VERSION=`$AWK -F. '{ printf("%05d%05d%05d%05d\n", $1, $2, $3, $4) }' <<< "$REFERENCE_VERSION"` 35346 35347 if test $COMPARABLE_ACTUAL_VERSION -ge $COMPARABLE_REFERENCE_VERSION ; then 35348 : 35349 35350 else 35351 : 35352 35353 { $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 35354 $as_echo "$as_me: WARNING: You are using $TOOLCHAIN_TYPE older than $TOOLCHAIN_MINIMUM_VERSION. This is not a supported configuration." >&2;} 35355 35356 35357 fi 35358 35359 35360 35361 35362 35363 35364 35365 35366 35367 35368 35369 35370 35371 35372 fi 35373 35374 # 35375 # Setup the preprocessor (CPP and CXXCPP) 35376 # 35377 ac_ext=c 35378 ac_cpp='$CPP $CPPFLAGS' 35379 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 35380 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 35381 ac_compiler_gnu=$ac_cv_c_compiler_gnu 35382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 35383 $as_echo_n "checking how to run the C preprocessor... " >&6; } 35384 # On Suns, sometimes $CPP names a directory. 35385 if test -n "$CPP" && test -d "$CPP"; then 35386 CPP= 35387 fi 35388 if test -z "$CPP"; then 35389 if ${ac_cv_prog_CPP+:} false; then : 35390 $as_echo_n "(cached) " >&6 35391 else 35392 # Double quotes because CPP needs to be expanded 35393 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 35394 do 35395 ac_preproc_ok=false 35396 for ac_c_preproc_warn_flag in '' yes 35397 do 35398 # Use a header file that comes with gcc, so configuring glibc 35399 # with a fresh cross-compiler works. 35400 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 35401 # <limits.h> exists even on freestanding compilers. 35402 # On the NeXT, cc -E runs the code through the compiler's parser, 35403 # not just through cpp. "Syntax error" is here to catch this case. 35404 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 35405 /* end confdefs.h. */ 35406 #ifdef __STDC__ 35407 # include <limits.h> 35408 #else 35409 # include <assert.h> 35410 #endif 35411 Syntax error 35412 _ACEOF 35413 if ac_fn_c_try_cpp "$LINENO"; then : 35414 35415 else 35416 # Broken: fails on valid input. 35417 continue 35418 fi 35419 rm -f conftest.err conftest.i conftest.$ac_ext 35420 35421 # OK, works on sane cases. Now check whether nonexistent headers 35422 # can be detected and how. 35423 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 35424 /* end confdefs.h. */ 35425 #include <ac_nonexistent.h> 35426 _ACEOF 35427 if ac_fn_c_try_cpp "$LINENO"; then : 35428 # Broken: success on invalid input. 35429 continue 35430 else 35431 # Passes both tests. 35432 ac_preproc_ok=: 35433 break 35434 fi 35435 rm -f conftest.err conftest.i conftest.$ac_ext 35436 35437 done 35438 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 35439 rm -f conftest.i conftest.err conftest.$ac_ext 35440 if $ac_preproc_ok; then : 35441 break 35442 fi 35443 35444 done 35445 ac_cv_prog_CPP=$CPP 35446 35447 fi 35448 CPP=$ac_cv_prog_CPP 35449 else 35450 ac_cv_prog_CPP=$CPP 35451 fi 35452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 35453 $as_echo "$CPP" >&6; } 35454 ac_preproc_ok=false 35455 for ac_c_preproc_warn_flag in '' yes 35456 do 35457 # Use a header file that comes with gcc, so configuring glibc 35458 # with a fresh cross-compiler works. 35459 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 35460 # <limits.h> exists even on freestanding compilers. 35461 # On the NeXT, cc -E runs the code through the compiler's parser, 35462 # not just through cpp. "Syntax error" is here to catch this case. 35463 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 35464 /* end confdefs.h. */ 35465 #ifdef __STDC__ 35466 # include <limits.h> 35467 #else 35468 # include <assert.h> 35469 #endif 35470 Syntax error 35471 _ACEOF 35472 if ac_fn_c_try_cpp "$LINENO"; then : 35473 35474 else 35475 # Broken: fails on valid input. 35476 continue 35477 fi 35478 rm -f conftest.err conftest.i conftest.$ac_ext 35479 35480 # OK, works on sane cases. Now check whether nonexistent headers 35481 # can be detected and how. 35482 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 35483 /* end confdefs.h. */ 35484 #include <ac_nonexistent.h> 35485 _ACEOF 35486 if ac_fn_c_try_cpp "$LINENO"; then : 35487 # Broken: success on invalid input. 35488 continue 35489 else 35490 # Passes both tests. 35491 ac_preproc_ok=: 35492 break 35493 fi 35494 rm -f conftest.err conftest.i conftest.$ac_ext 35495 35496 done 35497 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 35498 rm -f conftest.i conftest.err conftest.$ac_ext 35499 if $ac_preproc_ok; then : 35500 35501 else 35502 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 35503 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 35504 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 35505 See \`config.log' for more details" "$LINENO" 5; } 35506 fi 35507 35508 ac_ext=cpp 35509 ac_cpp='$CXXCPP $CPPFLAGS' 35510 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 35511 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 35512 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 35513 35514 35515 # Only process if variable expands to non-empty 35516 35517 if test "x$CPP" != x; then 35518 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 35519 35520 # First separate the path from the arguments. This will split at the first 35521 # space. 35522 complete="$CPP" 35523 path="${complete%% *}" 35524 tmp="$complete EOL" 35525 arguments="${tmp#* }" 35526 35527 # Input might be given as Windows format, start by converting to 35528 # unix format. 35529 new_path=`$CYGPATH -u "$path"` 35530 35531 # Now try to locate executable using which 35532 new_path=`$WHICH "$new_path" 2> /dev/null` 35533 # bat and cmd files are not always considered executable in cygwin causing which 35534 # to not find them 35535 if test "x$new_path" = x \ 35536 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 35537 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 35538 new_path=`$CYGPATH -u "$path"` 35539 fi 35540 if test "x$new_path" = x; then 35541 # Oops. Which didn't find the executable. 35542 # The splitting of arguments from the executable at a space might have been incorrect, 35543 # since paths with space are more likely in Windows. Give it another try with the whole 35544 # argument. 35545 path="$complete" 35546 arguments="EOL" 35547 new_path=`$CYGPATH -u "$path"` 35548 new_path=`$WHICH "$new_path" 2> /dev/null` 35549 # bat and cmd files are not always considered executable in cygwin causing which 35550 # to not find them 35551 if test "x$new_path" = x \ 35552 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 35553 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 35554 new_path=`$CYGPATH -u "$path"` 35555 fi 35556 if test "x$new_path" = x; then 35557 # It's still not found. Now this is an unrecoverable error. 35558 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CPP, which resolves as \"$complete\", is not found." >&5 35559 $as_echo "$as_me: The path of CPP, which resolves as \"$complete\", is not found." >&6;} 35560 has_space=`$ECHO "$complete" | $GREP " "` 35561 if test "x$has_space" != x; then 35562 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 35563 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 35564 fi 35565 as_fn_error $? "Cannot locate the the path of CPP" "$LINENO" 5 35566 fi 35567 fi 35568 35569 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 35570 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 35571 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 35572 # "foo.exe" is OK but "foo" is an error. 35573 # 35574 # This test is therefore slightly more accurate than "test -f" to check for file presence. 35575 # It is also a way to make sure we got the proper file name for the real test later on. 35576 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 35577 if test "x$test_shortpath" = x; then 35578 # Short path failed, file does not exist as specified. 35579 # Try adding .exe or .cmd 35580 if test -f "${new_path}.exe"; then 35581 input_to_shortpath="${new_path}.exe" 35582 elif test -f "${new_path}.cmd"; then 35583 input_to_shortpath="${new_path}.cmd" 35584 else 35585 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CPP, which resolves as \"$new_path\", is invalid." >&5 35586 $as_echo "$as_me: The path of CPP, which resolves as \"$new_path\", is invalid." >&6;} 35587 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 35588 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 35589 as_fn_error $? "Cannot locate the the path of CPP" "$LINENO" 5 35590 fi 35591 else 35592 input_to_shortpath="$new_path" 35593 fi 35594 35595 # Call helper function which possibly converts this using DOS-style short mode. 35596 # If so, the updated path is stored in $new_path. 35597 new_path="$input_to_shortpath" 35598 35599 input_path="$input_to_shortpath" 35600 # Check if we need to convert this using DOS-style short mode. If the path 35601 # contains just simple characters, use it. Otherwise (spaces, weird characters), 35602 # take no chances and rewrite it. 35603 # Note: m4 eats our [], so we need to use [ and ] instead. 35604 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 35605 if test "x$has_forbidden_chars" != x; then 35606 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 35607 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 35608 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 35609 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 35610 # Going to short mode and back again did indeed matter. Since short mode is 35611 # case insensitive, let's make it lowercase to improve readability. 35612 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 35613 # Now convert it back to Unix-style (cygpath) 35614 input_path=`$CYGPATH -u "$shortmode_path"` 35615 new_path="$input_path" 35616 fi 35617 fi 35618 35619 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 35620 if test "x$test_cygdrive_prefix" = x; then 35621 # As a simple fix, exclude /usr/bin since it's not a real path. 35622 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 35623 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 35624 # a path prefixed by /cygdrive for fixpath to work. 35625 new_path="$CYGWIN_ROOT_PATH$input_path" 35626 fi 35627 fi 35628 35629 # remove trailing .exe if any 35630 new_path="${new_path/%.exe/}" 35631 35632 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 35633 35634 # First separate the path from the arguments. This will split at the first 35635 # space. 35636 complete="$CPP" 35637 path="${complete%% *}" 35638 tmp="$complete EOL" 35639 arguments="${tmp#* }" 35640 35641 # Input might be given as Windows format, start by converting to 35642 # unix format. 35643 new_path="$path" 35644 35645 windows_path="$new_path" 35646 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 35647 unix_path=`$CYGPATH -u "$windows_path"` 35648 new_path="$unix_path" 35649 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 35650 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 35651 new_path="$unix_path" 35652 fi 35653 35654 35655 # Now try to locate executable using which 35656 new_path=`$WHICH "$new_path" 2> /dev/null` 35657 35658 if test "x$new_path" = x; then 35659 # Oops. Which didn't find the executable. 35660 # The splitting of arguments from the executable at a space might have been incorrect, 35661 # since paths with space are more likely in Windows. Give it another try with the whole 35662 # argument. 35663 path="$complete" 35664 arguments="EOL" 35665 new_path="$path" 35666 35667 windows_path="$new_path" 35668 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 35669 unix_path=`$CYGPATH -u "$windows_path"` 35670 new_path="$unix_path" 35671 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 35672 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 35673 new_path="$unix_path" 35674 fi 35675 35676 35677 new_path=`$WHICH "$new_path" 2> /dev/null` 35678 # bat and cmd files are not always considered executable in MSYS causing which 35679 # to not find them 35680 if test "x$new_path" = x \ 35681 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 35682 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 35683 new_path="$path" 35684 35685 windows_path="$new_path" 35686 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 35687 unix_path=`$CYGPATH -u "$windows_path"` 35688 new_path="$unix_path" 35689 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 35690 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 35691 new_path="$unix_path" 35692 fi 35693 35694 fi 35695 35696 if test "x$new_path" = x; then 35697 # It's still not found. Now this is an unrecoverable error. 35698 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CPP, which resolves as \"$complete\", is not found." >&5 35699 $as_echo "$as_me: The path of CPP, which resolves as \"$complete\", is not found." >&6;} 35700 has_space=`$ECHO "$complete" | $GREP " "` 35701 if test "x$has_space" != x; then 35702 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 35703 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 35704 fi 35705 as_fn_error $? "Cannot locate the the path of CPP" "$LINENO" 5 35706 fi 35707 fi 35708 35709 # Now new_path has a complete unix path to the binary 35710 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 35711 # Keep paths in /bin as-is, but remove trailing .exe if any 35712 new_path="${new_path/%.exe/}" 35713 # Do not save /bin paths to all_fixpath_prefixes! 35714 else 35715 # Not in mixed or Windows style, start by that. 35716 new_path=`cmd //c echo $new_path` 35717 35718 input_path="$new_path" 35719 # Check if we need to convert this using DOS-style short mode. If the path 35720 # contains just simple characters, use it. Otherwise (spaces, weird characters), 35721 # take no chances and rewrite it. 35722 # Note: m4 eats our [], so we need to use [ and ] instead. 35723 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 35724 if test "x$has_forbidden_chars" != x; then 35725 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 35726 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 35727 fi 35728 35729 # Output is in $new_path 35730 35731 windows_path="$new_path" 35732 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 35733 unix_path=`$CYGPATH -u "$windows_path"` 35734 new_path="$unix_path" 35735 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 35736 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 35737 new_path="$unix_path" 35738 fi 35739 35740 # remove trailing .exe if any 35741 new_path="${new_path/%.exe/}" 35742 35743 # Save the first 10 bytes of this path to the storage, so fixpath can work. 35744 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 35745 fi 35746 35747 else 35748 # We're on a unix platform. Hooray! :) 35749 # First separate the path from the arguments. This will split at the first 35750 # space. 35751 complete="$CPP" 35752 path="${complete%% *}" 35753 tmp="$complete EOL" 35754 arguments="${tmp#* }" 35755 35756 # Cannot rely on the command "which" here since it doesn't always work. 35757 is_absolute_path=`$ECHO "$path" | $GREP ^/` 35758 if test -z "$is_absolute_path"; then 35759 # Path to executable is not absolute. Find it. 35760 IFS_save="$IFS" 35761 IFS=: 35762 for p in $PATH; do 35763 if test -f "$p/$path" && test -x "$p/$path"; then 35764 new_path="$p/$path" 35765 break 35766 fi 35767 done 35768 IFS="$IFS_save" 35769 else 35770 # This is an absolute path, we can use it without further modifications. 35771 new_path="$path" 35772 fi 35773 35774 if test "x$new_path" = x; then 35775 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CPP, which resolves as \"$complete\", is not found." >&5 35776 $as_echo "$as_me: The path of CPP, which resolves as \"$complete\", is not found." >&6;} 35777 has_space=`$ECHO "$complete" | $GREP " "` 35778 if test "x$has_space" != x; then 35779 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 35780 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 35781 fi 35782 as_fn_error $? "Cannot locate the the path of CPP" "$LINENO" 5 35783 fi 35784 fi 35785 35786 # Now join together the path and the arguments once again 35787 if test "x$arguments" != xEOL; then 35788 new_complete="$new_path ${arguments% *}" 35789 else 35790 new_complete="$new_path" 35791 fi 35792 35793 if test "x$complete" != "x$new_complete"; then 35794 CPP="$new_complete" 35795 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting CPP to \"$new_complete\"" >&5 35796 $as_echo "$as_me: Rewriting CPP to \"$new_complete\"" >&6;} 35797 fi 35798 fi 35799 35800 ac_ext=cpp 35801 ac_cpp='$CXXCPP $CPPFLAGS' 35802 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 35803 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 35804 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 35805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5 35806 $as_echo_n "checking how to run the C++ preprocessor... " >&6; } 35807 if test -z "$CXXCPP"; then 35808 if ${ac_cv_prog_CXXCPP+:} false; then : 35809 $as_echo_n "(cached) " >&6 35810 else 35811 # Double quotes because CXXCPP needs to be expanded 35812 for CXXCPP in "$CXX -E" "/lib/cpp" 35813 do 35814 ac_preproc_ok=false 35815 for ac_cxx_preproc_warn_flag in '' yes 35816 do 35817 # Use a header file that comes with gcc, so configuring glibc 35818 # with a fresh cross-compiler works. 35819 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 35820 # <limits.h> exists even on freestanding compilers. 35821 # On the NeXT, cc -E runs the code through the compiler's parser, 35822 # not just through cpp. "Syntax error" is here to catch this case. 35823 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 35824 /* end confdefs.h. */ 35825 #ifdef __STDC__ 35826 # include <limits.h> 35827 #else 35828 # include <assert.h> 35829 #endif 35830 Syntax error 35831 _ACEOF 35832 if ac_fn_cxx_try_cpp "$LINENO"; then : 35833 35834 else 35835 # Broken: fails on valid input. 35836 continue 35837 fi 35838 rm -f conftest.err conftest.i conftest.$ac_ext 35839 35840 # OK, works on sane cases. Now check whether nonexistent headers 35841 # can be detected and how. 35842 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 35843 /* end confdefs.h. */ 35844 #include <ac_nonexistent.h> 35845 _ACEOF 35846 if ac_fn_cxx_try_cpp "$LINENO"; then : 35847 # Broken: success on invalid input. 35848 continue 35849 else 35850 # Passes both tests. 35851 ac_preproc_ok=: 35852 break 35853 fi 35854 rm -f conftest.err conftest.i conftest.$ac_ext 35855 35856 done 35857 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 35858 rm -f conftest.i conftest.err conftest.$ac_ext 35859 if $ac_preproc_ok; then : 35860 break 35861 fi 35862 35863 done 35864 ac_cv_prog_CXXCPP=$CXXCPP 35865 35866 fi 35867 CXXCPP=$ac_cv_prog_CXXCPP 35868 else 35869 ac_cv_prog_CXXCPP=$CXXCPP 35870 fi 35871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5 35872 $as_echo "$CXXCPP" >&6; } 35873 ac_preproc_ok=false 35874 for ac_cxx_preproc_warn_flag in '' yes 35875 do 35876 # Use a header file that comes with gcc, so configuring glibc 35877 # with a fresh cross-compiler works. 35878 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 35879 # <limits.h> exists even on freestanding compilers. 35880 # On the NeXT, cc -E runs the code through the compiler's parser, 35881 # not just through cpp. "Syntax error" is here to catch this case. 35882 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 35883 /* end confdefs.h. */ 35884 #ifdef __STDC__ 35885 # include <limits.h> 35886 #else 35887 # include <assert.h> 35888 #endif 35889 Syntax error 35890 _ACEOF 35891 if ac_fn_cxx_try_cpp "$LINENO"; then : 35892 35893 else 35894 # Broken: fails on valid input. 35895 continue 35896 fi 35897 rm -f conftest.err conftest.i conftest.$ac_ext 35898 35899 # OK, works on sane cases. Now check whether nonexistent headers 35900 # can be detected and how. 35901 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 35902 /* end confdefs.h. */ 35903 #include <ac_nonexistent.h> 35904 _ACEOF 35905 if ac_fn_cxx_try_cpp "$LINENO"; then : 35906 # Broken: success on invalid input. 35907 continue 35908 else 35909 # Passes both tests. 35910 ac_preproc_ok=: 35911 break 35912 fi 35913 rm -f conftest.err conftest.i conftest.$ac_ext 35914 35915 done 35916 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 35917 rm -f conftest.i conftest.err conftest.$ac_ext 35918 if $ac_preproc_ok; then : 35919 35920 else 35921 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 35922 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 35923 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check 35924 See \`config.log' for more details" "$LINENO" 5; } 35925 fi 35926 35927 ac_ext=cpp 35928 ac_cpp='$CXXCPP $CPPFLAGS' 35929 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 35930 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 35931 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 35932 35933 35934 # Only process if variable expands to non-empty 35935 35936 if test "x$CXXCPP" != x; then 35937 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 35938 35939 # First separate the path from the arguments. This will split at the first 35940 # space. 35941 complete="$CXXCPP" 35942 path="${complete%% *}" 35943 tmp="$complete EOL" 35944 arguments="${tmp#* }" 35945 35946 # Input might be given as Windows format, start by converting to 35947 # unix format. 35948 new_path=`$CYGPATH -u "$path"` 35949 35950 # Now try to locate executable using which 35951 new_path=`$WHICH "$new_path" 2> /dev/null` 35952 # bat and cmd files are not always considered executable in cygwin causing which 35953 # to not find them 35954 if test "x$new_path" = x \ 35955 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 35956 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 35957 new_path=`$CYGPATH -u "$path"` 35958 fi 35959 if test "x$new_path" = x; then 35960 # Oops. Which didn't find the executable. 35961 # The splitting of arguments from the executable at a space might have been incorrect, 35962 # since paths with space are more likely in Windows. Give it another try with the whole 35963 # argument. 35964 path="$complete" 35965 arguments="EOL" 35966 new_path=`$CYGPATH -u "$path"` 35967 new_path=`$WHICH "$new_path" 2> /dev/null` 35968 # bat and cmd files are not always considered executable in cygwin causing which 35969 # to not find them 35970 if test "x$new_path" = x \ 35971 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 35972 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 35973 new_path=`$CYGPATH -u "$path"` 35974 fi 35975 if test "x$new_path" = x; then 35976 # It's still not found. Now this is an unrecoverable error. 35977 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CXXCPP, which resolves as \"$complete\", is not found." >&5 35978 $as_echo "$as_me: The path of CXXCPP, which resolves as \"$complete\", is not found." >&6;} 35979 has_space=`$ECHO "$complete" | $GREP " "` 35980 if test "x$has_space" != x; then 35981 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 35982 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 35983 fi 35984 as_fn_error $? "Cannot locate the the path of CXXCPP" "$LINENO" 5 35985 fi 35986 fi 35987 35988 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 35989 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 35990 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 35991 # "foo.exe" is OK but "foo" is an error. 35992 # 35993 # This test is therefore slightly more accurate than "test -f" to check for file presence. 35994 # It is also a way to make sure we got the proper file name for the real test later on. 35995 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 35996 if test "x$test_shortpath" = x; then 35997 # Short path failed, file does not exist as specified. 35998 # Try adding .exe or .cmd 35999 if test -f "${new_path}.exe"; then 36000 input_to_shortpath="${new_path}.exe" 36001 elif test -f "${new_path}.cmd"; then 36002 input_to_shortpath="${new_path}.cmd" 36003 else 36004 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CXXCPP, which resolves as \"$new_path\", is invalid." >&5 36005 $as_echo "$as_me: The path of CXXCPP, which resolves as \"$new_path\", is invalid." >&6;} 36006 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 36007 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 36008 as_fn_error $? "Cannot locate the the path of CXXCPP" "$LINENO" 5 36009 fi 36010 else 36011 input_to_shortpath="$new_path" 36012 fi 36013 36014 # Call helper function which possibly converts this using DOS-style short mode. 36015 # If so, the updated path is stored in $new_path. 36016 new_path="$input_to_shortpath" 36017 36018 input_path="$input_to_shortpath" 36019 # Check if we need to convert this using DOS-style short mode. If the path 36020 # contains just simple characters, use it. Otherwise (spaces, weird characters), 36021 # take no chances and rewrite it. 36022 # Note: m4 eats our [], so we need to use [ and ] instead. 36023 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 36024 if test "x$has_forbidden_chars" != x; then 36025 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 36026 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 36027 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 36028 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 36029 # Going to short mode and back again did indeed matter. Since short mode is 36030 # case insensitive, let's make it lowercase to improve readability. 36031 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 36032 # Now convert it back to Unix-style (cygpath) 36033 input_path=`$CYGPATH -u "$shortmode_path"` 36034 new_path="$input_path" 36035 fi 36036 fi 36037 36038 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 36039 if test "x$test_cygdrive_prefix" = x; then 36040 # As a simple fix, exclude /usr/bin since it's not a real path. 36041 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 36042 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 36043 # a path prefixed by /cygdrive for fixpath to work. 36044 new_path="$CYGWIN_ROOT_PATH$input_path" 36045 fi 36046 fi 36047 36048 # remove trailing .exe if any 36049 new_path="${new_path/%.exe/}" 36050 36051 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 36052 36053 # First separate the path from the arguments. This will split at the first 36054 # space. 36055 complete="$CXXCPP" 36056 path="${complete%% *}" 36057 tmp="$complete EOL" 36058 arguments="${tmp#* }" 36059 36060 # Input might be given as Windows format, start by converting to 36061 # unix format. 36062 new_path="$path" 36063 36064 windows_path="$new_path" 36065 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 36066 unix_path=`$CYGPATH -u "$windows_path"` 36067 new_path="$unix_path" 36068 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 36069 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 36070 new_path="$unix_path" 36071 fi 36072 36073 36074 # Now try to locate executable using which 36075 new_path=`$WHICH "$new_path" 2> /dev/null` 36076 36077 if test "x$new_path" = x; then 36078 # Oops. Which didn't find the executable. 36079 # The splitting of arguments from the executable at a space might have been incorrect, 36080 # since paths with space are more likely in Windows. Give it another try with the whole 36081 # argument. 36082 path="$complete" 36083 arguments="EOL" 36084 new_path="$path" 36085 36086 windows_path="$new_path" 36087 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 36088 unix_path=`$CYGPATH -u "$windows_path"` 36089 new_path="$unix_path" 36090 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 36091 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 36092 new_path="$unix_path" 36093 fi 36094 36095 36096 new_path=`$WHICH "$new_path" 2> /dev/null` 36097 # bat and cmd files are not always considered executable in MSYS causing which 36098 # to not find them 36099 if test "x$new_path" = x \ 36100 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 36101 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 36102 new_path="$path" 36103 36104 windows_path="$new_path" 36105 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 36106 unix_path=`$CYGPATH -u "$windows_path"` 36107 new_path="$unix_path" 36108 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 36109 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 36110 new_path="$unix_path" 36111 fi 36112 36113 fi 36114 36115 if test "x$new_path" = x; then 36116 # It's still not found. Now this is an unrecoverable error. 36117 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CXXCPP, which resolves as \"$complete\", is not found." >&5 36118 $as_echo "$as_me: The path of CXXCPP, which resolves as \"$complete\", is not found." >&6;} 36119 has_space=`$ECHO "$complete" | $GREP " "` 36120 if test "x$has_space" != x; then 36121 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 36122 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 36123 fi 36124 as_fn_error $? "Cannot locate the the path of CXXCPP" "$LINENO" 5 36125 fi 36126 fi 36127 36128 # Now new_path has a complete unix path to the binary 36129 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 36130 # Keep paths in /bin as-is, but remove trailing .exe if any 36131 new_path="${new_path/%.exe/}" 36132 # Do not save /bin paths to all_fixpath_prefixes! 36133 else 36134 # Not in mixed or Windows style, start by that. 36135 new_path=`cmd //c echo $new_path` 36136 36137 input_path="$new_path" 36138 # Check if we need to convert this using DOS-style short mode. If the path 36139 # contains just simple characters, use it. Otherwise (spaces, weird characters), 36140 # take no chances and rewrite it. 36141 # Note: m4 eats our [], so we need to use [ and ] instead. 36142 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 36143 if test "x$has_forbidden_chars" != x; then 36144 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 36145 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 36146 fi 36147 36148 # Output is in $new_path 36149 36150 windows_path="$new_path" 36151 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 36152 unix_path=`$CYGPATH -u "$windows_path"` 36153 new_path="$unix_path" 36154 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 36155 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 36156 new_path="$unix_path" 36157 fi 36158 36159 # remove trailing .exe if any 36160 new_path="${new_path/%.exe/}" 36161 36162 # Save the first 10 bytes of this path to the storage, so fixpath can work. 36163 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 36164 fi 36165 36166 else 36167 # We're on a unix platform. Hooray! :) 36168 # First separate the path from the arguments. This will split at the first 36169 # space. 36170 complete="$CXXCPP" 36171 path="${complete%% *}" 36172 tmp="$complete EOL" 36173 arguments="${tmp#* }" 36174 36175 # Cannot rely on the command "which" here since it doesn't always work. 36176 is_absolute_path=`$ECHO "$path" | $GREP ^/` 36177 if test -z "$is_absolute_path"; then 36178 # Path to executable is not absolute. Find it. 36179 IFS_save="$IFS" 36180 IFS=: 36181 for p in $PATH; do 36182 if test -f "$p/$path" && test -x "$p/$path"; then 36183 new_path="$p/$path" 36184 break 36185 fi 36186 done 36187 IFS="$IFS_save" 36188 else 36189 # This is an absolute path, we can use it without further modifications. 36190 new_path="$path" 36191 fi 36192 36193 if test "x$new_path" = x; then 36194 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CXXCPP, which resolves as \"$complete\", is not found." >&5 36195 $as_echo "$as_me: The path of CXXCPP, which resolves as \"$complete\", is not found." >&6;} 36196 has_space=`$ECHO "$complete" | $GREP " "` 36197 if test "x$has_space" != x; then 36198 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 36199 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 36200 fi 36201 as_fn_error $? "Cannot locate the the path of CXXCPP" "$LINENO" 5 36202 fi 36203 fi 36204 36205 # Now join together the path and the arguments once again 36206 if test "x$arguments" != xEOL; then 36207 new_complete="$new_path ${arguments% *}" 36208 else 36209 new_complete="$new_path" 36210 fi 36211 36212 if test "x$complete" != "x$new_complete"; then 36213 CXXCPP="$new_complete" 36214 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting CXXCPP to \"$new_complete\"" >&5 36215 $as_echo "$as_me: Rewriting CXXCPP to \"$new_complete\"" >&6;} 36216 fi 36217 fi 36218 36219 36220 # 36221 # Setup the linker (LD) 36222 # 36223 if test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 36224 # In the Microsoft toolchain we have a separate LD command "link". 36225 # Make sure we reject /usr/bin/link (as determined in CYGWIN_LINK), which is 36226 # a cygwin program for something completely different. 36227 # Extract the first word of "link", so it can be a program name with args. 36228 set dummy link; ac_word=$2 36229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 36230 $as_echo_n "checking for $ac_word... " >&6; } 36231 if ${ac_cv_prog_LD+:} false; then : 36232 $as_echo_n "(cached) " >&6 36233 else 36234 if test -n "$LD"; then 36235 ac_cv_prog_LD="$LD" # Let the user override the test. 36236 else 36237 ac_prog_rejected=no 36238 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 36239 for as_dir in $PATH 36240 do 36241 IFS=$as_save_IFS 36242 test -z "$as_dir" && as_dir=. 36243 for ac_exec_ext in '' $ac_executable_extensions; do 36244 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 36245 if test "$as_dir/$ac_word$ac_exec_ext" = "$CYGWIN_LINK"; then 36246 ac_prog_rejected=yes 36247 continue 36248 fi 36249 ac_cv_prog_LD="link" 36250 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 36251 break 2 36252 fi 36253 done 36254 done 36255 IFS=$as_save_IFS 36256 36257 if test $ac_prog_rejected = yes; then 36258 # We found a bogon in the path, so make sure we never use it. 36259 set dummy $ac_cv_prog_LD 36260 shift 36261 if test $# != 0; then 36262 # We chose a different compiler from the bogus one. 36263 # However, it has the same basename, so the bogon will be chosen 36264 # first if we set LD to just the basename; use the full file name. 36265 shift 36266 ac_cv_prog_LD="$as_dir/$ac_word${1+' '}$@" 36267 fi 36268 fi 36269 fi 36270 fi 36271 LD=$ac_cv_prog_LD 36272 if test -n "$LD"; then 36273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 36274 $as_echo "$LD" >&6; } 36275 else 36276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 36277 $as_echo "no" >&6; } 36278 fi 36279 36280 36281 36282 # Only process if variable expands to non-empty 36283 36284 if test "x$LD" != x; then 36285 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 36286 36287 # First separate the path from the arguments. This will split at the first 36288 # space. 36289 complete="$LD" 36290 path="${complete%% *}" 36291 tmp="$complete EOL" 36292 arguments="${tmp#* }" 36293 36294 # Input might be given as Windows format, start by converting to 36295 # unix format. 36296 new_path=`$CYGPATH -u "$path"` 36297 36298 # Now try to locate executable using which 36299 new_path=`$WHICH "$new_path" 2> /dev/null` 36300 # bat and cmd files are not always considered executable in cygwin causing which 36301 # to not find them 36302 if test "x$new_path" = x \ 36303 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 36304 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 36305 new_path=`$CYGPATH -u "$path"` 36306 fi 36307 if test "x$new_path" = x; then 36308 # Oops. Which didn't find the executable. 36309 # The splitting of arguments from the executable at a space might have been incorrect, 36310 # since paths with space are more likely in Windows. Give it another try with the whole 36311 # argument. 36312 path="$complete" 36313 arguments="EOL" 36314 new_path=`$CYGPATH -u "$path"` 36315 new_path=`$WHICH "$new_path" 2> /dev/null` 36316 # bat and cmd files are not always considered executable in cygwin causing which 36317 # to not find them 36318 if test "x$new_path" = x \ 36319 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 36320 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 36321 new_path=`$CYGPATH -u "$path"` 36322 fi 36323 if test "x$new_path" = x; then 36324 # It's still not found. Now this is an unrecoverable error. 36325 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of LD, which resolves as \"$complete\", is not found." >&5 36326 $as_echo "$as_me: The path of LD, which resolves as \"$complete\", is not found." >&6;} 36327 has_space=`$ECHO "$complete" | $GREP " "` 36328 if test "x$has_space" != x; then 36329 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 36330 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 36331 fi 36332 as_fn_error $? "Cannot locate the the path of LD" "$LINENO" 5 36333 fi 36334 fi 36335 36336 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 36337 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 36338 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 36339 # "foo.exe" is OK but "foo" is an error. 36340 # 36341 # This test is therefore slightly more accurate than "test -f" to check for file presence. 36342 # It is also a way to make sure we got the proper file name for the real test later on. 36343 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 36344 if test "x$test_shortpath" = x; then 36345 # Short path failed, file does not exist as specified. 36346 # Try adding .exe or .cmd 36347 if test -f "${new_path}.exe"; then 36348 input_to_shortpath="${new_path}.exe" 36349 elif test -f "${new_path}.cmd"; then 36350 input_to_shortpath="${new_path}.cmd" 36351 else 36352 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of LD, which resolves as \"$new_path\", is invalid." >&5 36353 $as_echo "$as_me: The path of LD, which resolves as \"$new_path\", is invalid." >&6;} 36354 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 36355 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 36356 as_fn_error $? "Cannot locate the the path of LD" "$LINENO" 5 36357 fi 36358 else 36359 input_to_shortpath="$new_path" 36360 fi 36361 36362 # Call helper function which possibly converts this using DOS-style short mode. 36363 # If so, the updated path is stored in $new_path. 36364 new_path="$input_to_shortpath" 36365 36366 input_path="$input_to_shortpath" 36367 # Check if we need to convert this using DOS-style short mode. If the path 36368 # contains just simple characters, use it. Otherwise (spaces, weird characters), 36369 # take no chances and rewrite it. 36370 # Note: m4 eats our [], so we need to use [ and ] instead. 36371 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 36372 if test "x$has_forbidden_chars" != x; then 36373 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 36374 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 36375 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 36376 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 36377 # Going to short mode and back again did indeed matter. Since short mode is 36378 # case insensitive, let's make it lowercase to improve readability. 36379 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 36380 # Now convert it back to Unix-style (cygpath) 36381 input_path=`$CYGPATH -u "$shortmode_path"` 36382 new_path="$input_path" 36383 fi 36384 fi 36385 36386 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 36387 if test "x$test_cygdrive_prefix" = x; then 36388 # As a simple fix, exclude /usr/bin since it's not a real path. 36389 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 36390 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 36391 # a path prefixed by /cygdrive for fixpath to work. 36392 new_path="$CYGWIN_ROOT_PATH$input_path" 36393 fi 36394 fi 36395 36396 # remove trailing .exe if any 36397 new_path="${new_path/%.exe/}" 36398 36399 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 36400 36401 # First separate the path from the arguments. This will split at the first 36402 # space. 36403 complete="$LD" 36404 path="${complete%% *}" 36405 tmp="$complete EOL" 36406 arguments="${tmp#* }" 36407 36408 # Input might be given as Windows format, start by converting to 36409 # unix format. 36410 new_path="$path" 36411 36412 windows_path="$new_path" 36413 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 36414 unix_path=`$CYGPATH -u "$windows_path"` 36415 new_path="$unix_path" 36416 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 36417 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 36418 new_path="$unix_path" 36419 fi 36420 36421 36422 # Now try to locate executable using which 36423 new_path=`$WHICH "$new_path" 2> /dev/null` 36424 36425 if test "x$new_path" = x; then 36426 # Oops. Which didn't find the executable. 36427 # The splitting of arguments from the executable at a space might have been incorrect, 36428 # since paths with space are more likely in Windows. Give it another try with the whole 36429 # argument. 36430 path="$complete" 36431 arguments="EOL" 36432 new_path="$path" 36433 36434 windows_path="$new_path" 36435 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 36436 unix_path=`$CYGPATH -u "$windows_path"` 36437 new_path="$unix_path" 36438 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 36439 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 36440 new_path="$unix_path" 36441 fi 36442 36443 36444 new_path=`$WHICH "$new_path" 2> /dev/null` 36445 # bat and cmd files are not always considered executable in MSYS causing which 36446 # to not find them 36447 if test "x$new_path" = x \ 36448 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 36449 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 36450 new_path="$path" 36451 36452 windows_path="$new_path" 36453 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 36454 unix_path=`$CYGPATH -u "$windows_path"` 36455 new_path="$unix_path" 36456 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 36457 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 36458 new_path="$unix_path" 36459 fi 36460 36461 fi 36462 36463 if test "x$new_path" = x; then 36464 # It's still not found. Now this is an unrecoverable error. 36465 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of LD, which resolves as \"$complete\", is not found." >&5 36466 $as_echo "$as_me: The path of LD, which resolves as \"$complete\", is not found." >&6;} 36467 has_space=`$ECHO "$complete" | $GREP " "` 36468 if test "x$has_space" != x; then 36469 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 36470 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 36471 fi 36472 as_fn_error $? "Cannot locate the the path of LD" "$LINENO" 5 36473 fi 36474 fi 36475 36476 # Now new_path has a complete unix path to the binary 36477 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 36478 # Keep paths in /bin as-is, but remove trailing .exe if any 36479 new_path="${new_path/%.exe/}" 36480 # Do not save /bin paths to all_fixpath_prefixes! 36481 else 36482 # Not in mixed or Windows style, start by that. 36483 new_path=`cmd //c echo $new_path` 36484 36485 input_path="$new_path" 36486 # Check if we need to convert this using DOS-style short mode. If the path 36487 # contains just simple characters, use it. Otherwise (spaces, weird characters), 36488 # take no chances and rewrite it. 36489 # Note: m4 eats our [], so we need to use [ and ] instead. 36490 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 36491 if test "x$has_forbidden_chars" != x; then 36492 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 36493 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 36494 fi 36495 36496 # Output is in $new_path 36497 36498 windows_path="$new_path" 36499 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 36500 unix_path=`$CYGPATH -u "$windows_path"` 36501 new_path="$unix_path" 36502 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 36503 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 36504 new_path="$unix_path" 36505 fi 36506 36507 # remove trailing .exe if any 36508 new_path="${new_path/%.exe/}" 36509 36510 # Save the first 10 bytes of this path to the storage, so fixpath can work. 36511 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 36512 fi 36513 36514 else 36515 # We're on a unix platform. Hooray! :) 36516 # First separate the path from the arguments. This will split at the first 36517 # space. 36518 complete="$LD" 36519 path="${complete%% *}" 36520 tmp="$complete EOL" 36521 arguments="${tmp#* }" 36522 36523 # Cannot rely on the command "which" here since it doesn't always work. 36524 is_absolute_path=`$ECHO "$path" | $GREP ^/` 36525 if test -z "$is_absolute_path"; then 36526 # Path to executable is not absolute. Find it. 36527 IFS_save="$IFS" 36528 IFS=: 36529 for p in $PATH; do 36530 if test -f "$p/$path" && test -x "$p/$path"; then 36531 new_path="$p/$path" 36532 break 36533 fi 36534 done 36535 IFS="$IFS_save" 36536 else 36537 # This is an absolute path, we can use it without further modifications. 36538 new_path="$path" 36539 fi 36540 36541 if test "x$new_path" = x; then 36542 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of LD, which resolves as \"$complete\", is not found." >&5 36543 $as_echo "$as_me: The path of LD, which resolves as \"$complete\", is not found." >&6;} 36544 has_space=`$ECHO "$complete" | $GREP " "` 36545 if test "x$has_space" != x; then 36546 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 36547 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 36548 fi 36549 as_fn_error $? "Cannot locate the the path of LD" "$LINENO" 5 36550 fi 36551 fi 36552 36553 # Now join together the path and the arguments once again 36554 if test "x$arguments" != xEOL; then 36555 new_complete="$new_path ${arguments% *}" 36556 else 36557 new_complete="$new_path" 36558 fi 36559 36560 if test "x$complete" != "x$new_complete"; then 36561 LD="$new_complete" 36562 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting LD to \"$new_complete\"" >&5 36563 $as_echo "$as_me: Rewriting LD to \"$new_complete\"" >&6;} 36564 fi 36565 fi 36566 36567 # Verify that we indeed succeeded with this trick. 36568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the found link.exe is actually the Visual Studio linker" >&5 36569 $as_echo_n "checking if the found link.exe is actually the Visual Studio linker... " >&6; } 36570 "$LD" --version > /dev/null 36571 if test $? -eq 0 ; then 36572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 36573 $as_echo "no" >&6; } 36574 as_fn_error $? "This is the Cygwin link tool. Please check your PATH and rerun configure." "$LINENO" 5 36575 else 36576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 36577 $as_echo "yes" >&6; } 36578 fi 36579 LDCXX="$LD" 36580 else 36581 # All other toolchains use the compiler to link. 36582 LD="$CC" 36583 LDCXX="$CXX" 36584 fi 36585 36586 # FIXME: it should be CXXLD, according to standard (cf CXXCPP) 36587 36588 36589 # 36590 # Setup the assembler (AS) 36591 # 36592 if test "x$OPENJDK_TARGET_OS" = xsolaris; then 36593 36594 36595 # Publish this variable in the help. 36596 36597 36598 if [ -z "${AS+x}" ]; then 36599 # The variable is not set by user, try to locate tool using the code snippet 36600 for ac_prog in as 36601 do 36602 # Extract the first word of "$ac_prog", so it can be a program name with args. 36603 set dummy $ac_prog; ac_word=$2 36604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 36605 $as_echo_n "checking for $ac_word... " >&6; } 36606 if ${ac_cv_path_AS+:} false; then : 36607 $as_echo_n "(cached) " >&6 36608 else 36609 case $AS in 36610 [\\/]* | ?:[\\/]*) 36611 ac_cv_path_AS="$AS" # Let the user override the test with a path. 36612 ;; 36613 *) 36614 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 36615 for as_dir in $PATH 36616 do 36617 IFS=$as_save_IFS 36618 test -z "$as_dir" && as_dir=. 36619 for ac_exec_ext in '' $ac_executable_extensions; do 36620 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 36621 ac_cv_path_AS="$as_dir/$ac_word$ac_exec_ext" 36622 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 36623 break 2 36624 fi 36625 done 36626 done 36627 IFS=$as_save_IFS 36628 36629 ;; 36630 esac 36631 fi 36632 AS=$ac_cv_path_AS 36633 if test -n "$AS"; then 36634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5 36635 $as_echo "$AS" >&6; } 36636 else 36637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 36638 $as_echo "no" >&6; } 36639 fi 36640 36641 36642 test -n "$AS" && break 36643 done 36644 36645 else 36646 # The variable is set, but is it from the command line or the environment? 36647 36648 # Try to remove the string !AS! from our list. 36649 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!AS!/} 36650 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 36651 # If it failed, the variable was not from the command line. Ignore it, 36652 # but warn the user (except for BASH, which is always set by the calling BASH). 36653 if test "xAS" != xBASH; then 36654 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of AS from the environment. Use command line variables instead." >&5 36655 $as_echo "$as_me: WARNING: Ignoring value of AS from the environment. Use command line variables instead." >&2;} 36656 fi 36657 # Try to locate tool using the code snippet 36658 for ac_prog in as 36659 do 36660 # Extract the first word of "$ac_prog", so it can be a program name with args. 36661 set dummy $ac_prog; ac_word=$2 36662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 36663 $as_echo_n "checking for $ac_word... " >&6; } 36664 if ${ac_cv_path_AS+:} false; then : 36665 $as_echo_n "(cached) " >&6 36666 else 36667 case $AS in 36668 [\\/]* | ?:[\\/]*) 36669 ac_cv_path_AS="$AS" # Let the user override the test with a path. 36670 ;; 36671 *) 36672 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 36673 for as_dir in $PATH 36674 do 36675 IFS=$as_save_IFS 36676 test -z "$as_dir" && as_dir=. 36677 for ac_exec_ext in '' $ac_executable_extensions; do 36678 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 36679 ac_cv_path_AS="$as_dir/$ac_word$ac_exec_ext" 36680 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 36681 break 2 36682 fi 36683 done 36684 done 36685 IFS=$as_save_IFS 36686 36687 ;; 36688 esac 36689 fi 36690 AS=$ac_cv_path_AS 36691 if test -n "$AS"; then 36692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5 36693 $as_echo "$AS" >&6; } 36694 else 36695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 36696 $as_echo "no" >&6; } 36697 fi 36698 36699 36700 test -n "$AS" && break 36701 done 36702 36703 else 36704 # If it succeeded, then it was overridden by the user. We will use it 36705 # for the tool. 36706 36707 # First remove it from the list of overridden variables, so we can test 36708 # for unknown variables in the end. 36709 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 36710 36711 # Check if we try to supply an empty value 36712 if test "x$AS" = x; then 36713 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool AS= (no value)" >&5 36714 $as_echo "$as_me: Setting user supplied tool AS= (no value)" >&6;} 36715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AS" >&5 36716 $as_echo_n "checking for AS... " >&6; } 36717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 36718 $as_echo "disabled" >&6; } 36719 else 36720 # Check if the provided tool contains a complete path. 36721 tool_specified="$AS" 36722 tool_basename="${tool_specified##*/}" 36723 if test "x$tool_basename" = "x$tool_specified"; then 36724 # A command without a complete path is provided, search $PATH. 36725 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool AS=$tool_basename" >&5 36726 $as_echo "$as_me: Will search for user supplied tool AS=$tool_basename" >&6;} 36727 # Extract the first word of "$tool_basename", so it can be a program name with args. 36728 set dummy $tool_basename; ac_word=$2 36729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 36730 $as_echo_n "checking for $ac_word... " >&6; } 36731 if ${ac_cv_path_AS+:} false; then : 36732 $as_echo_n "(cached) " >&6 36733 else 36734 case $AS in 36735 [\\/]* | ?:[\\/]*) 36736 ac_cv_path_AS="$AS" # Let the user override the test with a path. 36737 ;; 36738 *) 36739 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 36740 for as_dir in $PATH 36741 do 36742 IFS=$as_save_IFS 36743 test -z "$as_dir" && as_dir=. 36744 for ac_exec_ext in '' $ac_executable_extensions; do 36745 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 36746 ac_cv_path_AS="$as_dir/$ac_word$ac_exec_ext" 36747 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 36748 break 2 36749 fi 36750 done 36751 done 36752 IFS=$as_save_IFS 36753 36754 ;; 36755 esac 36756 fi 36757 AS=$ac_cv_path_AS 36758 if test -n "$AS"; then 36759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5 36760 $as_echo "$AS" >&6; } 36761 else 36762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 36763 $as_echo "no" >&6; } 36764 fi 36765 36766 36767 if test "x$AS" = x; then 36768 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 36769 fi 36770 else 36771 # Otherwise we believe it is a complete path. Use it as it is. 36772 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool AS=$tool_specified" >&5 36773 $as_echo "$as_me: Will use user supplied tool AS=$tool_specified" >&6;} 36774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AS" >&5 36775 $as_echo_n "checking for AS... " >&6; } 36776 if test ! -x "$tool_specified"; then 36777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 36778 $as_echo "not found" >&6; } 36779 as_fn_error $? "User supplied tool AS=$tool_specified does not exist or is not executable" "$LINENO" 5 36780 fi 36781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 36782 $as_echo "$tool_specified" >&6; } 36783 fi 36784 fi 36785 fi 36786 36787 fi 36788 36789 36790 36791 # Only process if variable expands to non-empty 36792 36793 if test "x$AS" != x; then 36794 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 36795 36796 # First separate the path from the arguments. This will split at the first 36797 # space. 36798 complete="$AS" 36799 path="${complete%% *}" 36800 tmp="$complete EOL" 36801 arguments="${tmp#* }" 36802 36803 # Input might be given as Windows format, start by converting to 36804 # unix format. 36805 new_path=`$CYGPATH -u "$path"` 36806 36807 # Now try to locate executable using which 36808 new_path=`$WHICH "$new_path" 2> /dev/null` 36809 # bat and cmd files are not always considered executable in cygwin causing which 36810 # to not find them 36811 if test "x$new_path" = x \ 36812 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 36813 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 36814 new_path=`$CYGPATH -u "$path"` 36815 fi 36816 if test "x$new_path" = x; then 36817 # Oops. Which didn't find the executable. 36818 # The splitting of arguments from the executable at a space might have been incorrect, 36819 # since paths with space are more likely in Windows. Give it another try with the whole 36820 # argument. 36821 path="$complete" 36822 arguments="EOL" 36823 new_path=`$CYGPATH -u "$path"` 36824 new_path=`$WHICH "$new_path" 2> /dev/null` 36825 # bat and cmd files are not always considered executable in cygwin causing which 36826 # to not find them 36827 if test "x$new_path" = x \ 36828 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 36829 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 36830 new_path=`$CYGPATH -u "$path"` 36831 fi 36832 if test "x$new_path" = x; then 36833 # It's still not found. Now this is an unrecoverable error. 36834 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of AS, which resolves as \"$complete\", is not found." >&5 36835 $as_echo "$as_me: The path of AS, which resolves as \"$complete\", is not found." >&6;} 36836 has_space=`$ECHO "$complete" | $GREP " "` 36837 if test "x$has_space" != x; then 36838 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 36839 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 36840 fi 36841 as_fn_error $? "Cannot locate the the path of AS" "$LINENO" 5 36842 fi 36843 fi 36844 36845 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 36846 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 36847 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 36848 # "foo.exe" is OK but "foo" is an error. 36849 # 36850 # This test is therefore slightly more accurate than "test -f" to check for file presence. 36851 # It is also a way to make sure we got the proper file name for the real test later on. 36852 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 36853 if test "x$test_shortpath" = x; then 36854 # Short path failed, file does not exist as specified. 36855 # Try adding .exe or .cmd 36856 if test -f "${new_path}.exe"; then 36857 input_to_shortpath="${new_path}.exe" 36858 elif test -f "${new_path}.cmd"; then 36859 input_to_shortpath="${new_path}.cmd" 36860 else 36861 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of AS, which resolves as \"$new_path\", is invalid." >&5 36862 $as_echo "$as_me: The path of AS, which resolves as \"$new_path\", is invalid." >&6;} 36863 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 36864 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 36865 as_fn_error $? "Cannot locate the the path of AS" "$LINENO" 5 36866 fi 36867 else 36868 input_to_shortpath="$new_path" 36869 fi 36870 36871 # Call helper function which possibly converts this using DOS-style short mode. 36872 # If so, the updated path is stored in $new_path. 36873 new_path="$input_to_shortpath" 36874 36875 input_path="$input_to_shortpath" 36876 # Check if we need to convert this using DOS-style short mode. If the path 36877 # contains just simple characters, use it. Otherwise (spaces, weird characters), 36878 # take no chances and rewrite it. 36879 # Note: m4 eats our [], so we need to use [ and ] instead. 36880 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 36881 if test "x$has_forbidden_chars" != x; then 36882 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 36883 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 36884 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 36885 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 36886 # Going to short mode and back again did indeed matter. Since short mode is 36887 # case insensitive, let's make it lowercase to improve readability. 36888 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 36889 # Now convert it back to Unix-style (cygpath) 36890 input_path=`$CYGPATH -u "$shortmode_path"` 36891 new_path="$input_path" 36892 fi 36893 fi 36894 36895 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 36896 if test "x$test_cygdrive_prefix" = x; then 36897 # As a simple fix, exclude /usr/bin since it's not a real path. 36898 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 36899 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 36900 # a path prefixed by /cygdrive for fixpath to work. 36901 new_path="$CYGWIN_ROOT_PATH$input_path" 36902 fi 36903 fi 36904 36905 # remove trailing .exe if any 36906 new_path="${new_path/%.exe/}" 36907 36908 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 36909 36910 # First separate the path from the arguments. This will split at the first 36911 # space. 36912 complete="$AS" 36913 path="${complete%% *}" 36914 tmp="$complete EOL" 36915 arguments="${tmp#* }" 36916 36917 # Input might be given as Windows format, start by converting to 36918 # unix format. 36919 new_path="$path" 36920 36921 windows_path="$new_path" 36922 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 36923 unix_path=`$CYGPATH -u "$windows_path"` 36924 new_path="$unix_path" 36925 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 36926 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 36927 new_path="$unix_path" 36928 fi 36929 36930 36931 # Now try to locate executable using which 36932 new_path=`$WHICH "$new_path" 2> /dev/null` 36933 36934 if test "x$new_path" = x; then 36935 # Oops. Which didn't find the executable. 36936 # The splitting of arguments from the executable at a space might have been incorrect, 36937 # since paths with space are more likely in Windows. Give it another try with the whole 36938 # argument. 36939 path="$complete" 36940 arguments="EOL" 36941 new_path="$path" 36942 36943 windows_path="$new_path" 36944 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 36945 unix_path=`$CYGPATH -u "$windows_path"` 36946 new_path="$unix_path" 36947 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 36948 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 36949 new_path="$unix_path" 36950 fi 36951 36952 36953 new_path=`$WHICH "$new_path" 2> /dev/null` 36954 # bat and cmd files are not always considered executable in MSYS causing which 36955 # to not find them 36956 if test "x$new_path" = x \ 36957 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 36958 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 36959 new_path="$path" 36960 36961 windows_path="$new_path" 36962 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 36963 unix_path=`$CYGPATH -u "$windows_path"` 36964 new_path="$unix_path" 36965 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 36966 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 36967 new_path="$unix_path" 36968 fi 36969 36970 fi 36971 36972 if test "x$new_path" = x; then 36973 # It's still not found. Now this is an unrecoverable error. 36974 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of AS, which resolves as \"$complete\", is not found." >&5 36975 $as_echo "$as_me: The path of AS, which resolves as \"$complete\", is not found." >&6;} 36976 has_space=`$ECHO "$complete" | $GREP " "` 36977 if test "x$has_space" != x; then 36978 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 36979 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 36980 fi 36981 as_fn_error $? "Cannot locate the the path of AS" "$LINENO" 5 36982 fi 36983 fi 36984 36985 # Now new_path has a complete unix path to the binary 36986 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 36987 # Keep paths in /bin as-is, but remove trailing .exe if any 36988 new_path="${new_path/%.exe/}" 36989 # Do not save /bin paths to all_fixpath_prefixes! 36990 else 36991 # Not in mixed or Windows style, start by that. 36992 new_path=`cmd //c echo $new_path` 36993 36994 input_path="$new_path" 36995 # Check if we need to convert this using DOS-style short mode. If the path 36996 # contains just simple characters, use it. Otherwise (spaces, weird characters), 36997 # take no chances and rewrite it. 36998 # Note: m4 eats our [], so we need to use [ and ] instead. 36999 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 37000 if test "x$has_forbidden_chars" != x; then 37001 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 37002 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 37003 fi 37004 37005 # Output is in $new_path 37006 37007 windows_path="$new_path" 37008 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 37009 unix_path=`$CYGPATH -u "$windows_path"` 37010 new_path="$unix_path" 37011 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 37012 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 37013 new_path="$unix_path" 37014 fi 37015 37016 # remove trailing .exe if any 37017 new_path="${new_path/%.exe/}" 37018 37019 # Save the first 10 bytes of this path to the storage, so fixpath can work. 37020 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 37021 fi 37022 37023 else 37024 # We're on a unix platform. Hooray! :) 37025 # First separate the path from the arguments. This will split at the first 37026 # space. 37027 complete="$AS" 37028 path="${complete%% *}" 37029 tmp="$complete EOL" 37030 arguments="${tmp#* }" 37031 37032 # Cannot rely on the command "which" here since it doesn't always work. 37033 is_absolute_path=`$ECHO "$path" | $GREP ^/` 37034 if test -z "$is_absolute_path"; then 37035 # Path to executable is not absolute. Find it. 37036 IFS_save="$IFS" 37037 IFS=: 37038 for p in $PATH; do 37039 if test -f "$p/$path" && test -x "$p/$path"; then 37040 new_path="$p/$path" 37041 break 37042 fi 37043 done 37044 IFS="$IFS_save" 37045 else 37046 # This is an absolute path, we can use it without further modifications. 37047 new_path="$path" 37048 fi 37049 37050 if test "x$new_path" = x; then 37051 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of AS, which resolves as \"$complete\", is not found." >&5 37052 $as_echo "$as_me: The path of AS, which resolves as \"$complete\", is not found." >&6;} 37053 has_space=`$ECHO "$complete" | $GREP " "` 37054 if test "x$has_space" != x; then 37055 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 37056 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 37057 fi 37058 as_fn_error $? "Cannot locate the the path of AS" "$LINENO" 5 37059 fi 37060 fi 37061 37062 # Now join together the path and the arguments once again 37063 if test "x$arguments" != xEOL; then 37064 new_complete="$new_path ${arguments% *}" 37065 else 37066 new_complete="$new_path" 37067 fi 37068 37069 if test "x$complete" != "x$new_complete"; then 37070 AS="$new_complete" 37071 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting AS to \"$new_complete\"" >&5 37072 $as_echo "$as_me: Rewriting AS to \"$new_complete\"" >&6;} 37073 fi 37074 fi 37075 37076 if test "x$AS" = x; then 37077 as_fn_error $? "Solaris assembler (as) is required. Please install via \"pkg install pkg:/developer/assembler\"." "$LINENO" 5 37078 fi 37079 else 37080 # FIXME: is this correct for microsoft? 37081 AS="$CC -c" 37082 fi 37083 37084 37085 # 37086 # Setup the archiver (AR) 37087 # 37088 if test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 37089 # The corresponding ar tool is lib.exe (used to create static libraries) 37090 # Extract the first word of "lib", so it can be a program name with args. 37091 set dummy lib; ac_word=$2 37092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 37093 $as_echo_n "checking for $ac_word... " >&6; } 37094 if ${ac_cv_prog_AR+:} false; then : 37095 $as_echo_n "(cached) " >&6 37096 else 37097 if test -n "$AR"; then 37098 ac_cv_prog_AR="$AR" # Let the user override the test. 37099 else 37100 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 37101 for as_dir in $PATH 37102 do 37103 IFS=$as_save_IFS 37104 test -z "$as_dir" && as_dir=. 37105 for ac_exec_ext in '' $ac_executable_extensions; do 37106 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 37107 ac_cv_prog_AR="lib" 37108 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 37109 break 2 37110 fi 37111 done 37112 done 37113 IFS=$as_save_IFS 37114 37115 fi 37116 fi 37117 AR=$ac_cv_prog_AR 37118 if test -n "$AR"; then 37119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 37120 $as_echo "$AR" >&6; } 37121 else 37122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 37123 $as_echo "no" >&6; } 37124 fi 37125 37126 37127 elif test "x$TOOLCHAIN_TYPE" = xgcc; then 37128 37129 37130 # Publish this variable in the help. 37131 37132 37133 if [ -z "${AR+x}" ]; then 37134 # The variable is not set by user, try to locate tool using the code snippet 37135 if test -n "$ac_tool_prefix"; then 37136 for ac_prog in ar gcc-ar 37137 do 37138 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 37139 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 37140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 37141 $as_echo_n "checking for $ac_word... " >&6; } 37142 if ${ac_cv_prog_AR+:} false; then : 37143 $as_echo_n "(cached) " >&6 37144 else 37145 if test -n "$AR"; then 37146 ac_cv_prog_AR="$AR" # Let the user override the test. 37147 else 37148 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 37149 for as_dir in $PATH 37150 do 37151 IFS=$as_save_IFS 37152 test -z "$as_dir" && as_dir=. 37153 for ac_exec_ext in '' $ac_executable_extensions; do 37154 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 37155 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 37156 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 37157 break 2 37158 fi 37159 done 37160 done 37161 IFS=$as_save_IFS 37162 37163 fi 37164 fi 37165 AR=$ac_cv_prog_AR 37166 if test -n "$AR"; then 37167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 37168 $as_echo "$AR" >&6; } 37169 else 37170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 37171 $as_echo "no" >&6; } 37172 fi 37173 37174 37175 test -n "$AR" && break 37176 done 37177 fi 37178 if test -z "$AR"; then 37179 ac_ct_AR=$AR 37180 for ac_prog in ar gcc-ar 37181 do 37182 # Extract the first word of "$ac_prog", so it can be a program name with args. 37183 set dummy $ac_prog; ac_word=$2 37184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 37185 $as_echo_n "checking for $ac_word... " >&6; } 37186 if ${ac_cv_prog_ac_ct_AR+:} false; then : 37187 $as_echo_n "(cached) " >&6 37188 else 37189 if test -n "$ac_ct_AR"; then 37190 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 37191 else 37192 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 37193 for as_dir in $PATH 37194 do 37195 IFS=$as_save_IFS 37196 test -z "$as_dir" && as_dir=. 37197 for ac_exec_ext in '' $ac_executable_extensions; do 37198 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 37199 ac_cv_prog_ac_ct_AR="$ac_prog" 37200 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 37201 break 2 37202 fi 37203 done 37204 done 37205 IFS=$as_save_IFS 37206 37207 fi 37208 fi 37209 ac_ct_AR=$ac_cv_prog_ac_ct_AR 37210 if test -n "$ac_ct_AR"; then 37211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 37212 $as_echo "$ac_ct_AR" >&6; } 37213 else 37214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 37215 $as_echo "no" >&6; } 37216 fi 37217 37218 37219 test -n "$ac_ct_AR" && break 37220 done 37221 37222 if test "x$ac_ct_AR" = x; then 37223 AR="" 37224 else 37225 case $cross_compiling:$ac_tool_warned in 37226 yes:) 37227 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 37228 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 37229 ac_tool_warned=yes ;; 37230 esac 37231 AR=$ac_ct_AR 37232 fi 37233 fi 37234 37235 else 37236 # The variable is set, but is it from the command line or the environment? 37237 37238 # Try to remove the string !AR! from our list. 37239 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!AR!/} 37240 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 37241 # If it failed, the variable was not from the command line. Ignore it, 37242 # but warn the user (except for BASH, which is always set by the calling BASH). 37243 if test "xAR" != xBASH; then 37244 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of AR from the environment. Use command line variables instead." >&5 37245 $as_echo "$as_me: WARNING: Ignoring value of AR from the environment. Use command line variables instead." >&2;} 37246 fi 37247 # Try to locate tool using the code snippet 37248 if test -n "$ac_tool_prefix"; then 37249 for ac_prog in ar gcc-ar 37250 do 37251 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 37252 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 37253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 37254 $as_echo_n "checking for $ac_word... " >&6; } 37255 if ${ac_cv_prog_AR+:} false; then : 37256 $as_echo_n "(cached) " >&6 37257 else 37258 if test -n "$AR"; then 37259 ac_cv_prog_AR="$AR" # Let the user override the test. 37260 else 37261 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 37262 for as_dir in $PATH 37263 do 37264 IFS=$as_save_IFS 37265 test -z "$as_dir" && as_dir=. 37266 for ac_exec_ext in '' $ac_executable_extensions; do 37267 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 37268 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 37269 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 37270 break 2 37271 fi 37272 done 37273 done 37274 IFS=$as_save_IFS 37275 37276 fi 37277 fi 37278 AR=$ac_cv_prog_AR 37279 if test -n "$AR"; then 37280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 37281 $as_echo "$AR" >&6; } 37282 else 37283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 37284 $as_echo "no" >&6; } 37285 fi 37286 37287 37288 test -n "$AR" && break 37289 done 37290 fi 37291 if test -z "$AR"; then 37292 ac_ct_AR=$AR 37293 for ac_prog in ar gcc-ar 37294 do 37295 # Extract the first word of "$ac_prog", so it can be a program name with args. 37296 set dummy $ac_prog; ac_word=$2 37297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 37298 $as_echo_n "checking for $ac_word... " >&6; } 37299 if ${ac_cv_prog_ac_ct_AR+:} false; then : 37300 $as_echo_n "(cached) " >&6 37301 else 37302 if test -n "$ac_ct_AR"; then 37303 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 37304 else 37305 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 37306 for as_dir in $PATH 37307 do 37308 IFS=$as_save_IFS 37309 test -z "$as_dir" && as_dir=. 37310 for ac_exec_ext in '' $ac_executable_extensions; do 37311 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 37312 ac_cv_prog_ac_ct_AR="$ac_prog" 37313 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 37314 break 2 37315 fi 37316 done 37317 done 37318 IFS=$as_save_IFS 37319 37320 fi 37321 fi 37322 ac_ct_AR=$ac_cv_prog_ac_ct_AR 37323 if test -n "$ac_ct_AR"; then 37324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 37325 $as_echo "$ac_ct_AR" >&6; } 37326 else 37327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 37328 $as_echo "no" >&6; } 37329 fi 37330 37331 37332 test -n "$ac_ct_AR" && break 37333 done 37334 37335 if test "x$ac_ct_AR" = x; then 37336 AR="" 37337 else 37338 case $cross_compiling:$ac_tool_warned in 37339 yes:) 37340 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 37341 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 37342 ac_tool_warned=yes ;; 37343 esac 37344 AR=$ac_ct_AR 37345 fi 37346 fi 37347 37348 else 37349 # If it succeeded, then it was overridden by the user. We will use it 37350 # for the tool. 37351 37352 # First remove it from the list of overridden variables, so we can test 37353 # for unknown variables in the end. 37354 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 37355 37356 # Check if we try to supply an empty value 37357 if test "x$AR" = x; then 37358 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool AR= (no value)" >&5 37359 $as_echo "$as_me: Setting user supplied tool AR= (no value)" >&6;} 37360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AR" >&5 37361 $as_echo_n "checking for AR... " >&6; } 37362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 37363 $as_echo "disabled" >&6; } 37364 else 37365 # Check if the provided tool contains a complete path. 37366 tool_specified="$AR" 37367 tool_basename="${tool_specified##*/}" 37368 if test "x$tool_basename" = "x$tool_specified"; then 37369 # A command without a complete path is provided, search $PATH. 37370 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool AR=$tool_basename" >&5 37371 $as_echo "$as_me: Will search for user supplied tool AR=$tool_basename" >&6;} 37372 # Extract the first word of "$tool_basename", so it can be a program name with args. 37373 set dummy $tool_basename; ac_word=$2 37374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 37375 $as_echo_n "checking for $ac_word... " >&6; } 37376 if ${ac_cv_path_AR+:} false; then : 37377 $as_echo_n "(cached) " >&6 37378 else 37379 case $AR in 37380 [\\/]* | ?:[\\/]*) 37381 ac_cv_path_AR="$AR" # Let the user override the test with a path. 37382 ;; 37383 *) 37384 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 37385 for as_dir in $PATH 37386 do 37387 IFS=$as_save_IFS 37388 test -z "$as_dir" && as_dir=. 37389 for ac_exec_ext in '' $ac_executable_extensions; do 37390 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 37391 ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext" 37392 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 37393 break 2 37394 fi 37395 done 37396 done 37397 IFS=$as_save_IFS 37398 37399 ;; 37400 esac 37401 fi 37402 AR=$ac_cv_path_AR 37403 if test -n "$AR"; then 37404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 37405 $as_echo "$AR" >&6; } 37406 else 37407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 37408 $as_echo "no" >&6; } 37409 fi 37410 37411 37412 if test "x$AR" = x; then 37413 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 37414 fi 37415 else 37416 # Otherwise we believe it is a complete path. Use it as it is. 37417 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool AR=$tool_specified" >&5 37418 $as_echo "$as_me: Will use user supplied tool AR=$tool_specified" >&6;} 37419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AR" >&5 37420 $as_echo_n "checking for AR... " >&6; } 37421 if test ! -x "$tool_specified"; then 37422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 37423 $as_echo "not found" >&6; } 37424 as_fn_error $? "User supplied tool AR=$tool_specified does not exist or is not executable" "$LINENO" 5 37425 fi 37426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 37427 $as_echo "$tool_specified" >&6; } 37428 fi 37429 fi 37430 fi 37431 37432 fi 37433 37434 37435 else 37436 37437 37438 # Publish this variable in the help. 37439 37440 37441 if [ -z "${AR+x}" ]; then 37442 # The variable is not set by user, try to locate tool using the code snippet 37443 if test -n "$ac_tool_prefix"; then 37444 for ac_prog in ar 37445 do 37446 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 37447 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 37448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 37449 $as_echo_n "checking for $ac_word... " >&6; } 37450 if ${ac_cv_prog_AR+:} false; then : 37451 $as_echo_n "(cached) " >&6 37452 else 37453 if test -n "$AR"; then 37454 ac_cv_prog_AR="$AR" # Let the user override the test. 37455 else 37456 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 37457 for as_dir in $PATH 37458 do 37459 IFS=$as_save_IFS 37460 test -z "$as_dir" && as_dir=. 37461 for ac_exec_ext in '' $ac_executable_extensions; do 37462 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 37463 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 37464 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 37465 break 2 37466 fi 37467 done 37468 done 37469 IFS=$as_save_IFS 37470 37471 fi 37472 fi 37473 AR=$ac_cv_prog_AR 37474 if test -n "$AR"; then 37475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 37476 $as_echo "$AR" >&6; } 37477 else 37478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 37479 $as_echo "no" >&6; } 37480 fi 37481 37482 37483 test -n "$AR" && break 37484 done 37485 fi 37486 if test -z "$AR"; then 37487 ac_ct_AR=$AR 37488 for ac_prog in ar 37489 do 37490 # Extract the first word of "$ac_prog", so it can be a program name with args. 37491 set dummy $ac_prog; ac_word=$2 37492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 37493 $as_echo_n "checking for $ac_word... " >&6; } 37494 if ${ac_cv_prog_ac_ct_AR+:} false; then : 37495 $as_echo_n "(cached) " >&6 37496 else 37497 if test -n "$ac_ct_AR"; then 37498 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 37499 else 37500 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 37501 for as_dir in $PATH 37502 do 37503 IFS=$as_save_IFS 37504 test -z "$as_dir" && as_dir=. 37505 for ac_exec_ext in '' $ac_executable_extensions; do 37506 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 37507 ac_cv_prog_ac_ct_AR="$ac_prog" 37508 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 37509 break 2 37510 fi 37511 done 37512 done 37513 IFS=$as_save_IFS 37514 37515 fi 37516 fi 37517 ac_ct_AR=$ac_cv_prog_ac_ct_AR 37518 if test -n "$ac_ct_AR"; then 37519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 37520 $as_echo "$ac_ct_AR" >&6; } 37521 else 37522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 37523 $as_echo "no" >&6; } 37524 fi 37525 37526 37527 test -n "$ac_ct_AR" && break 37528 done 37529 37530 if test "x$ac_ct_AR" = x; then 37531 AR="" 37532 else 37533 case $cross_compiling:$ac_tool_warned in 37534 yes:) 37535 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 37536 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 37537 ac_tool_warned=yes ;; 37538 esac 37539 AR=$ac_ct_AR 37540 fi 37541 fi 37542 37543 else 37544 # The variable is set, but is it from the command line or the environment? 37545 37546 # Try to remove the string !AR! from our list. 37547 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!AR!/} 37548 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 37549 # If it failed, the variable was not from the command line. Ignore it, 37550 # but warn the user (except for BASH, which is always set by the calling BASH). 37551 if test "xAR" != xBASH; then 37552 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of AR from the environment. Use command line variables instead." >&5 37553 $as_echo "$as_me: WARNING: Ignoring value of AR from the environment. Use command line variables instead." >&2;} 37554 fi 37555 # Try to locate tool using the code snippet 37556 if test -n "$ac_tool_prefix"; then 37557 for ac_prog in ar 37558 do 37559 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 37560 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 37561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 37562 $as_echo_n "checking for $ac_word... " >&6; } 37563 if ${ac_cv_prog_AR+:} false; then : 37564 $as_echo_n "(cached) " >&6 37565 else 37566 if test -n "$AR"; then 37567 ac_cv_prog_AR="$AR" # Let the user override the test. 37568 else 37569 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 37570 for as_dir in $PATH 37571 do 37572 IFS=$as_save_IFS 37573 test -z "$as_dir" && as_dir=. 37574 for ac_exec_ext in '' $ac_executable_extensions; do 37575 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 37576 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 37577 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 37578 break 2 37579 fi 37580 done 37581 done 37582 IFS=$as_save_IFS 37583 37584 fi 37585 fi 37586 AR=$ac_cv_prog_AR 37587 if test -n "$AR"; then 37588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 37589 $as_echo "$AR" >&6; } 37590 else 37591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 37592 $as_echo "no" >&6; } 37593 fi 37594 37595 37596 test -n "$AR" && break 37597 done 37598 fi 37599 if test -z "$AR"; then 37600 ac_ct_AR=$AR 37601 for ac_prog in ar 37602 do 37603 # Extract the first word of "$ac_prog", so it can be a program name with args. 37604 set dummy $ac_prog; ac_word=$2 37605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 37606 $as_echo_n "checking for $ac_word... " >&6; } 37607 if ${ac_cv_prog_ac_ct_AR+:} false; then : 37608 $as_echo_n "(cached) " >&6 37609 else 37610 if test -n "$ac_ct_AR"; then 37611 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 37612 else 37613 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 37614 for as_dir in $PATH 37615 do 37616 IFS=$as_save_IFS 37617 test -z "$as_dir" && as_dir=. 37618 for ac_exec_ext in '' $ac_executable_extensions; do 37619 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 37620 ac_cv_prog_ac_ct_AR="$ac_prog" 37621 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 37622 break 2 37623 fi 37624 done 37625 done 37626 IFS=$as_save_IFS 37627 37628 fi 37629 fi 37630 ac_ct_AR=$ac_cv_prog_ac_ct_AR 37631 if test -n "$ac_ct_AR"; then 37632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 37633 $as_echo "$ac_ct_AR" >&6; } 37634 else 37635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 37636 $as_echo "no" >&6; } 37637 fi 37638 37639 37640 test -n "$ac_ct_AR" && break 37641 done 37642 37643 if test "x$ac_ct_AR" = x; then 37644 AR="" 37645 else 37646 case $cross_compiling:$ac_tool_warned in 37647 yes:) 37648 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 37649 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 37650 ac_tool_warned=yes ;; 37651 esac 37652 AR=$ac_ct_AR 37653 fi 37654 fi 37655 37656 else 37657 # If it succeeded, then it was overridden by the user. We will use it 37658 # for the tool. 37659 37660 # First remove it from the list of overridden variables, so we can test 37661 # for unknown variables in the end. 37662 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 37663 37664 # Check if we try to supply an empty value 37665 if test "x$AR" = x; then 37666 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool AR= (no value)" >&5 37667 $as_echo "$as_me: Setting user supplied tool AR= (no value)" >&6;} 37668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AR" >&5 37669 $as_echo_n "checking for AR... " >&6; } 37670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 37671 $as_echo "disabled" >&6; } 37672 else 37673 # Check if the provided tool contains a complete path. 37674 tool_specified="$AR" 37675 tool_basename="${tool_specified##*/}" 37676 if test "x$tool_basename" = "x$tool_specified"; then 37677 # A command without a complete path is provided, search $PATH. 37678 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool AR=$tool_basename" >&5 37679 $as_echo "$as_me: Will search for user supplied tool AR=$tool_basename" >&6;} 37680 # Extract the first word of "$tool_basename", so it can be a program name with args. 37681 set dummy $tool_basename; ac_word=$2 37682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 37683 $as_echo_n "checking for $ac_word... " >&6; } 37684 if ${ac_cv_path_AR+:} false; then : 37685 $as_echo_n "(cached) " >&6 37686 else 37687 case $AR in 37688 [\\/]* | ?:[\\/]*) 37689 ac_cv_path_AR="$AR" # Let the user override the test with a path. 37690 ;; 37691 *) 37692 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 37693 for as_dir in $PATH 37694 do 37695 IFS=$as_save_IFS 37696 test -z "$as_dir" && as_dir=. 37697 for ac_exec_ext in '' $ac_executable_extensions; do 37698 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 37699 ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext" 37700 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 37701 break 2 37702 fi 37703 done 37704 done 37705 IFS=$as_save_IFS 37706 37707 ;; 37708 esac 37709 fi 37710 AR=$ac_cv_path_AR 37711 if test -n "$AR"; then 37712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 37713 $as_echo "$AR" >&6; } 37714 else 37715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 37716 $as_echo "no" >&6; } 37717 fi 37718 37719 37720 if test "x$AR" = x; then 37721 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 37722 fi 37723 else 37724 # Otherwise we believe it is a complete path. Use it as it is. 37725 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool AR=$tool_specified" >&5 37726 $as_echo "$as_me: Will use user supplied tool AR=$tool_specified" >&6;} 37727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AR" >&5 37728 $as_echo_n "checking for AR... " >&6; } 37729 if test ! -x "$tool_specified"; then 37730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 37731 $as_echo "not found" >&6; } 37732 as_fn_error $? "User supplied tool AR=$tool_specified does not exist or is not executable" "$LINENO" 5 37733 fi 37734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 37735 $as_echo "$tool_specified" >&6; } 37736 fi 37737 fi 37738 fi 37739 37740 fi 37741 37742 37743 fi 37744 37745 # Only process if variable expands to non-empty 37746 37747 if test "x$AR" != x; then 37748 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 37749 37750 # First separate the path from the arguments. This will split at the first 37751 # space. 37752 complete="$AR" 37753 path="${complete%% *}" 37754 tmp="$complete EOL" 37755 arguments="${tmp#* }" 37756 37757 # Input might be given as Windows format, start by converting to 37758 # unix format. 37759 new_path=`$CYGPATH -u "$path"` 37760 37761 # Now try to locate executable using which 37762 new_path=`$WHICH "$new_path" 2> /dev/null` 37763 # bat and cmd files are not always considered executable in cygwin causing which 37764 # to not find them 37765 if test "x$new_path" = x \ 37766 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 37767 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 37768 new_path=`$CYGPATH -u "$path"` 37769 fi 37770 if test "x$new_path" = x; then 37771 # Oops. Which didn't find the executable. 37772 # The splitting of arguments from the executable at a space might have been incorrect, 37773 # since paths with space are more likely in Windows. Give it another try with the whole 37774 # argument. 37775 path="$complete" 37776 arguments="EOL" 37777 new_path=`$CYGPATH -u "$path"` 37778 new_path=`$WHICH "$new_path" 2> /dev/null` 37779 # bat and cmd files are not always considered executable in cygwin causing which 37780 # to not find them 37781 if test "x$new_path" = x \ 37782 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 37783 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 37784 new_path=`$CYGPATH -u "$path"` 37785 fi 37786 if test "x$new_path" = x; then 37787 # It's still not found. Now this is an unrecoverable error. 37788 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of AR, which resolves as \"$complete\", is not found." >&5 37789 $as_echo "$as_me: The path of AR, which resolves as \"$complete\", is not found." >&6;} 37790 has_space=`$ECHO "$complete" | $GREP " "` 37791 if test "x$has_space" != x; then 37792 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 37793 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 37794 fi 37795 as_fn_error $? "Cannot locate the the path of AR" "$LINENO" 5 37796 fi 37797 fi 37798 37799 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 37800 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 37801 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 37802 # "foo.exe" is OK but "foo" is an error. 37803 # 37804 # This test is therefore slightly more accurate than "test -f" to check for file presence. 37805 # It is also a way to make sure we got the proper file name for the real test later on. 37806 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 37807 if test "x$test_shortpath" = x; then 37808 # Short path failed, file does not exist as specified. 37809 # Try adding .exe or .cmd 37810 if test -f "${new_path}.exe"; then 37811 input_to_shortpath="${new_path}.exe" 37812 elif test -f "${new_path}.cmd"; then 37813 input_to_shortpath="${new_path}.cmd" 37814 else 37815 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of AR, which resolves as \"$new_path\", is invalid." >&5 37816 $as_echo "$as_me: The path of AR, which resolves as \"$new_path\", is invalid." >&6;} 37817 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 37818 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 37819 as_fn_error $? "Cannot locate the the path of AR" "$LINENO" 5 37820 fi 37821 else 37822 input_to_shortpath="$new_path" 37823 fi 37824 37825 # Call helper function which possibly converts this using DOS-style short mode. 37826 # If so, the updated path is stored in $new_path. 37827 new_path="$input_to_shortpath" 37828 37829 input_path="$input_to_shortpath" 37830 # Check if we need to convert this using DOS-style short mode. If the path 37831 # contains just simple characters, use it. Otherwise (spaces, weird characters), 37832 # take no chances and rewrite it. 37833 # Note: m4 eats our [], so we need to use [ and ] instead. 37834 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 37835 if test "x$has_forbidden_chars" != x; then 37836 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 37837 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 37838 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 37839 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 37840 # Going to short mode and back again did indeed matter. Since short mode is 37841 # case insensitive, let's make it lowercase to improve readability. 37842 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 37843 # Now convert it back to Unix-style (cygpath) 37844 input_path=`$CYGPATH -u "$shortmode_path"` 37845 new_path="$input_path" 37846 fi 37847 fi 37848 37849 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 37850 if test "x$test_cygdrive_prefix" = x; then 37851 # As a simple fix, exclude /usr/bin since it's not a real path. 37852 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 37853 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 37854 # a path prefixed by /cygdrive for fixpath to work. 37855 new_path="$CYGWIN_ROOT_PATH$input_path" 37856 fi 37857 fi 37858 37859 # remove trailing .exe if any 37860 new_path="${new_path/%.exe/}" 37861 37862 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 37863 37864 # First separate the path from the arguments. This will split at the first 37865 # space. 37866 complete="$AR" 37867 path="${complete%% *}" 37868 tmp="$complete EOL" 37869 arguments="${tmp#* }" 37870 37871 # Input might be given as Windows format, start by converting to 37872 # unix format. 37873 new_path="$path" 37874 37875 windows_path="$new_path" 37876 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 37877 unix_path=`$CYGPATH -u "$windows_path"` 37878 new_path="$unix_path" 37879 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 37880 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 37881 new_path="$unix_path" 37882 fi 37883 37884 37885 # Now try to locate executable using which 37886 new_path=`$WHICH "$new_path" 2> /dev/null` 37887 37888 if test "x$new_path" = x; then 37889 # Oops. Which didn't find the executable. 37890 # The splitting of arguments from the executable at a space might have been incorrect, 37891 # since paths with space are more likely in Windows. Give it another try with the whole 37892 # argument. 37893 path="$complete" 37894 arguments="EOL" 37895 new_path="$path" 37896 37897 windows_path="$new_path" 37898 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 37899 unix_path=`$CYGPATH -u "$windows_path"` 37900 new_path="$unix_path" 37901 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 37902 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 37903 new_path="$unix_path" 37904 fi 37905 37906 37907 new_path=`$WHICH "$new_path" 2> /dev/null` 37908 # bat and cmd files are not always considered executable in MSYS causing which 37909 # to not find them 37910 if test "x$new_path" = x \ 37911 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 37912 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 37913 new_path="$path" 37914 37915 windows_path="$new_path" 37916 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 37917 unix_path=`$CYGPATH -u "$windows_path"` 37918 new_path="$unix_path" 37919 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 37920 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 37921 new_path="$unix_path" 37922 fi 37923 37924 fi 37925 37926 if test "x$new_path" = x; then 37927 # It's still not found. Now this is an unrecoverable error. 37928 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of AR, which resolves as \"$complete\", is not found." >&5 37929 $as_echo "$as_me: The path of AR, which resolves as \"$complete\", is not found." >&6;} 37930 has_space=`$ECHO "$complete" | $GREP " "` 37931 if test "x$has_space" != x; then 37932 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 37933 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 37934 fi 37935 as_fn_error $? "Cannot locate the the path of AR" "$LINENO" 5 37936 fi 37937 fi 37938 37939 # Now new_path has a complete unix path to the binary 37940 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 37941 # Keep paths in /bin as-is, but remove trailing .exe if any 37942 new_path="${new_path/%.exe/}" 37943 # Do not save /bin paths to all_fixpath_prefixes! 37944 else 37945 # Not in mixed or Windows style, start by that. 37946 new_path=`cmd //c echo $new_path` 37947 37948 input_path="$new_path" 37949 # Check if we need to convert this using DOS-style short mode. If the path 37950 # contains just simple characters, use it. Otherwise (spaces, weird characters), 37951 # take no chances and rewrite it. 37952 # Note: m4 eats our [], so we need to use [ and ] instead. 37953 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 37954 if test "x$has_forbidden_chars" != x; then 37955 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 37956 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 37957 fi 37958 37959 # Output is in $new_path 37960 37961 windows_path="$new_path" 37962 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 37963 unix_path=`$CYGPATH -u "$windows_path"` 37964 new_path="$unix_path" 37965 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 37966 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 37967 new_path="$unix_path" 37968 fi 37969 37970 # remove trailing .exe if any 37971 new_path="${new_path/%.exe/}" 37972 37973 # Save the first 10 bytes of this path to the storage, so fixpath can work. 37974 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 37975 fi 37976 37977 else 37978 # We're on a unix platform. Hooray! :) 37979 # First separate the path from the arguments. This will split at the first 37980 # space. 37981 complete="$AR" 37982 path="${complete%% *}" 37983 tmp="$complete EOL" 37984 arguments="${tmp#* }" 37985 37986 # Cannot rely on the command "which" here since it doesn't always work. 37987 is_absolute_path=`$ECHO "$path" | $GREP ^/` 37988 if test -z "$is_absolute_path"; then 37989 # Path to executable is not absolute. Find it. 37990 IFS_save="$IFS" 37991 IFS=: 37992 for p in $PATH; do 37993 if test -f "$p/$path" && test -x "$p/$path"; then 37994 new_path="$p/$path" 37995 break 37996 fi 37997 done 37998 IFS="$IFS_save" 37999 else 38000 # This is an absolute path, we can use it without further modifications. 38001 new_path="$path" 38002 fi 38003 38004 if test "x$new_path" = x; then 38005 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of AR, which resolves as \"$complete\", is not found." >&5 38006 $as_echo "$as_me: The path of AR, which resolves as \"$complete\", is not found." >&6;} 38007 has_space=`$ECHO "$complete" | $GREP " "` 38008 if test "x$has_space" != x; then 38009 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 38010 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 38011 fi 38012 as_fn_error $? "Cannot locate the the path of AR" "$LINENO" 5 38013 fi 38014 fi 38015 38016 # Now join together the path and the arguments once again 38017 if test "x$arguments" != xEOL; then 38018 new_complete="$new_path ${arguments% *}" 38019 else 38020 new_complete="$new_path" 38021 fi 38022 38023 if test "x$complete" != "x$new_complete"; then 38024 AR="$new_complete" 38025 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting AR to \"$new_complete\"" >&5 38026 $as_echo "$as_me: Rewriting AR to \"$new_complete\"" >&6;} 38027 fi 38028 fi 38029 38030 38031 38032 if test "x$OPENJDK_TARGET_OS" = "xmacosx"; then 38033 38034 38035 # Publish this variable in the help. 38036 38037 38038 if [ -z "${LIPO+x}" ]; then 38039 # The variable is not set by user, try to locate tool using the code snippet 38040 for ac_prog in lipo 38041 do 38042 # Extract the first word of "$ac_prog", so it can be a program name with args. 38043 set dummy $ac_prog; ac_word=$2 38044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 38045 $as_echo_n "checking for $ac_word... " >&6; } 38046 if ${ac_cv_path_LIPO+:} false; then : 38047 $as_echo_n "(cached) " >&6 38048 else 38049 case $LIPO in 38050 [\\/]* | ?:[\\/]*) 38051 ac_cv_path_LIPO="$LIPO" # Let the user override the test with a path. 38052 ;; 38053 *) 38054 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 38055 for as_dir in $PATH 38056 do 38057 IFS=$as_save_IFS 38058 test -z "$as_dir" && as_dir=. 38059 for ac_exec_ext in '' $ac_executable_extensions; do 38060 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 38061 ac_cv_path_LIPO="$as_dir/$ac_word$ac_exec_ext" 38062 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 38063 break 2 38064 fi 38065 done 38066 done 38067 IFS=$as_save_IFS 38068 38069 ;; 38070 esac 38071 fi 38072 LIPO=$ac_cv_path_LIPO 38073 if test -n "$LIPO"; then 38074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 38075 $as_echo "$LIPO" >&6; } 38076 else 38077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 38078 $as_echo "no" >&6; } 38079 fi 38080 38081 38082 test -n "$LIPO" && break 38083 done 38084 38085 else 38086 # The variable is set, but is it from the command line or the environment? 38087 38088 # Try to remove the string !LIPO! from our list. 38089 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!LIPO!/} 38090 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 38091 # If it failed, the variable was not from the command line. Ignore it, 38092 # but warn the user (except for BASH, which is always set by the calling BASH). 38093 if test "xLIPO" != xBASH; then 38094 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of LIPO from the environment. Use command line variables instead." >&5 38095 $as_echo "$as_me: WARNING: Ignoring value of LIPO from the environment. Use command line variables instead." >&2;} 38096 fi 38097 # Try to locate tool using the code snippet 38098 for ac_prog in lipo 38099 do 38100 # Extract the first word of "$ac_prog", so it can be a program name with args. 38101 set dummy $ac_prog; ac_word=$2 38102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 38103 $as_echo_n "checking for $ac_word... " >&6; } 38104 if ${ac_cv_path_LIPO+:} false; then : 38105 $as_echo_n "(cached) " >&6 38106 else 38107 case $LIPO in 38108 [\\/]* | ?:[\\/]*) 38109 ac_cv_path_LIPO="$LIPO" # Let the user override the test with a path. 38110 ;; 38111 *) 38112 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 38113 for as_dir in $PATH 38114 do 38115 IFS=$as_save_IFS 38116 test -z "$as_dir" && as_dir=. 38117 for ac_exec_ext in '' $ac_executable_extensions; do 38118 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 38119 ac_cv_path_LIPO="$as_dir/$ac_word$ac_exec_ext" 38120 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 38121 break 2 38122 fi 38123 done 38124 done 38125 IFS=$as_save_IFS 38126 38127 ;; 38128 esac 38129 fi 38130 LIPO=$ac_cv_path_LIPO 38131 if test -n "$LIPO"; then 38132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 38133 $as_echo "$LIPO" >&6; } 38134 else 38135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 38136 $as_echo "no" >&6; } 38137 fi 38138 38139 38140 test -n "$LIPO" && break 38141 done 38142 38143 else 38144 # If it succeeded, then it was overridden by the user. We will use it 38145 # for the tool. 38146 38147 # First remove it from the list of overridden variables, so we can test 38148 # for unknown variables in the end. 38149 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 38150 38151 # Check if we try to supply an empty value 38152 if test "x$LIPO" = x; then 38153 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool LIPO= (no value)" >&5 38154 $as_echo "$as_me: Setting user supplied tool LIPO= (no value)" >&6;} 38155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIPO" >&5 38156 $as_echo_n "checking for LIPO... " >&6; } 38157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 38158 $as_echo "disabled" >&6; } 38159 else 38160 # Check if the provided tool contains a complete path. 38161 tool_specified="$LIPO" 38162 tool_basename="${tool_specified##*/}" 38163 if test "x$tool_basename" = "x$tool_specified"; then 38164 # A command without a complete path is provided, search $PATH. 38165 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool LIPO=$tool_basename" >&5 38166 $as_echo "$as_me: Will search for user supplied tool LIPO=$tool_basename" >&6;} 38167 # Extract the first word of "$tool_basename", so it can be a program name with args. 38168 set dummy $tool_basename; ac_word=$2 38169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 38170 $as_echo_n "checking for $ac_word... " >&6; } 38171 if ${ac_cv_path_LIPO+:} false; then : 38172 $as_echo_n "(cached) " >&6 38173 else 38174 case $LIPO in 38175 [\\/]* | ?:[\\/]*) 38176 ac_cv_path_LIPO="$LIPO" # Let the user override the test with a path. 38177 ;; 38178 *) 38179 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 38180 for as_dir in $PATH 38181 do 38182 IFS=$as_save_IFS 38183 test -z "$as_dir" && as_dir=. 38184 for ac_exec_ext in '' $ac_executable_extensions; do 38185 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 38186 ac_cv_path_LIPO="$as_dir/$ac_word$ac_exec_ext" 38187 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 38188 break 2 38189 fi 38190 done 38191 done 38192 IFS=$as_save_IFS 38193 38194 ;; 38195 esac 38196 fi 38197 LIPO=$ac_cv_path_LIPO 38198 if test -n "$LIPO"; then 38199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 38200 $as_echo "$LIPO" >&6; } 38201 else 38202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 38203 $as_echo "no" >&6; } 38204 fi 38205 38206 38207 if test "x$LIPO" = x; then 38208 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 38209 fi 38210 else 38211 # Otherwise we believe it is a complete path. Use it as it is. 38212 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool LIPO=$tool_specified" >&5 38213 $as_echo "$as_me: Will use user supplied tool LIPO=$tool_specified" >&6;} 38214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIPO" >&5 38215 $as_echo_n "checking for LIPO... " >&6; } 38216 if test ! -x "$tool_specified"; then 38217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 38218 $as_echo "not found" >&6; } 38219 as_fn_error $? "User supplied tool LIPO=$tool_specified does not exist or is not executable" "$LINENO" 5 38220 fi 38221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 38222 $as_echo "$tool_specified" >&6; } 38223 fi 38224 fi 38225 fi 38226 38227 fi 38228 38229 38230 38231 # Only process if variable expands to non-empty 38232 38233 if test "x$LIPO" != x; then 38234 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 38235 38236 # First separate the path from the arguments. This will split at the first 38237 # space. 38238 complete="$LIPO" 38239 path="${complete%% *}" 38240 tmp="$complete EOL" 38241 arguments="${tmp#* }" 38242 38243 # Input might be given as Windows format, start by converting to 38244 # unix format. 38245 new_path=`$CYGPATH -u "$path"` 38246 38247 # Now try to locate executable using which 38248 new_path=`$WHICH "$new_path" 2> /dev/null` 38249 # bat and cmd files are not always considered executable in cygwin causing which 38250 # to not find them 38251 if test "x$new_path" = x \ 38252 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 38253 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 38254 new_path=`$CYGPATH -u "$path"` 38255 fi 38256 if test "x$new_path" = x; then 38257 # Oops. Which didn't find the executable. 38258 # The splitting of arguments from the executable at a space might have been incorrect, 38259 # since paths with space are more likely in Windows. Give it another try with the whole 38260 # argument. 38261 path="$complete" 38262 arguments="EOL" 38263 new_path=`$CYGPATH -u "$path"` 38264 new_path=`$WHICH "$new_path" 2> /dev/null` 38265 # bat and cmd files are not always considered executable in cygwin causing which 38266 # to not find them 38267 if test "x$new_path" = x \ 38268 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 38269 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 38270 new_path=`$CYGPATH -u "$path"` 38271 fi 38272 if test "x$new_path" = x; then 38273 # It's still not found. Now this is an unrecoverable error. 38274 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of LIPO, which resolves as \"$complete\", is not found." >&5 38275 $as_echo "$as_me: The path of LIPO, which resolves as \"$complete\", is not found." >&6;} 38276 has_space=`$ECHO "$complete" | $GREP " "` 38277 if test "x$has_space" != x; then 38278 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 38279 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 38280 fi 38281 as_fn_error $? "Cannot locate the the path of LIPO" "$LINENO" 5 38282 fi 38283 fi 38284 38285 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 38286 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 38287 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 38288 # "foo.exe" is OK but "foo" is an error. 38289 # 38290 # This test is therefore slightly more accurate than "test -f" to check for file presence. 38291 # It is also a way to make sure we got the proper file name for the real test later on. 38292 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 38293 if test "x$test_shortpath" = x; then 38294 # Short path failed, file does not exist as specified. 38295 # Try adding .exe or .cmd 38296 if test -f "${new_path}.exe"; then 38297 input_to_shortpath="${new_path}.exe" 38298 elif test -f "${new_path}.cmd"; then 38299 input_to_shortpath="${new_path}.cmd" 38300 else 38301 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of LIPO, which resolves as \"$new_path\", is invalid." >&5 38302 $as_echo "$as_me: The path of LIPO, which resolves as \"$new_path\", is invalid." >&6;} 38303 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 38304 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 38305 as_fn_error $? "Cannot locate the the path of LIPO" "$LINENO" 5 38306 fi 38307 else 38308 input_to_shortpath="$new_path" 38309 fi 38310 38311 # Call helper function which possibly converts this using DOS-style short mode. 38312 # If so, the updated path is stored in $new_path. 38313 new_path="$input_to_shortpath" 38314 38315 input_path="$input_to_shortpath" 38316 # Check if we need to convert this using DOS-style short mode. If the path 38317 # contains just simple characters, use it. Otherwise (spaces, weird characters), 38318 # take no chances and rewrite it. 38319 # Note: m4 eats our [], so we need to use [ and ] instead. 38320 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 38321 if test "x$has_forbidden_chars" != x; then 38322 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 38323 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 38324 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 38325 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 38326 # Going to short mode and back again did indeed matter. Since short mode is 38327 # case insensitive, let's make it lowercase to improve readability. 38328 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 38329 # Now convert it back to Unix-style (cygpath) 38330 input_path=`$CYGPATH -u "$shortmode_path"` 38331 new_path="$input_path" 38332 fi 38333 fi 38334 38335 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 38336 if test "x$test_cygdrive_prefix" = x; then 38337 # As a simple fix, exclude /usr/bin since it's not a real path. 38338 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 38339 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 38340 # a path prefixed by /cygdrive for fixpath to work. 38341 new_path="$CYGWIN_ROOT_PATH$input_path" 38342 fi 38343 fi 38344 38345 # remove trailing .exe if any 38346 new_path="${new_path/%.exe/}" 38347 38348 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 38349 38350 # First separate the path from the arguments. This will split at the first 38351 # space. 38352 complete="$LIPO" 38353 path="${complete%% *}" 38354 tmp="$complete EOL" 38355 arguments="${tmp#* }" 38356 38357 # Input might be given as Windows format, start by converting to 38358 # unix format. 38359 new_path="$path" 38360 38361 windows_path="$new_path" 38362 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 38363 unix_path=`$CYGPATH -u "$windows_path"` 38364 new_path="$unix_path" 38365 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 38366 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 38367 new_path="$unix_path" 38368 fi 38369 38370 38371 # Now try to locate executable using which 38372 new_path=`$WHICH "$new_path" 2> /dev/null` 38373 38374 if test "x$new_path" = x; then 38375 # Oops. Which didn't find the executable. 38376 # The splitting of arguments from the executable at a space might have been incorrect, 38377 # since paths with space are more likely in Windows. Give it another try with the whole 38378 # argument. 38379 path="$complete" 38380 arguments="EOL" 38381 new_path="$path" 38382 38383 windows_path="$new_path" 38384 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 38385 unix_path=`$CYGPATH -u "$windows_path"` 38386 new_path="$unix_path" 38387 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 38388 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 38389 new_path="$unix_path" 38390 fi 38391 38392 38393 new_path=`$WHICH "$new_path" 2> /dev/null` 38394 # bat and cmd files are not always considered executable in MSYS causing which 38395 # to not find them 38396 if test "x$new_path" = x \ 38397 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 38398 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 38399 new_path="$path" 38400 38401 windows_path="$new_path" 38402 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 38403 unix_path=`$CYGPATH -u "$windows_path"` 38404 new_path="$unix_path" 38405 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 38406 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 38407 new_path="$unix_path" 38408 fi 38409 38410 fi 38411 38412 if test "x$new_path" = x; then 38413 # It's still not found. Now this is an unrecoverable error. 38414 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of LIPO, which resolves as \"$complete\", is not found." >&5 38415 $as_echo "$as_me: The path of LIPO, which resolves as \"$complete\", is not found." >&6;} 38416 has_space=`$ECHO "$complete" | $GREP " "` 38417 if test "x$has_space" != x; then 38418 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 38419 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 38420 fi 38421 as_fn_error $? "Cannot locate the the path of LIPO" "$LINENO" 5 38422 fi 38423 fi 38424 38425 # Now new_path has a complete unix path to the binary 38426 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 38427 # Keep paths in /bin as-is, but remove trailing .exe if any 38428 new_path="${new_path/%.exe/}" 38429 # Do not save /bin paths to all_fixpath_prefixes! 38430 else 38431 # Not in mixed or Windows style, start by that. 38432 new_path=`cmd //c echo $new_path` 38433 38434 input_path="$new_path" 38435 # Check if we need to convert this using DOS-style short mode. If the path 38436 # contains just simple characters, use it. Otherwise (spaces, weird characters), 38437 # take no chances and rewrite it. 38438 # Note: m4 eats our [], so we need to use [ and ] instead. 38439 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 38440 if test "x$has_forbidden_chars" != x; then 38441 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 38442 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 38443 fi 38444 38445 # Output is in $new_path 38446 38447 windows_path="$new_path" 38448 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 38449 unix_path=`$CYGPATH -u "$windows_path"` 38450 new_path="$unix_path" 38451 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 38452 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 38453 new_path="$unix_path" 38454 fi 38455 38456 # remove trailing .exe if any 38457 new_path="${new_path/%.exe/}" 38458 38459 # Save the first 10 bytes of this path to the storage, so fixpath can work. 38460 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 38461 fi 38462 38463 else 38464 # We're on a unix platform. Hooray! :) 38465 # First separate the path from the arguments. This will split at the first 38466 # space. 38467 complete="$LIPO" 38468 path="${complete%% *}" 38469 tmp="$complete EOL" 38470 arguments="${tmp#* }" 38471 38472 # Cannot rely on the command "which" here since it doesn't always work. 38473 is_absolute_path=`$ECHO "$path" | $GREP ^/` 38474 if test -z "$is_absolute_path"; then 38475 # Path to executable is not absolute. Find it. 38476 IFS_save="$IFS" 38477 IFS=: 38478 for p in $PATH; do 38479 if test -f "$p/$path" && test -x "$p/$path"; then 38480 new_path="$p/$path" 38481 break 38482 fi 38483 done 38484 IFS="$IFS_save" 38485 else 38486 # This is an absolute path, we can use it without further modifications. 38487 new_path="$path" 38488 fi 38489 38490 if test "x$new_path" = x; then 38491 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of LIPO, which resolves as \"$complete\", is not found." >&5 38492 $as_echo "$as_me: The path of LIPO, which resolves as \"$complete\", is not found." >&6;} 38493 has_space=`$ECHO "$complete" | $GREP " "` 38494 if test "x$has_space" != x; then 38495 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 38496 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 38497 fi 38498 as_fn_error $? "Cannot locate the the path of LIPO" "$LINENO" 5 38499 fi 38500 fi 38501 38502 # Now join together the path and the arguments once again 38503 if test "x$arguments" != xEOL; then 38504 new_complete="$new_path ${arguments% *}" 38505 else 38506 new_complete="$new_path" 38507 fi 38508 38509 if test "x$complete" != "x$new_complete"; then 38510 LIPO="$new_complete" 38511 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting LIPO to \"$new_complete\"" >&5 38512 $as_echo "$as_me: Rewriting LIPO to \"$new_complete\"" >&6;} 38513 fi 38514 fi 38515 38516 fi 38517 38518 if test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 38519 # Extract the first word of "mt", so it can be a program name with args. 38520 set dummy mt; ac_word=$2 38521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 38522 $as_echo_n "checking for $ac_word... " >&6; } 38523 if ${ac_cv_prog_MT+:} false; then : 38524 $as_echo_n "(cached) " >&6 38525 else 38526 if test -n "$MT"; then 38527 ac_cv_prog_MT="$MT" # Let the user override the test. 38528 else 38529 ac_prog_rejected=no 38530 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 38531 for as_dir in $PATH 38532 do 38533 IFS=$as_save_IFS 38534 test -z "$as_dir" && as_dir=. 38535 for ac_exec_ext in '' $ac_executable_extensions; do 38536 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 38537 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/bin/mt"; then 38538 ac_prog_rejected=yes 38539 continue 38540 fi 38541 ac_cv_prog_MT="mt" 38542 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 38543 break 2 38544 fi 38545 done 38546 done 38547 IFS=$as_save_IFS 38548 38549 if test $ac_prog_rejected = yes; then 38550 # We found a bogon in the path, so make sure we never use it. 38551 set dummy $ac_cv_prog_MT 38552 shift 38553 if test $# != 0; then 38554 # We chose a different compiler from the bogus one. 38555 # However, it has the same basename, so the bogon will be chosen 38556 # first if we set MT to just the basename; use the full file name. 38557 shift 38558 ac_cv_prog_MT="$as_dir/$ac_word${1+' '}$@" 38559 fi 38560 fi 38561 fi 38562 fi 38563 MT=$ac_cv_prog_MT 38564 if test -n "$MT"; then 38565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MT" >&5 38566 $as_echo "$MT" >&6; } 38567 else 38568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 38569 $as_echo "no" >&6; } 38570 fi 38571 38572 38573 38574 # Only process if variable expands to non-empty 38575 38576 if test "x$MT" != x; then 38577 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 38578 38579 # First separate the path from the arguments. This will split at the first 38580 # space. 38581 complete="$MT" 38582 path="${complete%% *}" 38583 tmp="$complete EOL" 38584 arguments="${tmp#* }" 38585 38586 # Input might be given as Windows format, start by converting to 38587 # unix format. 38588 new_path=`$CYGPATH -u "$path"` 38589 38590 # Now try to locate executable using which 38591 new_path=`$WHICH "$new_path" 2> /dev/null` 38592 # bat and cmd files are not always considered executable in cygwin causing which 38593 # to not find them 38594 if test "x$new_path" = x \ 38595 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 38596 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 38597 new_path=`$CYGPATH -u "$path"` 38598 fi 38599 if test "x$new_path" = x; then 38600 # Oops. Which didn't find the executable. 38601 # The splitting of arguments from the executable at a space might have been incorrect, 38602 # since paths with space are more likely in Windows. Give it another try with the whole 38603 # argument. 38604 path="$complete" 38605 arguments="EOL" 38606 new_path=`$CYGPATH -u "$path"` 38607 new_path=`$WHICH "$new_path" 2> /dev/null` 38608 # bat and cmd files are not always considered executable in cygwin causing which 38609 # to not find them 38610 if test "x$new_path" = x \ 38611 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 38612 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 38613 new_path=`$CYGPATH -u "$path"` 38614 fi 38615 if test "x$new_path" = x; then 38616 # It's still not found. Now this is an unrecoverable error. 38617 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MT, which resolves as \"$complete\", is not found." >&5 38618 $as_echo "$as_me: The path of MT, which resolves as \"$complete\", is not found." >&6;} 38619 has_space=`$ECHO "$complete" | $GREP " "` 38620 if test "x$has_space" != x; then 38621 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 38622 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 38623 fi 38624 as_fn_error $? "Cannot locate the the path of MT" "$LINENO" 5 38625 fi 38626 fi 38627 38628 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 38629 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 38630 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 38631 # "foo.exe" is OK but "foo" is an error. 38632 # 38633 # This test is therefore slightly more accurate than "test -f" to check for file presence. 38634 # It is also a way to make sure we got the proper file name for the real test later on. 38635 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 38636 if test "x$test_shortpath" = x; then 38637 # Short path failed, file does not exist as specified. 38638 # Try adding .exe or .cmd 38639 if test -f "${new_path}.exe"; then 38640 input_to_shortpath="${new_path}.exe" 38641 elif test -f "${new_path}.cmd"; then 38642 input_to_shortpath="${new_path}.cmd" 38643 else 38644 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MT, which resolves as \"$new_path\", is invalid." >&5 38645 $as_echo "$as_me: The path of MT, which resolves as \"$new_path\", is invalid." >&6;} 38646 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 38647 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 38648 as_fn_error $? "Cannot locate the the path of MT" "$LINENO" 5 38649 fi 38650 else 38651 input_to_shortpath="$new_path" 38652 fi 38653 38654 # Call helper function which possibly converts this using DOS-style short mode. 38655 # If so, the updated path is stored in $new_path. 38656 new_path="$input_to_shortpath" 38657 38658 input_path="$input_to_shortpath" 38659 # Check if we need to convert this using DOS-style short mode. If the path 38660 # contains just simple characters, use it. Otherwise (spaces, weird characters), 38661 # take no chances and rewrite it. 38662 # Note: m4 eats our [], so we need to use [ and ] instead. 38663 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 38664 if test "x$has_forbidden_chars" != x; then 38665 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 38666 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 38667 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 38668 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 38669 # Going to short mode and back again did indeed matter. Since short mode is 38670 # case insensitive, let's make it lowercase to improve readability. 38671 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 38672 # Now convert it back to Unix-style (cygpath) 38673 input_path=`$CYGPATH -u "$shortmode_path"` 38674 new_path="$input_path" 38675 fi 38676 fi 38677 38678 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 38679 if test "x$test_cygdrive_prefix" = x; then 38680 # As a simple fix, exclude /usr/bin since it's not a real path. 38681 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 38682 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 38683 # a path prefixed by /cygdrive for fixpath to work. 38684 new_path="$CYGWIN_ROOT_PATH$input_path" 38685 fi 38686 fi 38687 38688 # remove trailing .exe if any 38689 new_path="${new_path/%.exe/}" 38690 38691 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 38692 38693 # First separate the path from the arguments. This will split at the first 38694 # space. 38695 complete="$MT" 38696 path="${complete%% *}" 38697 tmp="$complete EOL" 38698 arguments="${tmp#* }" 38699 38700 # Input might be given as Windows format, start by converting to 38701 # unix format. 38702 new_path="$path" 38703 38704 windows_path="$new_path" 38705 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 38706 unix_path=`$CYGPATH -u "$windows_path"` 38707 new_path="$unix_path" 38708 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 38709 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 38710 new_path="$unix_path" 38711 fi 38712 38713 38714 # Now try to locate executable using which 38715 new_path=`$WHICH "$new_path" 2> /dev/null` 38716 38717 if test "x$new_path" = x; then 38718 # Oops. Which didn't find the executable. 38719 # The splitting of arguments from the executable at a space might have been incorrect, 38720 # since paths with space are more likely in Windows. Give it another try with the whole 38721 # argument. 38722 path="$complete" 38723 arguments="EOL" 38724 new_path="$path" 38725 38726 windows_path="$new_path" 38727 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 38728 unix_path=`$CYGPATH -u "$windows_path"` 38729 new_path="$unix_path" 38730 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 38731 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 38732 new_path="$unix_path" 38733 fi 38734 38735 38736 new_path=`$WHICH "$new_path" 2> /dev/null` 38737 # bat and cmd files are not always considered executable in MSYS causing which 38738 # to not find them 38739 if test "x$new_path" = x \ 38740 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 38741 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 38742 new_path="$path" 38743 38744 windows_path="$new_path" 38745 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 38746 unix_path=`$CYGPATH -u "$windows_path"` 38747 new_path="$unix_path" 38748 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 38749 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 38750 new_path="$unix_path" 38751 fi 38752 38753 fi 38754 38755 if test "x$new_path" = x; then 38756 # It's still not found. Now this is an unrecoverable error. 38757 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MT, which resolves as \"$complete\", is not found." >&5 38758 $as_echo "$as_me: The path of MT, which resolves as \"$complete\", is not found." >&6;} 38759 has_space=`$ECHO "$complete" | $GREP " "` 38760 if test "x$has_space" != x; then 38761 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 38762 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 38763 fi 38764 as_fn_error $? "Cannot locate the the path of MT" "$LINENO" 5 38765 fi 38766 fi 38767 38768 # Now new_path has a complete unix path to the binary 38769 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 38770 # Keep paths in /bin as-is, but remove trailing .exe if any 38771 new_path="${new_path/%.exe/}" 38772 # Do not save /bin paths to all_fixpath_prefixes! 38773 else 38774 # Not in mixed or Windows style, start by that. 38775 new_path=`cmd //c echo $new_path` 38776 38777 input_path="$new_path" 38778 # Check if we need to convert this using DOS-style short mode. If the path 38779 # contains just simple characters, use it. Otherwise (spaces, weird characters), 38780 # take no chances and rewrite it. 38781 # Note: m4 eats our [], so we need to use [ and ] instead. 38782 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 38783 if test "x$has_forbidden_chars" != x; then 38784 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 38785 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 38786 fi 38787 38788 # Output is in $new_path 38789 38790 windows_path="$new_path" 38791 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 38792 unix_path=`$CYGPATH -u "$windows_path"` 38793 new_path="$unix_path" 38794 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 38795 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 38796 new_path="$unix_path" 38797 fi 38798 38799 # remove trailing .exe if any 38800 new_path="${new_path/%.exe/}" 38801 38802 # Save the first 10 bytes of this path to the storage, so fixpath can work. 38803 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 38804 fi 38805 38806 else 38807 # We're on a unix platform. Hooray! :) 38808 # First separate the path from the arguments. This will split at the first 38809 # space. 38810 complete="$MT" 38811 path="${complete%% *}" 38812 tmp="$complete EOL" 38813 arguments="${tmp#* }" 38814 38815 # Cannot rely on the command "which" here since it doesn't always work. 38816 is_absolute_path=`$ECHO "$path" | $GREP ^/` 38817 if test -z "$is_absolute_path"; then 38818 # Path to executable is not absolute. Find it. 38819 IFS_save="$IFS" 38820 IFS=: 38821 for p in $PATH; do 38822 if test -f "$p/$path" && test -x "$p/$path"; then 38823 new_path="$p/$path" 38824 break 38825 fi 38826 done 38827 IFS="$IFS_save" 38828 else 38829 # This is an absolute path, we can use it without further modifications. 38830 new_path="$path" 38831 fi 38832 38833 if test "x$new_path" = x; then 38834 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MT, which resolves as \"$complete\", is not found." >&5 38835 $as_echo "$as_me: The path of MT, which resolves as \"$complete\", is not found." >&6;} 38836 has_space=`$ECHO "$complete" | $GREP " "` 38837 if test "x$has_space" != x; then 38838 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 38839 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 38840 fi 38841 as_fn_error $? "Cannot locate the the path of MT" "$LINENO" 5 38842 fi 38843 fi 38844 38845 # Now join together the path and the arguments once again 38846 if test "x$arguments" != xEOL; then 38847 new_complete="$new_path ${arguments% *}" 38848 else 38849 new_complete="$new_path" 38850 fi 38851 38852 if test "x$complete" != "x$new_complete"; then 38853 MT="$new_complete" 38854 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MT to \"$new_complete\"" >&5 38855 $as_echo "$as_me: Rewriting MT to \"$new_complete\"" >&6;} 38856 fi 38857 fi 38858 38859 # Setup the resource compiler (RC) 38860 # Extract the first word of "rc", so it can be a program name with args. 38861 set dummy rc; ac_word=$2 38862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 38863 $as_echo_n "checking for $ac_word... " >&6; } 38864 if ${ac_cv_prog_RC+:} false; then : 38865 $as_echo_n "(cached) " >&6 38866 else 38867 if test -n "$RC"; then 38868 ac_cv_prog_RC="$RC" # Let the user override the test. 38869 else 38870 ac_prog_rejected=no 38871 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 38872 for as_dir in $PATH 38873 do 38874 IFS=$as_save_IFS 38875 test -z "$as_dir" && as_dir=. 38876 for ac_exec_ext in '' $ac_executable_extensions; do 38877 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 38878 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/bin/rc"; then 38879 ac_prog_rejected=yes 38880 continue 38881 fi 38882 ac_cv_prog_RC="rc" 38883 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 38884 break 2 38885 fi 38886 done 38887 done 38888 IFS=$as_save_IFS 38889 38890 if test $ac_prog_rejected = yes; then 38891 # We found a bogon in the path, so make sure we never use it. 38892 set dummy $ac_cv_prog_RC 38893 shift 38894 if test $# != 0; then 38895 # We chose a different compiler from the bogus one. 38896 # However, it has the same basename, so the bogon will be chosen 38897 # first if we set RC to just the basename; use the full file name. 38898 shift 38899 ac_cv_prog_RC="$as_dir/$ac_word${1+' '}$@" 38900 fi 38901 fi 38902 fi 38903 fi 38904 RC=$ac_cv_prog_RC 38905 if test -n "$RC"; then 38906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RC" >&5 38907 $as_echo "$RC" >&6; } 38908 else 38909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 38910 $as_echo "no" >&6; } 38911 fi 38912 38913 38914 38915 # Only process if variable expands to non-empty 38916 38917 if test "x$RC" != x; then 38918 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 38919 38920 # First separate the path from the arguments. This will split at the first 38921 # space. 38922 complete="$RC" 38923 path="${complete%% *}" 38924 tmp="$complete EOL" 38925 arguments="${tmp#* }" 38926 38927 # Input might be given as Windows format, start by converting to 38928 # unix format. 38929 new_path=`$CYGPATH -u "$path"` 38930 38931 # Now try to locate executable using which 38932 new_path=`$WHICH "$new_path" 2> /dev/null` 38933 # bat and cmd files are not always considered executable in cygwin causing which 38934 # to not find them 38935 if test "x$new_path" = x \ 38936 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 38937 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 38938 new_path=`$CYGPATH -u "$path"` 38939 fi 38940 if test "x$new_path" = x; then 38941 # Oops. Which didn't find the executable. 38942 # The splitting of arguments from the executable at a space might have been incorrect, 38943 # since paths with space are more likely in Windows. Give it another try with the whole 38944 # argument. 38945 path="$complete" 38946 arguments="EOL" 38947 new_path=`$CYGPATH -u "$path"` 38948 new_path=`$WHICH "$new_path" 2> /dev/null` 38949 # bat and cmd files are not always considered executable in cygwin causing which 38950 # to not find them 38951 if test "x$new_path" = x \ 38952 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 38953 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 38954 new_path=`$CYGPATH -u "$path"` 38955 fi 38956 if test "x$new_path" = x; then 38957 # It's still not found. Now this is an unrecoverable error. 38958 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of RC, which resolves as \"$complete\", is not found." >&5 38959 $as_echo "$as_me: The path of RC, which resolves as \"$complete\", is not found." >&6;} 38960 has_space=`$ECHO "$complete" | $GREP " "` 38961 if test "x$has_space" != x; then 38962 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 38963 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 38964 fi 38965 as_fn_error $? "Cannot locate the the path of RC" "$LINENO" 5 38966 fi 38967 fi 38968 38969 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 38970 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 38971 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 38972 # "foo.exe" is OK but "foo" is an error. 38973 # 38974 # This test is therefore slightly more accurate than "test -f" to check for file presence. 38975 # It is also a way to make sure we got the proper file name for the real test later on. 38976 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 38977 if test "x$test_shortpath" = x; then 38978 # Short path failed, file does not exist as specified. 38979 # Try adding .exe or .cmd 38980 if test -f "${new_path}.exe"; then 38981 input_to_shortpath="${new_path}.exe" 38982 elif test -f "${new_path}.cmd"; then 38983 input_to_shortpath="${new_path}.cmd" 38984 else 38985 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of RC, which resolves as \"$new_path\", is invalid." >&5 38986 $as_echo "$as_me: The path of RC, which resolves as \"$new_path\", is invalid." >&6;} 38987 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 38988 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 38989 as_fn_error $? "Cannot locate the the path of RC" "$LINENO" 5 38990 fi 38991 else 38992 input_to_shortpath="$new_path" 38993 fi 38994 38995 # Call helper function which possibly converts this using DOS-style short mode. 38996 # If so, the updated path is stored in $new_path. 38997 new_path="$input_to_shortpath" 38998 38999 input_path="$input_to_shortpath" 39000 # Check if we need to convert this using DOS-style short mode. If the path 39001 # contains just simple characters, use it. Otherwise (spaces, weird characters), 39002 # take no chances and rewrite it. 39003 # Note: m4 eats our [], so we need to use [ and ] instead. 39004 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 39005 if test "x$has_forbidden_chars" != x; then 39006 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 39007 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 39008 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 39009 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 39010 # Going to short mode and back again did indeed matter. Since short mode is 39011 # case insensitive, let's make it lowercase to improve readability. 39012 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 39013 # Now convert it back to Unix-style (cygpath) 39014 input_path=`$CYGPATH -u "$shortmode_path"` 39015 new_path="$input_path" 39016 fi 39017 fi 39018 39019 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 39020 if test "x$test_cygdrive_prefix" = x; then 39021 # As a simple fix, exclude /usr/bin since it's not a real path. 39022 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 39023 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 39024 # a path prefixed by /cygdrive for fixpath to work. 39025 new_path="$CYGWIN_ROOT_PATH$input_path" 39026 fi 39027 fi 39028 39029 # remove trailing .exe if any 39030 new_path="${new_path/%.exe/}" 39031 39032 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 39033 39034 # First separate the path from the arguments. This will split at the first 39035 # space. 39036 complete="$RC" 39037 path="${complete%% *}" 39038 tmp="$complete EOL" 39039 arguments="${tmp#* }" 39040 39041 # Input might be given as Windows format, start by converting to 39042 # unix format. 39043 new_path="$path" 39044 39045 windows_path="$new_path" 39046 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 39047 unix_path=`$CYGPATH -u "$windows_path"` 39048 new_path="$unix_path" 39049 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 39050 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 39051 new_path="$unix_path" 39052 fi 39053 39054 39055 # Now try to locate executable using which 39056 new_path=`$WHICH "$new_path" 2> /dev/null` 39057 39058 if test "x$new_path" = x; then 39059 # Oops. Which didn't find the executable. 39060 # The splitting of arguments from the executable at a space might have been incorrect, 39061 # since paths with space are more likely in Windows. Give it another try with the whole 39062 # argument. 39063 path="$complete" 39064 arguments="EOL" 39065 new_path="$path" 39066 39067 windows_path="$new_path" 39068 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 39069 unix_path=`$CYGPATH -u "$windows_path"` 39070 new_path="$unix_path" 39071 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 39072 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 39073 new_path="$unix_path" 39074 fi 39075 39076 39077 new_path=`$WHICH "$new_path" 2> /dev/null` 39078 # bat and cmd files are not always considered executable in MSYS causing which 39079 # to not find them 39080 if test "x$new_path" = x \ 39081 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 39082 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 39083 new_path="$path" 39084 39085 windows_path="$new_path" 39086 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 39087 unix_path=`$CYGPATH -u "$windows_path"` 39088 new_path="$unix_path" 39089 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 39090 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 39091 new_path="$unix_path" 39092 fi 39093 39094 fi 39095 39096 if test "x$new_path" = x; then 39097 # It's still not found. Now this is an unrecoverable error. 39098 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of RC, which resolves as \"$complete\", is not found." >&5 39099 $as_echo "$as_me: The path of RC, which resolves as \"$complete\", is not found." >&6;} 39100 has_space=`$ECHO "$complete" | $GREP " "` 39101 if test "x$has_space" != x; then 39102 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 39103 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 39104 fi 39105 as_fn_error $? "Cannot locate the the path of RC" "$LINENO" 5 39106 fi 39107 fi 39108 39109 # Now new_path has a complete unix path to the binary 39110 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 39111 # Keep paths in /bin as-is, but remove trailing .exe if any 39112 new_path="${new_path/%.exe/}" 39113 # Do not save /bin paths to all_fixpath_prefixes! 39114 else 39115 # Not in mixed or Windows style, start by that. 39116 new_path=`cmd //c echo $new_path` 39117 39118 input_path="$new_path" 39119 # Check if we need to convert this using DOS-style short mode. If the path 39120 # contains just simple characters, use it. Otherwise (spaces, weird characters), 39121 # take no chances and rewrite it. 39122 # Note: m4 eats our [], so we need to use [ and ] instead. 39123 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 39124 if test "x$has_forbidden_chars" != x; then 39125 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 39126 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 39127 fi 39128 39129 # Output is in $new_path 39130 39131 windows_path="$new_path" 39132 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 39133 unix_path=`$CYGPATH -u "$windows_path"` 39134 new_path="$unix_path" 39135 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 39136 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 39137 new_path="$unix_path" 39138 fi 39139 39140 # remove trailing .exe if any 39141 new_path="${new_path/%.exe/}" 39142 39143 # Save the first 10 bytes of this path to the storage, so fixpath can work. 39144 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 39145 fi 39146 39147 else 39148 # We're on a unix platform. Hooray! :) 39149 # First separate the path from the arguments. This will split at the first 39150 # space. 39151 complete="$RC" 39152 path="${complete%% *}" 39153 tmp="$complete EOL" 39154 arguments="${tmp#* }" 39155 39156 # Cannot rely on the command "which" here since it doesn't always work. 39157 is_absolute_path=`$ECHO "$path" | $GREP ^/` 39158 if test -z "$is_absolute_path"; then 39159 # Path to executable is not absolute. Find it. 39160 IFS_save="$IFS" 39161 IFS=: 39162 for p in $PATH; do 39163 if test -f "$p/$path" && test -x "$p/$path"; then 39164 new_path="$p/$path" 39165 break 39166 fi 39167 done 39168 IFS="$IFS_save" 39169 else 39170 # This is an absolute path, we can use it without further modifications. 39171 new_path="$path" 39172 fi 39173 39174 if test "x$new_path" = x; then 39175 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of RC, which resolves as \"$complete\", is not found." >&5 39176 $as_echo "$as_me: The path of RC, which resolves as \"$complete\", is not found." >&6;} 39177 has_space=`$ECHO "$complete" | $GREP " "` 39178 if test "x$has_space" != x; then 39179 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 39180 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 39181 fi 39182 as_fn_error $? "Cannot locate the the path of RC" "$LINENO" 5 39183 fi 39184 fi 39185 39186 # Now join together the path and the arguments once again 39187 if test "x$arguments" != xEOL; then 39188 new_complete="$new_path ${arguments% *}" 39189 else 39190 new_complete="$new_path" 39191 fi 39192 39193 if test "x$complete" != "x$new_complete"; then 39194 RC="$new_complete" 39195 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting RC to \"$new_complete\"" >&5 39196 $as_echo "$as_me: Rewriting RC to \"$new_complete\"" >&6;} 39197 fi 39198 fi 39199 39200 # Extract the first word of "dumpbin", so it can be a program name with args. 39201 set dummy dumpbin; ac_word=$2 39202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 39203 $as_echo_n "checking for $ac_word... " >&6; } 39204 if ${ac_cv_prog_DUMPBIN+:} false; then : 39205 $as_echo_n "(cached) " >&6 39206 else 39207 if test -n "$DUMPBIN"; then 39208 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 39209 else 39210 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 39211 for as_dir in $PATH 39212 do 39213 IFS=$as_save_IFS 39214 test -z "$as_dir" && as_dir=. 39215 for ac_exec_ext in '' $ac_executable_extensions; do 39216 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 39217 ac_cv_prog_DUMPBIN="dumpbin" 39218 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 39219 break 2 39220 fi 39221 done 39222 done 39223 IFS=$as_save_IFS 39224 39225 fi 39226 fi 39227 DUMPBIN=$ac_cv_prog_DUMPBIN 39228 if test -n "$DUMPBIN"; then 39229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 39230 $as_echo "$DUMPBIN" >&6; } 39231 else 39232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 39233 $as_echo "no" >&6; } 39234 fi 39235 39236 39237 39238 # Only process if variable expands to non-empty 39239 39240 if test "x$DUMPBIN" != x; then 39241 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 39242 39243 # First separate the path from the arguments. This will split at the first 39244 # space. 39245 complete="$DUMPBIN" 39246 path="${complete%% *}" 39247 tmp="$complete EOL" 39248 arguments="${tmp#* }" 39249 39250 # Input might be given as Windows format, start by converting to 39251 # unix format. 39252 new_path=`$CYGPATH -u "$path"` 39253 39254 # Now try to locate executable using which 39255 new_path=`$WHICH "$new_path" 2> /dev/null` 39256 # bat and cmd files are not always considered executable in cygwin causing which 39257 # to not find them 39258 if test "x$new_path" = x \ 39259 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 39260 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 39261 new_path=`$CYGPATH -u "$path"` 39262 fi 39263 if test "x$new_path" = x; then 39264 # Oops. Which didn't find the executable. 39265 # The splitting of arguments from the executable at a space might have been incorrect, 39266 # since paths with space are more likely in Windows. Give it another try with the whole 39267 # argument. 39268 path="$complete" 39269 arguments="EOL" 39270 new_path=`$CYGPATH -u "$path"` 39271 new_path=`$WHICH "$new_path" 2> /dev/null` 39272 # bat and cmd files are not always considered executable in cygwin causing which 39273 # to not find them 39274 if test "x$new_path" = x \ 39275 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 39276 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 39277 new_path=`$CYGPATH -u "$path"` 39278 fi 39279 if test "x$new_path" = x; then 39280 # It's still not found. Now this is an unrecoverable error. 39281 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of DUMPBIN, which resolves as \"$complete\", is not found." >&5 39282 $as_echo "$as_me: The path of DUMPBIN, which resolves as \"$complete\", is not found." >&6;} 39283 has_space=`$ECHO "$complete" | $GREP " "` 39284 if test "x$has_space" != x; then 39285 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 39286 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 39287 fi 39288 as_fn_error $? "Cannot locate the the path of DUMPBIN" "$LINENO" 5 39289 fi 39290 fi 39291 39292 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 39293 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 39294 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 39295 # "foo.exe" is OK but "foo" is an error. 39296 # 39297 # This test is therefore slightly more accurate than "test -f" to check for file presence. 39298 # It is also a way to make sure we got the proper file name for the real test later on. 39299 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 39300 if test "x$test_shortpath" = x; then 39301 # Short path failed, file does not exist as specified. 39302 # Try adding .exe or .cmd 39303 if test -f "${new_path}.exe"; then 39304 input_to_shortpath="${new_path}.exe" 39305 elif test -f "${new_path}.cmd"; then 39306 input_to_shortpath="${new_path}.cmd" 39307 else 39308 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of DUMPBIN, which resolves as \"$new_path\", is invalid." >&5 39309 $as_echo "$as_me: The path of DUMPBIN, which resolves as \"$new_path\", is invalid." >&6;} 39310 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 39311 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 39312 as_fn_error $? "Cannot locate the the path of DUMPBIN" "$LINENO" 5 39313 fi 39314 else 39315 input_to_shortpath="$new_path" 39316 fi 39317 39318 # Call helper function which possibly converts this using DOS-style short mode. 39319 # If so, the updated path is stored in $new_path. 39320 new_path="$input_to_shortpath" 39321 39322 input_path="$input_to_shortpath" 39323 # Check if we need to convert this using DOS-style short mode. If the path 39324 # contains just simple characters, use it. Otherwise (spaces, weird characters), 39325 # take no chances and rewrite it. 39326 # Note: m4 eats our [], so we need to use [ and ] instead. 39327 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 39328 if test "x$has_forbidden_chars" != x; then 39329 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 39330 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 39331 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 39332 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 39333 # Going to short mode and back again did indeed matter. Since short mode is 39334 # case insensitive, let's make it lowercase to improve readability. 39335 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 39336 # Now convert it back to Unix-style (cygpath) 39337 input_path=`$CYGPATH -u "$shortmode_path"` 39338 new_path="$input_path" 39339 fi 39340 fi 39341 39342 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 39343 if test "x$test_cygdrive_prefix" = x; then 39344 # As a simple fix, exclude /usr/bin since it's not a real path. 39345 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 39346 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 39347 # a path prefixed by /cygdrive for fixpath to work. 39348 new_path="$CYGWIN_ROOT_PATH$input_path" 39349 fi 39350 fi 39351 39352 # remove trailing .exe if any 39353 new_path="${new_path/%.exe/}" 39354 39355 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 39356 39357 # First separate the path from the arguments. This will split at the first 39358 # space. 39359 complete="$DUMPBIN" 39360 path="${complete%% *}" 39361 tmp="$complete EOL" 39362 arguments="${tmp#* }" 39363 39364 # Input might be given as Windows format, start by converting to 39365 # unix format. 39366 new_path="$path" 39367 39368 windows_path="$new_path" 39369 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 39370 unix_path=`$CYGPATH -u "$windows_path"` 39371 new_path="$unix_path" 39372 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 39373 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 39374 new_path="$unix_path" 39375 fi 39376 39377 39378 # Now try to locate executable using which 39379 new_path=`$WHICH "$new_path" 2> /dev/null` 39380 39381 if test "x$new_path" = x; then 39382 # Oops. Which didn't find the executable. 39383 # The splitting of arguments from the executable at a space might have been incorrect, 39384 # since paths with space are more likely in Windows. Give it another try with the whole 39385 # argument. 39386 path="$complete" 39387 arguments="EOL" 39388 new_path="$path" 39389 39390 windows_path="$new_path" 39391 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 39392 unix_path=`$CYGPATH -u "$windows_path"` 39393 new_path="$unix_path" 39394 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 39395 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 39396 new_path="$unix_path" 39397 fi 39398 39399 39400 new_path=`$WHICH "$new_path" 2> /dev/null` 39401 # bat and cmd files are not always considered executable in MSYS causing which 39402 # to not find them 39403 if test "x$new_path" = x \ 39404 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 39405 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 39406 new_path="$path" 39407 39408 windows_path="$new_path" 39409 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 39410 unix_path=`$CYGPATH -u "$windows_path"` 39411 new_path="$unix_path" 39412 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 39413 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 39414 new_path="$unix_path" 39415 fi 39416 39417 fi 39418 39419 if test "x$new_path" = x; then 39420 # It's still not found. Now this is an unrecoverable error. 39421 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of DUMPBIN, which resolves as \"$complete\", is not found." >&5 39422 $as_echo "$as_me: The path of DUMPBIN, which resolves as \"$complete\", is not found." >&6;} 39423 has_space=`$ECHO "$complete" | $GREP " "` 39424 if test "x$has_space" != x; then 39425 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 39426 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 39427 fi 39428 as_fn_error $? "Cannot locate the the path of DUMPBIN" "$LINENO" 5 39429 fi 39430 fi 39431 39432 # Now new_path has a complete unix path to the binary 39433 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 39434 # Keep paths in /bin as-is, but remove trailing .exe if any 39435 new_path="${new_path/%.exe/}" 39436 # Do not save /bin paths to all_fixpath_prefixes! 39437 else 39438 # Not in mixed or Windows style, start by that. 39439 new_path=`cmd //c echo $new_path` 39440 39441 input_path="$new_path" 39442 # Check if we need to convert this using DOS-style short mode. If the path 39443 # contains just simple characters, use it. Otherwise (spaces, weird characters), 39444 # take no chances and rewrite it. 39445 # Note: m4 eats our [], so we need to use [ and ] instead. 39446 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 39447 if test "x$has_forbidden_chars" != x; then 39448 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 39449 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 39450 fi 39451 39452 # Output is in $new_path 39453 39454 windows_path="$new_path" 39455 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 39456 unix_path=`$CYGPATH -u "$windows_path"` 39457 new_path="$unix_path" 39458 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 39459 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 39460 new_path="$unix_path" 39461 fi 39462 39463 # remove trailing .exe if any 39464 new_path="${new_path/%.exe/}" 39465 39466 # Save the first 10 bytes of this path to the storage, so fixpath can work. 39467 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 39468 fi 39469 39470 else 39471 # We're on a unix platform. Hooray! :) 39472 # First separate the path from the arguments. This will split at the first 39473 # space. 39474 complete="$DUMPBIN" 39475 path="${complete%% *}" 39476 tmp="$complete EOL" 39477 arguments="${tmp#* }" 39478 39479 # Cannot rely on the command "which" here since it doesn't always work. 39480 is_absolute_path=`$ECHO "$path" | $GREP ^/` 39481 if test -z "$is_absolute_path"; then 39482 # Path to executable is not absolute. Find it. 39483 IFS_save="$IFS" 39484 IFS=: 39485 for p in $PATH; do 39486 if test -f "$p/$path" && test -x "$p/$path"; then 39487 new_path="$p/$path" 39488 break 39489 fi 39490 done 39491 IFS="$IFS_save" 39492 else 39493 # This is an absolute path, we can use it without further modifications. 39494 new_path="$path" 39495 fi 39496 39497 if test "x$new_path" = x; then 39498 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of DUMPBIN, which resolves as \"$complete\", is not found." >&5 39499 $as_echo "$as_me: The path of DUMPBIN, which resolves as \"$complete\", is not found." >&6;} 39500 has_space=`$ECHO "$complete" | $GREP " "` 39501 if test "x$has_space" != x; then 39502 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 39503 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 39504 fi 39505 as_fn_error $? "Cannot locate the the path of DUMPBIN" "$LINENO" 5 39506 fi 39507 fi 39508 39509 # Now join together the path and the arguments once again 39510 if test "x$arguments" != xEOL; then 39511 new_complete="$new_path ${arguments% *}" 39512 else 39513 new_complete="$new_path" 39514 fi 39515 39516 if test "x$complete" != "x$new_complete"; then 39517 DUMPBIN="$new_complete" 39518 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting DUMPBIN to \"$new_complete\"" >&5 39519 $as_echo "$as_me: Rewriting DUMPBIN to \"$new_complete\"" >&6;} 39520 fi 39521 fi 39522 39523 # We need to check for 'msbuild.exe' because at the place where we expect to 39524 # find 'msbuild.exe' there's also a directory called 'msbuild' and configure 39525 # won't find the 'msbuild.exe' executable in that case (and the 39526 # 'ac_executable_extensions' is unusable due to performance reasons). 39527 # Notice that we intentionally don't fix up the path to MSBUILD because we 39528 # will call it in a DOS shell during freetype detection on Windows (see 39529 # 'LIB_SETUP_FREETYPE' in "libraries.m4" 39530 # Extract the first word of "msbuild.exe", so it can be a program name with args. 39531 set dummy msbuild.exe; ac_word=$2 39532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 39533 $as_echo_n "checking for $ac_word... " >&6; } 39534 if ${ac_cv_prog_MSBUILD+:} false; then : 39535 $as_echo_n "(cached) " >&6 39536 else 39537 if test -n "$MSBUILD"; then 39538 ac_cv_prog_MSBUILD="$MSBUILD" # Let the user override the test. 39539 else 39540 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 39541 for as_dir in $PATH 39542 do 39543 IFS=$as_save_IFS 39544 test -z "$as_dir" && as_dir=. 39545 for ac_exec_ext in '' $ac_executable_extensions; do 39546 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 39547 ac_cv_prog_MSBUILD="msbuild.exe" 39548 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 39549 break 2 39550 fi 39551 done 39552 done 39553 IFS=$as_save_IFS 39554 39555 fi 39556 fi 39557 MSBUILD=$ac_cv_prog_MSBUILD 39558 if test -n "$MSBUILD"; then 39559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSBUILD" >&5 39560 $as_echo "$MSBUILD" >&6; } 39561 else 39562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 39563 $as_echo "no" >&6; } 39564 fi 39565 39566 39567 fi 39568 39569 if test "x$OPENJDK_TARGET_OS" = xsolaris; then 39570 39571 39572 # Publish this variable in the help. 39573 39574 39575 if [ -z "${STRIP+x}" ]; then 39576 # The variable is not set by user, try to locate tool using the code snippet 39577 for ac_prog in strip 39578 do 39579 # Extract the first word of "$ac_prog", so it can be a program name with args. 39580 set dummy $ac_prog; ac_word=$2 39581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 39582 $as_echo_n "checking for $ac_word... " >&6; } 39583 if ${ac_cv_path_STRIP+:} false; then : 39584 $as_echo_n "(cached) " >&6 39585 else 39586 case $STRIP in 39587 [\\/]* | ?:[\\/]*) 39588 ac_cv_path_STRIP="$STRIP" # Let the user override the test with a path. 39589 ;; 39590 *) 39591 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 39592 for as_dir in $PATH 39593 do 39594 IFS=$as_save_IFS 39595 test -z "$as_dir" && as_dir=. 39596 for ac_exec_ext in '' $ac_executable_extensions; do 39597 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 39598 ac_cv_path_STRIP="$as_dir/$ac_word$ac_exec_ext" 39599 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 39600 break 2 39601 fi 39602 done 39603 done 39604 IFS=$as_save_IFS 39605 39606 ;; 39607 esac 39608 fi 39609 STRIP=$ac_cv_path_STRIP 39610 if test -n "$STRIP"; then 39611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 39612 $as_echo "$STRIP" >&6; } 39613 else 39614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 39615 $as_echo "no" >&6; } 39616 fi 39617 39618 39619 test -n "$STRIP" && break 39620 done 39621 39622 else 39623 # The variable is set, but is it from the command line or the environment? 39624 39625 # Try to remove the string !STRIP! from our list. 39626 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!STRIP!/} 39627 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 39628 # If it failed, the variable was not from the command line. Ignore it, 39629 # but warn the user (except for BASH, which is always set by the calling BASH). 39630 if test "xSTRIP" != xBASH; then 39631 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of STRIP from the environment. Use command line variables instead." >&5 39632 $as_echo "$as_me: WARNING: Ignoring value of STRIP from the environment. Use command line variables instead." >&2;} 39633 fi 39634 # Try to locate tool using the code snippet 39635 for ac_prog in strip 39636 do 39637 # Extract the first word of "$ac_prog", so it can be a program name with args. 39638 set dummy $ac_prog; ac_word=$2 39639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 39640 $as_echo_n "checking for $ac_word... " >&6; } 39641 if ${ac_cv_path_STRIP+:} false; then : 39642 $as_echo_n "(cached) " >&6 39643 else 39644 case $STRIP in 39645 [\\/]* | ?:[\\/]*) 39646 ac_cv_path_STRIP="$STRIP" # Let the user override the test with a path. 39647 ;; 39648 *) 39649 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 39650 for as_dir in $PATH 39651 do 39652 IFS=$as_save_IFS 39653 test -z "$as_dir" && as_dir=. 39654 for ac_exec_ext in '' $ac_executable_extensions; do 39655 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 39656 ac_cv_path_STRIP="$as_dir/$ac_word$ac_exec_ext" 39657 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 39658 break 2 39659 fi 39660 done 39661 done 39662 IFS=$as_save_IFS 39663 39664 ;; 39665 esac 39666 fi 39667 STRIP=$ac_cv_path_STRIP 39668 if test -n "$STRIP"; then 39669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 39670 $as_echo "$STRIP" >&6; } 39671 else 39672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 39673 $as_echo "no" >&6; } 39674 fi 39675 39676 39677 test -n "$STRIP" && break 39678 done 39679 39680 else 39681 # If it succeeded, then it was overridden by the user. We will use it 39682 # for the tool. 39683 39684 # First remove it from the list of overridden variables, so we can test 39685 # for unknown variables in the end. 39686 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 39687 39688 # Check if we try to supply an empty value 39689 if test "x$STRIP" = x; then 39690 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool STRIP= (no value)" >&5 39691 $as_echo "$as_me: Setting user supplied tool STRIP= (no value)" >&6;} 39692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for STRIP" >&5 39693 $as_echo_n "checking for STRIP... " >&6; } 39694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 39695 $as_echo "disabled" >&6; } 39696 else 39697 # Check if the provided tool contains a complete path. 39698 tool_specified="$STRIP" 39699 tool_basename="${tool_specified##*/}" 39700 if test "x$tool_basename" = "x$tool_specified"; then 39701 # A command without a complete path is provided, search $PATH. 39702 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool STRIP=$tool_basename" >&5 39703 $as_echo "$as_me: Will search for user supplied tool STRIP=$tool_basename" >&6;} 39704 # Extract the first word of "$tool_basename", so it can be a program name with args. 39705 set dummy $tool_basename; ac_word=$2 39706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 39707 $as_echo_n "checking for $ac_word... " >&6; } 39708 if ${ac_cv_path_STRIP+:} false; then : 39709 $as_echo_n "(cached) " >&6 39710 else 39711 case $STRIP in 39712 [\\/]* | ?:[\\/]*) 39713 ac_cv_path_STRIP="$STRIP" # Let the user override the test with a path. 39714 ;; 39715 *) 39716 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 39717 for as_dir in $PATH 39718 do 39719 IFS=$as_save_IFS 39720 test -z "$as_dir" && as_dir=. 39721 for ac_exec_ext in '' $ac_executable_extensions; do 39722 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 39723 ac_cv_path_STRIP="$as_dir/$ac_word$ac_exec_ext" 39724 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 39725 break 2 39726 fi 39727 done 39728 done 39729 IFS=$as_save_IFS 39730 39731 ;; 39732 esac 39733 fi 39734 STRIP=$ac_cv_path_STRIP 39735 if test -n "$STRIP"; then 39736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 39737 $as_echo "$STRIP" >&6; } 39738 else 39739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 39740 $as_echo "no" >&6; } 39741 fi 39742 39743 39744 if test "x$STRIP" = x; then 39745 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 39746 fi 39747 else 39748 # Otherwise we believe it is a complete path. Use it as it is. 39749 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool STRIP=$tool_specified" >&5 39750 $as_echo "$as_me: Will use user supplied tool STRIP=$tool_specified" >&6;} 39751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for STRIP" >&5 39752 $as_echo_n "checking for STRIP... " >&6; } 39753 if test ! -x "$tool_specified"; then 39754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 39755 $as_echo "not found" >&6; } 39756 as_fn_error $? "User supplied tool STRIP=$tool_specified does not exist or is not executable" "$LINENO" 5 39757 fi 39758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 39759 $as_echo "$tool_specified" >&6; } 39760 fi 39761 fi 39762 fi 39763 39764 fi 39765 39766 39767 39768 # Only process if variable expands to non-empty 39769 39770 if test "x$STRIP" != x; then 39771 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 39772 39773 # First separate the path from the arguments. This will split at the first 39774 # space. 39775 complete="$STRIP" 39776 path="${complete%% *}" 39777 tmp="$complete EOL" 39778 arguments="${tmp#* }" 39779 39780 # Input might be given as Windows format, start by converting to 39781 # unix format. 39782 new_path=`$CYGPATH -u "$path"` 39783 39784 # Now try to locate executable using which 39785 new_path=`$WHICH "$new_path" 2> /dev/null` 39786 # bat and cmd files are not always considered executable in cygwin causing which 39787 # to not find them 39788 if test "x$new_path" = x \ 39789 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 39790 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 39791 new_path=`$CYGPATH -u "$path"` 39792 fi 39793 if test "x$new_path" = x; then 39794 # Oops. Which didn't find the executable. 39795 # The splitting of arguments from the executable at a space might have been incorrect, 39796 # since paths with space are more likely in Windows. Give it another try with the whole 39797 # argument. 39798 path="$complete" 39799 arguments="EOL" 39800 new_path=`$CYGPATH -u "$path"` 39801 new_path=`$WHICH "$new_path" 2> /dev/null` 39802 # bat and cmd files are not always considered executable in cygwin causing which 39803 # to not find them 39804 if test "x$new_path" = x \ 39805 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 39806 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 39807 new_path=`$CYGPATH -u "$path"` 39808 fi 39809 if test "x$new_path" = x; then 39810 # It's still not found. Now this is an unrecoverable error. 39811 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of STRIP, which resolves as \"$complete\", is not found." >&5 39812 $as_echo "$as_me: The path of STRIP, which resolves as \"$complete\", is not found." >&6;} 39813 has_space=`$ECHO "$complete" | $GREP " "` 39814 if test "x$has_space" != x; then 39815 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 39816 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 39817 fi 39818 as_fn_error $? "Cannot locate the the path of STRIP" "$LINENO" 5 39819 fi 39820 fi 39821 39822 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 39823 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 39824 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 39825 # "foo.exe" is OK but "foo" is an error. 39826 # 39827 # This test is therefore slightly more accurate than "test -f" to check for file presence. 39828 # It is also a way to make sure we got the proper file name for the real test later on. 39829 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 39830 if test "x$test_shortpath" = x; then 39831 # Short path failed, file does not exist as specified. 39832 # Try adding .exe or .cmd 39833 if test -f "${new_path}.exe"; then 39834 input_to_shortpath="${new_path}.exe" 39835 elif test -f "${new_path}.cmd"; then 39836 input_to_shortpath="${new_path}.cmd" 39837 else 39838 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of STRIP, which resolves as \"$new_path\", is invalid." >&5 39839 $as_echo "$as_me: The path of STRIP, which resolves as \"$new_path\", is invalid." >&6;} 39840 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 39841 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 39842 as_fn_error $? "Cannot locate the the path of STRIP" "$LINENO" 5 39843 fi 39844 else 39845 input_to_shortpath="$new_path" 39846 fi 39847 39848 # Call helper function which possibly converts this using DOS-style short mode. 39849 # If so, the updated path is stored in $new_path. 39850 new_path="$input_to_shortpath" 39851 39852 input_path="$input_to_shortpath" 39853 # Check if we need to convert this using DOS-style short mode. If the path 39854 # contains just simple characters, use it. Otherwise (spaces, weird characters), 39855 # take no chances and rewrite it. 39856 # Note: m4 eats our [], so we need to use [ and ] instead. 39857 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 39858 if test "x$has_forbidden_chars" != x; then 39859 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 39860 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 39861 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 39862 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 39863 # Going to short mode and back again did indeed matter. Since short mode is 39864 # case insensitive, let's make it lowercase to improve readability. 39865 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 39866 # Now convert it back to Unix-style (cygpath) 39867 input_path=`$CYGPATH -u "$shortmode_path"` 39868 new_path="$input_path" 39869 fi 39870 fi 39871 39872 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 39873 if test "x$test_cygdrive_prefix" = x; then 39874 # As a simple fix, exclude /usr/bin since it's not a real path. 39875 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 39876 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 39877 # a path prefixed by /cygdrive for fixpath to work. 39878 new_path="$CYGWIN_ROOT_PATH$input_path" 39879 fi 39880 fi 39881 39882 # remove trailing .exe if any 39883 new_path="${new_path/%.exe/}" 39884 39885 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 39886 39887 # First separate the path from the arguments. This will split at the first 39888 # space. 39889 complete="$STRIP" 39890 path="${complete%% *}" 39891 tmp="$complete EOL" 39892 arguments="${tmp#* }" 39893 39894 # Input might be given as Windows format, start by converting to 39895 # unix format. 39896 new_path="$path" 39897 39898 windows_path="$new_path" 39899 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 39900 unix_path=`$CYGPATH -u "$windows_path"` 39901 new_path="$unix_path" 39902 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 39903 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 39904 new_path="$unix_path" 39905 fi 39906 39907 39908 # Now try to locate executable using which 39909 new_path=`$WHICH "$new_path" 2> /dev/null` 39910 39911 if test "x$new_path" = x; then 39912 # Oops. Which didn't find the executable. 39913 # The splitting of arguments from the executable at a space might have been incorrect, 39914 # since paths with space are more likely in Windows. Give it another try with the whole 39915 # argument. 39916 path="$complete" 39917 arguments="EOL" 39918 new_path="$path" 39919 39920 windows_path="$new_path" 39921 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 39922 unix_path=`$CYGPATH -u "$windows_path"` 39923 new_path="$unix_path" 39924 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 39925 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 39926 new_path="$unix_path" 39927 fi 39928 39929 39930 new_path=`$WHICH "$new_path" 2> /dev/null` 39931 # bat and cmd files are not always considered executable in MSYS causing which 39932 # to not find them 39933 if test "x$new_path" = x \ 39934 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 39935 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 39936 new_path="$path" 39937 39938 windows_path="$new_path" 39939 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 39940 unix_path=`$CYGPATH -u "$windows_path"` 39941 new_path="$unix_path" 39942 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 39943 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 39944 new_path="$unix_path" 39945 fi 39946 39947 fi 39948 39949 if test "x$new_path" = x; then 39950 # It's still not found. Now this is an unrecoverable error. 39951 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of STRIP, which resolves as \"$complete\", is not found." >&5 39952 $as_echo "$as_me: The path of STRIP, which resolves as \"$complete\", is not found." >&6;} 39953 has_space=`$ECHO "$complete" | $GREP " "` 39954 if test "x$has_space" != x; then 39955 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 39956 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 39957 fi 39958 as_fn_error $? "Cannot locate the the path of STRIP" "$LINENO" 5 39959 fi 39960 fi 39961 39962 # Now new_path has a complete unix path to the binary 39963 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 39964 # Keep paths in /bin as-is, but remove trailing .exe if any 39965 new_path="${new_path/%.exe/}" 39966 # Do not save /bin paths to all_fixpath_prefixes! 39967 else 39968 # Not in mixed or Windows style, start by that. 39969 new_path=`cmd //c echo $new_path` 39970 39971 input_path="$new_path" 39972 # Check if we need to convert this using DOS-style short mode. If the path 39973 # contains just simple characters, use it. Otherwise (spaces, weird characters), 39974 # take no chances and rewrite it. 39975 # Note: m4 eats our [], so we need to use [ and ] instead. 39976 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 39977 if test "x$has_forbidden_chars" != x; then 39978 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 39979 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 39980 fi 39981 39982 # Output is in $new_path 39983 39984 windows_path="$new_path" 39985 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 39986 unix_path=`$CYGPATH -u "$windows_path"` 39987 new_path="$unix_path" 39988 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 39989 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 39990 new_path="$unix_path" 39991 fi 39992 39993 # remove trailing .exe if any 39994 new_path="${new_path/%.exe/}" 39995 39996 # Save the first 10 bytes of this path to the storage, so fixpath can work. 39997 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 39998 fi 39999 40000 else 40001 # We're on a unix platform. Hooray! :) 40002 # First separate the path from the arguments. This will split at the first 40003 # space. 40004 complete="$STRIP" 40005 path="${complete%% *}" 40006 tmp="$complete EOL" 40007 arguments="${tmp#* }" 40008 40009 # Cannot rely on the command "which" here since it doesn't always work. 40010 is_absolute_path=`$ECHO "$path" | $GREP ^/` 40011 if test -z "$is_absolute_path"; then 40012 # Path to executable is not absolute. Find it. 40013 IFS_save="$IFS" 40014 IFS=: 40015 for p in $PATH; do 40016 if test -f "$p/$path" && test -x "$p/$path"; then 40017 new_path="$p/$path" 40018 break 40019 fi 40020 done 40021 IFS="$IFS_save" 40022 else 40023 # This is an absolute path, we can use it without further modifications. 40024 new_path="$path" 40025 fi 40026 40027 if test "x$new_path" = x; then 40028 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of STRIP, which resolves as \"$complete\", is not found." >&5 40029 $as_echo "$as_me: The path of STRIP, which resolves as \"$complete\", is not found." >&6;} 40030 has_space=`$ECHO "$complete" | $GREP " "` 40031 if test "x$has_space" != x; then 40032 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 40033 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 40034 fi 40035 as_fn_error $? "Cannot locate the the path of STRIP" "$LINENO" 5 40036 fi 40037 fi 40038 40039 # Now join together the path and the arguments once again 40040 if test "x$arguments" != xEOL; then 40041 new_complete="$new_path ${arguments% *}" 40042 else 40043 new_complete="$new_path" 40044 fi 40045 40046 if test "x$complete" != "x$new_complete"; then 40047 STRIP="$new_complete" 40048 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting STRIP to \"$new_complete\"" >&5 40049 $as_echo "$as_me: Rewriting STRIP to \"$new_complete\"" >&6;} 40050 fi 40051 fi 40052 40053 40054 40055 # Publish this variable in the help. 40056 40057 40058 if [ -z "${NM+x}" ]; then 40059 # The variable is not set by user, try to locate tool using the code snippet 40060 for ac_prog in nm 40061 do 40062 # Extract the first word of "$ac_prog", so it can be a program name with args. 40063 set dummy $ac_prog; ac_word=$2 40064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 40065 $as_echo_n "checking for $ac_word... " >&6; } 40066 if ${ac_cv_path_NM+:} false; then : 40067 $as_echo_n "(cached) " >&6 40068 else 40069 case $NM in 40070 [\\/]* | ?:[\\/]*) 40071 ac_cv_path_NM="$NM" # Let the user override the test with a path. 40072 ;; 40073 *) 40074 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 40075 for as_dir in $PATH 40076 do 40077 IFS=$as_save_IFS 40078 test -z "$as_dir" && as_dir=. 40079 for ac_exec_ext in '' $ac_executable_extensions; do 40080 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 40081 ac_cv_path_NM="$as_dir/$ac_word$ac_exec_ext" 40082 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 40083 break 2 40084 fi 40085 done 40086 done 40087 IFS=$as_save_IFS 40088 40089 ;; 40090 esac 40091 fi 40092 NM=$ac_cv_path_NM 40093 if test -n "$NM"; then 40094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5 40095 $as_echo "$NM" >&6; } 40096 else 40097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 40098 $as_echo "no" >&6; } 40099 fi 40100 40101 40102 test -n "$NM" && break 40103 done 40104 40105 else 40106 # The variable is set, but is it from the command line or the environment? 40107 40108 # Try to remove the string !NM! from our list. 40109 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!NM!/} 40110 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 40111 # If it failed, the variable was not from the command line. Ignore it, 40112 # but warn the user (except for BASH, which is always set by the calling BASH). 40113 if test "xNM" != xBASH; then 40114 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of NM from the environment. Use command line variables instead." >&5 40115 $as_echo "$as_me: WARNING: Ignoring value of NM from the environment. Use command line variables instead." >&2;} 40116 fi 40117 # Try to locate tool using the code snippet 40118 for ac_prog in nm 40119 do 40120 # Extract the first word of "$ac_prog", so it can be a program name with args. 40121 set dummy $ac_prog; ac_word=$2 40122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 40123 $as_echo_n "checking for $ac_word... " >&6; } 40124 if ${ac_cv_path_NM+:} false; then : 40125 $as_echo_n "(cached) " >&6 40126 else 40127 case $NM in 40128 [\\/]* | ?:[\\/]*) 40129 ac_cv_path_NM="$NM" # Let the user override the test with a path. 40130 ;; 40131 *) 40132 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 40133 for as_dir in $PATH 40134 do 40135 IFS=$as_save_IFS 40136 test -z "$as_dir" && as_dir=. 40137 for ac_exec_ext in '' $ac_executable_extensions; do 40138 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 40139 ac_cv_path_NM="$as_dir/$ac_word$ac_exec_ext" 40140 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 40141 break 2 40142 fi 40143 done 40144 done 40145 IFS=$as_save_IFS 40146 40147 ;; 40148 esac 40149 fi 40150 NM=$ac_cv_path_NM 40151 if test -n "$NM"; then 40152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5 40153 $as_echo "$NM" >&6; } 40154 else 40155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 40156 $as_echo "no" >&6; } 40157 fi 40158 40159 40160 test -n "$NM" && break 40161 done 40162 40163 else 40164 # If it succeeded, then it was overridden by the user. We will use it 40165 # for the tool. 40166 40167 # First remove it from the list of overridden variables, so we can test 40168 # for unknown variables in the end. 40169 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 40170 40171 # Check if we try to supply an empty value 40172 if test "x$NM" = x; then 40173 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool NM= (no value)" >&5 40174 $as_echo "$as_me: Setting user supplied tool NM= (no value)" >&6;} 40175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NM" >&5 40176 $as_echo_n "checking for NM... " >&6; } 40177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 40178 $as_echo "disabled" >&6; } 40179 else 40180 # Check if the provided tool contains a complete path. 40181 tool_specified="$NM" 40182 tool_basename="${tool_specified##*/}" 40183 if test "x$tool_basename" = "x$tool_specified"; then 40184 # A command without a complete path is provided, search $PATH. 40185 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool NM=$tool_basename" >&5 40186 $as_echo "$as_me: Will search for user supplied tool NM=$tool_basename" >&6;} 40187 # Extract the first word of "$tool_basename", so it can be a program name with args. 40188 set dummy $tool_basename; ac_word=$2 40189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 40190 $as_echo_n "checking for $ac_word... " >&6; } 40191 if ${ac_cv_path_NM+:} false; then : 40192 $as_echo_n "(cached) " >&6 40193 else 40194 case $NM in 40195 [\\/]* | ?:[\\/]*) 40196 ac_cv_path_NM="$NM" # Let the user override the test with a path. 40197 ;; 40198 *) 40199 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 40200 for as_dir in $PATH 40201 do 40202 IFS=$as_save_IFS 40203 test -z "$as_dir" && as_dir=. 40204 for ac_exec_ext in '' $ac_executable_extensions; do 40205 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 40206 ac_cv_path_NM="$as_dir/$ac_word$ac_exec_ext" 40207 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 40208 break 2 40209 fi 40210 done 40211 done 40212 IFS=$as_save_IFS 40213 40214 ;; 40215 esac 40216 fi 40217 NM=$ac_cv_path_NM 40218 if test -n "$NM"; then 40219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5 40220 $as_echo "$NM" >&6; } 40221 else 40222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 40223 $as_echo "no" >&6; } 40224 fi 40225 40226 40227 if test "x$NM" = x; then 40228 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 40229 fi 40230 else 40231 # Otherwise we believe it is a complete path. Use it as it is. 40232 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool NM=$tool_specified" >&5 40233 $as_echo "$as_me: Will use user supplied tool NM=$tool_specified" >&6;} 40234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NM" >&5 40235 $as_echo_n "checking for NM... " >&6; } 40236 if test ! -x "$tool_specified"; then 40237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 40238 $as_echo "not found" >&6; } 40239 as_fn_error $? "User supplied tool NM=$tool_specified does not exist or is not executable" "$LINENO" 5 40240 fi 40241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 40242 $as_echo "$tool_specified" >&6; } 40243 fi 40244 fi 40245 fi 40246 40247 fi 40248 40249 40250 40251 # Only process if variable expands to non-empty 40252 40253 if test "x$NM" != x; then 40254 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 40255 40256 # First separate the path from the arguments. This will split at the first 40257 # space. 40258 complete="$NM" 40259 path="${complete%% *}" 40260 tmp="$complete EOL" 40261 arguments="${tmp#* }" 40262 40263 # Input might be given as Windows format, start by converting to 40264 # unix format. 40265 new_path=`$CYGPATH -u "$path"` 40266 40267 # Now try to locate executable using which 40268 new_path=`$WHICH "$new_path" 2> /dev/null` 40269 # bat and cmd files are not always considered executable in cygwin causing which 40270 # to not find them 40271 if test "x$new_path" = x \ 40272 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 40273 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 40274 new_path=`$CYGPATH -u "$path"` 40275 fi 40276 if test "x$new_path" = x; then 40277 # Oops. Which didn't find the executable. 40278 # The splitting of arguments from the executable at a space might have been incorrect, 40279 # since paths with space are more likely in Windows. Give it another try with the whole 40280 # argument. 40281 path="$complete" 40282 arguments="EOL" 40283 new_path=`$CYGPATH -u "$path"` 40284 new_path=`$WHICH "$new_path" 2> /dev/null` 40285 # bat and cmd files are not always considered executable in cygwin causing which 40286 # to not find them 40287 if test "x$new_path" = x \ 40288 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 40289 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 40290 new_path=`$CYGPATH -u "$path"` 40291 fi 40292 if test "x$new_path" = x; then 40293 # It's still not found. Now this is an unrecoverable error. 40294 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of NM, which resolves as \"$complete\", is not found." >&5 40295 $as_echo "$as_me: The path of NM, which resolves as \"$complete\", is not found." >&6;} 40296 has_space=`$ECHO "$complete" | $GREP " "` 40297 if test "x$has_space" != x; then 40298 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 40299 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 40300 fi 40301 as_fn_error $? "Cannot locate the the path of NM" "$LINENO" 5 40302 fi 40303 fi 40304 40305 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 40306 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 40307 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 40308 # "foo.exe" is OK but "foo" is an error. 40309 # 40310 # This test is therefore slightly more accurate than "test -f" to check for file presence. 40311 # It is also a way to make sure we got the proper file name for the real test later on. 40312 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 40313 if test "x$test_shortpath" = x; then 40314 # Short path failed, file does not exist as specified. 40315 # Try adding .exe or .cmd 40316 if test -f "${new_path}.exe"; then 40317 input_to_shortpath="${new_path}.exe" 40318 elif test -f "${new_path}.cmd"; then 40319 input_to_shortpath="${new_path}.cmd" 40320 else 40321 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of NM, which resolves as \"$new_path\", is invalid." >&5 40322 $as_echo "$as_me: The path of NM, which resolves as \"$new_path\", is invalid." >&6;} 40323 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 40324 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 40325 as_fn_error $? "Cannot locate the the path of NM" "$LINENO" 5 40326 fi 40327 else 40328 input_to_shortpath="$new_path" 40329 fi 40330 40331 # Call helper function which possibly converts this using DOS-style short mode. 40332 # If so, the updated path is stored in $new_path. 40333 new_path="$input_to_shortpath" 40334 40335 input_path="$input_to_shortpath" 40336 # Check if we need to convert this using DOS-style short mode. If the path 40337 # contains just simple characters, use it. Otherwise (spaces, weird characters), 40338 # take no chances and rewrite it. 40339 # Note: m4 eats our [], so we need to use [ and ] instead. 40340 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 40341 if test "x$has_forbidden_chars" != x; then 40342 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 40343 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 40344 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 40345 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 40346 # Going to short mode and back again did indeed matter. Since short mode is 40347 # case insensitive, let's make it lowercase to improve readability. 40348 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 40349 # Now convert it back to Unix-style (cygpath) 40350 input_path=`$CYGPATH -u "$shortmode_path"` 40351 new_path="$input_path" 40352 fi 40353 fi 40354 40355 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 40356 if test "x$test_cygdrive_prefix" = x; then 40357 # As a simple fix, exclude /usr/bin since it's not a real path. 40358 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 40359 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 40360 # a path prefixed by /cygdrive for fixpath to work. 40361 new_path="$CYGWIN_ROOT_PATH$input_path" 40362 fi 40363 fi 40364 40365 # remove trailing .exe if any 40366 new_path="${new_path/%.exe/}" 40367 40368 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 40369 40370 # First separate the path from the arguments. This will split at the first 40371 # space. 40372 complete="$NM" 40373 path="${complete%% *}" 40374 tmp="$complete EOL" 40375 arguments="${tmp#* }" 40376 40377 # Input might be given as Windows format, start by converting to 40378 # unix format. 40379 new_path="$path" 40380 40381 windows_path="$new_path" 40382 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 40383 unix_path=`$CYGPATH -u "$windows_path"` 40384 new_path="$unix_path" 40385 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 40386 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 40387 new_path="$unix_path" 40388 fi 40389 40390 40391 # Now try to locate executable using which 40392 new_path=`$WHICH "$new_path" 2> /dev/null` 40393 40394 if test "x$new_path" = x; then 40395 # Oops. Which didn't find the executable. 40396 # The splitting of arguments from the executable at a space might have been incorrect, 40397 # since paths with space are more likely in Windows. Give it another try with the whole 40398 # argument. 40399 path="$complete" 40400 arguments="EOL" 40401 new_path="$path" 40402 40403 windows_path="$new_path" 40404 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 40405 unix_path=`$CYGPATH -u "$windows_path"` 40406 new_path="$unix_path" 40407 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 40408 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 40409 new_path="$unix_path" 40410 fi 40411 40412 40413 new_path=`$WHICH "$new_path" 2> /dev/null` 40414 # bat and cmd files are not always considered executable in MSYS causing which 40415 # to not find them 40416 if test "x$new_path" = x \ 40417 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 40418 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 40419 new_path="$path" 40420 40421 windows_path="$new_path" 40422 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 40423 unix_path=`$CYGPATH -u "$windows_path"` 40424 new_path="$unix_path" 40425 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 40426 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 40427 new_path="$unix_path" 40428 fi 40429 40430 fi 40431 40432 if test "x$new_path" = x; then 40433 # It's still not found. Now this is an unrecoverable error. 40434 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of NM, which resolves as \"$complete\", is not found." >&5 40435 $as_echo "$as_me: The path of NM, which resolves as \"$complete\", is not found." >&6;} 40436 has_space=`$ECHO "$complete" | $GREP " "` 40437 if test "x$has_space" != x; then 40438 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 40439 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 40440 fi 40441 as_fn_error $? "Cannot locate the the path of NM" "$LINENO" 5 40442 fi 40443 fi 40444 40445 # Now new_path has a complete unix path to the binary 40446 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 40447 # Keep paths in /bin as-is, but remove trailing .exe if any 40448 new_path="${new_path/%.exe/}" 40449 # Do not save /bin paths to all_fixpath_prefixes! 40450 else 40451 # Not in mixed or Windows style, start by that. 40452 new_path=`cmd //c echo $new_path` 40453 40454 input_path="$new_path" 40455 # Check if we need to convert this using DOS-style short mode. If the path 40456 # contains just simple characters, use it. Otherwise (spaces, weird characters), 40457 # take no chances and rewrite it. 40458 # Note: m4 eats our [], so we need to use [ and ] instead. 40459 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 40460 if test "x$has_forbidden_chars" != x; then 40461 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 40462 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 40463 fi 40464 40465 # Output is in $new_path 40466 40467 windows_path="$new_path" 40468 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 40469 unix_path=`$CYGPATH -u "$windows_path"` 40470 new_path="$unix_path" 40471 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 40472 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 40473 new_path="$unix_path" 40474 fi 40475 40476 # remove trailing .exe if any 40477 new_path="${new_path/%.exe/}" 40478 40479 # Save the first 10 bytes of this path to the storage, so fixpath can work. 40480 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 40481 fi 40482 40483 else 40484 # We're on a unix platform. Hooray! :) 40485 # First separate the path from the arguments. This will split at the first 40486 # space. 40487 complete="$NM" 40488 path="${complete%% *}" 40489 tmp="$complete EOL" 40490 arguments="${tmp#* }" 40491 40492 # Cannot rely on the command "which" here since it doesn't always work. 40493 is_absolute_path=`$ECHO "$path" | $GREP ^/` 40494 if test -z "$is_absolute_path"; then 40495 # Path to executable is not absolute. Find it. 40496 IFS_save="$IFS" 40497 IFS=: 40498 for p in $PATH; do 40499 if test -f "$p/$path" && test -x "$p/$path"; then 40500 new_path="$p/$path" 40501 break 40502 fi 40503 done 40504 IFS="$IFS_save" 40505 else 40506 # This is an absolute path, we can use it without further modifications. 40507 new_path="$path" 40508 fi 40509 40510 if test "x$new_path" = x; then 40511 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of NM, which resolves as \"$complete\", is not found." >&5 40512 $as_echo "$as_me: The path of NM, which resolves as \"$complete\", is not found." >&6;} 40513 has_space=`$ECHO "$complete" | $GREP " "` 40514 if test "x$has_space" != x; then 40515 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 40516 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 40517 fi 40518 as_fn_error $? "Cannot locate the the path of NM" "$LINENO" 5 40519 fi 40520 fi 40521 40522 # Now join together the path and the arguments once again 40523 if test "x$arguments" != xEOL; then 40524 new_complete="$new_path ${arguments% *}" 40525 else 40526 new_complete="$new_path" 40527 fi 40528 40529 if test "x$complete" != "x$new_complete"; then 40530 NM="$new_complete" 40531 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting NM to \"$new_complete\"" >&5 40532 $as_echo "$as_me: Rewriting NM to \"$new_complete\"" >&6;} 40533 fi 40534 fi 40535 40536 40537 40538 # Publish this variable in the help. 40539 40540 40541 if [ -z "${GNM+x}" ]; then 40542 # The variable is not set by user, try to locate tool using the code snippet 40543 for ac_prog in gnm 40544 do 40545 # Extract the first word of "$ac_prog", so it can be a program name with args. 40546 set dummy $ac_prog; ac_word=$2 40547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 40548 $as_echo_n "checking for $ac_word... " >&6; } 40549 if ${ac_cv_path_GNM+:} false; then : 40550 $as_echo_n "(cached) " >&6 40551 else 40552 case $GNM in 40553 [\\/]* | ?:[\\/]*) 40554 ac_cv_path_GNM="$GNM" # Let the user override the test with a path. 40555 ;; 40556 *) 40557 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 40558 for as_dir in $PATH 40559 do 40560 IFS=$as_save_IFS 40561 test -z "$as_dir" && as_dir=. 40562 for ac_exec_ext in '' $ac_executable_extensions; do 40563 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 40564 ac_cv_path_GNM="$as_dir/$ac_word$ac_exec_ext" 40565 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 40566 break 2 40567 fi 40568 done 40569 done 40570 IFS=$as_save_IFS 40571 40572 ;; 40573 esac 40574 fi 40575 GNM=$ac_cv_path_GNM 40576 if test -n "$GNM"; then 40577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNM" >&5 40578 $as_echo "$GNM" >&6; } 40579 else 40580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 40581 $as_echo "no" >&6; } 40582 fi 40583 40584 40585 test -n "$GNM" && break 40586 done 40587 40588 else 40589 # The variable is set, but is it from the command line or the environment? 40590 40591 # Try to remove the string !GNM! from our list. 40592 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!GNM!/} 40593 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 40594 # If it failed, the variable was not from the command line. Ignore it, 40595 # but warn the user (except for BASH, which is always set by the calling BASH). 40596 if test "xGNM" != xBASH; then 40597 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of GNM from the environment. Use command line variables instead." >&5 40598 $as_echo "$as_me: WARNING: Ignoring value of GNM from the environment. Use command line variables instead." >&2;} 40599 fi 40600 # Try to locate tool using the code snippet 40601 for ac_prog in gnm 40602 do 40603 # Extract the first word of "$ac_prog", so it can be a program name with args. 40604 set dummy $ac_prog; ac_word=$2 40605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 40606 $as_echo_n "checking for $ac_word... " >&6; } 40607 if ${ac_cv_path_GNM+:} false; then : 40608 $as_echo_n "(cached) " >&6 40609 else 40610 case $GNM in 40611 [\\/]* | ?:[\\/]*) 40612 ac_cv_path_GNM="$GNM" # Let the user override the test with a path. 40613 ;; 40614 *) 40615 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 40616 for as_dir in $PATH 40617 do 40618 IFS=$as_save_IFS 40619 test -z "$as_dir" && as_dir=. 40620 for ac_exec_ext in '' $ac_executable_extensions; do 40621 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 40622 ac_cv_path_GNM="$as_dir/$ac_word$ac_exec_ext" 40623 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 40624 break 2 40625 fi 40626 done 40627 done 40628 IFS=$as_save_IFS 40629 40630 ;; 40631 esac 40632 fi 40633 GNM=$ac_cv_path_GNM 40634 if test -n "$GNM"; then 40635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNM" >&5 40636 $as_echo "$GNM" >&6; } 40637 else 40638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 40639 $as_echo "no" >&6; } 40640 fi 40641 40642 40643 test -n "$GNM" && break 40644 done 40645 40646 else 40647 # If it succeeded, then it was overridden by the user. We will use it 40648 # for the tool. 40649 40650 # First remove it from the list of overridden variables, so we can test 40651 # for unknown variables in the end. 40652 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 40653 40654 # Check if we try to supply an empty value 40655 if test "x$GNM" = x; then 40656 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool GNM= (no value)" >&5 40657 $as_echo "$as_me: Setting user supplied tool GNM= (no value)" >&6;} 40658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNM" >&5 40659 $as_echo_n "checking for GNM... " >&6; } 40660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 40661 $as_echo "disabled" >&6; } 40662 else 40663 # Check if the provided tool contains a complete path. 40664 tool_specified="$GNM" 40665 tool_basename="${tool_specified##*/}" 40666 if test "x$tool_basename" = "x$tool_specified"; then 40667 # A command without a complete path is provided, search $PATH. 40668 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool GNM=$tool_basename" >&5 40669 $as_echo "$as_me: Will search for user supplied tool GNM=$tool_basename" >&6;} 40670 # Extract the first word of "$tool_basename", so it can be a program name with args. 40671 set dummy $tool_basename; ac_word=$2 40672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 40673 $as_echo_n "checking for $ac_word... " >&6; } 40674 if ${ac_cv_path_GNM+:} false; then : 40675 $as_echo_n "(cached) " >&6 40676 else 40677 case $GNM in 40678 [\\/]* | ?:[\\/]*) 40679 ac_cv_path_GNM="$GNM" # Let the user override the test with a path. 40680 ;; 40681 *) 40682 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 40683 for as_dir in $PATH 40684 do 40685 IFS=$as_save_IFS 40686 test -z "$as_dir" && as_dir=. 40687 for ac_exec_ext in '' $ac_executable_extensions; do 40688 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 40689 ac_cv_path_GNM="$as_dir/$ac_word$ac_exec_ext" 40690 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 40691 break 2 40692 fi 40693 done 40694 done 40695 IFS=$as_save_IFS 40696 40697 ;; 40698 esac 40699 fi 40700 GNM=$ac_cv_path_GNM 40701 if test -n "$GNM"; then 40702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNM" >&5 40703 $as_echo "$GNM" >&6; } 40704 else 40705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 40706 $as_echo "no" >&6; } 40707 fi 40708 40709 40710 if test "x$GNM" = x; then 40711 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 40712 fi 40713 else 40714 # Otherwise we believe it is a complete path. Use it as it is. 40715 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool GNM=$tool_specified" >&5 40716 $as_echo "$as_me: Will use user supplied tool GNM=$tool_specified" >&6;} 40717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNM" >&5 40718 $as_echo_n "checking for GNM... " >&6; } 40719 if test ! -x "$tool_specified"; then 40720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 40721 $as_echo "not found" >&6; } 40722 as_fn_error $? "User supplied tool GNM=$tool_specified does not exist or is not executable" "$LINENO" 5 40723 fi 40724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 40725 $as_echo "$tool_specified" >&6; } 40726 fi 40727 fi 40728 fi 40729 40730 fi 40731 40732 40733 40734 # Only process if variable expands to non-empty 40735 40736 if test "x$GNM" != x; then 40737 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 40738 40739 # First separate the path from the arguments. This will split at the first 40740 # space. 40741 complete="$GNM" 40742 path="${complete%% *}" 40743 tmp="$complete EOL" 40744 arguments="${tmp#* }" 40745 40746 # Input might be given as Windows format, start by converting to 40747 # unix format. 40748 new_path=`$CYGPATH -u "$path"` 40749 40750 # Now try to locate executable using which 40751 new_path=`$WHICH "$new_path" 2> /dev/null` 40752 # bat and cmd files are not always considered executable in cygwin causing which 40753 # to not find them 40754 if test "x$new_path" = x \ 40755 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 40756 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 40757 new_path=`$CYGPATH -u "$path"` 40758 fi 40759 if test "x$new_path" = x; then 40760 # Oops. Which didn't find the executable. 40761 # The splitting of arguments from the executable at a space might have been incorrect, 40762 # since paths with space are more likely in Windows. Give it another try with the whole 40763 # argument. 40764 path="$complete" 40765 arguments="EOL" 40766 new_path=`$CYGPATH -u "$path"` 40767 new_path=`$WHICH "$new_path" 2> /dev/null` 40768 # bat and cmd files are not always considered executable in cygwin causing which 40769 # to not find them 40770 if test "x$new_path" = x \ 40771 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 40772 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 40773 new_path=`$CYGPATH -u "$path"` 40774 fi 40775 if test "x$new_path" = x; then 40776 # It's still not found. Now this is an unrecoverable error. 40777 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of GNM, which resolves as \"$complete\", is not found." >&5 40778 $as_echo "$as_me: The path of GNM, which resolves as \"$complete\", is not found." >&6;} 40779 has_space=`$ECHO "$complete" | $GREP " "` 40780 if test "x$has_space" != x; then 40781 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 40782 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 40783 fi 40784 as_fn_error $? "Cannot locate the the path of GNM" "$LINENO" 5 40785 fi 40786 fi 40787 40788 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 40789 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 40790 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 40791 # "foo.exe" is OK but "foo" is an error. 40792 # 40793 # This test is therefore slightly more accurate than "test -f" to check for file presence. 40794 # It is also a way to make sure we got the proper file name for the real test later on. 40795 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 40796 if test "x$test_shortpath" = x; then 40797 # Short path failed, file does not exist as specified. 40798 # Try adding .exe or .cmd 40799 if test -f "${new_path}.exe"; then 40800 input_to_shortpath="${new_path}.exe" 40801 elif test -f "${new_path}.cmd"; then 40802 input_to_shortpath="${new_path}.cmd" 40803 else 40804 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of GNM, which resolves as \"$new_path\", is invalid." >&5 40805 $as_echo "$as_me: The path of GNM, which resolves as \"$new_path\", is invalid." >&6;} 40806 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 40807 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 40808 as_fn_error $? "Cannot locate the the path of GNM" "$LINENO" 5 40809 fi 40810 else 40811 input_to_shortpath="$new_path" 40812 fi 40813 40814 # Call helper function which possibly converts this using DOS-style short mode. 40815 # If so, the updated path is stored in $new_path. 40816 new_path="$input_to_shortpath" 40817 40818 input_path="$input_to_shortpath" 40819 # Check if we need to convert this using DOS-style short mode. If the path 40820 # contains just simple characters, use it. Otherwise (spaces, weird characters), 40821 # take no chances and rewrite it. 40822 # Note: m4 eats our [], so we need to use [ and ] instead. 40823 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 40824 if test "x$has_forbidden_chars" != x; then 40825 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 40826 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 40827 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 40828 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 40829 # Going to short mode and back again did indeed matter. Since short mode is 40830 # case insensitive, let's make it lowercase to improve readability. 40831 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 40832 # Now convert it back to Unix-style (cygpath) 40833 input_path=`$CYGPATH -u "$shortmode_path"` 40834 new_path="$input_path" 40835 fi 40836 fi 40837 40838 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 40839 if test "x$test_cygdrive_prefix" = x; then 40840 # As a simple fix, exclude /usr/bin since it's not a real path. 40841 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 40842 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 40843 # a path prefixed by /cygdrive for fixpath to work. 40844 new_path="$CYGWIN_ROOT_PATH$input_path" 40845 fi 40846 fi 40847 40848 # remove trailing .exe if any 40849 new_path="${new_path/%.exe/}" 40850 40851 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 40852 40853 # First separate the path from the arguments. This will split at the first 40854 # space. 40855 complete="$GNM" 40856 path="${complete%% *}" 40857 tmp="$complete EOL" 40858 arguments="${tmp#* }" 40859 40860 # Input might be given as Windows format, start by converting to 40861 # unix format. 40862 new_path="$path" 40863 40864 windows_path="$new_path" 40865 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 40866 unix_path=`$CYGPATH -u "$windows_path"` 40867 new_path="$unix_path" 40868 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 40869 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 40870 new_path="$unix_path" 40871 fi 40872 40873 40874 # Now try to locate executable using which 40875 new_path=`$WHICH "$new_path" 2> /dev/null` 40876 40877 if test "x$new_path" = x; then 40878 # Oops. Which didn't find the executable. 40879 # The splitting of arguments from the executable at a space might have been incorrect, 40880 # since paths with space are more likely in Windows. Give it another try with the whole 40881 # argument. 40882 path="$complete" 40883 arguments="EOL" 40884 new_path="$path" 40885 40886 windows_path="$new_path" 40887 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 40888 unix_path=`$CYGPATH -u "$windows_path"` 40889 new_path="$unix_path" 40890 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 40891 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 40892 new_path="$unix_path" 40893 fi 40894 40895 40896 new_path=`$WHICH "$new_path" 2> /dev/null` 40897 # bat and cmd files are not always considered executable in MSYS causing which 40898 # to not find them 40899 if test "x$new_path" = x \ 40900 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 40901 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 40902 new_path="$path" 40903 40904 windows_path="$new_path" 40905 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 40906 unix_path=`$CYGPATH -u "$windows_path"` 40907 new_path="$unix_path" 40908 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 40909 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 40910 new_path="$unix_path" 40911 fi 40912 40913 fi 40914 40915 if test "x$new_path" = x; then 40916 # It's still not found. Now this is an unrecoverable error. 40917 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of GNM, which resolves as \"$complete\", is not found." >&5 40918 $as_echo "$as_me: The path of GNM, which resolves as \"$complete\", is not found." >&6;} 40919 has_space=`$ECHO "$complete" | $GREP " "` 40920 if test "x$has_space" != x; then 40921 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 40922 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 40923 fi 40924 as_fn_error $? "Cannot locate the the path of GNM" "$LINENO" 5 40925 fi 40926 fi 40927 40928 # Now new_path has a complete unix path to the binary 40929 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 40930 # Keep paths in /bin as-is, but remove trailing .exe if any 40931 new_path="${new_path/%.exe/}" 40932 # Do not save /bin paths to all_fixpath_prefixes! 40933 else 40934 # Not in mixed or Windows style, start by that. 40935 new_path=`cmd //c echo $new_path` 40936 40937 input_path="$new_path" 40938 # Check if we need to convert this using DOS-style short mode. If the path 40939 # contains just simple characters, use it. Otherwise (spaces, weird characters), 40940 # take no chances and rewrite it. 40941 # Note: m4 eats our [], so we need to use [ and ] instead. 40942 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 40943 if test "x$has_forbidden_chars" != x; then 40944 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 40945 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 40946 fi 40947 40948 # Output is in $new_path 40949 40950 windows_path="$new_path" 40951 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 40952 unix_path=`$CYGPATH -u "$windows_path"` 40953 new_path="$unix_path" 40954 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 40955 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 40956 new_path="$unix_path" 40957 fi 40958 40959 # remove trailing .exe if any 40960 new_path="${new_path/%.exe/}" 40961 40962 # Save the first 10 bytes of this path to the storage, so fixpath can work. 40963 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 40964 fi 40965 40966 else 40967 # We're on a unix platform. Hooray! :) 40968 # First separate the path from the arguments. This will split at the first 40969 # space. 40970 complete="$GNM" 40971 path="${complete%% *}" 40972 tmp="$complete EOL" 40973 arguments="${tmp#* }" 40974 40975 # Cannot rely on the command "which" here since it doesn't always work. 40976 is_absolute_path=`$ECHO "$path" | $GREP ^/` 40977 if test -z "$is_absolute_path"; then 40978 # Path to executable is not absolute. Find it. 40979 IFS_save="$IFS" 40980 IFS=: 40981 for p in $PATH; do 40982 if test -f "$p/$path" && test -x "$p/$path"; then 40983 new_path="$p/$path" 40984 break 40985 fi 40986 done 40987 IFS="$IFS_save" 40988 else 40989 # This is an absolute path, we can use it without further modifications. 40990 new_path="$path" 40991 fi 40992 40993 if test "x$new_path" = x; then 40994 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of GNM, which resolves as \"$complete\", is not found." >&5 40995 $as_echo "$as_me: The path of GNM, which resolves as \"$complete\", is not found." >&6;} 40996 has_space=`$ECHO "$complete" | $GREP " "` 40997 if test "x$has_space" != x; then 40998 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 40999 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 41000 fi 41001 as_fn_error $? "Cannot locate the the path of GNM" "$LINENO" 5 41002 fi 41003 fi 41004 41005 # Now join together the path and the arguments once again 41006 if test "x$arguments" != xEOL; then 41007 new_complete="$new_path ${arguments% *}" 41008 else 41009 new_complete="$new_path" 41010 fi 41011 41012 if test "x$complete" != "x$new_complete"; then 41013 GNM="$new_complete" 41014 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting GNM to \"$new_complete\"" >&5 41015 $as_echo "$as_me: Rewriting GNM to \"$new_complete\"" >&6;} 41016 fi 41017 fi 41018 41019 elif test "x$OPENJDK_TARGET_OS" != xwindows; then 41020 # FIXME: we should unify this with the solaris case above. 41021 41022 41023 # Publish this variable in the help. 41024 41025 41026 if [ -z "${STRIP+x}" ]; then 41027 # The variable is not set by user, try to locate tool using the code snippet 41028 if test -n "$ac_tool_prefix"; then 41029 for ac_prog in strip 41030 do 41031 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 41032 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 41033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 41034 $as_echo_n "checking for $ac_word... " >&6; } 41035 if ${ac_cv_prog_STRIP+:} false; then : 41036 $as_echo_n "(cached) " >&6 41037 else 41038 if test -n "$STRIP"; then 41039 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 41040 else 41041 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 41042 for as_dir in $PATH 41043 do 41044 IFS=$as_save_IFS 41045 test -z "$as_dir" && as_dir=. 41046 for ac_exec_ext in '' $ac_executable_extensions; do 41047 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 41048 ac_cv_prog_STRIP="$ac_tool_prefix$ac_prog" 41049 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 41050 break 2 41051 fi 41052 done 41053 done 41054 IFS=$as_save_IFS 41055 41056 fi 41057 fi 41058 STRIP=$ac_cv_prog_STRIP 41059 if test -n "$STRIP"; then 41060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 41061 $as_echo "$STRIP" >&6; } 41062 else 41063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 41064 $as_echo "no" >&6; } 41065 fi 41066 41067 41068 test -n "$STRIP" && break 41069 done 41070 fi 41071 if test -z "$STRIP"; then 41072 ac_ct_STRIP=$STRIP 41073 for ac_prog in strip 41074 do 41075 # Extract the first word of "$ac_prog", so it can be a program name with args. 41076 set dummy $ac_prog; ac_word=$2 41077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 41078 $as_echo_n "checking for $ac_word... " >&6; } 41079 if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 41080 $as_echo_n "(cached) " >&6 41081 else 41082 if test -n "$ac_ct_STRIP"; then 41083 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 41084 else 41085 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 41086 for as_dir in $PATH 41087 do 41088 IFS=$as_save_IFS 41089 test -z "$as_dir" && as_dir=. 41090 for ac_exec_ext in '' $ac_executable_extensions; do 41091 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 41092 ac_cv_prog_ac_ct_STRIP="$ac_prog" 41093 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 41094 break 2 41095 fi 41096 done 41097 done 41098 IFS=$as_save_IFS 41099 41100 fi 41101 fi 41102 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 41103 if test -n "$ac_ct_STRIP"; then 41104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 41105 $as_echo "$ac_ct_STRIP" >&6; } 41106 else 41107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 41108 $as_echo "no" >&6; } 41109 fi 41110 41111 41112 test -n "$ac_ct_STRIP" && break 41113 done 41114 41115 if test "x$ac_ct_STRIP" = x; then 41116 STRIP="" 41117 else 41118 case $cross_compiling:$ac_tool_warned in 41119 yes:) 41120 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 41121 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 41122 ac_tool_warned=yes ;; 41123 esac 41124 STRIP=$ac_ct_STRIP 41125 fi 41126 fi 41127 41128 else 41129 # The variable is set, but is it from the command line or the environment? 41130 41131 # Try to remove the string !STRIP! from our list. 41132 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!STRIP!/} 41133 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 41134 # If it failed, the variable was not from the command line. Ignore it, 41135 # but warn the user (except for BASH, which is always set by the calling BASH). 41136 if test "xSTRIP" != xBASH; then 41137 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of STRIP from the environment. Use command line variables instead." >&5 41138 $as_echo "$as_me: WARNING: Ignoring value of STRIP from the environment. Use command line variables instead." >&2;} 41139 fi 41140 # Try to locate tool using the code snippet 41141 if test -n "$ac_tool_prefix"; then 41142 for ac_prog in strip 41143 do 41144 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 41145 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 41146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 41147 $as_echo_n "checking for $ac_word... " >&6; } 41148 if ${ac_cv_prog_STRIP+:} false; then : 41149 $as_echo_n "(cached) " >&6 41150 else 41151 if test -n "$STRIP"; then 41152 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 41153 else 41154 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 41155 for as_dir in $PATH 41156 do 41157 IFS=$as_save_IFS 41158 test -z "$as_dir" && as_dir=. 41159 for ac_exec_ext in '' $ac_executable_extensions; do 41160 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 41161 ac_cv_prog_STRIP="$ac_tool_prefix$ac_prog" 41162 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 41163 break 2 41164 fi 41165 done 41166 done 41167 IFS=$as_save_IFS 41168 41169 fi 41170 fi 41171 STRIP=$ac_cv_prog_STRIP 41172 if test -n "$STRIP"; then 41173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 41174 $as_echo "$STRIP" >&6; } 41175 else 41176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 41177 $as_echo "no" >&6; } 41178 fi 41179 41180 41181 test -n "$STRIP" && break 41182 done 41183 fi 41184 if test -z "$STRIP"; then 41185 ac_ct_STRIP=$STRIP 41186 for ac_prog in strip 41187 do 41188 # Extract the first word of "$ac_prog", so it can be a program name with args. 41189 set dummy $ac_prog; ac_word=$2 41190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 41191 $as_echo_n "checking for $ac_word... " >&6; } 41192 if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 41193 $as_echo_n "(cached) " >&6 41194 else 41195 if test -n "$ac_ct_STRIP"; then 41196 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 41197 else 41198 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 41199 for as_dir in $PATH 41200 do 41201 IFS=$as_save_IFS 41202 test -z "$as_dir" && as_dir=. 41203 for ac_exec_ext in '' $ac_executable_extensions; do 41204 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 41205 ac_cv_prog_ac_ct_STRIP="$ac_prog" 41206 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 41207 break 2 41208 fi 41209 done 41210 done 41211 IFS=$as_save_IFS 41212 41213 fi 41214 fi 41215 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 41216 if test -n "$ac_ct_STRIP"; then 41217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 41218 $as_echo "$ac_ct_STRIP" >&6; } 41219 else 41220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 41221 $as_echo "no" >&6; } 41222 fi 41223 41224 41225 test -n "$ac_ct_STRIP" && break 41226 done 41227 41228 if test "x$ac_ct_STRIP" = x; then 41229 STRIP="" 41230 else 41231 case $cross_compiling:$ac_tool_warned in 41232 yes:) 41233 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 41234 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 41235 ac_tool_warned=yes ;; 41236 esac 41237 STRIP=$ac_ct_STRIP 41238 fi 41239 fi 41240 41241 else 41242 # If it succeeded, then it was overridden by the user. We will use it 41243 # for the tool. 41244 41245 # First remove it from the list of overridden variables, so we can test 41246 # for unknown variables in the end. 41247 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 41248 41249 # Check if we try to supply an empty value 41250 if test "x$STRIP" = x; then 41251 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool STRIP= (no value)" >&5 41252 $as_echo "$as_me: Setting user supplied tool STRIP= (no value)" >&6;} 41253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for STRIP" >&5 41254 $as_echo_n "checking for STRIP... " >&6; } 41255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 41256 $as_echo "disabled" >&6; } 41257 else 41258 # Check if the provided tool contains a complete path. 41259 tool_specified="$STRIP" 41260 tool_basename="${tool_specified##*/}" 41261 if test "x$tool_basename" = "x$tool_specified"; then 41262 # A command without a complete path is provided, search $PATH. 41263 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool STRIP=$tool_basename" >&5 41264 $as_echo "$as_me: Will search for user supplied tool STRIP=$tool_basename" >&6;} 41265 # Extract the first word of "$tool_basename", so it can be a program name with args. 41266 set dummy $tool_basename; ac_word=$2 41267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 41268 $as_echo_n "checking for $ac_word... " >&6; } 41269 if ${ac_cv_path_STRIP+:} false; then : 41270 $as_echo_n "(cached) " >&6 41271 else 41272 case $STRIP in 41273 [\\/]* | ?:[\\/]*) 41274 ac_cv_path_STRIP="$STRIP" # Let the user override the test with a path. 41275 ;; 41276 *) 41277 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 41278 for as_dir in $PATH 41279 do 41280 IFS=$as_save_IFS 41281 test -z "$as_dir" && as_dir=. 41282 for ac_exec_ext in '' $ac_executable_extensions; do 41283 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 41284 ac_cv_path_STRIP="$as_dir/$ac_word$ac_exec_ext" 41285 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 41286 break 2 41287 fi 41288 done 41289 done 41290 IFS=$as_save_IFS 41291 41292 ;; 41293 esac 41294 fi 41295 STRIP=$ac_cv_path_STRIP 41296 if test -n "$STRIP"; then 41297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 41298 $as_echo "$STRIP" >&6; } 41299 else 41300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 41301 $as_echo "no" >&6; } 41302 fi 41303 41304 41305 if test "x$STRIP" = x; then 41306 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 41307 fi 41308 else 41309 # Otherwise we believe it is a complete path. Use it as it is. 41310 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool STRIP=$tool_specified" >&5 41311 $as_echo "$as_me: Will use user supplied tool STRIP=$tool_specified" >&6;} 41312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for STRIP" >&5 41313 $as_echo_n "checking for STRIP... " >&6; } 41314 if test ! -x "$tool_specified"; then 41315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 41316 $as_echo "not found" >&6; } 41317 as_fn_error $? "User supplied tool STRIP=$tool_specified does not exist or is not executable" "$LINENO" 5 41318 fi 41319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 41320 $as_echo "$tool_specified" >&6; } 41321 fi 41322 fi 41323 fi 41324 41325 fi 41326 41327 41328 41329 # Only process if variable expands to non-empty 41330 41331 if test "x$STRIP" != x; then 41332 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 41333 41334 # First separate the path from the arguments. This will split at the first 41335 # space. 41336 complete="$STRIP" 41337 path="${complete%% *}" 41338 tmp="$complete EOL" 41339 arguments="${tmp#* }" 41340 41341 # Input might be given as Windows format, start by converting to 41342 # unix format. 41343 new_path=`$CYGPATH -u "$path"` 41344 41345 # Now try to locate executable using which 41346 new_path=`$WHICH "$new_path" 2> /dev/null` 41347 # bat and cmd files are not always considered executable in cygwin causing which 41348 # to not find them 41349 if test "x$new_path" = x \ 41350 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 41351 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 41352 new_path=`$CYGPATH -u "$path"` 41353 fi 41354 if test "x$new_path" = x; then 41355 # Oops. Which didn't find the executable. 41356 # The splitting of arguments from the executable at a space might have been incorrect, 41357 # since paths with space are more likely in Windows. Give it another try with the whole 41358 # argument. 41359 path="$complete" 41360 arguments="EOL" 41361 new_path=`$CYGPATH -u "$path"` 41362 new_path=`$WHICH "$new_path" 2> /dev/null` 41363 # bat and cmd files are not always considered executable in cygwin causing which 41364 # to not find them 41365 if test "x$new_path" = x \ 41366 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 41367 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 41368 new_path=`$CYGPATH -u "$path"` 41369 fi 41370 if test "x$new_path" = x; then 41371 # It's still not found. Now this is an unrecoverable error. 41372 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of STRIP, which resolves as \"$complete\", is not found." >&5 41373 $as_echo "$as_me: The path of STRIP, which resolves as \"$complete\", is not found." >&6;} 41374 has_space=`$ECHO "$complete" | $GREP " "` 41375 if test "x$has_space" != x; then 41376 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 41377 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 41378 fi 41379 as_fn_error $? "Cannot locate the the path of STRIP" "$LINENO" 5 41380 fi 41381 fi 41382 41383 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 41384 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 41385 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 41386 # "foo.exe" is OK but "foo" is an error. 41387 # 41388 # This test is therefore slightly more accurate than "test -f" to check for file presence. 41389 # It is also a way to make sure we got the proper file name for the real test later on. 41390 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 41391 if test "x$test_shortpath" = x; then 41392 # Short path failed, file does not exist as specified. 41393 # Try adding .exe or .cmd 41394 if test -f "${new_path}.exe"; then 41395 input_to_shortpath="${new_path}.exe" 41396 elif test -f "${new_path}.cmd"; then 41397 input_to_shortpath="${new_path}.cmd" 41398 else 41399 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of STRIP, which resolves as \"$new_path\", is invalid." >&5 41400 $as_echo "$as_me: The path of STRIP, which resolves as \"$new_path\", is invalid." >&6;} 41401 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 41402 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 41403 as_fn_error $? "Cannot locate the the path of STRIP" "$LINENO" 5 41404 fi 41405 else 41406 input_to_shortpath="$new_path" 41407 fi 41408 41409 # Call helper function which possibly converts this using DOS-style short mode. 41410 # If so, the updated path is stored in $new_path. 41411 new_path="$input_to_shortpath" 41412 41413 input_path="$input_to_shortpath" 41414 # Check if we need to convert this using DOS-style short mode. If the path 41415 # contains just simple characters, use it. Otherwise (spaces, weird characters), 41416 # take no chances and rewrite it. 41417 # Note: m4 eats our [], so we need to use [ and ] instead. 41418 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 41419 if test "x$has_forbidden_chars" != x; then 41420 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 41421 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 41422 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 41423 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 41424 # Going to short mode and back again did indeed matter. Since short mode is 41425 # case insensitive, let's make it lowercase to improve readability. 41426 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 41427 # Now convert it back to Unix-style (cygpath) 41428 input_path=`$CYGPATH -u "$shortmode_path"` 41429 new_path="$input_path" 41430 fi 41431 fi 41432 41433 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 41434 if test "x$test_cygdrive_prefix" = x; then 41435 # As a simple fix, exclude /usr/bin since it's not a real path. 41436 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 41437 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 41438 # a path prefixed by /cygdrive for fixpath to work. 41439 new_path="$CYGWIN_ROOT_PATH$input_path" 41440 fi 41441 fi 41442 41443 # remove trailing .exe if any 41444 new_path="${new_path/%.exe/}" 41445 41446 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 41447 41448 # First separate the path from the arguments. This will split at the first 41449 # space. 41450 complete="$STRIP" 41451 path="${complete%% *}" 41452 tmp="$complete EOL" 41453 arguments="${tmp#* }" 41454 41455 # Input might be given as Windows format, start by converting to 41456 # unix format. 41457 new_path="$path" 41458 41459 windows_path="$new_path" 41460 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 41461 unix_path=`$CYGPATH -u "$windows_path"` 41462 new_path="$unix_path" 41463 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 41464 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 41465 new_path="$unix_path" 41466 fi 41467 41468 41469 # Now try to locate executable using which 41470 new_path=`$WHICH "$new_path" 2> /dev/null` 41471 41472 if test "x$new_path" = x; then 41473 # Oops. Which didn't find the executable. 41474 # The splitting of arguments from the executable at a space might have been incorrect, 41475 # since paths with space are more likely in Windows. Give it another try with the whole 41476 # argument. 41477 path="$complete" 41478 arguments="EOL" 41479 new_path="$path" 41480 41481 windows_path="$new_path" 41482 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 41483 unix_path=`$CYGPATH -u "$windows_path"` 41484 new_path="$unix_path" 41485 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 41486 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 41487 new_path="$unix_path" 41488 fi 41489 41490 41491 new_path=`$WHICH "$new_path" 2> /dev/null` 41492 # bat and cmd files are not always considered executable in MSYS causing which 41493 # to not find them 41494 if test "x$new_path" = x \ 41495 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 41496 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 41497 new_path="$path" 41498 41499 windows_path="$new_path" 41500 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 41501 unix_path=`$CYGPATH -u "$windows_path"` 41502 new_path="$unix_path" 41503 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 41504 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 41505 new_path="$unix_path" 41506 fi 41507 41508 fi 41509 41510 if test "x$new_path" = x; then 41511 # It's still not found. Now this is an unrecoverable error. 41512 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of STRIP, which resolves as \"$complete\", is not found." >&5 41513 $as_echo "$as_me: The path of STRIP, which resolves as \"$complete\", is not found." >&6;} 41514 has_space=`$ECHO "$complete" | $GREP " "` 41515 if test "x$has_space" != x; then 41516 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 41517 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 41518 fi 41519 as_fn_error $? "Cannot locate the the path of STRIP" "$LINENO" 5 41520 fi 41521 fi 41522 41523 # Now new_path has a complete unix path to the binary 41524 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 41525 # Keep paths in /bin as-is, but remove trailing .exe if any 41526 new_path="${new_path/%.exe/}" 41527 # Do not save /bin paths to all_fixpath_prefixes! 41528 else 41529 # Not in mixed or Windows style, start by that. 41530 new_path=`cmd //c echo $new_path` 41531 41532 input_path="$new_path" 41533 # Check if we need to convert this using DOS-style short mode. If the path 41534 # contains just simple characters, use it. Otherwise (spaces, weird characters), 41535 # take no chances and rewrite it. 41536 # Note: m4 eats our [], so we need to use [ and ] instead. 41537 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 41538 if test "x$has_forbidden_chars" != x; then 41539 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 41540 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 41541 fi 41542 41543 # Output is in $new_path 41544 41545 windows_path="$new_path" 41546 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 41547 unix_path=`$CYGPATH -u "$windows_path"` 41548 new_path="$unix_path" 41549 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 41550 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 41551 new_path="$unix_path" 41552 fi 41553 41554 # remove trailing .exe if any 41555 new_path="${new_path/%.exe/}" 41556 41557 # Save the first 10 bytes of this path to the storage, so fixpath can work. 41558 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 41559 fi 41560 41561 else 41562 # We're on a unix platform. Hooray! :) 41563 # First separate the path from the arguments. This will split at the first 41564 # space. 41565 complete="$STRIP" 41566 path="${complete%% *}" 41567 tmp="$complete EOL" 41568 arguments="${tmp#* }" 41569 41570 # Cannot rely on the command "which" here since it doesn't always work. 41571 is_absolute_path=`$ECHO "$path" | $GREP ^/` 41572 if test -z "$is_absolute_path"; then 41573 # Path to executable is not absolute. Find it. 41574 IFS_save="$IFS" 41575 IFS=: 41576 for p in $PATH; do 41577 if test -f "$p/$path" && test -x "$p/$path"; then 41578 new_path="$p/$path" 41579 break 41580 fi 41581 done 41582 IFS="$IFS_save" 41583 else 41584 # This is an absolute path, we can use it without further modifications. 41585 new_path="$path" 41586 fi 41587 41588 if test "x$new_path" = x; then 41589 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of STRIP, which resolves as \"$complete\", is not found." >&5 41590 $as_echo "$as_me: The path of STRIP, which resolves as \"$complete\", is not found." >&6;} 41591 has_space=`$ECHO "$complete" | $GREP " "` 41592 if test "x$has_space" != x; then 41593 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 41594 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 41595 fi 41596 as_fn_error $? "Cannot locate the the path of STRIP" "$LINENO" 5 41597 fi 41598 fi 41599 41600 # Now join together the path and the arguments once again 41601 if test "x$arguments" != xEOL; then 41602 new_complete="$new_path ${arguments% *}" 41603 else 41604 new_complete="$new_path" 41605 fi 41606 41607 if test "x$complete" != "x$new_complete"; then 41608 STRIP="$new_complete" 41609 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting STRIP to \"$new_complete\"" >&5 41610 $as_echo "$as_me: Rewriting STRIP to \"$new_complete\"" >&6;} 41611 fi 41612 fi 41613 41614 if test "x$TOOLCHAIN_TYPE" = xgcc; then 41615 41616 41617 # Publish this variable in the help. 41618 41619 41620 if [ -z "${NM+x}" ]; then 41621 # The variable is not set by user, try to locate tool using the code snippet 41622 if test -n "$ac_tool_prefix"; then 41623 for ac_prog in nm gcc-nm 41624 do 41625 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 41626 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 41627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 41628 $as_echo_n "checking for $ac_word... " >&6; } 41629 if ${ac_cv_prog_NM+:} false; then : 41630 $as_echo_n "(cached) " >&6 41631 else 41632 if test -n "$NM"; then 41633 ac_cv_prog_NM="$NM" # Let the user override the test. 41634 else 41635 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 41636 for as_dir in $PATH 41637 do 41638 IFS=$as_save_IFS 41639 test -z "$as_dir" && as_dir=. 41640 for ac_exec_ext in '' $ac_executable_extensions; do 41641 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 41642 ac_cv_prog_NM="$ac_tool_prefix$ac_prog" 41643 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 41644 break 2 41645 fi 41646 done 41647 done 41648 IFS=$as_save_IFS 41649 41650 fi 41651 fi 41652 NM=$ac_cv_prog_NM 41653 if test -n "$NM"; then 41654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5 41655 $as_echo "$NM" >&6; } 41656 else 41657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 41658 $as_echo "no" >&6; } 41659 fi 41660 41661 41662 test -n "$NM" && break 41663 done 41664 fi 41665 if test -z "$NM"; then 41666 ac_ct_NM=$NM 41667 for ac_prog in nm gcc-nm 41668 do 41669 # Extract the first word of "$ac_prog", so it can be a program name with args. 41670 set dummy $ac_prog; ac_word=$2 41671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 41672 $as_echo_n "checking for $ac_word... " >&6; } 41673 if ${ac_cv_prog_ac_ct_NM+:} false; then : 41674 $as_echo_n "(cached) " >&6 41675 else 41676 if test -n "$ac_ct_NM"; then 41677 ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test. 41678 else 41679 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 41680 for as_dir in $PATH 41681 do 41682 IFS=$as_save_IFS 41683 test -z "$as_dir" && as_dir=. 41684 for ac_exec_ext in '' $ac_executable_extensions; do 41685 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 41686 ac_cv_prog_ac_ct_NM="$ac_prog" 41687 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 41688 break 2 41689 fi 41690 done 41691 done 41692 IFS=$as_save_IFS 41693 41694 fi 41695 fi 41696 ac_ct_NM=$ac_cv_prog_ac_ct_NM 41697 if test -n "$ac_ct_NM"; then 41698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NM" >&5 41699 $as_echo "$ac_ct_NM" >&6; } 41700 else 41701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 41702 $as_echo "no" >&6; } 41703 fi 41704 41705 41706 test -n "$ac_ct_NM" && break 41707 done 41708 41709 if test "x$ac_ct_NM" = x; then 41710 NM="" 41711 else 41712 case $cross_compiling:$ac_tool_warned in 41713 yes:) 41714 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 41715 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 41716 ac_tool_warned=yes ;; 41717 esac 41718 NM=$ac_ct_NM 41719 fi 41720 fi 41721 41722 else 41723 # The variable is set, but is it from the command line or the environment? 41724 41725 # Try to remove the string !NM! from our list. 41726 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!NM!/} 41727 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 41728 # If it failed, the variable was not from the command line. Ignore it, 41729 # but warn the user (except for BASH, which is always set by the calling BASH). 41730 if test "xNM" != xBASH; then 41731 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of NM from the environment. Use command line variables instead." >&5 41732 $as_echo "$as_me: WARNING: Ignoring value of NM from the environment. Use command line variables instead." >&2;} 41733 fi 41734 # Try to locate tool using the code snippet 41735 if test -n "$ac_tool_prefix"; then 41736 for ac_prog in nm gcc-nm 41737 do 41738 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 41739 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 41740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 41741 $as_echo_n "checking for $ac_word... " >&6; } 41742 if ${ac_cv_prog_NM+:} false; then : 41743 $as_echo_n "(cached) " >&6 41744 else 41745 if test -n "$NM"; then 41746 ac_cv_prog_NM="$NM" # Let the user override the test. 41747 else 41748 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 41749 for as_dir in $PATH 41750 do 41751 IFS=$as_save_IFS 41752 test -z "$as_dir" && as_dir=. 41753 for ac_exec_ext in '' $ac_executable_extensions; do 41754 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 41755 ac_cv_prog_NM="$ac_tool_prefix$ac_prog" 41756 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 41757 break 2 41758 fi 41759 done 41760 done 41761 IFS=$as_save_IFS 41762 41763 fi 41764 fi 41765 NM=$ac_cv_prog_NM 41766 if test -n "$NM"; then 41767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5 41768 $as_echo "$NM" >&6; } 41769 else 41770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 41771 $as_echo "no" >&6; } 41772 fi 41773 41774 41775 test -n "$NM" && break 41776 done 41777 fi 41778 if test -z "$NM"; then 41779 ac_ct_NM=$NM 41780 for ac_prog in nm gcc-nm 41781 do 41782 # Extract the first word of "$ac_prog", so it can be a program name with args. 41783 set dummy $ac_prog; ac_word=$2 41784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 41785 $as_echo_n "checking for $ac_word... " >&6; } 41786 if ${ac_cv_prog_ac_ct_NM+:} false; then : 41787 $as_echo_n "(cached) " >&6 41788 else 41789 if test -n "$ac_ct_NM"; then 41790 ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test. 41791 else 41792 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 41793 for as_dir in $PATH 41794 do 41795 IFS=$as_save_IFS 41796 test -z "$as_dir" && as_dir=. 41797 for ac_exec_ext in '' $ac_executable_extensions; do 41798 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 41799 ac_cv_prog_ac_ct_NM="$ac_prog" 41800 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 41801 break 2 41802 fi 41803 done 41804 done 41805 IFS=$as_save_IFS 41806 41807 fi 41808 fi 41809 ac_ct_NM=$ac_cv_prog_ac_ct_NM 41810 if test -n "$ac_ct_NM"; then 41811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NM" >&5 41812 $as_echo "$ac_ct_NM" >&6; } 41813 else 41814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 41815 $as_echo "no" >&6; } 41816 fi 41817 41818 41819 test -n "$ac_ct_NM" && break 41820 done 41821 41822 if test "x$ac_ct_NM" = x; then 41823 NM="" 41824 else 41825 case $cross_compiling:$ac_tool_warned in 41826 yes:) 41827 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 41828 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 41829 ac_tool_warned=yes ;; 41830 esac 41831 NM=$ac_ct_NM 41832 fi 41833 fi 41834 41835 else 41836 # If it succeeded, then it was overridden by the user. We will use it 41837 # for the tool. 41838 41839 # First remove it from the list of overridden variables, so we can test 41840 # for unknown variables in the end. 41841 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 41842 41843 # Check if we try to supply an empty value 41844 if test "x$NM" = x; then 41845 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool NM= (no value)" >&5 41846 $as_echo "$as_me: Setting user supplied tool NM= (no value)" >&6;} 41847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NM" >&5 41848 $as_echo_n "checking for NM... " >&6; } 41849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 41850 $as_echo "disabled" >&6; } 41851 else 41852 # Check if the provided tool contains a complete path. 41853 tool_specified="$NM" 41854 tool_basename="${tool_specified##*/}" 41855 if test "x$tool_basename" = "x$tool_specified"; then 41856 # A command without a complete path is provided, search $PATH. 41857 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool NM=$tool_basename" >&5 41858 $as_echo "$as_me: Will search for user supplied tool NM=$tool_basename" >&6;} 41859 # Extract the first word of "$tool_basename", so it can be a program name with args. 41860 set dummy $tool_basename; ac_word=$2 41861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 41862 $as_echo_n "checking for $ac_word... " >&6; } 41863 if ${ac_cv_path_NM+:} false; then : 41864 $as_echo_n "(cached) " >&6 41865 else 41866 case $NM in 41867 [\\/]* | ?:[\\/]*) 41868 ac_cv_path_NM="$NM" # Let the user override the test with a path. 41869 ;; 41870 *) 41871 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 41872 for as_dir in $PATH 41873 do 41874 IFS=$as_save_IFS 41875 test -z "$as_dir" && as_dir=. 41876 for ac_exec_ext in '' $ac_executable_extensions; do 41877 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 41878 ac_cv_path_NM="$as_dir/$ac_word$ac_exec_ext" 41879 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 41880 break 2 41881 fi 41882 done 41883 done 41884 IFS=$as_save_IFS 41885 41886 ;; 41887 esac 41888 fi 41889 NM=$ac_cv_path_NM 41890 if test -n "$NM"; then 41891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5 41892 $as_echo "$NM" >&6; } 41893 else 41894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 41895 $as_echo "no" >&6; } 41896 fi 41897 41898 41899 if test "x$NM" = x; then 41900 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 41901 fi 41902 else 41903 # Otherwise we believe it is a complete path. Use it as it is. 41904 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool NM=$tool_specified" >&5 41905 $as_echo "$as_me: Will use user supplied tool NM=$tool_specified" >&6;} 41906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NM" >&5 41907 $as_echo_n "checking for NM... " >&6; } 41908 if test ! -x "$tool_specified"; then 41909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 41910 $as_echo "not found" >&6; } 41911 as_fn_error $? "User supplied tool NM=$tool_specified does not exist or is not executable" "$LINENO" 5 41912 fi 41913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 41914 $as_echo "$tool_specified" >&6; } 41915 fi 41916 fi 41917 fi 41918 41919 fi 41920 41921 41922 else 41923 41924 41925 # Publish this variable in the help. 41926 41927 41928 if [ -z "${NM+x}" ]; then 41929 # The variable is not set by user, try to locate tool using the code snippet 41930 if test -n "$ac_tool_prefix"; then 41931 for ac_prog in nm 41932 do 41933 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 41934 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 41935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 41936 $as_echo_n "checking for $ac_word... " >&6; } 41937 if ${ac_cv_prog_NM+:} false; then : 41938 $as_echo_n "(cached) " >&6 41939 else 41940 if test -n "$NM"; then 41941 ac_cv_prog_NM="$NM" # Let the user override the test. 41942 else 41943 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 41944 for as_dir in $PATH 41945 do 41946 IFS=$as_save_IFS 41947 test -z "$as_dir" && as_dir=. 41948 for ac_exec_ext in '' $ac_executable_extensions; do 41949 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 41950 ac_cv_prog_NM="$ac_tool_prefix$ac_prog" 41951 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 41952 break 2 41953 fi 41954 done 41955 done 41956 IFS=$as_save_IFS 41957 41958 fi 41959 fi 41960 NM=$ac_cv_prog_NM 41961 if test -n "$NM"; then 41962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5 41963 $as_echo "$NM" >&6; } 41964 else 41965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 41966 $as_echo "no" >&6; } 41967 fi 41968 41969 41970 test -n "$NM" && break 41971 done 41972 fi 41973 if test -z "$NM"; then 41974 ac_ct_NM=$NM 41975 for ac_prog in nm 41976 do 41977 # Extract the first word of "$ac_prog", so it can be a program name with args. 41978 set dummy $ac_prog; ac_word=$2 41979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 41980 $as_echo_n "checking for $ac_word... " >&6; } 41981 if ${ac_cv_prog_ac_ct_NM+:} false; then : 41982 $as_echo_n "(cached) " >&6 41983 else 41984 if test -n "$ac_ct_NM"; then 41985 ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test. 41986 else 41987 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 41988 for as_dir in $PATH 41989 do 41990 IFS=$as_save_IFS 41991 test -z "$as_dir" && as_dir=. 41992 for ac_exec_ext in '' $ac_executable_extensions; do 41993 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 41994 ac_cv_prog_ac_ct_NM="$ac_prog" 41995 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 41996 break 2 41997 fi 41998 done 41999 done 42000 IFS=$as_save_IFS 42001 42002 fi 42003 fi 42004 ac_ct_NM=$ac_cv_prog_ac_ct_NM 42005 if test -n "$ac_ct_NM"; then 42006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NM" >&5 42007 $as_echo "$ac_ct_NM" >&6; } 42008 else 42009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 42010 $as_echo "no" >&6; } 42011 fi 42012 42013 42014 test -n "$ac_ct_NM" && break 42015 done 42016 42017 if test "x$ac_ct_NM" = x; then 42018 NM="" 42019 else 42020 case $cross_compiling:$ac_tool_warned in 42021 yes:) 42022 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 42023 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 42024 ac_tool_warned=yes ;; 42025 esac 42026 NM=$ac_ct_NM 42027 fi 42028 fi 42029 42030 else 42031 # The variable is set, but is it from the command line or the environment? 42032 42033 # Try to remove the string !NM! from our list. 42034 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!NM!/} 42035 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 42036 # If it failed, the variable was not from the command line. Ignore it, 42037 # but warn the user (except for BASH, which is always set by the calling BASH). 42038 if test "xNM" != xBASH; then 42039 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of NM from the environment. Use command line variables instead." >&5 42040 $as_echo "$as_me: WARNING: Ignoring value of NM from the environment. Use command line variables instead." >&2;} 42041 fi 42042 # Try to locate tool using the code snippet 42043 if test -n "$ac_tool_prefix"; then 42044 for ac_prog in nm 42045 do 42046 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 42047 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 42048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 42049 $as_echo_n "checking for $ac_word... " >&6; } 42050 if ${ac_cv_prog_NM+:} false; then : 42051 $as_echo_n "(cached) " >&6 42052 else 42053 if test -n "$NM"; then 42054 ac_cv_prog_NM="$NM" # Let the user override the test. 42055 else 42056 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 42057 for as_dir in $PATH 42058 do 42059 IFS=$as_save_IFS 42060 test -z "$as_dir" && as_dir=. 42061 for ac_exec_ext in '' $ac_executable_extensions; do 42062 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 42063 ac_cv_prog_NM="$ac_tool_prefix$ac_prog" 42064 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 42065 break 2 42066 fi 42067 done 42068 done 42069 IFS=$as_save_IFS 42070 42071 fi 42072 fi 42073 NM=$ac_cv_prog_NM 42074 if test -n "$NM"; then 42075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5 42076 $as_echo "$NM" >&6; } 42077 else 42078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 42079 $as_echo "no" >&6; } 42080 fi 42081 42082 42083 test -n "$NM" && break 42084 done 42085 fi 42086 if test -z "$NM"; then 42087 ac_ct_NM=$NM 42088 for ac_prog in nm 42089 do 42090 # Extract the first word of "$ac_prog", so it can be a program name with args. 42091 set dummy $ac_prog; ac_word=$2 42092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 42093 $as_echo_n "checking for $ac_word... " >&6; } 42094 if ${ac_cv_prog_ac_ct_NM+:} false; then : 42095 $as_echo_n "(cached) " >&6 42096 else 42097 if test -n "$ac_ct_NM"; then 42098 ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test. 42099 else 42100 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 42101 for as_dir in $PATH 42102 do 42103 IFS=$as_save_IFS 42104 test -z "$as_dir" && as_dir=. 42105 for ac_exec_ext in '' $ac_executable_extensions; do 42106 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 42107 ac_cv_prog_ac_ct_NM="$ac_prog" 42108 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 42109 break 2 42110 fi 42111 done 42112 done 42113 IFS=$as_save_IFS 42114 42115 fi 42116 fi 42117 ac_ct_NM=$ac_cv_prog_ac_ct_NM 42118 if test -n "$ac_ct_NM"; then 42119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NM" >&5 42120 $as_echo "$ac_ct_NM" >&6; } 42121 else 42122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 42123 $as_echo "no" >&6; } 42124 fi 42125 42126 42127 test -n "$ac_ct_NM" && break 42128 done 42129 42130 if test "x$ac_ct_NM" = x; then 42131 NM="" 42132 else 42133 case $cross_compiling:$ac_tool_warned in 42134 yes:) 42135 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 42136 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 42137 ac_tool_warned=yes ;; 42138 esac 42139 NM=$ac_ct_NM 42140 fi 42141 fi 42142 42143 else 42144 # If it succeeded, then it was overridden by the user. We will use it 42145 # for the tool. 42146 42147 # First remove it from the list of overridden variables, so we can test 42148 # for unknown variables in the end. 42149 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 42150 42151 # Check if we try to supply an empty value 42152 if test "x$NM" = x; then 42153 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool NM= (no value)" >&5 42154 $as_echo "$as_me: Setting user supplied tool NM= (no value)" >&6;} 42155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NM" >&5 42156 $as_echo_n "checking for NM... " >&6; } 42157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 42158 $as_echo "disabled" >&6; } 42159 else 42160 # Check if the provided tool contains a complete path. 42161 tool_specified="$NM" 42162 tool_basename="${tool_specified##*/}" 42163 if test "x$tool_basename" = "x$tool_specified"; then 42164 # A command without a complete path is provided, search $PATH. 42165 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool NM=$tool_basename" >&5 42166 $as_echo "$as_me: Will search for user supplied tool NM=$tool_basename" >&6;} 42167 # Extract the first word of "$tool_basename", so it can be a program name with args. 42168 set dummy $tool_basename; ac_word=$2 42169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 42170 $as_echo_n "checking for $ac_word... " >&6; } 42171 if ${ac_cv_path_NM+:} false; then : 42172 $as_echo_n "(cached) " >&6 42173 else 42174 case $NM in 42175 [\\/]* | ?:[\\/]*) 42176 ac_cv_path_NM="$NM" # Let the user override the test with a path. 42177 ;; 42178 *) 42179 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 42180 for as_dir in $PATH 42181 do 42182 IFS=$as_save_IFS 42183 test -z "$as_dir" && as_dir=. 42184 for ac_exec_ext in '' $ac_executable_extensions; do 42185 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 42186 ac_cv_path_NM="$as_dir/$ac_word$ac_exec_ext" 42187 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 42188 break 2 42189 fi 42190 done 42191 done 42192 IFS=$as_save_IFS 42193 42194 ;; 42195 esac 42196 fi 42197 NM=$ac_cv_path_NM 42198 if test -n "$NM"; then 42199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5 42200 $as_echo "$NM" >&6; } 42201 else 42202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 42203 $as_echo "no" >&6; } 42204 fi 42205 42206 42207 if test "x$NM" = x; then 42208 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 42209 fi 42210 else 42211 # Otherwise we believe it is a complete path. Use it as it is. 42212 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool NM=$tool_specified" >&5 42213 $as_echo "$as_me: Will use user supplied tool NM=$tool_specified" >&6;} 42214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NM" >&5 42215 $as_echo_n "checking for NM... " >&6; } 42216 if test ! -x "$tool_specified"; then 42217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 42218 $as_echo "not found" >&6; } 42219 as_fn_error $? "User supplied tool NM=$tool_specified does not exist or is not executable" "$LINENO" 5 42220 fi 42221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 42222 $as_echo "$tool_specified" >&6; } 42223 fi 42224 fi 42225 fi 42226 42227 fi 42228 42229 42230 fi 42231 42232 # Only process if variable expands to non-empty 42233 42234 if test "x$NM" != x; then 42235 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 42236 42237 # First separate the path from the arguments. This will split at the first 42238 # space. 42239 complete="$NM" 42240 path="${complete%% *}" 42241 tmp="$complete EOL" 42242 arguments="${tmp#* }" 42243 42244 # Input might be given as Windows format, start by converting to 42245 # unix format. 42246 new_path=`$CYGPATH -u "$path"` 42247 42248 # Now try to locate executable using which 42249 new_path=`$WHICH "$new_path" 2> /dev/null` 42250 # bat and cmd files are not always considered executable in cygwin causing which 42251 # to not find them 42252 if test "x$new_path" = x \ 42253 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 42254 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 42255 new_path=`$CYGPATH -u "$path"` 42256 fi 42257 if test "x$new_path" = x; then 42258 # Oops. Which didn't find the executable. 42259 # The splitting of arguments from the executable at a space might have been incorrect, 42260 # since paths with space are more likely in Windows. Give it another try with the whole 42261 # argument. 42262 path="$complete" 42263 arguments="EOL" 42264 new_path=`$CYGPATH -u "$path"` 42265 new_path=`$WHICH "$new_path" 2> /dev/null` 42266 # bat and cmd files are not always considered executable in cygwin causing which 42267 # to not find them 42268 if test "x$new_path" = x \ 42269 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 42270 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 42271 new_path=`$CYGPATH -u "$path"` 42272 fi 42273 if test "x$new_path" = x; then 42274 # It's still not found. Now this is an unrecoverable error. 42275 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of NM, which resolves as \"$complete\", is not found." >&5 42276 $as_echo "$as_me: The path of NM, which resolves as \"$complete\", is not found." >&6;} 42277 has_space=`$ECHO "$complete" | $GREP " "` 42278 if test "x$has_space" != x; then 42279 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 42280 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 42281 fi 42282 as_fn_error $? "Cannot locate the the path of NM" "$LINENO" 5 42283 fi 42284 fi 42285 42286 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 42287 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 42288 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 42289 # "foo.exe" is OK but "foo" is an error. 42290 # 42291 # This test is therefore slightly more accurate than "test -f" to check for file presence. 42292 # It is also a way to make sure we got the proper file name for the real test later on. 42293 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 42294 if test "x$test_shortpath" = x; then 42295 # Short path failed, file does not exist as specified. 42296 # Try adding .exe or .cmd 42297 if test -f "${new_path}.exe"; then 42298 input_to_shortpath="${new_path}.exe" 42299 elif test -f "${new_path}.cmd"; then 42300 input_to_shortpath="${new_path}.cmd" 42301 else 42302 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of NM, which resolves as \"$new_path\", is invalid." >&5 42303 $as_echo "$as_me: The path of NM, which resolves as \"$new_path\", is invalid." >&6;} 42304 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 42305 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 42306 as_fn_error $? "Cannot locate the the path of NM" "$LINENO" 5 42307 fi 42308 else 42309 input_to_shortpath="$new_path" 42310 fi 42311 42312 # Call helper function which possibly converts this using DOS-style short mode. 42313 # If so, the updated path is stored in $new_path. 42314 new_path="$input_to_shortpath" 42315 42316 input_path="$input_to_shortpath" 42317 # Check if we need to convert this using DOS-style short mode. If the path 42318 # contains just simple characters, use it. Otherwise (spaces, weird characters), 42319 # take no chances and rewrite it. 42320 # Note: m4 eats our [], so we need to use [ and ] instead. 42321 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 42322 if test "x$has_forbidden_chars" != x; then 42323 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 42324 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 42325 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 42326 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 42327 # Going to short mode and back again did indeed matter. Since short mode is 42328 # case insensitive, let's make it lowercase to improve readability. 42329 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 42330 # Now convert it back to Unix-style (cygpath) 42331 input_path=`$CYGPATH -u "$shortmode_path"` 42332 new_path="$input_path" 42333 fi 42334 fi 42335 42336 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 42337 if test "x$test_cygdrive_prefix" = x; then 42338 # As a simple fix, exclude /usr/bin since it's not a real path. 42339 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 42340 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 42341 # a path prefixed by /cygdrive for fixpath to work. 42342 new_path="$CYGWIN_ROOT_PATH$input_path" 42343 fi 42344 fi 42345 42346 # remove trailing .exe if any 42347 new_path="${new_path/%.exe/}" 42348 42349 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 42350 42351 # First separate the path from the arguments. This will split at the first 42352 # space. 42353 complete="$NM" 42354 path="${complete%% *}" 42355 tmp="$complete EOL" 42356 arguments="${tmp#* }" 42357 42358 # Input might be given as Windows format, start by converting to 42359 # unix format. 42360 new_path="$path" 42361 42362 windows_path="$new_path" 42363 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 42364 unix_path=`$CYGPATH -u "$windows_path"` 42365 new_path="$unix_path" 42366 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 42367 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 42368 new_path="$unix_path" 42369 fi 42370 42371 42372 # Now try to locate executable using which 42373 new_path=`$WHICH "$new_path" 2> /dev/null` 42374 42375 if test "x$new_path" = x; then 42376 # Oops. Which didn't find the executable. 42377 # The splitting of arguments from the executable at a space might have been incorrect, 42378 # since paths with space are more likely in Windows. Give it another try with the whole 42379 # argument. 42380 path="$complete" 42381 arguments="EOL" 42382 new_path="$path" 42383 42384 windows_path="$new_path" 42385 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 42386 unix_path=`$CYGPATH -u "$windows_path"` 42387 new_path="$unix_path" 42388 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 42389 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 42390 new_path="$unix_path" 42391 fi 42392 42393 42394 new_path=`$WHICH "$new_path" 2> /dev/null` 42395 # bat and cmd files are not always considered executable in MSYS causing which 42396 # to not find them 42397 if test "x$new_path" = x \ 42398 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 42399 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 42400 new_path="$path" 42401 42402 windows_path="$new_path" 42403 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 42404 unix_path=`$CYGPATH -u "$windows_path"` 42405 new_path="$unix_path" 42406 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 42407 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 42408 new_path="$unix_path" 42409 fi 42410 42411 fi 42412 42413 if test "x$new_path" = x; then 42414 # It's still not found. Now this is an unrecoverable error. 42415 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of NM, which resolves as \"$complete\", is not found." >&5 42416 $as_echo "$as_me: The path of NM, which resolves as \"$complete\", is not found." >&6;} 42417 has_space=`$ECHO "$complete" | $GREP " "` 42418 if test "x$has_space" != x; then 42419 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 42420 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 42421 fi 42422 as_fn_error $? "Cannot locate the the path of NM" "$LINENO" 5 42423 fi 42424 fi 42425 42426 # Now new_path has a complete unix path to the binary 42427 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 42428 # Keep paths in /bin as-is, but remove trailing .exe if any 42429 new_path="${new_path/%.exe/}" 42430 # Do not save /bin paths to all_fixpath_prefixes! 42431 else 42432 # Not in mixed or Windows style, start by that. 42433 new_path=`cmd //c echo $new_path` 42434 42435 input_path="$new_path" 42436 # Check if we need to convert this using DOS-style short mode. If the path 42437 # contains just simple characters, use it. Otherwise (spaces, weird characters), 42438 # take no chances and rewrite it. 42439 # Note: m4 eats our [], so we need to use [ and ] instead. 42440 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 42441 if test "x$has_forbidden_chars" != x; then 42442 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 42443 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 42444 fi 42445 42446 # Output is in $new_path 42447 42448 windows_path="$new_path" 42449 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 42450 unix_path=`$CYGPATH -u "$windows_path"` 42451 new_path="$unix_path" 42452 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 42453 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 42454 new_path="$unix_path" 42455 fi 42456 42457 # remove trailing .exe if any 42458 new_path="${new_path/%.exe/}" 42459 42460 # Save the first 10 bytes of this path to the storage, so fixpath can work. 42461 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 42462 fi 42463 42464 else 42465 # We're on a unix platform. Hooray! :) 42466 # First separate the path from the arguments. This will split at the first 42467 # space. 42468 complete="$NM" 42469 path="${complete%% *}" 42470 tmp="$complete EOL" 42471 arguments="${tmp#* }" 42472 42473 # Cannot rely on the command "which" here since it doesn't always work. 42474 is_absolute_path=`$ECHO "$path" | $GREP ^/` 42475 if test -z "$is_absolute_path"; then 42476 # Path to executable is not absolute. Find it. 42477 IFS_save="$IFS" 42478 IFS=: 42479 for p in $PATH; do 42480 if test -f "$p/$path" && test -x "$p/$path"; then 42481 new_path="$p/$path" 42482 break 42483 fi 42484 done 42485 IFS="$IFS_save" 42486 else 42487 # This is an absolute path, we can use it without further modifications. 42488 new_path="$path" 42489 fi 42490 42491 if test "x$new_path" = x; then 42492 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of NM, which resolves as \"$complete\", is not found." >&5 42493 $as_echo "$as_me: The path of NM, which resolves as \"$complete\", is not found." >&6;} 42494 has_space=`$ECHO "$complete" | $GREP " "` 42495 if test "x$has_space" != x; then 42496 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 42497 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 42498 fi 42499 as_fn_error $? "Cannot locate the the path of NM" "$LINENO" 5 42500 fi 42501 fi 42502 42503 # Now join together the path and the arguments once again 42504 if test "x$arguments" != xEOL; then 42505 new_complete="$new_path ${arguments% *}" 42506 else 42507 new_complete="$new_path" 42508 fi 42509 42510 if test "x$complete" != "x$new_complete"; then 42511 NM="$new_complete" 42512 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting NM to \"$new_complete\"" >&5 42513 $as_echo "$as_me: Rewriting NM to \"$new_complete\"" >&6;} 42514 fi 42515 fi 42516 42517 GNM="$NM" 42518 42519 fi 42520 42521 # objcopy is used for moving debug symbols to separate files when 42522 # full debug symbols are enabled. 42523 if test "x$OPENJDK_TARGET_OS" = xsolaris || test "x$OPENJDK_TARGET_OS" = xlinux; then 42524 42525 42526 # Publish this variable in the help. 42527 42528 42529 if [ -z "${OBJCOPY+x}" ]; then 42530 # The variable is not set by user, try to locate tool using the code snippet 42531 if test -n "$ac_tool_prefix"; then 42532 for ac_prog in gobjcopy objcopy 42533 do 42534 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 42535 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 42536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 42537 $as_echo_n "checking for $ac_word... " >&6; } 42538 if ${ac_cv_prog_OBJCOPY+:} false; then : 42539 $as_echo_n "(cached) " >&6 42540 else 42541 if test -n "$OBJCOPY"; then 42542 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test. 42543 else 42544 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 42545 for as_dir in $PATH 42546 do 42547 IFS=$as_save_IFS 42548 test -z "$as_dir" && as_dir=. 42549 for ac_exec_ext in '' $ac_executable_extensions; do 42550 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 42551 ac_cv_prog_OBJCOPY="$ac_tool_prefix$ac_prog" 42552 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 42553 break 2 42554 fi 42555 done 42556 done 42557 IFS=$as_save_IFS 42558 42559 fi 42560 fi 42561 OBJCOPY=$ac_cv_prog_OBJCOPY 42562 if test -n "$OBJCOPY"; then 42563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5 42564 $as_echo "$OBJCOPY" >&6; } 42565 else 42566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 42567 $as_echo "no" >&6; } 42568 fi 42569 42570 42571 test -n "$OBJCOPY" && break 42572 done 42573 fi 42574 if test -z "$OBJCOPY"; then 42575 ac_ct_OBJCOPY=$OBJCOPY 42576 for ac_prog in gobjcopy objcopy 42577 do 42578 # Extract the first word of "$ac_prog", so it can be a program name with args. 42579 set dummy $ac_prog; ac_word=$2 42580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 42581 $as_echo_n "checking for $ac_word... " >&6; } 42582 if ${ac_cv_prog_ac_ct_OBJCOPY+:} false; then : 42583 $as_echo_n "(cached) " >&6 42584 else 42585 if test -n "$ac_ct_OBJCOPY"; then 42586 ac_cv_prog_ac_ct_OBJCOPY="$ac_ct_OBJCOPY" # Let the user override the test. 42587 else 42588 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 42589 for as_dir in $PATH 42590 do 42591 IFS=$as_save_IFS 42592 test -z "$as_dir" && as_dir=. 42593 for ac_exec_ext in '' $ac_executable_extensions; do 42594 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 42595 ac_cv_prog_ac_ct_OBJCOPY="$ac_prog" 42596 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 42597 break 2 42598 fi 42599 done 42600 done 42601 IFS=$as_save_IFS 42602 42603 fi 42604 fi 42605 ac_ct_OBJCOPY=$ac_cv_prog_ac_ct_OBJCOPY 42606 if test -n "$ac_ct_OBJCOPY"; then 42607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJCOPY" >&5 42608 $as_echo "$ac_ct_OBJCOPY" >&6; } 42609 else 42610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 42611 $as_echo "no" >&6; } 42612 fi 42613 42614 42615 test -n "$ac_ct_OBJCOPY" && break 42616 done 42617 42618 if test "x$ac_ct_OBJCOPY" = x; then 42619 OBJCOPY="" 42620 else 42621 case $cross_compiling:$ac_tool_warned in 42622 yes:) 42623 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 42624 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 42625 ac_tool_warned=yes ;; 42626 esac 42627 OBJCOPY=$ac_ct_OBJCOPY 42628 fi 42629 fi 42630 42631 else 42632 # The variable is set, but is it from the command line or the environment? 42633 42634 # Try to remove the string !OBJCOPY! from our list. 42635 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!OBJCOPY!/} 42636 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 42637 # If it failed, the variable was not from the command line. Ignore it, 42638 # but warn the user (except for BASH, which is always set by the calling BASH). 42639 if test "xOBJCOPY" != xBASH; then 42640 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of OBJCOPY from the environment. Use command line variables instead." >&5 42641 $as_echo "$as_me: WARNING: Ignoring value of OBJCOPY from the environment. Use command line variables instead." >&2;} 42642 fi 42643 # Try to locate tool using the code snippet 42644 if test -n "$ac_tool_prefix"; then 42645 for ac_prog in gobjcopy objcopy 42646 do 42647 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 42648 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 42649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 42650 $as_echo_n "checking for $ac_word... " >&6; } 42651 if ${ac_cv_prog_OBJCOPY+:} false; then : 42652 $as_echo_n "(cached) " >&6 42653 else 42654 if test -n "$OBJCOPY"; then 42655 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test. 42656 else 42657 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 42658 for as_dir in $PATH 42659 do 42660 IFS=$as_save_IFS 42661 test -z "$as_dir" && as_dir=. 42662 for ac_exec_ext in '' $ac_executable_extensions; do 42663 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 42664 ac_cv_prog_OBJCOPY="$ac_tool_prefix$ac_prog" 42665 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 42666 break 2 42667 fi 42668 done 42669 done 42670 IFS=$as_save_IFS 42671 42672 fi 42673 fi 42674 OBJCOPY=$ac_cv_prog_OBJCOPY 42675 if test -n "$OBJCOPY"; then 42676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5 42677 $as_echo "$OBJCOPY" >&6; } 42678 else 42679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 42680 $as_echo "no" >&6; } 42681 fi 42682 42683 42684 test -n "$OBJCOPY" && break 42685 done 42686 fi 42687 if test -z "$OBJCOPY"; then 42688 ac_ct_OBJCOPY=$OBJCOPY 42689 for ac_prog in gobjcopy objcopy 42690 do 42691 # Extract the first word of "$ac_prog", so it can be a program name with args. 42692 set dummy $ac_prog; ac_word=$2 42693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 42694 $as_echo_n "checking for $ac_word... " >&6; } 42695 if ${ac_cv_prog_ac_ct_OBJCOPY+:} false; then : 42696 $as_echo_n "(cached) " >&6 42697 else 42698 if test -n "$ac_ct_OBJCOPY"; then 42699 ac_cv_prog_ac_ct_OBJCOPY="$ac_ct_OBJCOPY" # Let the user override the test. 42700 else 42701 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 42702 for as_dir in $PATH 42703 do 42704 IFS=$as_save_IFS 42705 test -z "$as_dir" && as_dir=. 42706 for ac_exec_ext in '' $ac_executable_extensions; do 42707 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 42708 ac_cv_prog_ac_ct_OBJCOPY="$ac_prog" 42709 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 42710 break 2 42711 fi 42712 done 42713 done 42714 IFS=$as_save_IFS 42715 42716 fi 42717 fi 42718 ac_ct_OBJCOPY=$ac_cv_prog_ac_ct_OBJCOPY 42719 if test -n "$ac_ct_OBJCOPY"; then 42720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJCOPY" >&5 42721 $as_echo "$ac_ct_OBJCOPY" >&6; } 42722 else 42723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 42724 $as_echo "no" >&6; } 42725 fi 42726 42727 42728 test -n "$ac_ct_OBJCOPY" && break 42729 done 42730 42731 if test "x$ac_ct_OBJCOPY" = x; then 42732 OBJCOPY="" 42733 else 42734 case $cross_compiling:$ac_tool_warned in 42735 yes:) 42736 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 42737 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 42738 ac_tool_warned=yes ;; 42739 esac 42740 OBJCOPY=$ac_ct_OBJCOPY 42741 fi 42742 fi 42743 42744 else 42745 # If it succeeded, then it was overridden by the user. We will use it 42746 # for the tool. 42747 42748 # First remove it from the list of overridden variables, so we can test 42749 # for unknown variables in the end. 42750 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 42751 42752 # Check if we try to supply an empty value 42753 if test "x$OBJCOPY" = x; then 42754 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool OBJCOPY= (no value)" >&5 42755 $as_echo "$as_me: Setting user supplied tool OBJCOPY= (no value)" >&6;} 42756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OBJCOPY" >&5 42757 $as_echo_n "checking for OBJCOPY... " >&6; } 42758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 42759 $as_echo "disabled" >&6; } 42760 else 42761 # Check if the provided tool contains a complete path. 42762 tool_specified="$OBJCOPY" 42763 tool_basename="${tool_specified##*/}" 42764 if test "x$tool_basename" = "x$tool_specified"; then 42765 # A command without a complete path is provided, search $PATH. 42766 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool OBJCOPY=$tool_basename" >&5 42767 $as_echo "$as_me: Will search for user supplied tool OBJCOPY=$tool_basename" >&6;} 42768 # Extract the first word of "$tool_basename", so it can be a program name with args. 42769 set dummy $tool_basename; ac_word=$2 42770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 42771 $as_echo_n "checking for $ac_word... " >&6; } 42772 if ${ac_cv_path_OBJCOPY+:} false; then : 42773 $as_echo_n "(cached) " >&6 42774 else 42775 case $OBJCOPY in 42776 [\\/]* | ?:[\\/]*) 42777 ac_cv_path_OBJCOPY="$OBJCOPY" # Let the user override the test with a path. 42778 ;; 42779 *) 42780 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 42781 for as_dir in $PATH 42782 do 42783 IFS=$as_save_IFS 42784 test -z "$as_dir" && as_dir=. 42785 for ac_exec_ext in '' $ac_executable_extensions; do 42786 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 42787 ac_cv_path_OBJCOPY="$as_dir/$ac_word$ac_exec_ext" 42788 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 42789 break 2 42790 fi 42791 done 42792 done 42793 IFS=$as_save_IFS 42794 42795 ;; 42796 esac 42797 fi 42798 OBJCOPY=$ac_cv_path_OBJCOPY 42799 if test -n "$OBJCOPY"; then 42800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5 42801 $as_echo "$OBJCOPY" >&6; } 42802 else 42803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 42804 $as_echo "no" >&6; } 42805 fi 42806 42807 42808 if test "x$OBJCOPY" = x; then 42809 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 42810 fi 42811 else 42812 # Otherwise we believe it is a complete path. Use it as it is. 42813 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool OBJCOPY=$tool_specified" >&5 42814 $as_echo "$as_me: Will use user supplied tool OBJCOPY=$tool_specified" >&6;} 42815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OBJCOPY" >&5 42816 $as_echo_n "checking for OBJCOPY... " >&6; } 42817 if test ! -x "$tool_specified"; then 42818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 42819 $as_echo "not found" >&6; } 42820 as_fn_error $? "User supplied tool OBJCOPY=$tool_specified does not exist or is not executable" "$LINENO" 5 42821 fi 42822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 42823 $as_echo "$tool_specified" >&6; } 42824 fi 42825 fi 42826 fi 42827 42828 fi 42829 42830 42831 # Only call fixup if objcopy was found. 42832 if test -n "$OBJCOPY"; then 42833 42834 # Only process if variable expands to non-empty 42835 42836 if test "x$OBJCOPY" != x; then 42837 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 42838 42839 # First separate the path from the arguments. This will split at the first 42840 # space. 42841 complete="$OBJCOPY" 42842 path="${complete%% *}" 42843 tmp="$complete EOL" 42844 arguments="${tmp#* }" 42845 42846 # Input might be given as Windows format, start by converting to 42847 # unix format. 42848 new_path=`$CYGPATH -u "$path"` 42849 42850 # Now try to locate executable using which 42851 new_path=`$WHICH "$new_path" 2> /dev/null` 42852 # bat and cmd files are not always considered executable in cygwin causing which 42853 # to not find them 42854 if test "x$new_path" = x \ 42855 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 42856 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 42857 new_path=`$CYGPATH -u "$path"` 42858 fi 42859 if test "x$new_path" = x; then 42860 # Oops. Which didn't find the executable. 42861 # The splitting of arguments from the executable at a space might have been incorrect, 42862 # since paths with space are more likely in Windows. Give it another try with the whole 42863 # argument. 42864 path="$complete" 42865 arguments="EOL" 42866 new_path=`$CYGPATH -u "$path"` 42867 new_path=`$WHICH "$new_path" 2> /dev/null` 42868 # bat and cmd files are not always considered executable in cygwin causing which 42869 # to not find them 42870 if test "x$new_path" = x \ 42871 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 42872 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 42873 new_path=`$CYGPATH -u "$path"` 42874 fi 42875 if test "x$new_path" = x; then 42876 # It's still not found. Now this is an unrecoverable error. 42877 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OBJCOPY, which resolves as \"$complete\", is not found." >&5 42878 $as_echo "$as_me: The path of OBJCOPY, which resolves as \"$complete\", is not found." >&6;} 42879 has_space=`$ECHO "$complete" | $GREP " "` 42880 if test "x$has_space" != x; then 42881 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 42882 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 42883 fi 42884 as_fn_error $? "Cannot locate the the path of OBJCOPY" "$LINENO" 5 42885 fi 42886 fi 42887 42888 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 42889 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 42890 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 42891 # "foo.exe" is OK but "foo" is an error. 42892 # 42893 # This test is therefore slightly more accurate than "test -f" to check for file presence. 42894 # It is also a way to make sure we got the proper file name for the real test later on. 42895 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 42896 if test "x$test_shortpath" = x; then 42897 # Short path failed, file does not exist as specified. 42898 # Try adding .exe or .cmd 42899 if test -f "${new_path}.exe"; then 42900 input_to_shortpath="${new_path}.exe" 42901 elif test -f "${new_path}.cmd"; then 42902 input_to_shortpath="${new_path}.cmd" 42903 else 42904 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OBJCOPY, which resolves as \"$new_path\", is invalid." >&5 42905 $as_echo "$as_me: The path of OBJCOPY, which resolves as \"$new_path\", is invalid." >&6;} 42906 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 42907 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 42908 as_fn_error $? "Cannot locate the the path of OBJCOPY" "$LINENO" 5 42909 fi 42910 else 42911 input_to_shortpath="$new_path" 42912 fi 42913 42914 # Call helper function which possibly converts this using DOS-style short mode. 42915 # If so, the updated path is stored in $new_path. 42916 new_path="$input_to_shortpath" 42917 42918 input_path="$input_to_shortpath" 42919 # Check if we need to convert this using DOS-style short mode. If the path 42920 # contains just simple characters, use it. Otherwise (spaces, weird characters), 42921 # take no chances and rewrite it. 42922 # Note: m4 eats our [], so we need to use [ and ] instead. 42923 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 42924 if test "x$has_forbidden_chars" != x; then 42925 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 42926 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 42927 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 42928 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 42929 # Going to short mode and back again did indeed matter. Since short mode is 42930 # case insensitive, let's make it lowercase to improve readability. 42931 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 42932 # Now convert it back to Unix-style (cygpath) 42933 input_path=`$CYGPATH -u "$shortmode_path"` 42934 new_path="$input_path" 42935 fi 42936 fi 42937 42938 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 42939 if test "x$test_cygdrive_prefix" = x; then 42940 # As a simple fix, exclude /usr/bin since it's not a real path. 42941 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 42942 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 42943 # a path prefixed by /cygdrive for fixpath to work. 42944 new_path="$CYGWIN_ROOT_PATH$input_path" 42945 fi 42946 fi 42947 42948 # remove trailing .exe if any 42949 new_path="${new_path/%.exe/}" 42950 42951 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 42952 42953 # First separate the path from the arguments. This will split at the first 42954 # space. 42955 complete="$OBJCOPY" 42956 path="${complete%% *}" 42957 tmp="$complete EOL" 42958 arguments="${tmp#* }" 42959 42960 # Input might be given as Windows format, start by converting to 42961 # unix format. 42962 new_path="$path" 42963 42964 windows_path="$new_path" 42965 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 42966 unix_path=`$CYGPATH -u "$windows_path"` 42967 new_path="$unix_path" 42968 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 42969 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 42970 new_path="$unix_path" 42971 fi 42972 42973 42974 # Now try to locate executable using which 42975 new_path=`$WHICH "$new_path" 2> /dev/null` 42976 42977 if test "x$new_path" = x; then 42978 # Oops. Which didn't find the executable. 42979 # The splitting of arguments from the executable at a space might have been incorrect, 42980 # since paths with space are more likely in Windows. Give it another try with the whole 42981 # argument. 42982 path="$complete" 42983 arguments="EOL" 42984 new_path="$path" 42985 42986 windows_path="$new_path" 42987 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 42988 unix_path=`$CYGPATH -u "$windows_path"` 42989 new_path="$unix_path" 42990 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 42991 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 42992 new_path="$unix_path" 42993 fi 42994 42995 42996 new_path=`$WHICH "$new_path" 2> /dev/null` 42997 # bat and cmd files are not always considered executable in MSYS causing which 42998 # to not find them 42999 if test "x$new_path" = x \ 43000 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 43001 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 43002 new_path="$path" 43003 43004 windows_path="$new_path" 43005 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 43006 unix_path=`$CYGPATH -u "$windows_path"` 43007 new_path="$unix_path" 43008 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 43009 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 43010 new_path="$unix_path" 43011 fi 43012 43013 fi 43014 43015 if test "x$new_path" = x; then 43016 # It's still not found. Now this is an unrecoverable error. 43017 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OBJCOPY, which resolves as \"$complete\", is not found." >&5 43018 $as_echo "$as_me: The path of OBJCOPY, which resolves as \"$complete\", is not found." >&6;} 43019 has_space=`$ECHO "$complete" | $GREP " "` 43020 if test "x$has_space" != x; then 43021 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 43022 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 43023 fi 43024 as_fn_error $? "Cannot locate the the path of OBJCOPY" "$LINENO" 5 43025 fi 43026 fi 43027 43028 # Now new_path has a complete unix path to the binary 43029 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 43030 # Keep paths in /bin as-is, but remove trailing .exe if any 43031 new_path="${new_path/%.exe/}" 43032 # Do not save /bin paths to all_fixpath_prefixes! 43033 else 43034 # Not in mixed or Windows style, start by that. 43035 new_path=`cmd //c echo $new_path` 43036 43037 input_path="$new_path" 43038 # Check if we need to convert this using DOS-style short mode. If the path 43039 # contains just simple characters, use it. Otherwise (spaces, weird characters), 43040 # take no chances and rewrite it. 43041 # Note: m4 eats our [], so we need to use [ and ] instead. 43042 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 43043 if test "x$has_forbidden_chars" != x; then 43044 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 43045 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 43046 fi 43047 43048 # Output is in $new_path 43049 43050 windows_path="$new_path" 43051 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 43052 unix_path=`$CYGPATH -u "$windows_path"` 43053 new_path="$unix_path" 43054 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 43055 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 43056 new_path="$unix_path" 43057 fi 43058 43059 # remove trailing .exe if any 43060 new_path="${new_path/%.exe/}" 43061 43062 # Save the first 10 bytes of this path to the storage, so fixpath can work. 43063 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 43064 fi 43065 43066 else 43067 # We're on a unix platform. Hooray! :) 43068 # First separate the path from the arguments. This will split at the first 43069 # space. 43070 complete="$OBJCOPY" 43071 path="${complete%% *}" 43072 tmp="$complete EOL" 43073 arguments="${tmp#* }" 43074 43075 # Cannot rely on the command "which" here since it doesn't always work. 43076 is_absolute_path=`$ECHO "$path" | $GREP ^/` 43077 if test -z "$is_absolute_path"; then 43078 # Path to executable is not absolute. Find it. 43079 IFS_save="$IFS" 43080 IFS=: 43081 for p in $PATH; do 43082 if test -f "$p/$path" && test -x "$p/$path"; then 43083 new_path="$p/$path" 43084 break 43085 fi 43086 done 43087 IFS="$IFS_save" 43088 else 43089 # This is an absolute path, we can use it without further modifications. 43090 new_path="$path" 43091 fi 43092 43093 if test "x$new_path" = x; then 43094 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OBJCOPY, which resolves as \"$complete\", is not found." >&5 43095 $as_echo "$as_me: The path of OBJCOPY, which resolves as \"$complete\", is not found." >&6;} 43096 has_space=`$ECHO "$complete" | $GREP " "` 43097 if test "x$has_space" != x; then 43098 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 43099 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 43100 fi 43101 as_fn_error $? "Cannot locate the the path of OBJCOPY" "$LINENO" 5 43102 fi 43103 fi 43104 43105 # Now join together the path and the arguments once again 43106 if test "x$arguments" != xEOL; then 43107 new_complete="$new_path ${arguments% *}" 43108 else 43109 new_complete="$new_path" 43110 fi 43111 43112 if test "x$complete" != "x$new_complete"; then 43113 OBJCOPY="$new_complete" 43114 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting OBJCOPY to \"$new_complete\"" >&5 43115 $as_echo "$as_me: Rewriting OBJCOPY to \"$new_complete\"" >&6;} 43116 fi 43117 fi 43118 43119 if test "x$OPENJDK_BUILD_OS" = xsolaris; then 43120 # objcopy prior to 2.21.1 on solaris is broken and is not usable. 43121 # Rewrite objcopy version output to VALID_VERSION or BAD_VERSION. 43122 # - version number is last blank separate word on first line 43123 # - version number formats that have been seen: 43124 # - <major>.<minor> 43125 # - <major>.<minor>.<micro> 43126 OBJCOPY_VERSION=`$OBJCOPY --version | $HEAD -n 1` 43127 # The outer [ ] is to prevent m4 from eating the [] in the sed expression. 43128 OBJCOPY_VERSION_CHECK=`$ECHO $OBJCOPY_VERSION | $SED -n \ 43129 -e 's/.* //' \ 43130 -e '/^[01]\./b bad' \ 43131 -e '/^2\./{' \ 43132 -e ' s/^2\.//' \ 43133 -e ' /^[0-9]$/b bad' \ 43134 -e ' /^[0-9]\./b bad' \ 43135 -e ' /^1[0-9]$/b bad' \ 43136 -e ' /^1[0-9]\./b bad' \ 43137 -e ' /^20\./b bad' \ 43138 -e ' /^21\.0$/b bad' \ 43139 -e ' /^21\.0\./b bad' \ 43140 -e '}' \ 43141 -e ':good' \ 43142 -e 's/.*/VALID_VERSION/p' \ 43143 -e 'q' \ 43144 -e ':bad' \ 43145 -e 's/.*/BAD_VERSION/p' \ 43146 -e 'q'` 43147 if test "x$OBJCOPY_VERSION_CHECK" = xBAD_VERSION; then 43148 OBJCOPY= 43149 { $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 43150 $as_echo "$as_me: WARNING: Ignoring found objcopy since it is broken (prior to 2.21.1). No debug symbols will be generated." >&2;} 43151 { $as_echo "$as_me:${as_lineno-$LINENO}: objcopy reports version $OBJCOPY_VERSION" >&5 43152 $as_echo "$as_me: objcopy reports version $OBJCOPY_VERSION" >&6;} 43153 { $as_echo "$as_me:${as_lineno-$LINENO}: Note: patch 149063-01 or newer contains the correct Solaris 10 SPARC version" >&5 43154 $as_echo "$as_me: Note: patch 149063-01 or newer contains the correct Solaris 10 SPARC version" >&6;} 43155 { $as_echo "$as_me:${as_lineno-$LINENO}: Note: patch 149064-01 or newer contains the correct Solaris 10 X86 version" >&5 43156 $as_echo "$as_me: Note: patch 149064-01 or newer contains the correct Solaris 10 X86 version" >&6;} 43157 { $as_echo "$as_me:${as_lineno-$LINENO}: Note: Solaris 11 Update 1 contains the correct version" >&5 43158 $as_echo "$as_me: Note: Solaris 11 Update 1 contains the correct version" >&6;} 43159 fi 43160 fi 43161 fi 43162 fi 43163 43164 43165 43166 # Publish this variable in the help. 43167 43168 43169 if [ -z "${OBJDUMP+x}" ]; then 43170 # The variable is not set by user, try to locate tool using the code snippet 43171 if test -n "$ac_tool_prefix"; then 43172 for ac_prog in gobjdump objdump 43173 do 43174 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 43175 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 43176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 43177 $as_echo_n "checking for $ac_word... " >&6; } 43178 if ${ac_cv_prog_OBJDUMP+:} false; then : 43179 $as_echo_n "(cached) " >&6 43180 else 43181 if test -n "$OBJDUMP"; then 43182 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 43183 else 43184 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 43185 for as_dir in $PATH 43186 do 43187 IFS=$as_save_IFS 43188 test -z "$as_dir" && as_dir=. 43189 for ac_exec_ext in '' $ac_executable_extensions; do 43190 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 43191 ac_cv_prog_OBJDUMP="$ac_tool_prefix$ac_prog" 43192 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 43193 break 2 43194 fi 43195 done 43196 done 43197 IFS=$as_save_IFS 43198 43199 fi 43200 fi 43201 OBJDUMP=$ac_cv_prog_OBJDUMP 43202 if test -n "$OBJDUMP"; then 43203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 43204 $as_echo "$OBJDUMP" >&6; } 43205 else 43206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 43207 $as_echo "no" >&6; } 43208 fi 43209 43210 43211 test -n "$OBJDUMP" && break 43212 done 43213 fi 43214 if test -z "$OBJDUMP"; then 43215 ac_ct_OBJDUMP=$OBJDUMP 43216 for ac_prog in gobjdump objdump 43217 do 43218 # Extract the first word of "$ac_prog", so it can be a program name with args. 43219 set dummy $ac_prog; ac_word=$2 43220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 43221 $as_echo_n "checking for $ac_word... " >&6; } 43222 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : 43223 $as_echo_n "(cached) " >&6 43224 else 43225 if test -n "$ac_ct_OBJDUMP"; then 43226 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 43227 else 43228 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 43229 for as_dir in $PATH 43230 do 43231 IFS=$as_save_IFS 43232 test -z "$as_dir" && as_dir=. 43233 for ac_exec_ext in '' $ac_executable_extensions; do 43234 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 43235 ac_cv_prog_ac_ct_OBJDUMP="$ac_prog" 43236 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 43237 break 2 43238 fi 43239 done 43240 done 43241 IFS=$as_save_IFS 43242 43243 fi 43244 fi 43245 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 43246 if test -n "$ac_ct_OBJDUMP"; then 43247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 43248 $as_echo "$ac_ct_OBJDUMP" >&6; } 43249 else 43250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 43251 $as_echo "no" >&6; } 43252 fi 43253 43254 43255 test -n "$ac_ct_OBJDUMP" && break 43256 done 43257 43258 if test "x$ac_ct_OBJDUMP" = x; then 43259 OBJDUMP="" 43260 else 43261 case $cross_compiling:$ac_tool_warned in 43262 yes:) 43263 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 43264 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 43265 ac_tool_warned=yes ;; 43266 esac 43267 OBJDUMP=$ac_ct_OBJDUMP 43268 fi 43269 fi 43270 43271 else 43272 # The variable is set, but is it from the command line or the environment? 43273 43274 # Try to remove the string !OBJDUMP! from our list. 43275 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!OBJDUMP!/} 43276 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 43277 # If it failed, the variable was not from the command line. Ignore it, 43278 # but warn the user (except for BASH, which is always set by the calling BASH). 43279 if test "xOBJDUMP" != xBASH; then 43280 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of OBJDUMP from the environment. Use command line variables instead." >&5 43281 $as_echo "$as_me: WARNING: Ignoring value of OBJDUMP from the environment. Use command line variables instead." >&2;} 43282 fi 43283 # Try to locate tool using the code snippet 43284 if test -n "$ac_tool_prefix"; then 43285 for ac_prog in gobjdump objdump 43286 do 43287 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 43288 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 43289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 43290 $as_echo_n "checking for $ac_word... " >&6; } 43291 if ${ac_cv_prog_OBJDUMP+:} false; then : 43292 $as_echo_n "(cached) " >&6 43293 else 43294 if test -n "$OBJDUMP"; then 43295 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 43296 else 43297 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 43298 for as_dir in $PATH 43299 do 43300 IFS=$as_save_IFS 43301 test -z "$as_dir" && as_dir=. 43302 for ac_exec_ext in '' $ac_executable_extensions; do 43303 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 43304 ac_cv_prog_OBJDUMP="$ac_tool_prefix$ac_prog" 43305 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 43306 break 2 43307 fi 43308 done 43309 done 43310 IFS=$as_save_IFS 43311 43312 fi 43313 fi 43314 OBJDUMP=$ac_cv_prog_OBJDUMP 43315 if test -n "$OBJDUMP"; then 43316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 43317 $as_echo "$OBJDUMP" >&6; } 43318 else 43319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 43320 $as_echo "no" >&6; } 43321 fi 43322 43323 43324 test -n "$OBJDUMP" && break 43325 done 43326 fi 43327 if test -z "$OBJDUMP"; then 43328 ac_ct_OBJDUMP=$OBJDUMP 43329 for ac_prog in gobjdump objdump 43330 do 43331 # Extract the first word of "$ac_prog", so it can be a program name with args. 43332 set dummy $ac_prog; ac_word=$2 43333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 43334 $as_echo_n "checking for $ac_word... " >&6; } 43335 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : 43336 $as_echo_n "(cached) " >&6 43337 else 43338 if test -n "$ac_ct_OBJDUMP"; then 43339 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 43340 else 43341 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 43342 for as_dir in $PATH 43343 do 43344 IFS=$as_save_IFS 43345 test -z "$as_dir" && as_dir=. 43346 for ac_exec_ext in '' $ac_executable_extensions; do 43347 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 43348 ac_cv_prog_ac_ct_OBJDUMP="$ac_prog" 43349 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 43350 break 2 43351 fi 43352 done 43353 done 43354 IFS=$as_save_IFS 43355 43356 fi 43357 fi 43358 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 43359 if test -n "$ac_ct_OBJDUMP"; then 43360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 43361 $as_echo "$ac_ct_OBJDUMP" >&6; } 43362 else 43363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 43364 $as_echo "no" >&6; } 43365 fi 43366 43367 43368 test -n "$ac_ct_OBJDUMP" && break 43369 done 43370 43371 if test "x$ac_ct_OBJDUMP" = x; then 43372 OBJDUMP="" 43373 else 43374 case $cross_compiling:$ac_tool_warned in 43375 yes:) 43376 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 43377 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 43378 ac_tool_warned=yes ;; 43379 esac 43380 OBJDUMP=$ac_ct_OBJDUMP 43381 fi 43382 fi 43383 43384 else 43385 # If it succeeded, then it was overridden by the user. We will use it 43386 # for the tool. 43387 43388 # First remove it from the list of overridden variables, so we can test 43389 # for unknown variables in the end. 43390 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 43391 43392 # Check if we try to supply an empty value 43393 if test "x$OBJDUMP" = x; then 43394 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool OBJDUMP= (no value)" >&5 43395 $as_echo "$as_me: Setting user supplied tool OBJDUMP= (no value)" >&6;} 43396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OBJDUMP" >&5 43397 $as_echo_n "checking for OBJDUMP... " >&6; } 43398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 43399 $as_echo "disabled" >&6; } 43400 else 43401 # Check if the provided tool contains a complete path. 43402 tool_specified="$OBJDUMP" 43403 tool_basename="${tool_specified##*/}" 43404 if test "x$tool_basename" = "x$tool_specified"; then 43405 # A command without a complete path is provided, search $PATH. 43406 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool OBJDUMP=$tool_basename" >&5 43407 $as_echo "$as_me: Will search for user supplied tool OBJDUMP=$tool_basename" >&6;} 43408 # Extract the first word of "$tool_basename", so it can be a program name with args. 43409 set dummy $tool_basename; ac_word=$2 43410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 43411 $as_echo_n "checking for $ac_word... " >&6; } 43412 if ${ac_cv_path_OBJDUMP+:} false; then : 43413 $as_echo_n "(cached) " >&6 43414 else 43415 case $OBJDUMP in 43416 [\\/]* | ?:[\\/]*) 43417 ac_cv_path_OBJDUMP="$OBJDUMP" # Let the user override the test with a path. 43418 ;; 43419 *) 43420 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 43421 for as_dir in $PATH 43422 do 43423 IFS=$as_save_IFS 43424 test -z "$as_dir" && as_dir=. 43425 for ac_exec_ext in '' $ac_executable_extensions; do 43426 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 43427 ac_cv_path_OBJDUMP="$as_dir/$ac_word$ac_exec_ext" 43428 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 43429 break 2 43430 fi 43431 done 43432 done 43433 IFS=$as_save_IFS 43434 43435 ;; 43436 esac 43437 fi 43438 OBJDUMP=$ac_cv_path_OBJDUMP 43439 if test -n "$OBJDUMP"; then 43440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 43441 $as_echo "$OBJDUMP" >&6; } 43442 else 43443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 43444 $as_echo "no" >&6; } 43445 fi 43446 43447 43448 if test "x$OBJDUMP" = x; then 43449 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 43450 fi 43451 else 43452 # Otherwise we believe it is a complete path. Use it as it is. 43453 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool OBJDUMP=$tool_specified" >&5 43454 $as_echo "$as_me: Will use user supplied tool OBJDUMP=$tool_specified" >&6;} 43455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OBJDUMP" >&5 43456 $as_echo_n "checking for OBJDUMP... " >&6; } 43457 if test ! -x "$tool_specified"; then 43458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 43459 $as_echo "not found" >&6; } 43460 as_fn_error $? "User supplied tool OBJDUMP=$tool_specified does not exist or is not executable" "$LINENO" 5 43461 fi 43462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 43463 $as_echo "$tool_specified" >&6; } 43464 fi 43465 fi 43466 fi 43467 43468 fi 43469 43470 43471 if test "x$OBJDUMP" != x; then 43472 # Only used for compare.sh; we can live without it. BASIC_FIXUP_EXECUTABLE 43473 # bails if argument is missing. 43474 43475 # Only process if variable expands to non-empty 43476 43477 if test "x$OBJDUMP" != x; then 43478 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 43479 43480 # First separate the path from the arguments. This will split at the first 43481 # space. 43482 complete="$OBJDUMP" 43483 path="${complete%% *}" 43484 tmp="$complete EOL" 43485 arguments="${tmp#* }" 43486 43487 # Input might be given as Windows format, start by converting to 43488 # unix format. 43489 new_path=`$CYGPATH -u "$path"` 43490 43491 # Now try to locate executable using which 43492 new_path=`$WHICH "$new_path" 2> /dev/null` 43493 # bat and cmd files are not always considered executable in cygwin causing which 43494 # to not find them 43495 if test "x$new_path" = x \ 43496 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 43497 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 43498 new_path=`$CYGPATH -u "$path"` 43499 fi 43500 if test "x$new_path" = x; then 43501 # Oops. Which didn't find the executable. 43502 # The splitting of arguments from the executable at a space might have been incorrect, 43503 # since paths with space are more likely in Windows. Give it another try with the whole 43504 # argument. 43505 path="$complete" 43506 arguments="EOL" 43507 new_path=`$CYGPATH -u "$path"` 43508 new_path=`$WHICH "$new_path" 2> /dev/null` 43509 # bat and cmd files are not always considered executable in cygwin causing which 43510 # to not find them 43511 if test "x$new_path" = x \ 43512 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 43513 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 43514 new_path=`$CYGPATH -u "$path"` 43515 fi 43516 if test "x$new_path" = x; then 43517 # It's still not found. Now this is an unrecoverable error. 43518 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OBJDUMP, which resolves as \"$complete\", is not found." >&5 43519 $as_echo "$as_me: The path of OBJDUMP, which resolves as \"$complete\", is not found." >&6;} 43520 has_space=`$ECHO "$complete" | $GREP " "` 43521 if test "x$has_space" != x; then 43522 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 43523 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 43524 fi 43525 as_fn_error $? "Cannot locate the the path of OBJDUMP" "$LINENO" 5 43526 fi 43527 fi 43528 43529 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 43530 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 43531 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 43532 # "foo.exe" is OK but "foo" is an error. 43533 # 43534 # This test is therefore slightly more accurate than "test -f" to check for file presence. 43535 # It is also a way to make sure we got the proper file name for the real test later on. 43536 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 43537 if test "x$test_shortpath" = x; then 43538 # Short path failed, file does not exist as specified. 43539 # Try adding .exe or .cmd 43540 if test -f "${new_path}.exe"; then 43541 input_to_shortpath="${new_path}.exe" 43542 elif test -f "${new_path}.cmd"; then 43543 input_to_shortpath="${new_path}.cmd" 43544 else 43545 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OBJDUMP, which resolves as \"$new_path\", is invalid." >&5 43546 $as_echo "$as_me: The path of OBJDUMP, which resolves as \"$new_path\", is invalid." >&6;} 43547 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 43548 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 43549 as_fn_error $? "Cannot locate the the path of OBJDUMP" "$LINENO" 5 43550 fi 43551 else 43552 input_to_shortpath="$new_path" 43553 fi 43554 43555 # Call helper function which possibly converts this using DOS-style short mode. 43556 # If so, the updated path is stored in $new_path. 43557 new_path="$input_to_shortpath" 43558 43559 input_path="$input_to_shortpath" 43560 # Check if we need to convert this using DOS-style short mode. If the path 43561 # contains just simple characters, use it. Otherwise (spaces, weird characters), 43562 # take no chances and rewrite it. 43563 # Note: m4 eats our [], so we need to use [ and ] instead. 43564 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 43565 if test "x$has_forbidden_chars" != x; then 43566 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 43567 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 43568 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 43569 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 43570 # Going to short mode and back again did indeed matter. Since short mode is 43571 # case insensitive, let's make it lowercase to improve readability. 43572 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 43573 # Now convert it back to Unix-style (cygpath) 43574 input_path=`$CYGPATH -u "$shortmode_path"` 43575 new_path="$input_path" 43576 fi 43577 fi 43578 43579 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 43580 if test "x$test_cygdrive_prefix" = x; then 43581 # As a simple fix, exclude /usr/bin since it's not a real path. 43582 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 43583 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 43584 # a path prefixed by /cygdrive for fixpath to work. 43585 new_path="$CYGWIN_ROOT_PATH$input_path" 43586 fi 43587 fi 43588 43589 # remove trailing .exe if any 43590 new_path="${new_path/%.exe/}" 43591 43592 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 43593 43594 # First separate the path from the arguments. This will split at the first 43595 # space. 43596 complete="$OBJDUMP" 43597 path="${complete%% *}" 43598 tmp="$complete EOL" 43599 arguments="${tmp#* }" 43600 43601 # Input might be given as Windows format, start by converting to 43602 # unix format. 43603 new_path="$path" 43604 43605 windows_path="$new_path" 43606 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 43607 unix_path=`$CYGPATH -u "$windows_path"` 43608 new_path="$unix_path" 43609 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 43610 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 43611 new_path="$unix_path" 43612 fi 43613 43614 43615 # Now try to locate executable using which 43616 new_path=`$WHICH "$new_path" 2> /dev/null` 43617 43618 if test "x$new_path" = x; then 43619 # Oops. Which didn't find the executable. 43620 # The splitting of arguments from the executable at a space might have been incorrect, 43621 # since paths with space are more likely in Windows. Give it another try with the whole 43622 # argument. 43623 path="$complete" 43624 arguments="EOL" 43625 new_path="$path" 43626 43627 windows_path="$new_path" 43628 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 43629 unix_path=`$CYGPATH -u "$windows_path"` 43630 new_path="$unix_path" 43631 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 43632 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 43633 new_path="$unix_path" 43634 fi 43635 43636 43637 new_path=`$WHICH "$new_path" 2> /dev/null` 43638 # bat and cmd files are not always considered executable in MSYS causing which 43639 # to not find them 43640 if test "x$new_path" = x \ 43641 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 43642 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 43643 new_path="$path" 43644 43645 windows_path="$new_path" 43646 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 43647 unix_path=`$CYGPATH -u "$windows_path"` 43648 new_path="$unix_path" 43649 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 43650 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 43651 new_path="$unix_path" 43652 fi 43653 43654 fi 43655 43656 if test "x$new_path" = x; then 43657 # It's still not found. Now this is an unrecoverable error. 43658 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OBJDUMP, which resolves as \"$complete\", is not found." >&5 43659 $as_echo "$as_me: The path of OBJDUMP, which resolves as \"$complete\", is not found." >&6;} 43660 has_space=`$ECHO "$complete" | $GREP " "` 43661 if test "x$has_space" != x; then 43662 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 43663 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 43664 fi 43665 as_fn_error $? "Cannot locate the the path of OBJDUMP" "$LINENO" 5 43666 fi 43667 fi 43668 43669 # Now new_path has a complete unix path to the binary 43670 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 43671 # Keep paths in /bin as-is, but remove trailing .exe if any 43672 new_path="${new_path/%.exe/}" 43673 # Do not save /bin paths to all_fixpath_prefixes! 43674 else 43675 # Not in mixed or Windows style, start by that. 43676 new_path=`cmd //c echo $new_path` 43677 43678 input_path="$new_path" 43679 # Check if we need to convert this using DOS-style short mode. If the path 43680 # contains just simple characters, use it. Otherwise (spaces, weird characters), 43681 # take no chances and rewrite it. 43682 # Note: m4 eats our [], so we need to use [ and ] instead. 43683 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 43684 if test "x$has_forbidden_chars" != x; then 43685 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 43686 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 43687 fi 43688 43689 # Output is in $new_path 43690 43691 windows_path="$new_path" 43692 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 43693 unix_path=`$CYGPATH -u "$windows_path"` 43694 new_path="$unix_path" 43695 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 43696 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 43697 new_path="$unix_path" 43698 fi 43699 43700 # remove trailing .exe if any 43701 new_path="${new_path/%.exe/}" 43702 43703 # Save the first 10 bytes of this path to the storage, so fixpath can work. 43704 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 43705 fi 43706 43707 else 43708 # We're on a unix platform. Hooray! :) 43709 # First separate the path from the arguments. This will split at the first 43710 # space. 43711 complete="$OBJDUMP" 43712 path="${complete%% *}" 43713 tmp="$complete EOL" 43714 arguments="${tmp#* }" 43715 43716 # Cannot rely on the command "which" here since it doesn't always work. 43717 is_absolute_path=`$ECHO "$path" | $GREP ^/` 43718 if test -z "$is_absolute_path"; then 43719 # Path to executable is not absolute. Find it. 43720 IFS_save="$IFS" 43721 IFS=: 43722 for p in $PATH; do 43723 if test -f "$p/$path" && test -x "$p/$path"; then 43724 new_path="$p/$path" 43725 break 43726 fi 43727 done 43728 IFS="$IFS_save" 43729 else 43730 # This is an absolute path, we can use it without further modifications. 43731 new_path="$path" 43732 fi 43733 43734 if test "x$new_path" = x; then 43735 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OBJDUMP, which resolves as \"$complete\", is not found." >&5 43736 $as_echo "$as_me: The path of OBJDUMP, which resolves as \"$complete\", is not found." >&6;} 43737 has_space=`$ECHO "$complete" | $GREP " "` 43738 if test "x$has_space" != x; then 43739 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 43740 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 43741 fi 43742 as_fn_error $? "Cannot locate the the path of OBJDUMP" "$LINENO" 5 43743 fi 43744 fi 43745 43746 # Now join together the path and the arguments once again 43747 if test "x$arguments" != xEOL; then 43748 new_complete="$new_path ${arguments% *}" 43749 else 43750 new_complete="$new_path" 43751 fi 43752 43753 if test "x$complete" != "x$new_complete"; then 43754 OBJDUMP="$new_complete" 43755 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting OBJDUMP to \"$new_complete\"" >&5 43756 $as_echo "$as_me: Rewriting OBJDUMP to \"$new_complete\"" >&6;} 43757 fi 43758 fi 43759 43760 fi 43761 43762 43763 # Restore old path, except for the microsoft toolchain, which requires VS_PATH 43764 # to remain in place. Otherwise the compiler will not work in some siutations 43765 # in later configure checks. 43766 if test "x$TOOLCHAIN_TYPE" != "xmicrosoft"; then 43767 PATH="$OLD_PATH" 43768 fi 43769 43770 # Restore the flags to the user specified values. 43771 # This is necessary since AC_PROG_CC defaults CFLAGS to "-g -O2" 43772 CFLAGS="$ORG_CFLAGS" 43773 CXXFLAGS="$ORG_CXXFLAGS" 43774 43775 43776 # Finally do some processing after the detection phase 43777 43778 if test "x$COMPILE_TYPE" = "xcross"; then 43779 # Now we need to find a C/C++ compiler that can build executables for the 43780 # build platform. We can't use the AC_PROG_CC macro, since it can only be 43781 # used once. Also, we need to do this without adding a tools dir to the 43782 # path, otherwise we might pick up cross-compilers which don't use standard 43783 # naming. 43784 43785 OLDPATH="$PATH" 43786 43787 43788 # Check whether --with-build-devkit was given. 43789 if test "${with_build_devkit+set}" = set; then : 43790 withval=$with_build_devkit; 43791 fi 43792 43793 if test "x$with_build_devkit" = "xyes"; then 43794 as_fn_error $? "--with-build-devkit must have a value" "$LINENO" 5 43795 elif test -n "$with_build_devkit"; then 43796 if test ! -d "$with_build_devkit"; then 43797 as_fn_error $? "--with-build-devkit points to non existing dir: $with_build_devkit" "$LINENO" 5 43798 else 43799 43800 # Only process if variable expands to non-empty 43801 43802 if test "x$with_build_devkit" != x; then 43803 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 43804 43805 # Input might be given as Windows format, start by converting to 43806 # unix format. 43807 path="$with_build_devkit" 43808 new_path=`$CYGPATH -u "$path"` 43809 43810 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 43811 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 43812 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 43813 # "foo.exe" is OK but "foo" is an error. 43814 # 43815 # This test is therefore slightly more accurate than "test -f" to check for file precense. 43816 # It is also a way to make sure we got the proper file name for the real test later on. 43817 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 43818 if test "x$test_shortpath" = x; then 43819 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of with_build_devkit, which resolves as \"$path\", is invalid." >&5 43820 $as_echo "$as_me: The path of with_build_devkit, which resolves as \"$path\", is invalid." >&6;} 43821 as_fn_error $? "Cannot locate the the path of with_build_devkit" "$LINENO" 5 43822 fi 43823 43824 # Call helper function which possibly converts this using DOS-style short mode. 43825 # If so, the updated path is stored in $new_path. 43826 43827 input_path="$new_path" 43828 # Check if we need to convert this using DOS-style short mode. If the path 43829 # contains just simple characters, use it. Otherwise (spaces, weird characters), 43830 # take no chances and rewrite it. 43831 # Note: m4 eats our [], so we need to use [ and ] instead. 43832 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 43833 if test "x$has_forbidden_chars" != x; then 43834 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 43835 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 43836 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 43837 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 43838 # Going to short mode and back again did indeed matter. Since short mode is 43839 # case insensitive, let's make it lowercase to improve readability. 43840 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 43841 # Now convert it back to Unix-style (cygpath) 43842 input_path=`$CYGPATH -u "$shortmode_path"` 43843 new_path="$input_path" 43844 fi 43845 fi 43846 43847 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 43848 if test "x$test_cygdrive_prefix" = x; then 43849 # As a simple fix, exclude /usr/bin since it's not a real path. 43850 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 43851 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 43852 # a path prefixed by /cygdrive for fixpath to work. 43853 new_path="$CYGWIN_ROOT_PATH$input_path" 43854 fi 43855 fi 43856 43857 43858 if test "x$path" != "x$new_path"; then 43859 with_build_devkit="$new_path" 43860 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting with_build_devkit to \"$new_path\"" >&5 43861 $as_echo "$as_me: Rewriting with_build_devkit to \"$new_path\"" >&6;} 43862 fi 43863 43864 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 43865 43866 path="$with_build_devkit" 43867 has_colon=`$ECHO $path | $GREP ^.:` 43868 new_path="$path" 43869 if test "x$has_colon" = x; then 43870 # Not in mixed or Windows style, start by that. 43871 new_path=`cmd //c echo $path` 43872 fi 43873 43874 43875 input_path="$new_path" 43876 # Check if we need to convert this using DOS-style short mode. If the path 43877 # contains just simple characters, use it. Otherwise (spaces, weird characters), 43878 # take no chances and rewrite it. 43879 # Note: m4 eats our [], so we need to use [ and ] instead. 43880 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 43881 if test "x$has_forbidden_chars" != x; then 43882 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 43883 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 43884 fi 43885 43886 43887 windows_path="$new_path" 43888 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 43889 unix_path=`$CYGPATH -u "$windows_path"` 43890 new_path="$unix_path" 43891 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 43892 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 43893 new_path="$unix_path" 43894 fi 43895 43896 if test "x$path" != "x$new_path"; then 43897 with_build_devkit="$new_path" 43898 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting with_build_devkit to \"$new_path\"" >&5 43899 $as_echo "$as_me: Rewriting with_build_devkit to \"$new_path\"" >&6;} 43900 fi 43901 43902 # Save the first 10 bytes of this path to the storage, so fixpath can work. 43903 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 43904 43905 else 43906 # We're on a unix platform. Hooray! :) 43907 path="$with_build_devkit" 43908 has_space=`$ECHO "$path" | $GREP " "` 43909 if test "x$has_space" != x; then 43910 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of with_build_devkit, which resolves as \"$path\", is invalid." >&5 43911 $as_echo "$as_me: The path of with_build_devkit, which resolves as \"$path\", is invalid." >&6;} 43912 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 43913 fi 43914 43915 # Use eval to expand a potential ~ 43916 eval path="$path" 43917 if test ! -f "$path" && test ! -d "$path"; then 43918 as_fn_error $? "The path of with_build_devkit, which resolves as \"$path\", is not found." "$LINENO" 5 43919 fi 43920 43921 if test -d "$path"; then 43922 with_build_devkit="`cd "$path"; $THEPWDCMD -L`" 43923 else 43924 dir="`$DIRNAME "$path"`" 43925 base="`$BASENAME "$path"`" 43926 with_build_devkit="`cd "$dir"; $THEPWDCMD -L`/$base" 43927 fi 43928 fi 43929 fi 43930 43931 BUILD_DEVKIT_ROOT="$with_build_devkit" 43932 # Check for a meta data info file in the root of the devkit 43933 if test -f "$BUILD_DEVKIT_ROOT/devkit.info"; then 43934 # Process devkit.info so that existing devkit variables are not 43935 # modified by this 43936 $SED -e "s/^DEVKIT_/BUILD_DEVKIT_/g" \ 43937 -e "s/\$DEVKIT_ROOT/\$BUILD_DEVKIT_ROOT/g" \ 43938 -e "s/\$host/\$build/g" \ 43939 $BUILD_DEVKIT_ROOT/devkit.info \ 43940 > $CONFIGURESUPPORT_OUTPUTDIR/build-devkit.info 43941 . $CONFIGURESUPPORT_OUTPUTDIR/build-devkit.info 43942 # This potentially sets the following: 43943 # A descriptive name of the devkit 43944 43945 if test "x$BUILD_DEVKIT_NAME" = x; then 43946 eval BUILD_DEVKIT_NAME="\${BUILD_DEVKIT_NAME_${OPENJDK_TARGET_CPU}}" 43947 fi 43948 43949 # Corresponds to --with-extra-path 43950 43951 if test "x$BUILD_DEVKIT_EXTRA_PATH" = x; then 43952 eval BUILD_DEVKIT_EXTRA_PATH="\${BUILD_DEVKIT_EXTRA_PATH_${OPENJDK_TARGET_CPU}}" 43953 fi 43954 43955 # Corresponds to --with-toolchain-path 43956 43957 if test "x$BUILD_DEVKIT_TOOLCHAIN_PATH" = x; then 43958 eval BUILD_DEVKIT_TOOLCHAIN_PATH="\${BUILD_DEVKIT_TOOLCHAIN_PATH_${OPENJDK_TARGET_CPU}}" 43959 fi 43960 43961 # Corresponds to --with-sysroot 43962 43963 if test "x$BUILD_DEVKIT_SYSROOT" = x; then 43964 eval BUILD_DEVKIT_SYSROOT="\${BUILD_DEVKIT_SYSROOT_${OPENJDK_TARGET_CPU}}" 43965 fi 43966 43967 # Skip the Window specific parts 43968 fi 43969 43970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for build platform devkit" >&5 43971 $as_echo_n "checking for build platform devkit... " >&6; } 43972 if test "x$BUILD_DEVKIT_NAME" != x; then 43973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_DEVKIT_NAME in $BUILD_DEVKIT_ROOT" >&5 43974 $as_echo "$BUILD_DEVKIT_NAME in $BUILD_DEVKIT_ROOT" >&6; } 43975 else 43976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_DEVKIT_ROOT" >&5 43977 $as_echo "$BUILD_DEVKIT_ROOT" >&6; } 43978 fi 43979 43980 BUILD_SYSROOT="$BUILD_DEVKIT_SYSROOT" 43981 43982 if test "x$BUILD_SYSROOT" != "x"; then 43983 if test "x$TOOLCHAIN_TYPE" = xsolstudio; then 43984 if test "x$OPENJDK_TARGET_OS" = xsolaris; then 43985 # Solaris Studio does not have a concept of sysroot. Instead we must 43986 # make sure the default include and lib dirs are appended to each 43987 # compile and link command line. Must also add -I-xbuiltin to enable 43988 # inlining of system functions and intrinsics. 43989 BUILD_SYSROOT_CFLAGS="-I-xbuiltin -I$BUILD_SYSROOT/usr/include" 43990 BUILD_SYSROOT_LDFLAGS="-L$BUILD_SYSROOT/usr/lib$OPENJDK_TARGET_CPU_ISADIR \ 43991 -L$BUILD_SYSROOT/lib$OPENJDK_TARGET_CPU_ISADIR" 43992 fi 43993 elif test "x$TOOLCHAIN_TYPE" = xgcc; then 43994 BUILD_SYSROOT_CFLAGS="--sysroot=$BUILD_SYSROOT" 43995 BUILD_SYSROOT_LDFLAGS="--sysroot=$BUILD_SYSROOT" 43996 elif test "x$TOOLCHAIN_TYPE" = xclang; then 43997 BUILD_SYSROOT_CFLAGS="-isysroot $BUILD_SYSROOT" 43998 BUILD_SYSROOT_LDFLAGS="-isysroot $BUILD_SYSROOT" 43999 fi 44000 # Propagate the sysroot args to hotspot 44001 BUILD_LEGACY_EXTRA_CFLAGS="$BUILD_LEGACY_EXTRA_CFLAGS $BUILD_SYSROOT_CFLAGS" 44002 BUILD_LEGACY_EXTRA_CXXFLAGS="$BUILD_LEGACY_EXTRA_CXXFLAGS $BUILD_SYSROOT_CFLAGS" 44003 BUILD_LEGACY_EXTRA_LDFLAGS="$BUILD_LEGACY_EXTRA_LDFLAGS $BUILD_SYSROOT_LDFLAGS" 44004 # The global CFLAGS and LDFLAGS variables need these for configure to function 44005 BUILD_CFLAGS="$BUILD_CFLAGS $BUILD_SYSROOT_CFLAGS" 44006 BUILD_CPPFLAGS="$BUILD_CPPFLAGS $BUILD_SYSROOT_CFLAGS" 44007 BUILD_CXXFLAGS="$BUILD_CXXFLAGS $BUILD_SYSROOT_CFLAGS" 44008 BUILD_LDFLAGS="$BUILD_LDFLAGS $BUILD_SYSROOT_LDFLAGS" 44009 fi 44010 44011 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 44012 # We also need -iframework<path>/System/Library/Frameworks 44013 BUILD_SYSROOT_CFLAGS="$BUILD_SYSROOT_CFLAGS -iframework $BUILD_SYSROOT/System/Library/Frameworks" 44014 BUILD_SYSROOT_LDFLAGS="$BUILD_SYSROOT_LDFLAGS -iframework $BUILD_SYSROOT/System/Library/Frameworks" 44015 # These always need to be set, or we can't find the frameworks embedded in JavaVM.framework 44016 # set this here so it doesn't have to be peppered throughout the forest 44017 BUILD_SYSROOT_CFLAGS="$BUILD_SYSROOT_CFLAGS -F $BUILD_SYSROOT/System/Library/Frameworks/JavaVM.framework/Frameworks" 44018 BUILD_SYSROOT_LDFLAGS="$BUILD_SYSROOT_LDFLAGS -F $BUILD_SYSROOT/System/Library/Frameworks/JavaVM.framework/Frameworks" 44019 fi 44020 44021 44022 44023 44024 44025 # Fallback default of just /bin if DEVKIT_PATH is not defined 44026 if test "x$BUILD_DEVKIT_TOOLCHAIN_PATH" = x; then 44027 BUILD_DEVKIT_TOOLCHAIN_PATH="$BUILD_DEVKIT_ROOT/bin" 44028 fi 44029 PATH="$BUILD_DEVKIT_TOOLCHAIN_PATH:$BUILD_DEVKIT_EXTRA_PATH" 44030 fi 44031 fi 44032 44033 # FIXME: we should list the discovered compilers as an exclude pattern! 44034 # If we do that, we can do this detection before POST_DETECTION, and still 44035 # find the build compilers in the tools dir, if needed. 44036 44037 44038 44039 # Publish this variable in the help. 44040 44041 44042 if [ -z "${BUILD_CC+x}" ]; then 44043 # The variable is not set by user, try to locate tool using the code snippet 44044 for ac_prog in cl cc gcc 44045 do 44046 # Extract the first word of "$ac_prog", so it can be a program name with args. 44047 set dummy $ac_prog; ac_word=$2 44048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 44049 $as_echo_n "checking for $ac_word... " >&6; } 44050 if ${ac_cv_path_BUILD_CC+:} false; then : 44051 $as_echo_n "(cached) " >&6 44052 else 44053 case $BUILD_CC in 44054 [\\/]* | ?:[\\/]*) 44055 ac_cv_path_BUILD_CC="$BUILD_CC" # Let the user override the test with a path. 44056 ;; 44057 *) 44058 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 44059 for as_dir in $PATH 44060 do 44061 IFS=$as_save_IFS 44062 test -z "$as_dir" && as_dir=. 44063 for ac_exec_ext in '' $ac_executable_extensions; do 44064 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 44065 ac_cv_path_BUILD_CC="$as_dir/$ac_word$ac_exec_ext" 44066 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 44067 break 2 44068 fi 44069 done 44070 done 44071 IFS=$as_save_IFS 44072 44073 ;; 44074 esac 44075 fi 44076 BUILD_CC=$ac_cv_path_BUILD_CC 44077 if test -n "$BUILD_CC"; then 44078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CC" >&5 44079 $as_echo "$BUILD_CC" >&6; } 44080 else 44081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 44082 $as_echo "no" >&6; } 44083 fi 44084 44085 44086 test -n "$BUILD_CC" && break 44087 done 44088 44089 else 44090 # The variable is set, but is it from the command line or the environment? 44091 44092 # Try to remove the string !BUILD_CC! from our list. 44093 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!BUILD_CC!/} 44094 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 44095 # If it failed, the variable was not from the command line. Ignore it, 44096 # but warn the user (except for BASH, which is always set by the calling BASH). 44097 if test "xBUILD_CC" != xBASH; then 44098 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of BUILD_CC from the environment. Use command line variables instead." >&5 44099 $as_echo "$as_me: WARNING: Ignoring value of BUILD_CC from the environment. Use command line variables instead." >&2;} 44100 fi 44101 # Try to locate tool using the code snippet 44102 for ac_prog in cl cc gcc 44103 do 44104 # Extract the first word of "$ac_prog", so it can be a program name with args. 44105 set dummy $ac_prog; ac_word=$2 44106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 44107 $as_echo_n "checking for $ac_word... " >&6; } 44108 if ${ac_cv_path_BUILD_CC+:} false; then : 44109 $as_echo_n "(cached) " >&6 44110 else 44111 case $BUILD_CC in 44112 [\\/]* | ?:[\\/]*) 44113 ac_cv_path_BUILD_CC="$BUILD_CC" # Let the user override the test with a path. 44114 ;; 44115 *) 44116 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 44117 for as_dir in $PATH 44118 do 44119 IFS=$as_save_IFS 44120 test -z "$as_dir" && as_dir=. 44121 for ac_exec_ext in '' $ac_executable_extensions; do 44122 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 44123 ac_cv_path_BUILD_CC="$as_dir/$ac_word$ac_exec_ext" 44124 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 44125 break 2 44126 fi 44127 done 44128 done 44129 IFS=$as_save_IFS 44130 44131 ;; 44132 esac 44133 fi 44134 BUILD_CC=$ac_cv_path_BUILD_CC 44135 if test -n "$BUILD_CC"; then 44136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CC" >&5 44137 $as_echo "$BUILD_CC" >&6; } 44138 else 44139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 44140 $as_echo "no" >&6; } 44141 fi 44142 44143 44144 test -n "$BUILD_CC" && break 44145 done 44146 44147 else 44148 # If it succeeded, then it was overridden by the user. We will use it 44149 # for the tool. 44150 44151 # First remove it from the list of overridden variables, so we can test 44152 # for unknown variables in the end. 44153 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 44154 44155 # Check if we try to supply an empty value 44156 if test "x$BUILD_CC" = x; then 44157 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool BUILD_CC= (no value)" >&5 44158 $as_echo "$as_me: Setting user supplied tool BUILD_CC= (no value)" >&6;} 44159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BUILD_CC" >&5 44160 $as_echo_n "checking for BUILD_CC... " >&6; } 44161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 44162 $as_echo "disabled" >&6; } 44163 else 44164 # Check if the provided tool contains a complete path. 44165 tool_specified="$BUILD_CC" 44166 tool_basename="${tool_specified##*/}" 44167 if test "x$tool_basename" = "x$tool_specified"; then 44168 # A command without a complete path is provided, search $PATH. 44169 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool BUILD_CC=$tool_basename" >&5 44170 $as_echo "$as_me: Will search for user supplied tool BUILD_CC=$tool_basename" >&6;} 44171 # Extract the first word of "$tool_basename", so it can be a program name with args. 44172 set dummy $tool_basename; ac_word=$2 44173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 44174 $as_echo_n "checking for $ac_word... " >&6; } 44175 if ${ac_cv_path_BUILD_CC+:} false; then : 44176 $as_echo_n "(cached) " >&6 44177 else 44178 case $BUILD_CC in 44179 [\\/]* | ?:[\\/]*) 44180 ac_cv_path_BUILD_CC="$BUILD_CC" # Let the user override the test with a path. 44181 ;; 44182 *) 44183 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 44184 for as_dir in $PATH 44185 do 44186 IFS=$as_save_IFS 44187 test -z "$as_dir" && as_dir=. 44188 for ac_exec_ext in '' $ac_executable_extensions; do 44189 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 44190 ac_cv_path_BUILD_CC="$as_dir/$ac_word$ac_exec_ext" 44191 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 44192 break 2 44193 fi 44194 done 44195 done 44196 IFS=$as_save_IFS 44197 44198 ;; 44199 esac 44200 fi 44201 BUILD_CC=$ac_cv_path_BUILD_CC 44202 if test -n "$BUILD_CC"; then 44203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CC" >&5 44204 $as_echo "$BUILD_CC" >&6; } 44205 else 44206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 44207 $as_echo "no" >&6; } 44208 fi 44209 44210 44211 if test "x$BUILD_CC" = x; then 44212 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 44213 fi 44214 else 44215 # Otherwise we believe it is a complete path. Use it as it is. 44216 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool BUILD_CC=$tool_specified" >&5 44217 $as_echo "$as_me: Will use user supplied tool BUILD_CC=$tool_specified" >&6;} 44218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BUILD_CC" >&5 44219 $as_echo_n "checking for BUILD_CC... " >&6; } 44220 if test ! -x "$tool_specified"; then 44221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 44222 $as_echo "not found" >&6; } 44223 as_fn_error $? "User supplied tool BUILD_CC=$tool_specified does not exist or is not executable" "$LINENO" 5 44224 fi 44225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 44226 $as_echo "$tool_specified" >&6; } 44227 fi 44228 fi 44229 fi 44230 44231 fi 44232 44233 44234 44235 if test "x$BUILD_CC" = x; then 44236 as_fn_error $? "Could not find required tool for BUILD_CC" "$LINENO" 5 44237 fi 44238 44239 44240 44241 # Only process if variable expands to non-empty 44242 44243 if test "x$BUILD_CC" != x; then 44244 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 44245 44246 # First separate the path from the arguments. This will split at the first 44247 # space. 44248 complete="$BUILD_CC" 44249 path="${complete%% *}" 44250 tmp="$complete EOL" 44251 arguments="${tmp#* }" 44252 44253 # Input might be given as Windows format, start by converting to 44254 # unix format. 44255 new_path=`$CYGPATH -u "$path"` 44256 44257 # Now try to locate executable using which 44258 new_path=`$WHICH "$new_path" 2> /dev/null` 44259 # bat and cmd files are not always considered executable in cygwin causing which 44260 # to not find them 44261 if test "x$new_path" = x \ 44262 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 44263 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 44264 new_path=`$CYGPATH -u "$path"` 44265 fi 44266 if test "x$new_path" = x; then 44267 # Oops. Which didn't find the executable. 44268 # The splitting of arguments from the executable at a space might have been incorrect, 44269 # since paths with space are more likely in Windows. Give it another try with the whole 44270 # argument. 44271 path="$complete" 44272 arguments="EOL" 44273 new_path=`$CYGPATH -u "$path"` 44274 new_path=`$WHICH "$new_path" 2> /dev/null` 44275 # bat and cmd files are not always considered executable in cygwin causing which 44276 # to not find them 44277 if test "x$new_path" = x \ 44278 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 44279 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 44280 new_path=`$CYGPATH -u "$path"` 44281 fi 44282 if test "x$new_path" = x; then 44283 # It's still not found. Now this is an unrecoverable error. 44284 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_CC, which resolves as \"$complete\", is not found." >&5 44285 $as_echo "$as_me: The path of BUILD_CC, which resolves as \"$complete\", is not found." >&6;} 44286 has_space=`$ECHO "$complete" | $GREP " "` 44287 if test "x$has_space" != x; then 44288 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 44289 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 44290 fi 44291 as_fn_error $? "Cannot locate the the path of BUILD_CC" "$LINENO" 5 44292 fi 44293 fi 44294 44295 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 44296 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 44297 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 44298 # "foo.exe" is OK but "foo" is an error. 44299 # 44300 # This test is therefore slightly more accurate than "test -f" to check for file presence. 44301 # It is also a way to make sure we got the proper file name for the real test later on. 44302 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 44303 if test "x$test_shortpath" = x; then 44304 # Short path failed, file does not exist as specified. 44305 # Try adding .exe or .cmd 44306 if test -f "${new_path}.exe"; then 44307 input_to_shortpath="${new_path}.exe" 44308 elif test -f "${new_path}.cmd"; then 44309 input_to_shortpath="${new_path}.cmd" 44310 else 44311 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_CC, which resolves as \"$new_path\", is invalid." >&5 44312 $as_echo "$as_me: The path of BUILD_CC, which resolves as \"$new_path\", is invalid." >&6;} 44313 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 44314 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 44315 as_fn_error $? "Cannot locate the the path of BUILD_CC" "$LINENO" 5 44316 fi 44317 else 44318 input_to_shortpath="$new_path" 44319 fi 44320 44321 # Call helper function which possibly converts this using DOS-style short mode. 44322 # If so, the updated path is stored in $new_path. 44323 new_path="$input_to_shortpath" 44324 44325 input_path="$input_to_shortpath" 44326 # Check if we need to convert this using DOS-style short mode. If the path 44327 # contains just simple characters, use it. Otherwise (spaces, weird characters), 44328 # take no chances and rewrite it. 44329 # Note: m4 eats our [], so we need to use [ and ] instead. 44330 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 44331 if test "x$has_forbidden_chars" != x; then 44332 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 44333 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 44334 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 44335 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 44336 # Going to short mode and back again did indeed matter. Since short mode is 44337 # case insensitive, let's make it lowercase to improve readability. 44338 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 44339 # Now convert it back to Unix-style (cygpath) 44340 input_path=`$CYGPATH -u "$shortmode_path"` 44341 new_path="$input_path" 44342 fi 44343 fi 44344 44345 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 44346 if test "x$test_cygdrive_prefix" = x; then 44347 # As a simple fix, exclude /usr/bin since it's not a real path. 44348 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 44349 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 44350 # a path prefixed by /cygdrive for fixpath to work. 44351 new_path="$CYGWIN_ROOT_PATH$input_path" 44352 fi 44353 fi 44354 44355 # remove trailing .exe if any 44356 new_path="${new_path/%.exe/}" 44357 44358 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 44359 44360 # First separate the path from the arguments. This will split at the first 44361 # space. 44362 complete="$BUILD_CC" 44363 path="${complete%% *}" 44364 tmp="$complete EOL" 44365 arguments="${tmp#* }" 44366 44367 # Input might be given as Windows format, start by converting to 44368 # unix format. 44369 new_path="$path" 44370 44371 windows_path="$new_path" 44372 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 44373 unix_path=`$CYGPATH -u "$windows_path"` 44374 new_path="$unix_path" 44375 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 44376 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 44377 new_path="$unix_path" 44378 fi 44379 44380 44381 # Now try to locate executable using which 44382 new_path=`$WHICH "$new_path" 2> /dev/null` 44383 44384 if test "x$new_path" = x; then 44385 # Oops. Which didn't find the executable. 44386 # The splitting of arguments from the executable at a space might have been incorrect, 44387 # since paths with space are more likely in Windows. Give it another try with the whole 44388 # argument. 44389 path="$complete" 44390 arguments="EOL" 44391 new_path="$path" 44392 44393 windows_path="$new_path" 44394 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 44395 unix_path=`$CYGPATH -u "$windows_path"` 44396 new_path="$unix_path" 44397 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 44398 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 44399 new_path="$unix_path" 44400 fi 44401 44402 44403 new_path=`$WHICH "$new_path" 2> /dev/null` 44404 # bat and cmd files are not always considered executable in MSYS causing which 44405 # to not find them 44406 if test "x$new_path" = x \ 44407 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 44408 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 44409 new_path="$path" 44410 44411 windows_path="$new_path" 44412 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 44413 unix_path=`$CYGPATH -u "$windows_path"` 44414 new_path="$unix_path" 44415 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 44416 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 44417 new_path="$unix_path" 44418 fi 44419 44420 fi 44421 44422 if test "x$new_path" = x; then 44423 # It's still not found. Now this is an unrecoverable error. 44424 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_CC, which resolves as \"$complete\", is not found." >&5 44425 $as_echo "$as_me: The path of BUILD_CC, which resolves as \"$complete\", is not found." >&6;} 44426 has_space=`$ECHO "$complete" | $GREP " "` 44427 if test "x$has_space" != x; then 44428 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 44429 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 44430 fi 44431 as_fn_error $? "Cannot locate the the path of BUILD_CC" "$LINENO" 5 44432 fi 44433 fi 44434 44435 # Now new_path has a complete unix path to the binary 44436 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 44437 # Keep paths in /bin as-is, but remove trailing .exe if any 44438 new_path="${new_path/%.exe/}" 44439 # Do not save /bin paths to all_fixpath_prefixes! 44440 else 44441 # Not in mixed or Windows style, start by that. 44442 new_path=`cmd //c echo $new_path` 44443 44444 input_path="$new_path" 44445 # Check if we need to convert this using DOS-style short mode. If the path 44446 # contains just simple characters, use it. Otherwise (spaces, weird characters), 44447 # take no chances and rewrite it. 44448 # Note: m4 eats our [], so we need to use [ and ] instead. 44449 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 44450 if test "x$has_forbidden_chars" != x; then 44451 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 44452 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 44453 fi 44454 44455 # Output is in $new_path 44456 44457 windows_path="$new_path" 44458 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 44459 unix_path=`$CYGPATH -u "$windows_path"` 44460 new_path="$unix_path" 44461 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 44462 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 44463 new_path="$unix_path" 44464 fi 44465 44466 # remove trailing .exe if any 44467 new_path="${new_path/%.exe/}" 44468 44469 # Save the first 10 bytes of this path to the storage, so fixpath can work. 44470 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 44471 fi 44472 44473 else 44474 # We're on a unix platform. Hooray! :) 44475 # First separate the path from the arguments. This will split at the first 44476 # space. 44477 complete="$BUILD_CC" 44478 path="${complete%% *}" 44479 tmp="$complete EOL" 44480 arguments="${tmp#* }" 44481 44482 # Cannot rely on the command "which" here since it doesn't always work. 44483 is_absolute_path=`$ECHO "$path" | $GREP ^/` 44484 if test -z "$is_absolute_path"; then 44485 # Path to executable is not absolute. Find it. 44486 IFS_save="$IFS" 44487 IFS=: 44488 for p in $PATH; do 44489 if test -f "$p/$path" && test -x "$p/$path"; then 44490 new_path="$p/$path" 44491 break 44492 fi 44493 done 44494 IFS="$IFS_save" 44495 else 44496 # This is an absolute path, we can use it without further modifications. 44497 new_path="$path" 44498 fi 44499 44500 if test "x$new_path" = x; then 44501 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_CC, which resolves as \"$complete\", is not found." >&5 44502 $as_echo "$as_me: The path of BUILD_CC, which resolves as \"$complete\", is not found." >&6;} 44503 has_space=`$ECHO "$complete" | $GREP " "` 44504 if test "x$has_space" != x; then 44505 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 44506 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 44507 fi 44508 as_fn_error $? "Cannot locate the the path of BUILD_CC" "$LINENO" 5 44509 fi 44510 fi 44511 44512 # Now join together the path and the arguments once again 44513 if test "x$arguments" != xEOL; then 44514 new_complete="$new_path ${arguments% *}" 44515 else 44516 new_complete="$new_path" 44517 fi 44518 44519 if test "x$complete" != "x$new_complete"; then 44520 BUILD_CC="$new_complete" 44521 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BUILD_CC to \"$new_complete\"" >&5 44522 $as_echo "$as_me: Rewriting BUILD_CC to \"$new_complete\"" >&6;} 44523 fi 44524 fi 44525 44526 44527 44528 44529 # Publish this variable in the help. 44530 44531 44532 if [ -z "${BUILD_CXX+x}" ]; then 44533 # The variable is not set by user, try to locate tool using the code snippet 44534 for ac_prog in cl CC g++ 44535 do 44536 # Extract the first word of "$ac_prog", so it can be a program name with args. 44537 set dummy $ac_prog; ac_word=$2 44538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 44539 $as_echo_n "checking for $ac_word... " >&6; } 44540 if ${ac_cv_path_BUILD_CXX+:} false; then : 44541 $as_echo_n "(cached) " >&6 44542 else 44543 case $BUILD_CXX in 44544 [\\/]* | ?:[\\/]*) 44545 ac_cv_path_BUILD_CXX="$BUILD_CXX" # Let the user override the test with a path. 44546 ;; 44547 *) 44548 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 44549 for as_dir in $PATH 44550 do 44551 IFS=$as_save_IFS 44552 test -z "$as_dir" && as_dir=. 44553 for ac_exec_ext in '' $ac_executable_extensions; do 44554 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 44555 ac_cv_path_BUILD_CXX="$as_dir/$ac_word$ac_exec_ext" 44556 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 44557 break 2 44558 fi 44559 done 44560 done 44561 IFS=$as_save_IFS 44562 44563 ;; 44564 esac 44565 fi 44566 BUILD_CXX=$ac_cv_path_BUILD_CXX 44567 if test -n "$BUILD_CXX"; then 44568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CXX" >&5 44569 $as_echo "$BUILD_CXX" >&6; } 44570 else 44571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 44572 $as_echo "no" >&6; } 44573 fi 44574 44575 44576 test -n "$BUILD_CXX" && break 44577 done 44578 44579 else 44580 # The variable is set, but is it from the command line or the environment? 44581 44582 # Try to remove the string !BUILD_CXX! from our list. 44583 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!BUILD_CXX!/} 44584 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 44585 # If it failed, the variable was not from the command line. Ignore it, 44586 # but warn the user (except for BASH, which is always set by the calling BASH). 44587 if test "xBUILD_CXX" != xBASH; then 44588 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of BUILD_CXX from the environment. Use command line variables instead." >&5 44589 $as_echo "$as_me: WARNING: Ignoring value of BUILD_CXX from the environment. Use command line variables instead." >&2;} 44590 fi 44591 # Try to locate tool using the code snippet 44592 for ac_prog in cl CC g++ 44593 do 44594 # Extract the first word of "$ac_prog", so it can be a program name with args. 44595 set dummy $ac_prog; ac_word=$2 44596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 44597 $as_echo_n "checking for $ac_word... " >&6; } 44598 if ${ac_cv_path_BUILD_CXX+:} false; then : 44599 $as_echo_n "(cached) " >&6 44600 else 44601 case $BUILD_CXX in 44602 [\\/]* | ?:[\\/]*) 44603 ac_cv_path_BUILD_CXX="$BUILD_CXX" # Let the user override the test with a path. 44604 ;; 44605 *) 44606 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 44607 for as_dir in $PATH 44608 do 44609 IFS=$as_save_IFS 44610 test -z "$as_dir" && as_dir=. 44611 for ac_exec_ext in '' $ac_executable_extensions; do 44612 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 44613 ac_cv_path_BUILD_CXX="$as_dir/$ac_word$ac_exec_ext" 44614 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 44615 break 2 44616 fi 44617 done 44618 done 44619 IFS=$as_save_IFS 44620 44621 ;; 44622 esac 44623 fi 44624 BUILD_CXX=$ac_cv_path_BUILD_CXX 44625 if test -n "$BUILD_CXX"; then 44626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CXX" >&5 44627 $as_echo "$BUILD_CXX" >&6; } 44628 else 44629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 44630 $as_echo "no" >&6; } 44631 fi 44632 44633 44634 test -n "$BUILD_CXX" && break 44635 done 44636 44637 else 44638 # If it succeeded, then it was overridden by the user. We will use it 44639 # for the tool. 44640 44641 # First remove it from the list of overridden variables, so we can test 44642 # for unknown variables in the end. 44643 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 44644 44645 # Check if we try to supply an empty value 44646 if test "x$BUILD_CXX" = x; then 44647 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool BUILD_CXX= (no value)" >&5 44648 $as_echo "$as_me: Setting user supplied tool BUILD_CXX= (no value)" >&6;} 44649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BUILD_CXX" >&5 44650 $as_echo_n "checking for BUILD_CXX... " >&6; } 44651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 44652 $as_echo "disabled" >&6; } 44653 else 44654 # Check if the provided tool contains a complete path. 44655 tool_specified="$BUILD_CXX" 44656 tool_basename="${tool_specified##*/}" 44657 if test "x$tool_basename" = "x$tool_specified"; then 44658 # A command without a complete path is provided, search $PATH. 44659 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool BUILD_CXX=$tool_basename" >&5 44660 $as_echo "$as_me: Will search for user supplied tool BUILD_CXX=$tool_basename" >&6;} 44661 # Extract the first word of "$tool_basename", so it can be a program name with args. 44662 set dummy $tool_basename; ac_word=$2 44663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 44664 $as_echo_n "checking for $ac_word... " >&6; } 44665 if ${ac_cv_path_BUILD_CXX+:} false; then : 44666 $as_echo_n "(cached) " >&6 44667 else 44668 case $BUILD_CXX in 44669 [\\/]* | ?:[\\/]*) 44670 ac_cv_path_BUILD_CXX="$BUILD_CXX" # Let the user override the test with a path. 44671 ;; 44672 *) 44673 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 44674 for as_dir in $PATH 44675 do 44676 IFS=$as_save_IFS 44677 test -z "$as_dir" && as_dir=. 44678 for ac_exec_ext in '' $ac_executable_extensions; do 44679 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 44680 ac_cv_path_BUILD_CXX="$as_dir/$ac_word$ac_exec_ext" 44681 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 44682 break 2 44683 fi 44684 done 44685 done 44686 IFS=$as_save_IFS 44687 44688 ;; 44689 esac 44690 fi 44691 BUILD_CXX=$ac_cv_path_BUILD_CXX 44692 if test -n "$BUILD_CXX"; then 44693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CXX" >&5 44694 $as_echo "$BUILD_CXX" >&6; } 44695 else 44696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 44697 $as_echo "no" >&6; } 44698 fi 44699 44700 44701 if test "x$BUILD_CXX" = x; then 44702 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 44703 fi 44704 else 44705 # Otherwise we believe it is a complete path. Use it as it is. 44706 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool BUILD_CXX=$tool_specified" >&5 44707 $as_echo "$as_me: Will use user supplied tool BUILD_CXX=$tool_specified" >&6;} 44708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BUILD_CXX" >&5 44709 $as_echo_n "checking for BUILD_CXX... " >&6; } 44710 if test ! -x "$tool_specified"; then 44711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 44712 $as_echo "not found" >&6; } 44713 as_fn_error $? "User supplied tool BUILD_CXX=$tool_specified does not exist or is not executable" "$LINENO" 5 44714 fi 44715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 44716 $as_echo "$tool_specified" >&6; } 44717 fi 44718 fi 44719 fi 44720 44721 fi 44722 44723 44724 44725 if test "x$BUILD_CXX" = x; then 44726 as_fn_error $? "Could not find required tool for BUILD_CXX" "$LINENO" 5 44727 fi 44728 44729 44730 44731 # Only process if variable expands to non-empty 44732 44733 if test "x$BUILD_CXX" != x; then 44734 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 44735 44736 # First separate the path from the arguments. This will split at the first 44737 # space. 44738 complete="$BUILD_CXX" 44739 path="${complete%% *}" 44740 tmp="$complete EOL" 44741 arguments="${tmp#* }" 44742 44743 # Input might be given as Windows format, start by converting to 44744 # unix format. 44745 new_path=`$CYGPATH -u "$path"` 44746 44747 # Now try to locate executable using which 44748 new_path=`$WHICH "$new_path" 2> /dev/null` 44749 # bat and cmd files are not always considered executable in cygwin causing which 44750 # to not find them 44751 if test "x$new_path" = x \ 44752 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 44753 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 44754 new_path=`$CYGPATH -u "$path"` 44755 fi 44756 if test "x$new_path" = x; then 44757 # Oops. Which didn't find the executable. 44758 # The splitting of arguments from the executable at a space might have been incorrect, 44759 # since paths with space are more likely in Windows. Give it another try with the whole 44760 # argument. 44761 path="$complete" 44762 arguments="EOL" 44763 new_path=`$CYGPATH -u "$path"` 44764 new_path=`$WHICH "$new_path" 2> /dev/null` 44765 # bat and cmd files are not always considered executable in cygwin causing which 44766 # to not find them 44767 if test "x$new_path" = x \ 44768 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 44769 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 44770 new_path=`$CYGPATH -u "$path"` 44771 fi 44772 if test "x$new_path" = x; then 44773 # It's still not found. Now this is an unrecoverable error. 44774 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_CXX, which resolves as \"$complete\", is not found." >&5 44775 $as_echo "$as_me: The path of BUILD_CXX, which resolves as \"$complete\", is not found." >&6;} 44776 has_space=`$ECHO "$complete" | $GREP " "` 44777 if test "x$has_space" != x; then 44778 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 44779 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 44780 fi 44781 as_fn_error $? "Cannot locate the the path of BUILD_CXX" "$LINENO" 5 44782 fi 44783 fi 44784 44785 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 44786 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 44787 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 44788 # "foo.exe" is OK but "foo" is an error. 44789 # 44790 # This test is therefore slightly more accurate than "test -f" to check for file presence. 44791 # It is also a way to make sure we got the proper file name for the real test later on. 44792 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 44793 if test "x$test_shortpath" = x; then 44794 # Short path failed, file does not exist as specified. 44795 # Try adding .exe or .cmd 44796 if test -f "${new_path}.exe"; then 44797 input_to_shortpath="${new_path}.exe" 44798 elif test -f "${new_path}.cmd"; then 44799 input_to_shortpath="${new_path}.cmd" 44800 else 44801 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_CXX, which resolves as \"$new_path\", is invalid." >&5 44802 $as_echo "$as_me: The path of BUILD_CXX, which resolves as \"$new_path\", is invalid." >&6;} 44803 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 44804 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 44805 as_fn_error $? "Cannot locate the the path of BUILD_CXX" "$LINENO" 5 44806 fi 44807 else 44808 input_to_shortpath="$new_path" 44809 fi 44810 44811 # Call helper function which possibly converts this using DOS-style short mode. 44812 # If so, the updated path is stored in $new_path. 44813 new_path="$input_to_shortpath" 44814 44815 input_path="$input_to_shortpath" 44816 # Check if we need to convert this using DOS-style short mode. If the path 44817 # contains just simple characters, use it. Otherwise (spaces, weird characters), 44818 # take no chances and rewrite it. 44819 # Note: m4 eats our [], so we need to use [ and ] instead. 44820 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 44821 if test "x$has_forbidden_chars" != x; then 44822 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 44823 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 44824 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 44825 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 44826 # Going to short mode and back again did indeed matter. Since short mode is 44827 # case insensitive, let's make it lowercase to improve readability. 44828 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 44829 # Now convert it back to Unix-style (cygpath) 44830 input_path=`$CYGPATH -u "$shortmode_path"` 44831 new_path="$input_path" 44832 fi 44833 fi 44834 44835 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 44836 if test "x$test_cygdrive_prefix" = x; then 44837 # As a simple fix, exclude /usr/bin since it's not a real path. 44838 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 44839 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 44840 # a path prefixed by /cygdrive for fixpath to work. 44841 new_path="$CYGWIN_ROOT_PATH$input_path" 44842 fi 44843 fi 44844 44845 # remove trailing .exe if any 44846 new_path="${new_path/%.exe/}" 44847 44848 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 44849 44850 # First separate the path from the arguments. This will split at the first 44851 # space. 44852 complete="$BUILD_CXX" 44853 path="${complete%% *}" 44854 tmp="$complete EOL" 44855 arguments="${tmp#* }" 44856 44857 # Input might be given as Windows format, start by converting to 44858 # unix format. 44859 new_path="$path" 44860 44861 windows_path="$new_path" 44862 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 44863 unix_path=`$CYGPATH -u "$windows_path"` 44864 new_path="$unix_path" 44865 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 44866 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 44867 new_path="$unix_path" 44868 fi 44869 44870 44871 # Now try to locate executable using which 44872 new_path=`$WHICH "$new_path" 2> /dev/null` 44873 44874 if test "x$new_path" = x; then 44875 # Oops. Which didn't find the executable. 44876 # The splitting of arguments from the executable at a space might have been incorrect, 44877 # since paths with space are more likely in Windows. Give it another try with the whole 44878 # argument. 44879 path="$complete" 44880 arguments="EOL" 44881 new_path="$path" 44882 44883 windows_path="$new_path" 44884 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 44885 unix_path=`$CYGPATH -u "$windows_path"` 44886 new_path="$unix_path" 44887 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 44888 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 44889 new_path="$unix_path" 44890 fi 44891 44892 44893 new_path=`$WHICH "$new_path" 2> /dev/null` 44894 # bat and cmd files are not always considered executable in MSYS causing which 44895 # to not find them 44896 if test "x$new_path" = x \ 44897 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 44898 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 44899 new_path="$path" 44900 44901 windows_path="$new_path" 44902 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 44903 unix_path=`$CYGPATH -u "$windows_path"` 44904 new_path="$unix_path" 44905 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 44906 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 44907 new_path="$unix_path" 44908 fi 44909 44910 fi 44911 44912 if test "x$new_path" = x; then 44913 # It's still not found. Now this is an unrecoverable error. 44914 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_CXX, which resolves as \"$complete\", is not found." >&5 44915 $as_echo "$as_me: The path of BUILD_CXX, which resolves as \"$complete\", is not found." >&6;} 44916 has_space=`$ECHO "$complete" | $GREP " "` 44917 if test "x$has_space" != x; then 44918 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 44919 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 44920 fi 44921 as_fn_error $? "Cannot locate the the path of BUILD_CXX" "$LINENO" 5 44922 fi 44923 fi 44924 44925 # Now new_path has a complete unix path to the binary 44926 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 44927 # Keep paths in /bin as-is, but remove trailing .exe if any 44928 new_path="${new_path/%.exe/}" 44929 # Do not save /bin paths to all_fixpath_prefixes! 44930 else 44931 # Not in mixed or Windows style, start by that. 44932 new_path=`cmd //c echo $new_path` 44933 44934 input_path="$new_path" 44935 # Check if we need to convert this using DOS-style short mode. If the path 44936 # contains just simple characters, use it. Otherwise (spaces, weird characters), 44937 # take no chances and rewrite it. 44938 # Note: m4 eats our [], so we need to use [ and ] instead. 44939 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 44940 if test "x$has_forbidden_chars" != x; then 44941 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 44942 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 44943 fi 44944 44945 # Output is in $new_path 44946 44947 windows_path="$new_path" 44948 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 44949 unix_path=`$CYGPATH -u "$windows_path"` 44950 new_path="$unix_path" 44951 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 44952 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 44953 new_path="$unix_path" 44954 fi 44955 44956 # remove trailing .exe if any 44957 new_path="${new_path/%.exe/}" 44958 44959 # Save the first 10 bytes of this path to the storage, so fixpath can work. 44960 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 44961 fi 44962 44963 else 44964 # We're on a unix platform. Hooray! :) 44965 # First separate the path from the arguments. This will split at the first 44966 # space. 44967 complete="$BUILD_CXX" 44968 path="${complete%% *}" 44969 tmp="$complete EOL" 44970 arguments="${tmp#* }" 44971 44972 # Cannot rely on the command "which" here since it doesn't always work. 44973 is_absolute_path=`$ECHO "$path" | $GREP ^/` 44974 if test -z "$is_absolute_path"; then 44975 # Path to executable is not absolute. Find it. 44976 IFS_save="$IFS" 44977 IFS=: 44978 for p in $PATH; do 44979 if test -f "$p/$path" && test -x "$p/$path"; then 44980 new_path="$p/$path" 44981 break 44982 fi 44983 done 44984 IFS="$IFS_save" 44985 else 44986 # This is an absolute path, we can use it without further modifications. 44987 new_path="$path" 44988 fi 44989 44990 if test "x$new_path" = x; then 44991 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_CXX, which resolves as \"$complete\", is not found." >&5 44992 $as_echo "$as_me: The path of BUILD_CXX, which resolves as \"$complete\", is not found." >&6;} 44993 has_space=`$ECHO "$complete" | $GREP " "` 44994 if test "x$has_space" != x; then 44995 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 44996 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 44997 fi 44998 as_fn_error $? "Cannot locate the the path of BUILD_CXX" "$LINENO" 5 44999 fi 45000 fi 45001 45002 # Now join together the path and the arguments once again 45003 if test "x$arguments" != xEOL; then 45004 new_complete="$new_path ${arguments% *}" 45005 else 45006 new_complete="$new_path" 45007 fi 45008 45009 if test "x$complete" != "x$new_complete"; then 45010 BUILD_CXX="$new_complete" 45011 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BUILD_CXX to \"$new_complete\"" >&5 45012 $as_echo "$as_me: Rewriting BUILD_CXX to \"$new_complete\"" >&6;} 45013 fi 45014 fi 45015 45016 45017 45018 # Publish this variable in the help. 45019 45020 45021 if [ -z "${BUILD_NM+x}" ]; then 45022 # The variable is not set by user, try to locate tool using the code snippet 45023 for ac_prog in nm gcc-nm 45024 do 45025 # Extract the first word of "$ac_prog", so it can be a program name with args. 45026 set dummy $ac_prog; ac_word=$2 45027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 45028 $as_echo_n "checking for $ac_word... " >&6; } 45029 if ${ac_cv_path_BUILD_NM+:} false; then : 45030 $as_echo_n "(cached) " >&6 45031 else 45032 case $BUILD_NM in 45033 [\\/]* | ?:[\\/]*) 45034 ac_cv_path_BUILD_NM="$BUILD_NM" # Let the user override the test with a path. 45035 ;; 45036 *) 45037 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 45038 for as_dir in $PATH 45039 do 45040 IFS=$as_save_IFS 45041 test -z "$as_dir" && as_dir=. 45042 for ac_exec_ext in '' $ac_executable_extensions; do 45043 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 45044 ac_cv_path_BUILD_NM="$as_dir/$ac_word$ac_exec_ext" 45045 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 45046 break 2 45047 fi 45048 done 45049 done 45050 IFS=$as_save_IFS 45051 45052 ;; 45053 esac 45054 fi 45055 BUILD_NM=$ac_cv_path_BUILD_NM 45056 if test -n "$BUILD_NM"; then 45057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_NM" >&5 45058 $as_echo "$BUILD_NM" >&6; } 45059 else 45060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 45061 $as_echo "no" >&6; } 45062 fi 45063 45064 45065 test -n "$BUILD_NM" && break 45066 done 45067 45068 else 45069 # The variable is set, but is it from the command line or the environment? 45070 45071 # Try to remove the string !BUILD_NM! from our list. 45072 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!BUILD_NM!/} 45073 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 45074 # If it failed, the variable was not from the command line. Ignore it, 45075 # but warn the user (except for BASH, which is always set by the calling BASH). 45076 if test "xBUILD_NM" != xBASH; then 45077 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of BUILD_NM from the environment. Use command line variables instead." >&5 45078 $as_echo "$as_me: WARNING: Ignoring value of BUILD_NM from the environment. Use command line variables instead." >&2;} 45079 fi 45080 # Try to locate tool using the code snippet 45081 for ac_prog in nm gcc-nm 45082 do 45083 # Extract the first word of "$ac_prog", so it can be a program name with args. 45084 set dummy $ac_prog; ac_word=$2 45085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 45086 $as_echo_n "checking for $ac_word... " >&6; } 45087 if ${ac_cv_path_BUILD_NM+:} false; then : 45088 $as_echo_n "(cached) " >&6 45089 else 45090 case $BUILD_NM in 45091 [\\/]* | ?:[\\/]*) 45092 ac_cv_path_BUILD_NM="$BUILD_NM" # Let the user override the test with a path. 45093 ;; 45094 *) 45095 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 45096 for as_dir in $PATH 45097 do 45098 IFS=$as_save_IFS 45099 test -z "$as_dir" && as_dir=. 45100 for ac_exec_ext in '' $ac_executable_extensions; do 45101 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 45102 ac_cv_path_BUILD_NM="$as_dir/$ac_word$ac_exec_ext" 45103 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 45104 break 2 45105 fi 45106 done 45107 done 45108 IFS=$as_save_IFS 45109 45110 ;; 45111 esac 45112 fi 45113 BUILD_NM=$ac_cv_path_BUILD_NM 45114 if test -n "$BUILD_NM"; then 45115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_NM" >&5 45116 $as_echo "$BUILD_NM" >&6; } 45117 else 45118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 45119 $as_echo "no" >&6; } 45120 fi 45121 45122 45123 test -n "$BUILD_NM" && break 45124 done 45125 45126 else 45127 # If it succeeded, then it was overridden by the user. We will use it 45128 # for the tool. 45129 45130 # First remove it from the list of overridden variables, so we can test 45131 # for unknown variables in the end. 45132 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 45133 45134 # Check if we try to supply an empty value 45135 if test "x$BUILD_NM" = x; then 45136 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool BUILD_NM= (no value)" >&5 45137 $as_echo "$as_me: Setting user supplied tool BUILD_NM= (no value)" >&6;} 45138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BUILD_NM" >&5 45139 $as_echo_n "checking for BUILD_NM... " >&6; } 45140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 45141 $as_echo "disabled" >&6; } 45142 else 45143 # Check if the provided tool contains a complete path. 45144 tool_specified="$BUILD_NM" 45145 tool_basename="${tool_specified##*/}" 45146 if test "x$tool_basename" = "x$tool_specified"; then 45147 # A command without a complete path is provided, search $PATH. 45148 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool BUILD_NM=$tool_basename" >&5 45149 $as_echo "$as_me: Will search for user supplied tool BUILD_NM=$tool_basename" >&6;} 45150 # Extract the first word of "$tool_basename", so it can be a program name with args. 45151 set dummy $tool_basename; ac_word=$2 45152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 45153 $as_echo_n "checking for $ac_word... " >&6; } 45154 if ${ac_cv_path_BUILD_NM+:} false; then : 45155 $as_echo_n "(cached) " >&6 45156 else 45157 case $BUILD_NM in 45158 [\\/]* | ?:[\\/]*) 45159 ac_cv_path_BUILD_NM="$BUILD_NM" # Let the user override the test with a path. 45160 ;; 45161 *) 45162 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 45163 for as_dir in $PATH 45164 do 45165 IFS=$as_save_IFS 45166 test -z "$as_dir" && as_dir=. 45167 for ac_exec_ext in '' $ac_executable_extensions; do 45168 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 45169 ac_cv_path_BUILD_NM="$as_dir/$ac_word$ac_exec_ext" 45170 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 45171 break 2 45172 fi 45173 done 45174 done 45175 IFS=$as_save_IFS 45176 45177 ;; 45178 esac 45179 fi 45180 BUILD_NM=$ac_cv_path_BUILD_NM 45181 if test -n "$BUILD_NM"; then 45182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_NM" >&5 45183 $as_echo "$BUILD_NM" >&6; } 45184 else 45185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 45186 $as_echo "no" >&6; } 45187 fi 45188 45189 45190 if test "x$BUILD_NM" = x; then 45191 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 45192 fi 45193 else 45194 # Otherwise we believe it is a complete path. Use it as it is. 45195 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool BUILD_NM=$tool_specified" >&5 45196 $as_echo "$as_me: Will use user supplied tool BUILD_NM=$tool_specified" >&6;} 45197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BUILD_NM" >&5 45198 $as_echo_n "checking for BUILD_NM... " >&6; } 45199 if test ! -x "$tool_specified"; then 45200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 45201 $as_echo "not found" >&6; } 45202 as_fn_error $? "User supplied tool BUILD_NM=$tool_specified does not exist or is not executable" "$LINENO" 5 45203 fi 45204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 45205 $as_echo "$tool_specified" >&6; } 45206 fi 45207 fi 45208 fi 45209 45210 fi 45211 45212 45213 45214 # Only process if variable expands to non-empty 45215 45216 if test "x$BUILD_NM" != x; then 45217 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 45218 45219 # First separate the path from the arguments. This will split at the first 45220 # space. 45221 complete="$BUILD_NM" 45222 path="${complete%% *}" 45223 tmp="$complete EOL" 45224 arguments="${tmp#* }" 45225 45226 # Input might be given as Windows format, start by converting to 45227 # unix format. 45228 new_path=`$CYGPATH -u "$path"` 45229 45230 # Now try to locate executable using which 45231 new_path=`$WHICH "$new_path" 2> /dev/null` 45232 # bat and cmd files are not always considered executable in cygwin causing which 45233 # to not find them 45234 if test "x$new_path" = x \ 45235 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 45236 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 45237 new_path=`$CYGPATH -u "$path"` 45238 fi 45239 if test "x$new_path" = x; then 45240 # Oops. Which didn't find the executable. 45241 # The splitting of arguments from the executable at a space might have been incorrect, 45242 # since paths with space are more likely in Windows. Give it another try with the whole 45243 # argument. 45244 path="$complete" 45245 arguments="EOL" 45246 new_path=`$CYGPATH -u "$path"` 45247 new_path=`$WHICH "$new_path" 2> /dev/null` 45248 # bat and cmd files are not always considered executable in cygwin causing which 45249 # to not find them 45250 if test "x$new_path" = x \ 45251 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 45252 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 45253 new_path=`$CYGPATH -u "$path"` 45254 fi 45255 if test "x$new_path" = x; then 45256 # It's still not found. Now this is an unrecoverable error. 45257 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_NM, which resolves as \"$complete\", is not found." >&5 45258 $as_echo "$as_me: The path of BUILD_NM, which resolves as \"$complete\", is not found." >&6;} 45259 has_space=`$ECHO "$complete" | $GREP " "` 45260 if test "x$has_space" != x; then 45261 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 45262 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 45263 fi 45264 as_fn_error $? "Cannot locate the the path of BUILD_NM" "$LINENO" 5 45265 fi 45266 fi 45267 45268 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 45269 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 45270 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 45271 # "foo.exe" is OK but "foo" is an error. 45272 # 45273 # This test is therefore slightly more accurate than "test -f" to check for file presence. 45274 # It is also a way to make sure we got the proper file name for the real test later on. 45275 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 45276 if test "x$test_shortpath" = x; then 45277 # Short path failed, file does not exist as specified. 45278 # Try adding .exe or .cmd 45279 if test -f "${new_path}.exe"; then 45280 input_to_shortpath="${new_path}.exe" 45281 elif test -f "${new_path}.cmd"; then 45282 input_to_shortpath="${new_path}.cmd" 45283 else 45284 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_NM, which resolves as \"$new_path\", is invalid." >&5 45285 $as_echo "$as_me: The path of BUILD_NM, which resolves as \"$new_path\", is invalid." >&6;} 45286 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 45287 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 45288 as_fn_error $? "Cannot locate the the path of BUILD_NM" "$LINENO" 5 45289 fi 45290 else 45291 input_to_shortpath="$new_path" 45292 fi 45293 45294 # Call helper function which possibly converts this using DOS-style short mode. 45295 # If so, the updated path is stored in $new_path. 45296 new_path="$input_to_shortpath" 45297 45298 input_path="$input_to_shortpath" 45299 # Check if we need to convert this using DOS-style short mode. If the path 45300 # contains just simple characters, use it. Otherwise (spaces, weird characters), 45301 # take no chances and rewrite it. 45302 # Note: m4 eats our [], so we need to use [ and ] instead. 45303 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 45304 if test "x$has_forbidden_chars" != x; then 45305 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 45306 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 45307 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 45308 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 45309 # Going to short mode and back again did indeed matter. Since short mode is 45310 # case insensitive, let's make it lowercase to improve readability. 45311 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 45312 # Now convert it back to Unix-style (cygpath) 45313 input_path=`$CYGPATH -u "$shortmode_path"` 45314 new_path="$input_path" 45315 fi 45316 fi 45317 45318 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 45319 if test "x$test_cygdrive_prefix" = x; then 45320 # As a simple fix, exclude /usr/bin since it's not a real path. 45321 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 45322 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 45323 # a path prefixed by /cygdrive for fixpath to work. 45324 new_path="$CYGWIN_ROOT_PATH$input_path" 45325 fi 45326 fi 45327 45328 # remove trailing .exe if any 45329 new_path="${new_path/%.exe/}" 45330 45331 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 45332 45333 # First separate the path from the arguments. This will split at the first 45334 # space. 45335 complete="$BUILD_NM" 45336 path="${complete%% *}" 45337 tmp="$complete EOL" 45338 arguments="${tmp#* }" 45339 45340 # Input might be given as Windows format, start by converting to 45341 # unix format. 45342 new_path="$path" 45343 45344 windows_path="$new_path" 45345 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 45346 unix_path=`$CYGPATH -u "$windows_path"` 45347 new_path="$unix_path" 45348 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 45349 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 45350 new_path="$unix_path" 45351 fi 45352 45353 45354 # Now try to locate executable using which 45355 new_path=`$WHICH "$new_path" 2> /dev/null` 45356 45357 if test "x$new_path" = x; then 45358 # Oops. Which didn't find the executable. 45359 # The splitting of arguments from the executable at a space might have been incorrect, 45360 # since paths with space are more likely in Windows. Give it another try with the whole 45361 # argument. 45362 path="$complete" 45363 arguments="EOL" 45364 new_path="$path" 45365 45366 windows_path="$new_path" 45367 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 45368 unix_path=`$CYGPATH -u "$windows_path"` 45369 new_path="$unix_path" 45370 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 45371 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 45372 new_path="$unix_path" 45373 fi 45374 45375 45376 new_path=`$WHICH "$new_path" 2> /dev/null` 45377 # bat and cmd files are not always considered executable in MSYS causing which 45378 # to not find them 45379 if test "x$new_path" = x \ 45380 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 45381 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 45382 new_path="$path" 45383 45384 windows_path="$new_path" 45385 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 45386 unix_path=`$CYGPATH -u "$windows_path"` 45387 new_path="$unix_path" 45388 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 45389 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 45390 new_path="$unix_path" 45391 fi 45392 45393 fi 45394 45395 if test "x$new_path" = x; then 45396 # It's still not found. Now this is an unrecoverable error. 45397 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_NM, which resolves as \"$complete\", is not found." >&5 45398 $as_echo "$as_me: The path of BUILD_NM, which resolves as \"$complete\", is not found." >&6;} 45399 has_space=`$ECHO "$complete" | $GREP " "` 45400 if test "x$has_space" != x; then 45401 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 45402 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 45403 fi 45404 as_fn_error $? "Cannot locate the the path of BUILD_NM" "$LINENO" 5 45405 fi 45406 fi 45407 45408 # Now new_path has a complete unix path to the binary 45409 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 45410 # Keep paths in /bin as-is, but remove trailing .exe if any 45411 new_path="${new_path/%.exe/}" 45412 # Do not save /bin paths to all_fixpath_prefixes! 45413 else 45414 # Not in mixed or Windows style, start by that. 45415 new_path=`cmd //c echo $new_path` 45416 45417 input_path="$new_path" 45418 # Check if we need to convert this using DOS-style short mode. If the path 45419 # contains just simple characters, use it. Otherwise (spaces, weird characters), 45420 # take no chances and rewrite it. 45421 # Note: m4 eats our [], so we need to use [ and ] instead. 45422 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 45423 if test "x$has_forbidden_chars" != x; then 45424 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 45425 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 45426 fi 45427 45428 # Output is in $new_path 45429 45430 windows_path="$new_path" 45431 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 45432 unix_path=`$CYGPATH -u "$windows_path"` 45433 new_path="$unix_path" 45434 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 45435 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 45436 new_path="$unix_path" 45437 fi 45438 45439 # remove trailing .exe if any 45440 new_path="${new_path/%.exe/}" 45441 45442 # Save the first 10 bytes of this path to the storage, so fixpath can work. 45443 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 45444 fi 45445 45446 else 45447 # We're on a unix platform. Hooray! :) 45448 # First separate the path from the arguments. This will split at the first 45449 # space. 45450 complete="$BUILD_NM" 45451 path="${complete%% *}" 45452 tmp="$complete EOL" 45453 arguments="${tmp#* }" 45454 45455 # Cannot rely on the command "which" here since it doesn't always work. 45456 is_absolute_path=`$ECHO "$path" | $GREP ^/` 45457 if test -z "$is_absolute_path"; then 45458 # Path to executable is not absolute. Find it. 45459 IFS_save="$IFS" 45460 IFS=: 45461 for p in $PATH; do 45462 if test -f "$p/$path" && test -x "$p/$path"; then 45463 new_path="$p/$path" 45464 break 45465 fi 45466 done 45467 IFS="$IFS_save" 45468 else 45469 # This is an absolute path, we can use it without further modifications. 45470 new_path="$path" 45471 fi 45472 45473 if test "x$new_path" = x; then 45474 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_NM, which resolves as \"$complete\", is not found." >&5 45475 $as_echo "$as_me: The path of BUILD_NM, which resolves as \"$complete\", is not found." >&6;} 45476 has_space=`$ECHO "$complete" | $GREP " "` 45477 if test "x$has_space" != x; then 45478 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 45479 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 45480 fi 45481 as_fn_error $? "Cannot locate the the path of BUILD_NM" "$LINENO" 5 45482 fi 45483 fi 45484 45485 # Now join together the path and the arguments once again 45486 if test "x$arguments" != xEOL; then 45487 new_complete="$new_path ${arguments% *}" 45488 else 45489 new_complete="$new_path" 45490 fi 45491 45492 if test "x$complete" != "x$new_complete"; then 45493 BUILD_NM="$new_complete" 45494 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BUILD_NM to \"$new_complete\"" >&5 45495 $as_echo "$as_me: Rewriting BUILD_NM to \"$new_complete\"" >&6;} 45496 fi 45497 fi 45498 45499 45500 45501 # Publish this variable in the help. 45502 45503 45504 if [ -z "${BUILD_AR+x}" ]; then 45505 # The variable is not set by user, try to locate tool using the code snippet 45506 for ac_prog in ar gcc-ar 45507 do 45508 # Extract the first word of "$ac_prog", so it can be a program name with args. 45509 set dummy $ac_prog; ac_word=$2 45510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 45511 $as_echo_n "checking for $ac_word... " >&6; } 45512 if ${ac_cv_path_BUILD_AR+:} false; then : 45513 $as_echo_n "(cached) " >&6 45514 else 45515 case $BUILD_AR in 45516 [\\/]* | ?:[\\/]*) 45517 ac_cv_path_BUILD_AR="$BUILD_AR" # Let the user override the test with a path. 45518 ;; 45519 *) 45520 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 45521 for as_dir in $PATH 45522 do 45523 IFS=$as_save_IFS 45524 test -z "$as_dir" && as_dir=. 45525 for ac_exec_ext in '' $ac_executable_extensions; do 45526 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 45527 ac_cv_path_BUILD_AR="$as_dir/$ac_word$ac_exec_ext" 45528 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 45529 break 2 45530 fi 45531 done 45532 done 45533 IFS=$as_save_IFS 45534 45535 ;; 45536 esac 45537 fi 45538 BUILD_AR=$ac_cv_path_BUILD_AR 45539 if test -n "$BUILD_AR"; then 45540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_AR" >&5 45541 $as_echo "$BUILD_AR" >&6; } 45542 else 45543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 45544 $as_echo "no" >&6; } 45545 fi 45546 45547 45548 test -n "$BUILD_AR" && break 45549 done 45550 45551 else 45552 # The variable is set, but is it from the command line or the environment? 45553 45554 # Try to remove the string !BUILD_AR! from our list. 45555 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!BUILD_AR!/} 45556 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 45557 # If it failed, the variable was not from the command line. Ignore it, 45558 # but warn the user (except for BASH, which is always set by the calling BASH). 45559 if test "xBUILD_AR" != xBASH; then 45560 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of BUILD_AR from the environment. Use command line variables instead." >&5 45561 $as_echo "$as_me: WARNING: Ignoring value of BUILD_AR from the environment. Use command line variables instead." >&2;} 45562 fi 45563 # Try to locate tool using the code snippet 45564 for ac_prog in ar gcc-ar 45565 do 45566 # Extract the first word of "$ac_prog", so it can be a program name with args. 45567 set dummy $ac_prog; ac_word=$2 45568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 45569 $as_echo_n "checking for $ac_word... " >&6; } 45570 if ${ac_cv_path_BUILD_AR+:} false; then : 45571 $as_echo_n "(cached) " >&6 45572 else 45573 case $BUILD_AR in 45574 [\\/]* | ?:[\\/]*) 45575 ac_cv_path_BUILD_AR="$BUILD_AR" # Let the user override the test with a path. 45576 ;; 45577 *) 45578 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 45579 for as_dir in $PATH 45580 do 45581 IFS=$as_save_IFS 45582 test -z "$as_dir" && as_dir=. 45583 for ac_exec_ext in '' $ac_executable_extensions; do 45584 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 45585 ac_cv_path_BUILD_AR="$as_dir/$ac_word$ac_exec_ext" 45586 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 45587 break 2 45588 fi 45589 done 45590 done 45591 IFS=$as_save_IFS 45592 45593 ;; 45594 esac 45595 fi 45596 BUILD_AR=$ac_cv_path_BUILD_AR 45597 if test -n "$BUILD_AR"; then 45598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_AR" >&5 45599 $as_echo "$BUILD_AR" >&6; } 45600 else 45601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 45602 $as_echo "no" >&6; } 45603 fi 45604 45605 45606 test -n "$BUILD_AR" && break 45607 done 45608 45609 else 45610 # If it succeeded, then it was overridden by the user. We will use it 45611 # for the tool. 45612 45613 # First remove it from the list of overridden variables, so we can test 45614 # for unknown variables in the end. 45615 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 45616 45617 # Check if we try to supply an empty value 45618 if test "x$BUILD_AR" = x; then 45619 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool BUILD_AR= (no value)" >&5 45620 $as_echo "$as_me: Setting user supplied tool BUILD_AR= (no value)" >&6;} 45621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BUILD_AR" >&5 45622 $as_echo_n "checking for BUILD_AR... " >&6; } 45623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 45624 $as_echo "disabled" >&6; } 45625 else 45626 # Check if the provided tool contains a complete path. 45627 tool_specified="$BUILD_AR" 45628 tool_basename="${tool_specified##*/}" 45629 if test "x$tool_basename" = "x$tool_specified"; then 45630 # A command without a complete path is provided, search $PATH. 45631 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool BUILD_AR=$tool_basename" >&5 45632 $as_echo "$as_me: Will search for user supplied tool BUILD_AR=$tool_basename" >&6;} 45633 # Extract the first word of "$tool_basename", so it can be a program name with args. 45634 set dummy $tool_basename; ac_word=$2 45635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 45636 $as_echo_n "checking for $ac_word... " >&6; } 45637 if ${ac_cv_path_BUILD_AR+:} false; then : 45638 $as_echo_n "(cached) " >&6 45639 else 45640 case $BUILD_AR in 45641 [\\/]* | ?:[\\/]*) 45642 ac_cv_path_BUILD_AR="$BUILD_AR" # Let the user override the test with a path. 45643 ;; 45644 *) 45645 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 45646 for as_dir in $PATH 45647 do 45648 IFS=$as_save_IFS 45649 test -z "$as_dir" && as_dir=. 45650 for ac_exec_ext in '' $ac_executable_extensions; do 45651 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 45652 ac_cv_path_BUILD_AR="$as_dir/$ac_word$ac_exec_ext" 45653 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 45654 break 2 45655 fi 45656 done 45657 done 45658 IFS=$as_save_IFS 45659 45660 ;; 45661 esac 45662 fi 45663 BUILD_AR=$ac_cv_path_BUILD_AR 45664 if test -n "$BUILD_AR"; then 45665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_AR" >&5 45666 $as_echo "$BUILD_AR" >&6; } 45667 else 45668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 45669 $as_echo "no" >&6; } 45670 fi 45671 45672 45673 if test "x$BUILD_AR" = x; then 45674 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 45675 fi 45676 else 45677 # Otherwise we believe it is a complete path. Use it as it is. 45678 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool BUILD_AR=$tool_specified" >&5 45679 $as_echo "$as_me: Will use user supplied tool BUILD_AR=$tool_specified" >&6;} 45680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BUILD_AR" >&5 45681 $as_echo_n "checking for BUILD_AR... " >&6; } 45682 if test ! -x "$tool_specified"; then 45683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 45684 $as_echo "not found" >&6; } 45685 as_fn_error $? "User supplied tool BUILD_AR=$tool_specified does not exist or is not executable" "$LINENO" 5 45686 fi 45687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 45688 $as_echo "$tool_specified" >&6; } 45689 fi 45690 fi 45691 fi 45692 45693 fi 45694 45695 45696 45697 # Only process if variable expands to non-empty 45698 45699 if test "x$BUILD_AR" != x; then 45700 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 45701 45702 # First separate the path from the arguments. This will split at the first 45703 # space. 45704 complete="$BUILD_AR" 45705 path="${complete%% *}" 45706 tmp="$complete EOL" 45707 arguments="${tmp#* }" 45708 45709 # Input might be given as Windows format, start by converting to 45710 # unix format. 45711 new_path=`$CYGPATH -u "$path"` 45712 45713 # Now try to locate executable using which 45714 new_path=`$WHICH "$new_path" 2> /dev/null` 45715 # bat and cmd files are not always considered executable in cygwin causing which 45716 # to not find them 45717 if test "x$new_path" = x \ 45718 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 45719 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 45720 new_path=`$CYGPATH -u "$path"` 45721 fi 45722 if test "x$new_path" = x; then 45723 # Oops. Which didn't find the executable. 45724 # The splitting of arguments from the executable at a space might have been incorrect, 45725 # since paths with space are more likely in Windows. Give it another try with the whole 45726 # argument. 45727 path="$complete" 45728 arguments="EOL" 45729 new_path=`$CYGPATH -u "$path"` 45730 new_path=`$WHICH "$new_path" 2> /dev/null` 45731 # bat and cmd files are not always considered executable in cygwin causing which 45732 # to not find them 45733 if test "x$new_path" = x \ 45734 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 45735 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 45736 new_path=`$CYGPATH -u "$path"` 45737 fi 45738 if test "x$new_path" = x; then 45739 # It's still not found. Now this is an unrecoverable error. 45740 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_AR, which resolves as \"$complete\", is not found." >&5 45741 $as_echo "$as_me: The path of BUILD_AR, which resolves as \"$complete\", is not found." >&6;} 45742 has_space=`$ECHO "$complete" | $GREP " "` 45743 if test "x$has_space" != x; then 45744 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 45745 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 45746 fi 45747 as_fn_error $? "Cannot locate the the path of BUILD_AR" "$LINENO" 5 45748 fi 45749 fi 45750 45751 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 45752 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 45753 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 45754 # "foo.exe" is OK but "foo" is an error. 45755 # 45756 # This test is therefore slightly more accurate than "test -f" to check for file presence. 45757 # It is also a way to make sure we got the proper file name for the real test later on. 45758 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 45759 if test "x$test_shortpath" = x; then 45760 # Short path failed, file does not exist as specified. 45761 # Try adding .exe or .cmd 45762 if test -f "${new_path}.exe"; then 45763 input_to_shortpath="${new_path}.exe" 45764 elif test -f "${new_path}.cmd"; then 45765 input_to_shortpath="${new_path}.cmd" 45766 else 45767 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_AR, which resolves as \"$new_path\", is invalid." >&5 45768 $as_echo "$as_me: The path of BUILD_AR, which resolves as \"$new_path\", is invalid." >&6;} 45769 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 45770 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 45771 as_fn_error $? "Cannot locate the the path of BUILD_AR" "$LINENO" 5 45772 fi 45773 else 45774 input_to_shortpath="$new_path" 45775 fi 45776 45777 # Call helper function which possibly converts this using DOS-style short mode. 45778 # If so, the updated path is stored in $new_path. 45779 new_path="$input_to_shortpath" 45780 45781 input_path="$input_to_shortpath" 45782 # Check if we need to convert this using DOS-style short mode. If the path 45783 # contains just simple characters, use it. Otherwise (spaces, weird characters), 45784 # take no chances and rewrite it. 45785 # Note: m4 eats our [], so we need to use [ and ] instead. 45786 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 45787 if test "x$has_forbidden_chars" != x; then 45788 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 45789 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 45790 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 45791 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 45792 # Going to short mode and back again did indeed matter. Since short mode is 45793 # case insensitive, let's make it lowercase to improve readability. 45794 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 45795 # Now convert it back to Unix-style (cygpath) 45796 input_path=`$CYGPATH -u "$shortmode_path"` 45797 new_path="$input_path" 45798 fi 45799 fi 45800 45801 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 45802 if test "x$test_cygdrive_prefix" = x; then 45803 # As a simple fix, exclude /usr/bin since it's not a real path. 45804 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 45805 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 45806 # a path prefixed by /cygdrive for fixpath to work. 45807 new_path="$CYGWIN_ROOT_PATH$input_path" 45808 fi 45809 fi 45810 45811 # remove trailing .exe if any 45812 new_path="${new_path/%.exe/}" 45813 45814 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 45815 45816 # First separate the path from the arguments. This will split at the first 45817 # space. 45818 complete="$BUILD_AR" 45819 path="${complete%% *}" 45820 tmp="$complete EOL" 45821 arguments="${tmp#* }" 45822 45823 # Input might be given as Windows format, start by converting to 45824 # unix format. 45825 new_path="$path" 45826 45827 windows_path="$new_path" 45828 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 45829 unix_path=`$CYGPATH -u "$windows_path"` 45830 new_path="$unix_path" 45831 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 45832 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 45833 new_path="$unix_path" 45834 fi 45835 45836 45837 # Now try to locate executable using which 45838 new_path=`$WHICH "$new_path" 2> /dev/null` 45839 45840 if test "x$new_path" = x; then 45841 # Oops. Which didn't find the executable. 45842 # The splitting of arguments from the executable at a space might have been incorrect, 45843 # since paths with space are more likely in Windows. Give it another try with the whole 45844 # argument. 45845 path="$complete" 45846 arguments="EOL" 45847 new_path="$path" 45848 45849 windows_path="$new_path" 45850 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 45851 unix_path=`$CYGPATH -u "$windows_path"` 45852 new_path="$unix_path" 45853 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 45854 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 45855 new_path="$unix_path" 45856 fi 45857 45858 45859 new_path=`$WHICH "$new_path" 2> /dev/null` 45860 # bat and cmd files are not always considered executable in MSYS causing which 45861 # to not find them 45862 if test "x$new_path" = x \ 45863 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 45864 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 45865 new_path="$path" 45866 45867 windows_path="$new_path" 45868 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 45869 unix_path=`$CYGPATH -u "$windows_path"` 45870 new_path="$unix_path" 45871 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 45872 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 45873 new_path="$unix_path" 45874 fi 45875 45876 fi 45877 45878 if test "x$new_path" = x; then 45879 # It's still not found. Now this is an unrecoverable error. 45880 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_AR, which resolves as \"$complete\", is not found." >&5 45881 $as_echo "$as_me: The path of BUILD_AR, which resolves as \"$complete\", is not found." >&6;} 45882 has_space=`$ECHO "$complete" | $GREP " "` 45883 if test "x$has_space" != x; then 45884 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 45885 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 45886 fi 45887 as_fn_error $? "Cannot locate the the path of BUILD_AR" "$LINENO" 5 45888 fi 45889 fi 45890 45891 # Now new_path has a complete unix path to the binary 45892 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 45893 # Keep paths in /bin as-is, but remove trailing .exe if any 45894 new_path="${new_path/%.exe/}" 45895 # Do not save /bin paths to all_fixpath_prefixes! 45896 else 45897 # Not in mixed or Windows style, start by that. 45898 new_path=`cmd //c echo $new_path` 45899 45900 input_path="$new_path" 45901 # Check if we need to convert this using DOS-style short mode. If the path 45902 # contains just simple characters, use it. Otherwise (spaces, weird characters), 45903 # take no chances and rewrite it. 45904 # Note: m4 eats our [], so we need to use [ and ] instead. 45905 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 45906 if test "x$has_forbidden_chars" != x; then 45907 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 45908 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 45909 fi 45910 45911 # Output is in $new_path 45912 45913 windows_path="$new_path" 45914 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 45915 unix_path=`$CYGPATH -u "$windows_path"` 45916 new_path="$unix_path" 45917 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 45918 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 45919 new_path="$unix_path" 45920 fi 45921 45922 # remove trailing .exe if any 45923 new_path="${new_path/%.exe/}" 45924 45925 # Save the first 10 bytes of this path to the storage, so fixpath can work. 45926 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 45927 fi 45928 45929 else 45930 # We're on a unix platform. Hooray! :) 45931 # First separate the path from the arguments. This will split at the first 45932 # space. 45933 complete="$BUILD_AR" 45934 path="${complete%% *}" 45935 tmp="$complete EOL" 45936 arguments="${tmp#* }" 45937 45938 # Cannot rely on the command "which" here since it doesn't always work. 45939 is_absolute_path=`$ECHO "$path" | $GREP ^/` 45940 if test -z "$is_absolute_path"; then 45941 # Path to executable is not absolute. Find it. 45942 IFS_save="$IFS" 45943 IFS=: 45944 for p in $PATH; do 45945 if test -f "$p/$path" && test -x "$p/$path"; then 45946 new_path="$p/$path" 45947 break 45948 fi 45949 done 45950 IFS="$IFS_save" 45951 else 45952 # This is an absolute path, we can use it without further modifications. 45953 new_path="$path" 45954 fi 45955 45956 if test "x$new_path" = x; then 45957 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_AR, which resolves as \"$complete\", is not found." >&5 45958 $as_echo "$as_me: The path of BUILD_AR, which resolves as \"$complete\", is not found." >&6;} 45959 has_space=`$ECHO "$complete" | $GREP " "` 45960 if test "x$has_space" != x; then 45961 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 45962 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 45963 fi 45964 as_fn_error $? "Cannot locate the the path of BUILD_AR" "$LINENO" 5 45965 fi 45966 fi 45967 45968 # Now join together the path and the arguments once again 45969 if test "x$arguments" != xEOL; then 45970 new_complete="$new_path ${arguments% *}" 45971 else 45972 new_complete="$new_path" 45973 fi 45974 45975 if test "x$complete" != "x$new_complete"; then 45976 BUILD_AR="$new_complete" 45977 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BUILD_AR to \"$new_complete\"" >&5 45978 $as_echo "$as_me: Rewriting BUILD_AR to \"$new_complete\"" >&6;} 45979 fi 45980 fi 45981 45982 45983 45984 # Publish this variable in the help. 45985 45986 45987 if [ -z "${BUILD_OBJCOPY+x}" ]; then 45988 # The variable is not set by user, try to locate tool using the code snippet 45989 for ac_prog in objcopy 45990 do 45991 # Extract the first word of "$ac_prog", so it can be a program name with args. 45992 set dummy $ac_prog; ac_word=$2 45993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 45994 $as_echo_n "checking for $ac_word... " >&6; } 45995 if ${ac_cv_path_BUILD_OBJCOPY+:} false; then : 45996 $as_echo_n "(cached) " >&6 45997 else 45998 case $BUILD_OBJCOPY in 45999 [\\/]* | ?:[\\/]*) 46000 ac_cv_path_BUILD_OBJCOPY="$BUILD_OBJCOPY" # Let the user override the test with a path. 46001 ;; 46002 *) 46003 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 46004 for as_dir in $PATH 46005 do 46006 IFS=$as_save_IFS 46007 test -z "$as_dir" && as_dir=. 46008 for ac_exec_ext in '' $ac_executable_extensions; do 46009 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 46010 ac_cv_path_BUILD_OBJCOPY="$as_dir/$ac_word$ac_exec_ext" 46011 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 46012 break 2 46013 fi 46014 done 46015 done 46016 IFS=$as_save_IFS 46017 46018 ;; 46019 esac 46020 fi 46021 BUILD_OBJCOPY=$ac_cv_path_BUILD_OBJCOPY 46022 if test -n "$BUILD_OBJCOPY"; then 46023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_OBJCOPY" >&5 46024 $as_echo "$BUILD_OBJCOPY" >&6; } 46025 else 46026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 46027 $as_echo "no" >&6; } 46028 fi 46029 46030 46031 test -n "$BUILD_OBJCOPY" && break 46032 done 46033 46034 else 46035 # The variable is set, but is it from the command line or the environment? 46036 46037 # Try to remove the string !BUILD_OBJCOPY! from our list. 46038 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!BUILD_OBJCOPY!/} 46039 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 46040 # If it failed, the variable was not from the command line. Ignore it, 46041 # but warn the user (except for BASH, which is always set by the calling BASH). 46042 if test "xBUILD_OBJCOPY" != xBASH; then 46043 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of BUILD_OBJCOPY from the environment. Use command line variables instead." >&5 46044 $as_echo "$as_me: WARNING: Ignoring value of BUILD_OBJCOPY from the environment. Use command line variables instead." >&2;} 46045 fi 46046 # Try to locate tool using the code snippet 46047 for ac_prog in objcopy 46048 do 46049 # Extract the first word of "$ac_prog", so it can be a program name with args. 46050 set dummy $ac_prog; ac_word=$2 46051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 46052 $as_echo_n "checking for $ac_word... " >&6; } 46053 if ${ac_cv_path_BUILD_OBJCOPY+:} false; then : 46054 $as_echo_n "(cached) " >&6 46055 else 46056 case $BUILD_OBJCOPY in 46057 [\\/]* | ?:[\\/]*) 46058 ac_cv_path_BUILD_OBJCOPY="$BUILD_OBJCOPY" # Let the user override the test with a path. 46059 ;; 46060 *) 46061 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 46062 for as_dir in $PATH 46063 do 46064 IFS=$as_save_IFS 46065 test -z "$as_dir" && as_dir=. 46066 for ac_exec_ext in '' $ac_executable_extensions; do 46067 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 46068 ac_cv_path_BUILD_OBJCOPY="$as_dir/$ac_word$ac_exec_ext" 46069 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 46070 break 2 46071 fi 46072 done 46073 done 46074 IFS=$as_save_IFS 46075 46076 ;; 46077 esac 46078 fi 46079 BUILD_OBJCOPY=$ac_cv_path_BUILD_OBJCOPY 46080 if test -n "$BUILD_OBJCOPY"; then 46081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_OBJCOPY" >&5 46082 $as_echo "$BUILD_OBJCOPY" >&6; } 46083 else 46084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 46085 $as_echo "no" >&6; } 46086 fi 46087 46088 46089 test -n "$BUILD_OBJCOPY" && break 46090 done 46091 46092 else 46093 # If it succeeded, then it was overridden by the user. We will use it 46094 # for the tool. 46095 46096 # First remove it from the list of overridden variables, so we can test 46097 # for unknown variables in the end. 46098 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 46099 46100 # Check if we try to supply an empty value 46101 if test "x$BUILD_OBJCOPY" = x; then 46102 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool BUILD_OBJCOPY= (no value)" >&5 46103 $as_echo "$as_me: Setting user supplied tool BUILD_OBJCOPY= (no value)" >&6;} 46104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BUILD_OBJCOPY" >&5 46105 $as_echo_n "checking for BUILD_OBJCOPY... " >&6; } 46106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 46107 $as_echo "disabled" >&6; } 46108 else 46109 # Check if the provided tool contains a complete path. 46110 tool_specified="$BUILD_OBJCOPY" 46111 tool_basename="${tool_specified##*/}" 46112 if test "x$tool_basename" = "x$tool_specified"; then 46113 # A command without a complete path is provided, search $PATH. 46114 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool BUILD_OBJCOPY=$tool_basename" >&5 46115 $as_echo "$as_me: Will search for user supplied tool BUILD_OBJCOPY=$tool_basename" >&6;} 46116 # Extract the first word of "$tool_basename", so it can be a program name with args. 46117 set dummy $tool_basename; ac_word=$2 46118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 46119 $as_echo_n "checking for $ac_word... " >&6; } 46120 if ${ac_cv_path_BUILD_OBJCOPY+:} false; then : 46121 $as_echo_n "(cached) " >&6 46122 else 46123 case $BUILD_OBJCOPY in 46124 [\\/]* | ?:[\\/]*) 46125 ac_cv_path_BUILD_OBJCOPY="$BUILD_OBJCOPY" # Let the user override the test with a path. 46126 ;; 46127 *) 46128 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 46129 for as_dir in $PATH 46130 do 46131 IFS=$as_save_IFS 46132 test -z "$as_dir" && as_dir=. 46133 for ac_exec_ext in '' $ac_executable_extensions; do 46134 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 46135 ac_cv_path_BUILD_OBJCOPY="$as_dir/$ac_word$ac_exec_ext" 46136 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 46137 break 2 46138 fi 46139 done 46140 done 46141 IFS=$as_save_IFS 46142 46143 ;; 46144 esac 46145 fi 46146 BUILD_OBJCOPY=$ac_cv_path_BUILD_OBJCOPY 46147 if test -n "$BUILD_OBJCOPY"; then 46148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_OBJCOPY" >&5 46149 $as_echo "$BUILD_OBJCOPY" >&6; } 46150 else 46151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 46152 $as_echo "no" >&6; } 46153 fi 46154 46155 46156 if test "x$BUILD_OBJCOPY" = x; then 46157 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 46158 fi 46159 else 46160 # Otherwise we believe it is a complete path. Use it as it is. 46161 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool BUILD_OBJCOPY=$tool_specified" >&5 46162 $as_echo "$as_me: Will use user supplied tool BUILD_OBJCOPY=$tool_specified" >&6;} 46163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BUILD_OBJCOPY" >&5 46164 $as_echo_n "checking for BUILD_OBJCOPY... " >&6; } 46165 if test ! -x "$tool_specified"; then 46166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 46167 $as_echo "not found" >&6; } 46168 as_fn_error $? "User supplied tool BUILD_OBJCOPY=$tool_specified does not exist or is not executable" "$LINENO" 5 46169 fi 46170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 46171 $as_echo "$tool_specified" >&6; } 46172 fi 46173 fi 46174 fi 46175 46176 fi 46177 46178 46179 46180 # Only process if variable expands to non-empty 46181 46182 if test "x$BUILD_OBJCOPY" != x; then 46183 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 46184 46185 # First separate the path from the arguments. This will split at the first 46186 # space. 46187 complete="$BUILD_OBJCOPY" 46188 path="${complete%% *}" 46189 tmp="$complete EOL" 46190 arguments="${tmp#* }" 46191 46192 # Input might be given as Windows format, start by converting to 46193 # unix format. 46194 new_path=`$CYGPATH -u "$path"` 46195 46196 # Now try to locate executable using which 46197 new_path=`$WHICH "$new_path" 2> /dev/null` 46198 # bat and cmd files are not always considered executable in cygwin causing which 46199 # to not find them 46200 if test "x$new_path" = x \ 46201 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 46202 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 46203 new_path=`$CYGPATH -u "$path"` 46204 fi 46205 if test "x$new_path" = x; then 46206 # Oops. Which didn't find the executable. 46207 # The splitting of arguments from the executable at a space might have been incorrect, 46208 # since paths with space are more likely in Windows. Give it another try with the whole 46209 # argument. 46210 path="$complete" 46211 arguments="EOL" 46212 new_path=`$CYGPATH -u "$path"` 46213 new_path=`$WHICH "$new_path" 2> /dev/null` 46214 # bat and cmd files are not always considered executable in cygwin causing which 46215 # to not find them 46216 if test "x$new_path" = x \ 46217 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 46218 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 46219 new_path=`$CYGPATH -u "$path"` 46220 fi 46221 if test "x$new_path" = x; then 46222 # It's still not found. Now this is an unrecoverable error. 46223 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_OBJCOPY, which resolves as \"$complete\", is not found." >&5 46224 $as_echo "$as_me: The path of BUILD_OBJCOPY, which resolves as \"$complete\", is not found." >&6;} 46225 has_space=`$ECHO "$complete" | $GREP " "` 46226 if test "x$has_space" != x; then 46227 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 46228 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 46229 fi 46230 as_fn_error $? "Cannot locate the the path of BUILD_OBJCOPY" "$LINENO" 5 46231 fi 46232 fi 46233 46234 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 46235 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 46236 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 46237 # "foo.exe" is OK but "foo" is an error. 46238 # 46239 # This test is therefore slightly more accurate than "test -f" to check for file presence. 46240 # It is also a way to make sure we got the proper file name for the real test later on. 46241 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 46242 if test "x$test_shortpath" = x; then 46243 # Short path failed, file does not exist as specified. 46244 # Try adding .exe or .cmd 46245 if test -f "${new_path}.exe"; then 46246 input_to_shortpath="${new_path}.exe" 46247 elif test -f "${new_path}.cmd"; then 46248 input_to_shortpath="${new_path}.cmd" 46249 else 46250 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_OBJCOPY, which resolves as \"$new_path\", is invalid." >&5 46251 $as_echo "$as_me: The path of BUILD_OBJCOPY, which resolves as \"$new_path\", is invalid." >&6;} 46252 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 46253 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 46254 as_fn_error $? "Cannot locate the the path of BUILD_OBJCOPY" "$LINENO" 5 46255 fi 46256 else 46257 input_to_shortpath="$new_path" 46258 fi 46259 46260 # Call helper function which possibly converts this using DOS-style short mode. 46261 # If so, the updated path is stored in $new_path. 46262 new_path="$input_to_shortpath" 46263 46264 input_path="$input_to_shortpath" 46265 # Check if we need to convert this using DOS-style short mode. If the path 46266 # contains just simple characters, use it. Otherwise (spaces, weird characters), 46267 # take no chances and rewrite it. 46268 # Note: m4 eats our [], so we need to use [ and ] instead. 46269 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 46270 if test "x$has_forbidden_chars" != x; then 46271 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 46272 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 46273 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 46274 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 46275 # Going to short mode and back again did indeed matter. Since short mode is 46276 # case insensitive, let's make it lowercase to improve readability. 46277 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 46278 # Now convert it back to Unix-style (cygpath) 46279 input_path=`$CYGPATH -u "$shortmode_path"` 46280 new_path="$input_path" 46281 fi 46282 fi 46283 46284 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 46285 if test "x$test_cygdrive_prefix" = x; then 46286 # As a simple fix, exclude /usr/bin since it's not a real path. 46287 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 46288 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 46289 # a path prefixed by /cygdrive for fixpath to work. 46290 new_path="$CYGWIN_ROOT_PATH$input_path" 46291 fi 46292 fi 46293 46294 # remove trailing .exe if any 46295 new_path="${new_path/%.exe/}" 46296 46297 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 46298 46299 # First separate the path from the arguments. This will split at the first 46300 # space. 46301 complete="$BUILD_OBJCOPY" 46302 path="${complete%% *}" 46303 tmp="$complete EOL" 46304 arguments="${tmp#* }" 46305 46306 # Input might be given as Windows format, start by converting to 46307 # unix format. 46308 new_path="$path" 46309 46310 windows_path="$new_path" 46311 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 46312 unix_path=`$CYGPATH -u "$windows_path"` 46313 new_path="$unix_path" 46314 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 46315 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 46316 new_path="$unix_path" 46317 fi 46318 46319 46320 # Now try to locate executable using which 46321 new_path=`$WHICH "$new_path" 2> /dev/null` 46322 46323 if test "x$new_path" = x; then 46324 # Oops. Which didn't find the executable. 46325 # The splitting of arguments from the executable at a space might have been incorrect, 46326 # since paths with space are more likely in Windows. Give it another try with the whole 46327 # argument. 46328 path="$complete" 46329 arguments="EOL" 46330 new_path="$path" 46331 46332 windows_path="$new_path" 46333 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 46334 unix_path=`$CYGPATH -u "$windows_path"` 46335 new_path="$unix_path" 46336 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 46337 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 46338 new_path="$unix_path" 46339 fi 46340 46341 46342 new_path=`$WHICH "$new_path" 2> /dev/null` 46343 # bat and cmd files are not always considered executable in MSYS causing which 46344 # to not find them 46345 if test "x$new_path" = x \ 46346 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 46347 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 46348 new_path="$path" 46349 46350 windows_path="$new_path" 46351 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 46352 unix_path=`$CYGPATH -u "$windows_path"` 46353 new_path="$unix_path" 46354 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 46355 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 46356 new_path="$unix_path" 46357 fi 46358 46359 fi 46360 46361 if test "x$new_path" = x; then 46362 # It's still not found. Now this is an unrecoverable error. 46363 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_OBJCOPY, which resolves as \"$complete\", is not found." >&5 46364 $as_echo "$as_me: The path of BUILD_OBJCOPY, which resolves as \"$complete\", is not found." >&6;} 46365 has_space=`$ECHO "$complete" | $GREP " "` 46366 if test "x$has_space" != x; then 46367 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 46368 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 46369 fi 46370 as_fn_error $? "Cannot locate the the path of BUILD_OBJCOPY" "$LINENO" 5 46371 fi 46372 fi 46373 46374 # Now new_path has a complete unix path to the binary 46375 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 46376 # Keep paths in /bin as-is, but remove trailing .exe if any 46377 new_path="${new_path/%.exe/}" 46378 # Do not save /bin paths to all_fixpath_prefixes! 46379 else 46380 # Not in mixed or Windows style, start by that. 46381 new_path=`cmd //c echo $new_path` 46382 46383 input_path="$new_path" 46384 # Check if we need to convert this using DOS-style short mode. If the path 46385 # contains just simple characters, use it. Otherwise (spaces, weird characters), 46386 # take no chances and rewrite it. 46387 # Note: m4 eats our [], so we need to use [ and ] instead. 46388 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 46389 if test "x$has_forbidden_chars" != x; then 46390 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 46391 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 46392 fi 46393 46394 # Output is in $new_path 46395 46396 windows_path="$new_path" 46397 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 46398 unix_path=`$CYGPATH -u "$windows_path"` 46399 new_path="$unix_path" 46400 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 46401 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 46402 new_path="$unix_path" 46403 fi 46404 46405 # remove trailing .exe if any 46406 new_path="${new_path/%.exe/}" 46407 46408 # Save the first 10 bytes of this path to the storage, so fixpath can work. 46409 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 46410 fi 46411 46412 else 46413 # We're on a unix platform. Hooray! :) 46414 # First separate the path from the arguments. This will split at the first 46415 # space. 46416 complete="$BUILD_OBJCOPY" 46417 path="${complete%% *}" 46418 tmp="$complete EOL" 46419 arguments="${tmp#* }" 46420 46421 # Cannot rely on the command "which" here since it doesn't always work. 46422 is_absolute_path=`$ECHO "$path" | $GREP ^/` 46423 if test -z "$is_absolute_path"; then 46424 # Path to executable is not absolute. Find it. 46425 IFS_save="$IFS" 46426 IFS=: 46427 for p in $PATH; do 46428 if test -f "$p/$path" && test -x "$p/$path"; then 46429 new_path="$p/$path" 46430 break 46431 fi 46432 done 46433 IFS="$IFS_save" 46434 else 46435 # This is an absolute path, we can use it without further modifications. 46436 new_path="$path" 46437 fi 46438 46439 if test "x$new_path" = x; then 46440 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_OBJCOPY, which resolves as \"$complete\", is not found." >&5 46441 $as_echo "$as_me: The path of BUILD_OBJCOPY, which resolves as \"$complete\", is not found." >&6;} 46442 has_space=`$ECHO "$complete" | $GREP " "` 46443 if test "x$has_space" != x; then 46444 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 46445 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 46446 fi 46447 as_fn_error $? "Cannot locate the the path of BUILD_OBJCOPY" "$LINENO" 5 46448 fi 46449 fi 46450 46451 # Now join together the path and the arguments once again 46452 if test "x$arguments" != xEOL; then 46453 new_complete="$new_path ${arguments% *}" 46454 else 46455 new_complete="$new_path" 46456 fi 46457 46458 if test "x$complete" != "x$new_complete"; then 46459 BUILD_OBJCOPY="$new_complete" 46460 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BUILD_OBJCOPY to \"$new_complete\"" >&5 46461 $as_echo "$as_me: Rewriting BUILD_OBJCOPY to \"$new_complete\"" >&6;} 46462 fi 46463 fi 46464 46465 46466 46467 # Publish this variable in the help. 46468 46469 46470 if [ -z "${BUILD_STRIP+x}" ]; then 46471 # The variable is not set by user, try to locate tool using the code snippet 46472 for ac_prog in strip 46473 do 46474 # Extract the first word of "$ac_prog", so it can be a program name with args. 46475 set dummy $ac_prog; ac_word=$2 46476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 46477 $as_echo_n "checking for $ac_word... " >&6; } 46478 if ${ac_cv_path_BUILD_STRIP+:} false; then : 46479 $as_echo_n "(cached) " >&6 46480 else 46481 case $BUILD_STRIP in 46482 [\\/]* | ?:[\\/]*) 46483 ac_cv_path_BUILD_STRIP="$BUILD_STRIP" # Let the user override the test with a path. 46484 ;; 46485 *) 46486 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 46487 for as_dir in $PATH 46488 do 46489 IFS=$as_save_IFS 46490 test -z "$as_dir" && as_dir=. 46491 for ac_exec_ext in '' $ac_executable_extensions; do 46492 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 46493 ac_cv_path_BUILD_STRIP="$as_dir/$ac_word$ac_exec_ext" 46494 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 46495 break 2 46496 fi 46497 done 46498 done 46499 IFS=$as_save_IFS 46500 46501 ;; 46502 esac 46503 fi 46504 BUILD_STRIP=$ac_cv_path_BUILD_STRIP 46505 if test -n "$BUILD_STRIP"; then 46506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_STRIP" >&5 46507 $as_echo "$BUILD_STRIP" >&6; } 46508 else 46509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 46510 $as_echo "no" >&6; } 46511 fi 46512 46513 46514 test -n "$BUILD_STRIP" && break 46515 done 46516 46517 else 46518 # The variable is set, but is it from the command line or the environment? 46519 46520 # Try to remove the string !BUILD_STRIP! from our list. 46521 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!BUILD_STRIP!/} 46522 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 46523 # If it failed, the variable was not from the command line. Ignore it, 46524 # but warn the user (except for BASH, which is always set by the calling BASH). 46525 if test "xBUILD_STRIP" != xBASH; then 46526 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of BUILD_STRIP from the environment. Use command line variables instead." >&5 46527 $as_echo "$as_me: WARNING: Ignoring value of BUILD_STRIP from the environment. Use command line variables instead." >&2;} 46528 fi 46529 # Try to locate tool using the code snippet 46530 for ac_prog in strip 46531 do 46532 # Extract the first word of "$ac_prog", so it can be a program name with args. 46533 set dummy $ac_prog; ac_word=$2 46534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 46535 $as_echo_n "checking for $ac_word... " >&6; } 46536 if ${ac_cv_path_BUILD_STRIP+:} false; then : 46537 $as_echo_n "(cached) " >&6 46538 else 46539 case $BUILD_STRIP in 46540 [\\/]* | ?:[\\/]*) 46541 ac_cv_path_BUILD_STRIP="$BUILD_STRIP" # Let the user override the test with a path. 46542 ;; 46543 *) 46544 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 46545 for as_dir in $PATH 46546 do 46547 IFS=$as_save_IFS 46548 test -z "$as_dir" && as_dir=. 46549 for ac_exec_ext in '' $ac_executable_extensions; do 46550 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 46551 ac_cv_path_BUILD_STRIP="$as_dir/$ac_word$ac_exec_ext" 46552 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 46553 break 2 46554 fi 46555 done 46556 done 46557 IFS=$as_save_IFS 46558 46559 ;; 46560 esac 46561 fi 46562 BUILD_STRIP=$ac_cv_path_BUILD_STRIP 46563 if test -n "$BUILD_STRIP"; then 46564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_STRIP" >&5 46565 $as_echo "$BUILD_STRIP" >&6; } 46566 else 46567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 46568 $as_echo "no" >&6; } 46569 fi 46570 46571 46572 test -n "$BUILD_STRIP" && break 46573 done 46574 46575 else 46576 # If it succeeded, then it was overridden by the user. We will use it 46577 # for the tool. 46578 46579 # First remove it from the list of overridden variables, so we can test 46580 # for unknown variables in the end. 46581 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 46582 46583 # Check if we try to supply an empty value 46584 if test "x$BUILD_STRIP" = x; then 46585 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool BUILD_STRIP= (no value)" >&5 46586 $as_echo "$as_me: Setting user supplied tool BUILD_STRIP= (no value)" >&6;} 46587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BUILD_STRIP" >&5 46588 $as_echo_n "checking for BUILD_STRIP... " >&6; } 46589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 46590 $as_echo "disabled" >&6; } 46591 else 46592 # Check if the provided tool contains a complete path. 46593 tool_specified="$BUILD_STRIP" 46594 tool_basename="${tool_specified##*/}" 46595 if test "x$tool_basename" = "x$tool_specified"; then 46596 # A command without a complete path is provided, search $PATH. 46597 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool BUILD_STRIP=$tool_basename" >&5 46598 $as_echo "$as_me: Will search for user supplied tool BUILD_STRIP=$tool_basename" >&6;} 46599 # Extract the first word of "$tool_basename", so it can be a program name with args. 46600 set dummy $tool_basename; ac_word=$2 46601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 46602 $as_echo_n "checking for $ac_word... " >&6; } 46603 if ${ac_cv_path_BUILD_STRIP+:} false; then : 46604 $as_echo_n "(cached) " >&6 46605 else 46606 case $BUILD_STRIP in 46607 [\\/]* | ?:[\\/]*) 46608 ac_cv_path_BUILD_STRIP="$BUILD_STRIP" # Let the user override the test with a path. 46609 ;; 46610 *) 46611 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 46612 for as_dir in $PATH 46613 do 46614 IFS=$as_save_IFS 46615 test -z "$as_dir" && as_dir=. 46616 for ac_exec_ext in '' $ac_executable_extensions; do 46617 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 46618 ac_cv_path_BUILD_STRIP="$as_dir/$ac_word$ac_exec_ext" 46619 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 46620 break 2 46621 fi 46622 done 46623 done 46624 IFS=$as_save_IFS 46625 46626 ;; 46627 esac 46628 fi 46629 BUILD_STRIP=$ac_cv_path_BUILD_STRIP 46630 if test -n "$BUILD_STRIP"; then 46631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_STRIP" >&5 46632 $as_echo "$BUILD_STRIP" >&6; } 46633 else 46634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 46635 $as_echo "no" >&6; } 46636 fi 46637 46638 46639 if test "x$BUILD_STRIP" = x; then 46640 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 46641 fi 46642 else 46643 # Otherwise we believe it is a complete path. Use it as it is. 46644 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool BUILD_STRIP=$tool_specified" >&5 46645 $as_echo "$as_me: Will use user supplied tool BUILD_STRIP=$tool_specified" >&6;} 46646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BUILD_STRIP" >&5 46647 $as_echo_n "checking for BUILD_STRIP... " >&6; } 46648 if test ! -x "$tool_specified"; then 46649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 46650 $as_echo "not found" >&6; } 46651 as_fn_error $? "User supplied tool BUILD_STRIP=$tool_specified does not exist or is not executable" "$LINENO" 5 46652 fi 46653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 46654 $as_echo "$tool_specified" >&6; } 46655 fi 46656 fi 46657 fi 46658 46659 fi 46660 46661 46662 46663 # Only process if variable expands to non-empty 46664 46665 if test "x$BUILD_STRIP" != x; then 46666 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 46667 46668 # First separate the path from the arguments. This will split at the first 46669 # space. 46670 complete="$BUILD_STRIP" 46671 path="${complete%% *}" 46672 tmp="$complete EOL" 46673 arguments="${tmp#* }" 46674 46675 # Input might be given as Windows format, start by converting to 46676 # unix format. 46677 new_path=`$CYGPATH -u "$path"` 46678 46679 # Now try to locate executable using which 46680 new_path=`$WHICH "$new_path" 2> /dev/null` 46681 # bat and cmd files are not always considered executable in cygwin causing which 46682 # to not find them 46683 if test "x$new_path" = x \ 46684 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 46685 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 46686 new_path=`$CYGPATH -u "$path"` 46687 fi 46688 if test "x$new_path" = x; then 46689 # Oops. Which didn't find the executable. 46690 # The splitting of arguments from the executable at a space might have been incorrect, 46691 # since paths with space are more likely in Windows. Give it another try with the whole 46692 # argument. 46693 path="$complete" 46694 arguments="EOL" 46695 new_path=`$CYGPATH -u "$path"` 46696 new_path=`$WHICH "$new_path" 2> /dev/null` 46697 # bat and cmd files are not always considered executable in cygwin causing which 46698 # to not find them 46699 if test "x$new_path" = x \ 46700 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 46701 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 46702 new_path=`$CYGPATH -u "$path"` 46703 fi 46704 if test "x$new_path" = x; then 46705 # It's still not found. Now this is an unrecoverable error. 46706 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_STRIP, which resolves as \"$complete\", is not found." >&5 46707 $as_echo "$as_me: The path of BUILD_STRIP, which resolves as \"$complete\", is not found." >&6;} 46708 has_space=`$ECHO "$complete" | $GREP " "` 46709 if test "x$has_space" != x; then 46710 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 46711 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 46712 fi 46713 as_fn_error $? "Cannot locate the the path of BUILD_STRIP" "$LINENO" 5 46714 fi 46715 fi 46716 46717 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 46718 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 46719 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 46720 # "foo.exe" is OK but "foo" is an error. 46721 # 46722 # This test is therefore slightly more accurate than "test -f" to check for file presence. 46723 # It is also a way to make sure we got the proper file name for the real test later on. 46724 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 46725 if test "x$test_shortpath" = x; then 46726 # Short path failed, file does not exist as specified. 46727 # Try adding .exe or .cmd 46728 if test -f "${new_path}.exe"; then 46729 input_to_shortpath="${new_path}.exe" 46730 elif test -f "${new_path}.cmd"; then 46731 input_to_shortpath="${new_path}.cmd" 46732 else 46733 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_STRIP, which resolves as \"$new_path\", is invalid." >&5 46734 $as_echo "$as_me: The path of BUILD_STRIP, which resolves as \"$new_path\", is invalid." >&6;} 46735 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 46736 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 46737 as_fn_error $? "Cannot locate the the path of BUILD_STRIP" "$LINENO" 5 46738 fi 46739 else 46740 input_to_shortpath="$new_path" 46741 fi 46742 46743 # Call helper function which possibly converts this using DOS-style short mode. 46744 # If so, the updated path is stored in $new_path. 46745 new_path="$input_to_shortpath" 46746 46747 input_path="$input_to_shortpath" 46748 # Check if we need to convert this using DOS-style short mode. If the path 46749 # contains just simple characters, use it. Otherwise (spaces, weird characters), 46750 # take no chances and rewrite it. 46751 # Note: m4 eats our [], so we need to use [ and ] instead. 46752 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 46753 if test "x$has_forbidden_chars" != x; then 46754 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 46755 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 46756 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 46757 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 46758 # Going to short mode and back again did indeed matter. Since short mode is 46759 # case insensitive, let's make it lowercase to improve readability. 46760 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 46761 # Now convert it back to Unix-style (cygpath) 46762 input_path=`$CYGPATH -u "$shortmode_path"` 46763 new_path="$input_path" 46764 fi 46765 fi 46766 46767 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 46768 if test "x$test_cygdrive_prefix" = x; then 46769 # As a simple fix, exclude /usr/bin since it's not a real path. 46770 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 46771 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 46772 # a path prefixed by /cygdrive for fixpath to work. 46773 new_path="$CYGWIN_ROOT_PATH$input_path" 46774 fi 46775 fi 46776 46777 # remove trailing .exe if any 46778 new_path="${new_path/%.exe/}" 46779 46780 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 46781 46782 # First separate the path from the arguments. This will split at the first 46783 # space. 46784 complete="$BUILD_STRIP" 46785 path="${complete%% *}" 46786 tmp="$complete EOL" 46787 arguments="${tmp#* }" 46788 46789 # Input might be given as Windows format, start by converting to 46790 # unix format. 46791 new_path="$path" 46792 46793 windows_path="$new_path" 46794 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 46795 unix_path=`$CYGPATH -u "$windows_path"` 46796 new_path="$unix_path" 46797 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 46798 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 46799 new_path="$unix_path" 46800 fi 46801 46802 46803 # Now try to locate executable using which 46804 new_path=`$WHICH "$new_path" 2> /dev/null` 46805 46806 if test "x$new_path" = x; then 46807 # Oops. Which didn't find the executable. 46808 # The splitting of arguments from the executable at a space might have been incorrect, 46809 # since paths with space are more likely in Windows. Give it another try with the whole 46810 # argument. 46811 path="$complete" 46812 arguments="EOL" 46813 new_path="$path" 46814 46815 windows_path="$new_path" 46816 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 46817 unix_path=`$CYGPATH -u "$windows_path"` 46818 new_path="$unix_path" 46819 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 46820 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 46821 new_path="$unix_path" 46822 fi 46823 46824 46825 new_path=`$WHICH "$new_path" 2> /dev/null` 46826 # bat and cmd files are not always considered executable in MSYS causing which 46827 # to not find them 46828 if test "x$new_path" = x \ 46829 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 46830 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 46831 new_path="$path" 46832 46833 windows_path="$new_path" 46834 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 46835 unix_path=`$CYGPATH -u "$windows_path"` 46836 new_path="$unix_path" 46837 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 46838 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 46839 new_path="$unix_path" 46840 fi 46841 46842 fi 46843 46844 if test "x$new_path" = x; then 46845 # It's still not found. Now this is an unrecoverable error. 46846 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_STRIP, which resolves as \"$complete\", is not found." >&5 46847 $as_echo "$as_me: The path of BUILD_STRIP, which resolves as \"$complete\", is not found." >&6;} 46848 has_space=`$ECHO "$complete" | $GREP " "` 46849 if test "x$has_space" != x; then 46850 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 46851 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 46852 fi 46853 as_fn_error $? "Cannot locate the the path of BUILD_STRIP" "$LINENO" 5 46854 fi 46855 fi 46856 46857 # Now new_path has a complete unix path to the binary 46858 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 46859 # Keep paths in /bin as-is, but remove trailing .exe if any 46860 new_path="${new_path/%.exe/}" 46861 # Do not save /bin paths to all_fixpath_prefixes! 46862 else 46863 # Not in mixed or Windows style, start by that. 46864 new_path=`cmd //c echo $new_path` 46865 46866 input_path="$new_path" 46867 # Check if we need to convert this using DOS-style short mode. If the path 46868 # contains just simple characters, use it. Otherwise (spaces, weird characters), 46869 # take no chances and rewrite it. 46870 # Note: m4 eats our [], so we need to use [ and ] instead. 46871 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 46872 if test "x$has_forbidden_chars" != x; then 46873 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 46874 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 46875 fi 46876 46877 # Output is in $new_path 46878 46879 windows_path="$new_path" 46880 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 46881 unix_path=`$CYGPATH -u "$windows_path"` 46882 new_path="$unix_path" 46883 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 46884 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 46885 new_path="$unix_path" 46886 fi 46887 46888 # remove trailing .exe if any 46889 new_path="${new_path/%.exe/}" 46890 46891 # Save the first 10 bytes of this path to the storage, so fixpath can work. 46892 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 46893 fi 46894 46895 else 46896 # We're on a unix platform. Hooray! :) 46897 # First separate the path from the arguments. This will split at the first 46898 # space. 46899 complete="$BUILD_STRIP" 46900 path="${complete%% *}" 46901 tmp="$complete EOL" 46902 arguments="${tmp#* }" 46903 46904 # Cannot rely on the command "which" here since it doesn't always work. 46905 is_absolute_path=`$ECHO "$path" | $GREP ^/` 46906 if test -z "$is_absolute_path"; then 46907 # Path to executable is not absolute. Find it. 46908 IFS_save="$IFS" 46909 IFS=: 46910 for p in $PATH; do 46911 if test -f "$p/$path" && test -x "$p/$path"; then 46912 new_path="$p/$path" 46913 break 46914 fi 46915 done 46916 IFS="$IFS_save" 46917 else 46918 # This is an absolute path, we can use it without further modifications. 46919 new_path="$path" 46920 fi 46921 46922 if test "x$new_path" = x; then 46923 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_STRIP, which resolves as \"$complete\", is not found." >&5 46924 $as_echo "$as_me: The path of BUILD_STRIP, which resolves as \"$complete\", is not found." >&6;} 46925 has_space=`$ECHO "$complete" | $GREP " "` 46926 if test "x$has_space" != x; then 46927 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 46928 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 46929 fi 46930 as_fn_error $? "Cannot locate the the path of BUILD_STRIP" "$LINENO" 5 46931 fi 46932 fi 46933 46934 # Now join together the path and the arguments once again 46935 if test "x$arguments" != xEOL; then 46936 new_complete="$new_path ${arguments% *}" 46937 else 46938 new_complete="$new_path" 46939 fi 46940 46941 if test "x$complete" != "x$new_complete"; then 46942 BUILD_STRIP="$new_complete" 46943 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BUILD_STRIP to \"$new_complete\"" >&5 46944 $as_echo "$as_me: Rewriting BUILD_STRIP to \"$new_complete\"" >&6;} 46945 fi 46946 fi 46947 46948 # Assume the C compiler is the assembler 46949 BUILD_AS="$BUILD_CC -c" 46950 # Just like for the target compiler, use the compiler as linker 46951 BUILD_LD="$BUILD_CC" 46952 BUILD_LDCXX="$BUILD_CXX" 46953 46954 PATH="$OLDPATH" 46955 46956 46957 COMPILER=$BUILD_CC 46958 COMPILER_NAME=BuildC 46959 46960 if test "x$TOOLCHAIN_TYPE" = xsolstudio; then 46961 # cc -V output typically looks like 46962 # cc: Sun C 5.12 Linux_i386 2011/11/16 46963 # or 46964 # cc: Studio 12.5 Sun C 5.14 SunOS_sparc 2016/05/31 46965 COMPILER_VERSION_OUTPUT=`$COMPILER -V 2>&1` 46966 # Check that this is likely to be the Solaris Studio cc. 46967 $ECHO "$COMPILER_VERSION_OUTPUT" | $GREP "^.* Sun $COMPILER_NAME" > /dev/null 46968 if test $? -ne 0; then 46969 ALT_VERSION_OUTPUT=`$COMPILER --version 2>&1` 46970 { $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 46971 $as_echo "$as_me: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required $TOOLCHAIN_TYPE compiler." >&6;} 46972 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with -V was: \"$COMPILER_VERSION_OUTPUT\"" >&5 46973 $as_echo "$as_me: The result from running with -V was: \"$COMPILER_VERSION_OUTPUT\"" >&6;} 46974 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with --version was: \"$ALT_VERSION_OUTPUT\"" >&5 46975 $as_echo "$as_me: The result from running with --version was: \"$ALT_VERSION_OUTPUT\"" >&6;} 46976 as_fn_error $? "A $TOOLCHAIN_TYPE compiler is required. Try setting --with-tools-dir." "$LINENO" 5 46977 fi 46978 # Remove usage instructions (if present), and 46979 # collapse compiler output into a single line 46980 COMPILER_VERSION_STRING=`$ECHO $COMPILER_VERSION_OUTPUT | \ 46981 $SED -e 's/ *[Uu]sage:.*//'` 46982 COMPILER_VERSION_NUMBER=`$ECHO $COMPILER_VERSION_OUTPUT | \ 46983 $SED -e "s/^.*[ ,\t]$COMPILER_NAME[ ,\t]\([1-9]\.[0-9][0-9]*\).*/\1/"` 46984 elif test "x$TOOLCHAIN_TYPE" = xxlc; then 46985 # xlc -qversion output typically looks like 46986 # IBM XL C/C++ for AIX, V11.1 (5724-X13) 46987 # Version: 11.01.0000.0015 46988 COMPILER_VERSION_OUTPUT=`$COMPILER -qversion 2>&1` 46989 # Check that this is likely to be the IBM XL C compiler. 46990 $ECHO "$COMPILER_VERSION_OUTPUT" | $GREP "IBM XL C" > /dev/null 46991 if test $? -ne 0; then 46992 ALT_VERSION_OUTPUT=`$COMPILER --version 2>&1` 46993 { $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 46994 $as_echo "$as_me: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required $TOOLCHAIN_TYPE compiler." >&6;} 46995 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with -qversion was: \"$COMPILER_VERSION_OUTPUT\"" >&5 46996 $as_echo "$as_me: The result from running with -qversion was: \"$COMPILER_VERSION_OUTPUT\"" >&6;} 46997 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with --version was: \"$ALT_VERSION_OUTPUT\"" >&5 46998 $as_echo "$as_me: The result from running with --version was: \"$ALT_VERSION_OUTPUT\"" >&6;} 46999 as_fn_error $? "A $TOOLCHAIN_TYPE compiler is required. Try setting --with-tools-dir." "$LINENO" 5 47000 fi 47001 # Collapse compiler output into a single line 47002 COMPILER_VERSION_STRING=`$ECHO $COMPILER_VERSION_OUTPUT` 47003 COMPILER_VERSION_NUMBER=`$ECHO $COMPILER_VERSION_OUTPUT | \ 47004 $SED -e 's/^.*, V\([1-9][0-9.]*\).*$/\1/'` 47005 elif test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 47006 # There is no specific version flag, but all output starts with a version string. 47007 # First line typically looks something like: 47008 # Microsoft (R) 32-bit C/C++ Optimizing Compiler Version 16.00.40219.01 for 80x86 47009 COMPILER_VERSION_OUTPUT=`$COMPILER 2>&1 | $HEAD -n 1 | $TR -d '\r'` 47010 # Check that this is likely to be Microsoft CL.EXE. 47011 $ECHO "$COMPILER_VERSION_OUTPUT" | $GREP "Microsoft.*Compiler" > /dev/null 47012 if test $? -ne 0; then 47013 { $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 47014 $as_echo "$as_me: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required $TOOLCHAIN_TYPE compiler." >&6;} 47015 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running it was: \"$COMPILER_VERSION_OUTPUT\"" >&5 47016 $as_echo "$as_me: The result from running it was: \"$COMPILER_VERSION_OUTPUT\"" >&6;} 47017 as_fn_error $? "A $TOOLCHAIN_TYPE compiler is required. Try setting --with-tools-dir." "$LINENO" 5 47018 fi 47019 # Collapse compiler output into a single line 47020 COMPILER_VERSION_STRING=`$ECHO $COMPILER_VERSION_OUTPUT` 47021 COMPILER_VERSION_NUMBER=`$ECHO $COMPILER_VERSION_OUTPUT | \ 47022 $SED -e 's/^.*ersion.\([1-9][0-9.]*\) .*$/\1/'` 47023 elif test "x$TOOLCHAIN_TYPE" = xgcc; then 47024 # gcc --version output typically looks like 47025 # gcc (Ubuntu/Linaro 4.8.1-10ubuntu9) 4.8.1 47026 # Copyright (C) 2013 Free Software Foundation, Inc. 47027 # This is free software; see the source for copying conditions. There is NO 47028 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 47029 COMPILER_VERSION_OUTPUT=`$COMPILER --version 2>&1` 47030 # Check that this is likely to be GCC. 47031 $ECHO "$COMPILER_VERSION_OUTPUT" | $GREP "Free Software Foundation" > /dev/null 47032 if test $? -ne 0; then 47033 { $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 47034 $as_echo "$as_me: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required $TOOLCHAIN_TYPE compiler." >&6;} 47035 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with --version was: \"$COMPILER_VERSION\"" >&5 47036 $as_echo "$as_me: The result from running with --version was: \"$COMPILER_VERSION\"" >&6;} 47037 as_fn_error $? "A $TOOLCHAIN_TYPE compiler is required. Try setting --with-tools-dir." "$LINENO" 5 47038 fi 47039 # Remove Copyright and legalese from version string, and 47040 # collapse into a single line 47041 COMPILER_VERSION_STRING=`$ECHO $COMPILER_VERSION_OUTPUT | \ 47042 $SED -e 's/ *Copyright .*//'` 47043 COMPILER_VERSION_NUMBER=`$ECHO $COMPILER_VERSION_OUTPUT | \ 47044 $SED -e 's/^.* \([1-9]\.[0-9.]*\)[^0-9.].*$/\1/'` 47045 elif test "x$TOOLCHAIN_TYPE" = xclang; then 47046 # clang --version output typically looks like 47047 # Apple LLVM version 5.0 (clang-500.2.79) (based on LLVM 3.3svn) 47048 # clang version 3.3 (tags/RELEASE_33/final) 47049 # or 47050 # Debian clang version 3.2-7ubuntu1 (tags/RELEASE_32/final) (based on LLVM 3.2) 47051 # Target: x86_64-pc-linux-gnu 47052 # Thread model: posix 47053 COMPILER_VERSION_OUTPUT=`$COMPILER --version 2>&1` 47054 # Check that this is likely to be clang 47055 $ECHO "$COMPILER_VERSION_OUTPUT" | $GREP "clang" > /dev/null 47056 if test $? -ne 0; then 47057 { $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 47058 $as_echo "$as_me: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required $TOOLCHAIN_TYPE compiler." >&6;} 47059 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with --version was: \"$COMPILER_VERSION_OUTPUT\"" >&5 47060 $as_echo "$as_me: The result from running with --version was: \"$COMPILER_VERSION_OUTPUT\"" >&6;} 47061 as_fn_error $? "A $TOOLCHAIN_TYPE compiler is required. Try setting --with-tools-dir." "$LINENO" 5 47062 fi 47063 # Collapse compiler output into a single line 47064 COMPILER_VERSION_STRING=`$ECHO $COMPILER_VERSION_OUTPUT` 47065 COMPILER_VERSION_NUMBER=`$ECHO $COMPILER_VERSION_OUTPUT | \ 47066 $SED -e 's/^.* version \([1-9][0-9.]*\).*$/\1/'` 47067 else 47068 as_fn_error $? "Unknown toolchain type $TOOLCHAIN_TYPE." "$LINENO" 5 47069 fi 47070 # This sets CC_VERSION_NUMBER or CXX_VERSION_NUMBER. (This comment is a grep marker) 47071 BUILD_CC_VERSION_NUMBER="$COMPILER_VERSION_NUMBER" 47072 # This sets CC_VERSION_STRING or CXX_VERSION_STRING. (This comment is a grep marker) 47073 BUILD_CC_VERSION_STRING="$COMPILER_VERSION_STRING" 47074 47075 { $as_echo "$as_me:${as_lineno-$LINENO}: Using $TOOLCHAIN_TYPE $COMPILER_NAME compiler version $COMPILER_VERSION_NUMBER [$COMPILER_VERSION_STRING]" >&5 47076 $as_echo "$as_me: Using $TOOLCHAIN_TYPE $COMPILER_NAME compiler version $COMPILER_VERSION_NUMBER [$COMPILER_VERSION_STRING]" >&6;} 47077 47078 47079 COMPILER=$BUILD_CXX 47080 COMPILER_NAME=BuildC++ 47081 47082 if test "x$TOOLCHAIN_TYPE" = xsolstudio; then 47083 # cc -V output typically looks like 47084 # cc: Sun C 5.12 Linux_i386 2011/11/16 47085 # or 47086 # cc: Studio 12.5 Sun C 5.14 SunOS_sparc 2016/05/31 47087 COMPILER_VERSION_OUTPUT=`$COMPILER -V 2>&1` 47088 # Check that this is likely to be the Solaris Studio cc. 47089 $ECHO "$COMPILER_VERSION_OUTPUT" | $GREP "^.* Sun $COMPILER_NAME" > /dev/null 47090 if test $? -ne 0; then 47091 ALT_VERSION_OUTPUT=`$COMPILER --version 2>&1` 47092 { $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 47093 $as_echo "$as_me: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required $TOOLCHAIN_TYPE compiler." >&6;} 47094 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with -V was: \"$COMPILER_VERSION_OUTPUT\"" >&5 47095 $as_echo "$as_me: The result from running with -V was: \"$COMPILER_VERSION_OUTPUT\"" >&6;} 47096 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with --version was: \"$ALT_VERSION_OUTPUT\"" >&5 47097 $as_echo "$as_me: The result from running with --version was: \"$ALT_VERSION_OUTPUT\"" >&6;} 47098 as_fn_error $? "A $TOOLCHAIN_TYPE compiler is required. Try setting --with-tools-dir." "$LINENO" 5 47099 fi 47100 # Remove usage instructions (if present), and 47101 # collapse compiler output into a single line 47102 COMPILER_VERSION_STRING=`$ECHO $COMPILER_VERSION_OUTPUT | \ 47103 $SED -e 's/ *[Uu]sage:.*//'` 47104 COMPILER_VERSION_NUMBER=`$ECHO $COMPILER_VERSION_OUTPUT | \ 47105 $SED -e "s/^.*[ ,\t]$COMPILER_NAME[ ,\t]\([1-9]\.[0-9][0-9]*\).*/\1/"` 47106 elif test "x$TOOLCHAIN_TYPE" = xxlc; then 47107 # xlc -qversion output typically looks like 47108 # IBM XL C/C++ for AIX, V11.1 (5724-X13) 47109 # Version: 11.01.0000.0015 47110 COMPILER_VERSION_OUTPUT=`$COMPILER -qversion 2>&1` 47111 # Check that this is likely to be the IBM XL C compiler. 47112 $ECHO "$COMPILER_VERSION_OUTPUT" | $GREP "IBM XL C" > /dev/null 47113 if test $? -ne 0; then 47114 ALT_VERSION_OUTPUT=`$COMPILER --version 2>&1` 47115 { $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 47116 $as_echo "$as_me: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required $TOOLCHAIN_TYPE compiler." >&6;} 47117 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with -qversion was: \"$COMPILER_VERSION_OUTPUT\"" >&5 47118 $as_echo "$as_me: The result from running with -qversion was: \"$COMPILER_VERSION_OUTPUT\"" >&6;} 47119 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with --version was: \"$ALT_VERSION_OUTPUT\"" >&5 47120 $as_echo "$as_me: The result from running with --version was: \"$ALT_VERSION_OUTPUT\"" >&6;} 47121 as_fn_error $? "A $TOOLCHAIN_TYPE compiler is required. Try setting --with-tools-dir." "$LINENO" 5 47122 fi 47123 # Collapse compiler output into a single line 47124 COMPILER_VERSION_STRING=`$ECHO $COMPILER_VERSION_OUTPUT` 47125 COMPILER_VERSION_NUMBER=`$ECHO $COMPILER_VERSION_OUTPUT | \ 47126 $SED -e 's/^.*, V\([1-9][0-9.]*\).*$/\1/'` 47127 elif test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 47128 # There is no specific version flag, but all output starts with a version string. 47129 # First line typically looks something like: 47130 # Microsoft (R) 32-bit C/C++ Optimizing Compiler Version 16.00.40219.01 for 80x86 47131 COMPILER_VERSION_OUTPUT=`$COMPILER 2>&1 | $HEAD -n 1 | $TR -d '\r'` 47132 # Check that this is likely to be Microsoft CL.EXE. 47133 $ECHO "$COMPILER_VERSION_OUTPUT" | $GREP "Microsoft.*Compiler" > /dev/null 47134 if test $? -ne 0; then 47135 { $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 47136 $as_echo "$as_me: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required $TOOLCHAIN_TYPE compiler." >&6;} 47137 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running it was: \"$COMPILER_VERSION_OUTPUT\"" >&5 47138 $as_echo "$as_me: The result from running it was: \"$COMPILER_VERSION_OUTPUT\"" >&6;} 47139 as_fn_error $? "A $TOOLCHAIN_TYPE compiler is required. Try setting --with-tools-dir." "$LINENO" 5 47140 fi 47141 # Collapse compiler output into a single line 47142 COMPILER_VERSION_STRING=`$ECHO $COMPILER_VERSION_OUTPUT` 47143 COMPILER_VERSION_NUMBER=`$ECHO $COMPILER_VERSION_OUTPUT | \ 47144 $SED -e 's/^.*ersion.\([1-9][0-9.]*\) .*$/\1/'` 47145 elif test "x$TOOLCHAIN_TYPE" = xgcc; then 47146 # gcc --version output typically looks like 47147 # gcc (Ubuntu/Linaro 4.8.1-10ubuntu9) 4.8.1 47148 # Copyright (C) 2013 Free Software Foundation, Inc. 47149 # This is free software; see the source for copying conditions. There is NO 47150 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 47151 COMPILER_VERSION_OUTPUT=`$COMPILER --version 2>&1` 47152 # Check that this is likely to be GCC. 47153 $ECHO "$COMPILER_VERSION_OUTPUT" | $GREP "Free Software Foundation" > /dev/null 47154 if test $? -ne 0; then 47155 { $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 47156 $as_echo "$as_me: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required $TOOLCHAIN_TYPE compiler." >&6;} 47157 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with --version was: \"$COMPILER_VERSION\"" >&5 47158 $as_echo "$as_me: The result from running with --version was: \"$COMPILER_VERSION\"" >&6;} 47159 as_fn_error $? "A $TOOLCHAIN_TYPE compiler is required. Try setting --with-tools-dir." "$LINENO" 5 47160 fi 47161 # Remove Copyright and legalese from version string, and 47162 # collapse into a single line 47163 COMPILER_VERSION_STRING=`$ECHO $COMPILER_VERSION_OUTPUT | \ 47164 $SED -e 's/ *Copyright .*//'` 47165 COMPILER_VERSION_NUMBER=`$ECHO $COMPILER_VERSION_OUTPUT | \ 47166 $SED -e 's/^.* \([1-9]\.[0-9.]*\)[^0-9.].*$/\1/'` 47167 elif test "x$TOOLCHAIN_TYPE" = xclang; then 47168 # clang --version output typically looks like 47169 # Apple LLVM version 5.0 (clang-500.2.79) (based on LLVM 3.3svn) 47170 # clang version 3.3 (tags/RELEASE_33/final) 47171 # or 47172 # Debian clang version 3.2-7ubuntu1 (tags/RELEASE_32/final) (based on LLVM 3.2) 47173 # Target: x86_64-pc-linux-gnu 47174 # Thread model: posix 47175 COMPILER_VERSION_OUTPUT=`$COMPILER --version 2>&1` 47176 # Check that this is likely to be clang 47177 $ECHO "$COMPILER_VERSION_OUTPUT" | $GREP "clang" > /dev/null 47178 if test $? -ne 0; then 47179 { $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 47180 $as_echo "$as_me: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required $TOOLCHAIN_TYPE compiler." >&6;} 47181 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with --version was: \"$COMPILER_VERSION_OUTPUT\"" >&5 47182 $as_echo "$as_me: The result from running with --version was: \"$COMPILER_VERSION_OUTPUT\"" >&6;} 47183 as_fn_error $? "A $TOOLCHAIN_TYPE compiler is required. Try setting --with-tools-dir." "$LINENO" 5 47184 fi 47185 # Collapse compiler output into a single line 47186 COMPILER_VERSION_STRING=`$ECHO $COMPILER_VERSION_OUTPUT` 47187 COMPILER_VERSION_NUMBER=`$ECHO $COMPILER_VERSION_OUTPUT | \ 47188 $SED -e 's/^.* version \([1-9][0-9.]*\).*$/\1/'` 47189 else 47190 as_fn_error $? "Unknown toolchain type $TOOLCHAIN_TYPE." "$LINENO" 5 47191 fi 47192 # This sets CC_VERSION_NUMBER or CXX_VERSION_NUMBER. (This comment is a grep marker) 47193 BUILD_CXX_VERSION_NUMBER="$COMPILER_VERSION_NUMBER" 47194 # This sets CC_VERSION_STRING or CXX_VERSION_STRING. (This comment is a grep marker) 47195 BUILD_CXX_VERSION_STRING="$COMPILER_VERSION_STRING" 47196 47197 { $as_echo "$as_me:${as_lineno-$LINENO}: Using $TOOLCHAIN_TYPE $COMPILER_NAME compiler version $COMPILER_VERSION_NUMBER [$COMPILER_VERSION_STRING]" >&5 47198 $as_echo "$as_me: Using $TOOLCHAIN_TYPE $COMPILER_NAME compiler version $COMPILER_VERSION_NUMBER [$COMPILER_VERSION_STRING]" >&6;} 47199 47200 47201 if test "x$BUILD_CC_VERSION_NUMBER" != "x$BUILD_CXX_VERSION_NUMBER"; then 47202 { $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 47203 $as_echo "$as_me: WARNING: C and C++ compiler have different version numbers, $BUILD_CC_VERSION_NUMBER vs $BUILD_CXX_VERSION_NUMBER." >&2;} 47204 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This typically indicates a broken setup, and is not supported" >&5 47205 $as_echo "$as_me: WARNING: This typically indicates a broken setup, and is not supported" >&2;} 47206 fi 47207 47208 # We only check CC_VERSION_NUMBER since we assume CXX_VERSION_NUMBER is equal. 47209 if [[ "[$]BUILD_CC_VERSION_NUMBER" =~ (.*\.){4} ]] ; then 47210 { $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 47211 $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;} 47212 fi 47213 47214 if [[ "[$]BUILD_CC_VERSION_NUMBER" =~ [0-9]{6} ]] ; then 47215 { $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 47216 $as_echo "$as_me: WARNING: C compiler version number has a part larger than 99999: $BUILD_CC_VERSION_NUMBER. Comparisons might be wrong." >&2;} 47217 fi 47218 47219 OPENJDK_BUILD_COMPARABLE_ACTUAL_VERSION=`$AWK -F. '{ printf("%05d%05d%05d%05d\n", $1, $2, $3, $4) }' <<< "$BUILD_CC_VERSION_NUMBER"` 47220 47221 else 47222 # If we are not cross compiling, use the normal target compilers for 47223 # building the build platform executables. 47224 BUILD_CC="$CC" 47225 BUILD_CXX="$CXX" 47226 BUILD_LD="$LD" 47227 BUILD_LDCXX="$LDCXX" 47228 BUILD_NM="$NM" 47229 BUILD_AS="$AS" 47230 BUILD_OBJCOPY="$OBJCOPY" 47231 BUILD_STRIP="$STRIP" 47232 BUILD_SYSROOT_CFLAGS="$SYSROOT_CFLAGS" 47233 BUILD_SYSROOT_LDFLAGS="$SYSROOT_LDFLAGS" 47234 BUILD_AR="$AR" 47235 47236 47237 if test "x$CC_VERSION_NUMBER" != "x$CXX_VERSION_NUMBER"; then 47238 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: C and C++ compiler have different version numbers, $CC_VERSION_NUMBER vs $CXX_VERSION_NUMBER." >&5 47239 $as_echo "$as_me: WARNING: C and C++ compiler have different version numbers, $CC_VERSION_NUMBER vs $CXX_VERSION_NUMBER." >&2;} 47240 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This typically indicates a broken setup, and is not supported" >&5 47241 $as_echo "$as_me: WARNING: This typically indicates a broken setup, and is not supported" >&2;} 47242 fi 47243 47244 # We only check CC_VERSION_NUMBER since we assume CXX_VERSION_NUMBER is equal. 47245 if [[ "[$]CC_VERSION_NUMBER" =~ (.*\.){4} ]] ; then 47246 { $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 47247 $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;} 47248 fi 47249 47250 if [[ "[$]CC_VERSION_NUMBER" =~ [0-9]{6} ]] ; then 47251 { $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 47252 $as_echo "$as_me: WARNING: C compiler version number has a part larger than 99999: $CC_VERSION_NUMBER. Comparisons might be wrong." >&2;} 47253 fi 47254 47255 OPENJDK_BUILD_COMPARABLE_ACTUAL_VERSION=`$AWK -F. '{ printf("%05d%05d%05d%05d\n", $1, $2, $3, $4) }' <<< "$CC_VERSION_NUMBER"` 47256 47257 fi 47258 47259 47260 47261 47262 47263 47264 47265 47266 47267 47268 47269 47270 47271 47272 # The package path is used only on macosx? 47273 # FIXME: clean this up, and/or move it elsewhere. 47274 PACKAGE_PATH=/opt/local 47275 47276 47277 # Check for extra potential brokenness. 47278 if test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 47279 # On Windows, double-check that we got the right compiler. 47280 CC_VERSION_OUTPUT=`$CC 2>&1 | $HEAD -n 1 | $TR -d '\r'` 47281 COMPILER_CPU_TEST=`$ECHO $CC_VERSION_OUTPUT | $SED -n "s/^.* \(.*\)$/\1/p"` 47282 if test "x$OPENJDK_TARGET_CPU" = "xx86"; then 47283 if test "x$COMPILER_CPU_TEST" != "x80x86" -a "x$COMPILER_CPU_TEST" != "xx86"; then 47284 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 47285 fi 47286 elif test "x$OPENJDK_TARGET_CPU" = "xx86_64"; then 47287 if test "x$COMPILER_CPU_TEST" != "xx64"; then 47288 as_fn_error $? "Target CPU mismatch. We are building for $OPENJDK_TARGET_CPU but CL is for \"$COMPILER_CPU_TEST\"; expected \"x64\"." "$LINENO" 5 47289 fi 47290 fi 47291 fi 47292 47293 if test "x$TOOLCHAIN_TYPE" = xgcc; then 47294 # If this is a --hash-style=gnu system, use --hash-style=both, why? 47295 HAS_GNU_HASH=`$CC -dumpspecs 2>/dev/null | $GREP 'hash-style=gnu'` 47296 # This is later checked when setting flags. 47297 47298 # "-Og" suppported for GCC 4.8 and later 47299 CFLAG_OPTIMIZE_DEBUG_FLAG="-Og" 47300 47301 47302 47303 47304 47305 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 # Execute function body 47348 47349 47350 47351 47352 47353 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 # Execute function body 47397 47398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the C compiler supports \"$CFLAG_OPTIMIZE_DEBUG_FLAG\"" >&5 47399 $as_echo_n "checking if the C compiler supports \"$CFLAG_OPTIMIZE_DEBUG_FLAG\"... " >&6; } 47400 supports=yes 47401 47402 saved_cflags="$CFLAGS" 47403 CFLAGS="$CFLAGS $CFLAG_OPTIMIZE_DEBUG_FLAG" 47404 ac_ext=c 47405 ac_cpp='$CPP $CPPFLAGS' 47406 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 47407 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 47408 ac_compiler_gnu=$ac_cv_c_compiler_gnu 47409 47410 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 47411 /* end confdefs.h. */ 47412 int i; 47413 _ACEOF 47414 if ac_fn_c_try_compile "$LINENO"; then : 47415 47416 else 47417 supports=no 47418 fi 47419 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 47420 ac_ext=cpp 47421 ac_cpp='$CXXCPP $CPPFLAGS' 47422 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 47423 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 47424 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 47425 47426 CFLAGS="$saved_cflags" 47427 47428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supports" >&5 47429 $as_echo "$supports" >&6; } 47430 if test "x$supports" = "xyes" ; then 47431 : 47432 C_COMP_SUPPORTS="yes" 47433 else 47434 : 47435 C_COMP_SUPPORTS="no" 47436 fi 47437 47438 47439 47440 47441 47442 47443 47444 47445 47446 47447 47448 47449 47450 47451 47452 47453 47454 47455 47456 47457 47458 47459 47460 47461 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 # Execute function body 47497 47498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the C++ compiler supports \"$CFLAG_OPTIMIZE_DEBUG_FLAG\"" >&5 47499 $as_echo_n "checking if the C++ compiler supports \"$CFLAG_OPTIMIZE_DEBUG_FLAG\"... " >&6; } 47500 supports=yes 47501 47502 saved_cxxflags="$CXXFLAGS" 47503 CXXFLAGS="$CXXFLAG $CFLAG_OPTIMIZE_DEBUG_FLAG" 47504 ac_ext=cpp 47505 ac_cpp='$CXXCPP $CPPFLAGS' 47506 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 47507 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 47508 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 47509 47510 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 47511 /* end confdefs.h. */ 47512 int i; 47513 _ACEOF 47514 if ac_fn_cxx_try_compile "$LINENO"; then : 47515 47516 else 47517 supports=no 47518 fi 47519 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 47520 ac_ext=cpp 47521 ac_cpp='$CXXCPP $CPPFLAGS' 47522 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 47523 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 47524 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 47525 47526 CXXFLAGS="$saved_cxxflags" 47527 47528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supports" >&5 47529 $as_echo "$supports" >&6; } 47530 if test "x$supports" = "xyes" ; then 47531 : 47532 CXX_COMP_SUPPORTS="yes" 47533 else 47534 : 47535 CXX_COMP_SUPPORTS="no" 47536 fi 47537 47538 47539 47540 47541 47542 47543 47544 47545 47546 47547 47548 47549 47550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if both compilers support \"$CFLAG_OPTIMIZE_DEBUG_FLAG\"" >&5 47551 $as_echo_n "checking if both compilers support \"$CFLAG_OPTIMIZE_DEBUG_FLAG\"... " >&6; } 47552 supports=no 47553 if test "x$C_COMP_SUPPORTS" = "xyes" -a "x$CXX_COMP_SUPPORTS" = "xyes"; then supports=yes; fi 47554 47555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supports" >&5 47556 $as_echo "$supports" >&6; } 47557 if test "x$supports" = "xyes" ; then 47558 : 47559 HAS_CFLAG_OPTIMIZE_DEBUG=true 47560 else 47561 : 47562 HAS_CFLAG_OPTIMIZE_DEBUG=false 47563 fi 47564 47565 47566 47567 47568 47569 47570 47571 # "-z relro" supported in GNU binutils 2.17 and later 47572 LINKER_RELRO_FLAG="-Wl,-z,relro" 47573 47574 47575 47576 47577 47578 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 # Execute function body 47621 47622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if linker supports \"$LINKER_RELRO_FLAG\"" >&5 47623 $as_echo_n "checking if linker supports \"$LINKER_RELRO_FLAG\"... " >&6; } 47624 supports=yes 47625 47626 saved_ldflags="$LDFLAGS" 47627 LDFLAGS="$LDFLAGS $LINKER_RELRO_FLAG" 47628 ac_ext=c 47629 ac_cpp='$CPP $CPPFLAGS' 47630 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 47631 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 47632 ac_compiler_gnu=$ac_cv_c_compiler_gnu 47633 47634 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 47635 /* end confdefs.h. */ 47636 47637 int 47638 main () 47639 { 47640 47641 ; 47642 return 0; 47643 } 47644 _ACEOF 47645 if ac_fn_c_try_link "$LINENO"; then : 47646 47647 else 47648 supports=no 47649 fi 47650 rm -f core conftest.err conftest.$ac_objext \ 47651 conftest$ac_exeext conftest.$ac_ext 47652 ac_ext=cpp 47653 ac_cpp='$CXXCPP $CPPFLAGS' 47654 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 47655 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 47656 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 47657 47658 LDFLAGS="$saved_ldflags" 47659 47660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supports" >&5 47661 $as_echo "$supports" >&6; } 47662 if test "x$supports" = "xyes" ; then 47663 : 47664 HAS_LINKER_RELRO=true 47665 else 47666 : 47667 HAS_LINKER_RELRO=false 47668 fi 47669 47670 47671 47672 47673 47674 47675 47676 47677 47678 47679 47680 47681 47682 # "-z now" supported in GNU binutils 2.11 and later 47683 LINKER_NOW_FLAG="-Wl,-z,now" 47684 47685 47686 47687 47688 47689 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 # Execute function body 47732 47733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if linker supports \"$LINKER_NOW_FLAG\"" >&5 47734 $as_echo_n "checking if linker supports \"$LINKER_NOW_FLAG\"... " >&6; } 47735 supports=yes 47736 47737 saved_ldflags="$LDFLAGS" 47738 LDFLAGS="$LDFLAGS $LINKER_NOW_FLAG" 47739 ac_ext=c 47740 ac_cpp='$CPP $CPPFLAGS' 47741 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 47742 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 47743 ac_compiler_gnu=$ac_cv_c_compiler_gnu 47744 47745 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 47746 /* end confdefs.h. */ 47747 47748 int 47749 main () 47750 { 47751 47752 ; 47753 return 0; 47754 } 47755 _ACEOF 47756 if ac_fn_c_try_link "$LINENO"; then : 47757 47758 else 47759 supports=no 47760 fi 47761 rm -f core conftest.err conftest.$ac_objext \ 47762 conftest$ac_exeext conftest.$ac_ext 47763 ac_ext=cpp 47764 ac_cpp='$CXXCPP $CPPFLAGS' 47765 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 47766 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 47767 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 47768 47769 LDFLAGS="$saved_ldflags" 47770 47771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supports" >&5 47772 $as_echo "$supports" >&6; } 47773 if test "x$supports" = "xyes" ; then 47774 : 47775 HAS_LINKER_NOW=true 47776 else 47777 : 47778 HAS_LINKER_NOW=false 47779 fi 47780 47781 47782 47783 47784 47785 47786 47787 47788 47789 47790 47791 47792 fi 47793 47794 # Check for broken SuSE 'ld' for which 'Only anonymous version tag is allowed 47795 # in executable.' 47796 USING_BROKEN_SUSE_LD=no 47797 if test "x$OPENJDK_TARGET_OS" = xlinux && test "x$TOOLCHAIN_TYPE" = xgcc; then 47798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken SuSE 'ld' which only understands anonymous version tags in executables" >&5 47799 $as_echo_n "checking for broken SuSE 'ld' which only understands anonymous version tags in executables... " >&6; } 47800 $ECHO "SUNWprivate_1.1 { local: *; };" > version-script.map 47801 $ECHO "int main() { }" > main.c 47802 if $CXX -Wl,-version-script=version-script.map main.c 2>&5 >&5; then 47803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 47804 $as_echo "no" >&6; } 47805 USING_BROKEN_SUSE_LD=no 47806 else 47807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 47808 $as_echo "yes" >&6; } 47809 USING_BROKEN_SUSE_LD=yes 47810 fi 47811 $RM version-script.map main.c a.out 47812 fi 47813 47814 47815 # Setup hotspot lecagy names for toolchains 47816 HOTSPOT_TOOLCHAIN_TYPE=$TOOLCHAIN_TYPE 47817 if test "x$TOOLCHAIN_TYPE" = xclang; then 47818 HOTSPOT_TOOLCHAIN_TYPE=gcc 47819 elif test "x$TOOLCHAIN_TYPE" = xsolstudio; then 47820 HOTSPOT_TOOLCHAIN_TYPE=sparcWorks 47821 elif test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 47822 HOTSPOT_TOOLCHAIN_TYPE=visCPP 47823 fi 47824 47825 47826 47827 # Setup the JTReg Regression Test Harness. 47828 47829 47830 # Check whether --with-jtreg was given. 47831 if test "${with_jtreg+set}" = set; then : 47832 withval=$with_jtreg; 47833 else 47834 with_jtreg=no 47835 fi 47836 47837 47838 if test "x$with_jtreg" = xno; then 47839 # jtreg disabled 47840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jtreg" >&5 47841 $as_echo_n "checking for jtreg... " >&6; } 47842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 47843 $as_echo "no" >&6; } 47844 else 47845 if test "x$with_jtreg" != xyes; then 47846 # with path specified. 47847 JT_HOME="$with_jtreg" 47848 fi 47849 47850 if test "x$JT_HOME" != x; then 47851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jtreg" >&5 47852 $as_echo_n "checking for jtreg... " >&6; } 47853 47854 # use JT_HOME enviroment var. 47855 47856 # Only process if variable expands to non-empty 47857 47858 if test "x$JT_HOME" != x; then 47859 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 47860 47861 # Input might be given as Windows format, start by converting to 47862 # unix format. 47863 path="$JT_HOME" 47864 new_path=`$CYGPATH -u "$path"` 47865 47866 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 47867 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 47868 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 47869 # "foo.exe" is OK but "foo" is an error. 47870 # 47871 # This test is therefore slightly more accurate than "test -f" to check for file precense. 47872 # It is also a way to make sure we got the proper file name for the real test later on. 47873 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 47874 if test "x$test_shortpath" = x; then 47875 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of JT_HOME, which resolves as \"$path\", is invalid." >&5 47876 $as_echo "$as_me: The path of JT_HOME, which resolves as \"$path\", is invalid." >&6;} 47877 as_fn_error $? "Cannot locate the the path of JT_HOME" "$LINENO" 5 47878 fi 47879 47880 # Call helper function which possibly converts this using DOS-style short mode. 47881 # If so, the updated path is stored in $new_path. 47882 47883 input_path="$new_path" 47884 # Check if we need to convert this using DOS-style short mode. If the path 47885 # contains just simple characters, use it. Otherwise (spaces, weird characters), 47886 # take no chances and rewrite it. 47887 # Note: m4 eats our [], so we need to use [ and ] instead. 47888 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 47889 if test "x$has_forbidden_chars" != x; then 47890 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 47891 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 47892 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 47893 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 47894 # Going to short mode and back again did indeed matter. Since short mode is 47895 # case insensitive, let's make it lowercase to improve readability. 47896 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 47897 # Now convert it back to Unix-style (cygpath) 47898 input_path=`$CYGPATH -u "$shortmode_path"` 47899 new_path="$input_path" 47900 fi 47901 fi 47902 47903 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 47904 if test "x$test_cygdrive_prefix" = x; then 47905 # As a simple fix, exclude /usr/bin since it's not a real path. 47906 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 47907 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 47908 # a path prefixed by /cygdrive for fixpath to work. 47909 new_path="$CYGWIN_ROOT_PATH$input_path" 47910 fi 47911 fi 47912 47913 47914 if test "x$path" != "x$new_path"; then 47915 JT_HOME="$new_path" 47916 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting JT_HOME to \"$new_path\"" >&5 47917 $as_echo "$as_me: Rewriting JT_HOME to \"$new_path\"" >&6;} 47918 fi 47919 47920 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 47921 47922 path="$JT_HOME" 47923 has_colon=`$ECHO $path | $GREP ^.:` 47924 new_path="$path" 47925 if test "x$has_colon" = x; then 47926 # Not in mixed or Windows style, start by that. 47927 new_path=`cmd //c echo $path` 47928 fi 47929 47930 47931 input_path="$new_path" 47932 # Check if we need to convert this using DOS-style short mode. If the path 47933 # contains just simple characters, use it. Otherwise (spaces, weird characters), 47934 # take no chances and rewrite it. 47935 # Note: m4 eats our [], so we need to use [ and ] instead. 47936 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 47937 if test "x$has_forbidden_chars" != x; then 47938 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 47939 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 47940 fi 47941 47942 47943 windows_path="$new_path" 47944 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 47945 unix_path=`$CYGPATH -u "$windows_path"` 47946 new_path="$unix_path" 47947 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 47948 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 47949 new_path="$unix_path" 47950 fi 47951 47952 if test "x$path" != "x$new_path"; then 47953 JT_HOME="$new_path" 47954 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting JT_HOME to \"$new_path\"" >&5 47955 $as_echo "$as_me: Rewriting JT_HOME to \"$new_path\"" >&6;} 47956 fi 47957 47958 # Save the first 10 bytes of this path to the storage, so fixpath can work. 47959 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 47960 47961 else 47962 # We're on a unix platform. Hooray! :) 47963 path="$JT_HOME" 47964 has_space=`$ECHO "$path" | $GREP " "` 47965 if test "x$has_space" != x; then 47966 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of JT_HOME, which resolves as \"$path\", is invalid." >&5 47967 $as_echo "$as_me: The path of JT_HOME, which resolves as \"$path\", is invalid." >&6;} 47968 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 47969 fi 47970 47971 # Use eval to expand a potential ~ 47972 eval path="$path" 47973 if test ! -f "$path" && test ! -d "$path"; then 47974 as_fn_error $? "The path of JT_HOME, which resolves as \"$path\", is not found." "$LINENO" 5 47975 fi 47976 47977 if test -d "$path"; then 47978 JT_HOME="`cd "$path"; $THEPWDCMD -L`" 47979 else 47980 dir="`$DIRNAME "$path"`" 47981 base="`$BASENAME "$path"`" 47982 JT_HOME="`cd "$dir"; $THEPWDCMD -L`/$base" 47983 fi 47984 fi 47985 fi 47986 47987 47988 # jtreg win32 script works for everybody 47989 JTREGEXE="$JT_HOME/bin/jtreg" 47990 47991 if test ! -f "$JTREGEXE"; then 47992 as_fn_error $? "JTReg executable does not exist: $JTREGEXE" "$LINENO" 5 47993 fi 47994 47995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JTREGEXE" >&5 47996 $as_echo "$JTREGEXE" >&6; } 47997 else 47998 # try to find jtreg on path 47999 48000 48001 48002 # Publish this variable in the help. 48003 48004 48005 if [ -z "${JTREGEXE+x}" ]; then 48006 # The variable is not set by user, try to locate tool using the code snippet 48007 for ac_prog in jtreg 48008 do 48009 # Extract the first word of "$ac_prog", so it can be a program name with args. 48010 set dummy $ac_prog; ac_word=$2 48011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 48012 $as_echo_n "checking for $ac_word... " >&6; } 48013 if ${ac_cv_path_JTREGEXE+:} false; then : 48014 $as_echo_n "(cached) " >&6 48015 else 48016 case $JTREGEXE in 48017 [\\/]* | ?:[\\/]*) 48018 ac_cv_path_JTREGEXE="$JTREGEXE" # Let the user override the test with a path. 48019 ;; 48020 *) 48021 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 48022 for as_dir in $PATH 48023 do 48024 IFS=$as_save_IFS 48025 test -z "$as_dir" && as_dir=. 48026 for ac_exec_ext in '' $ac_executable_extensions; do 48027 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 48028 ac_cv_path_JTREGEXE="$as_dir/$ac_word$ac_exec_ext" 48029 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 48030 break 2 48031 fi 48032 done 48033 done 48034 IFS=$as_save_IFS 48035 48036 ;; 48037 esac 48038 fi 48039 JTREGEXE=$ac_cv_path_JTREGEXE 48040 if test -n "$JTREGEXE"; then 48041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JTREGEXE" >&5 48042 $as_echo "$JTREGEXE" >&6; } 48043 else 48044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 48045 $as_echo "no" >&6; } 48046 fi 48047 48048 48049 test -n "$JTREGEXE" && break 48050 done 48051 48052 else 48053 # The variable is set, but is it from the command line or the environment? 48054 48055 # Try to remove the string !JTREGEXE! from our list. 48056 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!JTREGEXE!/} 48057 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 48058 # If it failed, the variable was not from the command line. Ignore it, 48059 # but warn the user (except for BASH, which is always set by the calling BASH). 48060 if test "xJTREGEXE" != xBASH; then 48061 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of JTREGEXE from the environment. Use command line variables instead." >&5 48062 $as_echo "$as_me: WARNING: Ignoring value of JTREGEXE from the environment. Use command line variables instead." >&2;} 48063 fi 48064 # Try to locate tool using the code snippet 48065 for ac_prog in jtreg 48066 do 48067 # Extract the first word of "$ac_prog", so it can be a program name with args. 48068 set dummy $ac_prog; ac_word=$2 48069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 48070 $as_echo_n "checking for $ac_word... " >&6; } 48071 if ${ac_cv_path_JTREGEXE+:} false; then : 48072 $as_echo_n "(cached) " >&6 48073 else 48074 case $JTREGEXE in 48075 [\\/]* | ?:[\\/]*) 48076 ac_cv_path_JTREGEXE="$JTREGEXE" # Let the user override the test with a path. 48077 ;; 48078 *) 48079 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 48080 for as_dir in $PATH 48081 do 48082 IFS=$as_save_IFS 48083 test -z "$as_dir" && as_dir=. 48084 for ac_exec_ext in '' $ac_executable_extensions; do 48085 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 48086 ac_cv_path_JTREGEXE="$as_dir/$ac_word$ac_exec_ext" 48087 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 48088 break 2 48089 fi 48090 done 48091 done 48092 IFS=$as_save_IFS 48093 48094 ;; 48095 esac 48096 fi 48097 JTREGEXE=$ac_cv_path_JTREGEXE 48098 if test -n "$JTREGEXE"; then 48099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JTREGEXE" >&5 48100 $as_echo "$JTREGEXE" >&6; } 48101 else 48102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 48103 $as_echo "no" >&6; } 48104 fi 48105 48106 48107 test -n "$JTREGEXE" && break 48108 done 48109 48110 else 48111 # If it succeeded, then it was overridden by the user. We will use it 48112 # for the tool. 48113 48114 # First remove it from the list of overridden variables, so we can test 48115 # for unknown variables in the end. 48116 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 48117 48118 # Check if we try to supply an empty value 48119 if test "x$JTREGEXE" = x; then 48120 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool JTREGEXE= (no value)" >&5 48121 $as_echo "$as_me: Setting user supplied tool JTREGEXE= (no value)" >&6;} 48122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JTREGEXE" >&5 48123 $as_echo_n "checking for JTREGEXE... " >&6; } 48124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 48125 $as_echo "disabled" >&6; } 48126 else 48127 # Check if the provided tool contains a complete path. 48128 tool_specified="$JTREGEXE" 48129 tool_basename="${tool_specified##*/}" 48130 if test "x$tool_basename" = "x$tool_specified"; then 48131 # A command without a complete path is provided, search $PATH. 48132 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool JTREGEXE=$tool_basename" >&5 48133 $as_echo "$as_me: Will search for user supplied tool JTREGEXE=$tool_basename" >&6;} 48134 # Extract the first word of "$tool_basename", so it can be a program name with args. 48135 set dummy $tool_basename; ac_word=$2 48136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 48137 $as_echo_n "checking for $ac_word... " >&6; } 48138 if ${ac_cv_path_JTREGEXE+:} false; then : 48139 $as_echo_n "(cached) " >&6 48140 else 48141 case $JTREGEXE in 48142 [\\/]* | ?:[\\/]*) 48143 ac_cv_path_JTREGEXE="$JTREGEXE" # Let the user override the test with a path. 48144 ;; 48145 *) 48146 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 48147 for as_dir in $PATH 48148 do 48149 IFS=$as_save_IFS 48150 test -z "$as_dir" && as_dir=. 48151 for ac_exec_ext in '' $ac_executable_extensions; do 48152 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 48153 ac_cv_path_JTREGEXE="$as_dir/$ac_word$ac_exec_ext" 48154 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 48155 break 2 48156 fi 48157 done 48158 done 48159 IFS=$as_save_IFS 48160 48161 ;; 48162 esac 48163 fi 48164 JTREGEXE=$ac_cv_path_JTREGEXE 48165 if test -n "$JTREGEXE"; then 48166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JTREGEXE" >&5 48167 $as_echo "$JTREGEXE" >&6; } 48168 else 48169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 48170 $as_echo "no" >&6; } 48171 fi 48172 48173 48174 if test "x$JTREGEXE" = x; then 48175 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 48176 fi 48177 else 48178 # Otherwise we believe it is a complete path. Use it as it is. 48179 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool JTREGEXE=$tool_specified" >&5 48180 $as_echo "$as_me: Will use user supplied tool JTREGEXE=$tool_specified" >&6;} 48181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JTREGEXE" >&5 48182 $as_echo_n "checking for JTREGEXE... " >&6; } 48183 if test ! -x "$tool_specified"; then 48184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 48185 $as_echo "not found" >&6; } 48186 as_fn_error $? "User supplied tool JTREGEXE=$tool_specified does not exist or is not executable" "$LINENO" 5 48187 fi 48188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 48189 $as_echo "$tool_specified" >&6; } 48190 fi 48191 fi 48192 fi 48193 48194 fi 48195 48196 48197 48198 if test "x$JTREGEXE" = x; then 48199 as_fn_error $? "Could not find required tool for JTREGEXE" "$LINENO" 5 48200 fi 48201 48202 48203 JT_HOME="`$DIRNAME $JTREGEXE`" 48204 fi 48205 fi 48206 48207 48208 48209 48210 48211 48212 # COMPILER_TARGET_BITS_FLAG : option for selecting 32- or 64-bit output 48213 # COMPILER_COMMAND_FILE_FLAG : option for passing a command file to the compiler 48214 # COMPILER_BINDCMD_FILE_FLAG : option for specifying a file which saves the binder 48215 # commands produced by the link step (currently AIX only) 48216 if test "x$TOOLCHAIN_TYPE" = xxlc; then 48217 COMPILER_TARGET_BITS_FLAG="-q" 48218 COMPILER_COMMAND_FILE_FLAG="-f" 48219 COMPILER_BINDCMD_FILE_FLAG="-bloadmap:" 48220 else 48221 COMPILER_TARGET_BITS_FLAG="-m" 48222 COMPILER_COMMAND_FILE_FLAG="@" 48223 COMPILER_BINDCMD_FILE_FLAG="" 48224 48225 # The solstudio linker does not support @-files. 48226 if test "x$TOOLCHAIN_TYPE" = xsolstudio; then 48227 COMPILER_COMMAND_FILE_FLAG= 48228 fi 48229 48230 # Check if @file is supported by gcc 48231 if test "x$TOOLCHAIN_TYPE" = xgcc; then 48232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if @file is supported by gcc" >&5 48233 $as_echo_n "checking if @file is supported by gcc... " >&6; } 48234 # Extra emtpy "" to prevent ECHO from interpreting '--version' as argument 48235 $ECHO "" "--version" > command.file 48236 if $CXX @command.file 2>&5 >&5; then 48237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 48238 $as_echo "yes" >&6; } 48239 COMPILER_COMMAND_FILE_FLAG="@" 48240 else 48241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 48242 $as_echo "no" >&6; } 48243 COMPILER_COMMAND_FILE_FLAG= 48244 fi 48245 $RM command.file 48246 fi 48247 fi 48248 48249 48250 48251 48252 # FIXME: figure out if we should select AR flags depending on OS or toolchain. 48253 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 48254 ARFLAGS="-r" 48255 elif test "x$OPENJDK_TARGET_OS" = xaix; then 48256 ARFLAGS="-X64" 48257 elif test "x$OPENJDK_TARGET_OS" = xwindows; then 48258 # lib.exe is used as AR to create static libraries. 48259 ARFLAGS="-nologo -NODEFAULTLIB:MSVCRT" 48260 else 48261 ARFLAGS="" 48262 fi 48263 48264 48265 ## Setup strip. 48266 # FIXME: should this really be per platform, or should it be per toolchain type? 48267 # strip is not provided by clang or solstudio; so guessing platform makes most sense. 48268 # FIXME: we should really only export STRIPFLAGS from here, not POST_STRIP_CMD. 48269 if test "x$OPENJDK_TARGET_OS" = xlinux; then 48270 STRIPFLAGS="-g" 48271 elif test "x$OPENJDK_TARGET_OS" = xsolaris; then 48272 STRIPFLAGS="-x" 48273 elif test "x$OPENJDK_TARGET_OS" = xmacosx; then 48274 STRIPFLAGS="-S" 48275 elif test "x$OPENJDK_TARGET_OS" = xaix; then 48276 STRIPFLAGS="-X32_64" 48277 fi 48278 48279 48280 48281 if test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 48282 CC_OUT_OPTION=-Fo 48283 EXE_OUT_OPTION=-out: 48284 LD_OUT_OPTION=-out: 48285 AR_OUT_OPTION=-out: 48286 else 48287 # The option used to specify the target .o,.a or .so file. 48288 # When compiling, how to specify the to be created object file. 48289 CC_OUT_OPTION='-o$(SPACE)' 48290 # When linking, how to specify the to be created executable. 48291 EXE_OUT_OPTION='-o$(SPACE)' 48292 # When linking, how to specify the to be created dynamically linkable library. 48293 LD_OUT_OPTION='-o$(SPACE)' 48294 # When archiving, how to specify the to be create static archive for object files. 48295 AR_OUT_OPTION='rcs$(SPACE)' 48296 fi 48297 48298 48299 48300 48301 48302 # On Windows, we need to set RC flags. 48303 if test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 48304 RC_FLAGS="-nologo -l0x409" 48305 JVM_RCFLAGS="-nologo" 48306 if test "x$DEBUG_LEVEL" = xrelease; then 48307 RC_FLAGS="$RC_FLAGS -DNDEBUG" 48308 JVM_RCFLAGS="$JVM_RCFLAGS -DNDEBUG" 48309 fi 48310 48311 # The version variables used to create RC_FLAGS may be overridden 48312 # in a custom configure script, or possibly the command line. 48313 # Let those variables be expanded at make time in spec.gmk. 48314 # The \$ are escaped to the shell, and the $(...) variables 48315 # are evaluated by make. 48316 RC_FLAGS="$RC_FLAGS \ 48317 -D\"JDK_VERSION_STRING=\$(VERSION_STRING)\" \ 48318 -D\"JDK_COMPANY=\$(COMPANY_NAME)\" \ 48319 -D\"JDK_COMPONENT=\$(PRODUCT_NAME) \$(JDK_RC_PLATFORM_NAME) binary\" \ 48320 -D\"JDK_VER=\$(VERSION_NUMBER)\" \ 48321 -D\"JDK_COPYRIGHT=Copyright \xA9 $COPYRIGHT_YEAR\" \ 48322 -D\"JDK_NAME=\$(PRODUCT_NAME) \$(JDK_RC_PLATFORM_NAME) \$(VERSION_MAJOR)\" \ 48323 -D\"JDK_FVER=\$(subst .,\$(COMMA),\$(VERSION_NUMBER_FOUR_POSITIONS))\"" 48324 48325 JVM_RCFLAGS="$JVM_RCFLAGS \ 48326 -D\"HS_BUILD_ID=\$(VERSION_STRING)\" \ 48327 -D\"HS_COMPANY=\$(COMPANY_NAME)\" \ 48328 -D\"JDK_DOTVER=\$(VERSION_NUMBER_FOUR_POSITIONS)\" \ 48329 -D\"HS_COPYRIGHT=Copyright $COPYRIGHT_YEAR\" \ 48330 -D\"HS_NAME=\$(PRODUCT_NAME) \$(VERSION_SHORT)\" \ 48331 -D\"JDK_VER=\$(subst .,\$(COMMA),\$(VERSION_NUMBER_FOUR_POSITIONS))\" \ 48332 -D\"HS_FNAME=jvm.dll\" \ 48333 -D\"HS_INTERNAL_NAME=jvm\"" 48334 fi 48335 48336 48337 48338 if test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 48339 # silence copyright notice and other headers. 48340 COMMON_CCXXFLAGS="$COMMON_CCXXFLAGS -nologo" 48341 fi 48342 48343 48344 # Now we can test some aspects on the target using configure macros. 48345 48346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 48347 $as_echo_n "checking for ANSI C header files... " >&6; } 48348 if ${ac_cv_header_stdc+:} false; then : 48349 $as_echo_n "(cached) " >&6 48350 else 48351 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 48352 /* end confdefs.h. */ 48353 #include <stdlib.h> 48354 #include <stdarg.h> 48355 #include <string.h> 48356 #include <float.h> 48357 48358 int 48359 main () 48360 { 48361 48362 ; 48363 return 0; 48364 } 48365 _ACEOF 48366 if ac_fn_cxx_try_compile "$LINENO"; then : 48367 ac_cv_header_stdc=yes 48368 else 48369 ac_cv_header_stdc=no 48370 fi 48371 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 48372 48373 if test $ac_cv_header_stdc = yes; then 48374 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 48375 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 48376 /* end confdefs.h. */ 48377 #include <string.h> 48378 48379 _ACEOF 48380 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 48381 $EGREP "memchr" >/dev/null 2>&1; then : 48382 48383 else 48384 ac_cv_header_stdc=no 48385 fi 48386 rm -f conftest* 48387 48388 fi 48389 48390 if test $ac_cv_header_stdc = yes; then 48391 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 48392 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 48393 /* end confdefs.h. */ 48394 #include <stdlib.h> 48395 48396 _ACEOF 48397 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 48398 $EGREP "free" >/dev/null 2>&1; then : 48399 48400 else 48401 ac_cv_header_stdc=no 48402 fi 48403 rm -f conftest* 48404 48405 fi 48406 48407 if test $ac_cv_header_stdc = yes; then 48408 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 48409 if test "$cross_compiling" = yes; then : 48410 : 48411 else 48412 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 48413 /* end confdefs.h. */ 48414 #include <ctype.h> 48415 #include <stdlib.h> 48416 #if ((' ' & 0x0FF) == 0x020) 48417 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 48418 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 48419 #else 48420 # define ISLOWER(c) \ 48421 (('a' <= (c) && (c) <= 'i') \ 48422 || ('j' <= (c) && (c) <= 'r') \ 48423 || ('s' <= (c) && (c) <= 'z')) 48424 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 48425 #endif 48426 48427 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 48428 int 48429 main () 48430 { 48431 int i; 48432 for (i = 0; i < 256; i++) 48433 if (XOR (islower (i), ISLOWER (i)) 48434 || toupper (i) != TOUPPER (i)) 48435 return 2; 48436 return 0; 48437 } 48438 _ACEOF 48439 if ac_fn_cxx_try_run "$LINENO"; then : 48440 48441 else 48442 ac_cv_header_stdc=no 48443 fi 48444 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 48445 conftest.$ac_objext conftest.beam conftest.$ac_ext 48446 fi 48447 48448 fi 48449 fi 48450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 48451 $as_echo "$ac_cv_header_stdc" >&6; } 48452 if test $ac_cv_header_stdc = yes; then 48453 48454 $as_echo "#define STDC_HEADERS 1" >>confdefs.h 48455 48456 fi 48457 48458 # On IRIX 5.3, sys/types and inttypes.h are conflicting. 48459 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 48460 inttypes.h stdint.h unistd.h 48461 do : 48462 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 48463 ac_fn_cxx_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 48464 " 48465 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 48466 cat >>confdefs.h <<_ACEOF 48467 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 48468 _ACEOF 48469 48470 fi 48471 48472 done 48473 48474 48475 48476 ############################################################################### 48477 # 48478 # Now we check if libjvm.so will use 32 or 64 bit pointers for the C/C++ code. 48479 # (The JVM can use 32 or 64 bit Java pointers but that decision 48480 # is made at runtime.) 48481 # 48482 48483 if test "x$OPENJDK_TARGET_OS" = xsolaris || test "x$OPENJDK_TARGET_OS" = xaix; then 48484 # Always specify -m flag on Solaris 48485 # And -q on AIX because otherwise the compiler produces 32-bit objects by default 48486 48487 # When we add flags to the "official" CFLAGS etc, we need to 48488 # keep track of these additions in ADDED_CFLAGS etc. These 48489 # will later be checked to make sure only controlled additions 48490 # have been made to CFLAGS etc. 48491 ADDED_CFLAGS=" ${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}" 48492 ADDED_CXXFLAGS=" ${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}" 48493 ADDED_LDFLAGS=" ${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}" 48494 48495 CFLAGS="${CFLAGS}${ADDED_CFLAGS}" 48496 CXXFLAGS="${CXXFLAGS}${ADDED_CXXFLAGS}" 48497 LDFLAGS="${LDFLAGS}${ADDED_LDFLAGS}" 48498 48499 CFLAGS_JDK="${CFLAGS_JDK}${ADDED_CFLAGS}" 48500 CXXFLAGS_JDK="${CXXFLAGS_JDK}${ADDED_CXXFLAGS}" 48501 LDFLAGS_JDK="${LDFLAGS_JDK}${ADDED_LDFLAGS}" 48502 48503 JVM_CFLAGS="$JVM_CFLAGS $ADDED_CFLAGS" 48504 JVM_LDFLAGS="$JVM_LDFLAGS $ADDED_LDFLAGS" 48505 JVM_ASFLAGS="$JVM_ASFLAGS $ADDED_CFLAGS" 48506 48507 elif test "x$COMPILE_TYPE" = xreduced; then 48508 if test "x$OPENJDK_TARGET_OS_TYPE" = xunix; then 48509 # Specify -m if running reduced on unix platforms 48510 48511 # When we add flags to the "official" CFLAGS etc, we need to 48512 # keep track of these additions in ADDED_CFLAGS etc. These 48513 # will later be checked to make sure only controlled additions 48514 # have been made to CFLAGS etc. 48515 ADDED_CFLAGS=" ${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}" 48516 ADDED_CXXFLAGS=" ${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}" 48517 ADDED_LDFLAGS=" ${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}" 48518 48519 CFLAGS="${CFLAGS}${ADDED_CFLAGS}" 48520 CXXFLAGS="${CXXFLAGS}${ADDED_CXXFLAGS}" 48521 LDFLAGS="${LDFLAGS}${ADDED_LDFLAGS}" 48522 48523 CFLAGS_JDK="${CFLAGS_JDK}${ADDED_CFLAGS}" 48524 CXXFLAGS_JDK="${CXXFLAGS_JDK}${ADDED_CXXFLAGS}" 48525 LDFLAGS_JDK="${LDFLAGS_JDK}${ADDED_LDFLAGS}" 48526 48527 JVM_CFLAGS="$JVM_CFLAGS $ADDED_CFLAGS" 48528 JVM_LDFLAGS="$JVM_LDFLAGS $ADDED_LDFLAGS" 48529 JVM_ASFLAGS="$JVM_ASFLAGS $ADDED_CFLAGS" 48530 48531 fi 48532 fi 48533 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 48534 JVM_CFLAGS="$JVM_CFLAGS ${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}" 48535 JVM_LDFLAGS="$JVM_LDFLAGS ${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}" 48536 JVM_ASFLAGS="$JVM_ASFLAGS ${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}" 48537 fi 48538 48539 # Make compilation sanity check 48540 for ac_header in stdio.h 48541 do : 48542 ac_fn_cxx_check_header_mongrel "$LINENO" "stdio.h" "ac_cv_header_stdio_h" "$ac_includes_default" 48543 if test "x$ac_cv_header_stdio_h" = xyes; then : 48544 cat >>confdefs.h <<_ACEOF 48545 #define HAVE_STDIO_H 1 48546 _ACEOF 48547 48548 else 48549 48550 { $as_echo "$as_me:${as_lineno-$LINENO}: Failed to compile stdio.h. This likely implies missing compile dependencies." >&5 48551 $as_echo "$as_me: Failed to compile stdio.h. This likely implies missing compile dependencies." >&6;} 48552 if test "x$COMPILE_TYPE" = xreduced; then 48553 48554 # Print a helpful message on how to acquire the necessary build dependency. 48555 # reduced is the help tag: freetype, cups, alsa etc 48556 MISSING_DEPENDENCY=reduced 48557 48558 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 48559 cygwin_help $MISSING_DEPENDENCY 48560 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 48561 msys_help $MISSING_DEPENDENCY 48562 else 48563 PKGHANDLER_COMMAND= 48564 48565 case $PKGHANDLER in 48566 apt-get) 48567 apt_help $MISSING_DEPENDENCY ;; 48568 yum) 48569 yum_help $MISSING_DEPENDENCY ;; 48570 port) 48571 port_help $MISSING_DEPENDENCY ;; 48572 pkgutil) 48573 pkgutil_help $MISSING_DEPENDENCY ;; 48574 pkgadd) 48575 pkgadd_help $MISSING_DEPENDENCY ;; 48576 esac 48577 48578 if test "x$PKGHANDLER_COMMAND" != x; then 48579 HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'." 48580 fi 48581 fi 48582 48583 { $as_echo "$as_me:${as_lineno-$LINENO}: You are doing a reduced build. Check that you have 32-bit libraries installed. $HELP_MSG" >&5 48584 $as_echo "$as_me: You are doing a reduced build. Check that you have 32-bit libraries installed. $HELP_MSG" >&6;} 48585 elif test "x$COMPILE_TYPE" = xcross; then 48586 { $as_echo "$as_me:${as_lineno-$LINENO}: You are doing a cross-compilation. Check that you have all target platform libraries installed." >&5 48587 $as_echo "$as_me: You are doing a cross-compilation. Check that you have all target platform libraries installed." >&6;} 48588 fi 48589 as_fn_error $? "Cannot continue." "$LINENO" 5 48590 48591 fi 48592 48593 done 48594 48595 48596 # The cast to long int works around a bug in the HP C Compiler 48597 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 48598 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 48599 # This bug is HP SR number 8606223364. 48600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int *" >&5 48601 $as_echo_n "checking size of int *... " >&6; } 48602 if ${ac_cv_sizeof_int_p+:} false; then : 48603 $as_echo_n "(cached) " >&6 48604 else 48605 if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (int *))" "ac_cv_sizeof_int_p" "$ac_includes_default"; then : 48606 48607 else 48608 if test "$ac_cv_type_int_p" = yes; then 48609 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 48610 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 48611 as_fn_error 77 "cannot compute sizeof (int *) 48612 See \`config.log' for more details" "$LINENO" 5; } 48613 else 48614 ac_cv_sizeof_int_p=0 48615 fi 48616 fi 48617 48618 fi 48619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int_p" >&5 48620 $as_echo "$ac_cv_sizeof_int_p" >&6; } 48621 48622 48623 48624 cat >>confdefs.h <<_ACEOF 48625 #define SIZEOF_INT_P $ac_cv_sizeof_int_p 48626 _ACEOF 48627 48628 48629 48630 # AC_CHECK_SIZEOF defines 'ac_cv_sizeof_int_p' to hold the number of bytes used by an 'int*' 48631 if test "x$ac_cv_sizeof_int_p" = x; then 48632 # The test failed, lets stick to the assumed value. 48633 { $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 48634 $as_echo "$as_me: WARNING: The number of bits in the target could not be determined, using $OPENJDK_TARGET_CPU_BITS." >&2;} 48635 else 48636 TESTED_TARGET_CPU_BITS=`expr 8 \* $ac_cv_sizeof_int_p` 48637 48638 if test "x$TESTED_TARGET_CPU_BITS" != "x$OPENJDK_TARGET_CPU_BITS"; then 48639 # This situation may happen on 64-bit platforms where the compiler by default only generates 32-bit objects 48640 # Let's try to implicitely set the compilers target architecture and retry the test 48641 { $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 48642 $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;} 48643 { $as_echo "$as_me:${as_lineno-$LINENO}: Retrying with platforms compiler target bits flag to ${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}" >&5 48644 $as_echo "$as_me: Retrying with platforms compiler target bits flag to ${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}" >&6;} 48645 48646 # When we add flags to the "official" CFLAGS etc, we need to 48647 # keep track of these additions in ADDED_CFLAGS etc. These 48648 # will later be checked to make sure only controlled additions 48649 # have been made to CFLAGS etc. 48650 ADDED_CFLAGS=" ${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}" 48651 ADDED_CXXFLAGS=" ${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}" 48652 ADDED_LDFLAGS=" ${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}" 48653 48654 CFLAGS="${CFLAGS}${ADDED_CFLAGS}" 48655 CXXFLAGS="${CXXFLAGS}${ADDED_CXXFLAGS}" 48656 LDFLAGS="${LDFLAGS}${ADDED_LDFLAGS}" 48657 48658 CFLAGS_JDK="${CFLAGS_JDK}${ADDED_CFLAGS}" 48659 CXXFLAGS_JDK="${CXXFLAGS_JDK}${ADDED_CXXFLAGS}" 48660 LDFLAGS_JDK="${LDFLAGS_JDK}${ADDED_LDFLAGS}" 48661 48662 JVM_CFLAGS="$JVM_CFLAGS $ADDED_CFLAGS" 48663 JVM_LDFLAGS="$JVM_LDFLAGS $ADDED_LDFLAGS" 48664 JVM_ASFLAGS="$JVM_ASFLAGS $ADDED_CFLAGS" 48665 48666 48667 # We have to unset 'ac_cv_sizeof_int_p' first, otherwise AC_CHECK_SIZEOF will use the previously cached value! 48668 unset ac_cv_sizeof_int_p 48669 # And we have to undef the definition of SIZEOF_INT_P in confdefs.h by the previous invocation of AC_CHECK_SIZEOF 48670 cat >>confdefs.h <<_ACEOF 48671 #undef SIZEOF_INT_P 48672 _ACEOF 48673 48674 # The cast to long int works around a bug in the HP C Compiler 48675 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 48676 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 48677 # This bug is HP SR number 8606223364. 48678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int *" >&5 48679 $as_echo_n "checking size of int *... " >&6; } 48680 if ${ac_cv_sizeof_int_p+:} false; then : 48681 $as_echo_n "(cached) " >&6 48682 else 48683 if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (int *))" "ac_cv_sizeof_int_p" "$ac_includes_default"; then : 48684 48685 else 48686 if test "$ac_cv_type_int_p" = yes; then 48687 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 48688 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 48689 as_fn_error 77 "cannot compute sizeof (int *) 48690 See \`config.log' for more details" "$LINENO" 5; } 48691 else 48692 ac_cv_sizeof_int_p=0 48693 fi 48694 fi 48695 48696 fi 48697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int_p" >&5 48698 $as_echo "$ac_cv_sizeof_int_p" >&6; } 48699 48700 48701 48702 cat >>confdefs.h <<_ACEOF 48703 #define SIZEOF_INT_P $ac_cv_sizeof_int_p 48704 _ACEOF 48705 48706 48707 48708 TESTED_TARGET_CPU_BITS=`expr 8 \* $ac_cv_sizeof_int_p` 48709 48710 if test "x$TESTED_TARGET_CPU_BITS" != "x$OPENJDK_TARGET_CPU_BITS"; then 48711 { $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 48712 $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;} 48713 if test "x$COMPILE_TYPE" = xreduced; then 48714 48715 # Print a helpful message on how to acquire the necessary build dependency. 48716 # reduced is the help tag: freetype, cups, alsa etc 48717 MISSING_DEPENDENCY=reduced 48718 48719 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 48720 cygwin_help $MISSING_DEPENDENCY 48721 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 48722 msys_help $MISSING_DEPENDENCY 48723 else 48724 PKGHANDLER_COMMAND= 48725 48726 case $PKGHANDLER in 48727 apt-get) 48728 apt_help $MISSING_DEPENDENCY ;; 48729 yum) 48730 yum_help $MISSING_DEPENDENCY ;; 48731 port) 48732 port_help $MISSING_DEPENDENCY ;; 48733 pkgutil) 48734 pkgutil_help $MISSING_DEPENDENCY ;; 48735 pkgadd) 48736 pkgadd_help $MISSING_DEPENDENCY ;; 48737 esac 48738 48739 if test "x$PKGHANDLER_COMMAND" != x; then 48740 HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'." 48741 fi 48742 fi 48743 48744 { $as_echo "$as_me:${as_lineno-$LINENO}: You are doing a reduced build. Check that you have 32-bit libraries installed. $HELP_MSG" >&5 48745 $as_echo "$as_me: You are doing a reduced build. Check that you have 32-bit libraries installed. $HELP_MSG" >&6;} 48746 elif test "x$COMPILE_TYPE" = xcross; then 48747 { $as_echo "$as_me:${as_lineno-$LINENO}: You are doing a cross-compilation. Check that you have all target platform libraries installed." >&5 48748 $as_echo "$as_me: You are doing a cross-compilation. Check that you have all target platform libraries installed." >&6;} 48749 fi 48750 as_fn_error $? "Cannot continue." "$LINENO" 5 48751 fi 48752 fi 48753 fi 48754 48755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for target address size" >&5 48756 $as_echo_n "checking for target address size... " >&6; } 48757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OPENJDK_TARGET_CPU_BITS bits" >&5 48758 $as_echo "$OPENJDK_TARGET_CPU_BITS bits" >&6; } 48759 48760 48761 ############################################################################### 48762 # 48763 # Is the target little of big endian? 48764 # 48765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5 48766 $as_echo_n "checking whether byte ordering is bigendian... " >&6; } 48767 if ${ac_cv_c_bigendian+:} false; then : 48768 $as_echo_n "(cached) " >&6 48769 else 48770 ac_cv_c_bigendian=unknown 48771 # See if we're dealing with a universal compiler. 48772 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 48773 /* end confdefs.h. */ 48774 #ifndef __APPLE_CC__ 48775 not a universal capable compiler 48776 #endif 48777 typedef int dummy; 48778 48779 _ACEOF 48780 if ac_fn_cxx_try_compile "$LINENO"; then : 48781 48782 # Check for potential -arch flags. It is not universal unless 48783 # there are at least two -arch flags with different values. 48784 ac_arch= 48785 ac_prev= 48786 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do 48787 if test -n "$ac_prev"; then 48788 case $ac_word in 48789 i?86 | x86_64 | ppc | ppc64) 48790 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then 48791 ac_arch=$ac_word 48792 else 48793 ac_cv_c_bigendian=universal 48794 break 48795 fi 48796 ;; 48797 esac 48798 ac_prev= 48799 elif test "x$ac_word" = "x-arch"; then 48800 ac_prev=arch 48801 fi 48802 done 48803 fi 48804 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 48805 if test $ac_cv_c_bigendian = unknown; then 48806 # See if sys/param.h defines the BYTE_ORDER macro. 48807 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 48808 /* end confdefs.h. */ 48809 #include <sys/types.h> 48810 #include <sys/param.h> 48811 48812 int 48813 main () 48814 { 48815 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \ 48816 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \ 48817 && LITTLE_ENDIAN) 48818 bogus endian macros 48819 #endif 48820 48821 ; 48822 return 0; 48823 } 48824 _ACEOF 48825 if ac_fn_cxx_try_compile "$LINENO"; then : 48826 # It does; now see whether it defined to BIG_ENDIAN or not. 48827 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 48828 /* end confdefs.h. */ 48829 #include <sys/types.h> 48830 #include <sys/param.h> 48831 48832 int 48833 main () 48834 { 48835 #if BYTE_ORDER != BIG_ENDIAN 48836 not big endian 48837 #endif 48838 48839 ; 48840 return 0; 48841 } 48842 _ACEOF 48843 if ac_fn_cxx_try_compile "$LINENO"; then : 48844 ac_cv_c_bigendian=yes 48845 else 48846 ac_cv_c_bigendian=no 48847 fi 48848 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 48849 fi 48850 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 48851 fi 48852 if test $ac_cv_c_bigendian = unknown; then 48853 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris). 48854 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 48855 /* end confdefs.h. */ 48856 #include <limits.h> 48857 48858 int 48859 main () 48860 { 48861 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN) 48862 bogus endian macros 48863 #endif 48864 48865 ; 48866 return 0; 48867 } 48868 _ACEOF 48869 if ac_fn_cxx_try_compile "$LINENO"; then : 48870 # It does; now see whether it defined to _BIG_ENDIAN or not. 48871 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 48872 /* end confdefs.h. */ 48873 #include <limits.h> 48874 48875 int 48876 main () 48877 { 48878 #ifndef _BIG_ENDIAN 48879 not big endian 48880 #endif 48881 48882 ; 48883 return 0; 48884 } 48885 _ACEOF 48886 if ac_fn_cxx_try_compile "$LINENO"; then : 48887 ac_cv_c_bigendian=yes 48888 else 48889 ac_cv_c_bigendian=no 48890 fi 48891 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 48892 fi 48893 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 48894 fi 48895 if test $ac_cv_c_bigendian = unknown; then 48896 # Compile a test program. 48897 if test "$cross_compiling" = yes; then : 48898 # Try to guess by grepping values from an object file. 48899 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 48900 /* end confdefs.h. */ 48901 short int ascii_mm[] = 48902 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; 48903 short int ascii_ii[] = 48904 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; 48905 int use_ascii (int i) { 48906 return ascii_mm[i] + ascii_ii[i]; 48907 } 48908 short int ebcdic_ii[] = 48909 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; 48910 short int ebcdic_mm[] = 48911 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; 48912 int use_ebcdic (int i) { 48913 return ebcdic_mm[i] + ebcdic_ii[i]; 48914 } 48915 extern int foo; 48916 48917 int 48918 main () 48919 { 48920 return use_ascii (foo) == use_ebcdic (foo); 48921 ; 48922 return 0; 48923 } 48924 _ACEOF 48925 if ac_fn_cxx_try_compile "$LINENO"; then : 48926 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then 48927 ac_cv_c_bigendian=yes 48928 fi 48929 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then 48930 if test "$ac_cv_c_bigendian" = unknown; then 48931 ac_cv_c_bigendian=no 48932 else 48933 # finding both strings is unlikely to happen, but who knows? 48934 ac_cv_c_bigendian=unknown 48935 fi 48936 fi 48937 fi 48938 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 48939 else 48940 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 48941 /* end confdefs.h. */ 48942 $ac_includes_default 48943 int 48944 main () 48945 { 48946 48947 /* Are we little or big endian? From Harbison&Steele. */ 48948 union 48949 { 48950 long int l; 48951 char c[sizeof (long int)]; 48952 } u; 48953 u.l = 1; 48954 return u.c[sizeof (long int) - 1] == 1; 48955 48956 ; 48957 return 0; 48958 } 48959 _ACEOF 48960 if ac_fn_cxx_try_run "$LINENO"; then : 48961 ac_cv_c_bigendian=no 48962 else 48963 ac_cv_c_bigendian=yes 48964 fi 48965 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 48966 conftest.$ac_objext conftest.beam conftest.$ac_ext 48967 fi 48968 48969 fi 48970 fi 48971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5 48972 $as_echo "$ac_cv_c_bigendian" >&6; } 48973 case $ac_cv_c_bigendian in #( 48974 yes) 48975 ENDIAN="big";; #( 48976 no) 48977 ENDIAN="little" ;; #( 48978 universal) 48979 ENDIAN="universal_endianness" 48980 ;; #( 48981 *) 48982 ENDIAN="unknown" ;; 48983 esac 48984 48985 48986 if test "x$ENDIAN" = xuniversal_endianness; then 48987 as_fn_error $? "Building with both big and little endianness is not supported" "$LINENO" 5 48988 fi 48989 if test "x$ENDIAN" != "x$OPENJDK_TARGET_CPU_ENDIAN"; then 48990 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 48991 fi 48992 48993 48994 # Configure flags for the tools 48995 48996 ############################################################################### 48997 # 48998 # How to compile shared libraries. 48999 # 49000 49001 if test "x$TOOLCHAIN_TYPE" = xgcc; then 49002 PICFLAG="-fPIC" 49003 C_FLAG_REORDER='' 49004 CXX_FLAG_REORDER='' 49005 49006 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 49007 # Linking is different on MacOSX 49008 if test "x$STATIC_BUILD" = xtrue; then 49009 SHARED_LIBRARY_FLAGS ='-undefined dynamic_lookup' 49010 else 49011 SHARED_LIBRARY_FLAGS="-dynamiclib -compatibility_version 1.0.0 -current_version 1.0.0 $PICFLAG" 49012 JVM_CFLAGS="$JVM_CFLAGS $PICFLAG" 49013 fi 49014 SET_EXECUTABLE_ORIGIN='-Wl,-rpath,@loader_path/.' 49015 SET_SHARED_LIBRARY_ORIGIN="$SET_EXECUTABLE_ORIGIN" 49016 SET_SHARED_LIBRARY_NAME='-Wl,-install_name,@rpath/$1' 49017 SET_SHARED_LIBRARY_MAPFILE='-Wl,-exported_symbols_list,$1' 49018 else 49019 # Default works for linux, might work on other platforms as well. 49020 SHARED_LIBRARY_FLAGS='-shared' 49021 SET_EXECUTABLE_ORIGIN='-Wl,-rpath,\$$ORIGIN$1' 49022 SET_SHARED_LIBRARY_ORIGIN="-Wl,-z,origin $SET_EXECUTABLE_ORIGIN" 49023 SET_SHARED_LIBRARY_NAME='-Wl,-soname=$1' 49024 SET_SHARED_LIBRARY_MAPFILE='-Wl,-version-script=$1' 49025 fi 49026 elif test "x$TOOLCHAIN_TYPE" = xclang; then 49027 C_FLAG_REORDER='' 49028 CXX_FLAG_REORDER='' 49029 49030 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 49031 # Linking is different on MacOSX 49032 PICFLAG='' 49033 SHARED_LIBRARY_FLAGS="-dynamiclib -compatibility_version 1.0.0 -current_version 1.0.0 $PICFLAG" 49034 SET_EXECUTABLE_ORIGIN='-Wl,-rpath,@loader_path/.' 49035 SET_SHARED_LIBRARY_ORIGIN="$SET_EXECUTABLE_ORIGIN" 49036 SET_SHARED_LIBRARY_NAME='-Wl,-install_name,@rpath/$1' 49037 SET_SHARED_LIBRARY_MAPFILE='-Wl,-exported_symbols_list,$1' 49038 49039 if test "x$STATIC_BUILD" = xfalse; then 49040 JVM_CFLAGS="$JVM_CFLAGS -fPIC" 49041 fi 49042 else 49043 # Default works for linux, might work on other platforms as well. 49044 PICFLAG='-fPIC' 49045 SHARED_LIBRARY_FLAGS='-shared' 49046 SET_EXECUTABLE_ORIGIN='-Wl,-rpath,\$$ORIGIN$1' 49047 SET_SHARED_LIBRARY_ORIGIN="-Wl,-z,origin $SET_EXECUTABLE_ORIGIN" 49048 SET_SHARED_LIBRARY_NAME='-Wl,-soname=$1' 49049 SET_SHARED_LIBRARY_MAPFILE='-Wl,-version-script=$1' 49050 fi 49051 elif test "x$TOOLCHAIN_TYPE" = xsolstudio; then 49052 if test "x$OPENJDK_TARGET_CPU" = xsparcv9; then 49053 PICFLAG="-xcode=pic32" 49054 else 49055 PICFLAG="-KPIC" 49056 fi 49057 C_FLAG_REORDER='-xF' 49058 CXX_FLAG_REORDER='-xF' 49059 SHARED_LIBRARY_FLAGS="-G" 49060 SET_EXECUTABLE_ORIGIN='-R\$$ORIGIN$1' 49061 SET_SHARED_LIBRARY_ORIGIN="$SET_EXECUTABLE_ORIGIN" 49062 SET_SHARED_LIBRARY_NAME='-h $1' 49063 SET_SHARED_LIBRARY_MAPFILE='-M$1' 49064 elif test "x$TOOLCHAIN_TYPE" = xxlc; then 49065 # '-qpic' defaults to 'qpic=small'. This means that the compiler generates only 49066 # one instruction for accessing the TOC. If the TOC grows larger than 64K, the linker 49067 # will have to patch this single instruction with a call to some out-of-order code which 49068 # does the load from the TOC. This is of course slow. But in that case we also would have 49069 # to use '-bbigtoc' for linking anyway so we could also change the PICFLAG to 'qpic=large'. 49070 # With 'qpic=large' the compiler will by default generate a two-instruction sequence which 49071 # can be patched directly by the linker and does not require a jump to out-of-order code. 49072 # Another alternative instead of using 'qpic=large -bbigtoc' may be to use '-qminimaltoc' 49073 # instead. This creates a distinct TOC for every compilation unit (and thus requires two 49074 # loads for accessing a global variable). But there are rumors that this may be seen as a 49075 # 'performance feature' because of improved code locality of the symbols used in a 49076 # compilation unit. 49077 PICFLAG="-qpic" 49078 JVM_CFLAGS="$JVM_CFLAGS $PICFLAG" 49079 C_FLAG_REORDER='' 49080 CXX_FLAG_REORDER='' 49081 SHARED_LIBRARY_FLAGS="-qmkshrobj -bM:SRE -bnoentry" 49082 SET_EXECUTABLE_ORIGIN="" 49083 SET_SHARED_LIBRARY_ORIGIN='' 49084 SET_SHARED_LIBRARY_NAME='' 49085 SET_SHARED_LIBRARY_MAPFILE='' 49086 elif test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 49087 PICFLAG="" 49088 C_FLAG_REORDER='' 49089 CXX_FLAG_REORDER='' 49090 SHARED_LIBRARY_FLAGS="-dll" 49091 SET_EXECUTABLE_ORIGIN='' 49092 SET_SHARED_LIBRARY_ORIGIN='' 49093 SET_SHARED_LIBRARY_NAME='' 49094 SET_SHARED_LIBRARY_MAPFILE='-def:$1' 49095 fi 49096 49097 49098 49099 49100 49101 49102 49103 49104 49105 # The (cross) compiler is now configured, we can now test capabilities 49106 # of the target platform. 49107 49108 49109 49110 ############################################################################### 49111 # 49112 # Setup the opt flags for different compilers 49113 # and different operating systems. 49114 # 49115 49116 # FIXME: this was indirectly the old default, but just inherited. 49117 # if test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 49118 # C_FLAG_DEPS="-MMD -MF" 49119 # fi 49120 49121 # Generate make dependency files 49122 if test "x$TOOLCHAIN_TYPE" = xgcc; then 49123 C_FLAG_DEPS="-MMD -MF" 49124 elif test "x$TOOLCHAIN_TYPE" = xclang; then 49125 C_FLAG_DEPS="-MMD -MF" 49126 elif test "x$TOOLCHAIN_TYPE" = xsolstudio; then 49127 C_FLAG_DEPS="-xMMD -xMF" 49128 elif test "x$TOOLCHAIN_TYPE" = xxlc; then 49129 C_FLAG_DEPS="-qmakedep=gcc -MF" 49130 fi 49131 CXX_FLAG_DEPS="$C_FLAG_DEPS" 49132 49133 49134 49135 # Debug symbols 49136 if test "x$TOOLCHAIN_TYPE" = xgcc; then 49137 if test "x$OPENJDK_TARGET_CPU_BITS" = "x64" && test "x$DEBUG_LEVEL" = "xfastdebug"; then 49138 # reduce from default "-g2" option to save space 49139 CFLAGS_DEBUG_SYMBOLS="-g1" 49140 CXXFLAGS_DEBUG_SYMBOLS="-g1" 49141 else 49142 CFLAGS_DEBUG_SYMBOLS="-g" 49143 CXXFLAGS_DEBUG_SYMBOLS="-g" 49144 fi 49145 elif test "x$TOOLCHAIN_TYPE" = xclang; then 49146 CFLAGS_DEBUG_SYMBOLS="-g" 49147 CXXFLAGS_DEBUG_SYMBOLS="-g" 49148 elif test "x$TOOLCHAIN_TYPE" = xsolstudio; then 49149 CFLAGS_DEBUG_SYMBOLS="-g -xs" 49150 # -g0 enables debug symbols without disabling inlining. 49151 CXXFLAGS_DEBUG_SYMBOLS="-g0 -xs" 49152 elif test "x$TOOLCHAIN_TYPE" = xxlc; then 49153 CFLAGS_DEBUG_SYMBOLS="-g" 49154 CXXFLAGS_DEBUG_SYMBOLS="-g" 49155 elif test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 49156 CFLAGS_DEBUG_SYMBOLS="-Zi" 49157 CXXFLAGS_DEBUG_SYMBOLS="-Zi" 49158 fi 49159 49160 49161 49162 # Debug symbols for JVM_CFLAGS 49163 if test "x$TOOLCHAIN_TYPE" = xsolstudio; then 49164 JVM_CFLAGS_SYMBOLS="$JVM_CFLAGS_SYMBOLS -xs" 49165 if test "x$DEBUG_LEVEL" = xslowdebug; then 49166 JVM_CFLAGS_SYMBOLS="$JVM_CFLAGS_SYMBOLS -g" 49167 else 49168 # -g0 does not disable inlining, which -g does. 49169 JVM_CFLAGS_SYMBOLS="$JVM_CFLAGS_SYMBOLS -g0" 49170 fi 49171 elif test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 49172 JVM_CFLAGS_SYMBOLS="$JVM_CFLAGS_SYMBOLS -Z7 -d2Zi+" 49173 else 49174 JVM_CFLAGS_SYMBOLS="$JVM_CFLAGS_SYMBOLS -g" 49175 fi 49176 49177 49178 # bounds, memory and behavior checking options 49179 if test "x$TOOLCHAIN_TYPE" = xgcc; then 49180 case $DEBUG_LEVEL in 49181 release ) 49182 # no adjustment 49183 ;; 49184 fastdebug ) 49185 # no adjustment 49186 ;; 49187 slowdebug ) 49188 # FIXME: By adding this to C(XX)FLAGS_DEBUG_OPTIONS/JVM_CFLAGS_SYMBOLS it 49189 # get's added conditionally on whether we produce debug symbols or not. 49190 # This is most likely not really correct. 49191 49192 # Add runtime stack smashing and undefined behavior checks. 49193 # Not all versions of gcc support -fstack-protector 49194 STACK_PROTECTOR_CFLAG="-fstack-protector-all" 49195 49196 49197 49198 49199 49200 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 # Execute function body 49238 49239 49240 49241 49242 49243 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 # Execute function body 49287 49288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the C compiler supports \"$STACK_PROTECTOR_CFLAG -Werror\"" >&5 49289 $as_echo_n "checking if the C compiler supports \"$STACK_PROTECTOR_CFLAG -Werror\"... " >&6; } 49290 supports=yes 49291 49292 saved_cflags="$CFLAGS" 49293 CFLAGS="$CFLAGS $STACK_PROTECTOR_CFLAG -Werror" 49294 ac_ext=c 49295 ac_cpp='$CPP $CPPFLAGS' 49296 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 49297 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 49298 ac_compiler_gnu=$ac_cv_c_compiler_gnu 49299 49300 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 49301 /* end confdefs.h. */ 49302 int i; 49303 _ACEOF 49304 if ac_fn_c_try_compile "$LINENO"; then : 49305 49306 else 49307 supports=no 49308 fi 49309 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 49310 ac_ext=cpp 49311 ac_cpp='$CXXCPP $CPPFLAGS' 49312 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 49313 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 49314 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 49315 49316 CFLAGS="$saved_cflags" 49317 49318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supports" >&5 49319 $as_echo "$supports" >&6; } 49320 if test "x$supports" = "xyes" ; then 49321 : 49322 C_COMP_SUPPORTS="yes" 49323 else 49324 : 49325 C_COMP_SUPPORTS="no" 49326 fi 49327 49328 49329 49330 49331 49332 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 # Execute function body 49387 49388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the C++ compiler supports \"$STACK_PROTECTOR_CFLAG -Werror\"" >&5 49389 $as_echo_n "checking if the C++ compiler supports \"$STACK_PROTECTOR_CFLAG -Werror\"... " >&6; } 49390 supports=yes 49391 49392 saved_cxxflags="$CXXFLAGS" 49393 CXXFLAGS="$CXXFLAG $STACK_PROTECTOR_CFLAG -Werror" 49394 ac_ext=cpp 49395 ac_cpp='$CXXCPP $CPPFLAGS' 49396 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 49397 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 49398 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 49399 49400 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 49401 /* end confdefs.h. */ 49402 int i; 49403 _ACEOF 49404 if ac_fn_cxx_try_compile "$LINENO"; then : 49405 49406 else 49407 supports=no 49408 fi 49409 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 49410 ac_ext=cpp 49411 ac_cpp='$CXXCPP $CPPFLAGS' 49412 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 49413 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 49414 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 49415 49416 CXXFLAGS="$saved_cxxflags" 49417 49418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supports" >&5 49419 $as_echo "$supports" >&6; } 49420 if test "x$supports" = "xyes" ; then 49421 : 49422 CXX_COMP_SUPPORTS="yes" 49423 else 49424 : 49425 CXX_COMP_SUPPORTS="no" 49426 fi 49427 49428 49429 49430 49431 49432 49433 49434 49435 49436 49437 49438 49439 49440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if both compilers support \"$STACK_PROTECTOR_CFLAG -Werror\"" >&5 49441 $as_echo_n "checking if both compilers support \"$STACK_PROTECTOR_CFLAG -Werror\"... " >&6; } 49442 supports=no 49443 if test "x$C_COMP_SUPPORTS" = "xyes" -a "x$CXX_COMP_SUPPORTS" = "xyes"; then supports=yes; fi 49444 49445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supports" >&5 49446 $as_echo "$supports" >&6; } 49447 if test "x$supports" = "xyes" ; then 49448 : 49449 49450 else 49451 : 49452 STACK_PROTECTOR_CFLAG="" 49453 fi 49454 49455 49456 49457 49458 49459 49460 49461 CFLAGS_DEBUG_OPTIONS="$STACK_PROTECTOR_CFLAG --param ssp-buffer-size=1" 49462 CXXFLAGS_DEBUG_OPTIONS="$STACK_PROTECTOR_CFLAG --param ssp-buffer-size=1" 49463 if test "x$STACK_PROTECTOR_CFLAG" != x; then 49464 JVM_CFLAGS_SYMBOLS="$JVM_CFLAGS_SYMBOLS $STACK_PROTECTOR_CFLAG --param ssp-buffer-size=1" 49465 fi 49466 ;; 49467 esac 49468 fi 49469 49470 if test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 49471 if test "x$DEBUG_LEVEL" != xrelease; then 49472 if test "x$OPENJDK_TARGET_CPU" = xx86_64; then 49473 JVM_CFLAGS="$JVM_CFLAGS -homeparams" 49474 fi 49475 fi 49476 fi 49477 49478 # Optimization levels 49479 if test "x$TOOLCHAIN_TYPE" = xsolstudio; then 49480 CC_HIGHEST="$CC_HIGHEST -fns -fsimple -fsingle -xbuiltin=%all -xdepend -xrestrict -xlibmil" 49481 49482 if test "x$OPENJDK_TARGET_CPU_ARCH" = "xx86"; then 49483 # FIXME: seems we always set -xregs=no%frameptr; put it elsewhere more global? 49484 C_O_FLAG_HIGHEST_JVM="-xO4" 49485 C_O_FLAG_HIGHEST="-xO4 -Wu,-O4~yz $CC_HIGHEST -xalias_level=basic -xregs=no%frameptr" 49486 C_O_FLAG_HI="-xO4 -Wu,-O4~yz -xregs=no%frameptr" 49487 C_O_FLAG_NORM="-xO2 -Wu,-O2~yz -xregs=no%frameptr" 49488 C_O_FLAG_DEBUG="-xregs=no%frameptr" 49489 C_O_FLAG_DEBUG_JVM="" 49490 C_O_FLAG_NONE="-xregs=no%frameptr" 49491 CXX_O_FLAG_HIGHEST_JVM="-xO4" 49492 CXX_O_FLAG_HIGHEST="-xO4 -Qoption ube -O4~yz $CC_HIGHEST -xregs=no%frameptr" 49493 CXX_O_FLAG_HI="-xO4 -Qoption ube -O4~yz -xregs=no%frameptr" 49494 CXX_O_FLAG_NORM="-xO2 -Qoption ube -O2~yz -xregs=no%frameptr" 49495 CXX_O_FLAG_DEBUG="-xregs=no%frameptr" 49496 CXX_O_FLAG_DEBUG_JVM="" 49497 CXX_O_FLAG_NONE="-xregs=no%frameptr" 49498 if test "x$OPENJDK_TARGET_CPU_BITS" = "x32"; then 49499 C_O_FLAG_HIGHEST="$C_O_FLAG_HIGHEST -xchip=pentium" 49500 CXX_O_FLAG_HIGHEST="$CXX_O_FLAG_HIGHEST -xchip=pentium" 49501 fi 49502 elif test "x$OPENJDK_TARGET_CPU_ARCH" = "xsparc"; then 49503 C_O_FLAG_HIGHEST_JVM="-xO4" 49504 C_O_FLAG_HIGHEST="-xO4 -Wc,-Qrm-s -Wc,-Qiselect-T0 $CC_HIGHEST -xalias_level=basic -xprefetch=auto,explicit -xchip=ultra" 49505 C_O_FLAG_HI="-xO4 -Wc,-Qrm-s -Wc,-Qiselect-T0" 49506 C_O_FLAG_NORM="-xO2 -Wc,-Qrm-s -Wc,-Qiselect-T0" 49507 C_O_FLAG_DEBUG="" 49508 C_O_FLAG_DEBUG_JVM="" 49509 C_O_FLAG_NONE="" 49510 CXX_O_FLAG_HIGHEST_JVM="-xO4" 49511 CXX_O_FLAG_HIGHEST="-xO4 -Qoption cg -Qrm-s -Qoption cg -Qiselect-T0 $CC_HIGHEST -xprefetch=auto,explicit -xchip=ultra" 49512 CXX_O_FLAG_HI="-xO4 -Qoption cg -Qrm-s -Qoption cg -Qiselect-T0" 49513 CXX_O_FLAG_NORM="-xO2 -Qoption cg -Qrm-s -Qoption cg -Qiselect-T0" 49514 CXX_O_FLAG_DEBUG="" 49515 CXX_O_FLAG_DEBUG_JVM="" 49516 CXX_O_FLAG_NONE="" 49517 fi 49518 else 49519 # The remaining toolchains share opt flags between CC and CXX; 49520 # setup for C and duplicate afterwards. 49521 if test "x$TOOLCHAIN_TYPE" = xgcc; then 49522 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 49523 # On MacOSX we optimize for size, something 49524 # we should do for all platforms? 49525 C_O_FLAG_HIGHEST_JVM="-Os" 49526 C_O_FLAG_HIGHEST="-Os" 49527 C_O_FLAG_HI="-Os" 49528 C_O_FLAG_NORM="-Os" 49529 C_O_FLAG_SIZE="-Os" 49530 else 49531 C_O_FLAG_HIGHEST_JVM="-O3" 49532 C_O_FLAG_HIGHEST="-O3" 49533 C_O_FLAG_HI="-O3" 49534 C_O_FLAG_NORM="-O2" 49535 C_O_FLAG_SIZE="-Os" 49536 fi 49537 C_O_FLAG_DEBUG="-O0" 49538 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 49539 C_O_FLAG_DEBUG_JVM="" 49540 elif test "x$OPENJDK_TARGET_OS" = xlinux; then 49541 C_O_FLAG_DEBUG_JVM="-O0" 49542 fi 49543 C_O_FLAG_NONE="-O0" 49544 elif test "x$TOOLCHAIN_TYPE" = xclang; then 49545 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 49546 # On MacOSX we optimize for size, something 49547 # we should do for all platforms? 49548 C_O_FLAG_HIGHEST_JVM="-Os" 49549 C_O_FLAG_HIGHEST="-Os" 49550 C_O_FLAG_HI="-Os" 49551 C_O_FLAG_NORM="-Os" 49552 C_O_FLAG_SIZE="-Os" 49553 else 49554 C_O_FLAG_HIGHEST_JVM="-O3" 49555 C_O_FLAG_HIGHEST="-O3" 49556 C_O_FLAG_HI="-O3" 49557 C_O_FLAG_NORM="-O2" 49558 C_O_FLAG_SIZE="-Os" 49559 fi 49560 C_O_FLAG_DEBUG="-O0" 49561 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 49562 C_O_FLAG_DEBUG_JVM="" 49563 elif test "x$OPENJDK_TARGET_OS" = xlinux; then 49564 C_O_FLAG_DEBUG_JVM="-O0" 49565 fi 49566 C_O_FLAG_NONE="-O0" 49567 elif test "x$TOOLCHAIN_TYPE" = xxlc; then 49568 C_O_FLAG_HIGHEST_JVM="-O3 -qhot=level=1 -qinline -qinlglue" 49569 C_O_FLAG_HIGHEST="-O3 -qhot=level=1 -qinline -qinlglue" 49570 C_O_FLAG_HI="-O3 -qinline -qinlglue" 49571 C_O_FLAG_NORM="-O2" 49572 C_O_FLAG_DEBUG="-qnoopt" 49573 # FIXME: Value below not verified. 49574 C_O_FLAG_DEBUG_JVM="" 49575 C_O_FLAG_NONE="-qnoopt" 49576 elif test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 49577 C_O_FLAG_HIGHEST_JVM="-O2 -Oy-" 49578 C_O_FLAG_HIGHEST="-O2" 49579 C_O_FLAG_HI="-O1" 49580 C_O_FLAG_NORM="-O1" 49581 C_O_FLAG_DEBUG="-Od" 49582 C_O_FLAG_DEBUG_JVM="" 49583 C_O_FLAG_NONE="-Od" 49584 C_O_FLAG_SIZE="-Os" 49585 fi 49586 CXX_O_FLAG_HIGHEST_JVM="$C_O_FLAG_HIGHEST_JVM" 49587 CXX_O_FLAG_HIGHEST="$C_O_FLAG_HIGHEST" 49588 CXX_O_FLAG_HI="$C_O_FLAG_HI" 49589 CXX_O_FLAG_NORM="$C_O_FLAG_NORM" 49590 CXX_O_FLAG_DEBUG="$C_O_FLAG_DEBUG" 49591 CXX_O_FLAG_DEBUG_JVM="$C_O_FLAG_DEBUG_JVM" 49592 CXX_O_FLAG_NONE="$C_O_FLAG_NONE" 49593 CXX_O_FLAG_SIZE="$C_O_FLAG_SIZE" 49594 fi 49595 49596 # Adjust optimization flags according to debug level. 49597 case $DEBUG_LEVEL in 49598 release ) 49599 # no adjustment 49600 ;; 49601 fastdebug ) 49602 # Not quite so much optimization 49603 C_O_FLAG_HI="$C_O_FLAG_NORM" 49604 CXX_O_FLAG_HI="$CXX_O_FLAG_NORM" 49605 ;; 49606 slowdebug ) 49607 # Disable optimization 49608 C_O_FLAG_HIGHEST_JVM="$C_O_FLAG_DEBUG_JVM" 49609 C_O_FLAG_HIGHEST="$C_O_FLAG_DEBUG" 49610 C_O_FLAG_HI="$C_O_FLAG_DEBUG" 49611 C_O_FLAG_NORM="$C_O_FLAG_DEBUG" 49612 C_O_FLAG_SIZE="$C_O_FLAG_DEBUG" 49613 CXX_O_FLAG_HIGHEST_JVM="$CXX_O_FLAG_DEBUG_JVM" 49614 CXX_O_FLAG_HIGHEST="$CXX_O_FLAG_DEBUG" 49615 CXX_O_FLAG_HI="$CXX_O_FLAG_DEBUG" 49616 CXX_O_FLAG_NORM="$CXX_O_FLAG_DEBUG" 49617 CXX_O_FLAG_SIZE="$CXX_O_FLAG_DEBUG" 49618 ;; 49619 esac 49620 49621 49622 49623 49624 49625 49626 49627 49628 49629 49630 49631 49632 49633 49634 49635 49636 49637 49638 49639 # Special extras... 49640 if test "x$TOOLCHAIN_TYPE" = xsolstudio; then 49641 if test "x$OPENJDK_TARGET_CPU_ARCH" = "xsparc"; then 49642 CFLAGS_JDKLIB_EXTRA="${CFLAGS_JDKLIB_EXTRA} -xregs=no%appl" 49643 CXXFLAGS_JDKLIB_EXTRA="${CXXFLAGS_JDKLIB_EXTRA} -xregs=no%appl" 49644 fi 49645 CFLAGS_JDKLIB_EXTRA="${CFLAGS_JDKLIB_EXTRA} -errtags=yes -errfmt" 49646 CXXFLAGS_JDKLIB_EXTRA="${CXXFLAGS_JDKLIB_EXTRA} -errtags=yes -errfmt" 49647 elif test "x$TOOLCHAIN_TYPE" = xxlc; then 49648 CFLAGS_JDK="${CFLAGS_JDK} -qchars=signed -qfullpath -qsaveopt" 49649 CXXFLAGS_JDK="${CXXFLAGS_JDK} -qchars=signed -qfullpath -qsaveopt" 49650 elif test "x$TOOLCHAIN_TYPE" = xgcc; then 49651 CXXSTD_CXXFLAG="-std=gnu++98" 49652 49653 49654 49655 49656 49657 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 # Execute function body 49695 49696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the C++ compiler supports \"$CXXSTD_CXXFLAG -Werror\"" >&5 49697 $as_echo_n "checking if the C++ compiler supports \"$CXXSTD_CXXFLAG -Werror\"... " >&6; } 49698 supports=yes 49699 49700 saved_cxxflags="$CXXFLAGS" 49701 CXXFLAGS="$CXXFLAG $CXXSTD_CXXFLAG -Werror" 49702 ac_ext=cpp 49703 ac_cpp='$CXXCPP $CPPFLAGS' 49704 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 49705 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 49706 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 49707 49708 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 49709 /* end confdefs.h. */ 49710 int i; 49711 _ACEOF 49712 if ac_fn_cxx_try_compile "$LINENO"; then : 49713 49714 else 49715 supports=no 49716 fi 49717 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 49718 ac_ext=cpp 49719 ac_cpp='$CXXCPP $CPPFLAGS' 49720 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 49721 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 49722 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 49723 49724 CXXFLAGS="$saved_cxxflags" 49725 49726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supports" >&5 49727 $as_echo "$supports" >&6; } 49728 if test "x$supports" = "xyes" ; then 49729 : 49730 49731 else 49732 : 49733 CXXSTD_CXXFLAG="" 49734 fi 49735 49736 49737 49738 49739 49740 49741 49742 49743 49744 49745 49746 49747 CXXFLAGS_JDK="${CXXFLAGS_JDK} ${CXXSTD_CXXFLAG}" 49748 JVM_CFLAGS="${JVM_CFLAGS} ${CXXSTD_CXXFLAG}" 49749 49750 fi 49751 if test "x$OPENJDK_TARGET_OS" = xsolaris; then 49752 CFLAGS_JDK="${CFLAGS_JDK} -D__solaris__" 49753 CXXFLAGS_JDK="${CXXFLAGS_JDK} -D__solaris__" 49754 fi 49755 49756 if test "x$OPENJDK_TARGET_OS" = xsolaris; then 49757 CFLAGS_JDK="${CFLAGS_JDK} -D__solaris__" 49758 CXXFLAGS_JDK="${CXXFLAGS_JDK} -D__solaris__" 49759 fi 49760 49761 CFLAGS_JDK="${CFLAGS_JDK} ${EXTRA_CFLAGS}" 49762 CXXFLAGS_JDK="${CXXFLAGS_JDK} ${EXTRA_CXXFLAGS}" 49763 LDFLAGS_JDK="${LDFLAGS_JDK} ${EXTRA_LDFLAGS}" 49764 49765 ############################################################################### 49766 # 49767 # Now setup the CFLAGS and LDFLAGS for the JDK build. 49768 # Later we will also have CFLAGS and LDFLAGS for the hotspot subrepo build. 49769 # 49770 49771 # Setup compiler/platform specific flags into 49772 # CFLAGS_JDK - C Compiler flags 49773 # CXXFLAGS_JDK - C++ Compiler flags 49774 # COMMON_CCXXFLAGS_JDK - common to C and C++ 49775 if test "x$TOOLCHAIN_TYPE" = xgcc; then 49776 JVM_CFLAGS="$JVM_CFLAGS -D_GNU_SOURCE" 49777 JVM_CFLAGS="$JVM_CFLAGS -D_REENTRANT" 49778 JVM_CFLAGS="$JVM_CFLAGS -fcheck-new" 49779 if test "x$OPENJDK_TARGET_CPU" = xx86; then 49780 # Force compatibility with i586 on 32 bit intel platforms. 49781 COMMON_CCXXFLAGS="${COMMON_CCXXFLAGS} -march=i586" 49782 JVM_CFLAGS="$JVM_CFLAGS -march=i586" 49783 fi 49784 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS $COMMON_CCXXFLAGS_JDK -Wall -Wextra -Wno-unused -Wno-unused-parameter -Wformat=2 \ 49785 -pipe -D_GNU_SOURCE -D_REENTRANT -D_LARGEFILE64_SOURCE" 49786 case $OPENJDK_TARGET_CPU_ARCH in 49787 arm ) 49788 # on arm we don't prevent gcc to omit frame pointer but do prevent strict aliasing 49789 CFLAGS_JDK="${CFLAGS_JDK} -fno-strict-aliasing" 49790 ;; 49791 ppc ) 49792 # on ppc we don't prevent gcc to omit frame pointer but do prevent strict aliasing 49793 CFLAGS_JDK="${CFLAGS_JDK} -fno-strict-aliasing" 49794 ;; 49795 s390 ) 49796 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK -fno-omit-frame-pointer -mbackchain -march=z10" 49797 CFLAGS_JDK="${CFLAGS_JDK} -fno-strict-aliasing" 49798 ;; 49799 * ) 49800 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK -fno-omit-frame-pointer" 49801 CFLAGS_JDK="${CFLAGS_JDK} -fno-strict-aliasing" 49802 ;; 49803 esac 49804 49805 49806 49807 49808 49809 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 # Execute function body 49859 49860 # Need to assign to a variable since m4 is blocked from modifying parts in []. 49861 REFERENCE_VERSION=6 49862 49863 if [[ "$REFERENCE_VERSION" =~ (.*\.){4} ]] ; then 49864 as_fn_error $? "Internal error: Cannot compare to 6, only four parts (W.X.Y.Z) is supported" "$LINENO" 5 49865 fi 49866 49867 if [[ "$REFERENCE_VERSION" =~ [0-9]{6} ]] ; then 49868 as_fn_error $? "Internal error: Cannot compare to 6, only parts < 99999 is supported" "$LINENO" 5 49869 fi 49870 49871 # Version comparison method inspired by http://stackoverflow.com/a/24067243 49872 COMPARABLE_REFERENCE_VERSION=`$AWK -F. '{ printf("%05d%05d%05d%05d\n", $1, $2, $3, $4) }' <<< "$REFERENCE_VERSION"` 49873 49874 if test $COMPARABLE_ACTUAL_VERSION -ge $COMPARABLE_REFERENCE_VERSION ; then 49875 : 49876 49877 # These flags are required for GCC 6 builds as undefined behaviour in OpenJDK code 49878 # runs afoul of the more aggressive versions of these optimisations. 49879 # Notably, value range propagation now assumes that the this pointer of C++ 49880 # member functions is non-null. 49881 NO_DELETE_NULL_POINTER_CHECKS_CFLAG="-fno-delete-null-pointer-checks" 49882 NO_LIFETIME_DSE_CFLAG="-fno-lifetime-dse" 49883 { $as_echo "$as_me:${as_lineno-$LINENO}: GCC >= 6 detected; adding ${NO_DELETE_NULL_POINTER_CHECKS_CFLAG} and ${NO_LIFETIME_DSE_CFLAG}" >&5 49884 $as_echo "$as_me: GCC >= 6 detected; adding ${NO_DELETE_NULL_POINTER_CHECKS_CFLAG} and ${NO_LIFETIME_DSE_CFLAG}" >&6;} 49885 CFLAGS_JDK="$CFLAGS_JDK ${NO_DELETE_NULL_POINTER_CHECKS_CFLAG} ${NO_LIFETIME_DSE_CFLAG}" 49886 JVM_CFLAGS="$JVM_CFLAGS ${NO_DELETE_NULL_POINTER_CHECKS_CFLAG} ${NO_LIFETIME_DSE_CFLAG}" 49887 49888 else 49889 : 49890 49891 fi 49892 49893 49894 49895 49896 49897 49898 49899 49900 49901 49902 49903 49904 49905 49906 elif test "x$TOOLCHAIN_TYPE" = xclang; then 49907 JVM_CFLAGS="$JVM_CFLAGS -D_GNU_SOURCE" 49908 49909 # Restrict the debug information created by Clang to avoid 49910 # too big object files and speed the build up a little bit 49911 # (see http://llvm.org/bugs/show_bug.cgi?id=7554) 49912 JVM_CFLAGS="$JVM_CFLAGS -flimit-debug-info" 49913 if test "x$OPENJDK_TARGET_OS" = xlinux; then 49914 if test "x$OPENJDK_TARGET_CPU" = xx86; then 49915 # Force compatibility with i586 on 32 bit intel platforms. 49916 COMMON_CCXXFLAGS="${COMMON_CCXXFLAGS} -march=i586" 49917 JVM_CFLAGS="$JVM_CFLAGS -march=i586" 49918 fi 49919 JVM_CFLAGS="$JVM_CFLAGS -Wno-sometimes-uninitialized" 49920 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS $COMMON_CCXXFLAGS_JDK -Wall -Wextra -Wno-unused -Wno-unused-parameter -Wformat=2 \ 49921 -pipe -D_GNU_SOURCE -D_REENTRANT -D_LARGEFILE64_SOURCE" 49922 case $OPENJDK_TARGET_CPU_ARCH in 49923 ppc ) 49924 # on ppc we don't prevent gcc to omit frame pointer but do prevent strict aliasing 49925 CFLAGS_JDK="${CFLAGS_JDK} -fno-strict-aliasing" 49926 ;; 49927 * ) 49928 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK -fno-omit-frame-pointer" 49929 CFLAGS_JDK="${CFLAGS_JDK} -fno-strict-aliasing" 49930 ;; 49931 esac 49932 fi 49933 elif test "x$TOOLCHAIN_TYPE" = xsolstudio; then 49934 JVM_CFLAGS="$JVM_CFLAGS -DSPARC_WORKS" 49935 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS $COMMON_CCXXFLAGS_JDK -DTRACING -DMACRO_MEMSYS_OPS -DBREAKPTS" 49936 if test "x$OPENJDK_TARGET_CPU_ARCH" = xx86; then 49937 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK -DcpuIntel -Di586 -D$OPENJDK_TARGET_CPU_LEGACY_LIB" 49938 fi 49939 49940 CFLAGS_JDK="$CFLAGS_JDK -xc99=%none -xCC -errshort=tags -Xa -v -mt -W0,-noglobal" 49941 CXXFLAGS_JDK="$CXXFLAGS_JDK -errtags=yes +w -mt -features=no%except -DCC_NOEX -norunpath -xnolib" 49942 elif test "x$TOOLCHAIN_TYPE" = xxlc; then 49943 JVM_CFLAGS="$JVM_CFLAGS -D_REENTRANT -D__STDC_FORMAT_MACROS" 49944 CFLAGS_JDK="$CFLAGS_JDK -D_GNU_SOURCE -D_REENTRANT -D_LARGEFILE64_SOURCE -DSTDC" 49945 CXXFLAGS_JDK="$CXXFLAGS_JDK -D_GNU_SOURCE -D_REENTRANT -D_LARGEFILE64_SOURCE -DSTDC" 49946 elif test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 49947 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS $COMMON_CCXXFLAGS_JDK \ 49948 -MD -Zc:wchar_t- -W3 -wd4800 \ 49949 -DWIN32_LEAN_AND_MEAN \ 49950 -D_CRT_SECURE_NO_DEPRECATE -D_CRT_NONSTDC_NO_DEPRECATE \ 49951 -D_WINSOCK_DEPRECATED_NO_WARNINGS \ 49952 -DWIN32 -DIAL" 49953 if test "x$OPENJDK_TARGET_CPU" = xx86_64; then 49954 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK -D_AMD64_ -Damd64" 49955 else 49956 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK -D_X86_ -Dx86" 49957 fi 49958 # If building with Visual Studio 2010, we can still use _STATIC_CPPLIB to 49959 # avoid bundling msvcpNNN.dll. Doesn't work with newer versions of visual 49960 # studio. 49961 if test "x$TOOLCHAIN_VERSION" = "x2010"; then 49962 STATIC_CPPLIB_FLAGS="-D_STATIC_CPPLIB -D_DISABLE_DEPRECATE_STATIC_CPPLIB" 49963 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK $STATIC_CPPLIB_FLAGS" 49964 JVM_CFLAGS="$JVM_CFLAGS $STATIC_CPPLIB_FLAGS" 49965 fi 49966 fi 49967 49968 ############################################################################### 49969 49970 # Adjust flags according to debug level. 49971 case $DEBUG_LEVEL in 49972 fastdebug | slowdebug ) 49973 CFLAGS_JDK="$CFLAGS_JDK $CFLAGS_DEBUG_SYMBOLS $CFLAGS_DEBUG_OPTIONS" 49974 CXXFLAGS_JDK="$CXXFLAGS_JDK $CXXFLAGS_DEBUG_SYMBOLS $CXXFLAGS_DEBUG_OPTIONS" 49975 ;; 49976 release ) 49977 ;; 49978 * ) 49979 as_fn_error $? "Unrecognized \$DEBUG_LEVEL: $DEBUG_LEVEL" "$LINENO" 5 49980 ;; 49981 esac 49982 49983 # Set some common defines. These works for all compilers, but assume 49984 # -D is universally accepted. 49985 49986 # Setup endianness 49987 if test "x$OPENJDK_TARGET_CPU_ENDIAN" = xlittle; then 49988 # The macro _LITTLE_ENDIAN needs to be defined the same to avoid the 49989 # Sun C compiler warning message: warning: macro redefined: _LITTLE_ENDIAN 49990 # (The Solaris X86 system defines this in file /usr/include/sys/isa_defs.h). 49991 # Note: -Dmacro is the same as #define macro 1 49992 # -Dmacro= is the same as #define macro 49993 if test "x$OPENJDK_TARGET_OS" = xsolaris; then 49994 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK -D_LITTLE_ENDIAN=" 49995 else 49996 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK -D_LITTLE_ENDIAN" 49997 fi 49998 else 49999 # Same goes for _BIG_ENDIAN. Do we really need to set *ENDIAN on Solaris if they 50000 # are defined in the system? 50001 if test "x$OPENJDK_TARGET_OS" = xsolaris; then 50002 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK -D_BIG_ENDIAN=" 50003 else 50004 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK -D_BIG_ENDIAN" 50005 fi 50006 fi 50007 50008 # Setup target OS define. Use OS target name but in upper case. 50009 OPENJDK_TARGET_OS_UPPERCASE=`$ECHO $OPENJDK_TARGET_OS | $TR 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` 50010 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK -D$OPENJDK_TARGET_OS_UPPERCASE" 50011 50012 # Setup target CPU 50013 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK \ 50014 $OPENJDK_TARGET_ADD_LP64 \ 50015 -DARCH='\"$OPENJDK_TARGET_CPU_LEGACY\"' -D$OPENJDK_TARGET_CPU_LEGACY" 50016 50017 # Setup debug/release defines 50018 if test "x$DEBUG_LEVEL" = xrelease; then 50019 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK -DNDEBUG" 50020 if test "x$OPENJDK_TARGET_OS" = xsolaris; then 50021 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK -DTRIMMED" 50022 fi 50023 else 50024 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK -DDEBUG" 50025 fi 50026 50027 # Set some additional per-OS defines. 50028 if test "x$OPENJDK_TARGET_OS" = xlinux; then 50029 JVM_CFLAGS="$JVM_CFLAGS -DLINUX" 50030 JVM_CFLAGS="$JVM_CFLAGS -pipe $PICFLAG -fno-rtti -fno-exceptions \ 50031 -fvisibility=hidden -fno-strict-aliasing -fno-omit-frame-pointer" 50032 elif test "x$OPENJDK_TARGET_OS" = xsolaris; then 50033 JVM_CFLAGS="$JVM_CFLAGS -DSOLARIS" 50034 JVM_CFLAGS="$JVM_CFLAGS -template=no%extdef -features=no%split_init \ 50035 -D_Crun_inline_placement -library=%none $PICFLAG -mt -features=no%except" 50036 elif test "x$OPENJDK_TARGET_OS" = xmacosx; then 50037 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK -D_ALLBSD_SOURCE -D_DARWIN_UNLIMITED_SELECT" 50038 JVM_CFLAGS="$JVM_CFLAGS -D_ALLBSD_SOURCE" 50039 JVM_CFLAGS="$JVM_CFLAGS -D_DARWIN_C_SOURCE -D_XOPEN_SOURCE" 50040 JVM_CFLAGS="$JVM_CFLAGS -fno-rtti -fno-exceptions -fvisibility=hidden \ 50041 -mno-omit-leaf-frame-pointer -mstack-alignment=16 -pipe -fno-strict-aliasing \ 50042 -DMAC_OS_X_VERSION_MAX_ALLOWED=1070 -mmacosx-version-min=10.7.0 \ 50043 -fno-omit-frame-pointer" 50044 elif test "x$OPENJDK_TARGET_OS" = xaix; then 50045 JVM_CFLAGS="$JVM_CFLAGS -DAIX" 50046 # We may need '-qminimaltoc' or '-qpic=large -bbigtoc' if the TOC overflows. 50047 JVM_CFLAGS="$JVM_CFLAGS -qtune=balanced \ 50048 -qalias=noansi -qstrict -qtls=default -qlanglvl=c99vla \ 50049 -qlanglvl=noredefmac -qnortti -qnoeh -qignerrno" 50050 elif test "x$OPENJDK_TARGET_OS" = xbsd; then 50051 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK -D_ALLBSD_SOURCE" 50052 elif test "x$OPENJDK_TARGET_OS" = xwindows; then 50053 JVM_CFLAGS="$JVM_CFLAGS -D_WINDOWS -DWIN32 -D_JNI_IMPLEMENTATION_" 50054 JVM_CFLAGS="$JVM_CFLAGS -nologo -W3 -MD -MP" 50055 fi 50056 50057 # Set some additional per-CPU defines. 50058 if test "x$OPENJDK_TARGET_OS-$OPENJDK_TARGET_CPU" = xwindows-x86; then 50059 JVM_CFLAGS="$JVM_CFLAGS -arch:IA32" 50060 elif test "x$OPENJDK_TARGET_CPU" = xsparcv9; then 50061 JVM_CFLAGS="$JVM_CFLAGS -xarch=sparc" 50062 elif test "x$OPENJDK_TARGET_CPU" = xppc64; then 50063 if test "x$OPENJDK_TARGET_OS" = xlinux; then 50064 JVM_CFLAGS="$JVM_CFLAGS -minsert-sched-nops=regroup_exact -mno-multiple -mno-string" 50065 # fixes `relocation truncated to fit' error for gcc 4.1. 50066 JVM_CFLAGS="$JVM_CFLAGS -mminimal-toc" 50067 # Use ppc64 instructions, but schedule for power5 50068 JVM_CFLAGS="$JVM_CFLAGS -mcpu=powerpc64 -mtune=power5" 50069 elif test "x$OPENJDK_TARGET_OS" = xaix; then 50070 JVM_CFLAGS="$JVM_CFLAGS -qarch=ppc64" 50071 fi 50072 elif test "x$OPENJDK_TARGET_CPU" = xppc64le; then 50073 if test "x$OPENJDK_TARGET_OS" = xlinux; then 50074 JVM_CFLAGS="$JVM_CFLAGS -minsert-sched-nops=regroup_exact -mno-multiple -mno-string" 50075 # Little endian machine uses ELFv2 ABI. 50076 JVM_CFLAGS="$JVM_CFLAGS -DABI_ELFv2" 50077 # Use Power8, this is the first CPU to support PPC64 LE with ELFv2 ABI. 50078 JVM_CFLAGS="$JVM_CFLAGS -mcpu=power8 -mtune=power8" 50079 fi 50080 elif test "x$OPENJDK_TARGET_CPU" = xs390x; then 50081 if test "x$OPENJDK_TARGET_OS" = xlinux; then 50082 JVM_CFLAGS="$JVM_CFLAGS -mbackchain -march=z10" 50083 fi 50084 fi 50085 50086 if test "x$OPENJDK_TARGET_CPU_ENDIAN" = xlittle; then 50087 JVM_CFLAGS="$JVM_CFLAGS -DVM_LITTLE_ENDIAN" 50088 fi 50089 50090 if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then 50091 if test "x$OPENJDK_TARGET_OS" != xsolaris && test "x$OPENJDK_TARGET_OS" != xaix; then 50092 # Solaris does not have _LP64=1 in the old build. 50093 # xlc on AIX defines _LP64=1 by default and issues a warning if we redefine it. 50094 JVM_CFLAGS="$JVM_CFLAGS -D_LP64=1" 50095 fi 50096 fi 50097 50098 # Set JVM_CFLAGS warning handling 50099 if test "x$OPENJDK_TARGET_OS" = xlinux; then 50100 JVM_CFLAGS="$JVM_CFLAGS -Wpointer-arith -Wsign-compare -Wunused-function \ 50101 -Wunused-value -Woverloaded-virtual" 50102 50103 if test "x$TOOLCHAIN_TYPE" = xgcc; then 50104 50105 50106 50107 50108 50109 50110 50111 50112 50113 50114 50115 50116 50117 50118 50119 50120 50121 50122 50123 50124 50125 50126 50127 50128 50129 50130 50131 50132 50133 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 # Execute function body 50159 50160 # Need to assign to a variable since m4 is blocked from modifying parts in []. 50161 REFERENCE_VERSION=4.8 50162 50163 if [[ "$REFERENCE_VERSION" =~ (.*\.){4} ]] ; then 50164 as_fn_error $? "Internal error: Cannot compare to 4.8, only four parts (W.X.Y.Z) is supported" "$LINENO" 5 50165 fi 50166 50167 if [[ "$REFERENCE_VERSION" =~ [0-9]{6} ]] ; then 50168 as_fn_error $? "Internal error: Cannot compare to 4.8, only parts < 99999 is supported" "$LINENO" 5 50169 fi 50170 50171 # Version comparison method inspired by http://stackoverflow.com/a/24067243 50172 COMPARABLE_REFERENCE_VERSION=`$AWK -F. '{ printf("%05d%05d%05d%05d\n", $1, $2, $3, $4) }' <<< "$REFERENCE_VERSION"` 50173 50174 if test $COMPARABLE_ACTUAL_VERSION -ge $COMPARABLE_REFERENCE_VERSION ; then 50175 : 50176 50177 # These flags either do not work or give spurious warnings prior to gcc 4.8. 50178 JVM_CFLAGS="$JVM_CFLAGS -Wno-format-zero-length -Wtype-limits -Wuninitialized" 50179 50180 50181 else 50182 : 50183 50184 fi 50185 50186 50187 50188 50189 50190 50191 50192 50193 50194 50195 50196 50197 50198 50199 fi 50200 if ! [[ " $JVM_VARIANTS " =~ " zero " ]] && ! [[ " $JVM_VARIANTS " =~ " zeroshark " ]] ; then 50201 # Non-zero builds have stricter warnings 50202 JVM_CFLAGS="$JVM_CFLAGS -Wreturn-type -Wundef -Wformat=2" 50203 else 50204 if test "x$TOOLCHAIN_TYPE" = xclang; then 50205 # Some versions of llvm do not like -Wundef 50206 JVM_CFLAGS="$JVM_CFLAGS -Wno-undef" 50207 fi 50208 fi 50209 elif test "x$OPENJDK_TARGET_OS" = xmacosx; then 50210 JVM_CFLAGS="$JVM_CFLAGS -Wno-deprecated -Wpointer-arith \ 50211 -Wsign-compare -Wundef -Wunused-function -Wformat=2" 50212 fi 50213 50214 # Additional macosx handling 50215 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 50216 # Setting these parameters makes it an error to link to macosx APIs that are 50217 # newer than the given OS version and makes the linked binaries compatible 50218 # even if built on a newer version of the OS. 50219 # The expected format is X.Y.Z 50220 MACOSX_VERSION_MIN=10.7.0 50221 50222 50223 # The macro takes the version with no dots, ex: 1070 50224 # Let the flags variables get resolved in make for easier override on make 50225 # command line. 50226 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK -DMAC_OS_X_VERSION_MAX_ALLOWED=\$(subst .,,\$(MACOSX_VERSION_MIN)) -mmacosx-version-min=\$(MACOSX_VERSION_MIN)" 50227 LDFLAGS_JDK="$LDFLAGS_JDK -mmacosx-version-min=\$(MACOSX_VERSION_MIN)" 50228 fi 50229 50230 # Setup some hard coded includes 50231 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK \ 50232 -I\$(SUPPORT_OUTPUTDIR)/modules_include/java.base \ 50233 -I${JDK_TOPDIR}/src/java.base/share/native/include \ 50234 -I${JDK_TOPDIR}/src/java.base/$OPENJDK_TARGET_OS/native/include \ 50235 -I${JDK_TOPDIR}/src/java.base/$OPENJDK_TARGET_OS_TYPE/native/include \ 50236 -I${JDK_TOPDIR}/src/java.base/share/native/libjava \ 50237 -I${JDK_TOPDIR}/src/java.base/$OPENJDK_TARGET_OS_TYPE/native/libjava" 50238 50239 # The shared libraries are compiled using the picflag. 50240 CFLAGS_JDKLIB="$COMMON_CCXXFLAGS_JDK \ 50241 $CFLAGS_JDK $EXTRA_CFLAGS_JDK $PICFLAG $CFLAGS_JDKLIB_EXTRA" 50242 CXXFLAGS_JDKLIB="$COMMON_CCXXFLAGS_JDK \ 50243 $CXXFLAGS_JDK $EXTRA_CXXFLAGS_JDK $PICFLAG $CXXFLAGS_JDKLIB_EXTRA" 50244 50245 # Executable flags 50246 CFLAGS_JDKEXE="$COMMON_CCXXFLAGS_JDK $CFLAGS_JDK $EXTRA_CFLAGS_JDK" 50247 CXXFLAGS_JDKEXE="$COMMON_CCXXFLAGS_JDK $CXXFLAGS_JDK $EXTRA_CXXFLAGS_JDK" 50248 50249 50250 50251 50252 50253 50254 # Setup LDFLAGS et al. 50255 # 50256 50257 if test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 50258 LDFLAGS_MICROSOFT="-nologo -opt:ref" 50259 LDFLAGS_JDK="$LDFLAGS_JDK $LDFLAGS_MICROSOFT -incremental:no" 50260 JVM_LDFLAGS="$JVM_LDFLAGS $LDFLAGS_MICROSOFT -opt:icf,8 -subsystem:windows -base:0x8000000" 50261 if test "x$OPENJDK_TARGET_CPU_BITS" = "x32"; then 50262 LDFLAGS_SAFESH="-safeseh" 50263 LDFLAGS_JDK="$LDFLAGS_JDK $LDFLAGS_SAFESH" 50264 JVM_LDFLAGS="$JVM_LDFLAGS $LDFLAGS_SAFESH" 50265 # NOTE: Old build added -machine. Probably not needed. 50266 JVM_LDFLAGS="$JVM_LDFLAGS -machine:I386" 50267 else 50268 JVM_LDFLAGS="$JVM_LDFLAGS -machine:AMD64" 50269 fi 50270 elif test "x$TOOLCHAIN_TYPE" = xclang; then 50271 JVM_LDFLAGS="$JVM_LDFLAGS -mno-omit-leaf-frame-pointer -mstack-alignment=16 -stdlib=libstdc++ -fPIC" 50272 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 50273 # FIXME: We should really generalize SET_SHARED_LIBRARY_ORIGIN instead. 50274 JVM_LDFLAGS="$JVM_LDFLAGS -Wl,-rpath,@loader_path/. -Wl,-rpath,@loader_path/.." 50275 fi 50276 elif test "x$TOOLCHAIN_TYPE" = xgcc; then 50277 # If this is a --hash-style=gnu system, use --hash-style=both, why? 50278 # We have previously set HAS_GNU_HASH if this is the case 50279 if test -n "$HAS_GNU_HASH"; then 50280 LDFLAGS_HASH_STYLE="-Wl,--hash-style=both" 50281 LDFLAGS_JDK="${LDFLAGS_JDK} $LDFLAGS_HASH_STYLE" 50282 JVM_LDFLAGS="$JVM_LDFLAGS $LDFLAGS_HASH_STYLE" 50283 fi 50284 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 50285 JVM_LDFLAGS="$JVM_LDFLAGS -Wl,-rpath,@loader_path/. -Wl,-rpath,@loader_path/.." 50286 fi 50287 if test "x$OPENJDK_TARGET_OS" = xlinux; then 50288 # And since we now know that the linker is gnu, then add -z defs, to forbid 50289 # undefined symbols in object files. 50290 LDFLAGS_NO_UNDEF_SYM="-Wl,-z,defs" 50291 LDFLAGS_JDK="${LDFLAGS_JDK} $LDFLAGS_NO_UNDEF_SYM" 50292 JVM_LDFLAGS="$JVM_LDFLAGS $LDFLAGS_NO_UNDEF_SYM" 50293 LDFLAGS_NO_EXEC_STACK="-Wl,-z,noexecstack" 50294 JVM_LDFLAGS="$JVM_LDFLAGS $LDFLAGS_NO_EXEC_STACK" 50295 if test "x$OPENJDK_TARGET_CPU" = xx86; then 50296 JVM_LDFLAGS="$JVM_LDFLAGS -march=i586" 50297 fi 50298 case $DEBUG_LEVEL in 50299 release ) 50300 # tell linker to optimize libraries. 50301 # Should this be supplied to the OSS linker as well? 50302 LDFLAGS_DEBUGLEVEL_release="-Wl,-O1" 50303 LDFLAGS_JDK="${LDFLAGS_JDK} $LDFLAGS_DEBUGLEVEL_release" 50304 JVM_LDFLAGS="$JVM_LDFLAGS $LDFLAGS_DEBUGLEVEL_release" 50305 if test "x$HAS_LINKER_RELRO" = "xtrue"; then 50306 JVM_LDFLAGS="$JVM_LDFLAGS $LINKER_RELRO_FLAG" 50307 fi 50308 ;; 50309 slowdebug ) 50310 # Hotspot always let the linker optimize 50311 JVM_LDFLAGS="$JVM_LDFLAGS -Wl,-O1" 50312 if test "x$HAS_LINKER_NOW" = "xtrue"; then 50313 # do relocations at load 50314 LDFLAGS_JDK="$LDFLAGS_JDK $LINKER_NOW_FLAG" 50315 LDFLAGS_CXX_JDK="$LDFLAGS_CXX_JDK $LINKER_NOW_FLAG" 50316 JVM_LDFLAGS="$JVM_LDFLAGS $LINKER_NOW_FLAG" 50317 fi 50318 if test "x$HAS_LINKER_RELRO" = "xtrue"; then 50319 # mark relocations read only 50320 LDFLAGS_JDK="$LDFLAGS_JDK $LINKER_RELRO_FLAG" 50321 LDFLAGS_CXX_JDK="$LDFLAGS_CXX_JDK $LINKER_RELRO_FLAG" 50322 JVM_LDFLAGS="$JVM_LDFLAGS $LINKER_RELRO_FLAG" 50323 fi 50324 ;; 50325 fastdebug ) 50326 # Hotspot always let the linker optimize 50327 JVM_LDFLAGS="$JVM_LDFLAGS -Wl,-O1" 50328 if test "x$HAS_LINKER_RELRO" = "xtrue"; then 50329 # mark relocations read only 50330 LDFLAGS_JDK="$LDFLAGS_JDK $LINKER_RELRO_FLAG" 50331 LDFLAGS_CXX_JDK="$LDFLAGS_CXX_JDK $LINKER_RELRO_FLAG" 50332 JVM_LDFLAGS="$JVM_LDFLAGS $LINKER_RELRO_FLAG" 50333 fi 50334 ;; 50335 * ) 50336 as_fn_error $? "Unrecognized \$DEBUG_LEVEL: $DEBUG_LEVEL" "$LINENO" 5 50337 ;; 50338 esac 50339 fi 50340 elif test "x$TOOLCHAIN_TYPE" = xsolstudio; then 50341 LDFLAGS_SOLSTUDIO="-Wl,-z,defs" 50342 LDFLAGS_JDK="$LDFLAGS_JDK $LDFLAGS_SOLSTUDIO -ztext" 50343 LDFLAGS_CXX_SOLSTUDIO="-norunpath" 50344 LDFLAGS_CXX_JDK="$LDFLAGS_CXX_JDK $LDFLAGS_CXX_SOLSTUDIO -xnolib" 50345 JVM_LDFLAGS="$JVM_LDFLAGS $LDFLAGS_SOLSTUDIO -library=%none -mt $LDFLAGS_CXX_SOLSTUDIO -z noversion" 50346 if test "x$OPENJDK_TARGET_CPU_ARCH" = "xsparc"; then 50347 JVM_LDFLAGS="$JVM_LDFLAGS -xarch=sparc" 50348 fi 50349 elif test "x$TOOLCHAIN_TYPE" = xxlc; then 50350 LDFLAGS_XLC="-b64 -brtl -bnolibpath -bexpall -bernotok" 50351 LDFLAGS_JDK="${LDFLAGS_JDK} $LDFLAGS_XLC" 50352 JVM_LDFLAGS="$JVM_LDFLAGS $LDFLAGS_XLC" 50353 fi 50354 50355 # Customize LDFLAGS for executables 50356 50357 LDFLAGS_JDKEXE="${LDFLAGS_JDK}" 50358 50359 if test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 50360 if test "x$OPENJDK_TARGET_CPU_BITS" = "x64"; then 50361 LDFLAGS_STACK_SIZE=1048576 50362 else 50363 LDFLAGS_STACK_SIZE=327680 50364 fi 50365 LDFLAGS_JDKEXE="${LDFLAGS_JDKEXE} /STACK:$LDFLAGS_STACK_SIZE" 50366 elif test "x$OPENJDK_TARGET_OS" = xlinux; then 50367 LDFLAGS_JDKEXE="$LDFLAGS_JDKEXE -Wl,--allow-shlib-undefined" 50368 fi 50369 50370 LDFLAGS_JDKEXE="${LDFLAGS_JDKEXE} ${EXTRA_LDFLAGS_JDK}" 50371 50372 # Customize LDFLAGS for libs 50373 LDFLAGS_JDKLIB="${LDFLAGS_JDK}" 50374 50375 LDFLAGS_JDKLIB="${LDFLAGS_JDKLIB} ${SHARED_LIBRARY_FLAGS}" 50376 if test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 50377 JAVA_BASE_LDFLAGS="${JAVA_BASE_LDFLAGS} \ 50378 -libpath:${OUTPUT_ROOT}/support/modules_libs/java.base" 50379 JDKLIB_LIBS="" 50380 else 50381 JAVA_BASE_LDFLAGS="${JAVA_BASE_LDFLAGS} \ 50382 -L\$(SUPPORT_OUTPUTDIR)/modules_libs/java.base\$(OPENJDK_TARGET_CPU_LIBDIR)" 50383 50384 if test "xTARGET" = "xTARGET"; then 50385 # On some platforms (mac) the linker warns about non existing -L dirs. 50386 # Add server first if available. Linking aginst client does not always produce the same results. 50387 # Only add client/minimal dir if client/minimal is being built. 50388 # Default to server for other variants. 50389 if [[ " $JVM_VARIANTS " =~ " server " ]] ; then 50390 JAVA_BASE_LDFLAGS="${JAVA_BASE_LDFLAGS} -L\$(SUPPORT_OUTPUTDIR)/modules_libs/java.base\$(OPENJDK_TARGET_CPU_LIBDIR)/server" 50391 elif [[ " $JVM_VARIANTS " =~ " client " ]] ; then 50392 JAVA_BASE_LDFLAGS="${JAVA_BASE_LDFLAGS} -L\$(SUPPORT_OUTPUTDIR)/modules_libs/java.base\$(OPENJDK_TARGET_CPU_LIBDIR)/client" 50393 elif [[ " $JVM_VARIANTS " =~ " minimal " ]] ; then 50394 JAVA_BASE_LDFLAGS="${JAVA_BASE_LDFLAGS} -L\$(SUPPORT_OUTPUTDIR)/modules_libs/java.base\$(OPENJDK_TARGET_CPU_LIBDIR)/minimal" 50395 else 50396 JAVA_BASE_LDFLAGS="${JAVA_BASE_LDFLAGS} -L\$(SUPPORT_OUTPUTDIR)/modules_libs/java.base\$(OPENJDK_TARGET_CPU_LIBDIR)/server" 50397 fi 50398 elif test "xTARGET" = "xBUILD"; then 50399 # When building a buildjdk, it's always only the server variant 50400 JAVA_BASE_LDFLAGS="${JAVA_BASE_LDFLAGS} \ 50401 -L\$(SUPPORT_OUTPUTDIR)/modules_libs/java.base\$(OPENJDK_TARGET_CPU_LIBDIR)/server" 50402 fi 50403 50404 JDKLIB_LIBS="-ljava -ljvm" 50405 if test "x$TOOLCHAIN_TYPE" = xsolstudio; then 50406 JDKLIB_LIBS="$JDKLIB_LIBS -lc" 50407 fi 50408 50409 fi 50410 50411 LDFLAGS_JDKLIB="${LDFLAGS_JDKLIB} ${JAVA_BASE_LDFLAGS}" 50412 50413 # Set JVM_LIBS (per os) 50414 if test "x$OPENJDK_TARGET_OS" = xlinux; then 50415 JVM_LIBS="$JVM_LIBS -lm -ldl -lpthread" 50416 elif test "x$OPENJDK_TARGET_OS" = xsolaris; then 50417 # FIXME: This hard-coded path is not really proper. 50418 if test "x$OPENJDK_TARGET_CPU" = xx86_64; then 50419 SOLARIS_LIBM_LIBS="/usr/lib/amd64/libm.so.1" 50420 elif test "x$OPENJDK_TARGET_CPU" = xsparcv9; then 50421 SOLARIS_LIBM_LIBS="/usr/lib/sparcv9/libm.so.1" 50422 fi 50423 JVM_LIBS="$JVM_LIBS -lsocket -lsched -ldl $SOLARIS_LIBM_LIBS -lCrun \ 50424 -lthread -ldoor -lc -ldemangle -lnsl -lkstat -lrt" 50425 elif test "x$OPENJDK_TARGET_OS" = xmacosx; then 50426 JVM_LIBS="$JVM_LIBS -lm" 50427 elif test "x$OPENJDK_TARGET_OS" = xaix; then 50428 JVM_LIBS="$JVM_LIBS -Wl,-lC_r -lm -ldl -lpthread" 50429 elif test "x$OPENJDK_TARGET_OS" = xbsd; then 50430 JVM_LIBS="$JVM_LIBS -lm" 50431 elif test "x$OPENJDK_TARGET_OS" = xwindows; then 50432 JVM_LIBS="$JVM_LIBS kernel32.lib user32.lib gdi32.lib winspool.lib \ 50433 comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib \ 50434 wsock32.lib winmm.lib version.lib psapi.lib" 50435 fi 50436 50437 # Set JVM_ASFLAGS 50438 if test "x$OPENJDK_TARGET_OS" = xlinux; then 50439 if test "x$OPENJDK_TARGET_CPU" = xx86; then 50440 JVM_ASFLAGS="$JVM_ASFLAGS -march=i586" 50441 fi 50442 elif test "x$OPENJDK_TARGET_OS" = xmacosx; then 50443 JVM_ASFLAGS="$JVM_ASFLAGS -x assembler-with-cpp -mno-omit-leaf-frame-pointer -mstack-alignment=16" 50444 fi 50445 50446 LDFLAGS_JDKLIB="${LDFLAGS_JDKLIB} ${EXTRA_LDFLAGS_JDK}" 50447 50448 50449 50450 50451 50452 50453 50454 50455 50456 50457 50458 50459 50460 50461 50462 # Special extras... 50463 if test "x$TOOLCHAIN_TYPE" = xsolstudio; then 50464 if test "x$OPENJDK_BUILD_CPU_ARCH" = "xsparc"; then 50465 OPENJDK_BUILD_CFLAGS_JDKLIB_EXTRA="${OPENJDK_BUILD_CFLAGS_JDKLIB_EXTRA} -xregs=no%appl" 50466 OPENJDK_BUILD_CXXFLAGS_JDKLIB_EXTRA="${OPENJDK_BUILD_CXXFLAGS_JDKLIB_EXTRA} -xregs=no%appl" 50467 fi 50468 OPENJDK_BUILD_CFLAGS_JDKLIB_EXTRA="${OPENJDK_BUILD_CFLAGS_JDKLIB_EXTRA} -errtags=yes -errfmt" 50469 OPENJDK_BUILD_CXXFLAGS_JDKLIB_EXTRA="${OPENJDK_BUILD_CXXFLAGS_JDKLIB_EXTRA} -errtags=yes -errfmt" 50470 elif test "x$TOOLCHAIN_TYPE" = xxlc; then 50471 OPENJDK_BUILD_CFLAGS_JDK="${OPENJDK_BUILD_CFLAGS_JDK} -qchars=signed -qfullpath -qsaveopt" 50472 OPENJDK_BUILD_CXXFLAGS_JDK="${OPENJDK_BUILD_CXXFLAGS_JDK} -qchars=signed -qfullpath -qsaveopt" 50473 elif test "x$TOOLCHAIN_TYPE" = xgcc; then 50474 OPENJDK_BUILD_CXXSTD_CXXFLAG="-std=gnu++98" 50475 50476 50477 50478 50479 50480 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 # Execute function body 50518 50519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the C++ compiler supports \"$OPENJDK_BUILD_CXXSTD_CXXFLAG -Werror\"" >&5 50520 $as_echo_n "checking if the C++ compiler supports \"$OPENJDK_BUILD_CXXSTD_CXXFLAG -Werror\"... " >&6; } 50521 supports=yes 50522 50523 saved_cxxflags="$CXXFLAGS" 50524 CXXFLAGS="$CXXFLAG $OPENJDK_BUILD_CXXSTD_CXXFLAG -Werror" 50525 ac_ext=cpp 50526 ac_cpp='$CXXCPP $CPPFLAGS' 50527 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 50528 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 50529 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 50530 50531 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 50532 /* end confdefs.h. */ 50533 int i; 50534 _ACEOF 50535 if ac_fn_cxx_try_compile "$LINENO"; then : 50536 50537 else 50538 supports=no 50539 fi 50540 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 50541 ac_ext=cpp 50542 ac_cpp='$CXXCPP $CPPFLAGS' 50543 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 50544 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 50545 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 50546 50547 CXXFLAGS="$saved_cxxflags" 50548 50549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supports" >&5 50550 $as_echo "$supports" >&6; } 50551 if test "x$supports" = "xyes" ; then 50552 : 50553 50554 else 50555 : 50556 OPENJDK_BUILD_CXXSTD_CXXFLAG="" 50557 fi 50558 50559 50560 50561 50562 50563 50564 50565 50566 50567 50568 50569 50570 OPENJDK_BUILD_CXXFLAGS_JDK="${OPENJDK_BUILD_CXXFLAGS_JDK} ${OPENJDK_BUILD_CXXSTD_CXXFLAG}" 50571 OPENJDK_BUILD_JVM_CFLAGS="${OPENJDK_BUILD_JVM_CFLAGS} ${OPENJDK_BUILD_CXXSTD_CXXFLAG}" 50572 50573 fi 50574 if test "x$OPENJDK_TARGET_OS" = xsolaris; then 50575 OPENJDK_BUILD_CFLAGS_JDK="${OPENJDK_BUILD_CFLAGS_JDK} -D__solaris__" 50576 OPENJDK_BUILD_CXXFLAGS_JDK="${OPENJDK_BUILD_CXXFLAGS_JDK} -D__solaris__" 50577 fi 50578 50579 if test "x$OPENJDK_TARGET_OS" = xsolaris; then 50580 OPENJDK_BUILD_CFLAGS_JDK="${OPENJDK_BUILD_CFLAGS_JDK} -D__solaris__" 50581 OPENJDK_BUILD_CXXFLAGS_JDK="${OPENJDK_BUILD_CXXFLAGS_JDK} -D__solaris__" 50582 fi 50583 50584 OPENJDK_BUILD_CFLAGS_JDK="${OPENJDK_BUILD_CFLAGS_JDK} ${OPENJDK_BUILD_EXTRA_CFLAGS}" 50585 OPENJDK_BUILD_CXXFLAGS_JDK="${OPENJDK_BUILD_CXXFLAGS_JDK} ${OPENJDK_BUILD_EXTRA_CXXFLAGS}" 50586 OPENJDK_BUILD_LDFLAGS_JDK="${OPENJDK_BUILD_LDFLAGS_JDK} ${OPENJDK_BUILD_EXTRA_LDFLAGS}" 50587 50588 ############################################################################### 50589 # 50590 # Now setup the CFLAGS and LDFLAGS for the JDK build. 50591 # Later we will also have CFLAGS and LDFLAGS for the hotspot subrepo build. 50592 # 50593 50594 # Setup compiler/platform specific flags into 50595 # OPENJDK_BUILD_CFLAGS_JDK - C Compiler flags 50596 # OPENJDK_BUILD_CXXFLAGS_JDK - C++ Compiler flags 50597 # OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK - common to C and C++ 50598 if test "x$TOOLCHAIN_TYPE" = xgcc; then 50599 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS -D_GNU_SOURCE" 50600 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS -D_REENTRANT" 50601 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS -fcheck-new" 50602 if test "x$OPENJDK_BUILD_CPU" = xx86; then 50603 # Force compatibility with i586 on 32 bit intel platforms. 50604 OPENJDK_BUILD_COMMON_CCXXFLAGS="${OPENJDK_BUILD_COMMON_CCXXFLAGS} -march=i586" 50605 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS -march=i586" 50606 fi 50607 OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK="$OPENJDK_BUILD_COMMON_CCXXFLAGS $OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK -Wall -Wextra -Wno-unused -Wno-unused-parameter -Wformat=2 \ 50608 -pipe -D_GNU_SOURCE -D_REENTRANT -D_LARGEFILE64_SOURCE" 50609 case $OPENJDK_BUILD_CPU_ARCH in 50610 arm ) 50611 # on arm we don't prevent gcc to omit frame pointer but do prevent strict aliasing 50612 OPENJDK_BUILD_CFLAGS_JDK="${OPENJDK_BUILD_CFLAGS_JDK} -fno-strict-aliasing" 50613 ;; 50614 ppc ) 50615 # on ppc we don't prevent gcc to omit frame pointer but do prevent strict aliasing 50616 OPENJDK_BUILD_CFLAGS_JDK="${OPENJDK_BUILD_CFLAGS_JDK} -fno-strict-aliasing" 50617 ;; 50618 s390 ) 50619 OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK="$OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK -fno-omit-frame-pointer -mbackchain -march=z10" 50620 OPENJDK_BUILD_CFLAGS_JDK="${OPENJDK_BUILD_CFLAGS_JDK} -fno-strict-aliasing" 50621 ;; 50622 * ) 50623 OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK="$OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK -fno-omit-frame-pointer" 50624 OPENJDK_BUILD_CFLAGS_JDK="${OPENJDK_BUILD_CFLAGS_JDK} -fno-strict-aliasing" 50625 ;; 50626 esac 50627 50628 50629 50630 50631 50632 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 # Execute function body 50682 50683 # Need to assign to a variable since m4 is blocked from modifying parts in []. 50684 REFERENCE_VERSION=6 50685 50686 if [[ "$REFERENCE_VERSION" =~ (.*\.){4} ]] ; then 50687 as_fn_error $? "Internal error: Cannot compare to 6, only four parts (W.X.Y.Z) is supported" "$LINENO" 5 50688 fi 50689 50690 if [[ "$REFERENCE_VERSION" =~ [0-9]{6} ]] ; then 50691 as_fn_error $? "Internal error: Cannot compare to 6, only parts < 99999 is supported" "$LINENO" 5 50692 fi 50693 50694 # Version comparison method inspired by http://stackoverflow.com/a/24067243 50695 COMPARABLE_REFERENCE_VERSION=`$AWK -F. '{ printf("%05d%05d%05d%05d\n", $1, $2, $3, $4) }' <<< "$REFERENCE_VERSION"` 50696 50697 if test $OPENJDK_BUILD_COMPARABLE_ACTUAL_VERSION -ge $COMPARABLE_REFERENCE_VERSION ; then 50698 : 50699 50700 # These flags are required for GCC 6 builds as undefined behaviour in OpenJDK code 50701 # runs afoul of the more aggressive versions of these optimisations. 50702 # Notably, value range propagation now assumes that the this pointer of C++ 50703 # member functions is non-null. 50704 NO_DELETE_NULL_POINTER_CHECKS_CFLAG="-fno-delete-null-pointer-checks" 50705 NO_LIFETIME_DSE_CFLAG="-fno-lifetime-dse" 50706 { $as_echo "$as_me:${as_lineno-$LINENO}: GCC >= 6 detected; adding ${NO_DELETE_NULL_POINTER_CHECKS_CFLAG} and ${NO_LIFETIME_DSE_CFLAG}" >&5 50707 $as_echo "$as_me: GCC >= 6 detected; adding ${NO_DELETE_NULL_POINTER_CHECKS_CFLAG} and ${NO_LIFETIME_DSE_CFLAG}" >&6;} 50708 OPENJDK_BUILD_CFLAGS_JDK="$OPENJDK_BUILD_CFLAGS_JDK ${NO_DELETE_NULL_POINTER_CHECKS_CFLAG} ${NO_LIFETIME_DSE_CFLAG}" 50709 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS ${NO_DELETE_NULL_POINTER_CHECKS_CFLAG} ${NO_LIFETIME_DSE_CFLAG}" 50710 50711 else 50712 : 50713 50714 fi 50715 50716 50717 50718 50719 50720 50721 50722 50723 50724 50725 50726 50727 50728 50729 elif test "x$TOOLCHAIN_TYPE" = xclang; then 50730 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS -D_GNU_SOURCE" 50731 50732 # Restrict the debug information created by Clang to avoid 50733 # too big object files and speed the build up a little bit 50734 # (see http://llvm.org/bugs/show_bug.cgi?id=7554) 50735 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS -flimit-debug-info" 50736 if test "x$OPENJDK_BUILD_OS" = xlinux; then 50737 if test "x$OPENJDK_BUILD_CPU" = xx86; then 50738 # Force compatibility with i586 on 32 bit intel platforms. 50739 OPENJDK_BUILD_COMMON_CCXXFLAGS="${OPENJDK_BUILD_COMMON_CCXXFLAGS} -march=i586" 50740 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS -march=i586" 50741 fi 50742 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS -Wno-sometimes-uninitialized" 50743 OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK="$OPENJDK_BUILD_COMMON_CCXXFLAGS $OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK -Wall -Wextra -Wno-unused -Wno-unused-parameter -Wformat=2 \ 50744 -pipe -D_GNU_SOURCE -D_REENTRANT -D_LARGEFILE64_SOURCE" 50745 case $OPENJDK_BUILD_CPU_ARCH in 50746 ppc ) 50747 # on ppc we don't prevent gcc to omit frame pointer but do prevent strict aliasing 50748 OPENJDK_BUILD_CFLAGS_JDK="${OPENJDK_BUILD_CFLAGS_JDK} -fno-strict-aliasing" 50749 ;; 50750 * ) 50751 OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK="$OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK -fno-omit-frame-pointer" 50752 OPENJDK_BUILD_CFLAGS_JDK="${OPENJDK_BUILD_CFLAGS_JDK} -fno-strict-aliasing" 50753 ;; 50754 esac 50755 fi 50756 elif test "x$TOOLCHAIN_TYPE" = xsolstudio; then 50757 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS -DSPARC_WORKS" 50758 OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK="$OPENJDK_BUILD_COMMON_CCXXFLAGS $OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK -DTRACING -DMACRO_MEMSYS_OPS -DBREAKPTS" 50759 if test "x$OPENJDK_BUILD_CPU_ARCH" = xx86; then 50760 OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK="$OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK -DcpuIntel -Di586 -D$OPENJDK_BUILD_CPU_LEGACY_LIB" 50761 fi 50762 50763 OPENJDK_BUILD_CFLAGS_JDK="$OPENJDK_BUILD_CFLAGS_JDK -xc99=%none -xCC -errshort=tags -Xa -v -mt -W0,-noglobal" 50764 OPENJDK_BUILD_CXXFLAGS_JDK="$OPENJDK_BUILD_CXXFLAGS_JDK -errtags=yes +w -mt -features=no%except -DCC_NOEX -norunpath -xnolib" 50765 elif test "x$TOOLCHAIN_TYPE" = xxlc; then 50766 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS -D_REENTRANT -D__STDC_FORMAT_MACROS" 50767 OPENJDK_BUILD_CFLAGS_JDK="$OPENJDK_BUILD_CFLAGS_JDK -D_GNU_SOURCE -D_REENTRANT -D_LARGEFILE64_SOURCE -DSTDC" 50768 OPENJDK_BUILD_CXXFLAGS_JDK="$OPENJDK_BUILD_CXXFLAGS_JDK -D_GNU_SOURCE -D_REENTRANT -D_LARGEFILE64_SOURCE -DSTDC" 50769 elif test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 50770 OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK="$OPENJDK_BUILD_COMMON_CCXXFLAGS $OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK \ 50771 -MD -Zc:wchar_t- -W3 -wd4800 \ 50772 -DWIN32_LEAN_AND_MEAN \ 50773 -D_CRT_SECURE_NO_DEPRECATE -D_CRT_NONSTDC_NO_DEPRECATE \ 50774 -D_WINSOCK_DEPRECATED_NO_WARNINGS \ 50775 -DWIN32 -DIAL" 50776 if test "x$OPENJDK_BUILD_CPU" = xx86_64; then 50777 OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK="$OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK -D_AMD64_ -Damd64" 50778 else 50779 OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK="$OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK -D_X86_ -Dx86" 50780 fi 50781 # If building with Visual Studio 2010, we can still use _STATIC_CPPLIB to 50782 # avoid bundling msvcpNNN.dll. Doesn't work with newer versions of visual 50783 # studio. 50784 if test "x$TOOLCHAIN_VERSION" = "x2010"; then 50785 STATIC_CPPLIB_FLAGS="-D_STATIC_CPPLIB -D_DISABLE_DEPRECATE_STATIC_CPPLIB" 50786 OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK="$OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK $STATIC_CPPLIB_FLAGS" 50787 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS $STATIC_CPPLIB_FLAGS" 50788 fi 50789 fi 50790 50791 ############################################################################### 50792 50793 # Adjust flags according to debug level. 50794 case $DEBUG_LEVEL in 50795 fastdebug | slowdebug ) 50796 OPENJDK_BUILD_CFLAGS_JDK="$OPENJDK_BUILD_CFLAGS_JDK $CFLAGS_DEBUG_SYMBOLS $CFLAGS_DEBUG_OPTIONS" 50797 OPENJDK_BUILD_CXXFLAGS_JDK="$OPENJDK_BUILD_CXXFLAGS_JDK $CXXFLAGS_DEBUG_SYMBOLS $CXXFLAGS_DEBUG_OPTIONS" 50798 ;; 50799 release ) 50800 ;; 50801 * ) 50802 as_fn_error $? "Unrecognized \$DEBUG_LEVEL: $DEBUG_LEVEL" "$LINENO" 5 50803 ;; 50804 esac 50805 50806 # Set some common defines. These works for all compilers, but assume 50807 # -D is universally accepted. 50808 50809 # Setup endianness 50810 if test "x$OPENJDK_BUILD_CPU_ENDIAN" = xlittle; then 50811 # The macro _LITTLE_ENDIAN needs to be defined the same to avoid the 50812 # Sun C compiler warning message: warning: macro redefined: _LITTLE_ENDIAN 50813 # (The Solaris X86 system defines this in file /usr/include/sys/isa_defs.h). 50814 # Note: -Dmacro is the same as #define macro 1 50815 # -Dmacro= is the same as #define macro 50816 if test "x$OPENJDK_BUILD_OS" = xsolaris; then 50817 OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK="$OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK -D_LITTLE_ENDIAN=" 50818 else 50819 OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK="$OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK -D_LITTLE_ENDIAN" 50820 fi 50821 else 50822 # Same goes for _BIG_ENDIAN. Do we really need to set *ENDIAN on Solaris if they 50823 # are defined in the system? 50824 if test "x$OPENJDK_BUILD_OS" = xsolaris; then 50825 OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK="$OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK -D_BIG_ENDIAN=" 50826 else 50827 OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK="$OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK -D_BIG_ENDIAN" 50828 fi 50829 fi 50830 50831 # Setup target OS define. Use OS target name but in upper case. 50832 OPENJDK_BUILD_OS_UPPERCASE=`$ECHO $OPENJDK_BUILD_OS | $TR 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` 50833 OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK="$OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK -D$OPENJDK_BUILD_OS_UPPERCASE" 50834 50835 # Setup target CPU 50836 OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK="$OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK \ 50837 $OPENJDK_BUILD_ADD_LP64 \ 50838 -DARCH='\"$OPENJDK_BUILD_CPU_LEGACY\"' -D$OPENJDK_BUILD_CPU_LEGACY" 50839 50840 # Setup debug/release defines 50841 if test "x$DEBUG_LEVEL" = xrelease; then 50842 OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK="$OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK -DNDEBUG" 50843 if test "x$OPENJDK_BUILD_OS" = xsolaris; then 50844 OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK="$OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK -DTRIMMED" 50845 fi 50846 else 50847 OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK="$OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK -DDEBUG" 50848 fi 50849 50850 # Set some additional per-OS defines. 50851 if test "x$OPENJDK_BUILD_OS" = xlinux; then 50852 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS -DLINUX" 50853 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS -pipe $PICFLAG -fno-rtti -fno-exceptions \ 50854 -fvisibility=hidden -fno-strict-aliasing -fno-omit-frame-pointer" 50855 elif test "x$OPENJDK_BUILD_OS" = xsolaris; then 50856 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS -DSOLARIS" 50857 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS -template=no%extdef -features=no%split_init \ 50858 -D_Crun_inline_placement -library=%none $PICFLAG -mt -features=no%except" 50859 elif test "x$OPENJDK_BUILD_OS" = xmacosx; then 50860 OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK="$OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK -D_ALLBSD_SOURCE -D_DARWIN_UNLIMITED_SELECT" 50861 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS -D_ALLBSD_SOURCE" 50862 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS -D_DARWIN_C_SOURCE -D_XOPEN_SOURCE" 50863 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS -fno-rtti -fno-exceptions -fvisibility=hidden \ 50864 -mno-omit-leaf-frame-pointer -mstack-alignment=16 -pipe -fno-strict-aliasing \ 50865 -DMAC_OS_X_VERSION_MAX_ALLOWED=1070 -mmacosx-version-min=10.7.0 \ 50866 -fno-omit-frame-pointer" 50867 elif test "x$OPENJDK_BUILD_OS" = xaix; then 50868 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS -DAIX" 50869 # We may need '-qminimaltoc' or '-qpic=large -bbigtoc' if the TOC overflows. 50870 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS -qtune=balanced \ 50871 -qalias=noansi -qstrict -qtls=default -qlanglvl=c99vla \ 50872 -qlanglvl=noredefmac -qnortti -qnoeh -qignerrno" 50873 elif test "x$OPENJDK_BUILD_OS" = xbsd; then 50874 OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK="$OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK -D_ALLBSD_SOURCE" 50875 elif test "x$OPENJDK_BUILD_OS" = xwindows; then 50876 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS -D_WINDOWS -DWIN32 -D_JNI_IMPLEMENTATION_" 50877 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS -nologo -W3 -MD -MP" 50878 fi 50879 50880 # Set some additional per-CPU defines. 50881 if test "x$OPENJDK_BUILD_OS-$OPENJDK_BUILD_CPU" = xwindows-x86; then 50882 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS -arch:IA32" 50883 elif test "x$OPENJDK_BUILD_CPU" = xsparcv9; then 50884 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS -xarch=sparc" 50885 elif test "x$OPENJDK_BUILD_CPU" = xppc64; then 50886 if test "x$OPENJDK_BUILD_OS" = xlinux; then 50887 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS -minsert-sched-nops=regroup_exact -mno-multiple -mno-string" 50888 # fixes `relocation truncated to fit' error for gcc 4.1. 50889 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS -mminimal-toc" 50890 # Use ppc64 instructions, but schedule for power5 50891 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS -mcpu=powerpc64 -mtune=power5" 50892 elif test "x$OPENJDK_BUILD_OS" = xaix; then 50893 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS -qarch=ppc64" 50894 fi 50895 elif test "x$OPENJDK_BUILD_CPU" = xppc64le; then 50896 if test "x$OPENJDK_BUILD_OS" = xlinux; then 50897 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS -minsert-sched-nops=regroup_exact -mno-multiple -mno-string" 50898 # Little endian machine uses ELFv2 ABI. 50899 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS -DABI_ELFv2" 50900 # Use Power8, this is the first CPU to support PPC64 LE with ELFv2 ABI. 50901 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS -mcpu=power8 -mtune=power8" 50902 fi 50903 elif test "x$OPENJDK_BUILD_CPU" = xs390x; then 50904 if test "x$OPENJDK_BUILD_OS" = xlinux; then 50905 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS -mbackchain -march=z10" 50906 fi 50907 fi 50908 50909 if test "x$OPENJDK_BUILD_CPU_ENDIAN" = xlittle; then 50910 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS -DVM_LITTLE_ENDIAN" 50911 fi 50912 50913 if test "x$OPENJDK_BUILD_CPU_BITS" = x64; then 50914 if test "x$OPENJDK_BUILD_OS" != xsolaris && test "x$OPENJDK_BUILD_OS" != xaix; then 50915 # Solaris does not have _LP64=1 in the old build. 50916 # xlc on AIX defines _LP64=1 by default and issues a warning if we redefine it. 50917 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS -D_LP64=1" 50918 fi 50919 fi 50920 50921 # Set OPENJDK_BUILD_JVM_CFLAGS warning handling 50922 if test "x$OPENJDK_BUILD_OS" = xlinux; then 50923 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS -Wpointer-arith -Wsign-compare -Wunused-function \ 50924 -Wunused-value -Woverloaded-virtual" 50925 50926 if test "x$TOOLCHAIN_TYPE" = xgcc; then 50927 50928 50929 50930 50931 50932 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 # Execute function body 50982 50983 # Need to assign to a variable since m4 is blocked from modifying parts in []. 50984 REFERENCE_VERSION=4.8 50985 50986 if [[ "$REFERENCE_VERSION" =~ (.*\.){4} ]] ; then 50987 as_fn_error $? "Internal error: Cannot compare to 4.8, only four parts (W.X.Y.Z) is supported" "$LINENO" 5 50988 fi 50989 50990 if [[ "$REFERENCE_VERSION" =~ [0-9]{6} ]] ; then 50991 as_fn_error $? "Internal error: Cannot compare to 4.8, only parts < 99999 is supported" "$LINENO" 5 50992 fi 50993 50994 # Version comparison method inspired by http://stackoverflow.com/a/24067243 50995 COMPARABLE_REFERENCE_VERSION=`$AWK -F. '{ printf("%05d%05d%05d%05d\n", $1, $2, $3, $4) }' <<< "$REFERENCE_VERSION"` 50996 50997 if test $OPENJDK_BUILD_COMPARABLE_ACTUAL_VERSION -ge $COMPARABLE_REFERENCE_VERSION ; then 50998 : 50999 51000 # These flags either do not work or give spurious warnings prior to gcc 4.8. 51001 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS -Wno-format-zero-length -Wtype-limits -Wuninitialized" 51002 51003 51004 else 51005 : 51006 51007 fi 51008 51009 51010 51011 51012 51013 51014 51015 51016 51017 51018 51019 51020 51021 51022 fi 51023 if ! [[ " $JVM_VARIANTS " =~ " zero " ]] && ! [[ " $JVM_VARIANTS " =~ " zeroshark " ]] ; then 51024 # Non-zero builds have stricter warnings 51025 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS -Wreturn-type -Wundef -Wformat=2" 51026 else 51027 if test "x$TOOLCHAIN_TYPE" = xclang; then 51028 # Some versions of llvm do not like -Wundef 51029 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS -Wno-undef" 51030 fi 51031 fi 51032 elif test "x$OPENJDK_BUILD_OS" = xmacosx; then 51033 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS -Wno-deprecated -Wpointer-arith \ 51034 -Wsign-compare -Wundef -Wunused-function -Wformat=2" 51035 fi 51036 51037 # Additional macosx handling 51038 if test "x$OPENJDK_BUILD_OS" = xmacosx; then 51039 # Setting these parameters makes it an error to link to macosx APIs that are 51040 # newer than the given OS version and makes the linked binaries compatible 51041 # even if built on a newer version of the OS. 51042 # The expected format is X.Y.Z 51043 MACOSX_VERSION_MIN=10.7.0 51044 51045 51046 # The macro takes the version with no dots, ex: 1070 51047 # Let the flags variables get resolved in make for easier override on make 51048 # command line. 51049 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)" 51050 OPENJDK_BUILD_LDFLAGS_JDK="$OPENJDK_BUILD_LDFLAGS_JDK -mmacosx-version-min=\$(MACOSX_VERSION_MIN)" 51051 fi 51052 51053 # Setup some hard coded includes 51054 OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK="$OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK \ 51055 -I\$(SUPPORT_OUTPUTDIR)/modules_include/java.base \ 51056 -I${JDK_TOPDIR}/src/java.base/share/native/include \ 51057 -I${JDK_TOPDIR}/src/java.base/$OPENJDK_BUILD_OS/native/include \ 51058 -I${JDK_TOPDIR}/src/java.base/$OPENJDK_BUILD_OS_TYPE/native/include \ 51059 -I${JDK_TOPDIR}/src/java.base/share/native/libjava \ 51060 -I${JDK_TOPDIR}/src/java.base/$OPENJDK_BUILD_OS_TYPE/native/libjava" 51061 51062 # The shared libraries are compiled using the picflag. 51063 OPENJDK_BUILD_CFLAGS_JDKLIB="$OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK \ 51064 $OPENJDK_BUILD_CFLAGS_JDK $OPENJDK_BUILD_EXTRA_CFLAGS_JDK $PICFLAG $OPENJDK_BUILD_CFLAGS_JDKLIB_EXTRA" 51065 OPENJDK_BUILD_CXXFLAGS_JDKLIB="$OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK \ 51066 $OPENJDK_BUILD_CXXFLAGS_JDK $OPENJDK_BUILD_EXTRA_CXXFLAGS_JDK $PICFLAG $OPENJDK_BUILD_CXXFLAGS_JDKLIB_EXTRA" 51067 51068 # Executable flags 51069 OPENJDK_BUILD_CFLAGS_JDKEXE="$OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK $OPENJDK_BUILD_CFLAGS_JDK $OPENJDK_BUILD_EXTRA_CFLAGS_JDK" 51070 OPENJDK_BUILD_CXXFLAGS_JDKEXE="$OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK $OPENJDK_BUILD_CXXFLAGS_JDK $OPENJDK_BUILD_EXTRA_CXXFLAGS_JDK" 51071 51072 51073 51074 51075 51076 51077 # Setup LDFLAGS et al. 51078 # 51079 51080 if test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 51081 LDFLAGS_MICROSOFT="-nologo -opt:ref" 51082 OPENJDK_BUILD_LDFLAGS_JDK="$OPENJDK_BUILD_LDFLAGS_JDK $LDFLAGS_MICROSOFT -incremental:no" 51083 OPENJDK_BUILD_JVM_LDFLAGS="$OPENJDK_BUILD_JVM_LDFLAGS $LDFLAGS_MICROSOFT -opt:icf,8 -subsystem:windows -base:0x8000000" 51084 if test "x$OPENJDK_BUILD_CPU_BITS" = "x32"; then 51085 LDFLAGS_SAFESH="-safeseh" 51086 OPENJDK_BUILD_LDFLAGS_JDK="$OPENJDK_BUILD_LDFLAGS_JDK $LDFLAGS_SAFESH" 51087 OPENJDK_BUILD_JVM_LDFLAGS="$OPENJDK_BUILD_JVM_LDFLAGS $LDFLAGS_SAFESH" 51088 # NOTE: Old build added -machine. Probably not needed. 51089 OPENJDK_BUILD_JVM_LDFLAGS="$OPENJDK_BUILD_JVM_LDFLAGS -machine:I386" 51090 else 51091 OPENJDK_BUILD_JVM_LDFLAGS="$OPENJDK_BUILD_JVM_LDFLAGS -machine:AMD64" 51092 fi 51093 elif test "x$TOOLCHAIN_TYPE" = xclang; then 51094 OPENJDK_BUILD_JVM_LDFLAGS="$OPENJDK_BUILD_JVM_LDFLAGS -mno-omit-leaf-frame-pointer -mstack-alignment=16 -stdlib=libstdc++ -fPIC" 51095 if test "x$OPENJDK_BUILD_OS" = xmacosx; then 51096 # FIXME: We should really generalize SET_SHARED_LIBRARY_ORIGIN instead. 51097 OPENJDK_BUILD_JVM_LDFLAGS="$OPENJDK_BUILD_JVM_LDFLAGS -Wl,-rpath,@loader_path/. -Wl,-rpath,@loader_path/.." 51098 fi 51099 elif test "x$TOOLCHAIN_TYPE" = xgcc; then 51100 # If this is a --hash-style=gnu system, use --hash-style=both, why? 51101 # We have previously set HAS_GNU_HASH if this is the case 51102 if test -n "$HAS_GNU_HASH"; then 51103 OPENJDK_BUILD_LDFLAGS_HASH_STYLE="-Wl,--hash-style=both" 51104 OPENJDK_BUILD_LDFLAGS_JDK="${OPENJDK_BUILD_LDFLAGS_JDK} $OPENJDK_BUILD_LDFLAGS_HASH_STYLE" 51105 OPENJDK_BUILD_JVM_LDFLAGS="$OPENJDK_BUILD_JVM_LDFLAGS $OPENJDK_BUILD_LDFLAGS_HASH_STYLE" 51106 fi 51107 if test "x$OPENJDK_BUILD_OS" = xmacosx; then 51108 OPENJDK_BUILD_JVM_LDFLAGS="$OPENJDK_BUILD_JVM_LDFLAGS -Wl,-rpath,@loader_path/. -Wl,-rpath,@loader_path/.." 51109 fi 51110 if test "x$OPENJDK_BUILD_OS" = xlinux; then 51111 # And since we now know that the linker is gnu, then add -z defs, to forbid 51112 # undefined symbols in object files. 51113 LDFLAGS_NO_UNDEF_SYM="-Wl,-z,defs" 51114 OPENJDK_BUILD_LDFLAGS_JDK="${OPENJDK_BUILD_LDFLAGS_JDK} $LDFLAGS_NO_UNDEF_SYM" 51115 OPENJDK_BUILD_JVM_LDFLAGS="$OPENJDK_BUILD_JVM_LDFLAGS $LDFLAGS_NO_UNDEF_SYM" 51116 LDFLAGS_NO_EXEC_STACK="-Wl,-z,noexecstack" 51117 OPENJDK_BUILD_JVM_LDFLAGS="$OPENJDK_BUILD_JVM_LDFLAGS $LDFLAGS_NO_EXEC_STACK" 51118 if test "x$OPENJDK_BUILD_CPU" = xx86; then 51119 OPENJDK_BUILD_JVM_LDFLAGS="$OPENJDK_BUILD_JVM_LDFLAGS -march=i586" 51120 fi 51121 case $DEBUG_LEVEL in 51122 release ) 51123 # tell linker to optimize libraries. 51124 # Should this be supplied to the OSS linker as well? 51125 LDFLAGS_DEBUGLEVEL_release="-Wl,-O1" 51126 OPENJDK_BUILD_LDFLAGS_JDK="${OPENJDK_BUILD_LDFLAGS_JDK} $LDFLAGS_DEBUGLEVEL_release" 51127 OPENJDK_BUILD_JVM_LDFLAGS="$OPENJDK_BUILD_JVM_LDFLAGS $LDFLAGS_DEBUGLEVEL_release" 51128 if test "x$HAS_LINKER_RELRO" = "xtrue"; then 51129 OPENJDK_BUILD_JVM_LDFLAGS="$OPENJDK_BUILD_JVM_LDFLAGS $LINKER_RELRO_FLAG" 51130 fi 51131 ;; 51132 slowdebug ) 51133 # Hotspot always let the linker optimize 51134 OPENJDK_BUILD_JVM_LDFLAGS="$OPENJDK_BUILD_JVM_LDFLAGS -Wl,-O1" 51135 if test "x$HAS_LINKER_NOW" = "xtrue"; then 51136 # do relocations at load 51137 OPENJDK_BUILD_LDFLAGS_JDK="$OPENJDK_BUILD_LDFLAGS_JDK $LINKER_NOW_FLAG" 51138 OPENJDK_BUILD_LDFLAGS_CXX_JDK="$OPENJDK_BUILD_LDFLAGS_CXX_JDK $LINKER_NOW_FLAG" 51139 OPENJDK_BUILD_JVM_LDFLAGS="$OPENJDK_BUILD_JVM_LDFLAGS $LINKER_NOW_FLAG" 51140 fi 51141 if test "x$HAS_LINKER_RELRO" = "xtrue"; then 51142 # mark relocations read only 51143 OPENJDK_BUILD_LDFLAGS_JDK="$OPENJDK_BUILD_LDFLAGS_JDK $LINKER_RELRO_FLAG" 51144 OPENJDK_BUILD_LDFLAGS_CXX_JDK="$OPENJDK_BUILD_LDFLAGS_CXX_JDK $LINKER_RELRO_FLAG" 51145 OPENJDK_BUILD_JVM_LDFLAGS="$OPENJDK_BUILD_JVM_LDFLAGS $LINKER_RELRO_FLAG" 51146 fi 51147 ;; 51148 fastdebug ) 51149 # Hotspot always let the linker optimize 51150 OPENJDK_BUILD_JVM_LDFLAGS="$OPENJDK_BUILD_JVM_LDFLAGS -Wl,-O1" 51151 if test "x$HAS_LINKER_RELRO" = "xtrue"; then 51152 # mark relocations read only 51153 OPENJDK_BUILD_LDFLAGS_JDK="$OPENJDK_BUILD_LDFLAGS_JDK $LINKER_RELRO_FLAG" 51154 OPENJDK_BUILD_LDFLAGS_CXX_JDK="$OPENJDK_BUILD_LDFLAGS_CXX_JDK $LINKER_RELRO_FLAG" 51155 OPENJDK_BUILD_JVM_LDFLAGS="$OPENJDK_BUILD_JVM_LDFLAGS $LINKER_RELRO_FLAG" 51156 fi 51157 ;; 51158 * ) 51159 as_fn_error $? "Unrecognized \$DEBUG_LEVEL: $DEBUG_LEVEL" "$LINENO" 5 51160 ;; 51161 esac 51162 fi 51163 elif test "x$TOOLCHAIN_TYPE" = xsolstudio; then 51164 LDFLAGS_SOLSTUDIO="-Wl,-z,defs" 51165 OPENJDK_BUILD_LDFLAGS_JDK="$OPENJDK_BUILD_LDFLAGS_JDK $LDFLAGS_SOLSTUDIO -ztext" 51166 LDFLAGS_CXX_SOLSTUDIO="-norunpath" 51167 OPENJDK_BUILD_LDFLAGS_CXX_JDK="$OPENJDK_BUILD_LDFLAGS_CXX_JDK $LDFLAGS_CXX_SOLSTUDIO -xnolib" 51168 OPENJDK_BUILD_JVM_LDFLAGS="$OPENJDK_BUILD_JVM_LDFLAGS $LDFLAGS_SOLSTUDIO -library=%none -mt $LDFLAGS_CXX_SOLSTUDIO -z noversion" 51169 if test "x$OPENJDK_BUILD_CPU_ARCH" = "xsparc"; then 51170 OPENJDK_BUILD_JVM_LDFLAGS="$OPENJDK_BUILD_JVM_LDFLAGS -xarch=sparc" 51171 fi 51172 elif test "x$TOOLCHAIN_TYPE" = xxlc; then 51173 LDFLAGS_XLC="-b64 -brtl -bnolibpath -bexpall -bernotok" 51174 OPENJDK_BUILD_LDFLAGS_JDK="${OPENJDK_BUILD_LDFLAGS_JDK} $LDFLAGS_XLC" 51175 OPENJDK_BUILD_JVM_LDFLAGS="$OPENJDK_BUILD_JVM_LDFLAGS $LDFLAGS_XLC" 51176 fi 51177 51178 # Customize LDFLAGS for executables 51179 51180 OPENJDK_BUILD_LDFLAGS_JDKEXE="${OPENJDK_BUILD_LDFLAGS_JDK}" 51181 51182 if test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 51183 if test "x$OPENJDK_BUILD_CPU_BITS" = "x64"; then 51184 LDFLAGS_STACK_SIZE=1048576 51185 else 51186 LDFLAGS_STACK_SIZE=327680 51187 fi 51188 OPENJDK_BUILD_LDFLAGS_JDKEXE="${OPENJDK_BUILD_LDFLAGS_JDKEXE} /STACK:$LDFLAGS_STACK_SIZE" 51189 elif test "x$OPENJDK_BUILD_OS" = xlinux; then 51190 OPENJDK_BUILD_LDFLAGS_JDKEXE="$OPENJDK_BUILD_LDFLAGS_JDKEXE -Wl,--allow-shlib-undefined" 51191 fi 51192 51193 OPENJDK_BUILD_LDFLAGS_JDKEXE="${OPENJDK_BUILD_LDFLAGS_JDKEXE} ${OPENJDK_BUILD_EXTRA_LDFLAGS_JDK}" 51194 51195 # Customize LDFLAGS for libs 51196 OPENJDK_BUILD_LDFLAGS_JDKLIB="${OPENJDK_BUILD_LDFLAGS_JDK}" 51197 51198 OPENJDK_BUILD_LDFLAGS_JDKLIB="${OPENJDK_BUILD_LDFLAGS_JDKLIB} ${SHARED_LIBRARY_FLAGS}" 51199 if test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 51200 OPENJDK_BUILD_JAVA_BASE_LDFLAGS="${OPENJDK_BUILD_JAVA_BASE_LDFLAGS} \ 51201 -libpath:${OUTPUT_ROOT}/support/modules_libs/java.base" 51202 OPENJDK_BUILD_JDKLIB_LIBS="" 51203 else 51204 OPENJDK_BUILD_JAVA_BASE_LDFLAGS="${OPENJDK_BUILD_JAVA_BASE_LDFLAGS} \ 51205 -L\$(SUPPORT_OUTPUTDIR)/modules_libs/java.base\$(OPENJDK_BUILD_CPU_LIBDIR)" 51206 51207 if test "xBUILD" = "xTARGET"; then 51208 # On some platforms (mac) the linker warns about non existing -L dirs. 51209 # Add server first if available. Linking aginst client does not always produce the same results. 51210 # Only add client/minimal dir if client/minimal is being built. 51211 # Default to server for other variants. 51212 if [[ " $JVM_VARIANTS " =~ " server " ]] ; then 51213 OPENJDK_BUILD_JAVA_BASE_LDFLAGS="${OPENJDK_BUILD_JAVA_BASE_LDFLAGS} -L\$(SUPPORT_OUTPUTDIR)/modules_libs/java.base\$(OPENJDK_BUILD_CPU_LIBDIR)/server" 51214 elif [[ " $JVM_VARIANTS " =~ " client " ]] ; then 51215 OPENJDK_BUILD_JAVA_BASE_LDFLAGS="${OPENJDK_BUILD_JAVA_BASE_LDFLAGS} -L\$(SUPPORT_OUTPUTDIR)/modules_libs/java.base\$(OPENJDK_BUILD_CPU_LIBDIR)/client" 51216 elif [[ " $JVM_VARIANTS " =~ " minimal " ]] ; then 51217 OPENJDK_BUILD_JAVA_BASE_LDFLAGS="${OPENJDK_BUILD_JAVA_BASE_LDFLAGS} -L\$(SUPPORT_OUTPUTDIR)/modules_libs/java.base\$(OPENJDK_BUILD_CPU_LIBDIR)/minimal" 51218 else 51219 OPENJDK_BUILD_JAVA_BASE_LDFLAGS="${OPENJDK_BUILD_JAVA_BASE_LDFLAGS} -L\$(SUPPORT_OUTPUTDIR)/modules_libs/java.base\$(OPENJDK_BUILD_CPU_LIBDIR)/server" 51220 fi 51221 elif test "xBUILD" = "xBUILD"; then 51222 # When building a buildjdk, it's always only the server variant 51223 OPENJDK_BUILD_JAVA_BASE_LDFLAGS="${OPENJDK_BUILD_JAVA_BASE_LDFLAGS} \ 51224 -L\$(SUPPORT_OUTPUTDIR)/modules_libs/java.base\$(OPENJDK_BUILD_CPU_LIBDIR)/server" 51225 fi 51226 51227 OPENJDK_BUILD_JDKLIB_LIBS="-ljava -ljvm" 51228 if test "x$TOOLCHAIN_TYPE" = xsolstudio; then 51229 OPENJDK_BUILD_JDKLIB_LIBS="$OPENJDK_BUILD_JDKLIB_LIBS -lc" 51230 fi 51231 51232 fi 51233 51234 OPENJDK_BUILD_LDFLAGS_JDKLIB="${OPENJDK_BUILD_LDFLAGS_JDKLIB} ${OPENJDK_BUILD_JAVA_BASE_LDFLAGS}" 51235 51236 # Set OPENJDK_BUILD_JVM_LIBS (per os) 51237 if test "x$OPENJDK_BUILD_OS" = xlinux; then 51238 OPENJDK_BUILD_JVM_LIBS="$OPENJDK_BUILD_JVM_LIBS -lm -ldl -lpthread" 51239 elif test "x$OPENJDK_BUILD_OS" = xsolaris; then 51240 # FIXME: This hard-coded path is not really proper. 51241 if test "x$OPENJDK_BUILD_CPU" = xx86_64; then 51242 OPENJDK_BUILD_SOLARIS_LIBM_LIBS="/usr/lib/amd64/libm.so.1" 51243 elif test "x$OPENJDK_BUILD_CPU" = xsparcv9; then 51244 OPENJDK_BUILD_SOLARIS_LIBM_LIBS="/usr/lib/sparcv9/libm.so.1" 51245 fi 51246 OPENJDK_BUILD_JVM_LIBS="$OPENJDK_BUILD_JVM_LIBS -lsocket -lsched -ldl $SOLARIS_LIBM_LIBS -lCrun \ 51247 -lthread -ldoor -lc -ldemangle -lnsl -lkstat -lrt" 51248 elif test "x$OPENJDK_BUILD_OS" = xmacosx; then 51249 OPENJDK_BUILD_JVM_LIBS="$OPENJDK_BUILD_JVM_LIBS -lm" 51250 elif test "x$OPENJDK_BUILD_OS" = xaix; then 51251 OPENJDK_BUILD_JVM_LIBS="$OPENJDK_BUILD_JVM_LIBS -Wl,-lC_r -lm -ldl -lpthread" 51252 elif test "x$OPENJDK_BUILD_OS" = xbsd; then 51253 OPENJDK_BUILD_JVM_LIBS="$OPENJDK_BUILD_JVM_LIBS -lm" 51254 elif test "x$OPENJDK_BUILD_OS" = xwindows; then 51255 OPENJDK_BUILD_JVM_LIBS="$OPENJDK_BUILD_JVM_LIBS kernel32.lib user32.lib gdi32.lib winspool.lib \ 51256 comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib \ 51257 wsock32.lib winmm.lib version.lib psapi.lib" 51258 fi 51259 51260 # Set OPENJDK_BUILD_JVM_ASFLAGS 51261 if test "x$OPENJDK_BUILD_OS" = xlinux; then 51262 if test "x$OPENJDK_BUILD_CPU" = xx86; then 51263 OPENJDK_BUILD_JVM_ASFLAGS="$OPENJDK_BUILD_JVM_ASFLAGS -march=i586" 51264 fi 51265 elif test "x$OPENJDK_BUILD_OS" = xmacosx; then 51266 OPENJDK_BUILD_JVM_ASFLAGS="$OPENJDK_BUILD_JVM_ASFLAGS -x assembler-with-cpp -mno-omit-leaf-frame-pointer -mstack-alignment=16" 51267 fi 51268 51269 OPENJDK_BUILD_LDFLAGS_JDKLIB="${OPENJDK_BUILD_LDFLAGS_JDKLIB} ${OPENJDK_BUILD_EXTRA_LDFLAGS_JDK}" 51270 51271 51272 51273 51274 51275 51276 51277 51278 51279 51280 51281 51282 51283 51284 51285 # Tests are only ever compiled for TARGET 51286 # Flags for compiling test libraries 51287 CFLAGS_TESTLIB="$COMMON_CCXXFLAGS_JDK $CFLAGS_JDK $PICFLAG $CFLAGS_JDKLIB_EXTRA" 51288 CXXFLAGS_TESTLIB="$COMMON_CCXXFLAGS_JDK $CXXFLAGS_JDK $PICFLAG $CXXFLAGS_JDKLIB_EXTRA" 51289 51290 # Flags for compiling test executables 51291 CFLAGS_TESTEXE="$COMMON_CCXXFLAGS_JDK $CFLAGS_JDK" 51292 CXXFLAGS_TESTEXE="$COMMON_CCXXFLAGS_JDK $CXXFLAGS_JDK" 51293 51294 51295 51296 51297 51298 51299 LDFLAGS_TESTLIB="$LDFLAGS_JDKLIB" 51300 LDFLAGS_TESTEXE="$LDFLAGS_JDKEXE $JAVA_BASE_LDFLAGS" 51301 51302 51303 51304 51305 51306 51307 # Some Zero and Shark settings. 51308 # ZERO_ARCHFLAG tells the compiler which mode to build for 51309 case "${OPENJDK_TARGET_CPU}" in 51310 s390) 51311 ZERO_ARCHFLAG="${COMPILER_TARGET_BITS_FLAG}31" 51312 ;; 51313 *) 51314 ZERO_ARCHFLAG="${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}" 51315 esac 51316 51317 51318 51319 51320 51321 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 # Execute function body 51359 51360 51361 51362 51363 51364 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 # Execute function body 51408 51409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the C compiler supports \"$ZERO_ARCHFLAG\"" >&5 51410 $as_echo_n "checking if the C compiler supports \"$ZERO_ARCHFLAG\"... " >&6; } 51411 supports=yes 51412 51413 saved_cflags="$CFLAGS" 51414 CFLAGS="$CFLAGS $ZERO_ARCHFLAG" 51415 ac_ext=c 51416 ac_cpp='$CPP $CPPFLAGS' 51417 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 51418 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 51419 ac_compiler_gnu=$ac_cv_c_compiler_gnu 51420 51421 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 51422 /* end confdefs.h. */ 51423 int i; 51424 _ACEOF 51425 if ac_fn_c_try_compile "$LINENO"; then : 51426 51427 else 51428 supports=no 51429 fi 51430 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 51431 ac_ext=cpp 51432 ac_cpp='$CXXCPP $CPPFLAGS' 51433 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 51434 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 51435 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 51436 51437 CFLAGS="$saved_cflags" 51438 51439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supports" >&5 51440 $as_echo "$supports" >&6; } 51441 if test "x$supports" = "xyes" ; then 51442 : 51443 C_COMP_SUPPORTS="yes" 51444 else 51445 : 51446 C_COMP_SUPPORTS="no" 51447 fi 51448 51449 51450 51451 51452 51453 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 # Execute function body 51508 51509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the C++ compiler supports \"$ZERO_ARCHFLAG\"" >&5 51510 $as_echo_n "checking if the C++ compiler supports \"$ZERO_ARCHFLAG\"... " >&6; } 51511 supports=yes 51512 51513 saved_cxxflags="$CXXFLAGS" 51514 CXXFLAGS="$CXXFLAG $ZERO_ARCHFLAG" 51515 ac_ext=cpp 51516 ac_cpp='$CXXCPP $CPPFLAGS' 51517 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 51518 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 51519 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 51520 51521 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 51522 /* end confdefs.h. */ 51523 int i; 51524 _ACEOF 51525 if ac_fn_cxx_try_compile "$LINENO"; then : 51526 51527 else 51528 supports=no 51529 fi 51530 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 51531 ac_ext=cpp 51532 ac_cpp='$CXXCPP $CPPFLAGS' 51533 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 51534 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 51535 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 51536 51537 CXXFLAGS="$saved_cxxflags" 51538 51539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supports" >&5 51540 $as_echo "$supports" >&6; } 51541 if test "x$supports" = "xyes" ; then 51542 : 51543 CXX_COMP_SUPPORTS="yes" 51544 else 51545 : 51546 CXX_COMP_SUPPORTS="no" 51547 fi 51548 51549 51550 51551 51552 51553 51554 51555 51556 51557 51558 51559 51560 51561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if both compilers support \"$ZERO_ARCHFLAG\"" >&5 51562 $as_echo_n "checking if both compilers support \"$ZERO_ARCHFLAG\"... " >&6; } 51563 supports=no 51564 if test "x$C_COMP_SUPPORTS" = "xyes" -a "x$CXX_COMP_SUPPORTS" = "xyes"; then supports=yes; fi 51565 51566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supports" >&5 51567 $as_echo "$supports" >&6; } 51568 if test "x$supports" = "xyes" ; then 51569 : 51570 51571 else 51572 : 51573 ZERO_ARCHFLAG="" 51574 fi 51575 51576 51577 51578 51579 51580 51581 51582 51583 # Check that the compiler supports -mX (or -qX on AIX) flags 51584 # Set COMPILER_SUPPORTS_TARGET_BITS_FLAG to 'true' if it does 51585 51586 51587 51588 51589 51590 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 # Execute function body 51633 51634 51635 51636 51637 51638 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 # Execute function body 51682 51683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the C compiler supports \"${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}\"" >&5 51684 $as_echo_n "checking if the C compiler supports \"${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}\"... " >&6; } 51685 supports=yes 51686 51687 saved_cflags="$CFLAGS" 51688 CFLAGS="$CFLAGS ${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}" 51689 ac_ext=c 51690 ac_cpp='$CPP $CPPFLAGS' 51691 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 51692 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 51693 ac_compiler_gnu=$ac_cv_c_compiler_gnu 51694 51695 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 51696 /* end confdefs.h. */ 51697 int i; 51698 _ACEOF 51699 if ac_fn_c_try_compile "$LINENO"; then : 51700 51701 else 51702 supports=no 51703 fi 51704 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 51705 ac_ext=cpp 51706 ac_cpp='$CXXCPP $CPPFLAGS' 51707 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 51708 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 51709 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 51710 51711 CFLAGS="$saved_cflags" 51712 51713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supports" >&5 51714 $as_echo "$supports" >&6; } 51715 if test "x$supports" = "xyes" ; then 51716 : 51717 C_COMP_SUPPORTS="yes" 51718 else 51719 : 51720 C_COMP_SUPPORTS="no" 51721 fi 51722 51723 51724 51725 51726 51727 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 # Execute function body 51782 51783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the C++ compiler supports \"${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}\"" >&5 51784 $as_echo_n "checking if the C++ compiler supports \"${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}\"... " >&6; } 51785 supports=yes 51786 51787 saved_cxxflags="$CXXFLAGS" 51788 CXXFLAGS="$CXXFLAG ${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}" 51789 ac_ext=cpp 51790 ac_cpp='$CXXCPP $CPPFLAGS' 51791 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 51792 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 51793 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 51794 51795 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 51796 /* end confdefs.h. */ 51797 int i; 51798 _ACEOF 51799 if ac_fn_cxx_try_compile "$LINENO"; then : 51800 51801 else 51802 supports=no 51803 fi 51804 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 51805 ac_ext=cpp 51806 ac_cpp='$CXXCPP $CPPFLAGS' 51807 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 51808 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 51809 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 51810 51811 CXXFLAGS="$saved_cxxflags" 51812 51813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supports" >&5 51814 $as_echo "$supports" >&6; } 51815 if test "x$supports" = "xyes" ; then 51816 : 51817 CXX_COMP_SUPPORTS="yes" 51818 else 51819 : 51820 CXX_COMP_SUPPORTS="no" 51821 fi 51822 51823 51824 51825 51826 51827 51828 51829 51830 51831 51832 51833 51834 51835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if both compilers support \"${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}\"" >&5 51836 $as_echo_n "checking if both compilers support \"${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}\"... " >&6; } 51837 supports=no 51838 if test "x$C_COMP_SUPPORTS" = "xyes" -a "x$CXX_COMP_SUPPORTS" = "xyes"; then supports=yes; fi 51839 51840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supports" >&5 51841 $as_echo "$supports" >&6; } 51842 if test "x$supports" = "xyes" ; then 51843 : 51844 COMPILER_SUPPORTS_TARGET_BITS_FLAG=true 51845 else 51846 : 51847 COMPILER_SUPPORTS_TARGET_BITS_FLAG=false 51848 fi 51849 51850 51851 51852 51853 51854 51855 51856 51857 # Check whether --enable-warnings-as-errors was given. 51858 if test "${enable_warnings_as_errors+set}" = set; then : 51859 enableval=$enable_warnings_as_errors; 51860 fi 51861 51862 51863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if native warnings are errors" >&5 51864 $as_echo_n "checking if native warnings are errors... " >&6; } 51865 if test "x$enable_warnings_as_errors" = "xyes"; then 51866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (explicitly set)" >&5 51867 $as_echo "yes (explicitly set)" >&6; } 51868 WARNINGS_AS_ERRORS=true 51869 elif test "x$enable_warnings_as_errors" = "xno"; then 51870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 51871 $as_echo "no" >&6; } 51872 WARNINGS_AS_ERRORS=false 51873 elif test "x$enable_warnings_as_errors" = "x"; then 51874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (default)" >&5 51875 $as_echo "yes (default)" >&6; } 51876 WARNINGS_AS_ERRORS=true 51877 else 51878 as_fn_error $? "--enable-warnings-as-errors accepts no argument" "$LINENO" 5 51879 fi 51880 51881 if test "x$WARNINGS_AS_ERRORS" = "xfalse"; then 51882 # Set legacy hotspot variable 51883 HOTSPOT_SET_WARNINGS_AS_ERRORS="WARNINGS_ARE_ERRORS=" 51884 else 51885 HOTSPOT_SET_WARNINGS_AS_ERRORS="" 51886 fi 51887 51888 51889 51890 51891 case "${TOOLCHAIN_TYPE}" in 51892 microsoft) 51893 DISABLE_WARNING_PREFIX="-wd" 51894 CFLAGS_WARNINGS_ARE_ERRORS="-WX" 51895 ;; 51896 solstudio) 51897 DISABLE_WARNING_PREFIX="-erroff=" 51898 CFLAGS_WARNINGS_ARE_ERRORS="-errtags -errwarn=%all" 51899 ;; 51900 gcc) 51901 # Prior to gcc 4.4, a -Wno-X where X is unknown for that version of gcc will cause an error 51902 51903 51904 51905 51906 51907 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 # Execute function body 51950 51951 51952 51953 51954 51955 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 # Execute function body 51999 52000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the C compiler supports \"-Wno-this-is-a-warning-that-do-not-exist\"" >&5 52001 $as_echo_n "checking if the C compiler supports \"-Wno-this-is-a-warning-that-do-not-exist\"... " >&6; } 52002 supports=yes 52003 52004 saved_cflags="$CFLAGS" 52005 CFLAGS="$CFLAGS -Wno-this-is-a-warning-that-do-not-exist" 52006 ac_ext=c 52007 ac_cpp='$CPP $CPPFLAGS' 52008 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 52009 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 52010 ac_compiler_gnu=$ac_cv_c_compiler_gnu 52011 52012 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 52013 /* end confdefs.h. */ 52014 int i; 52015 _ACEOF 52016 if ac_fn_c_try_compile "$LINENO"; then : 52017 52018 else 52019 supports=no 52020 fi 52021 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 52022 ac_ext=cpp 52023 ac_cpp='$CXXCPP $CPPFLAGS' 52024 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 52025 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 52026 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 52027 52028 CFLAGS="$saved_cflags" 52029 52030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supports" >&5 52031 $as_echo "$supports" >&6; } 52032 if test "x$supports" = "xyes" ; then 52033 : 52034 C_COMP_SUPPORTS="yes" 52035 else 52036 : 52037 C_COMP_SUPPORTS="no" 52038 fi 52039 52040 52041 52042 52043 52044 52045 52046 52047 52048 52049 52050 52051 52052 52053 52054 52055 52056 52057 52058 52059 52060 52061 52062 52063 52064 52065 52066 52067 52068 52069 52070 52071 52072 52073 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 # Execute function body 52099 52100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the C++ compiler supports \"-Wno-this-is-a-warning-that-do-not-exist\"" >&5 52101 $as_echo_n "checking if the C++ compiler supports \"-Wno-this-is-a-warning-that-do-not-exist\"... " >&6; } 52102 supports=yes 52103 52104 saved_cxxflags="$CXXFLAGS" 52105 CXXFLAGS="$CXXFLAG -Wno-this-is-a-warning-that-do-not-exist" 52106 ac_ext=cpp 52107 ac_cpp='$CXXCPP $CPPFLAGS' 52108 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 52109 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 52110 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 52111 52112 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 52113 /* end confdefs.h. */ 52114 int i; 52115 _ACEOF 52116 if ac_fn_cxx_try_compile "$LINENO"; then : 52117 52118 else 52119 supports=no 52120 fi 52121 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 52122 ac_ext=cpp 52123 ac_cpp='$CXXCPP $CPPFLAGS' 52124 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 52125 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 52126 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 52127 52128 CXXFLAGS="$saved_cxxflags" 52129 52130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supports" >&5 52131 $as_echo "$supports" >&6; } 52132 if test "x$supports" = "xyes" ; then 52133 : 52134 CXX_COMP_SUPPORTS="yes" 52135 else 52136 : 52137 CXX_COMP_SUPPORTS="no" 52138 fi 52139 52140 52141 52142 52143 52144 52145 52146 52147 52148 52149 52150 52151 52152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if both compilers support \"-Wno-this-is-a-warning-that-do-not-exist\"" >&5 52153 $as_echo_n "checking if both compilers support \"-Wno-this-is-a-warning-that-do-not-exist\"... " >&6; } 52154 supports=no 52155 if test "x$C_COMP_SUPPORTS" = "xyes" -a "x$CXX_COMP_SUPPORTS" = "xyes"; then supports=yes; fi 52156 52157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supports" >&5 52158 $as_echo "$supports" >&6; } 52159 if test "x$supports" = "xyes" ; then 52160 : 52161 GCC_CAN_DISABLE_WARNINGS=true 52162 else 52163 : 52164 GCC_CAN_DISABLE_WARNINGS=false 52165 52166 fi 52167 52168 52169 52170 52171 52172 52173 if test "x$GCC_CAN_DISABLE_WARNINGS" = "xtrue"; then 52174 DISABLE_WARNING_PREFIX="-Wno-" 52175 else 52176 DISABLE_WARNING_PREFIX= 52177 fi 52178 CFLAGS_WARNINGS_ARE_ERRORS="-Werror" 52179 # Repeate the check for the BUILD_CC and BUILD_CXX. Need to also reset 52180 # CFLAGS since any target specific flags will likely not work with the 52181 # build compiler 52182 CC_OLD="$CC" 52183 CXX_OLD="$CXX" 52184 CC="$BUILD_CC" 52185 CXX="$BUILD_CXX" 52186 CFLAGS_OLD="$CFLAGS" 52187 CFLAGS="" 52188 52189 52190 52191 52192 52193 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 # Execute function body 52236 52237 52238 52239 52240 52241 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 # Execute function body 52285 52286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the C compiler supports \"-Wno-this-is-a-warning-that-do-not-exist\"" >&5 52287 $as_echo_n "checking if the C compiler supports \"-Wno-this-is-a-warning-that-do-not-exist\"... " >&6; } 52288 supports=yes 52289 52290 saved_cflags="$CFLAGS" 52291 CFLAGS="$CFLAGS -Wno-this-is-a-warning-that-do-not-exist" 52292 ac_ext=c 52293 ac_cpp='$CPP $CPPFLAGS' 52294 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 52295 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 52296 ac_compiler_gnu=$ac_cv_c_compiler_gnu 52297 52298 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 52299 /* end confdefs.h. */ 52300 int i; 52301 _ACEOF 52302 if ac_fn_c_try_compile "$LINENO"; then : 52303 52304 else 52305 supports=no 52306 fi 52307 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 52308 ac_ext=cpp 52309 ac_cpp='$CXXCPP $CPPFLAGS' 52310 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 52311 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 52312 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 52313 52314 CFLAGS="$saved_cflags" 52315 52316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supports" >&5 52317 $as_echo "$supports" >&6; } 52318 if test "x$supports" = "xyes" ; then 52319 : 52320 C_COMP_SUPPORTS="yes" 52321 else 52322 : 52323 C_COMP_SUPPORTS="no" 52324 fi 52325 52326 52327 52328 52329 52330 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 # Execute function body 52385 52386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the C++ compiler supports \"-Wno-this-is-a-warning-that-do-not-exist\"" >&5 52387 $as_echo_n "checking if the C++ compiler supports \"-Wno-this-is-a-warning-that-do-not-exist\"... " >&6; } 52388 supports=yes 52389 52390 saved_cxxflags="$CXXFLAGS" 52391 CXXFLAGS="$CXXFLAG -Wno-this-is-a-warning-that-do-not-exist" 52392 ac_ext=cpp 52393 ac_cpp='$CXXCPP $CPPFLAGS' 52394 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 52395 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 52396 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 52397 52398 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 52399 /* end confdefs.h. */ 52400 int i; 52401 _ACEOF 52402 if ac_fn_cxx_try_compile "$LINENO"; then : 52403 52404 else 52405 supports=no 52406 fi 52407 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 52408 ac_ext=cpp 52409 ac_cpp='$CXXCPP $CPPFLAGS' 52410 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 52411 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 52412 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 52413 52414 CXXFLAGS="$saved_cxxflags" 52415 52416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supports" >&5 52417 $as_echo "$supports" >&6; } 52418 if test "x$supports" = "xyes" ; then 52419 : 52420 CXX_COMP_SUPPORTS="yes" 52421 else 52422 : 52423 CXX_COMP_SUPPORTS="no" 52424 fi 52425 52426 52427 52428 52429 52430 52431 52432 52433 52434 52435 52436 52437 52438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if both compilers support \"-Wno-this-is-a-warning-that-do-not-exist\"" >&5 52439 $as_echo_n "checking if both compilers support \"-Wno-this-is-a-warning-that-do-not-exist\"... " >&6; } 52440 supports=no 52441 if test "x$C_COMP_SUPPORTS" = "xyes" -a "x$CXX_COMP_SUPPORTS" = "xyes"; then supports=yes; fi 52442 52443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supports" >&5 52444 $as_echo "$supports" >&6; } 52445 if test "x$supports" = "xyes" ; then 52446 : 52447 BUILD_CC_CAN_DISABLE_WARNINGS=true 52448 else 52449 : 52450 BUILD_CC_CAN_DISABLE_WARNINGS=false 52451 52452 fi 52453 52454 52455 52456 52457 52458 52459 if test "x$BUILD_CC_CAN_DISABLE_WARNINGS" = "xtrue"; then 52460 BUILD_CC_DISABLE_WARNING_PREFIX="-Wno-" 52461 else 52462 BUILD_CC_DISABLE_WARNING_PREFIX= 52463 fi 52464 CC="$CC_OLD" 52465 CXX="$CXX_OLD" 52466 CFLAGS="$CFLAGS_OLD" 52467 ;; 52468 clang) 52469 DISABLE_WARNING_PREFIX="-Wno-" 52470 CFLAGS_WARNINGS_ARE_ERRORS="-Werror" 52471 ;; 52472 xlc) 52473 DISABLE_WARNING_PREFIX="-qsuppress=" 52474 CFLAGS_WARNINGS_ARE_ERRORS="-qhalt=w" 52475 ;; 52476 esac 52477 52478 52479 52480 52481 52482 # Setup debug symbols (need objcopy from the toolchain for that) 52483 52484 # 52485 # NATIVE_DEBUG_SYMBOLS 52486 # This must be done after the toolchain is setup, since we're looking at objcopy. 52487 # 52488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what type of native debug symbols to use" >&5 52489 $as_echo_n "checking what type of native debug symbols to use... " >&6; } 52490 52491 # Check whether --with-native-debug-symbols was given. 52492 if test "${with_native_debug_symbols+set}" = set; then : 52493 withval=$with_native_debug_symbols; 52494 if test "x$OPENJDK_TARGET_OS" = xaix; then 52495 if test "x$withval" = xexternal || test "x$withval" = xzipped; then 52496 as_fn_error $? "AIX only supports the parameters 'none' and 'internal' for --with-native-debug-symbols" "$LINENO" 5 52497 fi 52498 fi 52499 52500 else 52501 52502 if test "x$OPENJDK_TARGET_OS" = xaix; then 52503 # AIX doesn't support 'zipped' so use 'internal' as default 52504 with_native_debug_symbols="internal" 52505 else 52506 if test "x$STATIC_BUILD" = xtrue; then 52507 with_native_debug_symbols="none" 52508 else 52509 with_native_debug_symbols="zipped" 52510 fi 52511 fi 52512 52513 fi 52514 52515 NATIVE_DEBUG_SYMBOLS=$with_native_debug_symbols 52516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NATIVE_DEBUG_SYMBOLS" >&5 52517 $as_echo "$NATIVE_DEBUG_SYMBOLS" >&6; } 52518 52519 if test "x$NATIVE_DEBUG_SYMBOLS" = xzipped; then 52520 52521 if test "x$OPENJDK_TARGET_OS" = xsolaris || test "x$OPENJDK_TARGET_OS" = xlinux; then 52522 if test "x$OBJCOPY" = x; then 52523 # enabling of enable-debug-symbols and can't find objcopy 52524 # this is an error 52525 as_fn_error $? "Unable to find objcopy, cannot enable native debug symbols" "$LINENO" 5 52526 fi 52527 fi 52528 52529 COMPILE_WITH_DEBUG_SYMBOLS=true 52530 COPY_DEBUG_SYMBOLS=true 52531 ZIP_EXTERNAL_DEBUG_SYMBOLS=true 52532 elif test "x$NATIVE_DEBUG_SYMBOLS" = xnone; then 52533 COMPILE_WITH_DEBUG_SYMBOLS=false 52534 COPY_DEBUG_SYMBOLS=false 52535 ZIP_EXTERNAL_DEBUG_SYMBOLS=false 52536 elif test "x$NATIVE_DEBUG_SYMBOLS" = xinternal; then 52537 COMPILE_WITH_DEBUG_SYMBOLS=true 52538 COPY_DEBUG_SYMBOLS=false 52539 ZIP_EXTERNAL_DEBUG_SYMBOLS=false 52540 elif test "x$NATIVE_DEBUG_SYMBOLS" = xexternal; then 52541 52542 if test "x$OPENJDK_TARGET_OS" = xsolaris || test "x$OPENJDK_TARGET_OS" = xlinux; then 52543 if test "x$OBJCOPY" = x; then 52544 # enabling of enable-debug-symbols and can't find objcopy 52545 # this is an error 52546 as_fn_error $? "Unable to find objcopy, cannot enable native debug symbols" "$LINENO" 5 52547 fi 52548 fi 52549 52550 COMPILE_WITH_DEBUG_SYMBOLS=true 52551 COPY_DEBUG_SYMBOLS=true 52552 ZIP_EXTERNAL_DEBUG_SYMBOLS=false 52553 else 52554 as_fn_error $? "Allowed native debug symbols are: none, internal, external, zipped" "$LINENO" 5 52555 fi 52556 52557 # --enable-debug-symbols is deprecated. 52558 # Please use --with-native-debug-symbols=[internal,external,zipped] . 52559 52560 # Check whether --enable-debug-symbols was given. 52561 if test "${enable_debug_symbols+set}" = set; then : 52562 enableval=$enable_debug_symbols; 52563 fi 52564 52565 if test "x$enable_debug_symbols" != x; then 52566 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Option --enable-debug-symbols is deprecated and will be ignored." >&5 52567 $as_echo "$as_me: WARNING: Option --enable-debug-symbols is deprecated and will be ignored." >&2;} 52568 52569 if test "xPlease use --with-native-debug-symbols=[internal,external,zipped] ." != x; then 52570 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Please use --with-native-debug-symbols=[internal,external,zipped] ." >&5 52571 $as_echo "$as_me: WARNING: Please use --with-native-debug-symbols=[internal,external,zipped] ." >&2;} 52572 fi 52573 52574 fi 52575 52576 52577 # --enable-zip-debug-info is deprecated. 52578 # Please use --with-native-debug-symbols=zipped . 52579 52580 # Check whether --enable-zip-debug-info was given. 52581 if test "${enable_zip_debug_info+set}" = set; then : 52582 enableval=$enable_zip_debug_info; 52583 fi 52584 52585 if test "x$enable_zip_debug_info" != x; then 52586 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Option --enable-zip-debug-info is deprecated and will be ignored." >&5 52587 $as_echo "$as_me: WARNING: Option --enable-zip-debug-info is deprecated and will be ignored." >&2;} 52588 52589 if test "xPlease use --with-native-debug-symbols=zipped ." != x; then 52590 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Please use --with-native-debug-symbols=zipped ." >&5 52591 $as_echo "$as_me: WARNING: Please use --with-native-debug-symbols=zipped ." >&2;} 52592 fi 52593 52594 fi 52595 52596 52597 52598 52599 52600 52601 52602 # Check whether --enable-native-coverage was given. 52603 if test "${enable_native_coverage+set}" = set; then : 52604 enableval=$enable_native_coverage; 52605 fi 52606 52607 GCOV_ENABLED="false" 52608 if test "x$enable_native_coverage" = "xyes"; then 52609 if test "x$TOOLCHAIN_TYPE" = "xgcc"; then 52610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if native coverage is enabled" >&5 52611 $as_echo_n "checking if native coverage is enabled... " >&6; } 52612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 52613 $as_echo "yes" >&6; } 52614 GCOV_CFLAGS="-fprofile-arcs -ftest-coverage -fno-inline" 52615 GCOV_LDFLAGS="-fprofile-arcs" 52616 LEGACY_EXTRA_CFLAGS="$LEGACY_EXTRA_CFLAGS $GCOV_CFLAGS" 52617 LEGACY_EXTRA_CXXFLAGS="$LEGACY_EXTRA_CXXFLAGS $GCOV_CFLAGS" 52618 LEGACY_EXTRA_LDFLAGS="$LEGACY_EXTRA_LDFLAGS $GCOV_LDFLAGS" 52619 CFLAGS_JDKLIB="$CFLAGS_JDKLIB $GCOV_CFLAGS" 52620 CFLAGS_JDKEXE="$CFLAGS_JDKEXE $GCOV_CFLAGS" 52621 CXXFLAGS_JDKLIB="$CXXFLAGS_JDKLIB $GCOV_CFLAGS" 52622 CXXFLAGS_JDKEXE="$CXXFLAGS_JDKEXE $GCOV_CFLAGS" 52623 LDFLAGS_JDKLIB="$LDFLAGS_JDKLIB $GCOV_LDFLAGS" 52624 LDFLAGS_JDKEXE="$LDFLAGS_JDKEXE $GCOV_LDFLAGS" 52625 GCOV_ENABLED="true" 52626 else 52627 as_fn_error $? "--enable-native-coverage only works with toolchain type gcc" "$LINENO" 5 52628 fi 52629 elif test "x$enable_native_coverage" = "xno"; then 52630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if native coverage is enabled" >&5 52631 $as_echo_n "checking if native coverage is enabled... " >&6; } 52632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 52633 $as_echo "no" >&6; } 52634 elif test "x$enable_native_coverage" != "x"; then 52635 as_fn_error $? "--enable-native-coverage can only be assigned \"yes\" or \"no\"" "$LINENO" 5 52636 fi 52637 52638 52639 52640 52641 # Need toolchain to setup dtrace 52642 52643 # Test for dtrace dependencies 52644 # Check whether --enable-dtrace was given. 52645 if test "${enable_dtrace+set}" = set; then : 52646 enableval=$enable_dtrace; 52647 fi 52648 52649 52650 DTRACE_DEP_MISSING=false 52651 52652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dtrace tool" >&5 52653 $as_echo_n "checking for dtrace tool... " >&6; } 52654 if test "x$DTRACE" != "x" && test -x "$DTRACE"; then 52655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DTRACE" >&5 52656 $as_echo "$DTRACE" >&6; } 52657 else 52658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found, cannot build dtrace" >&5 52659 $as_echo "not found, cannot build dtrace" >&6; } 52660 DTRACE_DEP_MISSING=true 52661 fi 52662 52663 for ac_header in sys/sdt.h 52664 do : 52665 ac_fn_cxx_check_header_mongrel "$LINENO" "sys/sdt.h" "ac_cv_header_sys_sdt_h" "$ac_includes_default" 52666 if test "x$ac_cv_header_sys_sdt_h" = xyes; then : 52667 cat >>confdefs.h <<_ACEOF 52668 #define HAVE_SYS_SDT_H 1 52669 _ACEOF 52670 DTRACE_HEADERS_OK=yes 52671 else 52672 DTRACE_HEADERS_OK=no 52673 fi 52674 52675 done 52676 52677 if test "x$DTRACE_HEADERS_OK" != "xyes"; then 52678 DTRACE_DEP_MISSING=true 52679 fi 52680 52681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if dtrace should be built" >&5 52682 $as_echo_n "checking if dtrace should be built... " >&6; } 52683 if test "x$enable_dtrace" = "xyes"; then 52684 if test "x$DTRACE_DEP_MISSING" = "xtrue"; then 52685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, missing dependencies" >&5 52686 $as_echo "no, missing dependencies" >&6; } 52687 52688 # Print a helpful message on how to acquire the necessary build dependency. 52689 # dtrace is the help tag: freetype, cups, alsa etc 52690 MISSING_DEPENDENCY=dtrace 52691 52692 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 52693 cygwin_help $MISSING_DEPENDENCY 52694 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 52695 msys_help $MISSING_DEPENDENCY 52696 else 52697 PKGHANDLER_COMMAND= 52698 52699 case $PKGHANDLER in 52700 apt-get) 52701 apt_help $MISSING_DEPENDENCY ;; 52702 yum) 52703 yum_help $MISSING_DEPENDENCY ;; 52704 port) 52705 port_help $MISSING_DEPENDENCY ;; 52706 pkgutil) 52707 pkgutil_help $MISSING_DEPENDENCY ;; 52708 pkgadd) 52709 pkgadd_help $MISSING_DEPENDENCY ;; 52710 esac 52711 52712 if test "x$PKGHANDLER_COMMAND" != x; then 52713 HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'." 52714 fi 52715 fi 52716 52717 as_fn_error $? "Cannot enable dtrace with missing dependencies. See above. $HELP_MSG" "$LINENO" 5 52718 else 52719 INCLUDE_DTRACE=true 52720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, forced" >&5 52721 $as_echo "yes, forced" >&6; } 52722 fi 52723 elif test "x$enable_dtrace" = "xno"; then 52724 INCLUDE_DTRACE=false 52725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, forced" >&5 52726 $as_echo "no, forced" >&6; } 52727 elif test "x$enable_dtrace" = "xauto" || test "x$enable_dtrace" = "x"; then 52728 if test "x$DTRACE_DEP_MISSING" = "xtrue"; then 52729 INCLUDE_DTRACE=false 52730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, missing dependencies" >&5 52731 $as_echo "no, missing dependencies" >&6; } 52732 else 52733 INCLUDE_DTRACE=true 52734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, dependencies present" >&5 52735 $as_echo "yes, dependencies present" >&6; } 52736 fi 52737 else 52738 as_fn_error $? "Invalid value for --enable-dtrace: $enable_dtrace" "$LINENO" 5 52739 fi 52740 52741 52742 52743 # The user can in some cases supply additional jvm features. For the custom 52744 # variant, this defines the entire variant. 52745 52746 # Check whether --with-jvm-features was given. 52747 if test "${with_jvm_features+set}" = set; then : 52748 withval=$with_jvm_features; 52749 fi 52750 52751 if test "x$with_jvm_features" != x; then 52752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking additional JVM features" >&5 52753 $as_echo_n "checking additional JVM features... " >&6; } 52754 JVM_FEATURES=`$ECHO $with_jvm_features | $SED -e 's/,/ /g'` 52755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JVM_FEATURES" >&5 52756 $as_echo "$JVM_FEATURES" >&6; } 52757 fi 52758 52759 # Verify that dependencies are met for explicitly set features. 52760 if [[ " $JVM_FEATURES " =~ " jvmti " ]] && ! [[ " $JVM_FEATURES " =~ " services " ]] ; then 52761 as_fn_error $? "Specified JVM feature 'jvmti' requires feature 'services'" "$LINENO" 5 52762 fi 52763 52764 if [[ " $JVM_FEATURES " =~ " management " ]] && ! [[ " $JVM_FEATURES " =~ " nmt " ]] ; then 52765 as_fn_error $? "Specified JVM feature 'management' requires feature 'nmt'" "$LINENO" 5 52766 fi 52767 52768 if [[ " $JVM_FEATURES " =~ " jvmci " ]] && ! ( [[ " $JVM_FEATURES " =~ " compiler1 " ]] || [[ " $JVM_FEATURES " =~ " compiler2 " ]] ); then 52769 as_fn_error $? "Specified JVM feature 'jvmci' requires feature 'compiler2' or 'compiler1'" "$LINENO" 5 52770 fi 52771 52772 if [[ " $JVM_FEATURES " =~ " compiler2 " ]] && ! [[ " $JVM_FEATURES " =~ " all-gcs " ]] ; then 52773 as_fn_error $? "Specified JVM feature 'compiler2' requires feature 'all-gcs'" "$LINENO" 5 52774 fi 52775 52776 if [[ " $JVM_FEATURES " =~ " vm-structs " ]] && ! [[ " $JVM_FEATURES " =~ " all-gcs " ]] ; then 52777 as_fn_error $? "Specified JVM feature 'vm-structs' requires feature 'all-gcs'" "$LINENO" 5 52778 fi 52779 52780 # Turn on additional features based on other parts of configure 52781 if test "x$INCLUDE_DTRACE" = "xtrue"; then 52782 JVM_FEATURES="$JVM_FEATURES dtrace" 52783 else 52784 if [[ " $JVM_FEATURES " =~ " dtrace " ]] ; then 52785 as_fn_error $? "To enable dtrace, you must use --enable-dtrace" "$LINENO" 5 52786 fi 52787 fi 52788 52789 if test "x$STATIC_BUILD" = "xtrue"; then 52790 JVM_FEATURES="$JVM_FEATURES static-build" 52791 else 52792 if [[ " $JVM_FEATURES " =~ " static-build " ]] ; then 52793 as_fn_error $? "To enable static-build, you must use --enable-static-build" "$LINENO" 5 52794 fi 52795 fi 52796 52797 if ! [[ " $JVM_VARIANTS " =~ " zero " ]] && ! [[ " $JVM_VARIANTS " =~ " zeroshark " ]] ; then 52798 if [[ " $JVM_FEATURES " =~ " zero " ]] ; then 52799 as_fn_error $? "To enable zero/zeroshark, you must use --with-jvm-variants=zero/zeroshark" "$LINENO" 5 52800 fi 52801 fi 52802 52803 if ! [[ " $JVM_VARIANTS " =~ " zeroshark " ]] ; then 52804 if [[ " $JVM_FEATURES " =~ " shark " ]] ; then 52805 as_fn_error $? "To enable shark, you must use --with-jvm-variants=zeroshark" "$LINENO" 5 52806 fi 52807 fi 52808 52809 # Only enable jvmci on x86_64, sparcv9 and aarch64. 52810 if test "x$OPENJDK_TARGET_CPU" = "xx86_64" || \ 52811 test "x$OPENJDK_TARGET_CPU" = "xsparcv9" || \ 52812 test "x$OPENJDK_TARGET_CPU" = "xaarch64" ; then 52813 JVM_FEATURES_jvmci="jvmci" 52814 else 52815 JVM_FEATURES_jvmci="" 52816 fi 52817 52818 # All variants but minimal (and custom) get these features 52819 NON_MINIMAL_FEATURES="$NON_MINIMAL_FEATURES jvmti fprof vm-structs jni-check services management all-gcs nmt cds" 52820 52821 # Enable features depending on variant. 52822 JVM_FEATURES_server="compiler1 compiler2 $NON_MINIMAL_FEATURES $JVM_FEATURES $JVM_FEATURES_jvmci" 52823 JVM_FEATURES_client="compiler1 $NON_MINIMAL_FEATURES $JVM_FEATURES $JVM_FEATURES_jvmci" 52824 JVM_FEATURES_core="$NON_MINIMAL_FEATURES $JVM_FEATURES" 52825 JVM_FEATURES_minimal="compiler1 minimal $JVM_FEATURES" 52826 JVM_FEATURES_zero="zero $NON_MINIMAL_FEATURES $JVM_FEATURES" 52827 JVM_FEATURES_zeroshark="zero shark $NON_MINIMAL_FEATURES $JVM_FEATURES" 52828 JVM_FEATURES_custom="$JVM_FEATURES" 52829 52830 52831 52832 52833 52834 52835 52836 52837 52838 # Used for verification of Makefiles by check-jvm-feature 52839 52840 52841 # We don't support --with-jvm-interpreter anymore, use zero instead. 52842 52843 52844 # Check whether --with-jvm-interpreter was given. 52845 if test "${with_jvm_interpreter+set}" = set; then : 52846 withval=$with_jvm_interpreter; { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Option --with-jvm-interpreter is deprecated and will be ignored." >&5 52847 $as_echo "$as_me: WARNING: Option --with-jvm-interpreter is deprecated and will be ignored." >&2;} 52848 fi 52849 52850 52851 52852 52853 # Check whether --enable-hotspot-gtest was given. 52854 if test "${enable_hotspot_gtest+set}" = set; then : 52855 enableval=$enable_hotspot_gtest; 52856 fi 52857 52858 52859 if test -e "$HOTSPOT_TOPDIR/test/native"; then 52860 GTEST_DIR_EXISTS="true" 52861 else 52862 GTEST_DIR_EXISTS="false" 52863 fi 52864 52865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Hotspot gtest unit tests should be built" >&5 52866 $as_echo_n "checking if Hotspot gtest unit tests should be built... " >&6; } 52867 if test "x$enable_hotspot_gtest" = "xyes"; then 52868 if test "x$GTEST_DIR_EXISTS" = "xtrue"; then 52869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, forced" >&5 52870 $as_echo "yes, forced" >&6; } 52871 BUILD_GTEST="true" 52872 else 52873 as_fn_error $? "Cannot build gtest without the test source" "$LINENO" 5 52874 fi 52875 elif test "x$enable_hotspot_gtest" = "xno"; then 52876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, forced" >&5 52877 $as_echo "no, forced" >&6; } 52878 BUILD_GTEST="false" 52879 elif test "x$enable_hotspot_gtest" = "x"; then 52880 if test "x$GTEST_DIR_EXISTS" = "xtrue" && test "x$OPENJDK_TARGET_OS" != "xaix"; then 52881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 52882 $as_echo "yes" >&6; } 52883 BUILD_GTEST="true" 52884 else 52885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 52886 $as_echo "no" >&6; } 52887 BUILD_GTEST="false" 52888 fi 52889 else 52890 as_fn_error $? "--enable-gtest must be either yes or no" "$LINENO" 5 52891 fi 52892 52893 52894 52895 52896 ############################################################################### 52897 # 52898 # Check dependencies for external and internal libraries. 52899 # 52900 ############################################################################### 52901 52902 # After we have toolchain, we can compile fixpath. It's needed by the lib checks. 52903 52904 # When using cygwin or msys, we need a wrapper binary that renames 52905 # /cygdrive/c/ arguments into c:/ arguments and peeks into 52906 # @files and rewrites these too! This wrapper binary is 52907 # called fixpath. 52908 FIXPATH= 52909 if test "x$OPENJDK_BUILD_OS" = xwindows; then 52910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fixpath can be created" >&5 52911 $as_echo_n "checking if fixpath can be created... " >&6; } 52912 FIXPATH_SRC="$SRC_ROOT/common/src/fixpath.c" 52913 FIXPATH_BIN="$CONFIGURESUPPORT_OUTPUTDIR/bin/fixpath.exe" 52914 FIXPATH_DIR="$CONFIGURESUPPORT_OUTPUTDIR/fixpath" 52915 if test "x$OPENJDK_BUILD_OS_ENV" = xwindows.cygwin; then 52916 # Important to keep the .exe suffix on Cygwin for Hotspot makefiles 52917 FIXPATH="$FIXPATH_BIN -c" 52918 elif test "x$OPENJDK_BUILD_OS_ENV" = xwindows.msys; then 52919 # Take all collected prefixes and turn them into a -m/c/foo@/c/bar@... command line 52920 # @ was chosen as separator to minimize risk of other tools messing around with it 52921 all_unique_prefixes=`echo "${all_fixpath_prefixes[@]}" \ 52922 | tr ' ' '\n' | $GREP '^/./' | $SORT | $UNIQ` 52923 fixpath_argument_list=`echo $all_unique_prefixes | tr ' ' '@'` 52924 FIXPATH="$FIXPATH_BIN -m$fixpath_argument_list" 52925 fi 52926 FIXPATH_SRC_W="$FIXPATH_SRC" 52927 FIXPATH_BIN_W="$FIXPATH_BIN" 52928 52929 unix_path="$FIXPATH_SRC_W" 52930 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 52931 windows_path=`$CYGPATH -m "$unix_path"` 52932 FIXPATH_SRC_W="$windows_path" 52933 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 52934 windows_path=`cmd //c echo $unix_path` 52935 FIXPATH_SRC_W="$windows_path" 52936 fi 52937 52938 52939 unix_path="$FIXPATH_BIN_W" 52940 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 52941 windows_path=`$CYGPATH -m "$unix_path"` 52942 FIXPATH_BIN_W="$windows_path" 52943 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 52944 windows_path=`cmd //c echo $unix_path` 52945 FIXPATH_BIN_W="$windows_path" 52946 fi 52947 52948 $RM -rf $FIXPATH_BIN $FIXPATH_DIR 52949 $MKDIR -p $FIXPATH_DIR $CONFIGURESUPPORT_OUTPUTDIR/bin 52950 cd $FIXPATH_DIR 52951 $CC $FIXPATH_SRC_W -Fe$FIXPATH_BIN_W > $FIXPATH_DIR/fixpath1.log 2>&1 52952 cd $CURDIR 52953 52954 if test ! -x $FIXPATH_BIN; then 52955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 52956 $as_echo "no" >&6; } 52957 cat $FIXPATH_DIR/fixpath1.log 52958 as_fn_error $? "Could not create $FIXPATH_BIN" "$LINENO" 5 52959 fi 52960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 52961 $as_echo "yes" >&6; } 52962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fixpath.exe works" >&5 52963 $as_echo_n "checking if fixpath.exe works... " >&6; } 52964 cd $FIXPATH_DIR 52965 $FIXPATH $CC $FIXPATH_SRC -Fe$FIXPATH_DIR/fixpath2.exe \ 52966 > $FIXPATH_DIR/fixpath2.log 2>&1 52967 cd $CURDIR 52968 if test ! -x $FIXPATH_DIR/fixpath2.exe; then 52969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 52970 $as_echo "no" >&6; } 52971 cat $FIXPATH_DIR/fixpath2.log 52972 as_fn_error $? "fixpath did not work!" "$LINENO" 5 52973 fi 52974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 52975 $as_echo "yes" >&6; } 52976 52977 FIXPATH_DETACH_FLAG="--detach" 52978 fi 52979 52980 52981 52982 52983 52984 52985 # Check if X11 is needed 52986 if test "x$OPENJDK_TARGET_OS" = xwindows || test "x$OPENJDK_TARGET_OS" = xmacosx; then 52987 # No X11 support on windows or macosx 52988 NEEDS_LIB_X11=false 52989 else 52990 # All other instances need X11, even if building headless only, libawt still 52991 # needs X11 headers. 52992 NEEDS_LIB_X11=true 52993 fi 52994 52995 # Check if cups is needed 52996 if test "x$OPENJDK_TARGET_OS" = xwindows; then 52997 # Windows have a separate print system 52998 NEEDS_LIB_CUPS=false 52999 else 53000 NEEDS_LIB_CUPS=true 53001 fi 53002 53003 # A custom hook may have set this already 53004 if test "x$NEEDS_LIB_FREETYPE" = "x"; then 53005 NEEDS_LIB_FREETYPE=true 53006 fi 53007 53008 # Check if alsa is needed 53009 if test "x$OPENJDK_TARGET_OS" = xlinux; then 53010 NEEDS_LIB_ALSA=true 53011 else 53012 NEEDS_LIB_ALSA=false 53013 fi 53014 53015 # Check if ffi is needed 53016 if [[ " $JVM_VARIANTS " =~ " zero " ]] || [[ " $JVM_VARIANTS " =~ " zeroshark " ]] ; then 53017 NEEDS_LIB_FFI=true 53018 else 53019 NEEDS_LIB_FFI=false 53020 fi 53021 53022 53023 # statically link libstdc++ before C++ ABI is stablized on Linux unless 53024 # dynamic build is configured on command line. 53025 53026 # Check whether --with-stdc++lib was given. 53027 if test "${with_stdc__lib+set}" = set; then : 53028 withval=$with_stdc__lib; 53029 if test "x$with_stdc__lib" != xdynamic && test "x$with_stdc__lib" != xstatic \ 53030 && test "x$with_stdc__lib" != xdefault; then 53031 as_fn_error $? "Bad parameter value --with-stdc++lib=$with_stdc__lib!" "$LINENO" 5 53032 fi 53033 53034 else 53035 with_stdc__lib=default 53036 53037 fi 53038 53039 53040 if test "x$OPENJDK_TARGET_OS" = xlinux; then 53041 # Test if stdc++ can be linked statically. 53042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if static link of stdc++ is possible" >&5 53043 $as_echo_n "checking if static link of stdc++ is possible... " >&6; } 53044 STATIC_STDCXX_FLAGS="-static-libstdc++ -static-libgcc" 53045 ac_ext=cpp 53046 ac_cpp='$CXXCPP $CPPFLAGS' 53047 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 53048 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 53049 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 53050 53051 OLD_LIBS="$LIBS" 53052 LIBS="$STATIC_STDCXX_FLAGS" 53053 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 53054 /* end confdefs.h. */ 53055 53056 int 53057 main () 53058 { 53059 return 0; 53060 ; 53061 return 0; 53062 } 53063 _ACEOF 53064 if ac_fn_cxx_try_link "$LINENO"; then : 53065 has_static_libstdcxx=yes 53066 else 53067 has_static_libstdcxx=no 53068 fi 53069 rm -f core conftest.err conftest.$ac_objext \ 53070 conftest$ac_exeext conftest.$ac_ext 53071 LIBS="$OLD_LIBS" 53072 ac_ext=cpp 53073 ac_cpp='$CXXCPP $CPPFLAGS' 53074 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 53075 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 53076 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 53077 53078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_static_libstdcxx" >&5 53079 $as_echo "$has_static_libstdcxx" >&6; } 53080 53081 if test "x$with_stdc__lib" = xstatic && test "x$has_static_libstdcxx" = xno; then 53082 as_fn_error $? "Static linking of libstdc++ was not possible!" "$LINENO" 5 53083 fi 53084 53085 # If dynamic was requested, it's available since it would fail above otherwise. 53086 # If dynamic wasn't requested, go with static unless it isn't available. 53087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libstdc++" >&5 53088 $as_echo_n "checking how to link with libstdc++... " >&6; } 53089 if test "x$with_stdc__lib" = xdynamic || test "x$has_static_libstdcxx" = xno \ 53090 || [[ " $JVM_VARIANTS " =~ " zeroshark " ]] ; then 53091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: dynamic" >&5 53092 $as_echo "dynamic" >&6; } 53093 else 53094 LIBCXX="$LIBCXX $STATIC_STDCXX_FLAGS" 53095 JVM_LDFLAGS="$JVM_LDFLAGS $STATIC_STDCXX_FLAGS" 53096 # Ideally, we should test stdc++ for the BUILD toolchain separately. For now 53097 # just use the same setting as for the TARGET toolchain. 53098 OPENJDK_BUILD_JVM_LDFLAGS="$OPENJDK_BUILD_JVM_LDFLAGS $STATIC_STDCXX_FLAGS" 53099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: static" >&5 53100 $as_echo "static" >&6; } 53101 fi 53102 fi 53103 53104 # libCrun is the c++ runtime-library with SunStudio (roughly the equivalent of gcc's libstdc++.so) 53105 if test "x$TOOLCHAIN_TYPE" = xsolstudio && test "x$LIBCXX" = x; then 53106 LIBCXX="${SYSROOT}/usr/lib${OPENJDK_TARGET_CPU_ISADIR}/libCrun.so.1" 53107 fi 53108 53109 53110 53111 # Setup Windows runtime dlls 53112 if test "x$OPENJDK_TARGET_OS" = "xwindows"; then 53113 53114 53115 # Check whether --with-msvcr-dll was given. 53116 if test "${with_msvcr_dll+set}" = set; then : 53117 withval=$with_msvcr_dll; 53118 fi 53119 53120 53121 if test "x$with_msvcr_dll" != x; then 53122 # If given explicitly by user, do not probe. If not present, fail directly. 53123 53124 DLL_NAME="$MSVCR_NAME" 53125 POSSIBLE_MSVC_DLL="$with_msvcr_dll" 53126 METHOD="--with-msvcr-dll" 53127 if test -n "$POSSIBLE_MSVC_DLL" -a -e "$POSSIBLE_MSVC_DLL"; then 53128 { $as_echo "$as_me:${as_lineno-$LINENO}: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&5 53129 $as_echo "$as_me: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&6;} 53130 53131 # Need to check if the found msvcr is correct architecture 53132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking found $DLL_NAME architecture" >&5 53133 $as_echo_n "checking found $DLL_NAME architecture... " >&6; } 53134 MSVC_DLL_FILETYPE=`$FILE -b "$POSSIBLE_MSVC_DLL"` 53135 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 53136 # The MSYS 'file' command returns "PE32 executable for MS Windows (DLL) (GUI) Intel 80386 32-bit" 53137 # on x32 and "PE32+ executable for MS Windows (DLL) (GUI) Mono/.Net assembly" on x64 systems. 53138 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 53139 CORRECT_MSVCR_ARCH="PE32 executable" 53140 else 53141 CORRECT_MSVCR_ARCH="PE32+ executable" 53142 fi 53143 else 53144 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 53145 CORRECT_MSVCR_ARCH=386 53146 else 53147 CORRECT_MSVCR_ARCH=x86-64 53148 fi 53149 fi 53150 if $ECHO "$MSVC_DLL_FILETYPE" | $GREP "$CORRECT_MSVCR_ARCH" 2>&1 > /dev/null; then 53151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 53152 $as_echo "ok" >&6; } 53153 MSVC_DLL="$POSSIBLE_MSVC_DLL" 53154 53155 # Only process if variable expands to non-empty 53156 53157 if test "x$MSVC_DLL" != x; then 53158 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 53159 53160 # Input might be given as Windows format, start by converting to 53161 # unix format. 53162 path="$MSVC_DLL" 53163 new_path=`$CYGPATH -u "$path"` 53164 53165 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 53166 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 53167 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 53168 # "foo.exe" is OK but "foo" is an error. 53169 # 53170 # This test is therefore slightly more accurate than "test -f" to check for file precense. 53171 # It is also a way to make sure we got the proper file name for the real test later on. 53172 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 53173 if test "x$test_shortpath" = x; then 53174 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&5 53175 $as_echo "$as_me: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&6;} 53176 as_fn_error $? "Cannot locate the the path of MSVC_DLL" "$LINENO" 5 53177 fi 53178 53179 # Call helper function which possibly converts this using DOS-style short mode. 53180 # If so, the updated path is stored in $new_path. 53181 53182 input_path="$new_path" 53183 # Check if we need to convert this using DOS-style short mode. If the path 53184 # contains just simple characters, use it. Otherwise (spaces, weird characters), 53185 # take no chances and rewrite it. 53186 # Note: m4 eats our [], so we need to use [ and ] instead. 53187 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 53188 if test "x$has_forbidden_chars" != x; then 53189 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 53190 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 53191 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 53192 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 53193 # Going to short mode and back again did indeed matter. Since short mode is 53194 # case insensitive, let's make it lowercase to improve readability. 53195 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 53196 # Now convert it back to Unix-style (cygpath) 53197 input_path=`$CYGPATH -u "$shortmode_path"` 53198 new_path="$input_path" 53199 fi 53200 fi 53201 53202 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 53203 if test "x$test_cygdrive_prefix" = x; then 53204 # As a simple fix, exclude /usr/bin since it's not a real path. 53205 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 53206 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 53207 # a path prefixed by /cygdrive for fixpath to work. 53208 new_path="$CYGWIN_ROOT_PATH$input_path" 53209 fi 53210 fi 53211 53212 53213 if test "x$path" != "x$new_path"; then 53214 MSVC_DLL="$new_path" 53215 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVC_DLL to \"$new_path\"" >&5 53216 $as_echo "$as_me: Rewriting MSVC_DLL to \"$new_path\"" >&6;} 53217 fi 53218 53219 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 53220 53221 path="$MSVC_DLL" 53222 has_colon=`$ECHO $path | $GREP ^.:` 53223 new_path="$path" 53224 if test "x$has_colon" = x; then 53225 # Not in mixed or Windows style, start by that. 53226 new_path=`cmd //c echo $path` 53227 fi 53228 53229 53230 input_path="$new_path" 53231 # Check if we need to convert this using DOS-style short mode. If the path 53232 # contains just simple characters, use it. Otherwise (spaces, weird characters), 53233 # take no chances and rewrite it. 53234 # Note: m4 eats our [], so we need to use [ and ] instead. 53235 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 53236 if test "x$has_forbidden_chars" != x; then 53237 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 53238 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 53239 fi 53240 53241 53242 windows_path="$new_path" 53243 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 53244 unix_path=`$CYGPATH -u "$windows_path"` 53245 new_path="$unix_path" 53246 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 53247 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 53248 new_path="$unix_path" 53249 fi 53250 53251 if test "x$path" != "x$new_path"; then 53252 MSVC_DLL="$new_path" 53253 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVC_DLL to \"$new_path\"" >&5 53254 $as_echo "$as_me: Rewriting MSVC_DLL to \"$new_path\"" >&6;} 53255 fi 53256 53257 # Save the first 10 bytes of this path to the storage, so fixpath can work. 53258 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 53259 53260 else 53261 # We're on a unix platform. Hooray! :) 53262 path="$MSVC_DLL" 53263 has_space=`$ECHO "$path" | $GREP " "` 53264 if test "x$has_space" != x; then 53265 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&5 53266 $as_echo "$as_me: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&6;} 53267 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 53268 fi 53269 53270 # Use eval to expand a potential ~ 53271 eval path="$path" 53272 if test ! -f "$path" && test ! -d "$path"; then 53273 as_fn_error $? "The path of MSVC_DLL, which resolves as \"$path\", is not found." "$LINENO" 5 53274 fi 53275 53276 if test -d "$path"; then 53277 MSVC_DLL="`cd "$path"; $THEPWDCMD -L`" 53278 else 53279 dir="`$DIRNAME "$path"`" 53280 base="`$BASENAME "$path"`" 53281 MSVC_DLL="`cd "$dir"; $THEPWDCMD -L`/$base" 53282 fi 53283 fi 53284 fi 53285 53286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $DLL_NAME" >&5 53287 $as_echo_n "checking for $DLL_NAME... " >&6; } 53288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSVC_DLL" >&5 53289 $as_echo "$MSVC_DLL" >&6; } 53290 else 53291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: incorrect, ignoring" >&5 53292 $as_echo "incorrect, ignoring" >&6; } 53293 { $as_echo "$as_me:${as_lineno-$LINENO}: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&5 53294 $as_echo "$as_me: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&6;} 53295 fi 53296 fi 53297 53298 if test "x$MSVC_DLL" = x; then 53299 as_fn_error $? "Could not find a proper $MSVCR_NAME as specified by --with-msvcr-dll" "$LINENO" 5 53300 fi 53301 MSVCR_DLL="$MSVC_DLL" 53302 elif test "x$DEVKIT_MSVCR_DLL" != x; then 53303 53304 DLL_NAME="$MSVCR_NAME" 53305 POSSIBLE_MSVC_DLL="$DEVKIT_MSVCR_DLL" 53306 METHOD="devkit" 53307 if test -n "$POSSIBLE_MSVC_DLL" -a -e "$POSSIBLE_MSVC_DLL"; then 53308 { $as_echo "$as_me:${as_lineno-$LINENO}: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&5 53309 $as_echo "$as_me: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&6;} 53310 53311 # Need to check if the found msvcr is correct architecture 53312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking found $DLL_NAME architecture" >&5 53313 $as_echo_n "checking found $DLL_NAME architecture... " >&6; } 53314 MSVC_DLL_FILETYPE=`$FILE -b "$POSSIBLE_MSVC_DLL"` 53315 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 53316 # The MSYS 'file' command returns "PE32 executable for MS Windows (DLL) (GUI) Intel 80386 32-bit" 53317 # on x32 and "PE32+ executable for MS Windows (DLL) (GUI) Mono/.Net assembly" on x64 systems. 53318 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 53319 CORRECT_MSVCR_ARCH="PE32 executable" 53320 else 53321 CORRECT_MSVCR_ARCH="PE32+ executable" 53322 fi 53323 else 53324 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 53325 CORRECT_MSVCR_ARCH=386 53326 else 53327 CORRECT_MSVCR_ARCH=x86-64 53328 fi 53329 fi 53330 if $ECHO "$MSVC_DLL_FILETYPE" | $GREP "$CORRECT_MSVCR_ARCH" 2>&1 > /dev/null; then 53331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 53332 $as_echo "ok" >&6; } 53333 MSVC_DLL="$POSSIBLE_MSVC_DLL" 53334 53335 # Only process if variable expands to non-empty 53336 53337 if test "x$MSVC_DLL" != x; then 53338 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 53339 53340 # Input might be given as Windows format, start by converting to 53341 # unix format. 53342 path="$MSVC_DLL" 53343 new_path=`$CYGPATH -u "$path"` 53344 53345 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 53346 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 53347 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 53348 # "foo.exe" is OK but "foo" is an error. 53349 # 53350 # This test is therefore slightly more accurate than "test -f" to check for file precense. 53351 # It is also a way to make sure we got the proper file name for the real test later on. 53352 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 53353 if test "x$test_shortpath" = x; then 53354 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&5 53355 $as_echo "$as_me: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&6;} 53356 as_fn_error $? "Cannot locate the the path of MSVC_DLL" "$LINENO" 5 53357 fi 53358 53359 # Call helper function which possibly converts this using DOS-style short mode. 53360 # If so, the updated path is stored in $new_path. 53361 53362 input_path="$new_path" 53363 # Check if we need to convert this using DOS-style short mode. If the path 53364 # contains just simple characters, use it. Otherwise (spaces, weird characters), 53365 # take no chances and rewrite it. 53366 # Note: m4 eats our [], so we need to use [ and ] instead. 53367 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 53368 if test "x$has_forbidden_chars" != x; then 53369 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 53370 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 53371 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 53372 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 53373 # Going to short mode and back again did indeed matter. Since short mode is 53374 # case insensitive, let's make it lowercase to improve readability. 53375 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 53376 # Now convert it back to Unix-style (cygpath) 53377 input_path=`$CYGPATH -u "$shortmode_path"` 53378 new_path="$input_path" 53379 fi 53380 fi 53381 53382 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 53383 if test "x$test_cygdrive_prefix" = x; then 53384 # As a simple fix, exclude /usr/bin since it's not a real path. 53385 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 53386 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 53387 # a path prefixed by /cygdrive for fixpath to work. 53388 new_path="$CYGWIN_ROOT_PATH$input_path" 53389 fi 53390 fi 53391 53392 53393 if test "x$path" != "x$new_path"; then 53394 MSVC_DLL="$new_path" 53395 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVC_DLL to \"$new_path\"" >&5 53396 $as_echo "$as_me: Rewriting MSVC_DLL to \"$new_path\"" >&6;} 53397 fi 53398 53399 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 53400 53401 path="$MSVC_DLL" 53402 has_colon=`$ECHO $path | $GREP ^.:` 53403 new_path="$path" 53404 if test "x$has_colon" = x; then 53405 # Not in mixed or Windows style, start by that. 53406 new_path=`cmd //c echo $path` 53407 fi 53408 53409 53410 input_path="$new_path" 53411 # Check if we need to convert this using DOS-style short mode. If the path 53412 # contains just simple characters, use it. Otherwise (spaces, weird characters), 53413 # take no chances and rewrite it. 53414 # Note: m4 eats our [], so we need to use [ and ] instead. 53415 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 53416 if test "x$has_forbidden_chars" != x; then 53417 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 53418 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 53419 fi 53420 53421 53422 windows_path="$new_path" 53423 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 53424 unix_path=`$CYGPATH -u "$windows_path"` 53425 new_path="$unix_path" 53426 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 53427 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 53428 new_path="$unix_path" 53429 fi 53430 53431 if test "x$path" != "x$new_path"; then 53432 MSVC_DLL="$new_path" 53433 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVC_DLL to \"$new_path\"" >&5 53434 $as_echo "$as_me: Rewriting MSVC_DLL to \"$new_path\"" >&6;} 53435 fi 53436 53437 # Save the first 10 bytes of this path to the storage, so fixpath can work. 53438 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 53439 53440 else 53441 # We're on a unix platform. Hooray! :) 53442 path="$MSVC_DLL" 53443 has_space=`$ECHO "$path" | $GREP " "` 53444 if test "x$has_space" != x; then 53445 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&5 53446 $as_echo "$as_me: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&6;} 53447 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 53448 fi 53449 53450 # Use eval to expand a potential ~ 53451 eval path="$path" 53452 if test ! -f "$path" && test ! -d "$path"; then 53453 as_fn_error $? "The path of MSVC_DLL, which resolves as \"$path\", is not found." "$LINENO" 5 53454 fi 53455 53456 if test -d "$path"; then 53457 MSVC_DLL="`cd "$path"; $THEPWDCMD -L`" 53458 else 53459 dir="`$DIRNAME "$path"`" 53460 base="`$BASENAME "$path"`" 53461 MSVC_DLL="`cd "$dir"; $THEPWDCMD -L`/$base" 53462 fi 53463 fi 53464 fi 53465 53466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $DLL_NAME" >&5 53467 $as_echo_n "checking for $DLL_NAME... " >&6; } 53468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSVC_DLL" >&5 53469 $as_echo "$MSVC_DLL" >&6; } 53470 else 53471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: incorrect, ignoring" >&5 53472 $as_echo "incorrect, ignoring" >&6; } 53473 { $as_echo "$as_me:${as_lineno-$LINENO}: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&5 53474 $as_echo "$as_me: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&6;} 53475 fi 53476 fi 53477 53478 if test "x$MSVC_DLL" = x; then 53479 as_fn_error $? "Could not find a proper $MSVCR_NAME as specified by devkit" "$LINENO" 5 53480 fi 53481 MSVCR_DLL="$MSVC_DLL" 53482 else 53483 53484 DLL_NAME="${MSVCR_NAME}" 53485 MSVC_DLL= 53486 53487 if test "x$MSVC_DLL" = x; then 53488 # Probe: Using well-known location from Visual Studio 10.0 53489 if test "x$VCINSTALLDIR" != x; then 53490 CYGWIN_VC_INSTALL_DIR="$VCINSTALLDIR" 53491 53492 windows_path="$CYGWIN_VC_INSTALL_DIR" 53493 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 53494 unix_path=`$CYGPATH -u "$windows_path"` 53495 CYGWIN_VC_INSTALL_DIR="$unix_path" 53496 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 53497 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 53498 CYGWIN_VC_INSTALL_DIR="$unix_path" 53499 fi 53500 53501 if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then 53502 POSSIBLE_MSVC_DLL="$CYGWIN_VC_INSTALL_DIR/redist/x64/Microsoft.VC${VS_VERSION_INTERNAL}.CRT/$DLL_NAME" 53503 else 53504 POSSIBLE_MSVC_DLL="$CYGWIN_VC_INSTALL_DIR/redist/x86/Microsoft.VC${VS_VERSION_INTERNAL}.CRT/$DLL_NAME" 53505 fi 53506 $ECHO "POSSIBLE_MSVC_DLL $POSSIBLEMSVC_DLL" 53507 53508 DLL_NAME="$DLL_NAME" 53509 POSSIBLE_MSVC_DLL="$POSSIBLE_MSVC_DLL" 53510 METHOD="well-known location in VCINSTALLDIR" 53511 if test -n "$POSSIBLE_MSVC_DLL" -a -e "$POSSIBLE_MSVC_DLL"; then 53512 { $as_echo "$as_me:${as_lineno-$LINENO}: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&5 53513 $as_echo "$as_me: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&6;} 53514 53515 # Need to check if the found msvcr is correct architecture 53516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking found $DLL_NAME architecture" >&5 53517 $as_echo_n "checking found $DLL_NAME architecture... " >&6; } 53518 MSVC_DLL_FILETYPE=`$FILE -b "$POSSIBLE_MSVC_DLL"` 53519 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 53520 # The MSYS 'file' command returns "PE32 executable for MS Windows (DLL) (GUI) Intel 80386 32-bit" 53521 # on x32 and "PE32+ executable for MS Windows (DLL) (GUI) Mono/.Net assembly" on x64 systems. 53522 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 53523 CORRECT_MSVCR_ARCH="PE32 executable" 53524 else 53525 CORRECT_MSVCR_ARCH="PE32+ executable" 53526 fi 53527 else 53528 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 53529 CORRECT_MSVCR_ARCH=386 53530 else 53531 CORRECT_MSVCR_ARCH=x86-64 53532 fi 53533 fi 53534 if $ECHO "$MSVC_DLL_FILETYPE" | $GREP "$CORRECT_MSVCR_ARCH" 2>&1 > /dev/null; then 53535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 53536 $as_echo "ok" >&6; } 53537 MSVC_DLL="$POSSIBLE_MSVC_DLL" 53538 53539 # Only process if variable expands to non-empty 53540 53541 if test "x$MSVC_DLL" != x; then 53542 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 53543 53544 # Input might be given as Windows format, start by converting to 53545 # unix format. 53546 path="$MSVC_DLL" 53547 new_path=`$CYGPATH -u "$path"` 53548 53549 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 53550 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 53551 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 53552 # "foo.exe" is OK but "foo" is an error. 53553 # 53554 # This test is therefore slightly more accurate than "test -f" to check for file precense. 53555 # It is also a way to make sure we got the proper file name for the real test later on. 53556 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 53557 if test "x$test_shortpath" = x; then 53558 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&5 53559 $as_echo "$as_me: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&6;} 53560 as_fn_error $? "Cannot locate the the path of MSVC_DLL" "$LINENO" 5 53561 fi 53562 53563 # Call helper function which possibly converts this using DOS-style short mode. 53564 # If so, the updated path is stored in $new_path. 53565 53566 input_path="$new_path" 53567 # Check if we need to convert this using DOS-style short mode. If the path 53568 # contains just simple characters, use it. Otherwise (spaces, weird characters), 53569 # take no chances and rewrite it. 53570 # Note: m4 eats our [], so we need to use [ and ] instead. 53571 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 53572 if test "x$has_forbidden_chars" != x; then 53573 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 53574 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 53575 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 53576 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 53577 # Going to short mode and back again did indeed matter. Since short mode is 53578 # case insensitive, let's make it lowercase to improve readability. 53579 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 53580 # Now convert it back to Unix-style (cygpath) 53581 input_path=`$CYGPATH -u "$shortmode_path"` 53582 new_path="$input_path" 53583 fi 53584 fi 53585 53586 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 53587 if test "x$test_cygdrive_prefix" = x; then 53588 # As a simple fix, exclude /usr/bin since it's not a real path. 53589 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 53590 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 53591 # a path prefixed by /cygdrive for fixpath to work. 53592 new_path="$CYGWIN_ROOT_PATH$input_path" 53593 fi 53594 fi 53595 53596 53597 if test "x$path" != "x$new_path"; then 53598 MSVC_DLL="$new_path" 53599 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVC_DLL to \"$new_path\"" >&5 53600 $as_echo "$as_me: Rewriting MSVC_DLL to \"$new_path\"" >&6;} 53601 fi 53602 53603 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 53604 53605 path="$MSVC_DLL" 53606 has_colon=`$ECHO $path | $GREP ^.:` 53607 new_path="$path" 53608 if test "x$has_colon" = x; then 53609 # Not in mixed or Windows style, start by that. 53610 new_path=`cmd //c echo $path` 53611 fi 53612 53613 53614 input_path="$new_path" 53615 # Check if we need to convert this using DOS-style short mode. If the path 53616 # contains just simple characters, use it. Otherwise (spaces, weird characters), 53617 # take no chances and rewrite it. 53618 # Note: m4 eats our [], so we need to use [ and ] instead. 53619 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 53620 if test "x$has_forbidden_chars" != x; then 53621 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 53622 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 53623 fi 53624 53625 53626 windows_path="$new_path" 53627 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 53628 unix_path=`$CYGPATH -u "$windows_path"` 53629 new_path="$unix_path" 53630 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 53631 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 53632 new_path="$unix_path" 53633 fi 53634 53635 if test "x$path" != "x$new_path"; then 53636 MSVC_DLL="$new_path" 53637 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVC_DLL to \"$new_path\"" >&5 53638 $as_echo "$as_me: Rewriting MSVC_DLL to \"$new_path\"" >&6;} 53639 fi 53640 53641 # Save the first 10 bytes of this path to the storage, so fixpath can work. 53642 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 53643 53644 else 53645 # We're on a unix platform. Hooray! :) 53646 path="$MSVC_DLL" 53647 has_space=`$ECHO "$path" | $GREP " "` 53648 if test "x$has_space" != x; then 53649 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&5 53650 $as_echo "$as_me: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&6;} 53651 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 53652 fi 53653 53654 # Use eval to expand a potential ~ 53655 eval path="$path" 53656 if test ! -f "$path" && test ! -d "$path"; then 53657 as_fn_error $? "The path of MSVC_DLL, which resolves as \"$path\", is not found." "$LINENO" 5 53658 fi 53659 53660 if test -d "$path"; then 53661 MSVC_DLL="`cd "$path"; $THEPWDCMD -L`" 53662 else 53663 dir="`$DIRNAME "$path"`" 53664 base="`$BASENAME "$path"`" 53665 MSVC_DLL="`cd "$dir"; $THEPWDCMD -L`/$base" 53666 fi 53667 fi 53668 fi 53669 53670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $DLL_NAME" >&5 53671 $as_echo_n "checking for $DLL_NAME... " >&6; } 53672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSVC_DLL" >&5 53673 $as_echo "$MSVC_DLL" >&6; } 53674 else 53675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: incorrect, ignoring" >&5 53676 $as_echo "incorrect, ignoring" >&6; } 53677 { $as_echo "$as_me:${as_lineno-$LINENO}: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&5 53678 $as_echo "$as_me: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&6;} 53679 fi 53680 fi 53681 53682 fi 53683 fi 53684 53685 if test "x$MSVC_DLL" = x; then 53686 # Probe: Check in the Boot JDK directory. 53687 POSSIBLE_MSVC_DLL="$BOOT_JDK/bin/$DLL_NAME" 53688 53689 DLL_NAME="$DLL_NAME" 53690 POSSIBLE_MSVC_DLL="$POSSIBLE_MSVC_DLL" 53691 METHOD="well-known location in Boot JDK" 53692 if test -n "$POSSIBLE_MSVC_DLL" -a -e "$POSSIBLE_MSVC_DLL"; then 53693 { $as_echo "$as_me:${as_lineno-$LINENO}: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&5 53694 $as_echo "$as_me: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&6;} 53695 53696 # Need to check if the found msvcr is correct architecture 53697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking found $DLL_NAME architecture" >&5 53698 $as_echo_n "checking found $DLL_NAME architecture... " >&6; } 53699 MSVC_DLL_FILETYPE=`$FILE -b "$POSSIBLE_MSVC_DLL"` 53700 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 53701 # The MSYS 'file' command returns "PE32 executable for MS Windows (DLL) (GUI) Intel 80386 32-bit" 53702 # on x32 and "PE32+ executable for MS Windows (DLL) (GUI) Mono/.Net assembly" on x64 systems. 53703 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 53704 CORRECT_MSVCR_ARCH="PE32 executable" 53705 else 53706 CORRECT_MSVCR_ARCH="PE32+ executable" 53707 fi 53708 else 53709 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 53710 CORRECT_MSVCR_ARCH=386 53711 else 53712 CORRECT_MSVCR_ARCH=x86-64 53713 fi 53714 fi 53715 if $ECHO "$MSVC_DLL_FILETYPE" | $GREP "$CORRECT_MSVCR_ARCH" 2>&1 > /dev/null; then 53716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 53717 $as_echo "ok" >&6; } 53718 MSVC_DLL="$POSSIBLE_MSVC_DLL" 53719 53720 # Only process if variable expands to non-empty 53721 53722 if test "x$MSVC_DLL" != x; then 53723 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 53724 53725 # Input might be given as Windows format, start by converting to 53726 # unix format. 53727 path="$MSVC_DLL" 53728 new_path=`$CYGPATH -u "$path"` 53729 53730 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 53731 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 53732 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 53733 # "foo.exe" is OK but "foo" is an error. 53734 # 53735 # This test is therefore slightly more accurate than "test -f" to check for file precense. 53736 # It is also a way to make sure we got the proper file name for the real test later on. 53737 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 53738 if test "x$test_shortpath" = x; then 53739 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&5 53740 $as_echo "$as_me: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&6;} 53741 as_fn_error $? "Cannot locate the the path of MSVC_DLL" "$LINENO" 5 53742 fi 53743 53744 # Call helper function which possibly converts this using DOS-style short mode. 53745 # If so, the updated path is stored in $new_path. 53746 53747 input_path="$new_path" 53748 # Check if we need to convert this using DOS-style short mode. If the path 53749 # contains just simple characters, use it. Otherwise (spaces, weird characters), 53750 # take no chances and rewrite it. 53751 # Note: m4 eats our [], so we need to use [ and ] instead. 53752 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 53753 if test "x$has_forbidden_chars" != x; then 53754 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 53755 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 53756 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 53757 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 53758 # Going to short mode and back again did indeed matter. Since short mode is 53759 # case insensitive, let's make it lowercase to improve readability. 53760 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 53761 # Now convert it back to Unix-style (cygpath) 53762 input_path=`$CYGPATH -u "$shortmode_path"` 53763 new_path="$input_path" 53764 fi 53765 fi 53766 53767 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 53768 if test "x$test_cygdrive_prefix" = x; then 53769 # As a simple fix, exclude /usr/bin since it's not a real path. 53770 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 53771 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 53772 # a path prefixed by /cygdrive for fixpath to work. 53773 new_path="$CYGWIN_ROOT_PATH$input_path" 53774 fi 53775 fi 53776 53777 53778 if test "x$path" != "x$new_path"; then 53779 MSVC_DLL="$new_path" 53780 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVC_DLL to \"$new_path\"" >&5 53781 $as_echo "$as_me: Rewriting MSVC_DLL to \"$new_path\"" >&6;} 53782 fi 53783 53784 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 53785 53786 path="$MSVC_DLL" 53787 has_colon=`$ECHO $path | $GREP ^.:` 53788 new_path="$path" 53789 if test "x$has_colon" = x; then 53790 # Not in mixed or Windows style, start by that. 53791 new_path=`cmd //c echo $path` 53792 fi 53793 53794 53795 input_path="$new_path" 53796 # Check if we need to convert this using DOS-style short mode. If the path 53797 # contains just simple characters, use it. Otherwise (spaces, weird characters), 53798 # take no chances and rewrite it. 53799 # Note: m4 eats our [], so we need to use [ and ] instead. 53800 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 53801 if test "x$has_forbidden_chars" != x; then 53802 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 53803 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 53804 fi 53805 53806 53807 windows_path="$new_path" 53808 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 53809 unix_path=`$CYGPATH -u "$windows_path"` 53810 new_path="$unix_path" 53811 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 53812 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 53813 new_path="$unix_path" 53814 fi 53815 53816 if test "x$path" != "x$new_path"; then 53817 MSVC_DLL="$new_path" 53818 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVC_DLL to \"$new_path\"" >&5 53819 $as_echo "$as_me: Rewriting MSVC_DLL to \"$new_path\"" >&6;} 53820 fi 53821 53822 # Save the first 10 bytes of this path to the storage, so fixpath can work. 53823 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 53824 53825 else 53826 # We're on a unix platform. Hooray! :) 53827 path="$MSVC_DLL" 53828 has_space=`$ECHO "$path" | $GREP " "` 53829 if test "x$has_space" != x; then 53830 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&5 53831 $as_echo "$as_me: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&6;} 53832 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 53833 fi 53834 53835 # Use eval to expand a potential ~ 53836 eval path="$path" 53837 if test ! -f "$path" && test ! -d "$path"; then 53838 as_fn_error $? "The path of MSVC_DLL, which resolves as \"$path\", is not found." "$LINENO" 5 53839 fi 53840 53841 if test -d "$path"; then 53842 MSVC_DLL="`cd "$path"; $THEPWDCMD -L`" 53843 else 53844 dir="`$DIRNAME "$path"`" 53845 base="`$BASENAME "$path"`" 53846 MSVC_DLL="`cd "$dir"; $THEPWDCMD -L`/$base" 53847 fi 53848 fi 53849 fi 53850 53851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $DLL_NAME" >&5 53852 $as_echo_n "checking for $DLL_NAME... " >&6; } 53853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSVC_DLL" >&5 53854 $as_echo "$MSVC_DLL" >&6; } 53855 else 53856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: incorrect, ignoring" >&5 53857 $as_echo "incorrect, ignoring" >&6; } 53858 { $as_echo "$as_me:${as_lineno-$LINENO}: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&5 53859 $as_echo "$as_me: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&6;} 53860 fi 53861 fi 53862 53863 fi 53864 53865 if test "x$MSVC_DLL" = x; then 53866 # Probe: Look in the Windows system32 directory 53867 CYGWIN_SYSTEMROOT="$SYSTEMROOT" 53868 53869 windows_path="$CYGWIN_SYSTEMROOT" 53870 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 53871 unix_path=`$CYGPATH -u "$windows_path"` 53872 CYGWIN_SYSTEMROOT="$unix_path" 53873 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 53874 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 53875 CYGWIN_SYSTEMROOT="$unix_path" 53876 fi 53877 53878 POSSIBLE_MSVC_DLL="$CYGWIN_SYSTEMROOT/system32/$DLL_NAME" 53879 53880 DLL_NAME="$DLL_NAME" 53881 POSSIBLE_MSVC_DLL="$POSSIBLE_MSVC_DLL" 53882 METHOD="well-known location in SYSTEMROOT" 53883 if test -n "$POSSIBLE_MSVC_DLL" -a -e "$POSSIBLE_MSVC_DLL"; then 53884 { $as_echo "$as_me:${as_lineno-$LINENO}: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&5 53885 $as_echo "$as_me: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&6;} 53886 53887 # Need to check if the found msvcr is correct architecture 53888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking found $DLL_NAME architecture" >&5 53889 $as_echo_n "checking found $DLL_NAME architecture... " >&6; } 53890 MSVC_DLL_FILETYPE=`$FILE -b "$POSSIBLE_MSVC_DLL"` 53891 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 53892 # The MSYS 'file' command returns "PE32 executable for MS Windows (DLL) (GUI) Intel 80386 32-bit" 53893 # on x32 and "PE32+ executable for MS Windows (DLL) (GUI) Mono/.Net assembly" on x64 systems. 53894 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 53895 CORRECT_MSVCR_ARCH="PE32 executable" 53896 else 53897 CORRECT_MSVCR_ARCH="PE32+ executable" 53898 fi 53899 else 53900 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 53901 CORRECT_MSVCR_ARCH=386 53902 else 53903 CORRECT_MSVCR_ARCH=x86-64 53904 fi 53905 fi 53906 if $ECHO "$MSVC_DLL_FILETYPE" | $GREP "$CORRECT_MSVCR_ARCH" 2>&1 > /dev/null; then 53907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 53908 $as_echo "ok" >&6; } 53909 MSVC_DLL="$POSSIBLE_MSVC_DLL" 53910 53911 # Only process if variable expands to non-empty 53912 53913 if test "x$MSVC_DLL" != x; then 53914 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 53915 53916 # Input might be given as Windows format, start by converting to 53917 # unix format. 53918 path="$MSVC_DLL" 53919 new_path=`$CYGPATH -u "$path"` 53920 53921 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 53922 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 53923 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 53924 # "foo.exe" is OK but "foo" is an error. 53925 # 53926 # This test is therefore slightly more accurate than "test -f" to check for file precense. 53927 # It is also a way to make sure we got the proper file name for the real test later on. 53928 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 53929 if test "x$test_shortpath" = x; then 53930 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&5 53931 $as_echo "$as_me: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&6;} 53932 as_fn_error $? "Cannot locate the the path of MSVC_DLL" "$LINENO" 5 53933 fi 53934 53935 # Call helper function which possibly converts this using DOS-style short mode. 53936 # If so, the updated path is stored in $new_path. 53937 53938 input_path="$new_path" 53939 # Check if we need to convert this using DOS-style short mode. If the path 53940 # contains just simple characters, use it. Otherwise (spaces, weird characters), 53941 # take no chances and rewrite it. 53942 # Note: m4 eats our [], so we need to use [ and ] instead. 53943 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 53944 if test "x$has_forbidden_chars" != x; then 53945 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 53946 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 53947 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 53948 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 53949 # Going to short mode and back again did indeed matter. Since short mode is 53950 # case insensitive, let's make it lowercase to improve readability. 53951 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 53952 # Now convert it back to Unix-style (cygpath) 53953 input_path=`$CYGPATH -u "$shortmode_path"` 53954 new_path="$input_path" 53955 fi 53956 fi 53957 53958 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 53959 if test "x$test_cygdrive_prefix" = x; then 53960 # As a simple fix, exclude /usr/bin since it's not a real path. 53961 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 53962 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 53963 # a path prefixed by /cygdrive for fixpath to work. 53964 new_path="$CYGWIN_ROOT_PATH$input_path" 53965 fi 53966 fi 53967 53968 53969 if test "x$path" != "x$new_path"; then 53970 MSVC_DLL="$new_path" 53971 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVC_DLL to \"$new_path\"" >&5 53972 $as_echo "$as_me: Rewriting MSVC_DLL to \"$new_path\"" >&6;} 53973 fi 53974 53975 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 53976 53977 path="$MSVC_DLL" 53978 has_colon=`$ECHO $path | $GREP ^.:` 53979 new_path="$path" 53980 if test "x$has_colon" = x; then 53981 # Not in mixed or Windows style, start by that. 53982 new_path=`cmd //c echo $path` 53983 fi 53984 53985 53986 input_path="$new_path" 53987 # Check if we need to convert this using DOS-style short mode. If the path 53988 # contains just simple characters, use it. Otherwise (spaces, weird characters), 53989 # take no chances and rewrite it. 53990 # Note: m4 eats our [], so we need to use [ and ] instead. 53991 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 53992 if test "x$has_forbidden_chars" != x; then 53993 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 53994 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 53995 fi 53996 53997 53998 windows_path="$new_path" 53999 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 54000 unix_path=`$CYGPATH -u "$windows_path"` 54001 new_path="$unix_path" 54002 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 54003 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 54004 new_path="$unix_path" 54005 fi 54006 54007 if test "x$path" != "x$new_path"; then 54008 MSVC_DLL="$new_path" 54009 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVC_DLL to \"$new_path\"" >&5 54010 $as_echo "$as_me: Rewriting MSVC_DLL to \"$new_path\"" >&6;} 54011 fi 54012 54013 # Save the first 10 bytes of this path to the storage, so fixpath can work. 54014 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 54015 54016 else 54017 # We're on a unix platform. Hooray! :) 54018 path="$MSVC_DLL" 54019 has_space=`$ECHO "$path" | $GREP " "` 54020 if test "x$has_space" != x; then 54021 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&5 54022 $as_echo "$as_me: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&6;} 54023 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 54024 fi 54025 54026 # Use eval to expand a potential ~ 54027 eval path="$path" 54028 if test ! -f "$path" && test ! -d "$path"; then 54029 as_fn_error $? "The path of MSVC_DLL, which resolves as \"$path\", is not found." "$LINENO" 5 54030 fi 54031 54032 if test -d "$path"; then 54033 MSVC_DLL="`cd "$path"; $THEPWDCMD -L`" 54034 else 54035 dir="`$DIRNAME "$path"`" 54036 base="`$BASENAME "$path"`" 54037 MSVC_DLL="`cd "$dir"; $THEPWDCMD -L`/$base" 54038 fi 54039 fi 54040 fi 54041 54042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $DLL_NAME" >&5 54043 $as_echo_n "checking for $DLL_NAME... " >&6; } 54044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSVC_DLL" >&5 54045 $as_echo "$MSVC_DLL" >&6; } 54046 else 54047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: incorrect, ignoring" >&5 54048 $as_echo "incorrect, ignoring" >&6; } 54049 { $as_echo "$as_me:${as_lineno-$LINENO}: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&5 54050 $as_echo "$as_me: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&6;} 54051 fi 54052 fi 54053 54054 fi 54055 54056 if test "x$MSVC_DLL" = x; then 54057 # Probe: If Visual Studio Express is installed, there is usually one with the debugger 54058 if test "x$VS100COMNTOOLS" != x; then 54059 CYGWIN_VS_TOOLS_DIR="$VS100COMNTOOLS/.." 54060 54061 windows_path="$CYGWIN_VS_TOOLS_DIR" 54062 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 54063 unix_path=`$CYGPATH -u "$windows_path"` 54064 CYGWIN_VS_TOOLS_DIR="$unix_path" 54065 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 54066 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 54067 CYGWIN_VS_TOOLS_DIR="$unix_path" 54068 fi 54069 54070 if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then 54071 POSSIBLE_MSVC_DLL=`$FIND "$CYGWIN_VS_TOOLS_DIR" -name $DLL_NAME \ 54072 | $GREP -i /x64/ | $HEAD --lines 1` 54073 else 54074 POSSIBLE_MSVC_DLL=`$FIND "$CYGWIN_VS_TOOLS_DIR" -name $DLL_NAME \ 54075 | $GREP -i /x86/ | $HEAD --lines 1` 54076 fi 54077 54078 DLL_NAME="$DLL_NAME" 54079 POSSIBLE_MSVC_DLL="$POSSIBLE_MSVC_DLL" 54080 METHOD="search of VS100COMNTOOLS" 54081 if test -n "$POSSIBLE_MSVC_DLL" -a -e "$POSSIBLE_MSVC_DLL"; then 54082 { $as_echo "$as_me:${as_lineno-$LINENO}: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&5 54083 $as_echo "$as_me: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&6;} 54084 54085 # Need to check if the found msvcr is correct architecture 54086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking found $DLL_NAME architecture" >&5 54087 $as_echo_n "checking found $DLL_NAME architecture... " >&6; } 54088 MSVC_DLL_FILETYPE=`$FILE -b "$POSSIBLE_MSVC_DLL"` 54089 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 54090 # The MSYS 'file' command returns "PE32 executable for MS Windows (DLL) (GUI) Intel 80386 32-bit" 54091 # on x32 and "PE32+ executable for MS Windows (DLL) (GUI) Mono/.Net assembly" on x64 systems. 54092 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 54093 CORRECT_MSVCR_ARCH="PE32 executable" 54094 else 54095 CORRECT_MSVCR_ARCH="PE32+ executable" 54096 fi 54097 else 54098 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 54099 CORRECT_MSVCR_ARCH=386 54100 else 54101 CORRECT_MSVCR_ARCH=x86-64 54102 fi 54103 fi 54104 if $ECHO "$MSVC_DLL_FILETYPE" | $GREP "$CORRECT_MSVCR_ARCH" 2>&1 > /dev/null; then 54105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 54106 $as_echo "ok" >&6; } 54107 MSVC_DLL="$POSSIBLE_MSVC_DLL" 54108 54109 # Only process if variable expands to non-empty 54110 54111 if test "x$MSVC_DLL" != x; then 54112 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 54113 54114 # Input might be given as Windows format, start by converting to 54115 # unix format. 54116 path="$MSVC_DLL" 54117 new_path=`$CYGPATH -u "$path"` 54118 54119 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 54120 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 54121 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 54122 # "foo.exe" is OK but "foo" is an error. 54123 # 54124 # This test is therefore slightly more accurate than "test -f" to check for file precense. 54125 # It is also a way to make sure we got the proper file name for the real test later on. 54126 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 54127 if test "x$test_shortpath" = x; then 54128 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&5 54129 $as_echo "$as_me: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&6;} 54130 as_fn_error $? "Cannot locate the the path of MSVC_DLL" "$LINENO" 5 54131 fi 54132 54133 # Call helper function which possibly converts this using DOS-style short mode. 54134 # If so, the updated path is stored in $new_path. 54135 54136 input_path="$new_path" 54137 # Check if we need to convert this using DOS-style short mode. If the path 54138 # contains just simple characters, use it. Otherwise (spaces, weird characters), 54139 # take no chances and rewrite it. 54140 # Note: m4 eats our [], so we need to use [ and ] instead. 54141 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 54142 if test "x$has_forbidden_chars" != x; then 54143 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 54144 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 54145 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 54146 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 54147 # Going to short mode and back again did indeed matter. Since short mode is 54148 # case insensitive, let's make it lowercase to improve readability. 54149 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 54150 # Now convert it back to Unix-style (cygpath) 54151 input_path=`$CYGPATH -u "$shortmode_path"` 54152 new_path="$input_path" 54153 fi 54154 fi 54155 54156 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 54157 if test "x$test_cygdrive_prefix" = x; then 54158 # As a simple fix, exclude /usr/bin since it's not a real path. 54159 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 54160 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 54161 # a path prefixed by /cygdrive for fixpath to work. 54162 new_path="$CYGWIN_ROOT_PATH$input_path" 54163 fi 54164 fi 54165 54166 54167 if test "x$path" != "x$new_path"; then 54168 MSVC_DLL="$new_path" 54169 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVC_DLL to \"$new_path\"" >&5 54170 $as_echo "$as_me: Rewriting MSVC_DLL to \"$new_path\"" >&6;} 54171 fi 54172 54173 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 54174 54175 path="$MSVC_DLL" 54176 has_colon=`$ECHO $path | $GREP ^.:` 54177 new_path="$path" 54178 if test "x$has_colon" = x; then 54179 # Not in mixed or Windows style, start by that. 54180 new_path=`cmd //c echo $path` 54181 fi 54182 54183 54184 input_path="$new_path" 54185 # Check if we need to convert this using DOS-style short mode. If the path 54186 # contains just simple characters, use it. Otherwise (spaces, weird characters), 54187 # take no chances and rewrite it. 54188 # Note: m4 eats our [], so we need to use [ and ] instead. 54189 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 54190 if test "x$has_forbidden_chars" != x; then 54191 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 54192 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 54193 fi 54194 54195 54196 windows_path="$new_path" 54197 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 54198 unix_path=`$CYGPATH -u "$windows_path"` 54199 new_path="$unix_path" 54200 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 54201 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 54202 new_path="$unix_path" 54203 fi 54204 54205 if test "x$path" != "x$new_path"; then 54206 MSVC_DLL="$new_path" 54207 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVC_DLL to \"$new_path\"" >&5 54208 $as_echo "$as_me: Rewriting MSVC_DLL to \"$new_path\"" >&6;} 54209 fi 54210 54211 # Save the first 10 bytes of this path to the storage, so fixpath can work. 54212 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 54213 54214 else 54215 # We're on a unix platform. Hooray! :) 54216 path="$MSVC_DLL" 54217 has_space=`$ECHO "$path" | $GREP " "` 54218 if test "x$has_space" != x; then 54219 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&5 54220 $as_echo "$as_me: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&6;} 54221 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 54222 fi 54223 54224 # Use eval to expand a potential ~ 54225 eval path="$path" 54226 if test ! -f "$path" && test ! -d "$path"; then 54227 as_fn_error $? "The path of MSVC_DLL, which resolves as \"$path\", is not found." "$LINENO" 5 54228 fi 54229 54230 if test -d "$path"; then 54231 MSVC_DLL="`cd "$path"; $THEPWDCMD -L`" 54232 else 54233 dir="`$DIRNAME "$path"`" 54234 base="`$BASENAME "$path"`" 54235 MSVC_DLL="`cd "$dir"; $THEPWDCMD -L`/$base" 54236 fi 54237 fi 54238 fi 54239 54240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $DLL_NAME" >&5 54241 $as_echo_n "checking for $DLL_NAME... " >&6; } 54242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSVC_DLL" >&5 54243 $as_echo "$MSVC_DLL" >&6; } 54244 else 54245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: incorrect, ignoring" >&5 54246 $as_echo "incorrect, ignoring" >&6; } 54247 { $as_echo "$as_me:${as_lineno-$LINENO}: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&5 54248 $as_echo "$as_me: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&6;} 54249 fi 54250 fi 54251 54252 fi 54253 fi 54254 54255 if test "x$MSVC_DLL" = x; then 54256 # Probe: Search wildly in the VCINSTALLDIR. We've probably lost by now. 54257 # (This was the original behaviour; kept since it might turn something up) 54258 if test "x$CYGWIN_VC_INSTALL_DIR" != x; then 54259 if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then 54260 POSSIBLE_MSVC_DLL=`$FIND "$CYGWIN_VC_INSTALL_DIR" -name $DLL_NAME \ 54261 | $GREP x64 | $HEAD --lines 1` 54262 else 54263 POSSIBLE_MSVC_DLL=`$FIND "$CYGWIN_VC_INSTALL_DIR" -name $DLL_NAME \ 54264 | $GREP x86 | $GREP -v ia64 | $GREP -v x64 | $HEAD --lines 1` 54265 if test "x$POSSIBLE_MSVC_DLL" = x; then 54266 # We're grasping at straws now... 54267 POSSIBLE_MSVC_DLL=`$FIND "$CYGWIN_VC_INSTALL_DIR" -name $DLL_NAME \ 54268 | $HEAD --lines 1` 54269 fi 54270 fi 54271 54272 54273 DLL_NAME="$DLL_NAME" 54274 POSSIBLE_MSVC_DLL="$POSSIBLE_MSVC_DLL" 54275 METHOD="search of VCINSTALLDIR" 54276 if test -n "$POSSIBLE_MSVC_DLL" -a -e "$POSSIBLE_MSVC_DLL"; then 54277 { $as_echo "$as_me:${as_lineno-$LINENO}: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&5 54278 $as_echo "$as_me: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&6;} 54279 54280 # Need to check if the found msvcr is correct architecture 54281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking found $DLL_NAME architecture" >&5 54282 $as_echo_n "checking found $DLL_NAME architecture... " >&6; } 54283 MSVC_DLL_FILETYPE=`$FILE -b "$POSSIBLE_MSVC_DLL"` 54284 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 54285 # The MSYS 'file' command returns "PE32 executable for MS Windows (DLL) (GUI) Intel 80386 32-bit" 54286 # on x32 and "PE32+ executable for MS Windows (DLL) (GUI) Mono/.Net assembly" on x64 systems. 54287 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 54288 CORRECT_MSVCR_ARCH="PE32 executable" 54289 else 54290 CORRECT_MSVCR_ARCH="PE32+ executable" 54291 fi 54292 else 54293 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 54294 CORRECT_MSVCR_ARCH=386 54295 else 54296 CORRECT_MSVCR_ARCH=x86-64 54297 fi 54298 fi 54299 if $ECHO "$MSVC_DLL_FILETYPE" | $GREP "$CORRECT_MSVCR_ARCH" 2>&1 > /dev/null; then 54300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 54301 $as_echo "ok" >&6; } 54302 MSVC_DLL="$POSSIBLE_MSVC_DLL" 54303 54304 # Only process if variable expands to non-empty 54305 54306 if test "x$MSVC_DLL" != x; then 54307 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 54308 54309 # Input might be given as Windows format, start by converting to 54310 # unix format. 54311 path="$MSVC_DLL" 54312 new_path=`$CYGPATH -u "$path"` 54313 54314 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 54315 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 54316 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 54317 # "foo.exe" is OK but "foo" is an error. 54318 # 54319 # This test is therefore slightly more accurate than "test -f" to check for file precense. 54320 # It is also a way to make sure we got the proper file name for the real test later on. 54321 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 54322 if test "x$test_shortpath" = x; then 54323 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&5 54324 $as_echo "$as_me: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&6;} 54325 as_fn_error $? "Cannot locate the the path of MSVC_DLL" "$LINENO" 5 54326 fi 54327 54328 # Call helper function which possibly converts this using DOS-style short mode. 54329 # If so, the updated path is stored in $new_path. 54330 54331 input_path="$new_path" 54332 # Check if we need to convert this using DOS-style short mode. If the path 54333 # contains just simple characters, use it. Otherwise (spaces, weird characters), 54334 # take no chances and rewrite it. 54335 # Note: m4 eats our [], so we need to use [ and ] instead. 54336 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 54337 if test "x$has_forbidden_chars" != x; then 54338 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 54339 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 54340 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 54341 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 54342 # Going to short mode and back again did indeed matter. Since short mode is 54343 # case insensitive, let's make it lowercase to improve readability. 54344 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 54345 # Now convert it back to Unix-style (cygpath) 54346 input_path=`$CYGPATH -u "$shortmode_path"` 54347 new_path="$input_path" 54348 fi 54349 fi 54350 54351 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 54352 if test "x$test_cygdrive_prefix" = x; then 54353 # As a simple fix, exclude /usr/bin since it's not a real path. 54354 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 54355 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 54356 # a path prefixed by /cygdrive for fixpath to work. 54357 new_path="$CYGWIN_ROOT_PATH$input_path" 54358 fi 54359 fi 54360 54361 54362 if test "x$path" != "x$new_path"; then 54363 MSVC_DLL="$new_path" 54364 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVC_DLL to \"$new_path\"" >&5 54365 $as_echo "$as_me: Rewriting MSVC_DLL to \"$new_path\"" >&6;} 54366 fi 54367 54368 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 54369 54370 path="$MSVC_DLL" 54371 has_colon=`$ECHO $path | $GREP ^.:` 54372 new_path="$path" 54373 if test "x$has_colon" = x; then 54374 # Not in mixed or Windows style, start by that. 54375 new_path=`cmd //c echo $path` 54376 fi 54377 54378 54379 input_path="$new_path" 54380 # Check if we need to convert this using DOS-style short mode. If the path 54381 # contains just simple characters, use it. Otherwise (spaces, weird characters), 54382 # take no chances and rewrite it. 54383 # Note: m4 eats our [], so we need to use [ and ] instead. 54384 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 54385 if test "x$has_forbidden_chars" != x; then 54386 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 54387 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 54388 fi 54389 54390 54391 windows_path="$new_path" 54392 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 54393 unix_path=`$CYGPATH -u "$windows_path"` 54394 new_path="$unix_path" 54395 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 54396 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 54397 new_path="$unix_path" 54398 fi 54399 54400 if test "x$path" != "x$new_path"; then 54401 MSVC_DLL="$new_path" 54402 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVC_DLL to \"$new_path\"" >&5 54403 $as_echo "$as_me: Rewriting MSVC_DLL to \"$new_path\"" >&6;} 54404 fi 54405 54406 # Save the first 10 bytes of this path to the storage, so fixpath can work. 54407 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 54408 54409 else 54410 # We're on a unix platform. Hooray! :) 54411 path="$MSVC_DLL" 54412 has_space=`$ECHO "$path" | $GREP " "` 54413 if test "x$has_space" != x; then 54414 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&5 54415 $as_echo "$as_me: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&6;} 54416 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 54417 fi 54418 54419 # Use eval to expand a potential ~ 54420 eval path="$path" 54421 if test ! -f "$path" && test ! -d "$path"; then 54422 as_fn_error $? "The path of MSVC_DLL, which resolves as \"$path\", is not found." "$LINENO" 5 54423 fi 54424 54425 if test -d "$path"; then 54426 MSVC_DLL="`cd "$path"; $THEPWDCMD -L`" 54427 else 54428 dir="`$DIRNAME "$path"`" 54429 base="`$BASENAME "$path"`" 54430 MSVC_DLL="`cd "$dir"; $THEPWDCMD -L`/$base" 54431 fi 54432 fi 54433 fi 54434 54435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $DLL_NAME" >&5 54436 $as_echo_n "checking for $DLL_NAME... " >&6; } 54437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSVC_DLL" >&5 54438 $as_echo "$MSVC_DLL" >&6; } 54439 else 54440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: incorrect, ignoring" >&5 54441 $as_echo "incorrect, ignoring" >&6; } 54442 { $as_echo "$as_me:${as_lineno-$LINENO}: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&5 54443 $as_echo "$as_me: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&6;} 54444 fi 54445 fi 54446 54447 fi 54448 fi 54449 54450 if test "x$MSVC_DLL" = x; then 54451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $DLL_NAME" >&5 54452 $as_echo_n "checking for $DLL_NAME... " >&6; } 54453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 54454 $as_echo "no" >&6; } 54455 as_fn_error $? "Could not find $DLL_NAME. Please specify using --with-msvcr-dll." "$LINENO" 5 54456 fi 54457 54458 MSVCR_DLL="$MSVC_DLL" 54459 fi 54460 54461 54462 54463 # Check whether --with-msvcp-dll was given. 54464 if test "${with_msvcp_dll+set}" = set; then : 54465 withval=$with_msvcp_dll; 54466 fi 54467 54468 54469 if test "x$MSVCP_NAME" != "x"; then 54470 if test "x$with_msvcp_dll" != x; then 54471 # If given explicitly by user, do not probe. If not present, fail directly. 54472 54473 DLL_NAME="$MSVCP_NAME" 54474 POSSIBLE_MSVC_DLL="$with_msvcp_dll" 54475 METHOD="--with-msvcp-dll" 54476 if test -n "$POSSIBLE_MSVC_DLL" -a -e "$POSSIBLE_MSVC_DLL"; then 54477 { $as_echo "$as_me:${as_lineno-$LINENO}: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&5 54478 $as_echo "$as_me: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&6;} 54479 54480 # Need to check if the found msvcr is correct architecture 54481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking found $DLL_NAME architecture" >&5 54482 $as_echo_n "checking found $DLL_NAME architecture... " >&6; } 54483 MSVC_DLL_FILETYPE=`$FILE -b "$POSSIBLE_MSVC_DLL"` 54484 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 54485 # The MSYS 'file' command returns "PE32 executable for MS Windows (DLL) (GUI) Intel 80386 32-bit" 54486 # on x32 and "PE32+ executable for MS Windows (DLL) (GUI) Mono/.Net assembly" on x64 systems. 54487 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 54488 CORRECT_MSVCR_ARCH="PE32 executable" 54489 else 54490 CORRECT_MSVCR_ARCH="PE32+ executable" 54491 fi 54492 else 54493 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 54494 CORRECT_MSVCR_ARCH=386 54495 else 54496 CORRECT_MSVCR_ARCH=x86-64 54497 fi 54498 fi 54499 if $ECHO "$MSVC_DLL_FILETYPE" | $GREP "$CORRECT_MSVCR_ARCH" 2>&1 > /dev/null; then 54500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 54501 $as_echo "ok" >&6; } 54502 MSVC_DLL="$POSSIBLE_MSVC_DLL" 54503 54504 # Only process if variable expands to non-empty 54505 54506 if test "x$MSVC_DLL" != x; then 54507 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 54508 54509 # Input might be given as Windows format, start by converting to 54510 # unix format. 54511 path="$MSVC_DLL" 54512 new_path=`$CYGPATH -u "$path"` 54513 54514 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 54515 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 54516 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 54517 # "foo.exe" is OK but "foo" is an error. 54518 # 54519 # This test is therefore slightly more accurate than "test -f" to check for file precense. 54520 # It is also a way to make sure we got the proper file name for the real test later on. 54521 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 54522 if test "x$test_shortpath" = x; then 54523 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&5 54524 $as_echo "$as_me: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&6;} 54525 as_fn_error $? "Cannot locate the the path of MSVC_DLL" "$LINENO" 5 54526 fi 54527 54528 # Call helper function which possibly converts this using DOS-style short mode. 54529 # If so, the updated path is stored in $new_path. 54530 54531 input_path="$new_path" 54532 # Check if we need to convert this using DOS-style short mode. If the path 54533 # contains just simple characters, use it. Otherwise (spaces, weird characters), 54534 # take no chances and rewrite it. 54535 # Note: m4 eats our [], so we need to use [ and ] instead. 54536 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 54537 if test "x$has_forbidden_chars" != x; then 54538 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 54539 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 54540 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 54541 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 54542 # Going to short mode and back again did indeed matter. Since short mode is 54543 # case insensitive, let's make it lowercase to improve readability. 54544 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 54545 # Now convert it back to Unix-style (cygpath) 54546 input_path=`$CYGPATH -u "$shortmode_path"` 54547 new_path="$input_path" 54548 fi 54549 fi 54550 54551 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 54552 if test "x$test_cygdrive_prefix" = x; then 54553 # As a simple fix, exclude /usr/bin since it's not a real path. 54554 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 54555 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 54556 # a path prefixed by /cygdrive for fixpath to work. 54557 new_path="$CYGWIN_ROOT_PATH$input_path" 54558 fi 54559 fi 54560 54561 54562 if test "x$path" != "x$new_path"; then 54563 MSVC_DLL="$new_path" 54564 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVC_DLL to \"$new_path\"" >&5 54565 $as_echo "$as_me: Rewriting MSVC_DLL to \"$new_path\"" >&6;} 54566 fi 54567 54568 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 54569 54570 path="$MSVC_DLL" 54571 has_colon=`$ECHO $path | $GREP ^.:` 54572 new_path="$path" 54573 if test "x$has_colon" = x; then 54574 # Not in mixed or Windows style, start by that. 54575 new_path=`cmd //c echo $path` 54576 fi 54577 54578 54579 input_path="$new_path" 54580 # Check if we need to convert this using DOS-style short mode. If the path 54581 # contains just simple characters, use it. Otherwise (spaces, weird characters), 54582 # take no chances and rewrite it. 54583 # Note: m4 eats our [], so we need to use [ and ] instead. 54584 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 54585 if test "x$has_forbidden_chars" != x; then 54586 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 54587 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 54588 fi 54589 54590 54591 windows_path="$new_path" 54592 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 54593 unix_path=`$CYGPATH -u "$windows_path"` 54594 new_path="$unix_path" 54595 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 54596 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 54597 new_path="$unix_path" 54598 fi 54599 54600 if test "x$path" != "x$new_path"; then 54601 MSVC_DLL="$new_path" 54602 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVC_DLL to \"$new_path\"" >&5 54603 $as_echo "$as_me: Rewriting MSVC_DLL to \"$new_path\"" >&6;} 54604 fi 54605 54606 # Save the first 10 bytes of this path to the storage, so fixpath can work. 54607 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 54608 54609 else 54610 # We're on a unix platform. Hooray! :) 54611 path="$MSVC_DLL" 54612 has_space=`$ECHO "$path" | $GREP " "` 54613 if test "x$has_space" != x; then 54614 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&5 54615 $as_echo "$as_me: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&6;} 54616 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 54617 fi 54618 54619 # Use eval to expand a potential ~ 54620 eval path="$path" 54621 if test ! -f "$path" && test ! -d "$path"; then 54622 as_fn_error $? "The path of MSVC_DLL, which resolves as \"$path\", is not found." "$LINENO" 5 54623 fi 54624 54625 if test -d "$path"; then 54626 MSVC_DLL="`cd "$path"; $THEPWDCMD -L`" 54627 else 54628 dir="`$DIRNAME "$path"`" 54629 base="`$BASENAME "$path"`" 54630 MSVC_DLL="`cd "$dir"; $THEPWDCMD -L`/$base" 54631 fi 54632 fi 54633 fi 54634 54635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $DLL_NAME" >&5 54636 $as_echo_n "checking for $DLL_NAME... " >&6; } 54637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSVC_DLL" >&5 54638 $as_echo "$MSVC_DLL" >&6; } 54639 else 54640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: incorrect, ignoring" >&5 54641 $as_echo "incorrect, ignoring" >&6; } 54642 { $as_echo "$as_me:${as_lineno-$LINENO}: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&5 54643 $as_echo "$as_me: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&6;} 54644 fi 54645 fi 54646 54647 if test "x$MSVC_DLL" = x; then 54648 as_fn_error $? "Could not find a proper $MSVCP_NAME as specified by --with-msvcp-dll" "$LINENO" 5 54649 fi 54650 MSVCP_DLL="$MSVC_DLL" 54651 elif test "x$DEVKIT_MSVCP_DLL" != x; then 54652 54653 DLL_NAME="$MSVCP_NAME" 54654 POSSIBLE_MSVC_DLL="$DEVKIT_MSVCP_DLL" 54655 METHOD="devkit" 54656 if test -n "$POSSIBLE_MSVC_DLL" -a -e "$POSSIBLE_MSVC_DLL"; then 54657 { $as_echo "$as_me:${as_lineno-$LINENO}: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&5 54658 $as_echo "$as_me: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&6;} 54659 54660 # Need to check if the found msvcr is correct architecture 54661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking found $DLL_NAME architecture" >&5 54662 $as_echo_n "checking found $DLL_NAME architecture... " >&6; } 54663 MSVC_DLL_FILETYPE=`$FILE -b "$POSSIBLE_MSVC_DLL"` 54664 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 54665 # The MSYS 'file' command returns "PE32 executable for MS Windows (DLL) (GUI) Intel 80386 32-bit" 54666 # on x32 and "PE32+ executable for MS Windows (DLL) (GUI) Mono/.Net assembly" on x64 systems. 54667 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 54668 CORRECT_MSVCR_ARCH="PE32 executable" 54669 else 54670 CORRECT_MSVCR_ARCH="PE32+ executable" 54671 fi 54672 else 54673 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 54674 CORRECT_MSVCR_ARCH=386 54675 else 54676 CORRECT_MSVCR_ARCH=x86-64 54677 fi 54678 fi 54679 if $ECHO "$MSVC_DLL_FILETYPE" | $GREP "$CORRECT_MSVCR_ARCH" 2>&1 > /dev/null; then 54680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 54681 $as_echo "ok" >&6; } 54682 MSVC_DLL="$POSSIBLE_MSVC_DLL" 54683 54684 # Only process if variable expands to non-empty 54685 54686 if test "x$MSVC_DLL" != x; then 54687 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 54688 54689 # Input might be given as Windows format, start by converting to 54690 # unix format. 54691 path="$MSVC_DLL" 54692 new_path=`$CYGPATH -u "$path"` 54693 54694 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 54695 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 54696 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 54697 # "foo.exe" is OK but "foo" is an error. 54698 # 54699 # This test is therefore slightly more accurate than "test -f" to check for file precense. 54700 # It is also a way to make sure we got the proper file name for the real test later on. 54701 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 54702 if test "x$test_shortpath" = x; then 54703 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&5 54704 $as_echo "$as_me: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&6;} 54705 as_fn_error $? "Cannot locate the the path of MSVC_DLL" "$LINENO" 5 54706 fi 54707 54708 # Call helper function which possibly converts this using DOS-style short mode. 54709 # If so, the updated path is stored in $new_path. 54710 54711 input_path="$new_path" 54712 # Check if we need to convert this using DOS-style short mode. If the path 54713 # contains just simple characters, use it. Otherwise (spaces, weird characters), 54714 # take no chances and rewrite it. 54715 # Note: m4 eats our [], so we need to use [ and ] instead. 54716 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 54717 if test "x$has_forbidden_chars" != x; then 54718 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 54719 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 54720 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 54721 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 54722 # Going to short mode and back again did indeed matter. Since short mode is 54723 # case insensitive, let's make it lowercase to improve readability. 54724 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 54725 # Now convert it back to Unix-style (cygpath) 54726 input_path=`$CYGPATH -u "$shortmode_path"` 54727 new_path="$input_path" 54728 fi 54729 fi 54730 54731 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 54732 if test "x$test_cygdrive_prefix" = x; then 54733 # As a simple fix, exclude /usr/bin since it's not a real path. 54734 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 54735 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 54736 # a path prefixed by /cygdrive for fixpath to work. 54737 new_path="$CYGWIN_ROOT_PATH$input_path" 54738 fi 54739 fi 54740 54741 54742 if test "x$path" != "x$new_path"; then 54743 MSVC_DLL="$new_path" 54744 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVC_DLL to \"$new_path\"" >&5 54745 $as_echo "$as_me: Rewriting MSVC_DLL to \"$new_path\"" >&6;} 54746 fi 54747 54748 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 54749 54750 path="$MSVC_DLL" 54751 has_colon=`$ECHO $path | $GREP ^.:` 54752 new_path="$path" 54753 if test "x$has_colon" = x; then 54754 # Not in mixed or Windows style, start by that. 54755 new_path=`cmd //c echo $path` 54756 fi 54757 54758 54759 input_path="$new_path" 54760 # Check if we need to convert this using DOS-style short mode. If the path 54761 # contains just simple characters, use it. Otherwise (spaces, weird characters), 54762 # take no chances and rewrite it. 54763 # Note: m4 eats our [], so we need to use [ and ] instead. 54764 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 54765 if test "x$has_forbidden_chars" != x; then 54766 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 54767 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 54768 fi 54769 54770 54771 windows_path="$new_path" 54772 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 54773 unix_path=`$CYGPATH -u "$windows_path"` 54774 new_path="$unix_path" 54775 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 54776 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 54777 new_path="$unix_path" 54778 fi 54779 54780 if test "x$path" != "x$new_path"; then 54781 MSVC_DLL="$new_path" 54782 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVC_DLL to \"$new_path\"" >&5 54783 $as_echo "$as_me: Rewriting MSVC_DLL to \"$new_path\"" >&6;} 54784 fi 54785 54786 # Save the first 10 bytes of this path to the storage, so fixpath can work. 54787 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 54788 54789 else 54790 # We're on a unix platform. Hooray! :) 54791 path="$MSVC_DLL" 54792 has_space=`$ECHO "$path" | $GREP " "` 54793 if test "x$has_space" != x; then 54794 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&5 54795 $as_echo "$as_me: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&6;} 54796 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 54797 fi 54798 54799 # Use eval to expand a potential ~ 54800 eval path="$path" 54801 if test ! -f "$path" && test ! -d "$path"; then 54802 as_fn_error $? "The path of MSVC_DLL, which resolves as \"$path\", is not found." "$LINENO" 5 54803 fi 54804 54805 if test -d "$path"; then 54806 MSVC_DLL="`cd "$path"; $THEPWDCMD -L`" 54807 else 54808 dir="`$DIRNAME "$path"`" 54809 base="`$BASENAME "$path"`" 54810 MSVC_DLL="`cd "$dir"; $THEPWDCMD -L`/$base" 54811 fi 54812 fi 54813 fi 54814 54815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $DLL_NAME" >&5 54816 $as_echo_n "checking for $DLL_NAME... " >&6; } 54817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSVC_DLL" >&5 54818 $as_echo "$MSVC_DLL" >&6; } 54819 else 54820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: incorrect, ignoring" >&5 54821 $as_echo "incorrect, ignoring" >&6; } 54822 { $as_echo "$as_me:${as_lineno-$LINENO}: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&5 54823 $as_echo "$as_me: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&6;} 54824 fi 54825 fi 54826 54827 if test "x$MSVC_DLL" = x; then 54828 as_fn_error $? "Could not find a proper $MSVCP_NAME as specified by devkit" "$LINENO" 5 54829 fi 54830 MSVCP_DLL="$MSVC_DLL" 54831 else 54832 54833 DLL_NAME="${MSVCP_NAME}" 54834 MSVC_DLL= 54835 54836 if test "x$MSVC_DLL" = x; then 54837 # Probe: Using well-known location from Visual Studio 10.0 54838 if test "x$VCINSTALLDIR" != x; then 54839 CYGWIN_VC_INSTALL_DIR="$VCINSTALLDIR" 54840 54841 windows_path="$CYGWIN_VC_INSTALL_DIR" 54842 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 54843 unix_path=`$CYGPATH -u "$windows_path"` 54844 CYGWIN_VC_INSTALL_DIR="$unix_path" 54845 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 54846 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 54847 CYGWIN_VC_INSTALL_DIR="$unix_path" 54848 fi 54849 54850 if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then 54851 POSSIBLE_MSVC_DLL="$CYGWIN_VC_INSTALL_DIR/redist/x64/Microsoft.VC${VS_VERSION_INTERNAL}.CRT/$DLL_NAME" 54852 else 54853 POSSIBLE_MSVC_DLL="$CYGWIN_VC_INSTALL_DIR/redist/x86/Microsoft.VC${VS_VERSION_INTERNAL}.CRT/$DLL_NAME" 54854 fi 54855 $ECHO "POSSIBLE_MSVC_DLL $POSSIBLEMSVC_DLL" 54856 54857 DLL_NAME="$DLL_NAME" 54858 POSSIBLE_MSVC_DLL="$POSSIBLE_MSVC_DLL" 54859 METHOD="well-known location in VCINSTALLDIR" 54860 if test -n "$POSSIBLE_MSVC_DLL" -a -e "$POSSIBLE_MSVC_DLL"; then 54861 { $as_echo "$as_me:${as_lineno-$LINENO}: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&5 54862 $as_echo "$as_me: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&6;} 54863 54864 # Need to check if the found msvcr is correct architecture 54865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking found $DLL_NAME architecture" >&5 54866 $as_echo_n "checking found $DLL_NAME architecture... " >&6; } 54867 MSVC_DLL_FILETYPE=`$FILE -b "$POSSIBLE_MSVC_DLL"` 54868 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 54869 # The MSYS 'file' command returns "PE32 executable for MS Windows (DLL) (GUI) Intel 80386 32-bit" 54870 # on x32 and "PE32+ executable for MS Windows (DLL) (GUI) Mono/.Net assembly" on x64 systems. 54871 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 54872 CORRECT_MSVCR_ARCH="PE32 executable" 54873 else 54874 CORRECT_MSVCR_ARCH="PE32+ executable" 54875 fi 54876 else 54877 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 54878 CORRECT_MSVCR_ARCH=386 54879 else 54880 CORRECT_MSVCR_ARCH=x86-64 54881 fi 54882 fi 54883 if $ECHO "$MSVC_DLL_FILETYPE" | $GREP "$CORRECT_MSVCR_ARCH" 2>&1 > /dev/null; then 54884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 54885 $as_echo "ok" >&6; } 54886 MSVC_DLL="$POSSIBLE_MSVC_DLL" 54887 54888 # Only process if variable expands to non-empty 54889 54890 if test "x$MSVC_DLL" != x; then 54891 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 54892 54893 # Input might be given as Windows format, start by converting to 54894 # unix format. 54895 path="$MSVC_DLL" 54896 new_path=`$CYGPATH -u "$path"` 54897 54898 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 54899 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 54900 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 54901 # "foo.exe" is OK but "foo" is an error. 54902 # 54903 # This test is therefore slightly more accurate than "test -f" to check for file precense. 54904 # It is also a way to make sure we got the proper file name for the real test later on. 54905 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 54906 if test "x$test_shortpath" = x; then 54907 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&5 54908 $as_echo "$as_me: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&6;} 54909 as_fn_error $? "Cannot locate the the path of MSVC_DLL" "$LINENO" 5 54910 fi 54911 54912 # Call helper function which possibly converts this using DOS-style short mode. 54913 # If so, the updated path is stored in $new_path. 54914 54915 input_path="$new_path" 54916 # Check if we need to convert this using DOS-style short mode. If the path 54917 # contains just simple characters, use it. Otherwise (spaces, weird characters), 54918 # take no chances and rewrite it. 54919 # Note: m4 eats our [], so we need to use [ and ] instead. 54920 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 54921 if test "x$has_forbidden_chars" != x; then 54922 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 54923 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 54924 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 54925 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 54926 # Going to short mode and back again did indeed matter. Since short mode is 54927 # case insensitive, let's make it lowercase to improve readability. 54928 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 54929 # Now convert it back to Unix-style (cygpath) 54930 input_path=`$CYGPATH -u "$shortmode_path"` 54931 new_path="$input_path" 54932 fi 54933 fi 54934 54935 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 54936 if test "x$test_cygdrive_prefix" = x; then 54937 # As a simple fix, exclude /usr/bin since it's not a real path. 54938 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 54939 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 54940 # a path prefixed by /cygdrive for fixpath to work. 54941 new_path="$CYGWIN_ROOT_PATH$input_path" 54942 fi 54943 fi 54944 54945 54946 if test "x$path" != "x$new_path"; then 54947 MSVC_DLL="$new_path" 54948 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVC_DLL to \"$new_path\"" >&5 54949 $as_echo "$as_me: Rewriting MSVC_DLL to \"$new_path\"" >&6;} 54950 fi 54951 54952 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 54953 54954 path="$MSVC_DLL" 54955 has_colon=`$ECHO $path | $GREP ^.:` 54956 new_path="$path" 54957 if test "x$has_colon" = x; then 54958 # Not in mixed or Windows style, start by that. 54959 new_path=`cmd //c echo $path` 54960 fi 54961 54962 54963 input_path="$new_path" 54964 # Check if we need to convert this using DOS-style short mode. If the path 54965 # contains just simple characters, use it. Otherwise (spaces, weird characters), 54966 # take no chances and rewrite it. 54967 # Note: m4 eats our [], so we need to use [ and ] instead. 54968 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 54969 if test "x$has_forbidden_chars" != x; then 54970 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 54971 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 54972 fi 54973 54974 54975 windows_path="$new_path" 54976 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 54977 unix_path=`$CYGPATH -u "$windows_path"` 54978 new_path="$unix_path" 54979 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 54980 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 54981 new_path="$unix_path" 54982 fi 54983 54984 if test "x$path" != "x$new_path"; then 54985 MSVC_DLL="$new_path" 54986 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVC_DLL to \"$new_path\"" >&5 54987 $as_echo "$as_me: Rewriting MSVC_DLL to \"$new_path\"" >&6;} 54988 fi 54989 54990 # Save the first 10 bytes of this path to the storage, so fixpath can work. 54991 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 54992 54993 else 54994 # We're on a unix platform. Hooray! :) 54995 path="$MSVC_DLL" 54996 has_space=`$ECHO "$path" | $GREP " "` 54997 if test "x$has_space" != x; then 54998 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&5 54999 $as_echo "$as_me: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&6;} 55000 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 55001 fi 55002 55003 # Use eval to expand a potential ~ 55004 eval path="$path" 55005 if test ! -f "$path" && test ! -d "$path"; then 55006 as_fn_error $? "The path of MSVC_DLL, which resolves as \"$path\", is not found." "$LINENO" 5 55007 fi 55008 55009 if test -d "$path"; then 55010 MSVC_DLL="`cd "$path"; $THEPWDCMD -L`" 55011 else 55012 dir="`$DIRNAME "$path"`" 55013 base="`$BASENAME "$path"`" 55014 MSVC_DLL="`cd "$dir"; $THEPWDCMD -L`/$base" 55015 fi 55016 fi 55017 fi 55018 55019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $DLL_NAME" >&5 55020 $as_echo_n "checking for $DLL_NAME... " >&6; } 55021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSVC_DLL" >&5 55022 $as_echo "$MSVC_DLL" >&6; } 55023 else 55024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: incorrect, ignoring" >&5 55025 $as_echo "incorrect, ignoring" >&6; } 55026 { $as_echo "$as_me:${as_lineno-$LINENO}: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&5 55027 $as_echo "$as_me: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&6;} 55028 fi 55029 fi 55030 55031 fi 55032 fi 55033 55034 if test "x$MSVC_DLL" = x; then 55035 # Probe: Check in the Boot JDK directory. 55036 POSSIBLE_MSVC_DLL="$BOOT_JDK/bin/$DLL_NAME" 55037 55038 DLL_NAME="$DLL_NAME" 55039 POSSIBLE_MSVC_DLL="$POSSIBLE_MSVC_DLL" 55040 METHOD="well-known location in Boot JDK" 55041 if test -n "$POSSIBLE_MSVC_DLL" -a -e "$POSSIBLE_MSVC_DLL"; then 55042 { $as_echo "$as_me:${as_lineno-$LINENO}: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&5 55043 $as_echo "$as_me: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&6;} 55044 55045 # Need to check if the found msvcr is correct architecture 55046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking found $DLL_NAME architecture" >&5 55047 $as_echo_n "checking found $DLL_NAME architecture... " >&6; } 55048 MSVC_DLL_FILETYPE=`$FILE -b "$POSSIBLE_MSVC_DLL"` 55049 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 55050 # The MSYS 'file' command returns "PE32 executable for MS Windows (DLL) (GUI) Intel 80386 32-bit" 55051 # on x32 and "PE32+ executable for MS Windows (DLL) (GUI) Mono/.Net assembly" on x64 systems. 55052 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 55053 CORRECT_MSVCR_ARCH="PE32 executable" 55054 else 55055 CORRECT_MSVCR_ARCH="PE32+ executable" 55056 fi 55057 else 55058 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 55059 CORRECT_MSVCR_ARCH=386 55060 else 55061 CORRECT_MSVCR_ARCH=x86-64 55062 fi 55063 fi 55064 if $ECHO "$MSVC_DLL_FILETYPE" | $GREP "$CORRECT_MSVCR_ARCH" 2>&1 > /dev/null; then 55065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 55066 $as_echo "ok" >&6; } 55067 MSVC_DLL="$POSSIBLE_MSVC_DLL" 55068 55069 # Only process if variable expands to non-empty 55070 55071 if test "x$MSVC_DLL" != x; then 55072 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 55073 55074 # Input might be given as Windows format, start by converting to 55075 # unix format. 55076 path="$MSVC_DLL" 55077 new_path=`$CYGPATH -u "$path"` 55078 55079 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 55080 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 55081 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 55082 # "foo.exe" is OK but "foo" is an error. 55083 # 55084 # This test is therefore slightly more accurate than "test -f" to check for file precense. 55085 # It is also a way to make sure we got the proper file name for the real test later on. 55086 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 55087 if test "x$test_shortpath" = x; then 55088 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&5 55089 $as_echo "$as_me: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&6;} 55090 as_fn_error $? "Cannot locate the the path of MSVC_DLL" "$LINENO" 5 55091 fi 55092 55093 # Call helper function which possibly converts this using DOS-style short mode. 55094 # If so, the updated path is stored in $new_path. 55095 55096 input_path="$new_path" 55097 # Check if we need to convert this using DOS-style short mode. If the path 55098 # contains just simple characters, use it. Otherwise (spaces, weird characters), 55099 # take no chances and rewrite it. 55100 # Note: m4 eats our [], so we need to use [ and ] instead. 55101 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 55102 if test "x$has_forbidden_chars" != x; then 55103 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 55104 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 55105 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 55106 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 55107 # Going to short mode and back again did indeed matter. Since short mode is 55108 # case insensitive, let's make it lowercase to improve readability. 55109 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 55110 # Now convert it back to Unix-style (cygpath) 55111 input_path=`$CYGPATH -u "$shortmode_path"` 55112 new_path="$input_path" 55113 fi 55114 fi 55115 55116 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 55117 if test "x$test_cygdrive_prefix" = x; then 55118 # As a simple fix, exclude /usr/bin since it's not a real path. 55119 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 55120 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 55121 # a path prefixed by /cygdrive for fixpath to work. 55122 new_path="$CYGWIN_ROOT_PATH$input_path" 55123 fi 55124 fi 55125 55126 55127 if test "x$path" != "x$new_path"; then 55128 MSVC_DLL="$new_path" 55129 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVC_DLL to \"$new_path\"" >&5 55130 $as_echo "$as_me: Rewriting MSVC_DLL to \"$new_path\"" >&6;} 55131 fi 55132 55133 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 55134 55135 path="$MSVC_DLL" 55136 has_colon=`$ECHO $path | $GREP ^.:` 55137 new_path="$path" 55138 if test "x$has_colon" = x; then 55139 # Not in mixed or Windows style, start by that. 55140 new_path=`cmd //c echo $path` 55141 fi 55142 55143 55144 input_path="$new_path" 55145 # Check if we need to convert this using DOS-style short mode. If the path 55146 # contains just simple characters, use it. Otherwise (spaces, weird characters), 55147 # take no chances and rewrite it. 55148 # Note: m4 eats our [], so we need to use [ and ] instead. 55149 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 55150 if test "x$has_forbidden_chars" != x; then 55151 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 55152 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 55153 fi 55154 55155 55156 windows_path="$new_path" 55157 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 55158 unix_path=`$CYGPATH -u "$windows_path"` 55159 new_path="$unix_path" 55160 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 55161 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 55162 new_path="$unix_path" 55163 fi 55164 55165 if test "x$path" != "x$new_path"; then 55166 MSVC_DLL="$new_path" 55167 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVC_DLL to \"$new_path\"" >&5 55168 $as_echo "$as_me: Rewriting MSVC_DLL to \"$new_path\"" >&6;} 55169 fi 55170 55171 # Save the first 10 bytes of this path to the storage, so fixpath can work. 55172 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 55173 55174 else 55175 # We're on a unix platform. Hooray! :) 55176 path="$MSVC_DLL" 55177 has_space=`$ECHO "$path" | $GREP " "` 55178 if test "x$has_space" != x; then 55179 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&5 55180 $as_echo "$as_me: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&6;} 55181 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 55182 fi 55183 55184 # Use eval to expand a potential ~ 55185 eval path="$path" 55186 if test ! -f "$path" && test ! -d "$path"; then 55187 as_fn_error $? "The path of MSVC_DLL, which resolves as \"$path\", is not found." "$LINENO" 5 55188 fi 55189 55190 if test -d "$path"; then 55191 MSVC_DLL="`cd "$path"; $THEPWDCMD -L`" 55192 else 55193 dir="`$DIRNAME "$path"`" 55194 base="`$BASENAME "$path"`" 55195 MSVC_DLL="`cd "$dir"; $THEPWDCMD -L`/$base" 55196 fi 55197 fi 55198 fi 55199 55200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $DLL_NAME" >&5 55201 $as_echo_n "checking for $DLL_NAME... " >&6; } 55202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSVC_DLL" >&5 55203 $as_echo "$MSVC_DLL" >&6; } 55204 else 55205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: incorrect, ignoring" >&5 55206 $as_echo "incorrect, ignoring" >&6; } 55207 { $as_echo "$as_me:${as_lineno-$LINENO}: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&5 55208 $as_echo "$as_me: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&6;} 55209 fi 55210 fi 55211 55212 fi 55213 55214 if test "x$MSVC_DLL" = x; then 55215 # Probe: Look in the Windows system32 directory 55216 CYGWIN_SYSTEMROOT="$SYSTEMROOT" 55217 55218 windows_path="$CYGWIN_SYSTEMROOT" 55219 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 55220 unix_path=`$CYGPATH -u "$windows_path"` 55221 CYGWIN_SYSTEMROOT="$unix_path" 55222 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 55223 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 55224 CYGWIN_SYSTEMROOT="$unix_path" 55225 fi 55226 55227 POSSIBLE_MSVC_DLL="$CYGWIN_SYSTEMROOT/system32/$DLL_NAME" 55228 55229 DLL_NAME="$DLL_NAME" 55230 POSSIBLE_MSVC_DLL="$POSSIBLE_MSVC_DLL" 55231 METHOD="well-known location in SYSTEMROOT" 55232 if test -n "$POSSIBLE_MSVC_DLL" -a -e "$POSSIBLE_MSVC_DLL"; then 55233 { $as_echo "$as_me:${as_lineno-$LINENO}: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&5 55234 $as_echo "$as_me: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&6;} 55235 55236 # Need to check if the found msvcr is correct architecture 55237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking found $DLL_NAME architecture" >&5 55238 $as_echo_n "checking found $DLL_NAME architecture... " >&6; } 55239 MSVC_DLL_FILETYPE=`$FILE -b "$POSSIBLE_MSVC_DLL"` 55240 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 55241 # The MSYS 'file' command returns "PE32 executable for MS Windows (DLL) (GUI) Intel 80386 32-bit" 55242 # on x32 and "PE32+ executable for MS Windows (DLL) (GUI) Mono/.Net assembly" on x64 systems. 55243 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 55244 CORRECT_MSVCR_ARCH="PE32 executable" 55245 else 55246 CORRECT_MSVCR_ARCH="PE32+ executable" 55247 fi 55248 else 55249 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 55250 CORRECT_MSVCR_ARCH=386 55251 else 55252 CORRECT_MSVCR_ARCH=x86-64 55253 fi 55254 fi 55255 if $ECHO "$MSVC_DLL_FILETYPE" | $GREP "$CORRECT_MSVCR_ARCH" 2>&1 > /dev/null; then 55256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 55257 $as_echo "ok" >&6; } 55258 MSVC_DLL="$POSSIBLE_MSVC_DLL" 55259 55260 # Only process if variable expands to non-empty 55261 55262 if test "x$MSVC_DLL" != x; then 55263 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 55264 55265 # Input might be given as Windows format, start by converting to 55266 # unix format. 55267 path="$MSVC_DLL" 55268 new_path=`$CYGPATH -u "$path"` 55269 55270 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 55271 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 55272 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 55273 # "foo.exe" is OK but "foo" is an error. 55274 # 55275 # This test is therefore slightly more accurate than "test -f" to check for file precense. 55276 # It is also a way to make sure we got the proper file name for the real test later on. 55277 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 55278 if test "x$test_shortpath" = x; then 55279 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&5 55280 $as_echo "$as_me: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&6;} 55281 as_fn_error $? "Cannot locate the the path of MSVC_DLL" "$LINENO" 5 55282 fi 55283 55284 # Call helper function which possibly converts this using DOS-style short mode. 55285 # If so, the updated path is stored in $new_path. 55286 55287 input_path="$new_path" 55288 # Check if we need to convert this using DOS-style short mode. If the path 55289 # contains just simple characters, use it. Otherwise (spaces, weird characters), 55290 # take no chances and rewrite it. 55291 # Note: m4 eats our [], so we need to use [ and ] instead. 55292 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 55293 if test "x$has_forbidden_chars" != x; then 55294 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 55295 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 55296 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 55297 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 55298 # Going to short mode and back again did indeed matter. Since short mode is 55299 # case insensitive, let's make it lowercase to improve readability. 55300 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 55301 # Now convert it back to Unix-style (cygpath) 55302 input_path=`$CYGPATH -u "$shortmode_path"` 55303 new_path="$input_path" 55304 fi 55305 fi 55306 55307 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 55308 if test "x$test_cygdrive_prefix" = x; then 55309 # As a simple fix, exclude /usr/bin since it's not a real path. 55310 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 55311 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 55312 # a path prefixed by /cygdrive for fixpath to work. 55313 new_path="$CYGWIN_ROOT_PATH$input_path" 55314 fi 55315 fi 55316 55317 55318 if test "x$path" != "x$new_path"; then 55319 MSVC_DLL="$new_path" 55320 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVC_DLL to \"$new_path\"" >&5 55321 $as_echo "$as_me: Rewriting MSVC_DLL to \"$new_path\"" >&6;} 55322 fi 55323 55324 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 55325 55326 path="$MSVC_DLL" 55327 has_colon=`$ECHO $path | $GREP ^.:` 55328 new_path="$path" 55329 if test "x$has_colon" = x; then 55330 # Not in mixed or Windows style, start by that. 55331 new_path=`cmd //c echo $path` 55332 fi 55333 55334 55335 input_path="$new_path" 55336 # Check if we need to convert this using DOS-style short mode. If the path 55337 # contains just simple characters, use it. Otherwise (spaces, weird characters), 55338 # take no chances and rewrite it. 55339 # Note: m4 eats our [], so we need to use [ and ] instead. 55340 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 55341 if test "x$has_forbidden_chars" != x; then 55342 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 55343 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 55344 fi 55345 55346 55347 windows_path="$new_path" 55348 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 55349 unix_path=`$CYGPATH -u "$windows_path"` 55350 new_path="$unix_path" 55351 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 55352 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 55353 new_path="$unix_path" 55354 fi 55355 55356 if test "x$path" != "x$new_path"; then 55357 MSVC_DLL="$new_path" 55358 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVC_DLL to \"$new_path\"" >&5 55359 $as_echo "$as_me: Rewriting MSVC_DLL to \"$new_path\"" >&6;} 55360 fi 55361 55362 # Save the first 10 bytes of this path to the storage, so fixpath can work. 55363 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 55364 55365 else 55366 # We're on a unix platform. Hooray! :) 55367 path="$MSVC_DLL" 55368 has_space=`$ECHO "$path" | $GREP " "` 55369 if test "x$has_space" != x; then 55370 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&5 55371 $as_echo "$as_me: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&6;} 55372 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 55373 fi 55374 55375 # Use eval to expand a potential ~ 55376 eval path="$path" 55377 if test ! -f "$path" && test ! -d "$path"; then 55378 as_fn_error $? "The path of MSVC_DLL, which resolves as \"$path\", is not found." "$LINENO" 5 55379 fi 55380 55381 if test -d "$path"; then 55382 MSVC_DLL="`cd "$path"; $THEPWDCMD -L`" 55383 else 55384 dir="`$DIRNAME "$path"`" 55385 base="`$BASENAME "$path"`" 55386 MSVC_DLL="`cd "$dir"; $THEPWDCMD -L`/$base" 55387 fi 55388 fi 55389 fi 55390 55391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $DLL_NAME" >&5 55392 $as_echo_n "checking for $DLL_NAME... " >&6; } 55393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSVC_DLL" >&5 55394 $as_echo "$MSVC_DLL" >&6; } 55395 else 55396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: incorrect, ignoring" >&5 55397 $as_echo "incorrect, ignoring" >&6; } 55398 { $as_echo "$as_me:${as_lineno-$LINENO}: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&5 55399 $as_echo "$as_me: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&6;} 55400 fi 55401 fi 55402 55403 fi 55404 55405 if test "x$MSVC_DLL" = x; then 55406 # Probe: If Visual Studio Express is installed, there is usually one with the debugger 55407 if test "x$VS100COMNTOOLS" != x; then 55408 CYGWIN_VS_TOOLS_DIR="$VS100COMNTOOLS/.." 55409 55410 windows_path="$CYGWIN_VS_TOOLS_DIR" 55411 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 55412 unix_path=`$CYGPATH -u "$windows_path"` 55413 CYGWIN_VS_TOOLS_DIR="$unix_path" 55414 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 55415 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 55416 CYGWIN_VS_TOOLS_DIR="$unix_path" 55417 fi 55418 55419 if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then 55420 POSSIBLE_MSVC_DLL=`$FIND "$CYGWIN_VS_TOOLS_DIR" -name $DLL_NAME \ 55421 | $GREP -i /x64/ | $HEAD --lines 1` 55422 else 55423 POSSIBLE_MSVC_DLL=`$FIND "$CYGWIN_VS_TOOLS_DIR" -name $DLL_NAME \ 55424 | $GREP -i /x86/ | $HEAD --lines 1` 55425 fi 55426 55427 DLL_NAME="$DLL_NAME" 55428 POSSIBLE_MSVC_DLL="$POSSIBLE_MSVC_DLL" 55429 METHOD="search of VS100COMNTOOLS" 55430 if test -n "$POSSIBLE_MSVC_DLL" -a -e "$POSSIBLE_MSVC_DLL"; then 55431 { $as_echo "$as_me:${as_lineno-$LINENO}: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&5 55432 $as_echo "$as_me: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&6;} 55433 55434 # Need to check if the found msvcr is correct architecture 55435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking found $DLL_NAME architecture" >&5 55436 $as_echo_n "checking found $DLL_NAME architecture... " >&6; } 55437 MSVC_DLL_FILETYPE=`$FILE -b "$POSSIBLE_MSVC_DLL"` 55438 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 55439 # The MSYS 'file' command returns "PE32 executable for MS Windows (DLL) (GUI) Intel 80386 32-bit" 55440 # on x32 and "PE32+ executable for MS Windows (DLL) (GUI) Mono/.Net assembly" on x64 systems. 55441 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 55442 CORRECT_MSVCR_ARCH="PE32 executable" 55443 else 55444 CORRECT_MSVCR_ARCH="PE32+ executable" 55445 fi 55446 else 55447 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 55448 CORRECT_MSVCR_ARCH=386 55449 else 55450 CORRECT_MSVCR_ARCH=x86-64 55451 fi 55452 fi 55453 if $ECHO "$MSVC_DLL_FILETYPE" | $GREP "$CORRECT_MSVCR_ARCH" 2>&1 > /dev/null; then 55454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 55455 $as_echo "ok" >&6; } 55456 MSVC_DLL="$POSSIBLE_MSVC_DLL" 55457 55458 # Only process if variable expands to non-empty 55459 55460 if test "x$MSVC_DLL" != x; then 55461 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 55462 55463 # Input might be given as Windows format, start by converting to 55464 # unix format. 55465 path="$MSVC_DLL" 55466 new_path=`$CYGPATH -u "$path"` 55467 55468 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 55469 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 55470 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 55471 # "foo.exe" is OK but "foo" is an error. 55472 # 55473 # This test is therefore slightly more accurate than "test -f" to check for file precense. 55474 # It is also a way to make sure we got the proper file name for the real test later on. 55475 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 55476 if test "x$test_shortpath" = x; then 55477 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&5 55478 $as_echo "$as_me: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&6;} 55479 as_fn_error $? "Cannot locate the the path of MSVC_DLL" "$LINENO" 5 55480 fi 55481 55482 # Call helper function which possibly converts this using DOS-style short mode. 55483 # If so, the updated path is stored in $new_path. 55484 55485 input_path="$new_path" 55486 # Check if we need to convert this using DOS-style short mode. If the path 55487 # contains just simple characters, use it. Otherwise (spaces, weird characters), 55488 # take no chances and rewrite it. 55489 # Note: m4 eats our [], so we need to use [ and ] instead. 55490 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 55491 if test "x$has_forbidden_chars" != x; then 55492 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 55493 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 55494 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 55495 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 55496 # Going to short mode and back again did indeed matter. Since short mode is 55497 # case insensitive, let's make it lowercase to improve readability. 55498 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 55499 # Now convert it back to Unix-style (cygpath) 55500 input_path=`$CYGPATH -u "$shortmode_path"` 55501 new_path="$input_path" 55502 fi 55503 fi 55504 55505 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 55506 if test "x$test_cygdrive_prefix" = x; then 55507 # As a simple fix, exclude /usr/bin since it's not a real path. 55508 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 55509 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 55510 # a path prefixed by /cygdrive for fixpath to work. 55511 new_path="$CYGWIN_ROOT_PATH$input_path" 55512 fi 55513 fi 55514 55515 55516 if test "x$path" != "x$new_path"; then 55517 MSVC_DLL="$new_path" 55518 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVC_DLL to \"$new_path\"" >&5 55519 $as_echo "$as_me: Rewriting MSVC_DLL to \"$new_path\"" >&6;} 55520 fi 55521 55522 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 55523 55524 path="$MSVC_DLL" 55525 has_colon=`$ECHO $path | $GREP ^.:` 55526 new_path="$path" 55527 if test "x$has_colon" = x; then 55528 # Not in mixed or Windows style, start by that. 55529 new_path=`cmd //c echo $path` 55530 fi 55531 55532 55533 input_path="$new_path" 55534 # Check if we need to convert this using DOS-style short mode. If the path 55535 # contains just simple characters, use it. Otherwise (spaces, weird characters), 55536 # take no chances and rewrite it. 55537 # Note: m4 eats our [], so we need to use [ and ] instead. 55538 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 55539 if test "x$has_forbidden_chars" != x; then 55540 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 55541 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 55542 fi 55543 55544 55545 windows_path="$new_path" 55546 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 55547 unix_path=`$CYGPATH -u "$windows_path"` 55548 new_path="$unix_path" 55549 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 55550 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 55551 new_path="$unix_path" 55552 fi 55553 55554 if test "x$path" != "x$new_path"; then 55555 MSVC_DLL="$new_path" 55556 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVC_DLL to \"$new_path\"" >&5 55557 $as_echo "$as_me: Rewriting MSVC_DLL to \"$new_path\"" >&6;} 55558 fi 55559 55560 # Save the first 10 bytes of this path to the storage, so fixpath can work. 55561 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 55562 55563 else 55564 # We're on a unix platform. Hooray! :) 55565 path="$MSVC_DLL" 55566 has_space=`$ECHO "$path" | $GREP " "` 55567 if test "x$has_space" != x; then 55568 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&5 55569 $as_echo "$as_me: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&6;} 55570 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 55571 fi 55572 55573 # Use eval to expand a potential ~ 55574 eval path="$path" 55575 if test ! -f "$path" && test ! -d "$path"; then 55576 as_fn_error $? "The path of MSVC_DLL, which resolves as \"$path\", is not found." "$LINENO" 5 55577 fi 55578 55579 if test -d "$path"; then 55580 MSVC_DLL="`cd "$path"; $THEPWDCMD -L`" 55581 else 55582 dir="`$DIRNAME "$path"`" 55583 base="`$BASENAME "$path"`" 55584 MSVC_DLL="`cd "$dir"; $THEPWDCMD -L`/$base" 55585 fi 55586 fi 55587 fi 55588 55589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $DLL_NAME" >&5 55590 $as_echo_n "checking for $DLL_NAME... " >&6; } 55591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSVC_DLL" >&5 55592 $as_echo "$MSVC_DLL" >&6; } 55593 else 55594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: incorrect, ignoring" >&5 55595 $as_echo "incorrect, ignoring" >&6; } 55596 { $as_echo "$as_me:${as_lineno-$LINENO}: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&5 55597 $as_echo "$as_me: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&6;} 55598 fi 55599 fi 55600 55601 fi 55602 fi 55603 55604 if test "x$MSVC_DLL" = x; then 55605 # Probe: Search wildly in the VCINSTALLDIR. We've probably lost by now. 55606 # (This was the original behaviour; kept since it might turn something up) 55607 if test "x$CYGWIN_VC_INSTALL_DIR" != x; then 55608 if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then 55609 POSSIBLE_MSVC_DLL=`$FIND "$CYGWIN_VC_INSTALL_DIR" -name $DLL_NAME \ 55610 | $GREP x64 | $HEAD --lines 1` 55611 else 55612 POSSIBLE_MSVC_DLL=`$FIND "$CYGWIN_VC_INSTALL_DIR" -name $DLL_NAME \ 55613 | $GREP x86 | $GREP -v ia64 | $GREP -v x64 | $HEAD --lines 1` 55614 if test "x$POSSIBLE_MSVC_DLL" = x; then 55615 # We're grasping at straws now... 55616 POSSIBLE_MSVC_DLL=`$FIND "$CYGWIN_VC_INSTALL_DIR" -name $DLL_NAME \ 55617 | $HEAD --lines 1` 55618 fi 55619 fi 55620 55621 55622 DLL_NAME="$DLL_NAME" 55623 POSSIBLE_MSVC_DLL="$POSSIBLE_MSVC_DLL" 55624 METHOD="search of VCINSTALLDIR" 55625 if test -n "$POSSIBLE_MSVC_DLL" -a -e "$POSSIBLE_MSVC_DLL"; then 55626 { $as_echo "$as_me:${as_lineno-$LINENO}: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&5 55627 $as_echo "$as_me: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&6;} 55628 55629 # Need to check if the found msvcr is correct architecture 55630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking found $DLL_NAME architecture" >&5 55631 $as_echo_n "checking found $DLL_NAME architecture... " >&6; } 55632 MSVC_DLL_FILETYPE=`$FILE -b "$POSSIBLE_MSVC_DLL"` 55633 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 55634 # The MSYS 'file' command returns "PE32 executable for MS Windows (DLL) (GUI) Intel 80386 32-bit" 55635 # on x32 and "PE32+ executable for MS Windows (DLL) (GUI) Mono/.Net assembly" on x64 systems. 55636 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 55637 CORRECT_MSVCR_ARCH="PE32 executable" 55638 else 55639 CORRECT_MSVCR_ARCH="PE32+ executable" 55640 fi 55641 else 55642 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 55643 CORRECT_MSVCR_ARCH=386 55644 else 55645 CORRECT_MSVCR_ARCH=x86-64 55646 fi 55647 fi 55648 if $ECHO "$MSVC_DLL_FILETYPE" | $GREP "$CORRECT_MSVCR_ARCH" 2>&1 > /dev/null; then 55649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 55650 $as_echo "ok" >&6; } 55651 MSVC_DLL="$POSSIBLE_MSVC_DLL" 55652 55653 # Only process if variable expands to non-empty 55654 55655 if test "x$MSVC_DLL" != x; then 55656 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 55657 55658 # Input might be given as Windows format, start by converting to 55659 # unix format. 55660 path="$MSVC_DLL" 55661 new_path=`$CYGPATH -u "$path"` 55662 55663 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 55664 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 55665 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 55666 # "foo.exe" is OK but "foo" is an error. 55667 # 55668 # This test is therefore slightly more accurate than "test -f" to check for file precense. 55669 # It is also a way to make sure we got the proper file name for the real test later on. 55670 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 55671 if test "x$test_shortpath" = x; then 55672 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&5 55673 $as_echo "$as_me: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&6;} 55674 as_fn_error $? "Cannot locate the the path of MSVC_DLL" "$LINENO" 5 55675 fi 55676 55677 # Call helper function which possibly converts this using DOS-style short mode. 55678 # If so, the updated path is stored in $new_path. 55679 55680 input_path="$new_path" 55681 # Check if we need to convert this using DOS-style short mode. If the path 55682 # contains just simple characters, use it. Otherwise (spaces, weird characters), 55683 # take no chances and rewrite it. 55684 # Note: m4 eats our [], so we need to use [ and ] instead. 55685 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 55686 if test "x$has_forbidden_chars" != x; then 55687 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 55688 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 55689 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 55690 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 55691 # Going to short mode and back again did indeed matter. Since short mode is 55692 # case insensitive, let's make it lowercase to improve readability. 55693 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 55694 # Now convert it back to Unix-style (cygpath) 55695 input_path=`$CYGPATH -u "$shortmode_path"` 55696 new_path="$input_path" 55697 fi 55698 fi 55699 55700 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 55701 if test "x$test_cygdrive_prefix" = x; then 55702 # As a simple fix, exclude /usr/bin since it's not a real path. 55703 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 55704 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 55705 # a path prefixed by /cygdrive for fixpath to work. 55706 new_path="$CYGWIN_ROOT_PATH$input_path" 55707 fi 55708 fi 55709 55710 55711 if test "x$path" != "x$new_path"; then 55712 MSVC_DLL="$new_path" 55713 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVC_DLL to \"$new_path\"" >&5 55714 $as_echo "$as_me: Rewriting MSVC_DLL to \"$new_path\"" >&6;} 55715 fi 55716 55717 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 55718 55719 path="$MSVC_DLL" 55720 has_colon=`$ECHO $path | $GREP ^.:` 55721 new_path="$path" 55722 if test "x$has_colon" = x; then 55723 # Not in mixed or Windows style, start by that. 55724 new_path=`cmd //c echo $path` 55725 fi 55726 55727 55728 input_path="$new_path" 55729 # Check if we need to convert this using DOS-style short mode. If the path 55730 # contains just simple characters, use it. Otherwise (spaces, weird characters), 55731 # take no chances and rewrite it. 55732 # Note: m4 eats our [], so we need to use [ and ] instead. 55733 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 55734 if test "x$has_forbidden_chars" != x; then 55735 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 55736 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 55737 fi 55738 55739 55740 windows_path="$new_path" 55741 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 55742 unix_path=`$CYGPATH -u "$windows_path"` 55743 new_path="$unix_path" 55744 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 55745 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 55746 new_path="$unix_path" 55747 fi 55748 55749 if test "x$path" != "x$new_path"; then 55750 MSVC_DLL="$new_path" 55751 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVC_DLL to \"$new_path\"" >&5 55752 $as_echo "$as_me: Rewriting MSVC_DLL to \"$new_path\"" >&6;} 55753 fi 55754 55755 # Save the first 10 bytes of this path to the storage, so fixpath can work. 55756 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 55757 55758 else 55759 # We're on a unix platform. Hooray! :) 55760 path="$MSVC_DLL" 55761 has_space=`$ECHO "$path" | $GREP " "` 55762 if test "x$has_space" != x; then 55763 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&5 55764 $as_echo "$as_me: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&6;} 55765 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 55766 fi 55767 55768 # Use eval to expand a potential ~ 55769 eval path="$path" 55770 if test ! -f "$path" && test ! -d "$path"; then 55771 as_fn_error $? "The path of MSVC_DLL, which resolves as \"$path\", is not found." "$LINENO" 5 55772 fi 55773 55774 if test -d "$path"; then 55775 MSVC_DLL="`cd "$path"; $THEPWDCMD -L`" 55776 else 55777 dir="`$DIRNAME "$path"`" 55778 base="`$BASENAME "$path"`" 55779 MSVC_DLL="`cd "$dir"; $THEPWDCMD -L`/$base" 55780 fi 55781 fi 55782 fi 55783 55784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $DLL_NAME" >&5 55785 $as_echo_n "checking for $DLL_NAME... " >&6; } 55786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSVC_DLL" >&5 55787 $as_echo "$MSVC_DLL" >&6; } 55788 else 55789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: incorrect, ignoring" >&5 55790 $as_echo "incorrect, ignoring" >&6; } 55791 { $as_echo "$as_me:${as_lineno-$LINENO}: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&5 55792 $as_echo "$as_me: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&6;} 55793 fi 55794 fi 55795 55796 fi 55797 fi 55798 55799 if test "x$MSVC_DLL" = x; then 55800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $DLL_NAME" >&5 55801 $as_echo_n "checking for $DLL_NAME... " >&6; } 55802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 55803 $as_echo "no" >&6; } 55804 as_fn_error $? "Could not find $DLL_NAME. Please specify using --with-msvcr-dll." "$LINENO" 5 55805 fi 55806 55807 MSVCP_DLL="$MSVC_DLL" 55808 fi 55809 55810 fi 55811 55812 fi 55813 55814 55815 if test "x$NEEDS_LIB_X11" = xfalse; then 55816 if (test "x${with_x}" != x && test "x${with_x}" != xno); then 55817 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: X11 is not used, so --with-x is ignored" >&5 55818 $as_echo "$as_me: WARNING: X11 is not used, so --with-x is ignored" >&2;} 55819 fi 55820 X_CFLAGS= 55821 X_LIBS= 55822 else 55823 55824 if test "x${with_x}" = xno; then 55825 as_fn_error $? "It is not possible to disable the use of X11. Remove the --without-x option." "$LINENO" 5 55826 fi 55827 55828 if test "x${with_x}" != x && test "x${with_x}" != xyes; then 55829 # The user has specified a X11 base directory. Use it for includes and 55830 # libraries, unless explicitly overridden. 55831 if test "x$x_includes" = xNONE; then 55832 x_includes="${with_x}/include" 55833 fi 55834 if test "x$x_libraries" = xNONE; then 55835 x_libraries="${with_x}/lib" 55836 fi 55837 else 55838 # Check if the user has specified sysroot, but not --with-x, --x-includes or --x-libraries. 55839 # Make a simple check for the libraries at the sysroot, and setup --x-includes and 55840 # --x-libraries for the sysroot, if that seems to be correct. 55841 if test "x$SYSROOT" != "x"; then 55842 if test "x$x_includes" = xNONE; then 55843 if test -f "$SYSROOT/usr/X11R6/include/X11/Xlib.h"; then 55844 x_includes="$SYSROOT/usr/X11R6/include" 55845 elif test -f "$SYSROOT/usr/include/X11/Xlib.h"; then 55846 x_includes="$SYSROOT/usr/include" 55847 fi 55848 fi 55849 if test "x$x_libraries" = xNONE; then 55850 if test -f "$SYSROOT/usr/X11R6/lib/libX11.so"; then 55851 x_libraries="$SYSROOT/usr/X11R6/lib" 55852 elif test -f "$SYSROOT/usr/lib64/libX11.so" && test "x$OPENJDK_TARGET_CPU_BITS" = x64; then 55853 x_libraries="$SYSROOT/usr/lib64" 55854 elif test -f "$SYSROOT/usr/lib/libX11.so"; then 55855 x_libraries="$SYSROOT/usr/lib" 55856 fi 55857 fi 55858 fi 55859 fi 55860 55861 # Now let autoconf do it's magic 55862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5 55863 $as_echo_n "checking for X... " >&6; } 55864 55865 55866 # Check whether --with-x was given. 55867 if test "${with_x+set}" = set; then : 55868 withval=$with_x; 55869 fi 55870 55871 # $have_x is `yes', `no', `disabled', or empty when we do not yet know. 55872 if test "x$with_x" = xno; then 55873 # The user explicitly disabled X. 55874 have_x=disabled 55875 else 55876 case $x_includes,$x_libraries in #( 55877 *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #( 55878 *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then : 55879 $as_echo_n "(cached) " >&6 55880 else 55881 # One or both of the vars are not set, and there is no cached value. 55882 ac_x_includes=no ac_x_libraries=no 55883 rm -f -r conftest.dir 55884 if mkdir conftest.dir; then 55885 cd conftest.dir 55886 cat >Imakefile <<'_ACEOF' 55887 incroot: 55888 @echo incroot='${INCROOT}' 55889 usrlibdir: 55890 @echo usrlibdir='${USRLIBDIR}' 55891 libdir: 55892 @echo libdir='${LIBDIR}' 55893 _ACEOF 55894 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then 55895 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 55896 for ac_var in incroot usrlibdir libdir; do 55897 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`" 55898 done 55899 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR. 55900 for ac_extension in a so sl dylib la dll; do 55901 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" && 55902 test -f "$ac_im_libdir/libX11.$ac_extension"; then 55903 ac_im_usrlibdir=$ac_im_libdir; break 55904 fi 55905 done 55906 # Screen out bogus values from the imake configuration. They are 55907 # bogus both because they are the default anyway, and because 55908 # using them would break gcc on systems where it needs fixed includes. 55909 case $ac_im_incroot in 55910 /usr/include) ac_x_includes= ;; 55911 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;; 55912 esac 55913 case $ac_im_usrlibdir in 55914 /usr/lib | /usr/lib64 | /lib | /lib64) ;; 55915 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;; 55916 esac 55917 fi 55918 cd .. 55919 rm -f -r conftest.dir 55920 fi 55921 55922 # Standard set of common directories for X headers. 55923 # Check X11 before X11Rn because it is often a symlink to the current release. 55924 ac_x_header_dirs=' 55925 /usr/X11/include 55926 /usr/X11R7/include 55927 /usr/X11R6/include 55928 /usr/X11R5/include 55929 /usr/X11R4/include 55930 55931 /usr/include/X11 55932 /usr/include/X11R7 55933 /usr/include/X11R6 55934 /usr/include/X11R5 55935 /usr/include/X11R4 55936 55937 /usr/local/X11/include 55938 /usr/local/X11R7/include 55939 /usr/local/X11R6/include 55940 /usr/local/X11R5/include 55941 /usr/local/X11R4/include 55942 55943 /usr/local/include/X11 55944 /usr/local/include/X11R7 55945 /usr/local/include/X11R6 55946 /usr/local/include/X11R5 55947 /usr/local/include/X11R4 55948 55949 /usr/X386/include 55950 /usr/x386/include 55951 /usr/XFree86/include/X11 55952 55953 /usr/include 55954 /usr/local/include 55955 /usr/unsupported/include 55956 /usr/athena/include 55957 /usr/local/x11r5/include 55958 /usr/lpp/Xamples/include 55959 55960 /usr/openwin/include 55961 /usr/openwin/share/include' 55962 55963 if test "$ac_x_includes" = no; then 55964 # Guess where to find include files, by looking for Xlib.h. 55965 # First, try using that file with no special directory specified. 55966 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 55967 /* end confdefs.h. */ 55968 #include <X11/Xlib.h> 55969 _ACEOF 55970 if ac_fn_cxx_try_cpp "$LINENO"; then : 55971 # We can compile using X headers with no special include directory. 55972 ac_x_includes= 55973 else 55974 for ac_dir in $ac_x_header_dirs; do 55975 if test -r "$ac_dir/X11/Xlib.h"; then 55976 ac_x_includes=$ac_dir 55977 break 55978 fi 55979 done 55980 fi 55981 rm -f conftest.err conftest.i conftest.$ac_ext 55982 fi # $ac_x_includes = no 55983 55984 if test "$ac_x_libraries" = no; then 55985 # Check for the libraries. 55986 # See if we find them without any special options. 55987 # Don't add to $LIBS permanently. 55988 ac_save_LIBS=$LIBS 55989 LIBS="-lX11 $LIBS" 55990 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 55991 /* end confdefs.h. */ 55992 #include <X11/Xlib.h> 55993 int 55994 main () 55995 { 55996 XrmInitialize () 55997 ; 55998 return 0; 55999 } 56000 _ACEOF 56001 if ac_fn_cxx_try_link "$LINENO"; then : 56002 LIBS=$ac_save_LIBS 56003 # We can link X programs with no special library path. 56004 ac_x_libraries= 56005 else 56006 LIBS=$ac_save_LIBS 56007 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g` 56008 do 56009 # Don't even attempt the hair of trying to link an X program! 56010 for ac_extension in a so sl dylib la dll; do 56011 if test -r "$ac_dir/libX11.$ac_extension"; then 56012 ac_x_libraries=$ac_dir 56013 break 2 56014 fi 56015 done 56016 done 56017 fi 56018 rm -f core conftest.err conftest.$ac_objext \ 56019 conftest$ac_exeext conftest.$ac_ext 56020 fi # $ac_x_libraries = no 56021 56022 case $ac_x_includes,$ac_x_libraries in #( 56023 no,* | *,no | *\'*) 56024 # Didn't find X, or a directory has "'" in its name. 56025 ac_cv_have_x="have_x=no";; #( 56026 *) 56027 # Record where we found X for the cache. 56028 ac_cv_have_x="have_x=yes\ 56029 ac_x_includes='$ac_x_includes'\ 56030 ac_x_libraries='$ac_x_libraries'" 56031 esac 56032 fi 56033 ;; #( 56034 *) have_x=yes;; 56035 esac 56036 eval "$ac_cv_have_x" 56037 fi # $with_x != no 56038 56039 if test "$have_x" != yes; then 56040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5 56041 $as_echo "$have_x" >&6; } 56042 no_x=yes 56043 else 56044 # If each of the values was on the command line, it overrides each guess. 56045 test "x$x_includes" = xNONE && x_includes=$ac_x_includes 56046 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries 56047 # Update the cache value to reflect the command line values. 56048 ac_cv_have_x="have_x=yes\ 56049 ac_x_includes='$x_includes'\ 56050 ac_x_libraries='$x_libraries'" 56051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5 56052 $as_echo "libraries $x_libraries, headers $x_includes" >&6; } 56053 fi 56054 56055 if test "$no_x" = yes; then 56056 # Not all programs may use this symbol, but it does not hurt to define it. 56057 56058 $as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h 56059 56060 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS= 56061 else 56062 if test -n "$x_includes"; then 56063 X_CFLAGS="$X_CFLAGS -I$x_includes" 56064 fi 56065 56066 # It would also be nice to do this for all -L options, not just this one. 56067 if test -n "$x_libraries"; then 56068 X_LIBS="$X_LIBS -L$x_libraries" 56069 # For Solaris; some versions of Sun CC require a space after -R and 56070 # others require no space. Words are not sufficient . . . . 56071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5 56072 $as_echo_n "checking whether -R must be followed by a space... " >&6; } 56073 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries" 56074 ac_xsave_cxx_werror_flag=$ac_cxx_werror_flag 56075 ac_cxx_werror_flag=yes 56076 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 56077 /* end confdefs.h. */ 56078 56079 int 56080 main () 56081 { 56082 56083 ; 56084 return 0; 56085 } 56086 _ACEOF 56087 if ac_fn_cxx_try_link "$LINENO"; then : 56088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 56089 $as_echo "no" >&6; } 56090 X_LIBS="$X_LIBS -R$x_libraries" 56091 else 56092 LIBS="$ac_xsave_LIBS -R $x_libraries" 56093 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 56094 /* end confdefs.h. */ 56095 56096 int 56097 main () 56098 { 56099 56100 ; 56101 return 0; 56102 } 56103 _ACEOF 56104 if ac_fn_cxx_try_link "$LINENO"; then : 56105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 56106 $as_echo "yes" >&6; } 56107 X_LIBS="$X_LIBS -R $x_libraries" 56108 else 56109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5 56110 $as_echo "neither works" >&6; } 56111 fi 56112 rm -f core conftest.err conftest.$ac_objext \ 56113 conftest$ac_exeext conftest.$ac_ext 56114 fi 56115 rm -f core conftest.err conftest.$ac_objext \ 56116 conftest$ac_exeext conftest.$ac_ext 56117 ac_cxx_werror_flag=$ac_xsave_cxx_werror_flag 56118 LIBS=$ac_xsave_LIBS 56119 fi 56120 56121 # Check for system-dependent libraries X programs must link with. 56122 # Do this before checking for the system-independent R6 libraries 56123 # (-lICE), since we may need -lsocket or whatever for X linking. 56124 56125 if test "$ISC" = yes; then 56126 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet" 56127 else 56128 # Martyn Johnson says this is needed for Ultrix, if the X 56129 # libraries were built with DECnet support. And Karl Berry says 56130 # the Alpha needs dnet_stub (dnet does not exist). 56131 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11" 56132 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 56133 /* end confdefs.h. */ 56134 56135 /* Override any GCC internal prototype to avoid an error. 56136 Use char because int might match the return type of a GCC 56137 builtin and then its argument prototype would still apply. */ 56138 #ifdef __cplusplus 56139 extern "C" 56140 #endif 56141 char XOpenDisplay (); 56142 int 56143 main () 56144 { 56145 return XOpenDisplay (); 56146 ; 56147 return 0; 56148 } 56149 _ACEOF 56150 if ac_fn_cxx_try_link "$LINENO"; then : 56151 56152 else 56153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5 56154 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; } 56155 if ${ac_cv_lib_dnet_dnet_ntoa+:} false; then : 56156 $as_echo_n "(cached) " >&6 56157 else 56158 ac_check_lib_save_LIBS=$LIBS 56159 LIBS="-ldnet $LIBS" 56160 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 56161 /* end confdefs.h. */ 56162 56163 /* Override any GCC internal prototype to avoid an error. 56164 Use char because int might match the return type of a GCC 56165 builtin and then its argument prototype would still apply. */ 56166 #ifdef __cplusplus 56167 extern "C" 56168 #endif 56169 char dnet_ntoa (); 56170 int 56171 main () 56172 { 56173 return dnet_ntoa (); 56174 ; 56175 return 0; 56176 } 56177 _ACEOF 56178 if ac_fn_cxx_try_link "$LINENO"; then : 56179 ac_cv_lib_dnet_dnet_ntoa=yes 56180 else 56181 ac_cv_lib_dnet_dnet_ntoa=no 56182 fi 56183 rm -f core conftest.err conftest.$ac_objext \ 56184 conftest$ac_exeext conftest.$ac_ext 56185 LIBS=$ac_check_lib_save_LIBS 56186 fi 56187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5 56188 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; } 56189 if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes; then : 56190 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet" 56191 fi 56192 56193 if test $ac_cv_lib_dnet_dnet_ntoa = no; then 56194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5 56195 $as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; } 56196 if ${ac_cv_lib_dnet_stub_dnet_ntoa+:} false; then : 56197 $as_echo_n "(cached) " >&6 56198 else 56199 ac_check_lib_save_LIBS=$LIBS 56200 LIBS="-ldnet_stub $LIBS" 56201 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 56202 /* end confdefs.h. */ 56203 56204 /* Override any GCC internal prototype to avoid an error. 56205 Use char because int might match the return type of a GCC 56206 builtin and then its argument prototype would still apply. */ 56207 #ifdef __cplusplus 56208 extern "C" 56209 #endif 56210 char dnet_ntoa (); 56211 int 56212 main () 56213 { 56214 return dnet_ntoa (); 56215 ; 56216 return 0; 56217 } 56218 _ACEOF 56219 if ac_fn_cxx_try_link "$LINENO"; then : 56220 ac_cv_lib_dnet_stub_dnet_ntoa=yes 56221 else 56222 ac_cv_lib_dnet_stub_dnet_ntoa=no 56223 fi 56224 rm -f core conftest.err conftest.$ac_objext \ 56225 conftest$ac_exeext conftest.$ac_ext 56226 LIBS=$ac_check_lib_save_LIBS 56227 fi 56228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5 56229 $as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; } 56230 if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes; then : 56231 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub" 56232 fi 56233 56234 fi 56235 fi 56236 rm -f core conftest.err conftest.$ac_objext \ 56237 conftest$ac_exeext conftest.$ac_ext 56238 LIBS="$ac_xsave_LIBS" 56239 56240 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT, 56241 # to get the SysV transport functions. 56242 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4) 56243 # needs -lnsl. 56244 # The nsl library prevents programs from opening the X display 56245 # on Irix 5.2, according to T.E. Dickey. 56246 # The functions gethostbyname, getservbyname, and inet_addr are 56247 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking. 56248 ac_fn_cxx_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname" 56249 if test "x$ac_cv_func_gethostbyname" = xyes; then : 56250 56251 fi 56252 56253 if test $ac_cv_func_gethostbyname = no; then 56254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5 56255 $as_echo_n "checking for gethostbyname in -lnsl... " >&6; } 56256 if ${ac_cv_lib_nsl_gethostbyname+:} false; then : 56257 $as_echo_n "(cached) " >&6 56258 else 56259 ac_check_lib_save_LIBS=$LIBS 56260 LIBS="-lnsl $LIBS" 56261 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 56262 /* end confdefs.h. */ 56263 56264 /* Override any GCC internal prototype to avoid an error. 56265 Use char because int might match the return type of a GCC 56266 builtin and then its argument prototype would still apply. */ 56267 #ifdef __cplusplus 56268 extern "C" 56269 #endif 56270 char gethostbyname (); 56271 int 56272 main () 56273 { 56274 return gethostbyname (); 56275 ; 56276 return 0; 56277 } 56278 _ACEOF 56279 if ac_fn_cxx_try_link "$LINENO"; then : 56280 ac_cv_lib_nsl_gethostbyname=yes 56281 else 56282 ac_cv_lib_nsl_gethostbyname=no 56283 fi 56284 rm -f core conftest.err conftest.$ac_objext \ 56285 conftest$ac_exeext conftest.$ac_ext 56286 LIBS=$ac_check_lib_save_LIBS 56287 fi 56288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5 56289 $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; } 56290 if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then : 56291 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl" 56292 fi 56293 56294 if test $ac_cv_lib_nsl_gethostbyname = no; then 56295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5 56296 $as_echo_n "checking for gethostbyname in -lbsd... " >&6; } 56297 if ${ac_cv_lib_bsd_gethostbyname+:} false; then : 56298 $as_echo_n "(cached) " >&6 56299 else 56300 ac_check_lib_save_LIBS=$LIBS 56301 LIBS="-lbsd $LIBS" 56302 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 56303 /* end confdefs.h. */ 56304 56305 /* Override any GCC internal prototype to avoid an error. 56306 Use char because int might match the return type of a GCC 56307 builtin and then its argument prototype would still apply. */ 56308 #ifdef __cplusplus 56309 extern "C" 56310 #endif 56311 char gethostbyname (); 56312 int 56313 main () 56314 { 56315 return gethostbyname (); 56316 ; 56317 return 0; 56318 } 56319 _ACEOF 56320 if ac_fn_cxx_try_link "$LINENO"; then : 56321 ac_cv_lib_bsd_gethostbyname=yes 56322 else 56323 ac_cv_lib_bsd_gethostbyname=no 56324 fi 56325 rm -f core conftest.err conftest.$ac_objext \ 56326 conftest$ac_exeext conftest.$ac_ext 56327 LIBS=$ac_check_lib_save_LIBS 56328 fi 56329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5 56330 $as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; } 56331 if test "x$ac_cv_lib_bsd_gethostbyname" = xyes; then : 56332 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd" 56333 fi 56334 56335 fi 56336 fi 56337 56338 # lieder@skyler.mavd.honeywell.com says without -lsocket, 56339 # socket/setsockopt and other routines are undefined under SCO ODT 56340 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary 56341 # on later versions), says Simon Leinen: it contains gethostby* 56342 # variants that don't use the name server (or something). -lsocket 56343 # must be given before -lnsl if both are needed. We assume that 56344 # if connect needs -lnsl, so does gethostbyname. 56345 ac_fn_cxx_check_func "$LINENO" "connect" "ac_cv_func_connect" 56346 if test "x$ac_cv_func_connect" = xyes; then : 56347 56348 fi 56349 56350 if test $ac_cv_func_connect = no; then 56351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5 56352 $as_echo_n "checking for connect in -lsocket... " >&6; } 56353 if ${ac_cv_lib_socket_connect+:} false; then : 56354 $as_echo_n "(cached) " >&6 56355 else 56356 ac_check_lib_save_LIBS=$LIBS 56357 LIBS="-lsocket $X_EXTRA_LIBS $LIBS" 56358 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 56359 /* end confdefs.h. */ 56360 56361 /* Override any GCC internal prototype to avoid an error. 56362 Use char because int might match the return type of a GCC 56363 builtin and then its argument prototype would still apply. */ 56364 #ifdef __cplusplus 56365 extern "C" 56366 #endif 56367 char connect (); 56368 int 56369 main () 56370 { 56371 return connect (); 56372 ; 56373 return 0; 56374 } 56375 _ACEOF 56376 if ac_fn_cxx_try_link "$LINENO"; then : 56377 ac_cv_lib_socket_connect=yes 56378 else 56379 ac_cv_lib_socket_connect=no 56380 fi 56381 rm -f core conftest.err conftest.$ac_objext \ 56382 conftest$ac_exeext conftest.$ac_ext 56383 LIBS=$ac_check_lib_save_LIBS 56384 fi 56385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5 56386 $as_echo "$ac_cv_lib_socket_connect" >&6; } 56387 if test "x$ac_cv_lib_socket_connect" = xyes; then : 56388 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS" 56389 fi 56390 56391 fi 56392 56393 # Guillermo Gomez says -lposix is necessary on A/UX. 56394 ac_fn_cxx_check_func "$LINENO" "remove" "ac_cv_func_remove" 56395 if test "x$ac_cv_func_remove" = xyes; then : 56396 56397 fi 56398 56399 if test $ac_cv_func_remove = no; then 56400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5 56401 $as_echo_n "checking for remove in -lposix... " >&6; } 56402 if ${ac_cv_lib_posix_remove+:} false; then : 56403 $as_echo_n "(cached) " >&6 56404 else 56405 ac_check_lib_save_LIBS=$LIBS 56406 LIBS="-lposix $LIBS" 56407 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 56408 /* end confdefs.h. */ 56409 56410 /* Override any GCC internal prototype to avoid an error. 56411 Use char because int might match the return type of a GCC 56412 builtin and then its argument prototype would still apply. */ 56413 #ifdef __cplusplus 56414 extern "C" 56415 #endif 56416 char remove (); 56417 int 56418 main () 56419 { 56420 return remove (); 56421 ; 56422 return 0; 56423 } 56424 _ACEOF 56425 if ac_fn_cxx_try_link "$LINENO"; then : 56426 ac_cv_lib_posix_remove=yes 56427 else 56428 ac_cv_lib_posix_remove=no 56429 fi 56430 rm -f core conftest.err conftest.$ac_objext \ 56431 conftest$ac_exeext conftest.$ac_ext 56432 LIBS=$ac_check_lib_save_LIBS 56433 fi 56434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5 56435 $as_echo "$ac_cv_lib_posix_remove" >&6; } 56436 if test "x$ac_cv_lib_posix_remove" = xyes; then : 56437 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix" 56438 fi 56439 56440 fi 56441 56442 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay. 56443 ac_fn_cxx_check_func "$LINENO" "shmat" "ac_cv_func_shmat" 56444 if test "x$ac_cv_func_shmat" = xyes; then : 56445 56446 fi 56447 56448 if test $ac_cv_func_shmat = no; then 56449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5 56450 $as_echo_n "checking for shmat in -lipc... " >&6; } 56451 if ${ac_cv_lib_ipc_shmat+:} false; then : 56452 $as_echo_n "(cached) " >&6 56453 else 56454 ac_check_lib_save_LIBS=$LIBS 56455 LIBS="-lipc $LIBS" 56456 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 56457 /* end confdefs.h. */ 56458 56459 /* Override any GCC internal prototype to avoid an error. 56460 Use char because int might match the return type of a GCC 56461 builtin and then its argument prototype would still apply. */ 56462 #ifdef __cplusplus 56463 extern "C" 56464 #endif 56465 char shmat (); 56466 int 56467 main () 56468 { 56469 return shmat (); 56470 ; 56471 return 0; 56472 } 56473 _ACEOF 56474 if ac_fn_cxx_try_link "$LINENO"; then : 56475 ac_cv_lib_ipc_shmat=yes 56476 else 56477 ac_cv_lib_ipc_shmat=no 56478 fi 56479 rm -f core conftest.err conftest.$ac_objext \ 56480 conftest$ac_exeext conftest.$ac_ext 56481 LIBS=$ac_check_lib_save_LIBS 56482 fi 56483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5 56484 $as_echo "$ac_cv_lib_ipc_shmat" >&6; } 56485 if test "x$ac_cv_lib_ipc_shmat" = xyes; then : 56486 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc" 56487 fi 56488 56489 fi 56490 fi 56491 56492 # Check for libraries that X11R6 Xt/Xaw programs need. 56493 ac_save_LDFLAGS=$LDFLAGS 56494 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries" 56495 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to 56496 # check for ICE first), but we must link in the order -lSM -lICE or 56497 # we get undefined symbols. So assume we have SM if we have ICE. 56498 # These have to be linked with before -lX11, unlike the other 56499 # libraries we check for below, so use a different variable. 56500 # John Interrante, Karl Berry 56501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5 56502 $as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; } 56503 if ${ac_cv_lib_ICE_IceConnectionNumber+:} false; then : 56504 $as_echo_n "(cached) " >&6 56505 else 56506 ac_check_lib_save_LIBS=$LIBS 56507 LIBS="-lICE $X_EXTRA_LIBS $LIBS" 56508 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 56509 /* end confdefs.h. */ 56510 56511 /* Override any GCC internal prototype to avoid an error. 56512 Use char because int might match the return type of a GCC 56513 builtin and then its argument prototype would still apply. */ 56514 #ifdef __cplusplus 56515 extern "C" 56516 #endif 56517 char IceConnectionNumber (); 56518 int 56519 main () 56520 { 56521 return IceConnectionNumber (); 56522 ; 56523 return 0; 56524 } 56525 _ACEOF 56526 if ac_fn_cxx_try_link "$LINENO"; then : 56527 ac_cv_lib_ICE_IceConnectionNumber=yes 56528 else 56529 ac_cv_lib_ICE_IceConnectionNumber=no 56530 fi 56531 rm -f core conftest.err conftest.$ac_objext \ 56532 conftest$ac_exeext conftest.$ac_ext 56533 LIBS=$ac_check_lib_save_LIBS 56534 fi 56535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5 56536 $as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; } 56537 if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes; then : 56538 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE" 56539 fi 56540 56541 LDFLAGS=$ac_save_LDFLAGS 56542 56543 fi 56544 56545 56546 # AC_PATH_XTRA creates X_LIBS and sometimes adds -R flags. When cross compiling 56547 # this doesn't make sense so we remove it. 56548 if test "x$COMPILE_TYPE" = xcross; then 56549 X_LIBS=`$ECHO $X_LIBS | $SED 's/-R \{0,1\}[^ ]*//g'` 56550 fi 56551 56552 if test "x$no_x" = xyes; then 56553 56554 # Print a helpful message on how to acquire the necessary build dependency. 56555 # x11 is the help tag: freetype, cups, alsa etc 56556 MISSING_DEPENDENCY=x11 56557 56558 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 56559 cygwin_help $MISSING_DEPENDENCY 56560 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 56561 msys_help $MISSING_DEPENDENCY 56562 else 56563 PKGHANDLER_COMMAND= 56564 56565 case $PKGHANDLER in 56566 apt-get) 56567 apt_help $MISSING_DEPENDENCY ;; 56568 yum) 56569 yum_help $MISSING_DEPENDENCY ;; 56570 port) 56571 port_help $MISSING_DEPENDENCY ;; 56572 pkgutil) 56573 pkgutil_help $MISSING_DEPENDENCY ;; 56574 pkgadd) 56575 pkgadd_help $MISSING_DEPENDENCY ;; 56576 esac 56577 56578 if test "x$PKGHANDLER_COMMAND" != x; then 56579 HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'." 56580 fi 56581 fi 56582 56583 as_fn_error $? "Could not find X11 libraries. $HELP_MSG" "$LINENO" 5 56584 fi 56585 56586 if test "x$OPENJDK_TARGET_OS" = xsolaris; then 56587 OPENWIN_HOME="/usr/openwin" 56588 X_CFLAGS="-I$SYSROOT$OPENWIN_HOME/include -I$SYSROOT$OPENWIN_HOME/include/X11/extensions" 56589 X_LIBS="-L$SYSROOT$OPENWIN_HOME/lib$OPENJDK_TARGET_CPU_ISADIR \ 56590 -R$OPENWIN_HOME/lib$OPENJDK_TARGET_CPU_ISADIR" 56591 fi 56592 56593 ac_ext=c 56594 ac_cpp='$CPP $CPPFLAGS' 56595 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 56596 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 56597 ac_compiler_gnu=$ac_cv_c_compiler_gnu 56598 56599 OLD_CFLAGS="$CFLAGS" 56600 CFLAGS="$CFLAGS $SYSROOT_CFLAGS $X_CFLAGS" 56601 56602 # Need to include Xlib.h and Xutil.h to avoid "present but cannot be compiled" warnings on Solaris 10 56603 for ac_header in X11/extensions/shape.h X11/extensions/Xrender.h X11/extensions/XTest.h X11/Intrinsic.h 56604 do : 56605 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 56606 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" " 56607 # include <X11/Xlib.h> 56608 # include <X11/Xutil.h> 56609 56610 56611 " 56612 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 56613 cat >>confdefs.h <<_ACEOF 56614 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 56615 _ACEOF 56616 X11_HEADERS_OK=yes 56617 else 56618 X11_HEADERS_OK=no; break 56619 fi 56620 56621 done 56622 56623 56624 if test "x$X11_HEADERS_OK" = xno; then 56625 56626 # Print a helpful message on how to acquire the necessary build dependency. 56627 # x11 is the help tag: freetype, cups, alsa etc 56628 MISSING_DEPENDENCY=x11 56629 56630 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 56631 cygwin_help $MISSING_DEPENDENCY 56632 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 56633 msys_help $MISSING_DEPENDENCY 56634 else 56635 PKGHANDLER_COMMAND= 56636 56637 case $PKGHANDLER in 56638 apt-get) 56639 apt_help $MISSING_DEPENDENCY ;; 56640 yum) 56641 yum_help $MISSING_DEPENDENCY ;; 56642 port) 56643 port_help $MISSING_DEPENDENCY ;; 56644 pkgutil) 56645 pkgutil_help $MISSING_DEPENDENCY ;; 56646 pkgadd) 56647 pkgadd_help $MISSING_DEPENDENCY ;; 56648 esac 56649 56650 if test "x$PKGHANDLER_COMMAND" != x; then 56651 HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'." 56652 fi 56653 fi 56654 56655 as_fn_error $? "Could not find all X11 headers (shape.h Xrender.h XTest.h Intrinsic.h). $HELP_MSG" "$LINENO" 5 56656 fi 56657 56658 # If XLinearGradient isn't available in Xrender.h, signal that it needs to be 56659 # defined in libawt_xawt. 56660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if XlinearGradient is defined in Xrender.h" >&5 56661 $as_echo_n "checking if XlinearGradient is defined in Xrender.h... " >&6; } 56662 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 56663 /* end confdefs.h. */ 56664 #include <X11/extensions/Xrender.h> 56665 int 56666 main () 56667 { 56668 XLinearGradient x; 56669 ; 56670 return 0; 56671 } 56672 _ACEOF 56673 if ac_fn_c_try_compile "$LINENO"; then : 56674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 56675 $as_echo "yes" >&6; } 56676 else 56677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 56678 $as_echo "no" >&6; } 56679 X_CFLAGS="$X_CFLAGS -DSOLARIS10_NO_XRENDER_STRUCTS" 56680 fi 56681 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 56682 56683 CFLAGS="$OLD_CFLAGS" 56684 ac_ext=cpp 56685 ac_cpp='$CXXCPP $CPPFLAGS' 56686 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 56687 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 56688 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 56689 56690 fi # NEEDS_LIB_X11 56691 56692 56693 56694 56695 56696 56697 # Check whether --with-cups was given. 56698 if test "${with_cups+set}" = set; then : 56699 withval=$with_cups; 56700 fi 56701 56702 56703 # Check whether --with-cups-include was given. 56704 if test "${with_cups_include+set}" = set; then : 56705 withval=$with_cups_include; 56706 fi 56707 56708 56709 if test "x$NEEDS_LIB_CUPS" = xfalse; then 56710 if (test "x${with_cups}" != x && test "x${with_cups}" != xno) || \ 56711 (test "x${with_cups_include}" != x && test "x${with_cups_include}" != xno); then 56712 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cups not used, so --with-cups[-*] is ignored" >&5 56713 $as_echo "$as_me: WARNING: cups not used, so --with-cups[-*] is ignored" >&2;} 56714 fi 56715 CUPS_CFLAGS= 56716 else 56717 CUPS_FOUND=no 56718 56719 if test "x${with_cups}" = xno || test "x${with_cups_include}" = xno; then 56720 as_fn_error $? "It is not possible to disable the use of cups. Remove the --without-cups option." "$LINENO" 5 56721 fi 56722 56723 if test "x${with_cups}" != x; then 56724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cups headers" >&5 56725 $as_echo_n "checking for cups headers... " >&6; } 56726 if test -s "${with_cups}/include/cups/cups.h"; then 56727 CUPS_CFLAGS="-I${with_cups}/include" 56728 CUPS_FOUND=yes 56729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CUPS_FOUND" >&5 56730 $as_echo "$CUPS_FOUND" >&6; } 56731 else 56732 as_fn_error $? "Can't find 'include/cups/cups.h' under ${with_cups} given with the --with-cups option." "$LINENO" 5 56733 fi 56734 fi 56735 if test "x${with_cups_include}" != x; then 56736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cups headers" >&5 56737 $as_echo_n "checking for cups headers... " >&6; } 56738 if test -s "${with_cups_include}/cups/cups.h"; then 56739 CUPS_CFLAGS="-I${with_cups_include}" 56740 CUPS_FOUND=yes 56741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CUPS_FOUND" >&5 56742 $as_echo "$CUPS_FOUND" >&6; } 56743 else 56744 as_fn_error $? "Can't find 'cups/cups.h' under ${with_cups_include} given with the --with-cups-include option." "$LINENO" 5 56745 fi 56746 fi 56747 if test "x$CUPS_FOUND" = xno; then 56748 # Are the cups headers installed in the default /usr/include location? 56749 for ac_header in cups/cups.h cups/ppd.h 56750 do : 56751 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 56752 ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 56753 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 56754 cat >>confdefs.h <<_ACEOF 56755 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 56756 _ACEOF 56757 56758 CUPS_FOUND=yes 56759 CUPS_CFLAGS= 56760 DEFAULT_CUPS=yes 56761 56762 fi 56763 56764 done 56765 56766 fi 56767 if test "x$CUPS_FOUND" = xno; then 56768 56769 # Print a helpful message on how to acquire the necessary build dependency. 56770 # cups is the help tag: freetype, cups, alsa etc 56771 MISSING_DEPENDENCY=cups 56772 56773 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 56774 cygwin_help $MISSING_DEPENDENCY 56775 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 56776 msys_help $MISSING_DEPENDENCY 56777 else 56778 PKGHANDLER_COMMAND= 56779 56780 case $PKGHANDLER in 56781 apt-get) 56782 apt_help $MISSING_DEPENDENCY ;; 56783 yum) 56784 yum_help $MISSING_DEPENDENCY ;; 56785 port) 56786 port_help $MISSING_DEPENDENCY ;; 56787 pkgutil) 56788 pkgutil_help $MISSING_DEPENDENCY ;; 56789 pkgadd) 56790 pkgadd_help $MISSING_DEPENDENCY ;; 56791 esac 56792 56793 if test "x$PKGHANDLER_COMMAND" != x; then 56794 HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'." 56795 fi 56796 fi 56797 56798 as_fn_error $? "Could not find cups! $HELP_MSG " "$LINENO" 5 56799 fi 56800 fi 56801 56802 56803 56804 56805 56806 # Check whether --with-freetype was given. 56807 if test "${with_freetype+set}" = set; then : 56808 withval=$with_freetype; 56809 fi 56810 56811 56812 # Check whether --with-freetype-include was given. 56813 if test "${with_freetype_include+set}" = set; then : 56814 withval=$with_freetype_include; 56815 fi 56816 56817 56818 # Check whether --with-freetype-lib was given. 56819 if test "${with_freetype_lib+set}" = set; then : 56820 withval=$with_freetype_lib; 56821 fi 56822 56823 56824 # Check whether --with-freetype-src was given. 56825 if test "${with_freetype_src+set}" = set; then : 56826 withval=$with_freetype_src; 56827 fi 56828 56829 # Check whether --enable-freetype-bundling was given. 56830 if test "${enable_freetype_bundling+set}" = set; then : 56831 enableval=$enable_freetype_bundling; 56832 fi 56833 56834 56835 # Need to specify explicitly since it needs to be overridden on some versions of macosx 56836 FREETYPE_BASE_NAME=freetype 56837 FREETYPE_CFLAGS= 56838 FREETYPE_LIBS= 56839 FREETYPE_BUNDLE_LIB_PATH= 56840 56841 if test "x$NEEDS_LIB_FREETYPE" = xfalse; then 56842 if (test "x$with_freetype" != x && test "x$with_freetype" != xno) || \ 56843 (test "x$with_freetype_include" != x && test "x$with_freetype_include" != xno) || \ 56844 (test "x$with_freetype_lib" != x && test "x$with_freetype_lib" != xno) || \ 56845 (test "x$with_freetype_src" != x && test "x$with_freetype_src" != xno); then 56846 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: freetype not used, so --with-freetype[-*] is ignored" >&5 56847 $as_echo "$as_me: WARNING: freetype not used, so --with-freetype[-*] is ignored" >&2;} 56848 fi 56849 if (test "x$enable_freetype_bundling" != x && test "x$enable_freetype_bundling" != xno); then 56850 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: freetype not used, so --enable-freetype-bundling is ignored" >&5 56851 $as_echo "$as_me: WARNING: freetype not used, so --enable-freetype-bundling is ignored" >&2;} 56852 fi 56853 else 56854 # freetype is needed to build; go get it! 56855 56856 BUNDLE_FREETYPE="$enable_freetype_bundling" 56857 56858 if test "x$with_freetype_src" != x; then 56859 if test "x$OPENJDK_TARGET_OS" = xwindows; then 56860 # Try to build freetype if --with-freetype-src was given on Windows 56861 56862 FREETYPE_SRC_PATH="$with_freetype_src" 56863 BUILD_FREETYPE=yes 56864 56865 # Check if the freetype sources are acessible.. 56866 if ! test -d $FREETYPE_SRC_PATH; then 56867 { $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 56868 $as_echo "$as_me: WARNING: --with-freetype-src specified, but can not find path \"$FREETYPE_SRC_PATH\" - ignoring --with-freetype-src" >&2;} 56869 BUILD_FREETYPE=no 56870 fi 56871 # ..and contain a vc2010 project file 56872 vcxproj_path="$FREETYPE_SRC_PATH/builds/windows/vc2010/freetype.vcxproj" 56873 if test "x$BUILD_FREETYPE" = xyes && ! test -s $vcxproj_path; then 56874 { $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 56875 $as_echo "$as_me: WARNING: Can not find project file $vcxproj_path (you may try a newer freetype version) - ignoring --with-freetype-src" >&2;} 56876 BUILD_FREETYPE=no 56877 fi 56878 # Now check if configure found a version of 'msbuild.exe' 56879 if test "x$BUILD_FREETYPE" = xyes && test "x$MSBUILD" == x ; then 56880 { $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 56881 $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;} 56882 BUILD_FREETYPE=no 56883 fi 56884 56885 # Ready to go.. 56886 if test "x$BUILD_FREETYPE" = xyes; then 56887 # msbuild requires trailing slashes for output directories 56888 freetype_lib_path="$FREETYPE_SRC_PATH/lib$OPENJDK_TARGET_CPU_BITS/" 56889 freetype_lib_path_unix="$freetype_lib_path" 56890 freetype_obj_path="$FREETYPE_SRC_PATH/obj$OPENJDK_TARGET_CPU_BITS/" 56891 56892 unix_path="$vcxproj_path" 56893 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 56894 windows_path=`$CYGPATH -m "$unix_path"` 56895 vcxproj_path="$windows_path" 56896 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 56897 windows_path=`cmd //c echo $unix_path` 56898 vcxproj_path="$windows_path" 56899 fi 56900 56901 56902 unix_path="$freetype_lib_path" 56903 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 56904 windows_path=`$CYGPATH -m "$unix_path"` 56905 freetype_lib_path="$windows_path" 56906 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 56907 windows_path=`cmd //c echo $unix_path` 56908 freetype_lib_path="$windows_path" 56909 fi 56910 56911 56912 unix_path="$freetype_obj_path" 56913 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 56914 windows_path=`$CYGPATH -m "$unix_path"` 56915 freetype_obj_path="$windows_path" 56916 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 56917 windows_path=`cmd //c echo $unix_path` 56918 freetype_obj_path="$windows_path" 56919 fi 56920 56921 if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then 56922 freetype_platform=x64 56923 else 56924 freetype_platform=win32 56925 fi 56926 56927 # The original freetype project file is for VS 2010 (i.e. 'v100'), 56928 # so we have to adapt the toolset if building with any other toolsed (i.e. SDK). 56929 # Currently 'PLATFORM_TOOLSET' is set in 'TOOLCHAIN_CHECK_POSSIBLE_VISUAL_STUDIO_ROOT'/ 56930 # 'TOOLCHAIN_CHECK_POSSIBLE_WIN_SDK_ROOT' in toolchain_windows.m4 56931 { $as_echo "$as_me:${as_lineno-$LINENO}: Trying to compile freetype sources with PlatformToolset=$PLATFORM_TOOLSET to $freetype_lib_path_unix ..." >&5 56932 $as_echo "$as_me: Trying to compile freetype sources with PlatformToolset=$PLATFORM_TOOLSET to $freetype_lib_path_unix ..." >&6;} 56933 56934 # First we try to build the freetype.dll 56935 $ECHO -e "@echo off\n"\ 56936 "$MSBUILD $vcxproj_path "\ 56937 "/p:PlatformToolset=$PLATFORM_TOOLSET "\ 56938 "/p:Configuration=\"Release Multithreaded\" "\ 56939 "/p:Platform=$freetype_platform "\ 56940 "/p:ConfigurationType=DynamicLibrary "\ 56941 "/p:TargetName=freetype "\ 56942 "/p:OutDir=\"$freetype_lib_path\" "\ 56943 "/p:IntDir=\"$freetype_obj_path\" > freetype.log" > freetype.bat 56944 cmd /c freetype.bat 56945 56946 if test -s "$freetype_lib_path_unix/freetype.dll"; then 56947 # If that succeeds we also build freetype.lib 56948 $ECHO -e "@echo off\n"\ 56949 "$MSBUILD $vcxproj_path "\ 56950 "/p:PlatformToolset=$PLATFORM_TOOLSET "\ 56951 "/p:Configuration=\"Release Multithreaded\" "\ 56952 "/p:Platform=$freetype_platform "\ 56953 "/p:ConfigurationType=StaticLibrary "\ 56954 "/p:TargetName=freetype "\ 56955 "/p:OutDir=\"$freetype_lib_path\" "\ 56956 "/p:IntDir=\"$freetype_obj_path\" >> freetype.log" > freetype.bat 56957 cmd /c freetype.bat 56958 56959 if test -s "$freetype_lib_path_unix/freetype.lib"; then 56960 # Once we build both, lib and dll, set freetype lib and include path appropriately 56961 POTENTIAL_FREETYPE_INCLUDE_PATH="$FREETYPE_SRC_PATH/include" 56962 POTENTIAL_FREETYPE_LIB_PATH="$freetype_lib_path_unix" 56963 { $as_echo "$as_me:${as_lineno-$LINENO}: Compiling freetype sources succeeded! (see freetype.log for build results)" >&5 56964 $as_echo "$as_me: Compiling freetype sources succeeded! (see freetype.log for build results)" >&6;} 56965 else 56966 BUILD_FREETYPE=no 56967 fi 56968 else 56969 BUILD_FREETYPE=no 56970 fi 56971 fi 56972 56973 if test "x$BUILD_FREETYPE" = xyes; then 56974 # Okay, we built it. Check that it works. 56975 56976 POTENTIAL_FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH" 56977 POTENTIAL_FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH" 56978 METHOD="--with-freetype-src" 56979 56980 # Let's start with an optimistic view of the world :-) 56981 FOUND_FREETYPE=yes 56982 56983 # First look for the canonical freetype main include file ft2build.h. 56984 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 56985 # Oh no! Let's try in the freetype2 directory. This is needed at least at Mac OS X Yosemite. 56986 POTENTIAL_FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH/freetype2" 56987 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 56988 # Fail. 56989 FOUND_FREETYPE=no 56990 fi 56991 fi 56992 56993 if test "x$FOUND_FREETYPE" = xyes; then 56994 # Include file found, let's continue the sanity check. 56995 { $as_echo "$as_me:${as_lineno-$LINENO}: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&5 56996 $as_echo "$as_me: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&6;} 56997 56998 # Reset to default value 56999 FREETYPE_BASE_NAME=freetype 57000 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 57001 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME"; then 57002 if test "x$OPENJDK_TARGET_OS" = xmacosx \ 57003 && test -s "$POTENTIAL_FREETYPE_LIB_PATH/${LIBRARY_PREFIX}freetype.6${SHARED_LIBRARY_SUFFIX}"; then 57004 # On Mac OS X Yosemite, the symlink from libfreetype.dylib to libfreetype.6.dylib disappeared. Check 57005 # for the .6 version explicitly. 57006 FREETYPE_BASE_NAME=freetype.6 57007 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 57008 { $as_echo "$as_me:${as_lineno-$LINENO}: Compensating for missing symlink by using version 6 explicitly" >&5 57009 $as_echo "$as_me: Compensating for missing symlink by using version 6 explicitly" >&6;} 57010 else 57011 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&5 57012 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&6;} 57013 FOUND_FREETYPE=no 57014 fi 57015 else 57016 if test "x$OPENJDK_TARGET_OS" = xwindows; then 57017 # On Windows, we will need both .lib and .dll file. 57018 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib"; then 57019 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&5 57020 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&6;} 57021 FOUND_FREETYPE=no 57022 fi 57023 elif test "x$OPENJDK_TARGET_OS" = xsolaris \ 57024 && test -s "$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR/$FREETYPE_LIB_NAME"; then 57025 # Found lib in isa dir, use that instead. 57026 POTENTIAL_FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR" 57027 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&5 57028 $as_echo "$as_me: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&6;} 57029 fi 57030 fi 57031 fi 57032 57033 if test "x$FOUND_FREETYPE" = xyes; then 57034 57035 # Only process if variable expands to non-empty 57036 57037 if test "x$POTENTIAL_FREETYPE_INCLUDE_PATH" != x; then 57038 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 57039 57040 # Input might be given as Windows format, start by converting to 57041 # unix format. 57042 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 57043 new_path=`$CYGPATH -u "$path"` 57044 57045 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 57046 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 57047 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 57048 # "foo.exe" is OK but "foo" is an error. 57049 # 57050 # This test is therefore slightly more accurate than "test -f" to check for file precense. 57051 # It is also a way to make sure we got the proper file name for the real test later on. 57052 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 57053 if test "x$test_shortpath" = x; then 57054 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 57055 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 57056 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_INCLUDE_PATH" "$LINENO" 5 57057 fi 57058 57059 # Call helper function which possibly converts this using DOS-style short mode. 57060 # If so, the updated path is stored in $new_path. 57061 57062 input_path="$new_path" 57063 # Check if we need to convert this using DOS-style short mode. If the path 57064 # contains just simple characters, use it. Otherwise (spaces, weird characters), 57065 # take no chances and rewrite it. 57066 # Note: m4 eats our [], so we need to use [ and ] instead. 57067 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 57068 if test "x$has_forbidden_chars" != x; then 57069 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 57070 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 57071 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 57072 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 57073 # Going to short mode and back again did indeed matter. Since short mode is 57074 # case insensitive, let's make it lowercase to improve readability. 57075 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 57076 # Now convert it back to Unix-style (cygpath) 57077 input_path=`$CYGPATH -u "$shortmode_path"` 57078 new_path="$input_path" 57079 fi 57080 fi 57081 57082 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 57083 if test "x$test_cygdrive_prefix" = x; then 57084 # As a simple fix, exclude /usr/bin since it's not a real path. 57085 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 57086 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 57087 # a path prefixed by /cygdrive for fixpath to work. 57088 new_path="$CYGWIN_ROOT_PATH$input_path" 57089 fi 57090 fi 57091 57092 57093 if test "x$path" != "x$new_path"; then 57094 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 57095 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 57096 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 57097 fi 57098 57099 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 57100 57101 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 57102 has_colon=`$ECHO $path | $GREP ^.:` 57103 new_path="$path" 57104 if test "x$has_colon" = x; then 57105 # Not in mixed or Windows style, start by that. 57106 new_path=`cmd //c echo $path` 57107 fi 57108 57109 57110 input_path="$new_path" 57111 # Check if we need to convert this using DOS-style short mode. If the path 57112 # contains just simple characters, use it. Otherwise (spaces, weird characters), 57113 # take no chances and rewrite it. 57114 # Note: m4 eats our [], so we need to use [ and ] instead. 57115 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 57116 if test "x$has_forbidden_chars" != x; then 57117 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 57118 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 57119 fi 57120 57121 57122 windows_path="$new_path" 57123 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 57124 unix_path=`$CYGPATH -u "$windows_path"` 57125 new_path="$unix_path" 57126 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 57127 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 57128 new_path="$unix_path" 57129 fi 57130 57131 if test "x$path" != "x$new_path"; then 57132 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 57133 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 57134 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 57135 fi 57136 57137 # Save the first 10 bytes of this path to the storage, so fixpath can work. 57138 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 57139 57140 else 57141 # We're on a unix platform. Hooray! :) 57142 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 57143 has_space=`$ECHO "$path" | $GREP " "` 57144 if test "x$has_space" != x; then 57145 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 57146 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 57147 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 57148 fi 57149 57150 # Use eval to expand a potential ~ 57151 eval path="$path" 57152 if test ! -f "$path" && test ! -d "$path"; then 57153 as_fn_error $? "The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 57154 fi 57155 57156 if test -d "$path"; then 57157 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$path"; $THEPWDCMD -L`" 57158 else 57159 dir="`$DIRNAME "$path"`" 57160 base="`$BASENAME "$path"`" 57161 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$dir"; $THEPWDCMD -L`/$base" 57162 fi 57163 fi 57164 fi 57165 57166 57167 # Only process if variable expands to non-empty 57168 57169 if test "x$POTENTIAL_FREETYPE_LIB_PATH" != x; then 57170 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 57171 57172 # Input might be given as Windows format, start by converting to 57173 # unix format. 57174 path="$POTENTIAL_FREETYPE_LIB_PATH" 57175 new_path=`$CYGPATH -u "$path"` 57176 57177 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 57178 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 57179 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 57180 # "foo.exe" is OK but "foo" is an error. 57181 # 57182 # This test is therefore slightly more accurate than "test -f" to check for file precense. 57183 # It is also a way to make sure we got the proper file name for the real test later on. 57184 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 57185 if test "x$test_shortpath" = x; then 57186 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 57187 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 57188 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_LIB_PATH" "$LINENO" 5 57189 fi 57190 57191 # Call helper function which possibly converts this using DOS-style short mode. 57192 # If so, the updated path is stored in $new_path. 57193 57194 input_path="$new_path" 57195 # Check if we need to convert this using DOS-style short mode. If the path 57196 # contains just simple characters, use it. Otherwise (spaces, weird characters), 57197 # take no chances and rewrite it. 57198 # Note: m4 eats our [], so we need to use [ and ] instead. 57199 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 57200 if test "x$has_forbidden_chars" != x; then 57201 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 57202 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 57203 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 57204 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 57205 # Going to short mode and back again did indeed matter. Since short mode is 57206 # case insensitive, let's make it lowercase to improve readability. 57207 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 57208 # Now convert it back to Unix-style (cygpath) 57209 input_path=`$CYGPATH -u "$shortmode_path"` 57210 new_path="$input_path" 57211 fi 57212 fi 57213 57214 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 57215 if test "x$test_cygdrive_prefix" = x; then 57216 # As a simple fix, exclude /usr/bin since it's not a real path. 57217 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 57218 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 57219 # a path prefixed by /cygdrive for fixpath to work. 57220 new_path="$CYGWIN_ROOT_PATH$input_path" 57221 fi 57222 fi 57223 57224 57225 if test "x$path" != "x$new_path"; then 57226 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 57227 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 57228 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 57229 fi 57230 57231 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 57232 57233 path="$POTENTIAL_FREETYPE_LIB_PATH" 57234 has_colon=`$ECHO $path | $GREP ^.:` 57235 new_path="$path" 57236 if test "x$has_colon" = x; then 57237 # Not in mixed or Windows style, start by that. 57238 new_path=`cmd //c echo $path` 57239 fi 57240 57241 57242 input_path="$new_path" 57243 # Check if we need to convert this using DOS-style short mode. If the path 57244 # contains just simple characters, use it. Otherwise (spaces, weird characters), 57245 # take no chances and rewrite it. 57246 # Note: m4 eats our [], so we need to use [ and ] instead. 57247 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 57248 if test "x$has_forbidden_chars" != x; then 57249 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 57250 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 57251 fi 57252 57253 57254 windows_path="$new_path" 57255 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 57256 unix_path=`$CYGPATH -u "$windows_path"` 57257 new_path="$unix_path" 57258 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 57259 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 57260 new_path="$unix_path" 57261 fi 57262 57263 if test "x$path" != "x$new_path"; then 57264 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 57265 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 57266 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 57267 fi 57268 57269 # Save the first 10 bytes of this path to the storage, so fixpath can work. 57270 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 57271 57272 else 57273 # We're on a unix platform. Hooray! :) 57274 path="$POTENTIAL_FREETYPE_LIB_PATH" 57275 has_space=`$ECHO "$path" | $GREP " "` 57276 if test "x$has_space" != x; then 57277 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 57278 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 57279 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 57280 fi 57281 57282 # Use eval to expand a potential ~ 57283 eval path="$path" 57284 if test ! -f "$path" && test ! -d "$path"; then 57285 as_fn_error $? "The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 57286 fi 57287 57288 if test -d "$path"; then 57289 POTENTIAL_FREETYPE_LIB_PATH="`cd "$path"; $THEPWDCMD -L`" 57290 else 57291 dir="`$DIRNAME "$path"`" 57292 base="`$BASENAME "$path"`" 57293 POTENTIAL_FREETYPE_LIB_PATH="`cd "$dir"; $THEPWDCMD -L`/$base" 57294 fi 57295 fi 57296 fi 57297 57298 57299 FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH" 57300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype includes" >&5 57301 $as_echo_n "checking for freetype includes... " >&6; } 57302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_INCLUDE_PATH" >&5 57303 $as_echo "$FREETYPE_INCLUDE_PATH" >&6; } 57304 FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH" 57305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype libraries" >&5 57306 $as_echo_n "checking for freetype libraries... " >&6; } 57307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_LIB_PATH" >&5 57308 $as_echo "$FREETYPE_LIB_PATH" >&6; } 57309 fi 57310 57311 if test "x$FOUND_FREETYPE" != xyes; then 57312 as_fn_error $? "Can not use the built freetype at location given by --with-freetype-src" "$LINENO" 5 57313 fi 57314 else 57315 { $as_echo "$as_me:${as_lineno-$LINENO}: User specified --with-freetype-src but building freetype failed. (see freetype.log for build results)" >&5 57316 $as_echo "$as_me: User specified --with-freetype-src but building freetype failed. (see freetype.log for build results)" >&6;} 57317 as_fn_error $? "Consider building freetype manually and using --with-freetype instead." "$LINENO" 5 57318 fi 57319 else 57320 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --with-freetype-src is currently only supported on Windows - ignoring" >&5 57321 $as_echo "$as_me: WARNING: --with-freetype-src is currently only supported on Windows - ignoring" >&2;} 57322 fi 57323 fi 57324 57325 if test "x$with_freetype" != x || test "x$with_freetype_include" != x || test "x$with_freetype_lib" != x; then 57326 # User has specified settings 57327 57328 if test "x$BUNDLE_FREETYPE" = x; then 57329 # If not specified, default is to bundle freetype 57330 BUNDLE_FREETYPE=yes 57331 fi 57332 57333 if test "x$with_freetype" != x; then 57334 POTENTIAL_FREETYPE_INCLUDE_PATH="$with_freetype/include" 57335 POTENTIAL_FREETYPE_LIB_PATH="$with_freetype/lib" 57336 fi 57337 57338 # Allow --with-freetype-lib and --with-freetype-include to override 57339 if test "x$with_freetype_include" != x; then 57340 POTENTIAL_FREETYPE_INCLUDE_PATH="$with_freetype_include" 57341 fi 57342 if test "x$with_freetype_lib" != x; then 57343 POTENTIAL_FREETYPE_LIB_PATH="$with_freetype_lib" 57344 fi 57345 57346 if test "x$POTENTIAL_FREETYPE_INCLUDE_PATH" != x && test "x$POTENTIAL_FREETYPE_LIB_PATH" != x; then 57347 # Okay, we got it. Check that it works. 57348 57349 POTENTIAL_FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH" 57350 POTENTIAL_FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH" 57351 METHOD="--with-freetype" 57352 57353 # Let's start with an optimistic view of the world :-) 57354 FOUND_FREETYPE=yes 57355 57356 # First look for the canonical freetype main include file ft2build.h. 57357 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 57358 # Oh no! Let's try in the freetype2 directory. This is needed at least at Mac OS X Yosemite. 57359 POTENTIAL_FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH/freetype2" 57360 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 57361 # Fail. 57362 FOUND_FREETYPE=no 57363 fi 57364 fi 57365 57366 if test "x$FOUND_FREETYPE" = xyes; then 57367 # Include file found, let's continue the sanity check. 57368 { $as_echo "$as_me:${as_lineno-$LINENO}: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&5 57369 $as_echo "$as_me: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&6;} 57370 57371 # Reset to default value 57372 FREETYPE_BASE_NAME=freetype 57373 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 57374 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME"; then 57375 if test "x$OPENJDK_TARGET_OS" = xmacosx \ 57376 && test -s "$POTENTIAL_FREETYPE_LIB_PATH/${LIBRARY_PREFIX}freetype.6${SHARED_LIBRARY_SUFFIX}"; then 57377 # On Mac OS X Yosemite, the symlink from libfreetype.dylib to libfreetype.6.dylib disappeared. Check 57378 # for the .6 version explicitly. 57379 FREETYPE_BASE_NAME=freetype.6 57380 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 57381 { $as_echo "$as_me:${as_lineno-$LINENO}: Compensating for missing symlink by using version 6 explicitly" >&5 57382 $as_echo "$as_me: Compensating for missing symlink by using version 6 explicitly" >&6;} 57383 else 57384 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&5 57385 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&6;} 57386 FOUND_FREETYPE=no 57387 fi 57388 else 57389 if test "x$OPENJDK_TARGET_OS" = xwindows; then 57390 # On Windows, we will need both .lib and .dll file. 57391 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib"; then 57392 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&5 57393 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&6;} 57394 FOUND_FREETYPE=no 57395 fi 57396 elif test "x$OPENJDK_TARGET_OS" = xsolaris \ 57397 && test -s "$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR/$FREETYPE_LIB_NAME"; then 57398 # Found lib in isa dir, use that instead. 57399 POTENTIAL_FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR" 57400 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&5 57401 $as_echo "$as_me: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&6;} 57402 fi 57403 fi 57404 fi 57405 57406 if test "x$FOUND_FREETYPE" = xyes; then 57407 57408 # Only process if variable expands to non-empty 57409 57410 if test "x$POTENTIAL_FREETYPE_INCLUDE_PATH" != x; then 57411 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 57412 57413 # Input might be given as Windows format, start by converting to 57414 # unix format. 57415 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 57416 new_path=`$CYGPATH -u "$path"` 57417 57418 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 57419 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 57420 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 57421 # "foo.exe" is OK but "foo" is an error. 57422 # 57423 # This test is therefore slightly more accurate than "test -f" to check for file precense. 57424 # It is also a way to make sure we got the proper file name for the real test later on. 57425 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 57426 if test "x$test_shortpath" = x; then 57427 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 57428 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 57429 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_INCLUDE_PATH" "$LINENO" 5 57430 fi 57431 57432 # Call helper function which possibly converts this using DOS-style short mode. 57433 # If so, the updated path is stored in $new_path. 57434 57435 input_path="$new_path" 57436 # Check if we need to convert this using DOS-style short mode. If the path 57437 # contains just simple characters, use it. Otherwise (spaces, weird characters), 57438 # take no chances and rewrite it. 57439 # Note: m4 eats our [], so we need to use [ and ] instead. 57440 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 57441 if test "x$has_forbidden_chars" != x; then 57442 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 57443 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 57444 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 57445 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 57446 # Going to short mode and back again did indeed matter. Since short mode is 57447 # case insensitive, let's make it lowercase to improve readability. 57448 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 57449 # Now convert it back to Unix-style (cygpath) 57450 input_path=`$CYGPATH -u "$shortmode_path"` 57451 new_path="$input_path" 57452 fi 57453 fi 57454 57455 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 57456 if test "x$test_cygdrive_prefix" = x; then 57457 # As a simple fix, exclude /usr/bin since it's not a real path. 57458 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 57459 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 57460 # a path prefixed by /cygdrive for fixpath to work. 57461 new_path="$CYGWIN_ROOT_PATH$input_path" 57462 fi 57463 fi 57464 57465 57466 if test "x$path" != "x$new_path"; then 57467 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 57468 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 57469 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 57470 fi 57471 57472 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 57473 57474 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 57475 has_colon=`$ECHO $path | $GREP ^.:` 57476 new_path="$path" 57477 if test "x$has_colon" = x; then 57478 # Not in mixed or Windows style, start by that. 57479 new_path=`cmd //c echo $path` 57480 fi 57481 57482 57483 input_path="$new_path" 57484 # Check if we need to convert this using DOS-style short mode. If the path 57485 # contains just simple characters, use it. Otherwise (spaces, weird characters), 57486 # take no chances and rewrite it. 57487 # Note: m4 eats our [], so we need to use [ and ] instead. 57488 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 57489 if test "x$has_forbidden_chars" != x; then 57490 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 57491 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 57492 fi 57493 57494 57495 windows_path="$new_path" 57496 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 57497 unix_path=`$CYGPATH -u "$windows_path"` 57498 new_path="$unix_path" 57499 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 57500 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 57501 new_path="$unix_path" 57502 fi 57503 57504 if test "x$path" != "x$new_path"; then 57505 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 57506 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 57507 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 57508 fi 57509 57510 # Save the first 10 bytes of this path to the storage, so fixpath can work. 57511 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 57512 57513 else 57514 # We're on a unix platform. Hooray! :) 57515 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 57516 has_space=`$ECHO "$path" | $GREP " "` 57517 if test "x$has_space" != x; then 57518 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 57519 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 57520 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 57521 fi 57522 57523 # Use eval to expand a potential ~ 57524 eval path="$path" 57525 if test ! -f "$path" && test ! -d "$path"; then 57526 as_fn_error $? "The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 57527 fi 57528 57529 if test -d "$path"; then 57530 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$path"; $THEPWDCMD -L`" 57531 else 57532 dir="`$DIRNAME "$path"`" 57533 base="`$BASENAME "$path"`" 57534 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$dir"; $THEPWDCMD -L`/$base" 57535 fi 57536 fi 57537 fi 57538 57539 57540 # Only process if variable expands to non-empty 57541 57542 if test "x$POTENTIAL_FREETYPE_LIB_PATH" != x; then 57543 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 57544 57545 # Input might be given as Windows format, start by converting to 57546 # unix format. 57547 path="$POTENTIAL_FREETYPE_LIB_PATH" 57548 new_path=`$CYGPATH -u "$path"` 57549 57550 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 57551 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 57552 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 57553 # "foo.exe" is OK but "foo" is an error. 57554 # 57555 # This test is therefore slightly more accurate than "test -f" to check for file precense. 57556 # It is also a way to make sure we got the proper file name for the real test later on. 57557 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 57558 if test "x$test_shortpath" = x; then 57559 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 57560 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 57561 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_LIB_PATH" "$LINENO" 5 57562 fi 57563 57564 # Call helper function which possibly converts this using DOS-style short mode. 57565 # If so, the updated path is stored in $new_path. 57566 57567 input_path="$new_path" 57568 # Check if we need to convert this using DOS-style short mode. If the path 57569 # contains just simple characters, use it. Otherwise (spaces, weird characters), 57570 # take no chances and rewrite it. 57571 # Note: m4 eats our [], so we need to use [ and ] instead. 57572 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 57573 if test "x$has_forbidden_chars" != x; then 57574 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 57575 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 57576 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 57577 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 57578 # Going to short mode and back again did indeed matter. Since short mode is 57579 # case insensitive, let's make it lowercase to improve readability. 57580 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 57581 # Now convert it back to Unix-style (cygpath) 57582 input_path=`$CYGPATH -u "$shortmode_path"` 57583 new_path="$input_path" 57584 fi 57585 fi 57586 57587 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 57588 if test "x$test_cygdrive_prefix" = x; then 57589 # As a simple fix, exclude /usr/bin since it's not a real path. 57590 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 57591 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 57592 # a path prefixed by /cygdrive for fixpath to work. 57593 new_path="$CYGWIN_ROOT_PATH$input_path" 57594 fi 57595 fi 57596 57597 57598 if test "x$path" != "x$new_path"; then 57599 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 57600 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 57601 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 57602 fi 57603 57604 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 57605 57606 path="$POTENTIAL_FREETYPE_LIB_PATH" 57607 has_colon=`$ECHO $path | $GREP ^.:` 57608 new_path="$path" 57609 if test "x$has_colon" = x; then 57610 # Not in mixed or Windows style, start by that. 57611 new_path=`cmd //c echo $path` 57612 fi 57613 57614 57615 input_path="$new_path" 57616 # Check if we need to convert this using DOS-style short mode. If the path 57617 # contains just simple characters, use it. Otherwise (spaces, weird characters), 57618 # take no chances and rewrite it. 57619 # Note: m4 eats our [], so we need to use [ and ] instead. 57620 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 57621 if test "x$has_forbidden_chars" != x; then 57622 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 57623 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 57624 fi 57625 57626 57627 windows_path="$new_path" 57628 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 57629 unix_path=`$CYGPATH -u "$windows_path"` 57630 new_path="$unix_path" 57631 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 57632 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 57633 new_path="$unix_path" 57634 fi 57635 57636 if test "x$path" != "x$new_path"; then 57637 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 57638 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 57639 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 57640 fi 57641 57642 # Save the first 10 bytes of this path to the storage, so fixpath can work. 57643 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 57644 57645 else 57646 # We're on a unix platform. Hooray! :) 57647 path="$POTENTIAL_FREETYPE_LIB_PATH" 57648 has_space=`$ECHO "$path" | $GREP " "` 57649 if test "x$has_space" != x; then 57650 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 57651 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 57652 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 57653 fi 57654 57655 # Use eval to expand a potential ~ 57656 eval path="$path" 57657 if test ! -f "$path" && test ! -d "$path"; then 57658 as_fn_error $? "The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 57659 fi 57660 57661 if test -d "$path"; then 57662 POTENTIAL_FREETYPE_LIB_PATH="`cd "$path"; $THEPWDCMD -L`" 57663 else 57664 dir="`$DIRNAME "$path"`" 57665 base="`$BASENAME "$path"`" 57666 POTENTIAL_FREETYPE_LIB_PATH="`cd "$dir"; $THEPWDCMD -L`/$base" 57667 fi 57668 fi 57669 fi 57670 57671 57672 FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH" 57673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype includes" >&5 57674 $as_echo_n "checking for freetype includes... " >&6; } 57675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_INCLUDE_PATH" >&5 57676 $as_echo "$FREETYPE_INCLUDE_PATH" >&6; } 57677 FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH" 57678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype libraries" >&5 57679 $as_echo_n "checking for freetype libraries... " >&6; } 57680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_LIB_PATH" >&5 57681 $as_echo "$FREETYPE_LIB_PATH" >&6; } 57682 fi 57683 57684 if test "x$FOUND_FREETYPE" != xyes; then 57685 as_fn_error $? "Can not find or use freetype at location given by --with-freetype" "$LINENO" 5 57686 fi 57687 else 57688 # User specified only one of lib or include. This is an error. 57689 if test "x$POTENTIAL_FREETYPE_INCLUDE_PATH" = x ; then 57690 { $as_echo "$as_me:${as_lineno-$LINENO}: User specified --with-freetype-lib but not --with-freetype-include" >&5 57691 $as_echo "$as_me: User specified --with-freetype-lib but not --with-freetype-include" >&6;} 57692 as_fn_error $? "Need both freetype lib and include paths. Consider using --with-freetype instead." "$LINENO" 5 57693 else 57694 { $as_echo "$as_me:${as_lineno-$LINENO}: User specified --with-freetype-include but not --with-freetype-lib" >&5 57695 $as_echo "$as_me: User specified --with-freetype-include but not --with-freetype-lib" >&6;} 57696 as_fn_error $? "Need both freetype lib and include paths. Consider using --with-freetype instead." "$LINENO" 5 57697 fi 57698 fi 57699 else 57700 # User did not specify settings, but we need freetype. Try to locate it. 57701 57702 if test "x$BUNDLE_FREETYPE" = x; then 57703 # If not specified, default is to bundle freetype only on windows 57704 if test "x$OPENJDK_TARGET_OS" = xwindows; then 57705 BUNDLE_FREETYPE=yes 57706 else 57707 BUNDLE_FREETYPE=no 57708 fi 57709 fi 57710 57711 # If we have a sysroot, assume that's where we are supposed to look and skip pkg-config. 57712 if test "x$SYSROOT" = x; then 57713 if test "x$FOUND_FREETYPE" != xyes; then 57714 # Check modules using pkg-config, but only if we have it (ugly output results otherwise) 57715 if test "x$PKG_CONFIG" != x; then 57716 57717 pkg_failed=no 57718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FREETYPE" >&5 57719 $as_echo_n "checking for FREETYPE... " >&6; } 57720 57721 if test -n "$FREETYPE_CFLAGS"; then 57722 pkg_cv_FREETYPE_CFLAGS="$FREETYPE_CFLAGS" 57723 elif test -n "$PKG_CONFIG"; then 57724 if test -n "$PKG_CONFIG" && \ 57725 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"freetype2\""; } >&5 57726 ($PKG_CONFIG --exists --print-errors "freetype2") 2>&5 57727 ac_status=$? 57728 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 57729 test $ac_status = 0; }; then 57730 pkg_cv_FREETYPE_CFLAGS=`$PKG_CONFIG --cflags "freetype2" 2>/dev/null` 57731 else 57732 pkg_failed=yes 57733 fi 57734 else 57735 pkg_failed=untried 57736 fi 57737 if test -n "$FREETYPE_LIBS"; then 57738 pkg_cv_FREETYPE_LIBS="$FREETYPE_LIBS" 57739 elif test -n "$PKG_CONFIG"; then 57740 if test -n "$PKG_CONFIG" && \ 57741 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"freetype2\""; } >&5 57742 ($PKG_CONFIG --exists --print-errors "freetype2") 2>&5 57743 ac_status=$? 57744 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 57745 test $ac_status = 0; }; then 57746 pkg_cv_FREETYPE_LIBS=`$PKG_CONFIG --libs "freetype2" 2>/dev/null` 57747 else 57748 pkg_failed=yes 57749 fi 57750 else 57751 pkg_failed=untried 57752 fi 57753 57754 57755 57756 if test $pkg_failed = yes; then 57757 57758 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 57759 _pkg_short_errors_supported=yes 57760 else 57761 _pkg_short_errors_supported=no 57762 fi 57763 if test $_pkg_short_errors_supported = yes; then 57764 FREETYPE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "freetype2" 2>&1` 57765 else 57766 FREETYPE_PKG_ERRORS=`$PKG_CONFIG --print-errors "freetype2" 2>&1` 57767 fi 57768 # Put the nasty error message in config.log where it belongs 57769 echo "$FREETYPE_PKG_ERRORS" >&5 57770 57771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 57772 $as_echo "no" >&6; } 57773 FOUND_FREETYPE=no 57774 elif test $pkg_failed = untried; then 57775 FOUND_FREETYPE=no 57776 else 57777 FREETYPE_CFLAGS=$pkg_cv_FREETYPE_CFLAGS 57778 FREETYPE_LIBS=$pkg_cv_FREETYPE_LIBS 57779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 57780 $as_echo "yes" >&6; } 57781 FOUND_FREETYPE=yes 57782 fi 57783 if test "x$FOUND_FREETYPE" = xyes; then 57784 # On solaris, pkg_check adds -lz to freetype libs, which isn't necessary for us. 57785 FREETYPE_LIBS=`$ECHO $FREETYPE_LIBS | $SED 's/-lz//g'` 57786 # 64-bit libs for Solaris x86 are installed in the amd64 subdirectory, change lib to lib/amd64 57787 if test "x$OPENJDK_TARGET_OS" = xsolaris && test "x$OPENJDK_TARGET_CPU" = xx86_64; then 57788 FREETYPE_LIBS=`$ECHO $FREETYPE_LIBS | $SED 's?/lib?/lib/amd64?g'` 57789 fi 57790 # PKG_CHECK_MODULES will set FREETYPE_CFLAGS and _LIBS, but we don't get a lib path for bundling. 57791 if test "x$BUNDLE_FREETYPE" = xyes; then 57792 { $as_echo "$as_me:${as_lineno-$LINENO}: Found freetype using pkg-config, but ignoring since we can not bundle that" >&5 57793 $as_echo "$as_me: Found freetype using pkg-config, but ignoring since we can not bundle that" >&6;} 57794 FOUND_FREETYPE=no 57795 else 57796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype" >&5 57797 $as_echo_n "checking for freetype... " >&6; } 57798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (using pkg-config)" >&5 57799 $as_echo "yes (using pkg-config)" >&6; } 57800 fi 57801 fi 57802 fi 57803 fi 57804 fi 57805 57806 if test "x$FOUND_FREETYPE" != xyes; then 57807 # Check in well-known locations 57808 if test "x$OPENJDK_TARGET_OS" = xwindows; then 57809 FREETYPE_BASE_DIR="$PROGRAMFILES/GnuWin32" 57810 57811 windows_path="$FREETYPE_BASE_DIR" 57812 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 57813 unix_path=`$CYGPATH -u "$windows_path"` 57814 FREETYPE_BASE_DIR="$unix_path" 57815 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 57816 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 57817 FREETYPE_BASE_DIR="$unix_path" 57818 fi 57819 57820 57821 POTENTIAL_FREETYPE_INCLUDE_PATH="$FREETYPE_BASE_DIR/include" 57822 POTENTIAL_FREETYPE_LIB_PATH="$FREETYPE_BASE_DIR/lib" 57823 METHOD="well-known location" 57824 57825 # Let's start with an optimistic view of the world :-) 57826 FOUND_FREETYPE=yes 57827 57828 # First look for the canonical freetype main include file ft2build.h. 57829 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 57830 # Oh no! Let's try in the freetype2 directory. This is needed at least at Mac OS X Yosemite. 57831 POTENTIAL_FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH/freetype2" 57832 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 57833 # Fail. 57834 FOUND_FREETYPE=no 57835 fi 57836 fi 57837 57838 if test "x$FOUND_FREETYPE" = xyes; then 57839 # Include file found, let's continue the sanity check. 57840 { $as_echo "$as_me:${as_lineno-$LINENO}: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&5 57841 $as_echo "$as_me: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&6;} 57842 57843 # Reset to default value 57844 FREETYPE_BASE_NAME=freetype 57845 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 57846 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME"; then 57847 if test "x$OPENJDK_TARGET_OS" = xmacosx \ 57848 && test -s "$POTENTIAL_FREETYPE_LIB_PATH/${LIBRARY_PREFIX}freetype.6${SHARED_LIBRARY_SUFFIX}"; then 57849 # On Mac OS X Yosemite, the symlink from libfreetype.dylib to libfreetype.6.dylib disappeared. Check 57850 # for the .6 version explicitly. 57851 FREETYPE_BASE_NAME=freetype.6 57852 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 57853 { $as_echo "$as_me:${as_lineno-$LINENO}: Compensating for missing symlink by using version 6 explicitly" >&5 57854 $as_echo "$as_me: Compensating for missing symlink by using version 6 explicitly" >&6;} 57855 else 57856 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&5 57857 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&6;} 57858 FOUND_FREETYPE=no 57859 fi 57860 else 57861 if test "x$OPENJDK_TARGET_OS" = xwindows; then 57862 # On Windows, we will need both .lib and .dll file. 57863 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib"; then 57864 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&5 57865 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&6;} 57866 FOUND_FREETYPE=no 57867 fi 57868 elif test "x$OPENJDK_TARGET_OS" = xsolaris \ 57869 && test -s "$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR/$FREETYPE_LIB_NAME"; then 57870 # Found lib in isa dir, use that instead. 57871 POTENTIAL_FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR" 57872 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&5 57873 $as_echo "$as_me: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&6;} 57874 fi 57875 fi 57876 fi 57877 57878 if test "x$FOUND_FREETYPE" = xyes; then 57879 57880 # Only process if variable expands to non-empty 57881 57882 if test "x$POTENTIAL_FREETYPE_INCLUDE_PATH" != x; then 57883 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 57884 57885 # Input might be given as Windows format, start by converting to 57886 # unix format. 57887 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 57888 new_path=`$CYGPATH -u "$path"` 57889 57890 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 57891 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 57892 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 57893 # "foo.exe" is OK but "foo" is an error. 57894 # 57895 # This test is therefore slightly more accurate than "test -f" to check for file precense. 57896 # It is also a way to make sure we got the proper file name for the real test later on. 57897 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 57898 if test "x$test_shortpath" = x; then 57899 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 57900 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 57901 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_INCLUDE_PATH" "$LINENO" 5 57902 fi 57903 57904 # Call helper function which possibly converts this using DOS-style short mode. 57905 # If so, the updated path is stored in $new_path. 57906 57907 input_path="$new_path" 57908 # Check if we need to convert this using DOS-style short mode. If the path 57909 # contains just simple characters, use it. Otherwise (spaces, weird characters), 57910 # take no chances and rewrite it. 57911 # Note: m4 eats our [], so we need to use [ and ] instead. 57912 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 57913 if test "x$has_forbidden_chars" != x; then 57914 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 57915 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 57916 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 57917 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 57918 # Going to short mode and back again did indeed matter. Since short mode is 57919 # case insensitive, let's make it lowercase to improve readability. 57920 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 57921 # Now convert it back to Unix-style (cygpath) 57922 input_path=`$CYGPATH -u "$shortmode_path"` 57923 new_path="$input_path" 57924 fi 57925 fi 57926 57927 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 57928 if test "x$test_cygdrive_prefix" = x; then 57929 # As a simple fix, exclude /usr/bin since it's not a real path. 57930 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 57931 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 57932 # a path prefixed by /cygdrive for fixpath to work. 57933 new_path="$CYGWIN_ROOT_PATH$input_path" 57934 fi 57935 fi 57936 57937 57938 if test "x$path" != "x$new_path"; then 57939 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 57940 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 57941 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 57942 fi 57943 57944 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 57945 57946 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 57947 has_colon=`$ECHO $path | $GREP ^.:` 57948 new_path="$path" 57949 if test "x$has_colon" = x; then 57950 # Not in mixed or Windows style, start by that. 57951 new_path=`cmd //c echo $path` 57952 fi 57953 57954 57955 input_path="$new_path" 57956 # Check if we need to convert this using DOS-style short mode. If the path 57957 # contains just simple characters, use it. Otherwise (spaces, weird characters), 57958 # take no chances and rewrite it. 57959 # Note: m4 eats our [], so we need to use [ and ] instead. 57960 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 57961 if test "x$has_forbidden_chars" != x; then 57962 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 57963 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 57964 fi 57965 57966 57967 windows_path="$new_path" 57968 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 57969 unix_path=`$CYGPATH -u "$windows_path"` 57970 new_path="$unix_path" 57971 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 57972 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 57973 new_path="$unix_path" 57974 fi 57975 57976 if test "x$path" != "x$new_path"; then 57977 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 57978 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 57979 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 57980 fi 57981 57982 # Save the first 10 bytes of this path to the storage, so fixpath can work. 57983 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 57984 57985 else 57986 # We're on a unix platform. Hooray! :) 57987 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 57988 has_space=`$ECHO "$path" | $GREP " "` 57989 if test "x$has_space" != x; then 57990 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 57991 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 57992 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 57993 fi 57994 57995 # Use eval to expand a potential ~ 57996 eval path="$path" 57997 if test ! -f "$path" && test ! -d "$path"; then 57998 as_fn_error $? "The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 57999 fi 58000 58001 if test -d "$path"; then 58002 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$path"; $THEPWDCMD -L`" 58003 else 58004 dir="`$DIRNAME "$path"`" 58005 base="`$BASENAME "$path"`" 58006 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$dir"; $THEPWDCMD -L`/$base" 58007 fi 58008 fi 58009 fi 58010 58011 58012 # Only process if variable expands to non-empty 58013 58014 if test "x$POTENTIAL_FREETYPE_LIB_PATH" != x; then 58015 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 58016 58017 # Input might be given as Windows format, start by converting to 58018 # unix format. 58019 path="$POTENTIAL_FREETYPE_LIB_PATH" 58020 new_path=`$CYGPATH -u "$path"` 58021 58022 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 58023 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 58024 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 58025 # "foo.exe" is OK but "foo" is an error. 58026 # 58027 # This test is therefore slightly more accurate than "test -f" to check for file precense. 58028 # It is also a way to make sure we got the proper file name for the real test later on. 58029 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 58030 if test "x$test_shortpath" = x; then 58031 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 58032 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 58033 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_LIB_PATH" "$LINENO" 5 58034 fi 58035 58036 # Call helper function which possibly converts this using DOS-style short mode. 58037 # If so, the updated path is stored in $new_path. 58038 58039 input_path="$new_path" 58040 # Check if we need to convert this using DOS-style short mode. If the path 58041 # contains just simple characters, use it. Otherwise (spaces, weird characters), 58042 # take no chances and rewrite it. 58043 # Note: m4 eats our [], so we need to use [ and ] instead. 58044 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 58045 if test "x$has_forbidden_chars" != x; then 58046 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 58047 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 58048 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 58049 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 58050 # Going to short mode and back again did indeed matter. Since short mode is 58051 # case insensitive, let's make it lowercase to improve readability. 58052 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 58053 # Now convert it back to Unix-style (cygpath) 58054 input_path=`$CYGPATH -u "$shortmode_path"` 58055 new_path="$input_path" 58056 fi 58057 fi 58058 58059 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 58060 if test "x$test_cygdrive_prefix" = x; then 58061 # As a simple fix, exclude /usr/bin since it's not a real path. 58062 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 58063 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 58064 # a path prefixed by /cygdrive for fixpath to work. 58065 new_path="$CYGWIN_ROOT_PATH$input_path" 58066 fi 58067 fi 58068 58069 58070 if test "x$path" != "x$new_path"; then 58071 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 58072 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 58073 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 58074 fi 58075 58076 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 58077 58078 path="$POTENTIAL_FREETYPE_LIB_PATH" 58079 has_colon=`$ECHO $path | $GREP ^.:` 58080 new_path="$path" 58081 if test "x$has_colon" = x; then 58082 # Not in mixed or Windows style, start by that. 58083 new_path=`cmd //c echo $path` 58084 fi 58085 58086 58087 input_path="$new_path" 58088 # Check if we need to convert this using DOS-style short mode. If the path 58089 # contains just simple characters, use it. Otherwise (spaces, weird characters), 58090 # take no chances and rewrite it. 58091 # Note: m4 eats our [], so we need to use [ and ] instead. 58092 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 58093 if test "x$has_forbidden_chars" != x; then 58094 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 58095 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 58096 fi 58097 58098 58099 windows_path="$new_path" 58100 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 58101 unix_path=`$CYGPATH -u "$windows_path"` 58102 new_path="$unix_path" 58103 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 58104 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 58105 new_path="$unix_path" 58106 fi 58107 58108 if test "x$path" != "x$new_path"; then 58109 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 58110 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 58111 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 58112 fi 58113 58114 # Save the first 10 bytes of this path to the storage, so fixpath can work. 58115 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 58116 58117 else 58118 # We're on a unix platform. Hooray! :) 58119 path="$POTENTIAL_FREETYPE_LIB_PATH" 58120 has_space=`$ECHO "$path" | $GREP " "` 58121 if test "x$has_space" != x; then 58122 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 58123 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 58124 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 58125 fi 58126 58127 # Use eval to expand a potential ~ 58128 eval path="$path" 58129 if test ! -f "$path" && test ! -d "$path"; then 58130 as_fn_error $? "The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 58131 fi 58132 58133 if test -d "$path"; then 58134 POTENTIAL_FREETYPE_LIB_PATH="`cd "$path"; $THEPWDCMD -L`" 58135 else 58136 dir="`$DIRNAME "$path"`" 58137 base="`$BASENAME "$path"`" 58138 POTENTIAL_FREETYPE_LIB_PATH="`cd "$dir"; $THEPWDCMD -L`/$base" 58139 fi 58140 fi 58141 fi 58142 58143 58144 FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH" 58145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype includes" >&5 58146 $as_echo_n "checking for freetype includes... " >&6; } 58147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_INCLUDE_PATH" >&5 58148 $as_echo "$FREETYPE_INCLUDE_PATH" >&6; } 58149 FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH" 58150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype libraries" >&5 58151 $as_echo_n "checking for freetype libraries... " >&6; } 58152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_LIB_PATH" >&5 58153 $as_echo "$FREETYPE_LIB_PATH" >&6; } 58154 fi 58155 58156 if test "x$FOUND_FREETYPE" != xyes; then 58157 FREETYPE_BASE_DIR="$ProgramW6432/GnuWin32" 58158 58159 windows_path="$FREETYPE_BASE_DIR" 58160 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 58161 unix_path=`$CYGPATH -u "$windows_path"` 58162 FREETYPE_BASE_DIR="$unix_path" 58163 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 58164 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 58165 FREETYPE_BASE_DIR="$unix_path" 58166 fi 58167 58168 58169 POTENTIAL_FREETYPE_INCLUDE_PATH="$FREETYPE_BASE_DIR/include" 58170 POTENTIAL_FREETYPE_LIB_PATH="$FREETYPE_BASE_DIR/lib" 58171 METHOD="well-known location" 58172 58173 # Let's start with an optimistic view of the world :-) 58174 FOUND_FREETYPE=yes 58175 58176 # First look for the canonical freetype main include file ft2build.h. 58177 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 58178 # Oh no! Let's try in the freetype2 directory. This is needed at least at Mac OS X Yosemite. 58179 POTENTIAL_FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH/freetype2" 58180 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 58181 # Fail. 58182 FOUND_FREETYPE=no 58183 fi 58184 fi 58185 58186 if test "x$FOUND_FREETYPE" = xyes; then 58187 # Include file found, let's continue the sanity check. 58188 { $as_echo "$as_me:${as_lineno-$LINENO}: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&5 58189 $as_echo "$as_me: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&6;} 58190 58191 # Reset to default value 58192 FREETYPE_BASE_NAME=freetype 58193 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 58194 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME"; then 58195 if test "x$OPENJDK_TARGET_OS" = xmacosx \ 58196 && test -s "$POTENTIAL_FREETYPE_LIB_PATH/${LIBRARY_PREFIX}freetype.6${SHARED_LIBRARY_SUFFIX}"; then 58197 # On Mac OS X Yosemite, the symlink from libfreetype.dylib to libfreetype.6.dylib disappeared. Check 58198 # for the .6 version explicitly. 58199 FREETYPE_BASE_NAME=freetype.6 58200 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 58201 { $as_echo "$as_me:${as_lineno-$LINENO}: Compensating for missing symlink by using version 6 explicitly" >&5 58202 $as_echo "$as_me: Compensating for missing symlink by using version 6 explicitly" >&6;} 58203 else 58204 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&5 58205 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&6;} 58206 FOUND_FREETYPE=no 58207 fi 58208 else 58209 if test "x$OPENJDK_TARGET_OS" = xwindows; then 58210 # On Windows, we will need both .lib and .dll file. 58211 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib"; then 58212 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&5 58213 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&6;} 58214 FOUND_FREETYPE=no 58215 fi 58216 elif test "x$OPENJDK_TARGET_OS" = xsolaris \ 58217 && test -s "$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR/$FREETYPE_LIB_NAME"; then 58218 # Found lib in isa dir, use that instead. 58219 POTENTIAL_FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR" 58220 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&5 58221 $as_echo "$as_me: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&6;} 58222 fi 58223 fi 58224 fi 58225 58226 if test "x$FOUND_FREETYPE" = xyes; then 58227 58228 # Only process if variable expands to non-empty 58229 58230 if test "x$POTENTIAL_FREETYPE_INCLUDE_PATH" != x; then 58231 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 58232 58233 # Input might be given as Windows format, start by converting to 58234 # unix format. 58235 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 58236 new_path=`$CYGPATH -u "$path"` 58237 58238 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 58239 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 58240 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 58241 # "foo.exe" is OK but "foo" is an error. 58242 # 58243 # This test is therefore slightly more accurate than "test -f" to check for file precense. 58244 # It is also a way to make sure we got the proper file name for the real test later on. 58245 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 58246 if test "x$test_shortpath" = x; then 58247 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 58248 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 58249 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_INCLUDE_PATH" "$LINENO" 5 58250 fi 58251 58252 # Call helper function which possibly converts this using DOS-style short mode. 58253 # If so, the updated path is stored in $new_path. 58254 58255 input_path="$new_path" 58256 # Check if we need to convert this using DOS-style short mode. If the path 58257 # contains just simple characters, use it. Otherwise (spaces, weird characters), 58258 # take no chances and rewrite it. 58259 # Note: m4 eats our [], so we need to use [ and ] instead. 58260 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 58261 if test "x$has_forbidden_chars" != x; then 58262 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 58263 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 58264 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 58265 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 58266 # Going to short mode and back again did indeed matter. Since short mode is 58267 # case insensitive, let's make it lowercase to improve readability. 58268 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 58269 # Now convert it back to Unix-style (cygpath) 58270 input_path=`$CYGPATH -u "$shortmode_path"` 58271 new_path="$input_path" 58272 fi 58273 fi 58274 58275 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 58276 if test "x$test_cygdrive_prefix" = x; then 58277 # As a simple fix, exclude /usr/bin since it's not a real path. 58278 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 58279 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 58280 # a path prefixed by /cygdrive for fixpath to work. 58281 new_path="$CYGWIN_ROOT_PATH$input_path" 58282 fi 58283 fi 58284 58285 58286 if test "x$path" != "x$new_path"; then 58287 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 58288 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 58289 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 58290 fi 58291 58292 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 58293 58294 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 58295 has_colon=`$ECHO $path | $GREP ^.:` 58296 new_path="$path" 58297 if test "x$has_colon" = x; then 58298 # Not in mixed or Windows style, start by that. 58299 new_path=`cmd //c echo $path` 58300 fi 58301 58302 58303 input_path="$new_path" 58304 # Check if we need to convert this using DOS-style short mode. If the path 58305 # contains just simple characters, use it. Otherwise (spaces, weird characters), 58306 # take no chances and rewrite it. 58307 # Note: m4 eats our [], so we need to use [ and ] instead. 58308 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 58309 if test "x$has_forbidden_chars" != x; then 58310 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 58311 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 58312 fi 58313 58314 58315 windows_path="$new_path" 58316 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 58317 unix_path=`$CYGPATH -u "$windows_path"` 58318 new_path="$unix_path" 58319 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 58320 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 58321 new_path="$unix_path" 58322 fi 58323 58324 if test "x$path" != "x$new_path"; then 58325 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 58326 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 58327 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 58328 fi 58329 58330 # Save the first 10 bytes of this path to the storage, so fixpath can work. 58331 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 58332 58333 else 58334 # We're on a unix platform. Hooray! :) 58335 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 58336 has_space=`$ECHO "$path" | $GREP " "` 58337 if test "x$has_space" != x; then 58338 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 58339 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 58340 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 58341 fi 58342 58343 # Use eval to expand a potential ~ 58344 eval path="$path" 58345 if test ! -f "$path" && test ! -d "$path"; then 58346 as_fn_error $? "The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 58347 fi 58348 58349 if test -d "$path"; then 58350 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$path"; $THEPWDCMD -L`" 58351 else 58352 dir="`$DIRNAME "$path"`" 58353 base="`$BASENAME "$path"`" 58354 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$dir"; $THEPWDCMD -L`/$base" 58355 fi 58356 fi 58357 fi 58358 58359 58360 # Only process if variable expands to non-empty 58361 58362 if test "x$POTENTIAL_FREETYPE_LIB_PATH" != x; then 58363 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 58364 58365 # Input might be given as Windows format, start by converting to 58366 # unix format. 58367 path="$POTENTIAL_FREETYPE_LIB_PATH" 58368 new_path=`$CYGPATH -u "$path"` 58369 58370 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 58371 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 58372 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 58373 # "foo.exe" is OK but "foo" is an error. 58374 # 58375 # This test is therefore slightly more accurate than "test -f" to check for file precense. 58376 # It is also a way to make sure we got the proper file name for the real test later on. 58377 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 58378 if test "x$test_shortpath" = x; then 58379 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 58380 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 58381 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_LIB_PATH" "$LINENO" 5 58382 fi 58383 58384 # Call helper function which possibly converts this using DOS-style short mode. 58385 # If so, the updated path is stored in $new_path. 58386 58387 input_path="$new_path" 58388 # Check if we need to convert this using DOS-style short mode. If the path 58389 # contains just simple characters, use it. Otherwise (spaces, weird characters), 58390 # take no chances and rewrite it. 58391 # Note: m4 eats our [], so we need to use [ and ] instead. 58392 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 58393 if test "x$has_forbidden_chars" != x; then 58394 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 58395 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 58396 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 58397 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 58398 # Going to short mode and back again did indeed matter. Since short mode is 58399 # case insensitive, let's make it lowercase to improve readability. 58400 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 58401 # Now convert it back to Unix-style (cygpath) 58402 input_path=`$CYGPATH -u "$shortmode_path"` 58403 new_path="$input_path" 58404 fi 58405 fi 58406 58407 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 58408 if test "x$test_cygdrive_prefix" = x; then 58409 # As a simple fix, exclude /usr/bin since it's not a real path. 58410 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 58411 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 58412 # a path prefixed by /cygdrive for fixpath to work. 58413 new_path="$CYGWIN_ROOT_PATH$input_path" 58414 fi 58415 fi 58416 58417 58418 if test "x$path" != "x$new_path"; then 58419 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 58420 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 58421 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 58422 fi 58423 58424 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 58425 58426 path="$POTENTIAL_FREETYPE_LIB_PATH" 58427 has_colon=`$ECHO $path | $GREP ^.:` 58428 new_path="$path" 58429 if test "x$has_colon" = x; then 58430 # Not in mixed or Windows style, start by that. 58431 new_path=`cmd //c echo $path` 58432 fi 58433 58434 58435 input_path="$new_path" 58436 # Check if we need to convert this using DOS-style short mode. If the path 58437 # contains just simple characters, use it. Otherwise (spaces, weird characters), 58438 # take no chances and rewrite it. 58439 # Note: m4 eats our [], so we need to use [ and ] instead. 58440 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 58441 if test "x$has_forbidden_chars" != x; then 58442 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 58443 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 58444 fi 58445 58446 58447 windows_path="$new_path" 58448 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 58449 unix_path=`$CYGPATH -u "$windows_path"` 58450 new_path="$unix_path" 58451 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 58452 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 58453 new_path="$unix_path" 58454 fi 58455 58456 if test "x$path" != "x$new_path"; then 58457 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 58458 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 58459 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 58460 fi 58461 58462 # Save the first 10 bytes of this path to the storage, so fixpath can work. 58463 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 58464 58465 else 58466 # We're on a unix platform. Hooray! :) 58467 path="$POTENTIAL_FREETYPE_LIB_PATH" 58468 has_space=`$ECHO "$path" | $GREP " "` 58469 if test "x$has_space" != x; then 58470 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 58471 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 58472 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 58473 fi 58474 58475 # Use eval to expand a potential ~ 58476 eval path="$path" 58477 if test ! -f "$path" && test ! -d "$path"; then 58478 as_fn_error $? "The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 58479 fi 58480 58481 if test -d "$path"; then 58482 POTENTIAL_FREETYPE_LIB_PATH="`cd "$path"; $THEPWDCMD -L`" 58483 else 58484 dir="`$DIRNAME "$path"`" 58485 base="`$BASENAME "$path"`" 58486 POTENTIAL_FREETYPE_LIB_PATH="`cd "$dir"; $THEPWDCMD -L`/$base" 58487 fi 58488 fi 58489 fi 58490 58491 58492 FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH" 58493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype includes" >&5 58494 $as_echo_n "checking for freetype includes... " >&6; } 58495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_INCLUDE_PATH" >&5 58496 $as_echo "$FREETYPE_INCLUDE_PATH" >&6; } 58497 FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH" 58498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype libraries" >&5 58499 $as_echo_n "checking for freetype libraries... " >&6; } 58500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_LIB_PATH" >&5 58501 $as_echo "$FREETYPE_LIB_PATH" >&6; } 58502 fi 58503 58504 fi 58505 if test "x$FOUND_FREETYPE" != xyes; then 58506 FREETYPE_BASE_DIR="$HOME/freetype" 58507 58508 windows_path="$FREETYPE_BASE_DIR" 58509 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 58510 unix_path=`$CYGPATH -u "$windows_path"` 58511 FREETYPE_BASE_DIR="$unix_path" 58512 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 58513 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 58514 FREETYPE_BASE_DIR="$unix_path" 58515 fi 58516 58517 if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then 58518 58519 POTENTIAL_FREETYPE_INCLUDE_PATH="$FREETYPE_BASE_DIR/include" 58520 POTENTIAL_FREETYPE_LIB_PATH="$FREETYPE_BASE_DIR/lib64" 58521 METHOD="well-known location" 58522 58523 # Let's start with an optimistic view of the world :-) 58524 FOUND_FREETYPE=yes 58525 58526 # First look for the canonical freetype main include file ft2build.h. 58527 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 58528 # Oh no! Let's try in the freetype2 directory. This is needed at least at Mac OS X Yosemite. 58529 POTENTIAL_FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH/freetype2" 58530 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 58531 # Fail. 58532 FOUND_FREETYPE=no 58533 fi 58534 fi 58535 58536 if test "x$FOUND_FREETYPE" = xyes; then 58537 # Include file found, let's continue the sanity check. 58538 { $as_echo "$as_me:${as_lineno-$LINENO}: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&5 58539 $as_echo "$as_me: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&6;} 58540 58541 # Reset to default value 58542 FREETYPE_BASE_NAME=freetype 58543 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 58544 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME"; then 58545 if test "x$OPENJDK_TARGET_OS" = xmacosx \ 58546 && test -s "$POTENTIAL_FREETYPE_LIB_PATH/${LIBRARY_PREFIX}freetype.6${SHARED_LIBRARY_SUFFIX}"; then 58547 # On Mac OS X Yosemite, the symlink from libfreetype.dylib to libfreetype.6.dylib disappeared. Check 58548 # for the .6 version explicitly. 58549 FREETYPE_BASE_NAME=freetype.6 58550 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 58551 { $as_echo "$as_me:${as_lineno-$LINENO}: Compensating for missing symlink by using version 6 explicitly" >&5 58552 $as_echo "$as_me: Compensating for missing symlink by using version 6 explicitly" >&6;} 58553 else 58554 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&5 58555 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&6;} 58556 FOUND_FREETYPE=no 58557 fi 58558 else 58559 if test "x$OPENJDK_TARGET_OS" = xwindows; then 58560 # On Windows, we will need both .lib and .dll file. 58561 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib"; then 58562 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&5 58563 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&6;} 58564 FOUND_FREETYPE=no 58565 fi 58566 elif test "x$OPENJDK_TARGET_OS" = xsolaris \ 58567 && test -s "$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR/$FREETYPE_LIB_NAME"; then 58568 # Found lib in isa dir, use that instead. 58569 POTENTIAL_FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR" 58570 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&5 58571 $as_echo "$as_me: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&6;} 58572 fi 58573 fi 58574 fi 58575 58576 if test "x$FOUND_FREETYPE" = xyes; then 58577 58578 # Only process if variable expands to non-empty 58579 58580 if test "x$POTENTIAL_FREETYPE_INCLUDE_PATH" != x; then 58581 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 58582 58583 # Input might be given as Windows format, start by converting to 58584 # unix format. 58585 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 58586 new_path=`$CYGPATH -u "$path"` 58587 58588 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 58589 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 58590 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 58591 # "foo.exe" is OK but "foo" is an error. 58592 # 58593 # This test is therefore slightly more accurate than "test -f" to check for file precense. 58594 # It is also a way to make sure we got the proper file name for the real test later on. 58595 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 58596 if test "x$test_shortpath" = x; then 58597 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 58598 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 58599 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_INCLUDE_PATH" "$LINENO" 5 58600 fi 58601 58602 # Call helper function which possibly converts this using DOS-style short mode. 58603 # If so, the updated path is stored in $new_path. 58604 58605 input_path="$new_path" 58606 # Check if we need to convert this using DOS-style short mode. If the path 58607 # contains just simple characters, use it. Otherwise (spaces, weird characters), 58608 # take no chances and rewrite it. 58609 # Note: m4 eats our [], so we need to use [ and ] instead. 58610 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 58611 if test "x$has_forbidden_chars" != x; then 58612 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 58613 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 58614 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 58615 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 58616 # Going to short mode and back again did indeed matter. Since short mode is 58617 # case insensitive, let's make it lowercase to improve readability. 58618 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 58619 # Now convert it back to Unix-style (cygpath) 58620 input_path=`$CYGPATH -u "$shortmode_path"` 58621 new_path="$input_path" 58622 fi 58623 fi 58624 58625 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 58626 if test "x$test_cygdrive_prefix" = x; then 58627 # As a simple fix, exclude /usr/bin since it's not a real path. 58628 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 58629 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 58630 # a path prefixed by /cygdrive for fixpath to work. 58631 new_path="$CYGWIN_ROOT_PATH$input_path" 58632 fi 58633 fi 58634 58635 58636 if test "x$path" != "x$new_path"; then 58637 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 58638 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 58639 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 58640 fi 58641 58642 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 58643 58644 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 58645 has_colon=`$ECHO $path | $GREP ^.:` 58646 new_path="$path" 58647 if test "x$has_colon" = x; then 58648 # Not in mixed or Windows style, start by that. 58649 new_path=`cmd //c echo $path` 58650 fi 58651 58652 58653 input_path="$new_path" 58654 # Check if we need to convert this using DOS-style short mode. If the path 58655 # contains just simple characters, use it. Otherwise (spaces, weird characters), 58656 # take no chances and rewrite it. 58657 # Note: m4 eats our [], so we need to use [ and ] instead. 58658 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 58659 if test "x$has_forbidden_chars" != x; then 58660 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 58661 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 58662 fi 58663 58664 58665 windows_path="$new_path" 58666 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 58667 unix_path=`$CYGPATH -u "$windows_path"` 58668 new_path="$unix_path" 58669 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 58670 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 58671 new_path="$unix_path" 58672 fi 58673 58674 if test "x$path" != "x$new_path"; then 58675 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 58676 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 58677 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 58678 fi 58679 58680 # Save the first 10 bytes of this path to the storage, so fixpath can work. 58681 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 58682 58683 else 58684 # We're on a unix platform. Hooray! :) 58685 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 58686 has_space=`$ECHO "$path" | $GREP " "` 58687 if test "x$has_space" != x; then 58688 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 58689 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 58690 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 58691 fi 58692 58693 # Use eval to expand a potential ~ 58694 eval path="$path" 58695 if test ! -f "$path" && test ! -d "$path"; then 58696 as_fn_error $? "The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 58697 fi 58698 58699 if test -d "$path"; then 58700 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$path"; $THEPWDCMD -L`" 58701 else 58702 dir="`$DIRNAME "$path"`" 58703 base="`$BASENAME "$path"`" 58704 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$dir"; $THEPWDCMD -L`/$base" 58705 fi 58706 fi 58707 fi 58708 58709 58710 # Only process if variable expands to non-empty 58711 58712 if test "x$POTENTIAL_FREETYPE_LIB_PATH" != x; then 58713 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 58714 58715 # Input might be given as Windows format, start by converting to 58716 # unix format. 58717 path="$POTENTIAL_FREETYPE_LIB_PATH" 58718 new_path=`$CYGPATH -u "$path"` 58719 58720 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 58721 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 58722 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 58723 # "foo.exe" is OK but "foo" is an error. 58724 # 58725 # This test is therefore slightly more accurate than "test -f" to check for file precense. 58726 # It is also a way to make sure we got the proper file name for the real test later on. 58727 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 58728 if test "x$test_shortpath" = x; then 58729 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 58730 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 58731 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_LIB_PATH" "$LINENO" 5 58732 fi 58733 58734 # Call helper function which possibly converts this using DOS-style short mode. 58735 # If so, the updated path is stored in $new_path. 58736 58737 input_path="$new_path" 58738 # Check if we need to convert this using DOS-style short mode. If the path 58739 # contains just simple characters, use it. Otherwise (spaces, weird characters), 58740 # take no chances and rewrite it. 58741 # Note: m4 eats our [], so we need to use [ and ] instead. 58742 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 58743 if test "x$has_forbidden_chars" != x; then 58744 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 58745 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 58746 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 58747 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 58748 # Going to short mode and back again did indeed matter. Since short mode is 58749 # case insensitive, let's make it lowercase to improve readability. 58750 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 58751 # Now convert it back to Unix-style (cygpath) 58752 input_path=`$CYGPATH -u "$shortmode_path"` 58753 new_path="$input_path" 58754 fi 58755 fi 58756 58757 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 58758 if test "x$test_cygdrive_prefix" = x; then 58759 # As a simple fix, exclude /usr/bin since it's not a real path. 58760 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 58761 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 58762 # a path prefixed by /cygdrive for fixpath to work. 58763 new_path="$CYGWIN_ROOT_PATH$input_path" 58764 fi 58765 fi 58766 58767 58768 if test "x$path" != "x$new_path"; then 58769 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 58770 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 58771 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 58772 fi 58773 58774 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 58775 58776 path="$POTENTIAL_FREETYPE_LIB_PATH" 58777 has_colon=`$ECHO $path | $GREP ^.:` 58778 new_path="$path" 58779 if test "x$has_colon" = x; then 58780 # Not in mixed or Windows style, start by that. 58781 new_path=`cmd //c echo $path` 58782 fi 58783 58784 58785 input_path="$new_path" 58786 # Check if we need to convert this using DOS-style short mode. If the path 58787 # contains just simple characters, use it. Otherwise (spaces, weird characters), 58788 # take no chances and rewrite it. 58789 # Note: m4 eats our [], so we need to use [ and ] instead. 58790 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 58791 if test "x$has_forbidden_chars" != x; then 58792 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 58793 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 58794 fi 58795 58796 58797 windows_path="$new_path" 58798 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 58799 unix_path=`$CYGPATH -u "$windows_path"` 58800 new_path="$unix_path" 58801 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 58802 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 58803 new_path="$unix_path" 58804 fi 58805 58806 if test "x$path" != "x$new_path"; then 58807 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 58808 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 58809 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 58810 fi 58811 58812 # Save the first 10 bytes of this path to the storage, so fixpath can work. 58813 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 58814 58815 else 58816 # We're on a unix platform. Hooray! :) 58817 path="$POTENTIAL_FREETYPE_LIB_PATH" 58818 has_space=`$ECHO "$path" | $GREP " "` 58819 if test "x$has_space" != x; then 58820 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 58821 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 58822 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 58823 fi 58824 58825 # Use eval to expand a potential ~ 58826 eval path="$path" 58827 if test ! -f "$path" && test ! -d "$path"; then 58828 as_fn_error $? "The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 58829 fi 58830 58831 if test -d "$path"; then 58832 POTENTIAL_FREETYPE_LIB_PATH="`cd "$path"; $THEPWDCMD -L`" 58833 else 58834 dir="`$DIRNAME "$path"`" 58835 base="`$BASENAME "$path"`" 58836 POTENTIAL_FREETYPE_LIB_PATH="`cd "$dir"; $THEPWDCMD -L`/$base" 58837 fi 58838 fi 58839 fi 58840 58841 58842 FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH" 58843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype includes" >&5 58844 $as_echo_n "checking for freetype includes... " >&6; } 58845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_INCLUDE_PATH" >&5 58846 $as_echo "$FREETYPE_INCLUDE_PATH" >&6; } 58847 FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH" 58848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype libraries" >&5 58849 $as_echo_n "checking for freetype libraries... " >&6; } 58850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_LIB_PATH" >&5 58851 $as_echo "$FREETYPE_LIB_PATH" >&6; } 58852 fi 58853 58854 else 58855 58856 POTENTIAL_FREETYPE_INCLUDE_PATH="$FREETYPE_BASE_DIR/include" 58857 POTENTIAL_FREETYPE_LIB_PATH="$FREETYPE_BASE_DIR/lib32" 58858 METHOD="well-known location" 58859 58860 # Let's start with an optimistic view of the world :-) 58861 FOUND_FREETYPE=yes 58862 58863 # First look for the canonical freetype main include file ft2build.h. 58864 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 58865 # Oh no! Let's try in the freetype2 directory. This is needed at least at Mac OS X Yosemite. 58866 POTENTIAL_FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH/freetype2" 58867 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 58868 # Fail. 58869 FOUND_FREETYPE=no 58870 fi 58871 fi 58872 58873 if test "x$FOUND_FREETYPE" = xyes; then 58874 # Include file found, let's continue the sanity check. 58875 { $as_echo "$as_me:${as_lineno-$LINENO}: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&5 58876 $as_echo "$as_me: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&6;} 58877 58878 # Reset to default value 58879 FREETYPE_BASE_NAME=freetype 58880 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 58881 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME"; then 58882 if test "x$OPENJDK_TARGET_OS" = xmacosx \ 58883 && test -s "$POTENTIAL_FREETYPE_LIB_PATH/${LIBRARY_PREFIX}freetype.6${SHARED_LIBRARY_SUFFIX}"; then 58884 # On Mac OS X Yosemite, the symlink from libfreetype.dylib to libfreetype.6.dylib disappeared. Check 58885 # for the .6 version explicitly. 58886 FREETYPE_BASE_NAME=freetype.6 58887 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 58888 { $as_echo "$as_me:${as_lineno-$LINENO}: Compensating for missing symlink by using version 6 explicitly" >&5 58889 $as_echo "$as_me: Compensating for missing symlink by using version 6 explicitly" >&6;} 58890 else 58891 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&5 58892 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&6;} 58893 FOUND_FREETYPE=no 58894 fi 58895 else 58896 if test "x$OPENJDK_TARGET_OS" = xwindows; then 58897 # On Windows, we will need both .lib and .dll file. 58898 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib"; then 58899 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&5 58900 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&6;} 58901 FOUND_FREETYPE=no 58902 fi 58903 elif test "x$OPENJDK_TARGET_OS" = xsolaris \ 58904 && test -s "$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR/$FREETYPE_LIB_NAME"; then 58905 # Found lib in isa dir, use that instead. 58906 POTENTIAL_FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR" 58907 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&5 58908 $as_echo "$as_me: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&6;} 58909 fi 58910 fi 58911 fi 58912 58913 if test "x$FOUND_FREETYPE" = xyes; then 58914 58915 # Only process if variable expands to non-empty 58916 58917 if test "x$POTENTIAL_FREETYPE_INCLUDE_PATH" != x; then 58918 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 58919 58920 # Input might be given as Windows format, start by converting to 58921 # unix format. 58922 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 58923 new_path=`$CYGPATH -u "$path"` 58924 58925 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 58926 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 58927 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 58928 # "foo.exe" is OK but "foo" is an error. 58929 # 58930 # This test is therefore slightly more accurate than "test -f" to check for file precense. 58931 # It is also a way to make sure we got the proper file name for the real test later on. 58932 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 58933 if test "x$test_shortpath" = x; then 58934 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 58935 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 58936 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_INCLUDE_PATH" "$LINENO" 5 58937 fi 58938 58939 # Call helper function which possibly converts this using DOS-style short mode. 58940 # If so, the updated path is stored in $new_path. 58941 58942 input_path="$new_path" 58943 # Check if we need to convert this using DOS-style short mode. If the path 58944 # contains just simple characters, use it. Otherwise (spaces, weird characters), 58945 # take no chances and rewrite it. 58946 # Note: m4 eats our [], so we need to use [ and ] instead. 58947 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 58948 if test "x$has_forbidden_chars" != x; then 58949 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 58950 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 58951 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 58952 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 58953 # Going to short mode and back again did indeed matter. Since short mode is 58954 # case insensitive, let's make it lowercase to improve readability. 58955 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 58956 # Now convert it back to Unix-style (cygpath) 58957 input_path=`$CYGPATH -u "$shortmode_path"` 58958 new_path="$input_path" 58959 fi 58960 fi 58961 58962 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 58963 if test "x$test_cygdrive_prefix" = x; then 58964 # As a simple fix, exclude /usr/bin since it's not a real path. 58965 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 58966 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 58967 # a path prefixed by /cygdrive for fixpath to work. 58968 new_path="$CYGWIN_ROOT_PATH$input_path" 58969 fi 58970 fi 58971 58972 58973 if test "x$path" != "x$new_path"; then 58974 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 58975 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 58976 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 58977 fi 58978 58979 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 58980 58981 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 58982 has_colon=`$ECHO $path | $GREP ^.:` 58983 new_path="$path" 58984 if test "x$has_colon" = x; then 58985 # Not in mixed or Windows style, start by that. 58986 new_path=`cmd //c echo $path` 58987 fi 58988 58989 58990 input_path="$new_path" 58991 # Check if we need to convert this using DOS-style short mode. If the path 58992 # contains just simple characters, use it. Otherwise (spaces, weird characters), 58993 # take no chances and rewrite it. 58994 # Note: m4 eats our [], so we need to use [ and ] instead. 58995 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 58996 if test "x$has_forbidden_chars" != x; then 58997 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 58998 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 58999 fi 59000 59001 59002 windows_path="$new_path" 59003 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 59004 unix_path=`$CYGPATH -u "$windows_path"` 59005 new_path="$unix_path" 59006 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 59007 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 59008 new_path="$unix_path" 59009 fi 59010 59011 if test "x$path" != "x$new_path"; then 59012 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 59013 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 59014 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 59015 fi 59016 59017 # Save the first 10 bytes of this path to the storage, so fixpath can work. 59018 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 59019 59020 else 59021 # We're on a unix platform. Hooray! :) 59022 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 59023 has_space=`$ECHO "$path" | $GREP " "` 59024 if test "x$has_space" != x; then 59025 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 59026 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 59027 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 59028 fi 59029 59030 # Use eval to expand a potential ~ 59031 eval path="$path" 59032 if test ! -f "$path" && test ! -d "$path"; then 59033 as_fn_error $? "The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 59034 fi 59035 59036 if test -d "$path"; then 59037 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$path"; $THEPWDCMD -L`" 59038 else 59039 dir="`$DIRNAME "$path"`" 59040 base="`$BASENAME "$path"`" 59041 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$dir"; $THEPWDCMD -L`/$base" 59042 fi 59043 fi 59044 fi 59045 59046 59047 # Only process if variable expands to non-empty 59048 59049 if test "x$POTENTIAL_FREETYPE_LIB_PATH" != x; then 59050 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 59051 59052 # Input might be given as Windows format, start by converting to 59053 # unix format. 59054 path="$POTENTIAL_FREETYPE_LIB_PATH" 59055 new_path=`$CYGPATH -u "$path"` 59056 59057 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 59058 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 59059 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 59060 # "foo.exe" is OK but "foo" is an error. 59061 # 59062 # This test is therefore slightly more accurate than "test -f" to check for file precense. 59063 # It is also a way to make sure we got the proper file name for the real test later on. 59064 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 59065 if test "x$test_shortpath" = x; then 59066 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 59067 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 59068 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_LIB_PATH" "$LINENO" 5 59069 fi 59070 59071 # Call helper function which possibly converts this using DOS-style short mode. 59072 # If so, the updated path is stored in $new_path. 59073 59074 input_path="$new_path" 59075 # Check if we need to convert this using DOS-style short mode. If the path 59076 # contains just simple characters, use it. Otherwise (spaces, weird characters), 59077 # take no chances and rewrite it. 59078 # Note: m4 eats our [], so we need to use [ and ] instead. 59079 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 59080 if test "x$has_forbidden_chars" != x; then 59081 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 59082 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 59083 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 59084 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 59085 # Going to short mode and back again did indeed matter. Since short mode is 59086 # case insensitive, let's make it lowercase to improve readability. 59087 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 59088 # Now convert it back to Unix-style (cygpath) 59089 input_path=`$CYGPATH -u "$shortmode_path"` 59090 new_path="$input_path" 59091 fi 59092 fi 59093 59094 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 59095 if test "x$test_cygdrive_prefix" = x; then 59096 # As a simple fix, exclude /usr/bin since it's not a real path. 59097 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 59098 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 59099 # a path prefixed by /cygdrive for fixpath to work. 59100 new_path="$CYGWIN_ROOT_PATH$input_path" 59101 fi 59102 fi 59103 59104 59105 if test "x$path" != "x$new_path"; then 59106 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 59107 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 59108 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 59109 fi 59110 59111 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 59112 59113 path="$POTENTIAL_FREETYPE_LIB_PATH" 59114 has_colon=`$ECHO $path | $GREP ^.:` 59115 new_path="$path" 59116 if test "x$has_colon" = x; then 59117 # Not in mixed or Windows style, start by that. 59118 new_path=`cmd //c echo $path` 59119 fi 59120 59121 59122 input_path="$new_path" 59123 # Check if we need to convert this using DOS-style short mode. If the path 59124 # contains just simple characters, use it. Otherwise (spaces, weird characters), 59125 # take no chances and rewrite it. 59126 # Note: m4 eats our [], so we need to use [ and ] instead. 59127 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 59128 if test "x$has_forbidden_chars" != x; then 59129 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 59130 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 59131 fi 59132 59133 59134 windows_path="$new_path" 59135 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 59136 unix_path=`$CYGPATH -u "$windows_path"` 59137 new_path="$unix_path" 59138 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 59139 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 59140 new_path="$unix_path" 59141 fi 59142 59143 if test "x$path" != "x$new_path"; then 59144 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 59145 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 59146 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 59147 fi 59148 59149 # Save the first 10 bytes of this path to the storage, so fixpath can work. 59150 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 59151 59152 else 59153 # We're on a unix platform. Hooray! :) 59154 path="$POTENTIAL_FREETYPE_LIB_PATH" 59155 has_space=`$ECHO "$path" | $GREP " "` 59156 if test "x$has_space" != x; then 59157 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 59158 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 59159 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 59160 fi 59161 59162 # Use eval to expand a potential ~ 59163 eval path="$path" 59164 if test ! -f "$path" && test ! -d "$path"; then 59165 as_fn_error $? "The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 59166 fi 59167 59168 if test -d "$path"; then 59169 POTENTIAL_FREETYPE_LIB_PATH="`cd "$path"; $THEPWDCMD -L`" 59170 else 59171 dir="`$DIRNAME "$path"`" 59172 base="`$BASENAME "$path"`" 59173 POTENTIAL_FREETYPE_LIB_PATH="`cd "$dir"; $THEPWDCMD -L`/$base" 59174 fi 59175 fi 59176 fi 59177 59178 59179 FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH" 59180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype includes" >&5 59181 $as_echo_n "checking for freetype includes... " >&6; } 59182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_INCLUDE_PATH" >&5 59183 $as_echo "$FREETYPE_INCLUDE_PATH" >&6; } 59184 FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH" 59185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype libraries" >&5 59186 $as_echo_n "checking for freetype libraries... " >&6; } 59187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_LIB_PATH" >&5 59188 $as_echo "$FREETYPE_LIB_PATH" >&6; } 59189 fi 59190 59191 fi 59192 if test "x$FOUND_FREETYPE" != xyes && test -d $FREETYPE_BASE_DIR \ 59193 && test -s "$FREETYPE_BASE_DIR/builds/windows/vc2010/freetype.vcxproj" && test "x$MSBUILD" != x; then 59194 # Source is available, as a last resort try to build freetype in default location 59195 59196 FREETYPE_SRC_PATH="$FREETYPE_BASE_DIR" 59197 BUILD_FREETYPE=yes 59198 59199 # Check if the freetype sources are acessible.. 59200 if ! test -d $FREETYPE_SRC_PATH; then 59201 { $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 59202 $as_echo "$as_me: WARNING: --with-freetype-src specified, but can not find path \"$FREETYPE_SRC_PATH\" - ignoring --with-freetype-src" >&2;} 59203 BUILD_FREETYPE=no 59204 fi 59205 # ..and contain a vc2010 project file 59206 vcxproj_path="$FREETYPE_SRC_PATH/builds/windows/vc2010/freetype.vcxproj" 59207 if test "x$BUILD_FREETYPE" = xyes && ! test -s $vcxproj_path; then 59208 { $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 59209 $as_echo "$as_me: WARNING: Can not find project file $vcxproj_path (you may try a newer freetype version) - ignoring --with-freetype-src" >&2;} 59210 BUILD_FREETYPE=no 59211 fi 59212 # Now check if configure found a version of 'msbuild.exe' 59213 if test "x$BUILD_FREETYPE" = xyes && test "x$MSBUILD" == x ; then 59214 { $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 59215 $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;} 59216 BUILD_FREETYPE=no 59217 fi 59218 59219 # Ready to go.. 59220 if test "x$BUILD_FREETYPE" = xyes; then 59221 # msbuild requires trailing slashes for output directories 59222 freetype_lib_path="$FREETYPE_SRC_PATH/lib$OPENJDK_TARGET_CPU_BITS/" 59223 freetype_lib_path_unix="$freetype_lib_path" 59224 freetype_obj_path="$FREETYPE_SRC_PATH/obj$OPENJDK_TARGET_CPU_BITS/" 59225 59226 unix_path="$vcxproj_path" 59227 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 59228 windows_path=`$CYGPATH -m "$unix_path"` 59229 vcxproj_path="$windows_path" 59230 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 59231 windows_path=`cmd //c echo $unix_path` 59232 vcxproj_path="$windows_path" 59233 fi 59234 59235 59236 unix_path="$freetype_lib_path" 59237 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 59238 windows_path=`$CYGPATH -m "$unix_path"` 59239 freetype_lib_path="$windows_path" 59240 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 59241 windows_path=`cmd //c echo $unix_path` 59242 freetype_lib_path="$windows_path" 59243 fi 59244 59245 59246 unix_path="$freetype_obj_path" 59247 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 59248 windows_path=`$CYGPATH -m "$unix_path"` 59249 freetype_obj_path="$windows_path" 59250 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 59251 windows_path=`cmd //c echo $unix_path` 59252 freetype_obj_path="$windows_path" 59253 fi 59254 59255 if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then 59256 freetype_platform=x64 59257 else 59258 freetype_platform=win32 59259 fi 59260 59261 # The original freetype project file is for VS 2010 (i.e. 'v100'), 59262 # so we have to adapt the toolset if building with any other toolsed (i.e. SDK). 59263 # Currently 'PLATFORM_TOOLSET' is set in 'TOOLCHAIN_CHECK_POSSIBLE_VISUAL_STUDIO_ROOT'/ 59264 # 'TOOLCHAIN_CHECK_POSSIBLE_WIN_SDK_ROOT' in toolchain_windows.m4 59265 { $as_echo "$as_me:${as_lineno-$LINENO}: Trying to compile freetype sources with PlatformToolset=$PLATFORM_TOOLSET to $freetype_lib_path_unix ..." >&5 59266 $as_echo "$as_me: Trying to compile freetype sources with PlatformToolset=$PLATFORM_TOOLSET to $freetype_lib_path_unix ..." >&6;} 59267 59268 # First we try to build the freetype.dll 59269 $ECHO -e "@echo off\n"\ 59270 "$MSBUILD $vcxproj_path "\ 59271 "/p:PlatformToolset=$PLATFORM_TOOLSET "\ 59272 "/p:Configuration=\"Release Multithreaded\" "\ 59273 "/p:Platform=$freetype_platform "\ 59274 "/p:ConfigurationType=DynamicLibrary "\ 59275 "/p:TargetName=freetype "\ 59276 "/p:OutDir=\"$freetype_lib_path\" "\ 59277 "/p:IntDir=\"$freetype_obj_path\" > freetype.log" > freetype.bat 59278 cmd /c freetype.bat 59279 59280 if test -s "$freetype_lib_path_unix/freetype.dll"; then 59281 # If that succeeds we also build freetype.lib 59282 $ECHO -e "@echo off\n"\ 59283 "$MSBUILD $vcxproj_path "\ 59284 "/p:PlatformToolset=$PLATFORM_TOOLSET "\ 59285 "/p:Configuration=\"Release Multithreaded\" "\ 59286 "/p:Platform=$freetype_platform "\ 59287 "/p:ConfigurationType=StaticLibrary "\ 59288 "/p:TargetName=freetype "\ 59289 "/p:OutDir=\"$freetype_lib_path\" "\ 59290 "/p:IntDir=\"$freetype_obj_path\" >> freetype.log" > freetype.bat 59291 cmd /c freetype.bat 59292 59293 if test -s "$freetype_lib_path_unix/freetype.lib"; then 59294 # Once we build both, lib and dll, set freetype lib and include path appropriately 59295 POTENTIAL_FREETYPE_INCLUDE_PATH="$FREETYPE_SRC_PATH/include" 59296 POTENTIAL_FREETYPE_LIB_PATH="$freetype_lib_path_unix" 59297 { $as_echo "$as_me:${as_lineno-$LINENO}: Compiling freetype sources succeeded! (see freetype.log for build results)" >&5 59298 $as_echo "$as_me: Compiling freetype sources succeeded! (see freetype.log for build results)" >&6;} 59299 else 59300 BUILD_FREETYPE=no 59301 fi 59302 else 59303 BUILD_FREETYPE=no 59304 fi 59305 fi 59306 59307 if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then 59308 59309 POTENTIAL_FREETYPE_INCLUDE_PATH="$FREETYPE_BASE_DIR/include" 59310 POTENTIAL_FREETYPE_LIB_PATH="$FREETYPE_BASE_DIR/lib64" 59311 METHOD="well-known location" 59312 59313 # Let's start with an optimistic view of the world :-) 59314 FOUND_FREETYPE=yes 59315 59316 # First look for the canonical freetype main include file ft2build.h. 59317 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 59318 # Oh no! Let's try in the freetype2 directory. This is needed at least at Mac OS X Yosemite. 59319 POTENTIAL_FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH/freetype2" 59320 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 59321 # Fail. 59322 FOUND_FREETYPE=no 59323 fi 59324 fi 59325 59326 if test "x$FOUND_FREETYPE" = xyes; then 59327 # Include file found, let's continue the sanity check. 59328 { $as_echo "$as_me:${as_lineno-$LINENO}: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&5 59329 $as_echo "$as_me: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&6;} 59330 59331 # Reset to default value 59332 FREETYPE_BASE_NAME=freetype 59333 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 59334 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME"; then 59335 if test "x$OPENJDK_TARGET_OS" = xmacosx \ 59336 && test -s "$POTENTIAL_FREETYPE_LIB_PATH/${LIBRARY_PREFIX}freetype.6${SHARED_LIBRARY_SUFFIX}"; then 59337 # On Mac OS X Yosemite, the symlink from libfreetype.dylib to libfreetype.6.dylib disappeared. Check 59338 # for the .6 version explicitly. 59339 FREETYPE_BASE_NAME=freetype.6 59340 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 59341 { $as_echo "$as_me:${as_lineno-$LINENO}: Compensating for missing symlink by using version 6 explicitly" >&5 59342 $as_echo "$as_me: Compensating for missing symlink by using version 6 explicitly" >&6;} 59343 else 59344 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&5 59345 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&6;} 59346 FOUND_FREETYPE=no 59347 fi 59348 else 59349 if test "x$OPENJDK_TARGET_OS" = xwindows; then 59350 # On Windows, we will need both .lib and .dll file. 59351 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib"; then 59352 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&5 59353 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&6;} 59354 FOUND_FREETYPE=no 59355 fi 59356 elif test "x$OPENJDK_TARGET_OS" = xsolaris \ 59357 && test -s "$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR/$FREETYPE_LIB_NAME"; then 59358 # Found lib in isa dir, use that instead. 59359 POTENTIAL_FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR" 59360 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&5 59361 $as_echo "$as_me: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&6;} 59362 fi 59363 fi 59364 fi 59365 59366 if test "x$FOUND_FREETYPE" = xyes; then 59367 59368 # Only process if variable expands to non-empty 59369 59370 if test "x$POTENTIAL_FREETYPE_INCLUDE_PATH" != x; then 59371 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 59372 59373 # Input might be given as Windows format, start by converting to 59374 # unix format. 59375 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 59376 new_path=`$CYGPATH -u "$path"` 59377 59378 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 59379 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 59380 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 59381 # "foo.exe" is OK but "foo" is an error. 59382 # 59383 # This test is therefore slightly more accurate than "test -f" to check for file precense. 59384 # It is also a way to make sure we got the proper file name for the real test later on. 59385 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 59386 if test "x$test_shortpath" = x; then 59387 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 59388 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 59389 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_INCLUDE_PATH" "$LINENO" 5 59390 fi 59391 59392 # Call helper function which possibly converts this using DOS-style short mode. 59393 # If so, the updated path is stored in $new_path. 59394 59395 input_path="$new_path" 59396 # Check if we need to convert this using DOS-style short mode. If the path 59397 # contains just simple characters, use it. Otherwise (spaces, weird characters), 59398 # take no chances and rewrite it. 59399 # Note: m4 eats our [], so we need to use [ and ] instead. 59400 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 59401 if test "x$has_forbidden_chars" != x; then 59402 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 59403 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 59404 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 59405 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 59406 # Going to short mode and back again did indeed matter. Since short mode is 59407 # case insensitive, let's make it lowercase to improve readability. 59408 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 59409 # Now convert it back to Unix-style (cygpath) 59410 input_path=`$CYGPATH -u "$shortmode_path"` 59411 new_path="$input_path" 59412 fi 59413 fi 59414 59415 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 59416 if test "x$test_cygdrive_prefix" = x; then 59417 # As a simple fix, exclude /usr/bin since it's not a real path. 59418 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 59419 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 59420 # a path prefixed by /cygdrive for fixpath to work. 59421 new_path="$CYGWIN_ROOT_PATH$input_path" 59422 fi 59423 fi 59424 59425 59426 if test "x$path" != "x$new_path"; then 59427 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 59428 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 59429 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 59430 fi 59431 59432 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 59433 59434 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 59435 has_colon=`$ECHO $path | $GREP ^.:` 59436 new_path="$path" 59437 if test "x$has_colon" = x; then 59438 # Not in mixed or Windows style, start by that. 59439 new_path=`cmd //c echo $path` 59440 fi 59441 59442 59443 input_path="$new_path" 59444 # Check if we need to convert this using DOS-style short mode. If the path 59445 # contains just simple characters, use it. Otherwise (spaces, weird characters), 59446 # take no chances and rewrite it. 59447 # Note: m4 eats our [], so we need to use [ and ] instead. 59448 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 59449 if test "x$has_forbidden_chars" != x; then 59450 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 59451 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 59452 fi 59453 59454 59455 windows_path="$new_path" 59456 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 59457 unix_path=`$CYGPATH -u "$windows_path"` 59458 new_path="$unix_path" 59459 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 59460 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 59461 new_path="$unix_path" 59462 fi 59463 59464 if test "x$path" != "x$new_path"; then 59465 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 59466 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 59467 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 59468 fi 59469 59470 # Save the first 10 bytes of this path to the storage, so fixpath can work. 59471 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 59472 59473 else 59474 # We're on a unix platform. Hooray! :) 59475 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 59476 has_space=`$ECHO "$path" | $GREP " "` 59477 if test "x$has_space" != x; then 59478 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 59479 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 59480 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 59481 fi 59482 59483 # Use eval to expand a potential ~ 59484 eval path="$path" 59485 if test ! -f "$path" && test ! -d "$path"; then 59486 as_fn_error $? "The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 59487 fi 59488 59489 if test -d "$path"; then 59490 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$path"; $THEPWDCMD -L`" 59491 else 59492 dir="`$DIRNAME "$path"`" 59493 base="`$BASENAME "$path"`" 59494 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$dir"; $THEPWDCMD -L`/$base" 59495 fi 59496 fi 59497 fi 59498 59499 59500 # Only process if variable expands to non-empty 59501 59502 if test "x$POTENTIAL_FREETYPE_LIB_PATH" != x; then 59503 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 59504 59505 # Input might be given as Windows format, start by converting to 59506 # unix format. 59507 path="$POTENTIAL_FREETYPE_LIB_PATH" 59508 new_path=`$CYGPATH -u "$path"` 59509 59510 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 59511 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 59512 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 59513 # "foo.exe" is OK but "foo" is an error. 59514 # 59515 # This test is therefore slightly more accurate than "test -f" to check for file precense. 59516 # It is also a way to make sure we got the proper file name for the real test later on. 59517 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 59518 if test "x$test_shortpath" = x; then 59519 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 59520 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 59521 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_LIB_PATH" "$LINENO" 5 59522 fi 59523 59524 # Call helper function which possibly converts this using DOS-style short mode. 59525 # If so, the updated path is stored in $new_path. 59526 59527 input_path="$new_path" 59528 # Check if we need to convert this using DOS-style short mode. If the path 59529 # contains just simple characters, use it. Otherwise (spaces, weird characters), 59530 # take no chances and rewrite it. 59531 # Note: m4 eats our [], so we need to use [ and ] instead. 59532 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 59533 if test "x$has_forbidden_chars" != x; then 59534 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 59535 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 59536 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 59537 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 59538 # Going to short mode and back again did indeed matter. Since short mode is 59539 # case insensitive, let's make it lowercase to improve readability. 59540 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 59541 # Now convert it back to Unix-style (cygpath) 59542 input_path=`$CYGPATH -u "$shortmode_path"` 59543 new_path="$input_path" 59544 fi 59545 fi 59546 59547 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 59548 if test "x$test_cygdrive_prefix" = x; then 59549 # As a simple fix, exclude /usr/bin since it's not a real path. 59550 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 59551 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 59552 # a path prefixed by /cygdrive for fixpath to work. 59553 new_path="$CYGWIN_ROOT_PATH$input_path" 59554 fi 59555 fi 59556 59557 59558 if test "x$path" != "x$new_path"; then 59559 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 59560 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 59561 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 59562 fi 59563 59564 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 59565 59566 path="$POTENTIAL_FREETYPE_LIB_PATH" 59567 has_colon=`$ECHO $path | $GREP ^.:` 59568 new_path="$path" 59569 if test "x$has_colon" = x; then 59570 # Not in mixed or Windows style, start by that. 59571 new_path=`cmd //c echo $path` 59572 fi 59573 59574 59575 input_path="$new_path" 59576 # Check if we need to convert this using DOS-style short mode. If the path 59577 # contains just simple characters, use it. Otherwise (spaces, weird characters), 59578 # take no chances and rewrite it. 59579 # Note: m4 eats our [], so we need to use [ and ] instead. 59580 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 59581 if test "x$has_forbidden_chars" != x; then 59582 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 59583 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 59584 fi 59585 59586 59587 windows_path="$new_path" 59588 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 59589 unix_path=`$CYGPATH -u "$windows_path"` 59590 new_path="$unix_path" 59591 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 59592 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 59593 new_path="$unix_path" 59594 fi 59595 59596 if test "x$path" != "x$new_path"; then 59597 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 59598 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 59599 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 59600 fi 59601 59602 # Save the first 10 bytes of this path to the storage, so fixpath can work. 59603 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 59604 59605 else 59606 # We're on a unix platform. Hooray! :) 59607 path="$POTENTIAL_FREETYPE_LIB_PATH" 59608 has_space=`$ECHO "$path" | $GREP " "` 59609 if test "x$has_space" != x; then 59610 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 59611 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 59612 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 59613 fi 59614 59615 # Use eval to expand a potential ~ 59616 eval path="$path" 59617 if test ! -f "$path" && test ! -d "$path"; then 59618 as_fn_error $? "The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 59619 fi 59620 59621 if test -d "$path"; then 59622 POTENTIAL_FREETYPE_LIB_PATH="`cd "$path"; $THEPWDCMD -L`" 59623 else 59624 dir="`$DIRNAME "$path"`" 59625 base="`$BASENAME "$path"`" 59626 POTENTIAL_FREETYPE_LIB_PATH="`cd "$dir"; $THEPWDCMD -L`/$base" 59627 fi 59628 fi 59629 fi 59630 59631 59632 FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH" 59633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype includes" >&5 59634 $as_echo_n "checking for freetype includes... " >&6; } 59635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_INCLUDE_PATH" >&5 59636 $as_echo "$FREETYPE_INCLUDE_PATH" >&6; } 59637 FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH" 59638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype libraries" >&5 59639 $as_echo_n "checking for freetype libraries... " >&6; } 59640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_LIB_PATH" >&5 59641 $as_echo "$FREETYPE_LIB_PATH" >&6; } 59642 fi 59643 59644 else 59645 59646 POTENTIAL_FREETYPE_INCLUDE_PATH="$FREETYPE_BASE_DIR/include" 59647 POTENTIAL_FREETYPE_LIB_PATH="$FREETYPE_BASE_DIR/lib32" 59648 METHOD="well-known location" 59649 59650 # Let's start with an optimistic view of the world :-) 59651 FOUND_FREETYPE=yes 59652 59653 # First look for the canonical freetype main include file ft2build.h. 59654 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 59655 # Oh no! Let's try in the freetype2 directory. This is needed at least at Mac OS X Yosemite. 59656 POTENTIAL_FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH/freetype2" 59657 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 59658 # Fail. 59659 FOUND_FREETYPE=no 59660 fi 59661 fi 59662 59663 if test "x$FOUND_FREETYPE" = xyes; then 59664 # Include file found, let's continue the sanity check. 59665 { $as_echo "$as_me:${as_lineno-$LINENO}: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&5 59666 $as_echo "$as_me: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&6;} 59667 59668 # Reset to default value 59669 FREETYPE_BASE_NAME=freetype 59670 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 59671 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME"; then 59672 if test "x$OPENJDK_TARGET_OS" = xmacosx \ 59673 && test -s "$POTENTIAL_FREETYPE_LIB_PATH/${LIBRARY_PREFIX}freetype.6${SHARED_LIBRARY_SUFFIX}"; then 59674 # On Mac OS X Yosemite, the symlink from libfreetype.dylib to libfreetype.6.dylib disappeared. Check 59675 # for the .6 version explicitly. 59676 FREETYPE_BASE_NAME=freetype.6 59677 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 59678 { $as_echo "$as_me:${as_lineno-$LINENO}: Compensating for missing symlink by using version 6 explicitly" >&5 59679 $as_echo "$as_me: Compensating for missing symlink by using version 6 explicitly" >&6;} 59680 else 59681 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&5 59682 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&6;} 59683 FOUND_FREETYPE=no 59684 fi 59685 else 59686 if test "x$OPENJDK_TARGET_OS" = xwindows; then 59687 # On Windows, we will need both .lib and .dll file. 59688 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib"; then 59689 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&5 59690 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&6;} 59691 FOUND_FREETYPE=no 59692 fi 59693 elif test "x$OPENJDK_TARGET_OS" = xsolaris \ 59694 && test -s "$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR/$FREETYPE_LIB_NAME"; then 59695 # Found lib in isa dir, use that instead. 59696 POTENTIAL_FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR" 59697 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&5 59698 $as_echo "$as_me: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&6;} 59699 fi 59700 fi 59701 fi 59702 59703 if test "x$FOUND_FREETYPE" = xyes; then 59704 59705 # Only process if variable expands to non-empty 59706 59707 if test "x$POTENTIAL_FREETYPE_INCLUDE_PATH" != x; then 59708 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 59709 59710 # Input might be given as Windows format, start by converting to 59711 # unix format. 59712 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 59713 new_path=`$CYGPATH -u "$path"` 59714 59715 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 59716 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 59717 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 59718 # "foo.exe" is OK but "foo" is an error. 59719 # 59720 # This test is therefore slightly more accurate than "test -f" to check for file precense. 59721 # It is also a way to make sure we got the proper file name for the real test later on. 59722 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 59723 if test "x$test_shortpath" = x; then 59724 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 59725 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 59726 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_INCLUDE_PATH" "$LINENO" 5 59727 fi 59728 59729 # Call helper function which possibly converts this using DOS-style short mode. 59730 # If so, the updated path is stored in $new_path. 59731 59732 input_path="$new_path" 59733 # Check if we need to convert this using DOS-style short mode. If the path 59734 # contains just simple characters, use it. Otherwise (spaces, weird characters), 59735 # take no chances and rewrite it. 59736 # Note: m4 eats our [], so we need to use [ and ] instead. 59737 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 59738 if test "x$has_forbidden_chars" != x; then 59739 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 59740 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 59741 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 59742 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 59743 # Going to short mode and back again did indeed matter. Since short mode is 59744 # case insensitive, let's make it lowercase to improve readability. 59745 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 59746 # Now convert it back to Unix-style (cygpath) 59747 input_path=`$CYGPATH -u "$shortmode_path"` 59748 new_path="$input_path" 59749 fi 59750 fi 59751 59752 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 59753 if test "x$test_cygdrive_prefix" = x; then 59754 # As a simple fix, exclude /usr/bin since it's not a real path. 59755 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 59756 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 59757 # a path prefixed by /cygdrive for fixpath to work. 59758 new_path="$CYGWIN_ROOT_PATH$input_path" 59759 fi 59760 fi 59761 59762 59763 if test "x$path" != "x$new_path"; then 59764 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 59765 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 59766 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 59767 fi 59768 59769 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 59770 59771 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 59772 has_colon=`$ECHO $path | $GREP ^.:` 59773 new_path="$path" 59774 if test "x$has_colon" = x; then 59775 # Not in mixed or Windows style, start by that. 59776 new_path=`cmd //c echo $path` 59777 fi 59778 59779 59780 input_path="$new_path" 59781 # Check if we need to convert this using DOS-style short mode. If the path 59782 # contains just simple characters, use it. Otherwise (spaces, weird characters), 59783 # take no chances and rewrite it. 59784 # Note: m4 eats our [], so we need to use [ and ] instead. 59785 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 59786 if test "x$has_forbidden_chars" != x; then 59787 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 59788 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 59789 fi 59790 59791 59792 windows_path="$new_path" 59793 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 59794 unix_path=`$CYGPATH -u "$windows_path"` 59795 new_path="$unix_path" 59796 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 59797 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 59798 new_path="$unix_path" 59799 fi 59800 59801 if test "x$path" != "x$new_path"; then 59802 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 59803 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 59804 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 59805 fi 59806 59807 # Save the first 10 bytes of this path to the storage, so fixpath can work. 59808 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 59809 59810 else 59811 # We're on a unix platform. Hooray! :) 59812 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 59813 has_space=`$ECHO "$path" | $GREP " "` 59814 if test "x$has_space" != x; then 59815 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 59816 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 59817 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 59818 fi 59819 59820 # Use eval to expand a potential ~ 59821 eval path="$path" 59822 if test ! -f "$path" && test ! -d "$path"; then 59823 as_fn_error $? "The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 59824 fi 59825 59826 if test -d "$path"; then 59827 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$path"; $THEPWDCMD -L`" 59828 else 59829 dir="`$DIRNAME "$path"`" 59830 base="`$BASENAME "$path"`" 59831 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$dir"; $THEPWDCMD -L`/$base" 59832 fi 59833 fi 59834 fi 59835 59836 59837 # Only process if variable expands to non-empty 59838 59839 if test "x$POTENTIAL_FREETYPE_LIB_PATH" != x; then 59840 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 59841 59842 # Input might be given as Windows format, start by converting to 59843 # unix format. 59844 path="$POTENTIAL_FREETYPE_LIB_PATH" 59845 new_path=`$CYGPATH -u "$path"` 59846 59847 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 59848 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 59849 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 59850 # "foo.exe" is OK but "foo" is an error. 59851 # 59852 # This test is therefore slightly more accurate than "test -f" to check for file precense. 59853 # It is also a way to make sure we got the proper file name for the real test later on. 59854 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 59855 if test "x$test_shortpath" = x; then 59856 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 59857 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 59858 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_LIB_PATH" "$LINENO" 5 59859 fi 59860 59861 # Call helper function which possibly converts this using DOS-style short mode. 59862 # If so, the updated path is stored in $new_path. 59863 59864 input_path="$new_path" 59865 # Check if we need to convert this using DOS-style short mode. If the path 59866 # contains just simple characters, use it. Otherwise (spaces, weird characters), 59867 # take no chances and rewrite it. 59868 # Note: m4 eats our [], so we need to use [ and ] instead. 59869 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 59870 if test "x$has_forbidden_chars" != x; then 59871 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 59872 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 59873 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 59874 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 59875 # Going to short mode and back again did indeed matter. Since short mode is 59876 # case insensitive, let's make it lowercase to improve readability. 59877 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 59878 # Now convert it back to Unix-style (cygpath) 59879 input_path=`$CYGPATH -u "$shortmode_path"` 59880 new_path="$input_path" 59881 fi 59882 fi 59883 59884 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 59885 if test "x$test_cygdrive_prefix" = x; then 59886 # As a simple fix, exclude /usr/bin since it's not a real path. 59887 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 59888 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 59889 # a path prefixed by /cygdrive for fixpath to work. 59890 new_path="$CYGWIN_ROOT_PATH$input_path" 59891 fi 59892 fi 59893 59894 59895 if test "x$path" != "x$new_path"; then 59896 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 59897 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 59898 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 59899 fi 59900 59901 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 59902 59903 path="$POTENTIAL_FREETYPE_LIB_PATH" 59904 has_colon=`$ECHO $path | $GREP ^.:` 59905 new_path="$path" 59906 if test "x$has_colon" = x; then 59907 # Not in mixed or Windows style, start by that. 59908 new_path=`cmd //c echo $path` 59909 fi 59910 59911 59912 input_path="$new_path" 59913 # Check if we need to convert this using DOS-style short mode. If the path 59914 # contains just simple characters, use it. Otherwise (spaces, weird characters), 59915 # take no chances and rewrite it. 59916 # Note: m4 eats our [], so we need to use [ and ] instead. 59917 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 59918 if test "x$has_forbidden_chars" != x; then 59919 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 59920 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 59921 fi 59922 59923 59924 windows_path="$new_path" 59925 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 59926 unix_path=`$CYGPATH -u "$windows_path"` 59927 new_path="$unix_path" 59928 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 59929 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 59930 new_path="$unix_path" 59931 fi 59932 59933 if test "x$path" != "x$new_path"; then 59934 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 59935 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 59936 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 59937 fi 59938 59939 # Save the first 10 bytes of this path to the storage, so fixpath can work. 59940 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 59941 59942 else 59943 # We're on a unix platform. Hooray! :) 59944 path="$POTENTIAL_FREETYPE_LIB_PATH" 59945 has_space=`$ECHO "$path" | $GREP " "` 59946 if test "x$has_space" != x; then 59947 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 59948 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 59949 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 59950 fi 59951 59952 # Use eval to expand a potential ~ 59953 eval path="$path" 59954 if test ! -f "$path" && test ! -d "$path"; then 59955 as_fn_error $? "The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 59956 fi 59957 59958 if test -d "$path"; then 59959 POTENTIAL_FREETYPE_LIB_PATH="`cd "$path"; $THEPWDCMD -L`" 59960 else 59961 dir="`$DIRNAME "$path"`" 59962 base="`$BASENAME "$path"`" 59963 POTENTIAL_FREETYPE_LIB_PATH="`cd "$dir"; $THEPWDCMD -L`/$base" 59964 fi 59965 fi 59966 fi 59967 59968 59969 FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH" 59970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype includes" >&5 59971 $as_echo_n "checking for freetype includes... " >&6; } 59972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_INCLUDE_PATH" >&5 59973 $as_echo "$FREETYPE_INCLUDE_PATH" >&6; } 59974 FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH" 59975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype libraries" >&5 59976 $as_echo_n "checking for freetype libraries... " >&6; } 59977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_LIB_PATH" >&5 59978 $as_echo "$FREETYPE_LIB_PATH" >&6; } 59979 fi 59980 59981 fi 59982 fi 59983 fi 59984 else 59985 FREETYPE_BASE_DIR="$SYSROOT/usr" 59986 59987 POTENTIAL_FREETYPE_INCLUDE_PATH="$FREETYPE_BASE_DIR/include" 59988 POTENTIAL_FREETYPE_LIB_PATH="$FREETYPE_BASE_DIR/lib" 59989 METHOD="well-known location" 59990 59991 # Let's start with an optimistic view of the world :-) 59992 FOUND_FREETYPE=yes 59993 59994 # First look for the canonical freetype main include file ft2build.h. 59995 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 59996 # Oh no! Let's try in the freetype2 directory. This is needed at least at Mac OS X Yosemite. 59997 POTENTIAL_FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH/freetype2" 59998 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 59999 # Fail. 60000 FOUND_FREETYPE=no 60001 fi 60002 fi 60003 60004 if test "x$FOUND_FREETYPE" = xyes; then 60005 # Include file found, let's continue the sanity check. 60006 { $as_echo "$as_me:${as_lineno-$LINENO}: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&5 60007 $as_echo "$as_me: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&6;} 60008 60009 # Reset to default value 60010 FREETYPE_BASE_NAME=freetype 60011 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 60012 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME"; then 60013 if test "x$OPENJDK_TARGET_OS" = xmacosx \ 60014 && test -s "$POTENTIAL_FREETYPE_LIB_PATH/${LIBRARY_PREFIX}freetype.6${SHARED_LIBRARY_SUFFIX}"; then 60015 # On Mac OS X Yosemite, the symlink from libfreetype.dylib to libfreetype.6.dylib disappeared. Check 60016 # for the .6 version explicitly. 60017 FREETYPE_BASE_NAME=freetype.6 60018 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 60019 { $as_echo "$as_me:${as_lineno-$LINENO}: Compensating for missing symlink by using version 6 explicitly" >&5 60020 $as_echo "$as_me: Compensating for missing symlink by using version 6 explicitly" >&6;} 60021 else 60022 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&5 60023 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&6;} 60024 FOUND_FREETYPE=no 60025 fi 60026 else 60027 if test "x$OPENJDK_TARGET_OS" = xwindows; then 60028 # On Windows, we will need both .lib and .dll file. 60029 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib"; then 60030 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&5 60031 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&6;} 60032 FOUND_FREETYPE=no 60033 fi 60034 elif test "x$OPENJDK_TARGET_OS" = xsolaris \ 60035 && test -s "$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR/$FREETYPE_LIB_NAME"; then 60036 # Found lib in isa dir, use that instead. 60037 POTENTIAL_FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR" 60038 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&5 60039 $as_echo "$as_me: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&6;} 60040 fi 60041 fi 60042 fi 60043 60044 if test "x$FOUND_FREETYPE" = xyes; then 60045 60046 # Only process if variable expands to non-empty 60047 60048 if test "x$POTENTIAL_FREETYPE_INCLUDE_PATH" != x; then 60049 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 60050 60051 # Input might be given as Windows format, start by converting to 60052 # unix format. 60053 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 60054 new_path=`$CYGPATH -u "$path"` 60055 60056 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 60057 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 60058 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 60059 # "foo.exe" is OK but "foo" is an error. 60060 # 60061 # This test is therefore slightly more accurate than "test -f" to check for file precense. 60062 # It is also a way to make sure we got the proper file name for the real test later on. 60063 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 60064 if test "x$test_shortpath" = x; then 60065 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 60066 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 60067 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_INCLUDE_PATH" "$LINENO" 5 60068 fi 60069 60070 # Call helper function which possibly converts this using DOS-style short mode. 60071 # If so, the updated path is stored in $new_path. 60072 60073 input_path="$new_path" 60074 # Check if we need to convert this using DOS-style short mode. If the path 60075 # contains just simple characters, use it. Otherwise (spaces, weird characters), 60076 # take no chances and rewrite it. 60077 # Note: m4 eats our [], so we need to use [ and ] instead. 60078 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 60079 if test "x$has_forbidden_chars" != x; then 60080 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 60081 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 60082 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 60083 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 60084 # Going to short mode and back again did indeed matter. Since short mode is 60085 # case insensitive, let's make it lowercase to improve readability. 60086 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 60087 # Now convert it back to Unix-style (cygpath) 60088 input_path=`$CYGPATH -u "$shortmode_path"` 60089 new_path="$input_path" 60090 fi 60091 fi 60092 60093 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 60094 if test "x$test_cygdrive_prefix" = x; then 60095 # As a simple fix, exclude /usr/bin since it's not a real path. 60096 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 60097 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 60098 # a path prefixed by /cygdrive for fixpath to work. 60099 new_path="$CYGWIN_ROOT_PATH$input_path" 60100 fi 60101 fi 60102 60103 60104 if test "x$path" != "x$new_path"; then 60105 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 60106 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 60107 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 60108 fi 60109 60110 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 60111 60112 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 60113 has_colon=`$ECHO $path | $GREP ^.:` 60114 new_path="$path" 60115 if test "x$has_colon" = x; then 60116 # Not in mixed or Windows style, start by that. 60117 new_path=`cmd //c echo $path` 60118 fi 60119 60120 60121 input_path="$new_path" 60122 # Check if we need to convert this using DOS-style short mode. If the path 60123 # contains just simple characters, use it. Otherwise (spaces, weird characters), 60124 # take no chances and rewrite it. 60125 # Note: m4 eats our [], so we need to use [ and ] instead. 60126 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 60127 if test "x$has_forbidden_chars" != x; then 60128 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 60129 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 60130 fi 60131 60132 60133 windows_path="$new_path" 60134 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 60135 unix_path=`$CYGPATH -u "$windows_path"` 60136 new_path="$unix_path" 60137 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 60138 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 60139 new_path="$unix_path" 60140 fi 60141 60142 if test "x$path" != "x$new_path"; then 60143 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 60144 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 60145 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 60146 fi 60147 60148 # Save the first 10 bytes of this path to the storage, so fixpath can work. 60149 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 60150 60151 else 60152 # We're on a unix platform. Hooray! :) 60153 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 60154 has_space=`$ECHO "$path" | $GREP " "` 60155 if test "x$has_space" != x; then 60156 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 60157 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 60158 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 60159 fi 60160 60161 # Use eval to expand a potential ~ 60162 eval path="$path" 60163 if test ! -f "$path" && test ! -d "$path"; then 60164 as_fn_error $? "The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 60165 fi 60166 60167 if test -d "$path"; then 60168 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$path"; $THEPWDCMD -L`" 60169 else 60170 dir="`$DIRNAME "$path"`" 60171 base="`$BASENAME "$path"`" 60172 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$dir"; $THEPWDCMD -L`/$base" 60173 fi 60174 fi 60175 fi 60176 60177 60178 # Only process if variable expands to non-empty 60179 60180 if test "x$POTENTIAL_FREETYPE_LIB_PATH" != x; then 60181 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 60182 60183 # Input might be given as Windows format, start by converting to 60184 # unix format. 60185 path="$POTENTIAL_FREETYPE_LIB_PATH" 60186 new_path=`$CYGPATH -u "$path"` 60187 60188 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 60189 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 60190 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 60191 # "foo.exe" is OK but "foo" is an error. 60192 # 60193 # This test is therefore slightly more accurate than "test -f" to check for file precense. 60194 # It is also a way to make sure we got the proper file name for the real test later on. 60195 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 60196 if test "x$test_shortpath" = x; then 60197 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 60198 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 60199 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_LIB_PATH" "$LINENO" 5 60200 fi 60201 60202 # Call helper function which possibly converts this using DOS-style short mode. 60203 # If so, the updated path is stored in $new_path. 60204 60205 input_path="$new_path" 60206 # Check if we need to convert this using DOS-style short mode. If the path 60207 # contains just simple characters, use it. Otherwise (spaces, weird characters), 60208 # take no chances and rewrite it. 60209 # Note: m4 eats our [], so we need to use [ and ] instead. 60210 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 60211 if test "x$has_forbidden_chars" != x; then 60212 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 60213 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 60214 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 60215 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 60216 # Going to short mode and back again did indeed matter. Since short mode is 60217 # case insensitive, let's make it lowercase to improve readability. 60218 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 60219 # Now convert it back to Unix-style (cygpath) 60220 input_path=`$CYGPATH -u "$shortmode_path"` 60221 new_path="$input_path" 60222 fi 60223 fi 60224 60225 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 60226 if test "x$test_cygdrive_prefix" = x; then 60227 # As a simple fix, exclude /usr/bin since it's not a real path. 60228 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 60229 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 60230 # a path prefixed by /cygdrive for fixpath to work. 60231 new_path="$CYGWIN_ROOT_PATH$input_path" 60232 fi 60233 fi 60234 60235 60236 if test "x$path" != "x$new_path"; then 60237 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 60238 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 60239 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 60240 fi 60241 60242 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 60243 60244 path="$POTENTIAL_FREETYPE_LIB_PATH" 60245 has_colon=`$ECHO $path | $GREP ^.:` 60246 new_path="$path" 60247 if test "x$has_colon" = x; then 60248 # Not in mixed or Windows style, start by that. 60249 new_path=`cmd //c echo $path` 60250 fi 60251 60252 60253 input_path="$new_path" 60254 # Check if we need to convert this using DOS-style short mode. If the path 60255 # contains just simple characters, use it. Otherwise (spaces, weird characters), 60256 # take no chances and rewrite it. 60257 # Note: m4 eats our [], so we need to use [ and ] instead. 60258 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 60259 if test "x$has_forbidden_chars" != x; then 60260 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 60261 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 60262 fi 60263 60264 60265 windows_path="$new_path" 60266 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 60267 unix_path=`$CYGPATH -u "$windows_path"` 60268 new_path="$unix_path" 60269 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 60270 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 60271 new_path="$unix_path" 60272 fi 60273 60274 if test "x$path" != "x$new_path"; then 60275 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 60276 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 60277 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 60278 fi 60279 60280 # Save the first 10 bytes of this path to the storage, so fixpath can work. 60281 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 60282 60283 else 60284 # We're on a unix platform. Hooray! :) 60285 path="$POTENTIAL_FREETYPE_LIB_PATH" 60286 has_space=`$ECHO "$path" | $GREP " "` 60287 if test "x$has_space" != x; then 60288 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 60289 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 60290 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 60291 fi 60292 60293 # Use eval to expand a potential ~ 60294 eval path="$path" 60295 if test ! -f "$path" && test ! -d "$path"; then 60296 as_fn_error $? "The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 60297 fi 60298 60299 if test -d "$path"; then 60300 POTENTIAL_FREETYPE_LIB_PATH="`cd "$path"; $THEPWDCMD -L`" 60301 else 60302 dir="`$DIRNAME "$path"`" 60303 base="`$BASENAME "$path"`" 60304 POTENTIAL_FREETYPE_LIB_PATH="`cd "$dir"; $THEPWDCMD -L`/$base" 60305 fi 60306 fi 60307 fi 60308 60309 60310 FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH" 60311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype includes" >&5 60312 $as_echo_n "checking for freetype includes... " >&6; } 60313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_INCLUDE_PATH" >&5 60314 $as_echo "$FREETYPE_INCLUDE_PATH" >&6; } 60315 FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH" 60316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype libraries" >&5 60317 $as_echo_n "checking for freetype libraries... " >&6; } 60318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_LIB_PATH" >&5 60319 $as_echo "$FREETYPE_LIB_PATH" >&6; } 60320 fi 60321 60322 60323 if test "x$FOUND_FREETYPE" != xyes; then 60324 FREETYPE_BASE_DIR="$SYSROOT/usr/X11" 60325 60326 POTENTIAL_FREETYPE_INCLUDE_PATH="$FREETYPE_BASE_DIR/include" 60327 POTENTIAL_FREETYPE_LIB_PATH="$FREETYPE_BASE_DIR/lib" 60328 METHOD="well-known location" 60329 60330 # Let's start with an optimistic view of the world :-) 60331 FOUND_FREETYPE=yes 60332 60333 # First look for the canonical freetype main include file ft2build.h. 60334 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 60335 # Oh no! Let's try in the freetype2 directory. This is needed at least at Mac OS X Yosemite. 60336 POTENTIAL_FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH/freetype2" 60337 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 60338 # Fail. 60339 FOUND_FREETYPE=no 60340 fi 60341 fi 60342 60343 if test "x$FOUND_FREETYPE" = xyes; then 60344 # Include file found, let's continue the sanity check. 60345 { $as_echo "$as_me:${as_lineno-$LINENO}: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&5 60346 $as_echo "$as_me: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&6;} 60347 60348 # Reset to default value 60349 FREETYPE_BASE_NAME=freetype 60350 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 60351 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME"; then 60352 if test "x$OPENJDK_TARGET_OS" = xmacosx \ 60353 && test -s "$POTENTIAL_FREETYPE_LIB_PATH/${LIBRARY_PREFIX}freetype.6${SHARED_LIBRARY_SUFFIX}"; then 60354 # On Mac OS X Yosemite, the symlink from libfreetype.dylib to libfreetype.6.dylib disappeared. Check 60355 # for the .6 version explicitly. 60356 FREETYPE_BASE_NAME=freetype.6 60357 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 60358 { $as_echo "$as_me:${as_lineno-$LINENO}: Compensating for missing symlink by using version 6 explicitly" >&5 60359 $as_echo "$as_me: Compensating for missing symlink by using version 6 explicitly" >&6;} 60360 else 60361 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&5 60362 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&6;} 60363 FOUND_FREETYPE=no 60364 fi 60365 else 60366 if test "x$OPENJDK_TARGET_OS" = xwindows; then 60367 # On Windows, we will need both .lib and .dll file. 60368 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib"; then 60369 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&5 60370 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&6;} 60371 FOUND_FREETYPE=no 60372 fi 60373 elif test "x$OPENJDK_TARGET_OS" = xsolaris \ 60374 && test -s "$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR/$FREETYPE_LIB_NAME"; then 60375 # Found lib in isa dir, use that instead. 60376 POTENTIAL_FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR" 60377 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&5 60378 $as_echo "$as_me: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&6;} 60379 fi 60380 fi 60381 fi 60382 60383 if test "x$FOUND_FREETYPE" = xyes; then 60384 60385 # Only process if variable expands to non-empty 60386 60387 if test "x$POTENTIAL_FREETYPE_INCLUDE_PATH" != x; then 60388 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 60389 60390 # Input might be given as Windows format, start by converting to 60391 # unix format. 60392 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 60393 new_path=`$CYGPATH -u "$path"` 60394 60395 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 60396 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 60397 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 60398 # "foo.exe" is OK but "foo" is an error. 60399 # 60400 # This test is therefore slightly more accurate than "test -f" to check for file precense. 60401 # It is also a way to make sure we got the proper file name for the real test later on. 60402 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 60403 if test "x$test_shortpath" = x; then 60404 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 60405 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 60406 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_INCLUDE_PATH" "$LINENO" 5 60407 fi 60408 60409 # Call helper function which possibly converts this using DOS-style short mode. 60410 # If so, the updated path is stored in $new_path. 60411 60412 input_path="$new_path" 60413 # Check if we need to convert this using DOS-style short mode. If the path 60414 # contains just simple characters, use it. Otherwise (spaces, weird characters), 60415 # take no chances and rewrite it. 60416 # Note: m4 eats our [], so we need to use [ and ] instead. 60417 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 60418 if test "x$has_forbidden_chars" != x; then 60419 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 60420 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 60421 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 60422 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 60423 # Going to short mode and back again did indeed matter. Since short mode is 60424 # case insensitive, let's make it lowercase to improve readability. 60425 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 60426 # Now convert it back to Unix-style (cygpath) 60427 input_path=`$CYGPATH -u "$shortmode_path"` 60428 new_path="$input_path" 60429 fi 60430 fi 60431 60432 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 60433 if test "x$test_cygdrive_prefix" = x; then 60434 # As a simple fix, exclude /usr/bin since it's not a real path. 60435 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 60436 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 60437 # a path prefixed by /cygdrive for fixpath to work. 60438 new_path="$CYGWIN_ROOT_PATH$input_path" 60439 fi 60440 fi 60441 60442 60443 if test "x$path" != "x$new_path"; then 60444 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 60445 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 60446 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 60447 fi 60448 60449 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 60450 60451 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 60452 has_colon=`$ECHO $path | $GREP ^.:` 60453 new_path="$path" 60454 if test "x$has_colon" = x; then 60455 # Not in mixed or Windows style, start by that. 60456 new_path=`cmd //c echo $path` 60457 fi 60458 60459 60460 input_path="$new_path" 60461 # Check if we need to convert this using DOS-style short mode. If the path 60462 # contains just simple characters, use it. Otherwise (spaces, weird characters), 60463 # take no chances and rewrite it. 60464 # Note: m4 eats our [], so we need to use [ and ] instead. 60465 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 60466 if test "x$has_forbidden_chars" != x; then 60467 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 60468 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 60469 fi 60470 60471 60472 windows_path="$new_path" 60473 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 60474 unix_path=`$CYGPATH -u "$windows_path"` 60475 new_path="$unix_path" 60476 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 60477 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 60478 new_path="$unix_path" 60479 fi 60480 60481 if test "x$path" != "x$new_path"; then 60482 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 60483 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 60484 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 60485 fi 60486 60487 # Save the first 10 bytes of this path to the storage, so fixpath can work. 60488 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 60489 60490 else 60491 # We're on a unix platform. Hooray! :) 60492 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 60493 has_space=`$ECHO "$path" | $GREP " "` 60494 if test "x$has_space" != x; then 60495 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 60496 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 60497 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 60498 fi 60499 60500 # Use eval to expand a potential ~ 60501 eval path="$path" 60502 if test ! -f "$path" && test ! -d "$path"; then 60503 as_fn_error $? "The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 60504 fi 60505 60506 if test -d "$path"; then 60507 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$path"; $THEPWDCMD -L`" 60508 else 60509 dir="`$DIRNAME "$path"`" 60510 base="`$BASENAME "$path"`" 60511 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$dir"; $THEPWDCMD -L`/$base" 60512 fi 60513 fi 60514 fi 60515 60516 60517 # Only process if variable expands to non-empty 60518 60519 if test "x$POTENTIAL_FREETYPE_LIB_PATH" != x; then 60520 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 60521 60522 # Input might be given as Windows format, start by converting to 60523 # unix format. 60524 path="$POTENTIAL_FREETYPE_LIB_PATH" 60525 new_path=`$CYGPATH -u "$path"` 60526 60527 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 60528 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 60529 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 60530 # "foo.exe" is OK but "foo" is an error. 60531 # 60532 # This test is therefore slightly more accurate than "test -f" to check for file precense. 60533 # It is also a way to make sure we got the proper file name for the real test later on. 60534 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 60535 if test "x$test_shortpath" = x; then 60536 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 60537 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 60538 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_LIB_PATH" "$LINENO" 5 60539 fi 60540 60541 # Call helper function which possibly converts this using DOS-style short mode. 60542 # If so, the updated path is stored in $new_path. 60543 60544 input_path="$new_path" 60545 # Check if we need to convert this using DOS-style short mode. If the path 60546 # contains just simple characters, use it. Otherwise (spaces, weird characters), 60547 # take no chances and rewrite it. 60548 # Note: m4 eats our [], so we need to use [ and ] instead. 60549 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 60550 if test "x$has_forbidden_chars" != x; then 60551 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 60552 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 60553 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 60554 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 60555 # Going to short mode and back again did indeed matter. Since short mode is 60556 # case insensitive, let's make it lowercase to improve readability. 60557 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 60558 # Now convert it back to Unix-style (cygpath) 60559 input_path=`$CYGPATH -u "$shortmode_path"` 60560 new_path="$input_path" 60561 fi 60562 fi 60563 60564 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 60565 if test "x$test_cygdrive_prefix" = x; then 60566 # As a simple fix, exclude /usr/bin since it's not a real path. 60567 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 60568 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 60569 # a path prefixed by /cygdrive for fixpath to work. 60570 new_path="$CYGWIN_ROOT_PATH$input_path" 60571 fi 60572 fi 60573 60574 60575 if test "x$path" != "x$new_path"; then 60576 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 60577 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 60578 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 60579 fi 60580 60581 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 60582 60583 path="$POTENTIAL_FREETYPE_LIB_PATH" 60584 has_colon=`$ECHO $path | $GREP ^.:` 60585 new_path="$path" 60586 if test "x$has_colon" = x; then 60587 # Not in mixed or Windows style, start by that. 60588 new_path=`cmd //c echo $path` 60589 fi 60590 60591 60592 input_path="$new_path" 60593 # Check if we need to convert this using DOS-style short mode. If the path 60594 # contains just simple characters, use it. Otherwise (spaces, weird characters), 60595 # take no chances and rewrite it. 60596 # Note: m4 eats our [], so we need to use [ and ] instead. 60597 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 60598 if test "x$has_forbidden_chars" != x; then 60599 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 60600 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 60601 fi 60602 60603 60604 windows_path="$new_path" 60605 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 60606 unix_path=`$CYGPATH -u "$windows_path"` 60607 new_path="$unix_path" 60608 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 60609 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 60610 new_path="$unix_path" 60611 fi 60612 60613 if test "x$path" != "x$new_path"; then 60614 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 60615 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 60616 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 60617 fi 60618 60619 # Save the first 10 bytes of this path to the storage, so fixpath can work. 60620 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 60621 60622 else 60623 # We're on a unix platform. Hooray! :) 60624 path="$POTENTIAL_FREETYPE_LIB_PATH" 60625 has_space=`$ECHO "$path" | $GREP " "` 60626 if test "x$has_space" != x; then 60627 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 60628 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 60629 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 60630 fi 60631 60632 # Use eval to expand a potential ~ 60633 eval path="$path" 60634 if test ! -f "$path" && test ! -d "$path"; then 60635 as_fn_error $? "The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 60636 fi 60637 60638 if test -d "$path"; then 60639 POTENTIAL_FREETYPE_LIB_PATH="`cd "$path"; $THEPWDCMD -L`" 60640 else 60641 dir="`$DIRNAME "$path"`" 60642 base="`$BASENAME "$path"`" 60643 POTENTIAL_FREETYPE_LIB_PATH="`cd "$dir"; $THEPWDCMD -L`/$base" 60644 fi 60645 fi 60646 fi 60647 60648 60649 FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH" 60650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype includes" >&5 60651 $as_echo_n "checking for freetype includes... " >&6; } 60652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_INCLUDE_PATH" >&5 60653 $as_echo "$FREETYPE_INCLUDE_PATH" >&6; } 60654 FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH" 60655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype libraries" >&5 60656 $as_echo_n "checking for freetype libraries... " >&6; } 60657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_LIB_PATH" >&5 60658 $as_echo "$FREETYPE_LIB_PATH" >&6; } 60659 fi 60660 60661 fi 60662 60663 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 60664 if test "x$FOUND_FREETYPE" != xyes; then 60665 # Due to changes in OSX 10.11 XQuartz now installs to /opt/X11 60666 FREETYPE_BASE_DIR="$SYSROOT/opt/X11" 60667 60668 POTENTIAL_FREETYPE_INCLUDE_PATH="$FREETYPE_BASE_DIR/include" 60669 POTENTIAL_FREETYPE_LIB_PATH="$FREETYPE_BASE_DIR/lib" 60670 METHOD="well-known location" 60671 60672 # Let's start with an optimistic view of the world :-) 60673 FOUND_FREETYPE=yes 60674 60675 # First look for the canonical freetype main include file ft2build.h. 60676 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 60677 # Oh no! Let's try in the freetype2 directory. This is needed at least at Mac OS X Yosemite. 60678 POTENTIAL_FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH/freetype2" 60679 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 60680 # Fail. 60681 FOUND_FREETYPE=no 60682 fi 60683 fi 60684 60685 if test "x$FOUND_FREETYPE" = xyes; then 60686 # Include file found, let's continue the sanity check. 60687 { $as_echo "$as_me:${as_lineno-$LINENO}: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&5 60688 $as_echo "$as_me: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&6;} 60689 60690 # Reset to default value 60691 FREETYPE_BASE_NAME=freetype 60692 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 60693 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME"; then 60694 if test "x$OPENJDK_TARGET_OS" = xmacosx \ 60695 && test -s "$POTENTIAL_FREETYPE_LIB_PATH/${LIBRARY_PREFIX}freetype.6${SHARED_LIBRARY_SUFFIX}"; then 60696 # On Mac OS X Yosemite, the symlink from libfreetype.dylib to libfreetype.6.dylib disappeared. Check 60697 # for the .6 version explicitly. 60698 FREETYPE_BASE_NAME=freetype.6 60699 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 60700 { $as_echo "$as_me:${as_lineno-$LINENO}: Compensating for missing symlink by using version 6 explicitly" >&5 60701 $as_echo "$as_me: Compensating for missing symlink by using version 6 explicitly" >&6;} 60702 else 60703 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&5 60704 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&6;} 60705 FOUND_FREETYPE=no 60706 fi 60707 else 60708 if test "x$OPENJDK_TARGET_OS" = xwindows; then 60709 # On Windows, we will need both .lib and .dll file. 60710 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib"; then 60711 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&5 60712 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&6;} 60713 FOUND_FREETYPE=no 60714 fi 60715 elif test "x$OPENJDK_TARGET_OS" = xsolaris \ 60716 && test -s "$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR/$FREETYPE_LIB_NAME"; then 60717 # Found lib in isa dir, use that instead. 60718 POTENTIAL_FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR" 60719 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&5 60720 $as_echo "$as_me: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&6;} 60721 fi 60722 fi 60723 fi 60724 60725 if test "x$FOUND_FREETYPE" = xyes; then 60726 60727 # Only process if variable expands to non-empty 60728 60729 if test "x$POTENTIAL_FREETYPE_INCLUDE_PATH" != x; then 60730 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 60731 60732 # Input might be given as Windows format, start by converting to 60733 # unix format. 60734 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 60735 new_path=`$CYGPATH -u "$path"` 60736 60737 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 60738 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 60739 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 60740 # "foo.exe" is OK but "foo" is an error. 60741 # 60742 # This test is therefore slightly more accurate than "test -f" to check for file precense. 60743 # It is also a way to make sure we got the proper file name for the real test later on. 60744 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 60745 if test "x$test_shortpath" = x; then 60746 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 60747 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 60748 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_INCLUDE_PATH" "$LINENO" 5 60749 fi 60750 60751 # Call helper function which possibly converts this using DOS-style short mode. 60752 # If so, the updated path is stored in $new_path. 60753 60754 input_path="$new_path" 60755 # Check if we need to convert this using DOS-style short mode. If the path 60756 # contains just simple characters, use it. Otherwise (spaces, weird characters), 60757 # take no chances and rewrite it. 60758 # Note: m4 eats our [], so we need to use [ and ] instead. 60759 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 60760 if test "x$has_forbidden_chars" != x; then 60761 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 60762 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 60763 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 60764 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 60765 # Going to short mode and back again did indeed matter. Since short mode is 60766 # case insensitive, let's make it lowercase to improve readability. 60767 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 60768 # Now convert it back to Unix-style (cygpath) 60769 input_path=`$CYGPATH -u "$shortmode_path"` 60770 new_path="$input_path" 60771 fi 60772 fi 60773 60774 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 60775 if test "x$test_cygdrive_prefix" = x; then 60776 # As a simple fix, exclude /usr/bin since it's not a real path. 60777 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 60778 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 60779 # a path prefixed by /cygdrive for fixpath to work. 60780 new_path="$CYGWIN_ROOT_PATH$input_path" 60781 fi 60782 fi 60783 60784 60785 if test "x$path" != "x$new_path"; then 60786 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 60787 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 60788 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 60789 fi 60790 60791 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 60792 60793 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 60794 has_colon=`$ECHO $path | $GREP ^.:` 60795 new_path="$path" 60796 if test "x$has_colon" = x; then 60797 # Not in mixed or Windows style, start by that. 60798 new_path=`cmd //c echo $path` 60799 fi 60800 60801 60802 input_path="$new_path" 60803 # Check if we need to convert this using DOS-style short mode. If the path 60804 # contains just simple characters, use it. Otherwise (spaces, weird characters), 60805 # take no chances and rewrite it. 60806 # Note: m4 eats our [], so we need to use [ and ] instead. 60807 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 60808 if test "x$has_forbidden_chars" != x; then 60809 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 60810 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 60811 fi 60812 60813 60814 windows_path="$new_path" 60815 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 60816 unix_path=`$CYGPATH -u "$windows_path"` 60817 new_path="$unix_path" 60818 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 60819 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 60820 new_path="$unix_path" 60821 fi 60822 60823 if test "x$path" != "x$new_path"; then 60824 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 60825 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 60826 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 60827 fi 60828 60829 # Save the first 10 bytes of this path to the storage, so fixpath can work. 60830 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 60831 60832 else 60833 # We're on a unix platform. Hooray! :) 60834 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 60835 has_space=`$ECHO "$path" | $GREP " "` 60836 if test "x$has_space" != x; then 60837 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 60838 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 60839 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 60840 fi 60841 60842 # Use eval to expand a potential ~ 60843 eval path="$path" 60844 if test ! -f "$path" && test ! -d "$path"; then 60845 as_fn_error $? "The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 60846 fi 60847 60848 if test -d "$path"; then 60849 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$path"; $THEPWDCMD -L`" 60850 else 60851 dir="`$DIRNAME "$path"`" 60852 base="`$BASENAME "$path"`" 60853 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$dir"; $THEPWDCMD -L`/$base" 60854 fi 60855 fi 60856 fi 60857 60858 60859 # Only process if variable expands to non-empty 60860 60861 if test "x$POTENTIAL_FREETYPE_LIB_PATH" != x; then 60862 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 60863 60864 # Input might be given as Windows format, start by converting to 60865 # unix format. 60866 path="$POTENTIAL_FREETYPE_LIB_PATH" 60867 new_path=`$CYGPATH -u "$path"` 60868 60869 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 60870 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 60871 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 60872 # "foo.exe" is OK but "foo" is an error. 60873 # 60874 # This test is therefore slightly more accurate than "test -f" to check for file precense. 60875 # It is also a way to make sure we got the proper file name for the real test later on. 60876 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 60877 if test "x$test_shortpath" = x; then 60878 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 60879 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 60880 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_LIB_PATH" "$LINENO" 5 60881 fi 60882 60883 # Call helper function which possibly converts this using DOS-style short mode. 60884 # If so, the updated path is stored in $new_path. 60885 60886 input_path="$new_path" 60887 # Check if we need to convert this using DOS-style short mode. If the path 60888 # contains just simple characters, use it. Otherwise (spaces, weird characters), 60889 # take no chances and rewrite it. 60890 # Note: m4 eats our [], so we need to use [ and ] instead. 60891 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 60892 if test "x$has_forbidden_chars" != x; then 60893 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 60894 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 60895 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 60896 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 60897 # Going to short mode and back again did indeed matter. Since short mode is 60898 # case insensitive, let's make it lowercase to improve readability. 60899 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 60900 # Now convert it back to Unix-style (cygpath) 60901 input_path=`$CYGPATH -u "$shortmode_path"` 60902 new_path="$input_path" 60903 fi 60904 fi 60905 60906 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 60907 if test "x$test_cygdrive_prefix" = x; then 60908 # As a simple fix, exclude /usr/bin since it's not a real path. 60909 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 60910 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 60911 # a path prefixed by /cygdrive for fixpath to work. 60912 new_path="$CYGWIN_ROOT_PATH$input_path" 60913 fi 60914 fi 60915 60916 60917 if test "x$path" != "x$new_path"; then 60918 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 60919 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 60920 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 60921 fi 60922 60923 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 60924 60925 path="$POTENTIAL_FREETYPE_LIB_PATH" 60926 has_colon=`$ECHO $path | $GREP ^.:` 60927 new_path="$path" 60928 if test "x$has_colon" = x; then 60929 # Not in mixed or Windows style, start by that. 60930 new_path=`cmd //c echo $path` 60931 fi 60932 60933 60934 input_path="$new_path" 60935 # Check if we need to convert this using DOS-style short mode. If the path 60936 # contains just simple characters, use it. Otherwise (spaces, weird characters), 60937 # take no chances and rewrite it. 60938 # Note: m4 eats our [], so we need to use [ and ] instead. 60939 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 60940 if test "x$has_forbidden_chars" != x; then 60941 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 60942 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 60943 fi 60944 60945 60946 windows_path="$new_path" 60947 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 60948 unix_path=`$CYGPATH -u "$windows_path"` 60949 new_path="$unix_path" 60950 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 60951 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 60952 new_path="$unix_path" 60953 fi 60954 60955 if test "x$path" != "x$new_path"; then 60956 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 60957 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 60958 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 60959 fi 60960 60961 # Save the first 10 bytes of this path to the storage, so fixpath can work. 60962 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 60963 60964 else 60965 # We're on a unix platform. Hooray! :) 60966 path="$POTENTIAL_FREETYPE_LIB_PATH" 60967 has_space=`$ECHO "$path" | $GREP " "` 60968 if test "x$has_space" != x; then 60969 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 60970 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 60971 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 60972 fi 60973 60974 # Use eval to expand a potential ~ 60975 eval path="$path" 60976 if test ! -f "$path" && test ! -d "$path"; then 60977 as_fn_error $? "The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 60978 fi 60979 60980 if test -d "$path"; then 60981 POTENTIAL_FREETYPE_LIB_PATH="`cd "$path"; $THEPWDCMD -L`" 60982 else 60983 dir="`$DIRNAME "$path"`" 60984 base="`$BASENAME "$path"`" 60985 POTENTIAL_FREETYPE_LIB_PATH="`cd "$dir"; $THEPWDCMD -L`/$base" 60986 fi 60987 fi 60988 fi 60989 60990 60991 FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH" 60992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype includes" >&5 60993 $as_echo_n "checking for freetype includes... " >&6; } 60994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_INCLUDE_PATH" >&5 60995 $as_echo "$FREETYPE_INCLUDE_PATH" >&6; } 60996 FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH" 60997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype libraries" >&5 60998 $as_echo_n "checking for freetype libraries... " >&6; } 60999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_LIB_PATH" >&5 61000 $as_echo "$FREETYPE_LIB_PATH" >&6; } 61001 fi 61002 61003 fi 61004 fi 61005 61006 if test "x$FOUND_FREETYPE" != xyes; then 61007 FREETYPE_BASE_DIR="$SYSROOT/usr" 61008 if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then 61009 61010 POTENTIAL_FREETYPE_INCLUDE_PATH="$FREETYPE_BASE_DIR/include" 61011 POTENTIAL_FREETYPE_LIB_PATH="$FREETYPE_BASE_DIR/lib/x86_64-linux-gnu" 61012 METHOD="well-known location" 61013 61014 # Let's start with an optimistic view of the world :-) 61015 FOUND_FREETYPE=yes 61016 61017 # First look for the canonical freetype main include file ft2build.h. 61018 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 61019 # Oh no! Let's try in the freetype2 directory. This is needed at least at Mac OS X Yosemite. 61020 POTENTIAL_FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH/freetype2" 61021 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 61022 # Fail. 61023 FOUND_FREETYPE=no 61024 fi 61025 fi 61026 61027 if test "x$FOUND_FREETYPE" = xyes; then 61028 # Include file found, let's continue the sanity check. 61029 { $as_echo "$as_me:${as_lineno-$LINENO}: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&5 61030 $as_echo "$as_me: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&6;} 61031 61032 # Reset to default value 61033 FREETYPE_BASE_NAME=freetype 61034 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 61035 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME"; then 61036 if test "x$OPENJDK_TARGET_OS" = xmacosx \ 61037 && test -s "$POTENTIAL_FREETYPE_LIB_PATH/${LIBRARY_PREFIX}freetype.6${SHARED_LIBRARY_SUFFIX}"; then 61038 # On Mac OS X Yosemite, the symlink from libfreetype.dylib to libfreetype.6.dylib disappeared. Check 61039 # for the .6 version explicitly. 61040 FREETYPE_BASE_NAME=freetype.6 61041 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 61042 { $as_echo "$as_me:${as_lineno-$LINENO}: Compensating for missing symlink by using version 6 explicitly" >&5 61043 $as_echo "$as_me: Compensating for missing symlink by using version 6 explicitly" >&6;} 61044 else 61045 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&5 61046 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&6;} 61047 FOUND_FREETYPE=no 61048 fi 61049 else 61050 if test "x$OPENJDK_TARGET_OS" = xwindows; then 61051 # On Windows, we will need both .lib and .dll file. 61052 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib"; then 61053 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&5 61054 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&6;} 61055 FOUND_FREETYPE=no 61056 fi 61057 elif test "x$OPENJDK_TARGET_OS" = xsolaris \ 61058 && test -s "$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR/$FREETYPE_LIB_NAME"; then 61059 # Found lib in isa dir, use that instead. 61060 POTENTIAL_FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR" 61061 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&5 61062 $as_echo "$as_me: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&6;} 61063 fi 61064 fi 61065 fi 61066 61067 if test "x$FOUND_FREETYPE" = xyes; then 61068 61069 # Only process if variable expands to non-empty 61070 61071 if test "x$POTENTIAL_FREETYPE_INCLUDE_PATH" != x; then 61072 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 61073 61074 # Input might be given as Windows format, start by converting to 61075 # unix format. 61076 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 61077 new_path=`$CYGPATH -u "$path"` 61078 61079 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 61080 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 61081 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 61082 # "foo.exe" is OK but "foo" is an error. 61083 # 61084 # This test is therefore slightly more accurate than "test -f" to check for file precense. 61085 # It is also a way to make sure we got the proper file name for the real test later on. 61086 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 61087 if test "x$test_shortpath" = x; then 61088 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 61089 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 61090 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_INCLUDE_PATH" "$LINENO" 5 61091 fi 61092 61093 # Call helper function which possibly converts this using DOS-style short mode. 61094 # If so, the updated path is stored in $new_path. 61095 61096 input_path="$new_path" 61097 # Check if we need to convert this using DOS-style short mode. If the path 61098 # contains just simple characters, use it. Otherwise (spaces, weird characters), 61099 # take no chances and rewrite it. 61100 # Note: m4 eats our [], so we need to use [ and ] instead. 61101 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 61102 if test "x$has_forbidden_chars" != x; then 61103 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 61104 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 61105 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 61106 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 61107 # Going to short mode and back again did indeed matter. Since short mode is 61108 # case insensitive, let's make it lowercase to improve readability. 61109 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 61110 # Now convert it back to Unix-style (cygpath) 61111 input_path=`$CYGPATH -u "$shortmode_path"` 61112 new_path="$input_path" 61113 fi 61114 fi 61115 61116 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 61117 if test "x$test_cygdrive_prefix" = x; then 61118 # As a simple fix, exclude /usr/bin since it's not a real path. 61119 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 61120 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 61121 # a path prefixed by /cygdrive for fixpath to work. 61122 new_path="$CYGWIN_ROOT_PATH$input_path" 61123 fi 61124 fi 61125 61126 61127 if test "x$path" != "x$new_path"; then 61128 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 61129 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 61130 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 61131 fi 61132 61133 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 61134 61135 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 61136 has_colon=`$ECHO $path | $GREP ^.:` 61137 new_path="$path" 61138 if test "x$has_colon" = x; then 61139 # Not in mixed or Windows style, start by that. 61140 new_path=`cmd //c echo $path` 61141 fi 61142 61143 61144 input_path="$new_path" 61145 # Check if we need to convert this using DOS-style short mode. If the path 61146 # contains just simple characters, use it. Otherwise (spaces, weird characters), 61147 # take no chances and rewrite it. 61148 # Note: m4 eats our [], so we need to use [ and ] instead. 61149 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 61150 if test "x$has_forbidden_chars" != x; then 61151 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 61152 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 61153 fi 61154 61155 61156 windows_path="$new_path" 61157 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 61158 unix_path=`$CYGPATH -u "$windows_path"` 61159 new_path="$unix_path" 61160 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 61161 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 61162 new_path="$unix_path" 61163 fi 61164 61165 if test "x$path" != "x$new_path"; then 61166 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 61167 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 61168 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 61169 fi 61170 61171 # Save the first 10 bytes of this path to the storage, so fixpath can work. 61172 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 61173 61174 else 61175 # We're on a unix platform. Hooray! :) 61176 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 61177 has_space=`$ECHO "$path" | $GREP " "` 61178 if test "x$has_space" != x; then 61179 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 61180 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 61181 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 61182 fi 61183 61184 # Use eval to expand a potential ~ 61185 eval path="$path" 61186 if test ! -f "$path" && test ! -d "$path"; then 61187 as_fn_error $? "The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 61188 fi 61189 61190 if test -d "$path"; then 61191 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$path"; $THEPWDCMD -L`" 61192 else 61193 dir="`$DIRNAME "$path"`" 61194 base="`$BASENAME "$path"`" 61195 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$dir"; $THEPWDCMD -L`/$base" 61196 fi 61197 fi 61198 fi 61199 61200 61201 # Only process if variable expands to non-empty 61202 61203 if test "x$POTENTIAL_FREETYPE_LIB_PATH" != x; then 61204 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 61205 61206 # Input might be given as Windows format, start by converting to 61207 # unix format. 61208 path="$POTENTIAL_FREETYPE_LIB_PATH" 61209 new_path=`$CYGPATH -u "$path"` 61210 61211 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 61212 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 61213 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 61214 # "foo.exe" is OK but "foo" is an error. 61215 # 61216 # This test is therefore slightly more accurate than "test -f" to check for file precense. 61217 # It is also a way to make sure we got the proper file name for the real test later on. 61218 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 61219 if test "x$test_shortpath" = x; then 61220 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 61221 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 61222 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_LIB_PATH" "$LINENO" 5 61223 fi 61224 61225 # Call helper function which possibly converts this using DOS-style short mode. 61226 # If so, the updated path is stored in $new_path. 61227 61228 input_path="$new_path" 61229 # Check if we need to convert this using DOS-style short mode. If the path 61230 # contains just simple characters, use it. Otherwise (spaces, weird characters), 61231 # take no chances and rewrite it. 61232 # Note: m4 eats our [], so we need to use [ and ] instead. 61233 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 61234 if test "x$has_forbidden_chars" != x; then 61235 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 61236 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 61237 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 61238 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 61239 # Going to short mode and back again did indeed matter. Since short mode is 61240 # case insensitive, let's make it lowercase to improve readability. 61241 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 61242 # Now convert it back to Unix-style (cygpath) 61243 input_path=`$CYGPATH -u "$shortmode_path"` 61244 new_path="$input_path" 61245 fi 61246 fi 61247 61248 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 61249 if test "x$test_cygdrive_prefix" = x; then 61250 # As a simple fix, exclude /usr/bin since it's not a real path. 61251 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 61252 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 61253 # a path prefixed by /cygdrive for fixpath to work. 61254 new_path="$CYGWIN_ROOT_PATH$input_path" 61255 fi 61256 fi 61257 61258 61259 if test "x$path" != "x$new_path"; then 61260 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 61261 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 61262 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 61263 fi 61264 61265 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 61266 61267 path="$POTENTIAL_FREETYPE_LIB_PATH" 61268 has_colon=`$ECHO $path | $GREP ^.:` 61269 new_path="$path" 61270 if test "x$has_colon" = x; then 61271 # Not in mixed or Windows style, start by that. 61272 new_path=`cmd //c echo $path` 61273 fi 61274 61275 61276 input_path="$new_path" 61277 # Check if we need to convert this using DOS-style short mode. If the path 61278 # contains just simple characters, use it. Otherwise (spaces, weird characters), 61279 # take no chances and rewrite it. 61280 # Note: m4 eats our [], so we need to use [ and ] instead. 61281 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 61282 if test "x$has_forbidden_chars" != x; then 61283 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 61284 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 61285 fi 61286 61287 61288 windows_path="$new_path" 61289 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 61290 unix_path=`$CYGPATH -u "$windows_path"` 61291 new_path="$unix_path" 61292 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 61293 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 61294 new_path="$unix_path" 61295 fi 61296 61297 if test "x$path" != "x$new_path"; then 61298 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 61299 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 61300 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 61301 fi 61302 61303 # Save the first 10 bytes of this path to the storage, so fixpath can work. 61304 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 61305 61306 else 61307 # We're on a unix platform. Hooray! :) 61308 path="$POTENTIAL_FREETYPE_LIB_PATH" 61309 has_space=`$ECHO "$path" | $GREP " "` 61310 if test "x$has_space" != x; then 61311 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 61312 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 61313 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 61314 fi 61315 61316 # Use eval to expand a potential ~ 61317 eval path="$path" 61318 if test ! -f "$path" && test ! -d "$path"; then 61319 as_fn_error $? "The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 61320 fi 61321 61322 if test -d "$path"; then 61323 POTENTIAL_FREETYPE_LIB_PATH="`cd "$path"; $THEPWDCMD -L`" 61324 else 61325 dir="`$DIRNAME "$path"`" 61326 base="`$BASENAME "$path"`" 61327 POTENTIAL_FREETYPE_LIB_PATH="`cd "$dir"; $THEPWDCMD -L`/$base" 61328 fi 61329 fi 61330 fi 61331 61332 61333 FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH" 61334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype includes" >&5 61335 $as_echo_n "checking for freetype includes... " >&6; } 61336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_INCLUDE_PATH" >&5 61337 $as_echo "$FREETYPE_INCLUDE_PATH" >&6; } 61338 FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH" 61339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype libraries" >&5 61340 $as_echo_n "checking for freetype libraries... " >&6; } 61341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_LIB_PATH" >&5 61342 $as_echo "$FREETYPE_LIB_PATH" >&6; } 61343 fi 61344 61345 else 61346 61347 POTENTIAL_FREETYPE_INCLUDE_PATH="$FREETYPE_BASE_DIR/include" 61348 POTENTIAL_FREETYPE_LIB_PATH="$FREETYPE_BASE_DIR/lib/i386-linux-gnu" 61349 METHOD="well-known location" 61350 61351 # Let's start with an optimistic view of the world :-) 61352 FOUND_FREETYPE=yes 61353 61354 # First look for the canonical freetype main include file ft2build.h. 61355 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 61356 # Oh no! Let's try in the freetype2 directory. This is needed at least at Mac OS X Yosemite. 61357 POTENTIAL_FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH/freetype2" 61358 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 61359 # Fail. 61360 FOUND_FREETYPE=no 61361 fi 61362 fi 61363 61364 if test "x$FOUND_FREETYPE" = xyes; then 61365 # Include file found, let's continue the sanity check. 61366 { $as_echo "$as_me:${as_lineno-$LINENO}: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&5 61367 $as_echo "$as_me: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&6;} 61368 61369 # Reset to default value 61370 FREETYPE_BASE_NAME=freetype 61371 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 61372 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME"; then 61373 if test "x$OPENJDK_TARGET_OS" = xmacosx \ 61374 && test -s "$POTENTIAL_FREETYPE_LIB_PATH/${LIBRARY_PREFIX}freetype.6${SHARED_LIBRARY_SUFFIX}"; then 61375 # On Mac OS X Yosemite, the symlink from libfreetype.dylib to libfreetype.6.dylib disappeared. Check 61376 # for the .6 version explicitly. 61377 FREETYPE_BASE_NAME=freetype.6 61378 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 61379 { $as_echo "$as_me:${as_lineno-$LINENO}: Compensating for missing symlink by using version 6 explicitly" >&5 61380 $as_echo "$as_me: Compensating for missing symlink by using version 6 explicitly" >&6;} 61381 else 61382 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&5 61383 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&6;} 61384 FOUND_FREETYPE=no 61385 fi 61386 else 61387 if test "x$OPENJDK_TARGET_OS" = xwindows; then 61388 # On Windows, we will need both .lib and .dll file. 61389 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib"; then 61390 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&5 61391 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&6;} 61392 FOUND_FREETYPE=no 61393 fi 61394 elif test "x$OPENJDK_TARGET_OS" = xsolaris \ 61395 && test -s "$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR/$FREETYPE_LIB_NAME"; then 61396 # Found lib in isa dir, use that instead. 61397 POTENTIAL_FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR" 61398 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&5 61399 $as_echo "$as_me: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&6;} 61400 fi 61401 fi 61402 fi 61403 61404 if test "x$FOUND_FREETYPE" = xyes; then 61405 61406 # Only process if variable expands to non-empty 61407 61408 if test "x$POTENTIAL_FREETYPE_INCLUDE_PATH" != x; then 61409 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 61410 61411 # Input might be given as Windows format, start by converting to 61412 # unix format. 61413 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 61414 new_path=`$CYGPATH -u "$path"` 61415 61416 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 61417 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 61418 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 61419 # "foo.exe" is OK but "foo" is an error. 61420 # 61421 # This test is therefore slightly more accurate than "test -f" to check for file precense. 61422 # It is also a way to make sure we got the proper file name for the real test later on. 61423 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 61424 if test "x$test_shortpath" = x; then 61425 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 61426 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 61427 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_INCLUDE_PATH" "$LINENO" 5 61428 fi 61429 61430 # Call helper function which possibly converts this using DOS-style short mode. 61431 # If so, the updated path is stored in $new_path. 61432 61433 input_path="$new_path" 61434 # Check if we need to convert this using DOS-style short mode. If the path 61435 # contains just simple characters, use it. Otherwise (spaces, weird characters), 61436 # take no chances and rewrite it. 61437 # Note: m4 eats our [], so we need to use [ and ] instead. 61438 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 61439 if test "x$has_forbidden_chars" != x; then 61440 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 61441 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 61442 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 61443 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 61444 # Going to short mode and back again did indeed matter. Since short mode is 61445 # case insensitive, let's make it lowercase to improve readability. 61446 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 61447 # Now convert it back to Unix-style (cygpath) 61448 input_path=`$CYGPATH -u "$shortmode_path"` 61449 new_path="$input_path" 61450 fi 61451 fi 61452 61453 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 61454 if test "x$test_cygdrive_prefix" = x; then 61455 # As a simple fix, exclude /usr/bin since it's not a real path. 61456 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 61457 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 61458 # a path prefixed by /cygdrive for fixpath to work. 61459 new_path="$CYGWIN_ROOT_PATH$input_path" 61460 fi 61461 fi 61462 61463 61464 if test "x$path" != "x$new_path"; then 61465 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 61466 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 61467 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 61468 fi 61469 61470 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 61471 61472 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 61473 has_colon=`$ECHO $path | $GREP ^.:` 61474 new_path="$path" 61475 if test "x$has_colon" = x; then 61476 # Not in mixed or Windows style, start by that. 61477 new_path=`cmd //c echo $path` 61478 fi 61479 61480 61481 input_path="$new_path" 61482 # Check if we need to convert this using DOS-style short mode. If the path 61483 # contains just simple characters, use it. Otherwise (spaces, weird characters), 61484 # take no chances and rewrite it. 61485 # Note: m4 eats our [], so we need to use [ and ] instead. 61486 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 61487 if test "x$has_forbidden_chars" != x; then 61488 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 61489 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 61490 fi 61491 61492 61493 windows_path="$new_path" 61494 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 61495 unix_path=`$CYGPATH -u "$windows_path"` 61496 new_path="$unix_path" 61497 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 61498 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 61499 new_path="$unix_path" 61500 fi 61501 61502 if test "x$path" != "x$new_path"; then 61503 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 61504 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 61505 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 61506 fi 61507 61508 # Save the first 10 bytes of this path to the storage, so fixpath can work. 61509 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 61510 61511 else 61512 # We're on a unix platform. Hooray! :) 61513 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 61514 has_space=`$ECHO "$path" | $GREP " "` 61515 if test "x$has_space" != x; then 61516 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 61517 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 61518 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 61519 fi 61520 61521 # Use eval to expand a potential ~ 61522 eval path="$path" 61523 if test ! -f "$path" && test ! -d "$path"; then 61524 as_fn_error $? "The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 61525 fi 61526 61527 if test -d "$path"; then 61528 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$path"; $THEPWDCMD -L`" 61529 else 61530 dir="`$DIRNAME "$path"`" 61531 base="`$BASENAME "$path"`" 61532 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$dir"; $THEPWDCMD -L`/$base" 61533 fi 61534 fi 61535 fi 61536 61537 61538 # Only process if variable expands to non-empty 61539 61540 if test "x$POTENTIAL_FREETYPE_LIB_PATH" != x; then 61541 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 61542 61543 # Input might be given as Windows format, start by converting to 61544 # unix format. 61545 path="$POTENTIAL_FREETYPE_LIB_PATH" 61546 new_path=`$CYGPATH -u "$path"` 61547 61548 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 61549 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 61550 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 61551 # "foo.exe" is OK but "foo" is an error. 61552 # 61553 # This test is therefore slightly more accurate than "test -f" to check for file precense. 61554 # It is also a way to make sure we got the proper file name for the real test later on. 61555 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 61556 if test "x$test_shortpath" = x; then 61557 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 61558 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 61559 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_LIB_PATH" "$LINENO" 5 61560 fi 61561 61562 # Call helper function which possibly converts this using DOS-style short mode. 61563 # If so, the updated path is stored in $new_path. 61564 61565 input_path="$new_path" 61566 # Check if we need to convert this using DOS-style short mode. If the path 61567 # contains just simple characters, use it. Otherwise (spaces, weird characters), 61568 # take no chances and rewrite it. 61569 # Note: m4 eats our [], so we need to use [ and ] instead. 61570 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 61571 if test "x$has_forbidden_chars" != x; then 61572 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 61573 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 61574 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 61575 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 61576 # Going to short mode and back again did indeed matter. Since short mode is 61577 # case insensitive, let's make it lowercase to improve readability. 61578 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 61579 # Now convert it back to Unix-style (cygpath) 61580 input_path=`$CYGPATH -u "$shortmode_path"` 61581 new_path="$input_path" 61582 fi 61583 fi 61584 61585 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 61586 if test "x$test_cygdrive_prefix" = x; then 61587 # As a simple fix, exclude /usr/bin since it's not a real path. 61588 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 61589 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 61590 # a path prefixed by /cygdrive for fixpath to work. 61591 new_path="$CYGWIN_ROOT_PATH$input_path" 61592 fi 61593 fi 61594 61595 61596 if test "x$path" != "x$new_path"; then 61597 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 61598 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 61599 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 61600 fi 61601 61602 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 61603 61604 path="$POTENTIAL_FREETYPE_LIB_PATH" 61605 has_colon=`$ECHO $path | $GREP ^.:` 61606 new_path="$path" 61607 if test "x$has_colon" = x; then 61608 # Not in mixed or Windows style, start by that. 61609 new_path=`cmd //c echo $path` 61610 fi 61611 61612 61613 input_path="$new_path" 61614 # Check if we need to convert this using DOS-style short mode. If the path 61615 # contains just simple characters, use it. Otherwise (spaces, weird characters), 61616 # take no chances and rewrite it. 61617 # Note: m4 eats our [], so we need to use [ and ] instead. 61618 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 61619 if test "x$has_forbidden_chars" != x; then 61620 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 61621 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 61622 fi 61623 61624 61625 windows_path="$new_path" 61626 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 61627 unix_path=`$CYGPATH -u "$windows_path"` 61628 new_path="$unix_path" 61629 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 61630 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 61631 new_path="$unix_path" 61632 fi 61633 61634 if test "x$path" != "x$new_path"; then 61635 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 61636 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 61637 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 61638 fi 61639 61640 # Save the first 10 bytes of this path to the storage, so fixpath can work. 61641 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 61642 61643 else 61644 # We're on a unix platform. Hooray! :) 61645 path="$POTENTIAL_FREETYPE_LIB_PATH" 61646 has_space=`$ECHO "$path" | $GREP " "` 61647 if test "x$has_space" != x; then 61648 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 61649 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 61650 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 61651 fi 61652 61653 # Use eval to expand a potential ~ 61654 eval path="$path" 61655 if test ! -f "$path" && test ! -d "$path"; then 61656 as_fn_error $? "The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 61657 fi 61658 61659 if test -d "$path"; then 61660 POTENTIAL_FREETYPE_LIB_PATH="`cd "$path"; $THEPWDCMD -L`" 61661 else 61662 dir="`$DIRNAME "$path"`" 61663 base="`$BASENAME "$path"`" 61664 POTENTIAL_FREETYPE_LIB_PATH="`cd "$dir"; $THEPWDCMD -L`/$base" 61665 fi 61666 fi 61667 fi 61668 61669 61670 FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH" 61671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype includes" >&5 61672 $as_echo_n "checking for freetype includes... " >&6; } 61673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_INCLUDE_PATH" >&5 61674 $as_echo "$FREETYPE_INCLUDE_PATH" >&6; } 61675 FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH" 61676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype libraries" >&5 61677 $as_echo_n "checking for freetype libraries... " >&6; } 61678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_LIB_PATH" >&5 61679 $as_echo "$FREETYPE_LIB_PATH" >&6; } 61680 fi 61681 61682 if test "x$FOUND_FREETYPE" != xyes; then 61683 61684 POTENTIAL_FREETYPE_INCLUDE_PATH="$FREETYPE_BASE_DIR/include" 61685 POTENTIAL_FREETYPE_LIB_PATH="$FREETYPE_BASE_DIR/lib32" 61686 METHOD="well-known location" 61687 61688 # Let's start with an optimistic view of the world :-) 61689 FOUND_FREETYPE=yes 61690 61691 # First look for the canonical freetype main include file ft2build.h. 61692 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 61693 # Oh no! Let's try in the freetype2 directory. This is needed at least at Mac OS X Yosemite. 61694 POTENTIAL_FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH/freetype2" 61695 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 61696 # Fail. 61697 FOUND_FREETYPE=no 61698 fi 61699 fi 61700 61701 if test "x$FOUND_FREETYPE" = xyes; then 61702 # Include file found, let's continue the sanity check. 61703 { $as_echo "$as_me:${as_lineno-$LINENO}: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&5 61704 $as_echo "$as_me: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&6;} 61705 61706 # Reset to default value 61707 FREETYPE_BASE_NAME=freetype 61708 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 61709 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME"; then 61710 if test "x$OPENJDK_TARGET_OS" = xmacosx \ 61711 && test -s "$POTENTIAL_FREETYPE_LIB_PATH/${LIBRARY_PREFIX}freetype.6${SHARED_LIBRARY_SUFFIX}"; then 61712 # On Mac OS X Yosemite, the symlink from libfreetype.dylib to libfreetype.6.dylib disappeared. Check 61713 # for the .6 version explicitly. 61714 FREETYPE_BASE_NAME=freetype.6 61715 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 61716 { $as_echo "$as_me:${as_lineno-$LINENO}: Compensating for missing symlink by using version 6 explicitly" >&5 61717 $as_echo "$as_me: Compensating for missing symlink by using version 6 explicitly" >&6;} 61718 else 61719 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&5 61720 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&6;} 61721 FOUND_FREETYPE=no 61722 fi 61723 else 61724 if test "x$OPENJDK_TARGET_OS" = xwindows; then 61725 # On Windows, we will need both .lib and .dll file. 61726 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib"; then 61727 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&5 61728 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&6;} 61729 FOUND_FREETYPE=no 61730 fi 61731 elif test "x$OPENJDK_TARGET_OS" = xsolaris \ 61732 && test -s "$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR/$FREETYPE_LIB_NAME"; then 61733 # Found lib in isa dir, use that instead. 61734 POTENTIAL_FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR" 61735 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&5 61736 $as_echo "$as_me: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&6;} 61737 fi 61738 fi 61739 fi 61740 61741 if test "x$FOUND_FREETYPE" = xyes; then 61742 61743 # Only process if variable expands to non-empty 61744 61745 if test "x$POTENTIAL_FREETYPE_INCLUDE_PATH" != x; then 61746 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 61747 61748 # Input might be given as Windows format, start by converting to 61749 # unix format. 61750 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 61751 new_path=`$CYGPATH -u "$path"` 61752 61753 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 61754 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 61755 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 61756 # "foo.exe" is OK but "foo" is an error. 61757 # 61758 # This test is therefore slightly more accurate than "test -f" to check for file precense. 61759 # It is also a way to make sure we got the proper file name for the real test later on. 61760 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 61761 if test "x$test_shortpath" = x; then 61762 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 61763 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 61764 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_INCLUDE_PATH" "$LINENO" 5 61765 fi 61766 61767 # Call helper function which possibly converts this using DOS-style short mode. 61768 # If so, the updated path is stored in $new_path. 61769 61770 input_path="$new_path" 61771 # Check if we need to convert this using DOS-style short mode. If the path 61772 # contains just simple characters, use it. Otherwise (spaces, weird characters), 61773 # take no chances and rewrite it. 61774 # Note: m4 eats our [], so we need to use [ and ] instead. 61775 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 61776 if test "x$has_forbidden_chars" != x; then 61777 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 61778 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 61779 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 61780 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 61781 # Going to short mode and back again did indeed matter. Since short mode is 61782 # case insensitive, let's make it lowercase to improve readability. 61783 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 61784 # Now convert it back to Unix-style (cygpath) 61785 input_path=`$CYGPATH -u "$shortmode_path"` 61786 new_path="$input_path" 61787 fi 61788 fi 61789 61790 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 61791 if test "x$test_cygdrive_prefix" = x; then 61792 # As a simple fix, exclude /usr/bin since it's not a real path. 61793 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 61794 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 61795 # a path prefixed by /cygdrive for fixpath to work. 61796 new_path="$CYGWIN_ROOT_PATH$input_path" 61797 fi 61798 fi 61799 61800 61801 if test "x$path" != "x$new_path"; then 61802 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 61803 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 61804 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 61805 fi 61806 61807 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 61808 61809 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 61810 has_colon=`$ECHO $path | $GREP ^.:` 61811 new_path="$path" 61812 if test "x$has_colon" = x; then 61813 # Not in mixed or Windows style, start by that. 61814 new_path=`cmd //c echo $path` 61815 fi 61816 61817 61818 input_path="$new_path" 61819 # Check if we need to convert this using DOS-style short mode. If the path 61820 # contains just simple characters, use it. Otherwise (spaces, weird characters), 61821 # take no chances and rewrite it. 61822 # Note: m4 eats our [], so we need to use [ and ] instead. 61823 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 61824 if test "x$has_forbidden_chars" != x; then 61825 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 61826 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 61827 fi 61828 61829 61830 windows_path="$new_path" 61831 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 61832 unix_path=`$CYGPATH -u "$windows_path"` 61833 new_path="$unix_path" 61834 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 61835 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 61836 new_path="$unix_path" 61837 fi 61838 61839 if test "x$path" != "x$new_path"; then 61840 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 61841 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 61842 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 61843 fi 61844 61845 # Save the first 10 bytes of this path to the storage, so fixpath can work. 61846 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 61847 61848 else 61849 # We're on a unix platform. Hooray! :) 61850 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 61851 has_space=`$ECHO "$path" | $GREP " "` 61852 if test "x$has_space" != x; then 61853 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 61854 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 61855 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 61856 fi 61857 61858 # Use eval to expand a potential ~ 61859 eval path="$path" 61860 if test ! -f "$path" && test ! -d "$path"; then 61861 as_fn_error $? "The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 61862 fi 61863 61864 if test -d "$path"; then 61865 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$path"; $THEPWDCMD -L`" 61866 else 61867 dir="`$DIRNAME "$path"`" 61868 base="`$BASENAME "$path"`" 61869 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$dir"; $THEPWDCMD -L`/$base" 61870 fi 61871 fi 61872 fi 61873 61874 61875 # Only process if variable expands to non-empty 61876 61877 if test "x$POTENTIAL_FREETYPE_LIB_PATH" != x; then 61878 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 61879 61880 # Input might be given as Windows format, start by converting to 61881 # unix format. 61882 path="$POTENTIAL_FREETYPE_LIB_PATH" 61883 new_path=`$CYGPATH -u "$path"` 61884 61885 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 61886 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 61887 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 61888 # "foo.exe" is OK but "foo" is an error. 61889 # 61890 # This test is therefore slightly more accurate than "test -f" to check for file precense. 61891 # It is also a way to make sure we got the proper file name for the real test later on. 61892 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 61893 if test "x$test_shortpath" = x; then 61894 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 61895 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 61896 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_LIB_PATH" "$LINENO" 5 61897 fi 61898 61899 # Call helper function which possibly converts this using DOS-style short mode. 61900 # If so, the updated path is stored in $new_path. 61901 61902 input_path="$new_path" 61903 # Check if we need to convert this using DOS-style short mode. If the path 61904 # contains just simple characters, use it. Otherwise (spaces, weird characters), 61905 # take no chances and rewrite it. 61906 # Note: m4 eats our [], so we need to use [ and ] instead. 61907 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 61908 if test "x$has_forbidden_chars" != x; then 61909 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 61910 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 61911 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 61912 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 61913 # Going to short mode and back again did indeed matter. Since short mode is 61914 # case insensitive, let's make it lowercase to improve readability. 61915 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 61916 # Now convert it back to Unix-style (cygpath) 61917 input_path=`$CYGPATH -u "$shortmode_path"` 61918 new_path="$input_path" 61919 fi 61920 fi 61921 61922 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 61923 if test "x$test_cygdrive_prefix" = x; then 61924 # As a simple fix, exclude /usr/bin since it's not a real path. 61925 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 61926 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 61927 # a path prefixed by /cygdrive for fixpath to work. 61928 new_path="$CYGWIN_ROOT_PATH$input_path" 61929 fi 61930 fi 61931 61932 61933 if test "x$path" != "x$new_path"; then 61934 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 61935 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 61936 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 61937 fi 61938 61939 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 61940 61941 path="$POTENTIAL_FREETYPE_LIB_PATH" 61942 has_colon=`$ECHO $path | $GREP ^.:` 61943 new_path="$path" 61944 if test "x$has_colon" = x; then 61945 # Not in mixed or Windows style, start by that. 61946 new_path=`cmd //c echo $path` 61947 fi 61948 61949 61950 input_path="$new_path" 61951 # Check if we need to convert this using DOS-style short mode. If the path 61952 # contains just simple characters, use it. Otherwise (spaces, weird characters), 61953 # take no chances and rewrite it. 61954 # Note: m4 eats our [], so we need to use [ and ] instead. 61955 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 61956 if test "x$has_forbidden_chars" != x; then 61957 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 61958 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 61959 fi 61960 61961 61962 windows_path="$new_path" 61963 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 61964 unix_path=`$CYGPATH -u "$windows_path"` 61965 new_path="$unix_path" 61966 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 61967 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 61968 new_path="$unix_path" 61969 fi 61970 61971 if test "x$path" != "x$new_path"; then 61972 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 61973 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 61974 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 61975 fi 61976 61977 # Save the first 10 bytes of this path to the storage, so fixpath can work. 61978 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 61979 61980 else 61981 # We're on a unix platform. Hooray! :) 61982 path="$POTENTIAL_FREETYPE_LIB_PATH" 61983 has_space=`$ECHO "$path" | $GREP " "` 61984 if test "x$has_space" != x; then 61985 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 61986 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 61987 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 61988 fi 61989 61990 # Use eval to expand a potential ~ 61991 eval path="$path" 61992 if test ! -f "$path" && test ! -d "$path"; then 61993 as_fn_error $? "The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 61994 fi 61995 61996 if test -d "$path"; then 61997 POTENTIAL_FREETYPE_LIB_PATH="`cd "$path"; $THEPWDCMD -L`" 61998 else 61999 dir="`$DIRNAME "$path"`" 62000 base="`$BASENAME "$path"`" 62001 POTENTIAL_FREETYPE_LIB_PATH="`cd "$dir"; $THEPWDCMD -L`/$base" 62002 fi 62003 fi 62004 fi 62005 62006 62007 FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH" 62008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype includes" >&5 62009 $as_echo_n "checking for freetype includes... " >&6; } 62010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_INCLUDE_PATH" >&5 62011 $as_echo "$FREETYPE_INCLUDE_PATH" >&6; } 62012 FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH" 62013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype libraries" >&5 62014 $as_echo_n "checking for freetype libraries... " >&6; } 62015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_LIB_PATH" >&5 62016 $as_echo "$FREETYPE_LIB_PATH" >&6; } 62017 fi 62018 62019 fi 62020 fi 62021 fi 62022 fi 62023 fi # end check in well-known locations 62024 62025 if test "x$FOUND_FREETYPE" != xyes; then 62026 62027 # Print a helpful message on how to acquire the necessary build dependency. 62028 # freetype is the help tag: freetype, cups, alsa etc 62029 MISSING_DEPENDENCY=freetype 62030 62031 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 62032 cygwin_help $MISSING_DEPENDENCY 62033 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 62034 msys_help $MISSING_DEPENDENCY 62035 else 62036 PKGHANDLER_COMMAND= 62037 62038 case $PKGHANDLER in 62039 apt-get) 62040 apt_help $MISSING_DEPENDENCY ;; 62041 yum) 62042 yum_help $MISSING_DEPENDENCY ;; 62043 port) 62044 port_help $MISSING_DEPENDENCY ;; 62045 pkgutil) 62046 pkgutil_help $MISSING_DEPENDENCY ;; 62047 pkgadd) 62048 pkgadd_help $MISSING_DEPENDENCY ;; 62049 esac 62050 62051 if test "x$PKGHANDLER_COMMAND" != x; then 62052 HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'." 62053 fi 62054 fi 62055 62056 as_fn_error $? "Could not find freetype! $HELP_MSG " "$LINENO" 5 62057 fi 62058 fi # end user specified settings 62059 62060 # Set FREETYPE_CFLAGS, _LIBS and _LIB_PATH from include and lib dir. 62061 if test "x$FREETYPE_CFLAGS" = x; then 62062 62063 # Only process if variable expands to non-empty 62064 62065 if test "x$FREETYPE_INCLUDE_PATH" != x; then 62066 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 62067 62068 # Input might be given as Windows format, start by converting to 62069 # unix format. 62070 path="$FREETYPE_INCLUDE_PATH" 62071 new_path=`$CYGPATH -u "$path"` 62072 62073 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 62074 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 62075 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 62076 # "foo.exe" is OK but "foo" is an error. 62077 # 62078 # This test is therefore slightly more accurate than "test -f" to check for file precense. 62079 # It is also a way to make sure we got the proper file name for the real test later on. 62080 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 62081 if test "x$test_shortpath" = x; then 62082 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 62083 $as_echo "$as_me: The path of FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 62084 as_fn_error $? "Cannot locate the the path of FREETYPE_INCLUDE_PATH" "$LINENO" 5 62085 fi 62086 62087 # Call helper function which possibly converts this using DOS-style short mode. 62088 # If so, the updated path is stored in $new_path. 62089 62090 input_path="$new_path" 62091 # Check if we need to convert this using DOS-style short mode. If the path 62092 # contains just simple characters, use it. Otherwise (spaces, weird characters), 62093 # take no chances and rewrite it. 62094 # Note: m4 eats our [], so we need to use [ and ] instead. 62095 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 62096 if test "x$has_forbidden_chars" != x; then 62097 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 62098 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 62099 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 62100 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 62101 # Going to short mode and back again did indeed matter. Since short mode is 62102 # case insensitive, let's make it lowercase to improve readability. 62103 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 62104 # Now convert it back to Unix-style (cygpath) 62105 input_path=`$CYGPATH -u "$shortmode_path"` 62106 new_path="$input_path" 62107 fi 62108 fi 62109 62110 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 62111 if test "x$test_cygdrive_prefix" = x; then 62112 # As a simple fix, exclude /usr/bin since it's not a real path. 62113 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 62114 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 62115 # a path prefixed by /cygdrive for fixpath to work. 62116 new_path="$CYGWIN_ROOT_PATH$input_path" 62117 fi 62118 fi 62119 62120 62121 if test "x$path" != "x$new_path"; then 62122 FREETYPE_INCLUDE_PATH="$new_path" 62123 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 62124 $as_echo "$as_me: Rewriting FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 62125 fi 62126 62127 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 62128 62129 path="$FREETYPE_INCLUDE_PATH" 62130 has_colon=`$ECHO $path | $GREP ^.:` 62131 new_path="$path" 62132 if test "x$has_colon" = x; then 62133 # Not in mixed or Windows style, start by that. 62134 new_path=`cmd //c echo $path` 62135 fi 62136 62137 62138 input_path="$new_path" 62139 # Check if we need to convert this using DOS-style short mode. If the path 62140 # contains just simple characters, use it. Otherwise (spaces, weird characters), 62141 # take no chances and rewrite it. 62142 # Note: m4 eats our [], so we need to use [ and ] instead. 62143 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 62144 if test "x$has_forbidden_chars" != x; then 62145 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 62146 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 62147 fi 62148 62149 62150 windows_path="$new_path" 62151 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 62152 unix_path=`$CYGPATH -u "$windows_path"` 62153 new_path="$unix_path" 62154 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 62155 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 62156 new_path="$unix_path" 62157 fi 62158 62159 if test "x$path" != "x$new_path"; then 62160 FREETYPE_INCLUDE_PATH="$new_path" 62161 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 62162 $as_echo "$as_me: Rewriting FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 62163 fi 62164 62165 # Save the first 10 bytes of this path to the storage, so fixpath can work. 62166 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 62167 62168 else 62169 # We're on a unix platform. Hooray! :) 62170 path="$FREETYPE_INCLUDE_PATH" 62171 has_space=`$ECHO "$path" | $GREP " "` 62172 if test "x$has_space" != x; then 62173 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 62174 $as_echo "$as_me: The path of FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 62175 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 62176 fi 62177 62178 # Use eval to expand a potential ~ 62179 eval path="$path" 62180 if test ! -f "$path" && test ! -d "$path"; then 62181 as_fn_error $? "The path of FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 62182 fi 62183 62184 if test -d "$path"; then 62185 FREETYPE_INCLUDE_PATH="`cd "$path"; $THEPWDCMD -L`" 62186 else 62187 dir="`$DIRNAME "$path"`" 62188 base="`$BASENAME "$path"`" 62189 FREETYPE_INCLUDE_PATH="`cd "$dir"; $THEPWDCMD -L`/$base" 62190 fi 62191 fi 62192 fi 62193 62194 if test -d $FREETYPE_INCLUDE_PATH/freetype2/freetype; then 62195 FREETYPE_CFLAGS="-I$FREETYPE_INCLUDE_PATH/freetype2 -I$FREETYPE_INCLUDE_PATH" 62196 else 62197 FREETYPE_CFLAGS="-I$FREETYPE_INCLUDE_PATH" 62198 fi 62199 fi 62200 62201 if test "x$FREETYPE_LIBS" = x; then 62202 62203 # Only process if variable expands to non-empty 62204 62205 if test "x$FREETYPE_LIB_PATH" != x; then 62206 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 62207 62208 # Input might be given as Windows format, start by converting to 62209 # unix format. 62210 path="$FREETYPE_LIB_PATH" 62211 new_path=`$CYGPATH -u "$path"` 62212 62213 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 62214 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 62215 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 62216 # "foo.exe" is OK but "foo" is an error. 62217 # 62218 # This test is therefore slightly more accurate than "test -f" to check for file precense. 62219 # It is also a way to make sure we got the proper file name for the real test later on. 62220 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 62221 if test "x$test_shortpath" = x; then 62222 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 62223 $as_echo "$as_me: The path of FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 62224 as_fn_error $? "Cannot locate the the path of FREETYPE_LIB_PATH" "$LINENO" 5 62225 fi 62226 62227 # Call helper function which possibly converts this using DOS-style short mode. 62228 # If so, the updated path is stored in $new_path. 62229 62230 input_path="$new_path" 62231 # Check if we need to convert this using DOS-style short mode. If the path 62232 # contains just simple characters, use it. Otherwise (spaces, weird characters), 62233 # take no chances and rewrite it. 62234 # Note: m4 eats our [], so we need to use [ and ] instead. 62235 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 62236 if test "x$has_forbidden_chars" != x; then 62237 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 62238 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 62239 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 62240 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 62241 # Going to short mode and back again did indeed matter. Since short mode is 62242 # case insensitive, let's make it lowercase to improve readability. 62243 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 62244 # Now convert it back to Unix-style (cygpath) 62245 input_path=`$CYGPATH -u "$shortmode_path"` 62246 new_path="$input_path" 62247 fi 62248 fi 62249 62250 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 62251 if test "x$test_cygdrive_prefix" = x; then 62252 # As a simple fix, exclude /usr/bin since it's not a real path. 62253 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 62254 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 62255 # a path prefixed by /cygdrive for fixpath to work. 62256 new_path="$CYGWIN_ROOT_PATH$input_path" 62257 fi 62258 fi 62259 62260 62261 if test "x$path" != "x$new_path"; then 62262 FREETYPE_LIB_PATH="$new_path" 62263 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FREETYPE_LIB_PATH to \"$new_path\"" >&5 62264 $as_echo "$as_me: Rewriting FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 62265 fi 62266 62267 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 62268 62269 path="$FREETYPE_LIB_PATH" 62270 has_colon=`$ECHO $path | $GREP ^.:` 62271 new_path="$path" 62272 if test "x$has_colon" = x; then 62273 # Not in mixed or Windows style, start by that. 62274 new_path=`cmd //c echo $path` 62275 fi 62276 62277 62278 input_path="$new_path" 62279 # Check if we need to convert this using DOS-style short mode. If the path 62280 # contains just simple characters, use it. Otherwise (spaces, weird characters), 62281 # take no chances and rewrite it. 62282 # Note: m4 eats our [], so we need to use [ and ] instead. 62283 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 62284 if test "x$has_forbidden_chars" != x; then 62285 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 62286 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 62287 fi 62288 62289 62290 windows_path="$new_path" 62291 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 62292 unix_path=`$CYGPATH -u "$windows_path"` 62293 new_path="$unix_path" 62294 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 62295 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 62296 new_path="$unix_path" 62297 fi 62298 62299 if test "x$path" != "x$new_path"; then 62300 FREETYPE_LIB_PATH="$new_path" 62301 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FREETYPE_LIB_PATH to \"$new_path\"" >&5 62302 $as_echo "$as_me: Rewriting FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 62303 fi 62304 62305 # Save the first 10 bytes of this path to the storage, so fixpath can work. 62306 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 62307 62308 else 62309 # We're on a unix platform. Hooray! :) 62310 path="$FREETYPE_LIB_PATH" 62311 has_space=`$ECHO "$path" | $GREP " "` 62312 if test "x$has_space" != x; then 62313 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 62314 $as_echo "$as_me: The path of FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 62315 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 62316 fi 62317 62318 # Use eval to expand a potential ~ 62319 eval path="$path" 62320 if test ! -f "$path" && test ! -d "$path"; then 62321 as_fn_error $? "The path of FREETYPE_LIB_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 62322 fi 62323 62324 if test -d "$path"; then 62325 FREETYPE_LIB_PATH="`cd "$path"; $THEPWDCMD -L`" 62326 else 62327 dir="`$DIRNAME "$path"`" 62328 base="`$BASENAME "$path"`" 62329 FREETYPE_LIB_PATH="`cd "$dir"; $THEPWDCMD -L`/$base" 62330 fi 62331 fi 62332 fi 62333 62334 if test "x$OPENJDK_TARGET_OS" = xwindows; then 62335 FREETYPE_LIBS="$FREETYPE_LIB_PATH/$FREETYPE_BASE_NAME.lib" 62336 else 62337 FREETYPE_LIBS="-L$FREETYPE_LIB_PATH -l$FREETYPE_BASE_NAME" 62338 fi 62339 fi 62340 62341 # Try to compile it 62342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can compile and link with freetype" >&5 62343 $as_echo_n "checking if we can compile and link with freetype... " >&6; } 62344 ac_ext=cpp 62345 ac_cpp='$CXXCPP $CPPFLAGS' 62346 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 62347 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 62348 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 62349 62350 PREV_CXXCFLAGS="$CXXFLAGS" 62351 PREV_LIBS="$LIBS" 62352 PREV_CXX="$CXX" 62353 CXXFLAGS="$CXXFLAGS $FREETYPE_CFLAGS" 62354 LIBS="$LIBS $FREETYPE_LIBS" 62355 CXX="$FIXPATH $CXX" 62356 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 62357 /* end confdefs.h. */ 62358 62359 #include<ft2build.h> 62360 #include FT_FREETYPE_H 62361 int main () { 62362 FT_Init_FreeType(NULL); 62363 return 0; 62364 } 62365 62366 _ACEOF 62367 if ac_fn_cxx_try_link "$LINENO"; then : 62368 62369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 62370 $as_echo "yes" >&6; } 62371 62372 else 62373 62374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 62375 $as_echo "no" >&6; } 62376 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not compile and link with freetype. This might be a 32/64-bit mismatch." >&5 62377 $as_echo "$as_me: Could not compile and link with freetype. This might be a 32/64-bit mismatch." >&6;} 62378 { $as_echo "$as_me:${as_lineno-$LINENO}: Using FREETYPE_CFLAGS=$FREETYPE_CFLAGS and FREETYPE_LIBS=$FREETYPE_LIBS" >&5 62379 $as_echo "$as_me: Using FREETYPE_CFLAGS=$FREETYPE_CFLAGS and FREETYPE_LIBS=$FREETYPE_LIBS" >&6;} 62380 62381 62382 # Print a helpful message on how to acquire the necessary build dependency. 62383 # freetype is the help tag: freetype, cups, alsa etc 62384 MISSING_DEPENDENCY=freetype 62385 62386 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 62387 cygwin_help $MISSING_DEPENDENCY 62388 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 62389 msys_help $MISSING_DEPENDENCY 62390 else 62391 PKGHANDLER_COMMAND= 62392 62393 case $PKGHANDLER in 62394 apt-get) 62395 apt_help $MISSING_DEPENDENCY ;; 62396 yum) 62397 yum_help $MISSING_DEPENDENCY ;; 62398 port) 62399 port_help $MISSING_DEPENDENCY ;; 62400 pkgutil) 62401 pkgutil_help $MISSING_DEPENDENCY ;; 62402 pkgadd) 62403 pkgadd_help $MISSING_DEPENDENCY ;; 62404 esac 62405 62406 if test "x$PKGHANDLER_COMMAND" != x; then 62407 HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'." 62408 fi 62409 fi 62410 62411 62412 as_fn_error $? "Can not continue without freetype. $HELP_MSG" "$LINENO" 5 62413 62414 62415 fi 62416 rm -f core conftest.err conftest.$ac_objext \ 62417 conftest$ac_exeext conftest.$ac_ext 62418 CXXCFLAGS="$PREV_CXXFLAGS" 62419 LIBS="$PREV_LIBS" 62420 CXX="$PREV_CXX" 62421 ac_ext=cpp 62422 ac_cpp='$CXXCPP $CPPFLAGS' 62423 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 62424 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 62425 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 62426 62427 62428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we should bundle freetype" >&5 62429 $as_echo_n "checking if we should bundle freetype... " >&6; } 62430 if test "x$BUNDLE_FREETYPE" = xyes; then 62431 FREETYPE_BUNDLE_LIB_PATH="$FREETYPE_LIB_PATH" 62432 fi 62433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUNDLE_FREETYPE" >&5 62434 $as_echo "$BUNDLE_FREETYPE" >&6; } 62435 62436 fi # end freetype needed 62437 62438 62439 62440 62441 62442 62443 62444 # Check whether --with-alsa was given. 62445 if test "${with_alsa+set}" = set; then : 62446 withval=$with_alsa; 62447 fi 62448 62449 62450 # Check whether --with-alsa-include was given. 62451 if test "${with_alsa_include+set}" = set; then : 62452 withval=$with_alsa_include; 62453 fi 62454 62455 62456 # Check whether --with-alsa-lib was given. 62457 if test "${with_alsa_lib+set}" = set; then : 62458 withval=$with_alsa_lib; 62459 fi 62460 62461 62462 if test "x$NEEDS_LIB_ALSA" = xfalse; then 62463 if (test "x${with_alsa}" != x && test "x${with_alsa}" != xno) || \ 62464 (test "x${with_alsa_include}" != x && test "x${with_alsa_include}" != xno) || \ 62465 (test "x${with_alsa_lib}" != x && test "x${with_alsa_lib}" != xno); then 62466 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: alsa not used, so --with-alsa[-*] is ignored" >&5 62467 $as_echo "$as_me: WARNING: alsa not used, so --with-alsa[-*] is ignored" >&2;} 62468 fi 62469 ALSA_CFLAGS= 62470 ALSA_LIBS= 62471 else 62472 ALSA_FOUND=no 62473 62474 if test "x${with_alsa}" = xno || test "x${with_alsa_include}" = xno || test "x${with_alsa_lib}" = xno; then 62475 as_fn_error $? "It is not possible to disable the use of alsa. Remove the --without-alsa option." "$LINENO" 5 62476 fi 62477 62478 if test "x${with_alsa}" != x; then 62479 ALSA_LIBS="-L${with_alsa}/lib -lasound" 62480 ALSA_CFLAGS="-I${with_alsa}/include" 62481 ALSA_FOUND=yes 62482 fi 62483 if test "x${with_alsa_include}" != x; then 62484 ALSA_CFLAGS="-I${with_alsa_include}" 62485 ALSA_FOUND=yes 62486 fi 62487 if test "x${with_alsa_lib}" != x; then 62488 ALSA_LIBS="-L${with_alsa_lib} -lasound" 62489 ALSA_FOUND=yes 62490 fi 62491 # Do not try pkg-config if we have a sysroot set. 62492 if test "x$SYSROOT" = x; then 62493 if test "x$ALSA_FOUND" = xno; then 62494 62495 pkg_failed=no 62496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ALSA" >&5 62497 $as_echo_n "checking for ALSA... " >&6; } 62498 62499 if test -n "$ALSA_CFLAGS"; then 62500 pkg_cv_ALSA_CFLAGS="$ALSA_CFLAGS" 62501 elif test -n "$PKG_CONFIG"; then 62502 if test -n "$PKG_CONFIG" && \ 62503 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"alsa\""; } >&5 62504 ($PKG_CONFIG --exists --print-errors "alsa") 2>&5 62505 ac_status=$? 62506 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 62507 test $ac_status = 0; }; then 62508 pkg_cv_ALSA_CFLAGS=`$PKG_CONFIG --cflags "alsa" 2>/dev/null` 62509 else 62510 pkg_failed=yes 62511 fi 62512 else 62513 pkg_failed=untried 62514 fi 62515 if test -n "$ALSA_LIBS"; then 62516 pkg_cv_ALSA_LIBS="$ALSA_LIBS" 62517 elif test -n "$PKG_CONFIG"; then 62518 if test -n "$PKG_CONFIG" && \ 62519 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"alsa\""; } >&5 62520 ($PKG_CONFIG --exists --print-errors "alsa") 2>&5 62521 ac_status=$? 62522 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 62523 test $ac_status = 0; }; then 62524 pkg_cv_ALSA_LIBS=`$PKG_CONFIG --libs "alsa" 2>/dev/null` 62525 else 62526 pkg_failed=yes 62527 fi 62528 else 62529 pkg_failed=untried 62530 fi 62531 62532 62533 62534 if test $pkg_failed = yes; then 62535 62536 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 62537 _pkg_short_errors_supported=yes 62538 else 62539 _pkg_short_errors_supported=no 62540 fi 62541 if test $_pkg_short_errors_supported = yes; then 62542 ALSA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "alsa" 2>&1` 62543 else 62544 ALSA_PKG_ERRORS=`$PKG_CONFIG --print-errors "alsa" 2>&1` 62545 fi 62546 # Put the nasty error message in config.log where it belongs 62547 echo "$ALSA_PKG_ERRORS" >&5 62548 62549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 62550 $as_echo "no" >&6; } 62551 ALSA_FOUND=no 62552 elif test $pkg_failed = untried; then 62553 ALSA_FOUND=no 62554 else 62555 ALSA_CFLAGS=$pkg_cv_ALSA_CFLAGS 62556 ALSA_LIBS=$pkg_cv_ALSA_LIBS 62557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 62558 $as_echo "yes" >&6; } 62559 ALSA_FOUND=yes 62560 fi 62561 fi 62562 fi 62563 if test "x$ALSA_FOUND" = xno; then 62564 for ac_header in alsa/asoundlib.h 62565 do : 62566 ac_fn_cxx_check_header_mongrel "$LINENO" "alsa/asoundlib.h" "ac_cv_header_alsa_asoundlib_h" "$ac_includes_default" 62567 if test "x$ac_cv_header_alsa_asoundlib_h" = xyes; then : 62568 cat >>confdefs.h <<_ACEOF 62569 #define HAVE_ALSA_ASOUNDLIB_H 1 62570 _ACEOF 62571 62572 ALSA_FOUND=yes 62573 ALSA_CFLAGS=-Iignoreme 62574 ALSA_LIBS=-lasound 62575 DEFAULT_ALSA=yes 62576 62577 else 62578 ALSA_FOUND=no 62579 62580 fi 62581 62582 done 62583 62584 fi 62585 if test "x$ALSA_FOUND" = xno; then 62586 62587 # Print a helpful message on how to acquire the necessary build dependency. 62588 # alsa is the help tag: freetype, cups, alsa etc 62589 MISSING_DEPENDENCY=alsa 62590 62591 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 62592 cygwin_help $MISSING_DEPENDENCY 62593 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 62594 msys_help $MISSING_DEPENDENCY 62595 else 62596 PKGHANDLER_COMMAND= 62597 62598 case $PKGHANDLER in 62599 apt-get) 62600 apt_help $MISSING_DEPENDENCY ;; 62601 yum) 62602 yum_help $MISSING_DEPENDENCY ;; 62603 port) 62604 port_help $MISSING_DEPENDENCY ;; 62605 pkgutil) 62606 pkgutil_help $MISSING_DEPENDENCY ;; 62607 pkgadd) 62608 pkgadd_help $MISSING_DEPENDENCY ;; 62609 esac 62610 62611 if test "x$PKGHANDLER_COMMAND" != x; then 62612 HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'." 62613 fi 62614 fi 62615 62616 as_fn_error $? "Could not find alsa! $HELP_MSG" "$LINENO" 5 62617 fi 62618 fi 62619 62620 62621 62622 62623 62624 62625 # Check whether --with-libffi was given. 62626 if test "${with_libffi+set}" = set; then : 62627 withval=$with_libffi; 62628 fi 62629 62630 62631 # Check whether --with-libffi-include was given. 62632 if test "${with_libffi_include+set}" = set; then : 62633 withval=$with_libffi_include; 62634 fi 62635 62636 62637 # Check whether --with-libffi-lib was given. 62638 if test "${with_libffi_lib+set}" = set; then : 62639 withval=$with_libffi_lib; 62640 fi 62641 62642 # Check whether --enable-libffi-bundling was given. 62643 if test "${enable_libffi_bundling+set}" = set; then : 62644 enableval=$enable_libffi_bundling; 62645 fi 62646 62647 62648 if test "x$NEEDS_LIB_FFI" = xfalse; then 62649 if (test "x${with_libffi}" != x && test "x${with_libffi}" != xno) || \ 62650 (test "x${with_libffi_include}" != x && test "x${with_libffi_include}" != xno) || \ 62651 (test "x${with_libffi_lib}" != x && test "x${with_libffi_lib}" != xno); then 62652 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libffi not used, so --with-libffi[-*] is ignored" >&5 62653 $as_echo "$as_me: WARNING: libffi not used, so --with-libffi[-*] is ignored" >&2;} 62654 fi 62655 LIBFFI_CFLAGS= 62656 LIBFFI_LIBS= 62657 else 62658 LIBFFI_FOUND=no 62659 62660 if test "x${with_libffi}" = xno || test "x${with_libffi_include}" = xno || test "x${with_libffi_lib}" = xno; then 62661 as_fn_error $? "It is not possible to disable the use of libffi. Remove the --without-libffi option." "$LINENO" 5 62662 fi 62663 62664 if test "x${with_libffi}" != x; then 62665 LIBFFI_LIB_PATH="${with_libffi}/lib" 62666 LIBFFI_LIBS="-L${with_libffi}/lib -lffi" 62667 LIBFFI_CFLAGS="-I${with_libffi}/include" 62668 LIBFFI_FOUND=yes 62669 fi 62670 if test "x${with_libffi_include}" != x; then 62671 LIBFFI_CFLAGS="-I${with_libffi_include}" 62672 LIBFFI_FOUND=yes 62673 fi 62674 if test "x${with_libffi_lib}" != x; then 62675 LIBFFI_LIB_PATH="${with_libffi_lib}" 62676 LIBFFI_LIBS="-L${with_libffi_lib} -lffi" 62677 LIBFFI_FOUND=yes 62678 fi 62679 # Do not try pkg-config if we have a sysroot set. 62680 if test "x$SYSROOT" = x; then 62681 if test "x$LIBFFI_FOUND" = xno; then 62682 # Figure out LIBFFI_CFLAGS and LIBFFI_LIBS 62683 62684 pkg_failed=no 62685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBFFI" >&5 62686 $as_echo_n "checking for LIBFFI... " >&6; } 62687 62688 if test -n "$LIBFFI_CFLAGS"; then 62689 pkg_cv_LIBFFI_CFLAGS="$LIBFFI_CFLAGS" 62690 elif test -n "$PKG_CONFIG"; then 62691 if test -n "$PKG_CONFIG" && \ 62692 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libffi\""; } >&5 62693 ($PKG_CONFIG --exists --print-errors "libffi") 2>&5 62694 ac_status=$? 62695 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 62696 test $ac_status = 0; }; then 62697 pkg_cv_LIBFFI_CFLAGS=`$PKG_CONFIG --cflags "libffi" 2>/dev/null` 62698 else 62699 pkg_failed=yes 62700 fi 62701 else 62702 pkg_failed=untried 62703 fi 62704 if test -n "$LIBFFI_LIBS"; then 62705 pkg_cv_LIBFFI_LIBS="$LIBFFI_LIBS" 62706 elif test -n "$PKG_CONFIG"; then 62707 if test -n "$PKG_CONFIG" && \ 62708 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libffi\""; } >&5 62709 ($PKG_CONFIG --exists --print-errors "libffi") 2>&5 62710 ac_status=$? 62711 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 62712 test $ac_status = 0; }; then 62713 pkg_cv_LIBFFI_LIBS=`$PKG_CONFIG --libs "libffi" 2>/dev/null` 62714 else 62715 pkg_failed=yes 62716 fi 62717 else 62718 pkg_failed=untried 62719 fi 62720 62721 62722 62723 if test $pkg_failed = yes; then 62724 62725 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 62726 _pkg_short_errors_supported=yes 62727 else 62728 _pkg_short_errors_supported=no 62729 fi 62730 if test $_pkg_short_errors_supported = yes; then 62731 LIBFFI_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libffi" 2>&1` 62732 else 62733 LIBFFI_PKG_ERRORS=`$PKG_CONFIG --print-errors "libffi" 2>&1` 62734 fi 62735 # Put the nasty error message in config.log where it belongs 62736 echo "$LIBFFI_PKG_ERRORS" >&5 62737 62738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 62739 $as_echo "no" >&6; } 62740 LIBFFI_FOUND=no 62741 elif test $pkg_failed = untried; then 62742 LIBFFI_FOUND=no 62743 else 62744 LIBFFI_CFLAGS=$pkg_cv_LIBFFI_CFLAGS 62745 LIBFFI_LIBS=$pkg_cv_LIBFFI_LIBS 62746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 62747 $as_echo "yes" >&6; } 62748 LIBFFI_FOUND=yes 62749 fi 62750 fi 62751 fi 62752 if test "x$LIBFFI_FOUND" = xno; then 62753 for ac_header in ffi.h 62754 do : 62755 ac_fn_cxx_check_header_mongrel "$LINENO" "ffi.h" "ac_cv_header_ffi_h" "$ac_includes_default" 62756 if test "x$ac_cv_header_ffi_h" = xyes; then : 62757 cat >>confdefs.h <<_ACEOF 62758 #define HAVE_FFI_H 1 62759 _ACEOF 62760 62761 LIBFFI_FOUND=yes 62762 LIBFFI_CFLAGS= 62763 LIBFFI_LIBS=-lffi 62764 62765 else 62766 LIBFFI_FOUND=no 62767 62768 fi 62769 62770 done 62771 62772 fi 62773 if test "x$LIBFFI_FOUND" = xno; then 62774 62775 # Print a helpful message on how to acquire the necessary build dependency. 62776 # ffi is the help tag: freetype, cups, alsa etc 62777 MISSING_DEPENDENCY=ffi 62778 62779 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 62780 cygwin_help $MISSING_DEPENDENCY 62781 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 62782 msys_help $MISSING_DEPENDENCY 62783 else 62784 PKGHANDLER_COMMAND= 62785 62786 case $PKGHANDLER in 62787 apt-get) 62788 apt_help $MISSING_DEPENDENCY ;; 62789 yum) 62790 yum_help $MISSING_DEPENDENCY ;; 62791 port) 62792 port_help $MISSING_DEPENDENCY ;; 62793 pkgutil) 62794 pkgutil_help $MISSING_DEPENDENCY ;; 62795 pkgadd) 62796 pkgadd_help $MISSING_DEPENDENCY ;; 62797 esac 62798 62799 if test "x$PKGHANDLER_COMMAND" != x; then 62800 HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'." 62801 fi 62802 fi 62803 62804 as_fn_error $? "Could not find libffi! $HELP_MSG" "$LINENO" 5 62805 fi 62806 62807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libffi works" >&5 62808 $as_echo_n "checking if libffi works... " >&6; } 62809 ac_ext=c 62810 ac_cpp='$CPP $CPPFLAGS' 62811 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 62812 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 62813 ac_compiler_gnu=$ac_cv_c_compiler_gnu 62814 62815 OLD_CFLAGS="$CFLAGS" 62816 CFLAGS="$CFLAGS $LIBFFI_CFLAGS" 62817 OLD_LIBS="$LIBS" 62818 LIBS="$LIBS $LIBFFI_LIBS" 62819 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 62820 /* end confdefs.h. */ 62821 #include <ffi.h> 62822 int 62823 main () 62824 { 62825 62826 ffi_call(NULL, NULL, NULL, NULL); 62827 return 0; 62828 62829 ; 62830 return 0; 62831 } 62832 _ACEOF 62833 if ac_fn_c_try_link "$LINENO"; then : 62834 LIBFFI_WORKS=yes 62835 else 62836 LIBFFI_WORKS=no 62837 62838 fi 62839 rm -f core conftest.err conftest.$ac_objext \ 62840 conftest$ac_exeext conftest.$ac_ext 62841 CFLAGS="$OLD_CFLAGS" 62842 LIBS="$OLD_LIBS" 62843 ac_ext=cpp 62844 ac_cpp='$CXXCPP $CPPFLAGS' 62845 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 62846 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 62847 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 62848 62849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBFFI_WORKS" >&5 62850 $as_echo "$LIBFFI_WORKS" >&6; } 62851 62852 if test "x$LIBFFI_WORKS" = xno; then 62853 62854 # Print a helpful message on how to acquire the necessary build dependency. 62855 # ffi is the help tag: freetype, cups, alsa etc 62856 MISSING_DEPENDENCY=ffi 62857 62858 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 62859 cygwin_help $MISSING_DEPENDENCY 62860 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 62861 msys_help $MISSING_DEPENDENCY 62862 else 62863 PKGHANDLER_COMMAND= 62864 62865 case $PKGHANDLER in 62866 apt-get) 62867 apt_help $MISSING_DEPENDENCY ;; 62868 yum) 62869 yum_help $MISSING_DEPENDENCY ;; 62870 port) 62871 port_help $MISSING_DEPENDENCY ;; 62872 pkgutil) 62873 pkgutil_help $MISSING_DEPENDENCY ;; 62874 pkgadd) 62875 pkgadd_help $MISSING_DEPENDENCY ;; 62876 esac 62877 62878 if test "x$PKGHANDLER_COMMAND" != x; then 62879 HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'." 62880 fi 62881 fi 62882 62883 as_fn_error $? "Found libffi but could not link and compile with it. $HELP_MSG" "$LINENO" 5 62884 fi 62885 62886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libffi should be bundled" >&5 62887 $as_echo_n "checking if libffi should be bundled... " >&6; } 62888 if test "x$enable_libffi_bundling" = "x"; then 62889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 62890 $as_echo "no" >&6; } 62891 ENABLE_LIBFFI_BUNDLING=false 62892 elif test "x$enable_libffi_bundling" = "xno"; then 62893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, forced" >&5 62894 $as_echo "no, forced" >&6; } 62895 ENABLE_LIBFFI_BUNDLING=false 62896 elif test "x$enable_libffi_bundling" = "xyes"; then 62897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, forced" >&5 62898 $as_echo "yes, forced" >&6; } 62899 ENABLE_LIBFFI_BUNDLING=true 62900 else 62901 as_fn_error $? "Invalid value for --enable-libffi-bundling" "$LINENO" 5 62902 fi 62903 62904 # Find the libffi.so.X to bundle 62905 if test "x${ENABLE_LIBFFI_BUNDLING}" = "xtrue"; then 62906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libffi lib file location" >&5 62907 $as_echo_n "checking for libffi lib file location... " >&6; } 62908 if test "x${LIBFFI_LIB_PATH}" != x; then 62909 if test -e ${LIBFFI_LIB_PATH}/libffi.so.?; then 62910 LIBFFI_LIB_FILE="${LIBFFI_LIB_PATH}/libffi.so.?" 62911 else 62912 as_fn_error $? "Could not locate libffi.so.? for bundling in ${LIBFFI_LIB_PATH}" "$LINENO" 5 62913 fi 62914 else 62915 # If we don't have an explicit path, look in a few obvious places 62916 if test "x${OPENJDK_TARGET_CPU}" = "xx86"; then 62917 if test -e ${SYSROOT}/usr/lib/libffi.so.? ; then 62918 LIBFFI_LIB_FILE="${SYSROOT}/usr/lib/libffi.so.?" 62919 elif test -e ${SYSROOT}/usr/lib/i386-linux-gnu/libffi.so.? ; then 62920 LIBFFI_LIB_FILE="${SYSROOT}/usr/lib/i386-linux-gnu/libffi.so.?" 62921 else 62922 as_fn_error $? "Could not locate libffi.so.? for bundling" "$LINENO" 5 62923 fi 62924 elif test "x${OPENJDK_TARGET_CPU}" = "xx86_64"; then 62925 if test -e ${SYSROOT}/usr/lib64/libffi.so.? ; then 62926 LIBFFI_LIB_FILE="${SYSROOT}/usr/lib64/libffi.so.?" 62927 elif test -e ${SYSROOT}/usr/lib/x86_64-linux-gnu/libffi.so.? ; then 62928 LIBFFI_LIB_FILE="${SYSROOT}/usr/lib/x86_64-linux-gnu/libffi.so.?" 62929 else 62930 as_fn_error $? "Could not locate libffi.so.? for bundling" "$LINENO" 5 62931 fi 62932 else 62933 # Fallback on the default /usr/lib dir 62934 if test -e ${SYSROOT}/usr/lib/libffi.so.? ; then 62935 LIBFFI_LIB_FILE="${SYSROOT}/usr/lib/libffi.so.?" 62936 else 62937 as_fn_error $? "Could not locate libffi.so.? for bundling" "$LINENO" 5 62938 fi 62939 fi 62940 fi 62941 # Make sure the wildcard is evaluated 62942 LIBFFI_LIB_FILE="$(ls ${LIBFFI_LIB_FILE})" 62943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${LIBFFI_LIB_FILE}" >&5 62944 $as_echo "${LIBFFI_LIB_FILE}" >&6; } 62945 fi 62946 fi 62947 62948 62949 62950 62951 62952 62953 62954 if [[ " $JVM_VARIANTS " =~ " zeroshark " ]] ; then 62955 # Extract the first word of "llvm-config", so it can be a program name with args. 62956 set dummy llvm-config; ac_word=$2 62957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 62958 $as_echo_n "checking for $ac_word... " >&6; } 62959 if ${ac_cv_prog_LLVM_CONFIG+:} false; then : 62960 $as_echo_n "(cached) " >&6 62961 else 62962 if test -n "$LLVM_CONFIG"; then 62963 ac_cv_prog_LLVM_CONFIG="$LLVM_CONFIG" # Let the user override the test. 62964 else 62965 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 62966 for as_dir in $PATH 62967 do 62968 IFS=$as_save_IFS 62969 test -z "$as_dir" && as_dir=. 62970 for ac_exec_ext in '' $ac_executable_extensions; do 62971 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 62972 ac_cv_prog_LLVM_CONFIG="llvm-config" 62973 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 62974 break 2 62975 fi 62976 done 62977 done 62978 IFS=$as_save_IFS 62979 62980 fi 62981 fi 62982 LLVM_CONFIG=$ac_cv_prog_LLVM_CONFIG 62983 if test -n "$LLVM_CONFIG"; then 62984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LLVM_CONFIG" >&5 62985 $as_echo "$LLVM_CONFIG" >&6; } 62986 else 62987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 62988 $as_echo "no" >&6; } 62989 fi 62990 62991 62992 62993 if test "x$LLVM_CONFIG" != xllvm-config; then 62994 as_fn_error $? "llvm-config not found in $PATH." "$LINENO" 5 62995 fi 62996 62997 llvm_components="jit mcjit engine nativecodegen native" 62998 unset LLVM_CFLAGS 62999 for flag in $("$LLVM_CONFIG" --cxxflags); do 63000 if echo "${flag}" | grep -q '^-[ID]'; then 63001 if test "${flag}" != "-D_DEBUG" ; then 63002 if test "${LLVM_CFLAGS}" != "" ; then 63003 LLVM_CFLAGS="${LLVM_CFLAGS} " 63004 fi 63005 LLVM_CFLAGS="${LLVM_CFLAGS}${flag}" 63006 fi 63007 fi 63008 done 63009 llvm_version=$("${LLVM_CONFIG}" --version | $SED 's/\.//; s/svn.*//') 63010 LLVM_CFLAGS="${LLVM_CFLAGS} -DSHARK_LLVM_VERSION=${llvm_version}" 63011 63012 unset LLVM_LDFLAGS 63013 for flag in $("${LLVM_CONFIG}" --ldflags); do 63014 if echo "${flag}" | grep -q '^-L'; then 63015 if test "${LLVM_LDFLAGS}" != ""; then 63016 LLVM_LDFLAGS="${LLVM_LDFLAGS} " 63017 fi 63018 LLVM_LDFLAGS="${LLVM_LDFLAGS}${flag}" 63019 fi 63020 done 63021 63022 unset LLVM_LIBS 63023 for flag in $("${LLVM_CONFIG}" --libs ${llvm_components}); do 63024 if echo "${flag}" | grep -q '^-l'; then 63025 if test "${LLVM_LIBS}" != ""; then 63026 LLVM_LIBS="${LLVM_LIBS} " 63027 fi 63028 LLVM_LIBS="${LLVM_LIBS}${flag}" 63029 fi 63030 done 63031 63032 # Due to https://llvm.org/bugs/show_bug.cgi?id=16902, llvm does not 63033 # always properly detect -ltinfo 63034 LLVM_LIBS="${LLVM_LIBS} -ltinfo" 63035 63036 63037 63038 63039 fi 63040 63041 63042 63043 # Check whether --with-libjpeg was given. 63044 if test "${with_libjpeg+set}" = set; then : 63045 withval=$with_libjpeg; 63046 fi 63047 63048 63049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for which libjpeg to use" >&5 63050 $as_echo_n "checking for which libjpeg to use... " >&6; } 63051 # default is bundled 63052 DEFAULT_LIBJPEG=bundled 63053 # if user didn't specify, use DEFAULT_LIBJPEG 63054 if test "x${with_libjpeg}" = "x"; then 63055 with_libjpeg=${DEFAULT_LIBJPEG} 63056 fi 63057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_libjpeg}" >&5 63058 $as_echo "${with_libjpeg}" >&6; } 63059 63060 if test "x${with_libjpeg}" = "xbundled"; then 63061 USE_EXTERNAL_LIBJPEG=false 63062 elif test "x${with_libjpeg}" = "xsystem"; then 63063 ac_fn_cxx_check_header_mongrel "$LINENO" "jpeglib.h" "ac_cv_header_jpeglib_h" "$ac_includes_default" 63064 if test "x$ac_cv_header_jpeglib_h" = xyes; then : 63065 63066 else 63067 as_fn_error $? "--with-libjpeg=system specified, but jpeglib.h not found!" "$LINENO" 5 63068 fi 63069 63070 63071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jpeg_CreateDecompress in -ljpeg" >&5 63072 $as_echo_n "checking for jpeg_CreateDecompress in -ljpeg... " >&6; } 63073 if ${ac_cv_lib_jpeg_jpeg_CreateDecompress+:} false; then : 63074 $as_echo_n "(cached) " >&6 63075 else 63076 ac_check_lib_save_LIBS=$LIBS 63077 LIBS="-ljpeg $LIBS" 63078 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 63079 /* end confdefs.h. */ 63080 63081 /* Override any GCC internal prototype to avoid an error. 63082 Use char because int might match the return type of a GCC 63083 builtin and then its argument prototype would still apply. */ 63084 #ifdef __cplusplus 63085 extern "C" 63086 #endif 63087 char jpeg_CreateDecompress (); 63088 int 63089 main () 63090 { 63091 return jpeg_CreateDecompress (); 63092 ; 63093 return 0; 63094 } 63095 _ACEOF 63096 if ac_fn_cxx_try_link "$LINENO"; then : 63097 ac_cv_lib_jpeg_jpeg_CreateDecompress=yes 63098 else 63099 ac_cv_lib_jpeg_jpeg_CreateDecompress=no 63100 fi 63101 rm -f core conftest.err conftest.$ac_objext \ 63102 conftest$ac_exeext conftest.$ac_ext 63103 LIBS=$ac_check_lib_save_LIBS 63104 fi 63105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jpeg_jpeg_CreateDecompress" >&5 63106 $as_echo "$ac_cv_lib_jpeg_jpeg_CreateDecompress" >&6; } 63107 if test "x$ac_cv_lib_jpeg_jpeg_CreateDecompress" = xyes; then : 63108 cat >>confdefs.h <<_ACEOF 63109 #define HAVE_LIBJPEG 1 63110 _ACEOF 63111 63112 LIBS="-ljpeg $LIBS" 63113 63114 else 63115 as_fn_error $? "--with-libjpeg=system specified, but no libjpeg found" "$LINENO" 5 63116 fi 63117 63118 63119 USE_EXTERNAL_LIBJPEG=true 63120 else 63121 as_fn_error $? "Invalid use of --with-libjpeg: ${with_libjpeg}, use 'system' or 'bundled'" "$LINENO" 5 63122 fi 63123 63124 63125 63126 63127 63128 # Check whether --with-giflib was given. 63129 if test "${with_giflib+set}" = set; then : 63130 withval=$with_giflib; 63131 fi 63132 63133 63134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for which giflib to use" >&5 63135 $as_echo_n "checking for which giflib to use... " >&6; } 63136 # default is bundled 63137 DEFAULT_GIFLIB=bundled 63138 # if user didn't specify, use DEFAULT_GIFLIB 63139 if test "x${with_giflib}" = "x"; then 63140 with_giflib=${DEFAULT_GIFLIB} 63141 fi 63142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_giflib}" >&5 63143 $as_echo "${with_giflib}" >&6; } 63144 63145 if test "x${with_giflib}" = "xbundled"; then 63146 USE_EXTERNAL_LIBGIF=false 63147 elif test "x${with_giflib}" = "xsystem"; then 63148 ac_fn_cxx_check_header_mongrel "$LINENO" "gif_lib.h" "ac_cv_header_gif_lib_h" "$ac_includes_default" 63149 if test "x$ac_cv_header_gif_lib_h" = xyes; then : 63150 63151 else 63152 as_fn_error $? "--with-giflib=system specified, but gif_lib.h not found!" "$LINENO" 5 63153 fi 63154 63155 63156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DGifGetCode in -lgif" >&5 63157 $as_echo_n "checking for DGifGetCode in -lgif... " >&6; } 63158 if ${ac_cv_lib_gif_DGifGetCode+:} false; then : 63159 $as_echo_n "(cached) " >&6 63160 else 63161 ac_check_lib_save_LIBS=$LIBS 63162 LIBS="-lgif $LIBS" 63163 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 63164 /* end confdefs.h. */ 63165 63166 /* Override any GCC internal prototype to avoid an error. 63167 Use char because int might match the return type of a GCC 63168 builtin and then its argument prototype would still apply. */ 63169 #ifdef __cplusplus 63170 extern "C" 63171 #endif 63172 char DGifGetCode (); 63173 int 63174 main () 63175 { 63176 return DGifGetCode (); 63177 ; 63178 return 0; 63179 } 63180 _ACEOF 63181 if ac_fn_cxx_try_link "$LINENO"; then : 63182 ac_cv_lib_gif_DGifGetCode=yes 63183 else 63184 ac_cv_lib_gif_DGifGetCode=no 63185 fi 63186 rm -f core conftest.err conftest.$ac_objext \ 63187 conftest$ac_exeext conftest.$ac_ext 63188 LIBS=$ac_check_lib_save_LIBS 63189 fi 63190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gif_DGifGetCode" >&5 63191 $as_echo "$ac_cv_lib_gif_DGifGetCode" >&6; } 63192 if test "x$ac_cv_lib_gif_DGifGetCode" = xyes; then : 63193 cat >>confdefs.h <<_ACEOF 63194 #define HAVE_LIBGIF 1 63195 _ACEOF 63196 63197 LIBS="-lgif $LIBS" 63198 63199 else 63200 as_fn_error $? "--with-giflib=system specified, but no giflib found!" "$LINENO" 5 63201 fi 63202 63203 63204 USE_EXTERNAL_LIBGIF=true 63205 else 63206 as_fn_error $? "Invalid value of --with-giflib: ${with_giflib}, use 'system' or 'bundled'" "$LINENO" 5 63207 fi 63208 63209 63210 63211 63212 63213 # Check whether --with-libpng was given. 63214 if test "${with_libpng+set}" = set; then : 63215 withval=$with_libpng; 63216 fi 63217 63218 63219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for which libpng to use" >&5 63220 $as_echo_n "checking for which libpng to use... " >&6; } 63221 63222 # default is bundled 63223 DEFAULT_LIBPNG=bundled 63224 # if user didn't specify, use DEFAULT_LIBPNG 63225 if test "x${with_libpng}" = "x"; then 63226 with_libpng=${DEFAULT_LIBPNG} 63227 fi 63228 63229 if test "x${with_libpng}" = "xbundled"; then 63230 USE_EXTERNAL_LIBPNG=false 63231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: bundled" >&5 63232 $as_echo "bundled" >&6; } 63233 elif test "x${with_libpng}" = "xsystem"; then 63234 63235 pkg_failed=no 63236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PNG" >&5 63237 $as_echo_n "checking for PNG... " >&6; } 63238 63239 if test -n "$PNG_CFLAGS"; then 63240 pkg_cv_PNG_CFLAGS="$PNG_CFLAGS" 63241 elif test -n "$PKG_CONFIG"; then 63242 if test -n "$PKG_CONFIG" && \ 63243 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpng\""; } >&5 63244 ($PKG_CONFIG --exists --print-errors "libpng") 2>&5 63245 ac_status=$? 63246 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 63247 test $ac_status = 0; }; then 63248 pkg_cv_PNG_CFLAGS=`$PKG_CONFIG --cflags "libpng" 2>/dev/null` 63249 else 63250 pkg_failed=yes 63251 fi 63252 else 63253 pkg_failed=untried 63254 fi 63255 if test -n "$PNG_LIBS"; then 63256 pkg_cv_PNG_LIBS="$PNG_LIBS" 63257 elif test -n "$PKG_CONFIG"; then 63258 if test -n "$PKG_CONFIG" && \ 63259 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpng\""; } >&5 63260 ($PKG_CONFIG --exists --print-errors "libpng") 2>&5 63261 ac_status=$? 63262 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 63263 test $ac_status = 0; }; then 63264 pkg_cv_PNG_LIBS=`$PKG_CONFIG --libs "libpng" 2>/dev/null` 63265 else 63266 pkg_failed=yes 63267 fi 63268 else 63269 pkg_failed=untried 63270 fi 63271 63272 63273 63274 if test $pkg_failed = yes; then 63275 63276 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 63277 _pkg_short_errors_supported=yes 63278 else 63279 _pkg_short_errors_supported=no 63280 fi 63281 if test $_pkg_short_errors_supported = yes; then 63282 PNG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libpng" 2>&1` 63283 else 63284 PNG_PKG_ERRORS=`$PKG_CONFIG --print-errors "libpng" 2>&1` 63285 fi 63286 # Put the nasty error message in config.log where it belongs 63287 echo "$PNG_PKG_ERRORS" >&5 63288 63289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 63290 $as_echo "no" >&6; } 63291 LIBPNG_FOUND=no 63292 elif test $pkg_failed = untried; then 63293 LIBPNG_FOUND=no 63294 else 63295 PNG_CFLAGS=$pkg_cv_PNG_CFLAGS 63296 PNG_LIBS=$pkg_cv_PNG_LIBS 63297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 63298 $as_echo "yes" >&6; } 63299 LIBPNG_FOUND=yes 63300 fi 63301 if test "x${LIBPNG_FOUND}" = "xyes"; then 63302 USE_EXTERNAL_LIBPNG=true 63303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: system" >&5 63304 $as_echo "system" >&6; } 63305 else 63306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: system not found" >&5 63307 $as_echo "system not found" >&6; } 63308 as_fn_error $? "--with-libpng=system specified, but no libpng found!" "$LINENO" 5 63309 fi 63310 else 63311 as_fn_error $? "Invalid value of --with-libpng: ${with_libpng}, use 'system' or 'bundled'" "$LINENO" 5 63312 fi 63313 63314 63315 63316 63317 63318 # Check whether --with-zlib was given. 63319 if test "${with_zlib+set}" = set; then : 63320 withval=$with_zlib; 63321 fi 63322 63323 63324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compress in -lz" >&5 63325 $as_echo_n "checking for compress in -lz... " >&6; } 63326 if ${ac_cv_lib_z_compress+:} false; then : 63327 $as_echo_n "(cached) " >&6 63328 else 63329 ac_check_lib_save_LIBS=$LIBS 63330 LIBS="-lz $LIBS" 63331 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 63332 /* end confdefs.h. */ 63333 63334 /* Override any GCC internal prototype to avoid an error. 63335 Use char because int might match the return type of a GCC 63336 builtin and then its argument prototype would still apply. */ 63337 #ifdef __cplusplus 63338 extern "C" 63339 #endif 63340 char compress (); 63341 int 63342 main () 63343 { 63344 return compress (); 63345 ; 63346 return 0; 63347 } 63348 _ACEOF 63349 if ac_fn_cxx_try_link "$LINENO"; then : 63350 ac_cv_lib_z_compress=yes 63351 else 63352 ac_cv_lib_z_compress=no 63353 fi 63354 rm -f core conftest.err conftest.$ac_objext \ 63355 conftest$ac_exeext conftest.$ac_ext 63356 LIBS=$ac_check_lib_save_LIBS 63357 fi 63358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_compress" >&5 63359 $as_echo "$ac_cv_lib_z_compress" >&6; } 63360 if test "x$ac_cv_lib_z_compress" = xyes; then : 63361 ZLIB_FOUND=yes 63362 else 63363 ZLIB_FOUND=no 63364 fi 63365 63366 63367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for which zlib to use" >&5 63368 $as_echo_n "checking for which zlib to use... " >&6; } 63369 63370 DEFAULT_ZLIB=system 63371 if test "x$OPENJDK_TARGET_OS" = xwindows; then 63372 # On windows default is bundled...on others default is system 63373 DEFAULT_ZLIB=bundled 63374 fi 63375 63376 if test "x${ZLIB_FOUND}" != "xyes"; then 63377 # If we don't find any system...set default to bundled 63378 DEFAULT_ZLIB=bundled 63379 fi 63380 63381 # If user didn't specify, use DEFAULT_ZLIB 63382 if test "x${with_zlib}" = "x"; then 63383 with_zlib=${DEFAULT_ZLIB} 63384 fi 63385 63386 if test "x${with_zlib}" = "xbundled"; then 63387 USE_EXTERNAL_LIBZ=false 63388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: bundled" >&5 63389 $as_echo "bundled" >&6; } 63390 elif test "x${with_zlib}" = "xsystem"; then 63391 if test "x${ZLIB_FOUND}" = "xyes"; then 63392 USE_EXTERNAL_LIBZ=true 63393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: system" >&5 63394 $as_echo "system" >&6; } 63395 else 63396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: system not found" >&5 63397 $as_echo "system not found" >&6; } 63398 as_fn_error $? "--with-zlib=system specified, but no zlib found!" "$LINENO" 5 63399 fi 63400 else 63401 as_fn_error $? "Invalid value for --with-zlib: ${with_zlib}, use 'system' or 'bundled'" "$LINENO" 5 63402 fi 63403 63404 63405 63406 63407 63408 # Check whether --with-lcms was given. 63409 if test "${with_lcms+set}" = set; then : 63410 withval=$with_lcms; 63411 fi 63412 63413 63414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for which lcms to use" >&5 63415 $as_echo_n "checking for which lcms to use... " >&6; } 63416 63417 DEFAULT_LCMS=bundled 63418 # If user didn't specify, use DEFAULT_LCMS 63419 if test "x${with_lcms}" = "x"; then 63420 with_lcms=${DEFAULT_LCMS} 63421 fi 63422 63423 if test "x${with_lcms}" = "xbundled"; then 63424 USE_EXTERNAL_LCMS=false 63425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: bundled" >&5 63426 $as_echo "bundled" >&6; } 63427 elif test "x${with_lcms}" = "xsystem"; then 63428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: system" >&5 63429 $as_echo "system" >&6; } 63430 63431 pkg_failed=no 63432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LCMS" >&5 63433 $as_echo_n "checking for LCMS... " >&6; } 63434 63435 if test -n "$LCMS_CFLAGS"; then 63436 pkg_cv_LCMS_CFLAGS="$LCMS_CFLAGS" 63437 elif test -n "$PKG_CONFIG"; then 63438 if test -n "$PKG_CONFIG" && \ 63439 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lcms2\""; } >&5 63440 ($PKG_CONFIG --exists --print-errors "lcms2") 2>&5 63441 ac_status=$? 63442 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 63443 test $ac_status = 0; }; then 63444 pkg_cv_LCMS_CFLAGS=`$PKG_CONFIG --cflags "lcms2" 2>/dev/null` 63445 else 63446 pkg_failed=yes 63447 fi 63448 else 63449 pkg_failed=untried 63450 fi 63451 if test -n "$LCMS_LIBS"; then 63452 pkg_cv_LCMS_LIBS="$LCMS_LIBS" 63453 elif test -n "$PKG_CONFIG"; then 63454 if test -n "$PKG_CONFIG" && \ 63455 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lcms2\""; } >&5 63456 ($PKG_CONFIG --exists --print-errors "lcms2") 2>&5 63457 ac_status=$? 63458 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 63459 test $ac_status = 0; }; then 63460 pkg_cv_LCMS_LIBS=`$PKG_CONFIG --libs "lcms2" 2>/dev/null` 63461 else 63462 pkg_failed=yes 63463 fi 63464 else 63465 pkg_failed=untried 63466 fi 63467 63468 63469 63470 if test $pkg_failed = yes; then 63471 63472 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 63473 _pkg_short_errors_supported=yes 63474 else 63475 _pkg_short_errors_supported=no 63476 fi 63477 if test $_pkg_short_errors_supported = yes; then 63478 LCMS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "lcms2" 2>&1` 63479 else 63480 LCMS_PKG_ERRORS=`$PKG_CONFIG --print-errors "lcms2" 2>&1` 63481 fi 63482 # Put the nasty error message in config.log where it belongs 63483 echo "$LCMS_PKG_ERRORS" >&5 63484 63485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 63486 $as_echo "no" >&6; } 63487 LCMS_FOUND=no 63488 elif test $pkg_failed = untried; then 63489 LCMS_FOUND=no 63490 else 63491 LCMS_CFLAGS=$pkg_cv_LCMS_CFLAGS 63492 LCMS_LIBS=$pkg_cv_LCMS_LIBS 63493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 63494 $as_echo "yes" >&6; } 63495 LCMS_FOUND=yes 63496 fi 63497 if test "x${LCMS_FOUND}" = "xyes"; then 63498 USE_EXTERNAL_LCMS=true 63499 else 63500 as_fn_error $? "--with-lcms=system specified, but no lcms found!" "$LINENO" 5 63501 fi 63502 else 63503 as_fn_error $? "Invalid value for --with-lcms: ${with_lcms}, use 'system' or 'bundled'" "$LINENO" 5 63504 fi 63505 63506 63507 63508 63509 63510 63511 63512 63513 63514 63515 63516 # Setup libm (the maths library) 63517 if test "x$OPENJDK_TARGET_OS" != "xwindows"; then 63518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cos in -lm" >&5 63519 $as_echo_n "checking for cos in -lm... " >&6; } 63520 if ${ac_cv_lib_m_cos+:} false; then : 63521 $as_echo_n "(cached) " >&6 63522 else 63523 ac_check_lib_save_LIBS=$LIBS 63524 LIBS="-lm $LIBS" 63525 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 63526 /* end confdefs.h. */ 63527 63528 /* Override any GCC internal prototype to avoid an error. 63529 Use char because int might match the return type of a GCC 63530 builtin and then its argument prototype would still apply. */ 63531 #ifdef __cplusplus 63532 extern "C" 63533 #endif 63534 char cos (); 63535 int 63536 main () 63537 { 63538 return cos (); 63539 ; 63540 return 0; 63541 } 63542 _ACEOF 63543 if ac_fn_cxx_try_link "$LINENO"; then : 63544 ac_cv_lib_m_cos=yes 63545 else 63546 ac_cv_lib_m_cos=no 63547 fi 63548 rm -f core conftest.err conftest.$ac_objext \ 63549 conftest$ac_exeext conftest.$ac_ext 63550 LIBS=$ac_check_lib_save_LIBS 63551 fi 63552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_cos" >&5 63553 $as_echo "$ac_cv_lib_m_cos" >&6; } 63554 if test "x$ac_cv_lib_m_cos" = xyes; then : 63555 cat >>confdefs.h <<_ACEOF 63556 #define HAVE_LIBM 1 63557 _ACEOF 63558 63559 LIBS="-lm $LIBS" 63560 63561 else 63562 63563 { $as_echo "$as_me:${as_lineno-$LINENO}: Maths library was not found" >&5 63564 $as_echo "$as_me: Maths library was not found" >&6;} 63565 63566 fi 63567 63568 LIBM="-lm" 63569 else 63570 LIBM="" 63571 fi 63572 63573 63574 # Setup libdl (for dynamic library loading) 63575 save_LIBS="$LIBS" 63576 LIBS="" 63577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 63578 $as_echo_n "checking for dlopen in -ldl... " >&6; } 63579 if ${ac_cv_lib_dl_dlopen+:} false; then : 63580 $as_echo_n "(cached) " >&6 63581 else 63582 ac_check_lib_save_LIBS=$LIBS 63583 LIBS="-ldl $LIBS" 63584 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 63585 /* end confdefs.h. */ 63586 63587 /* Override any GCC internal prototype to avoid an error. 63588 Use char because int might match the return type of a GCC 63589 builtin and then its argument prototype would still apply. */ 63590 #ifdef __cplusplus 63591 extern "C" 63592 #endif 63593 char dlopen (); 63594 int 63595 main () 63596 { 63597 return dlopen (); 63598 ; 63599 return 0; 63600 } 63601 _ACEOF 63602 if ac_fn_cxx_try_link "$LINENO"; then : 63603 ac_cv_lib_dl_dlopen=yes 63604 else 63605 ac_cv_lib_dl_dlopen=no 63606 fi 63607 rm -f core conftest.err conftest.$ac_objext \ 63608 conftest$ac_exeext conftest.$ac_ext 63609 LIBS=$ac_check_lib_save_LIBS 63610 fi 63611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 63612 $as_echo "$ac_cv_lib_dl_dlopen" >&6; } 63613 if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 63614 cat >>confdefs.h <<_ACEOF 63615 #define HAVE_LIBDL 1 63616 _ACEOF 63617 63618 LIBS="-ldl $LIBS" 63619 63620 fi 63621 63622 LIBDL="$LIBS" 63623 63624 LIBS="$save_LIBS" 63625 63626 # Deprecated libraries, keep the flags for backwards compatibility 63627 if test "x$OPENJDK_TARGET_OS" = "xwindows"; then 63628 63629 63630 # Check whether --with-dxsdk was given. 63631 if test "${with_dxsdk+set}" = set; then : 63632 withval=$with_dxsdk; { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Option --with-dxsdk is deprecated and will be ignored." >&5 63633 $as_echo "$as_me: WARNING: Option --with-dxsdk is deprecated and will be ignored." >&2;} 63634 fi 63635 63636 63637 63638 63639 # Check whether --with-dxsdk-lib was given. 63640 if test "${with_dxsdk_lib+set}" = set; then : 63641 withval=$with_dxsdk_lib; { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Option --with-dxsdk-lib is deprecated and will be ignored." >&5 63642 $as_echo "$as_me: WARNING: Option --with-dxsdk-lib is deprecated and will be ignored." >&2;} 63643 fi 63644 63645 63646 63647 63648 # Check whether --with-dxsdk-include was given. 63649 if test "${with_dxsdk_include+set}" = set; then : 63650 withval=$with_dxsdk_include; { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Option --with-dxsdk-include is deprecated and will be ignored." >&5 63651 $as_echo "$as_me: WARNING: Option --with-dxsdk-include is deprecated and will be ignored." >&2;} 63652 fi 63653 63654 63655 fi 63656 63657 # Control if libzip can use mmap. Available for purposes of overriding. 63658 LIBZIP_CAN_USE_MMAP=true 63659 63660 63661 63662 if test "$OPENJDK_TARGET_OS" = "solaris" && test "x$BUILD_GTEST" = "xtrue"; then 63663 # Find the root of the Solaris Studio installation from the compiler path 63664 SOLARIS_STUDIO_DIR="$(dirname $CC)/.." 63665 STLPORT_LIB="$SOLARIS_STUDIO_DIR/lib/stlport4$OPENJDK_TARGET_CPU_ISADIR/libstlport.so.1" 63666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libstlport.so.1" >&5 63667 $as_echo_n "checking for libstlport.so.1... " >&6; } 63668 if ! test -f "$STLPORT_LIB" && test "x$OPENJDK_TARGET_CPU_ISADIR" = "x/sparcv9"; then 63669 # SS12u3 has libstlport under 'stlport4/v9' instead of 'stlport4/sparcv9' 63670 STLPORT_LIB="$SOLARIS_STUDIO_DIR/lib/stlport4/v9/libstlport.so.1" 63671 fi 63672 if test -f "$STLPORT_LIB"; then 63673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, $STLPORT_LIB" >&5 63674 $as_echo "yes, $STLPORT_LIB" >&6; } 63675 63676 # Only process if variable expands to non-empty 63677 63678 if test "x$STLPORT_LIB" != x; then 63679 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 63680 63681 # Input might be given as Windows format, start by converting to 63682 # unix format. 63683 path="$STLPORT_LIB" 63684 new_path=`$CYGPATH -u "$path"` 63685 63686 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 63687 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 63688 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 63689 # "foo.exe" is OK but "foo" is an error. 63690 # 63691 # This test is therefore slightly more accurate than "test -f" to check for file precense. 63692 # It is also a way to make sure we got the proper file name for the real test later on. 63693 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 63694 if test "x$test_shortpath" = x; then 63695 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of STLPORT_LIB, which resolves as \"$path\", is invalid." >&5 63696 $as_echo "$as_me: The path of STLPORT_LIB, which resolves as \"$path\", is invalid." >&6;} 63697 as_fn_error $? "Cannot locate the the path of STLPORT_LIB" "$LINENO" 5 63698 fi 63699 63700 # Call helper function which possibly converts this using DOS-style short mode. 63701 # If so, the updated path is stored in $new_path. 63702 63703 input_path="$new_path" 63704 # Check if we need to convert this using DOS-style short mode. If the path 63705 # contains just simple characters, use it. Otherwise (spaces, weird characters), 63706 # take no chances and rewrite it. 63707 # Note: m4 eats our [], so we need to use [ and ] instead. 63708 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 63709 if test "x$has_forbidden_chars" != x; then 63710 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 63711 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 63712 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 63713 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 63714 # Going to short mode and back again did indeed matter. Since short mode is 63715 # case insensitive, let's make it lowercase to improve readability. 63716 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 63717 # Now convert it back to Unix-style (cygpath) 63718 input_path=`$CYGPATH -u "$shortmode_path"` 63719 new_path="$input_path" 63720 fi 63721 fi 63722 63723 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 63724 if test "x$test_cygdrive_prefix" = x; then 63725 # As a simple fix, exclude /usr/bin since it's not a real path. 63726 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 63727 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 63728 # a path prefixed by /cygdrive for fixpath to work. 63729 new_path="$CYGWIN_ROOT_PATH$input_path" 63730 fi 63731 fi 63732 63733 63734 if test "x$path" != "x$new_path"; then 63735 STLPORT_LIB="$new_path" 63736 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting STLPORT_LIB to \"$new_path\"" >&5 63737 $as_echo "$as_me: Rewriting STLPORT_LIB to \"$new_path\"" >&6;} 63738 fi 63739 63740 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 63741 63742 path="$STLPORT_LIB" 63743 has_colon=`$ECHO $path | $GREP ^.:` 63744 new_path="$path" 63745 if test "x$has_colon" = x; then 63746 # Not in mixed or Windows style, start by that. 63747 new_path=`cmd //c echo $path` 63748 fi 63749 63750 63751 input_path="$new_path" 63752 # Check if we need to convert this using DOS-style short mode. If the path 63753 # contains just simple characters, use it. Otherwise (spaces, weird characters), 63754 # take no chances and rewrite it. 63755 # Note: m4 eats our [], so we need to use [ and ] instead. 63756 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 63757 if test "x$has_forbidden_chars" != x; then 63758 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 63759 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 63760 fi 63761 63762 63763 windows_path="$new_path" 63764 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 63765 unix_path=`$CYGPATH -u "$windows_path"` 63766 new_path="$unix_path" 63767 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 63768 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 63769 new_path="$unix_path" 63770 fi 63771 63772 if test "x$path" != "x$new_path"; then 63773 STLPORT_LIB="$new_path" 63774 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting STLPORT_LIB to \"$new_path\"" >&5 63775 $as_echo "$as_me: Rewriting STLPORT_LIB to \"$new_path\"" >&6;} 63776 fi 63777 63778 # Save the first 10 bytes of this path to the storage, so fixpath can work. 63779 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 63780 63781 else 63782 # We're on a unix platform. Hooray! :) 63783 path="$STLPORT_LIB" 63784 has_space=`$ECHO "$path" | $GREP " "` 63785 if test "x$has_space" != x; then 63786 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of STLPORT_LIB, which resolves as \"$path\", is invalid." >&5 63787 $as_echo "$as_me: The path of STLPORT_LIB, which resolves as \"$path\", is invalid." >&6;} 63788 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 63789 fi 63790 63791 # Use eval to expand a potential ~ 63792 eval path="$path" 63793 if test ! -f "$path" && test ! -d "$path"; then 63794 as_fn_error $? "The path of STLPORT_LIB, which resolves as \"$path\", is not found." "$LINENO" 5 63795 fi 63796 63797 if test -d "$path"; then 63798 STLPORT_LIB="`cd "$path"; $THEPWDCMD -L`" 63799 else 63800 dir="`$DIRNAME "$path"`" 63801 base="`$BASENAME "$path"`" 63802 STLPORT_LIB="`cd "$dir"; $THEPWDCMD -L`/$base" 63803 fi 63804 fi 63805 fi 63806 63807 else 63808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, not found at $STLPORT_LIB" >&5 63809 $as_echo "no, not found at $STLPORT_LIB" >&6; } 63810 as_fn_error $? "Failed to find libstlport.so.1, cannot build Hotspot gtests" "$LINENO" 5 63811 fi 63812 63813 fi 63814 63815 63816 63817 63818 63819 63820 63821 63822 63823 63824 63825 63826 63827 63828 ############################################################################### 63829 # 63830 # We need to do some final tweaking, when everything else is done. 63831 # 63832 ############################################################################### 63833 63834 63835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if elliptic curve crypto implementation is present" >&5 63836 $as_echo_n "checking if elliptic curve crypto implementation is present... " >&6; } 63837 63838 if test -d "${SRC_ROOT}/jdk/src/jdk.crypto.ec/share/native/libsunec/impl"; then 63839 ENABLE_INTREE_EC=yes 63840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 63841 $as_echo "yes" >&6; } 63842 else 63843 ENABLE_INTREE_EC=no 63844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 63845 $as_echo "no" >&6; } 63846 fi 63847 63848 63849 63850 63851 # Check whether --enable-jtreg-failure-handler was given. 63852 if test "${enable_jtreg_failure_handler+set}" = set; then : 63853 enableval=$enable_jtreg_failure_handler; 63854 fi 63855 63856 63857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if jtreg failure handler should be built" >&5 63858 $as_echo_n "checking if jtreg failure handler should be built... " >&6; } 63859 63860 if test "x$enable_jtreg_failure_handler" = "xyes"; then 63861 if test "x$JT_HOME" = "x"; then 63862 as_fn_error $? "Cannot enable jtreg failure handler without jtreg." "$LINENO" 5 63863 else 63864 BUILD_FAILURE_HANDLER=true 63865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, forced" >&5 63866 $as_echo "yes, forced" >&6; } 63867 fi 63868 elif test "x$enable_jtreg_failure_handler" = "xno"; then 63869 BUILD_FAILURE_HANDLER=false 63870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, forced" >&5 63871 $as_echo "no, forced" >&6; } 63872 elif test "x$enable_jtreg_failure_handler" = "xauto" \ 63873 || test "x$enable_jtreg_failure_handler" = "x"; then 63874 if test "x$JT_HOME" = "x"; then 63875 BUILD_FAILURE_HANDLER=false 63876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, missing jtreg" >&5 63877 $as_echo "no, missing jtreg" >&6; } 63878 else 63879 BUILD_FAILURE_HANDLER=true 63880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, jtreg present" >&5 63881 $as_echo "yes, jtreg present" >&6; } 63882 fi 63883 else 63884 as_fn_error $? "Invalid value for --enable-jtreg-failure-handler: $enable_jtreg_failure_handler" "$LINENO" 5 63885 fi 63886 63887 63888 63889 63890 # Check whether --enable-generate-classlist was given. 63891 if test "${enable_generate_classlist+set}" = set; then : 63892 enableval=$enable_generate_classlist; 63893 fi 63894 63895 63896 # Check if it's likely that it's possible to generate the classlist. Depending 63897 # on exact jvm configuration it could be possible anyway. 63898 if [[ " $JVM_VARIANTS " =~ " server " ]] || [[ " $JVM_VARIANTS " =~ " client " ]] ; then 63899 ENABLE_GENERATE_CLASSLIST_POSSIBLE="true" 63900 else 63901 ENABLE_GENERATE_CLASSLIST_POSSIBLE="false" 63902 fi 63903 63904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the CDS classlist generation should be enabled" >&5 63905 $as_echo_n "checking if the CDS classlist generation should be enabled... " >&6; } 63906 if test "x$enable_generate_classlist" = "xyes"; then 63907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, forced" >&5 63908 $as_echo "yes, forced" >&6; } 63909 ENABLE_GENERATE_CLASSLIST="true" 63910 if test "x$ENABLE_GENERATE_CLASSLIST_POSSIBLE" = "xfalse"; then 63911 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Generation of classlist might not be possible with JVM Variants $JVM_VARIANTS" >&5 63912 $as_echo "$as_me: WARNING: Generation of classlist might not be possible with JVM Variants $JVM_VARIANTS" >&2;} 63913 fi 63914 elif test "x$enable_generate_classlist" = "xno"; then 63915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, forced" >&5 63916 $as_echo "no, forced" >&6; } 63917 ENABLE_GENERATE_CLASSLIST="false" 63918 elif test "x$enable_generate_classlist" = "x"; then 63919 if test "x$ENABLE_GENERATE_CLASSLIST_POSSIBLE" = "xtrue"; then 63920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 63921 $as_echo "yes" >&6; } 63922 ENABLE_GENERATE_CLASSLIST="true" 63923 else 63924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 63925 $as_echo "no" >&6; } 63926 ENABLE_GENERATE_CLASSLIST="false" 63927 fi 63928 else 63929 as_fn_error $? "Invalid value for --enable-generate-classlist: $enable_generate_classlist" "$LINENO" 5 63930 fi 63931 63932 63933 63934 63935 ############################################################################### 63936 # 63937 # Configure parts of the build that only affect the build performance, 63938 # not the result. 63939 # 63940 ############################################################################### 63941 63942 63943 # How many cores do we have on this build system? 63944 63945 # Check whether --with-num-cores was given. 63946 if test "${with_num_cores+set}" = set; then : 63947 withval=$with_num_cores; 63948 fi 63949 63950 if test "x$with_num_cores" = x; then 63951 # The number of cores were not specified, try to probe them. 63952 63953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for number of cores" >&5 63954 $as_echo_n "checking for number of cores... " >&6; } 63955 NUM_CORES=1 63956 FOUND_CORES=no 63957 63958 if test -f /proc/cpuinfo; then 63959 # Looks like a Linux (or cygwin) system 63960 NUM_CORES=`cat /proc/cpuinfo | grep -c processor` 63961 FOUND_CORES=yes 63962 elif test -x /usr/sbin/psrinfo; then 63963 # Looks like a Solaris system 63964 NUM_CORES=`LC_MESSAGES=C /usr/sbin/psrinfo -v | grep -c on-line` 63965 FOUND_CORES=yes 63966 elif test -x /usr/sbin/sysctl; then 63967 # Looks like a MacOSX system 63968 NUM_CORES=`/usr/sbin/sysctl -n hw.ncpu` 63969 FOUND_CORES=yes 63970 elif test "x$OPENJDK_BUILD_OS" = xaix ; then 63971 NUM_CORES=`/usr/sbin/prtconf | grep "^Number Of Processors" | awk '{ print $4 }'` 63972 FOUND_CORES=yes 63973 elif test -n "$NUMBER_OF_PROCESSORS"; then 63974 # On windows, look in the env 63975 NUM_CORES=$NUMBER_OF_PROCESSORS 63976 FOUND_CORES=yes 63977 fi 63978 63979 if test "x$FOUND_CORES" = xyes; then 63980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NUM_CORES" >&5 63981 $as_echo "$NUM_CORES" >&6; } 63982 else 63983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: could not detect number of cores, defaulting to 1" >&5 63984 $as_echo "could not detect number of cores, defaulting to 1" >&6; } 63985 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This will disable all parallelism from build!" >&5 63986 $as_echo "$as_me: WARNING: This will disable all parallelism from build!" >&2;} 63987 fi 63988 63989 else 63990 NUM_CORES=$with_num_cores 63991 fi 63992 63993 63994 63995 # How much memory do we have on this build system? 63996 63997 # Check whether --with-memory-size was given. 63998 if test "${with_memory_size+set}" = set; then : 63999 withval=$with_memory_size; 64000 fi 64001 64002 if test "x$with_memory_size" = x; then 64003 # The memory size was not specified, try to probe it. 64004 64005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for memory size" >&5 64006 $as_echo_n "checking for memory size... " >&6; } 64007 # Default to 1024 MB 64008 MEMORY_SIZE=1024 64009 FOUND_MEM=no 64010 64011 if test -f /proc/meminfo; then 64012 # Looks like a Linux (or cygwin) system 64013 MEMORY_SIZE=`cat /proc/meminfo | grep MemTotal | awk '{print $2}'` 64014 MEMORY_SIZE=`expr $MEMORY_SIZE / 1024` 64015 FOUND_MEM=yes 64016 elif test -x /usr/sbin/prtconf; then 64017 # Looks like a Solaris or AIX system 64018 MEMORY_SIZE=`/usr/sbin/prtconf 2> /dev/null | grep "^Memory [Ss]ize" | awk '{ print $3 }'` 64019 FOUND_MEM=yes 64020 elif test -x /usr/sbin/sysctl; then 64021 # Looks like a MacOSX system 64022 MEMORY_SIZE=`/usr/sbin/sysctl -n hw.memsize` 64023 MEMORY_SIZE=`expr $MEMORY_SIZE / 1024 / 1024` 64024 FOUND_MEM=yes 64025 elif test "x$OPENJDK_BUILD_OS" = xwindows; then 64026 # Windows, but without cygwin 64027 MEMORY_SIZE=`wmic computersystem get totalphysicalmemory -value | grep = | cut -d "=" -f 2-` 64028 MEMORY_SIZE=`expr $MEMORY_SIZE / 1024 / 1024` 64029 FOUND_MEM=yes 64030 fi 64031 64032 if test "x$FOUND_MEM" = xyes; then 64033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MEMORY_SIZE MB" >&5 64034 $as_echo "$MEMORY_SIZE MB" >&6; } 64035 else 64036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: could not detect memory size, defaulting to $MEMORY_SIZE MB" >&5 64037 $as_echo "could not detect memory size, defaulting to $MEMORY_SIZE MB" >&6; } 64038 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This might seriously impact build performance!" >&5 64039 $as_echo "$as_me: WARNING: This might seriously impact build performance!" >&2;} 64040 fi 64041 64042 else 64043 MEMORY_SIZE=$with_memory_size 64044 fi 64045 64046 64047 64048 # Provide a decent default number of parallel jobs for make depending on 64049 # number of cores, amount of memory and machine architecture. 64050 64051 # Check whether --with-jobs was given. 64052 if test "${with_jobs+set}" = set; then : 64053 withval=$with_jobs; 64054 fi 64055 64056 if test "x$with_jobs" = x; then 64057 # Number of jobs was not specified, calculate. 64058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for appropriate number of jobs to run in parallel" >&5 64059 $as_echo_n "checking for appropriate number of jobs to run in parallel... " >&6; } 64060 # Approximate memory in GB. 64061 memory_gb=`expr $MEMORY_SIZE / 1024` 64062 # Pick the lowest of memory in gb and number of cores. 64063 if test "$memory_gb" -lt "$NUM_CORES"; then 64064 JOBS="$memory_gb" 64065 else 64066 JOBS="$NUM_CORES" 64067 fi 64068 if test "$JOBS" -eq "0"; then 64069 JOBS=1 64070 fi 64071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JOBS" >&5 64072 $as_echo "$JOBS" >&6; } 64073 else 64074 JOBS=$with_jobs 64075 fi 64076 64077 64078 64079 # The number of test jobs will be chosen automatically if TEST_JOBS is 0 64080 64081 # Check whether --with-test-jobs was given. 64082 if test "${with_test_jobs+set}" = set; then : 64083 withval=$with_test_jobs; 64084 fi 64085 64086 if test "x$with_test_jobs" = x; then 64087 TEST_JOBS=0 64088 else 64089 TEST_JOBS=$with_test_jobs 64090 fi 64091 64092 64093 64094 # Setup arguments for the boot jdk (after cores and memory have been setup) 64095 64096 ############################################################################## 64097 # 64098 # Specify jvm options for anything that is run with the Boot JDK. 64099 # Not all JVM:s accept the same arguments on the command line. 64100 # 64101 64102 # Check whether --with-boot-jdk-jvmargs was given. 64103 if test "${with_boot_jdk_jvmargs+set}" = set; then : 64104 withval=$with_boot_jdk_jvmargs; 64105 fi 64106 64107 64108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking flags for boot jdk java command " >&5 64109 $as_echo_n "checking flags for boot jdk java command ... " >&6; } 64110 64111 # Disable special log output when a debug build is used as Boot JDK... 64112 64113 $ECHO "Check if jvm arg is ok: -XX:-PrintVMOptions -XX:-UnlockDiagnosticVMOptions -XX:-LogVMOutput" >&5 64114 $ECHO "Command: $JAVA -XX:-PrintVMOptions -XX:-UnlockDiagnosticVMOptions -XX:-LogVMOutput -version" >&5 64115 OUTPUT=`$JAVA -XX:-PrintVMOptions -XX:-UnlockDiagnosticVMOptions -XX:-LogVMOutput -version 2>&1` 64116 FOUND_WARN=`$ECHO "$OUTPUT" | $GREP -i warn` 64117 FOUND_VERSION=`$ECHO $OUTPUT | $GREP " version \""` 64118 if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then 64119 boot_jdk_jvmargs="$boot_jdk_jvmargs -XX:-PrintVMOptions -XX:-UnlockDiagnosticVMOptions -XX:-LogVMOutput" 64120 JVM_ARG_OK=true 64121 else 64122 $ECHO "Arg failed:" >&5 64123 $ECHO "$OUTPUT" >&5 64124 JVM_ARG_OK=false 64125 fi 64126 64127 64128 # Force en-US environment 64129 64130 $ECHO "Check if jvm arg is ok: -Duser.language=en -Duser.country=US" >&5 64131 $ECHO "Command: $JAVA -Duser.language=en -Duser.country=US -version" >&5 64132 OUTPUT=`$JAVA -Duser.language=en -Duser.country=US -version 2>&1` 64133 FOUND_WARN=`$ECHO "$OUTPUT" | $GREP -i warn` 64134 FOUND_VERSION=`$ECHO $OUTPUT | $GREP " version \""` 64135 if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then 64136 boot_jdk_jvmargs="$boot_jdk_jvmargs -Duser.language=en -Duser.country=US" 64137 JVM_ARG_OK=true 64138 else 64139 $ECHO "Arg failed:" >&5 64140 $ECHO "$OUTPUT" >&5 64141 JVM_ARG_OK=false 64142 fi 64143 64144 64145 # Apply user provided options. 64146 64147 $ECHO "Check if jvm arg is ok: $with_boot_jdk_jvmargs" >&5 64148 $ECHO "Command: $JAVA $with_boot_jdk_jvmargs -version" >&5 64149 OUTPUT=`$JAVA $with_boot_jdk_jvmargs -version 2>&1` 64150 FOUND_WARN=`$ECHO "$OUTPUT" | $GREP -i warn` 64151 FOUND_VERSION=`$ECHO $OUTPUT | $GREP " version \""` 64152 if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then 64153 boot_jdk_jvmargs="$boot_jdk_jvmargs $with_boot_jdk_jvmargs" 64154 JVM_ARG_OK=true 64155 else 64156 $ECHO "Arg failed:" >&5 64157 $ECHO "$OUTPUT" >&5 64158 JVM_ARG_OK=false 64159 fi 64160 64161 64162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $boot_jdk_jvmargs" >&5 64163 $as_echo "$boot_jdk_jvmargs" >&6; } 64164 64165 # For now, general JAVA_FLAGS are the same as the boot jdk jvmargs 64166 JAVA_FLAGS=$boot_jdk_jvmargs 64167 64168 64169 64170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking flags for boot jdk java command for big workloads" >&5 64171 $as_echo_n "checking flags for boot jdk java command for big workloads... " >&6; } 64172 64173 # Starting amount of heap memory. 64174 64175 $ECHO "Check if jvm arg is ok: -Xms64M" >&5 64176 $ECHO "Command: $JAVA -Xms64M -version" >&5 64177 OUTPUT=`$JAVA -Xms64M -version 2>&1` 64178 FOUND_WARN=`$ECHO "$OUTPUT" | $GREP -i warn` 64179 FOUND_VERSION=`$ECHO $OUTPUT | $GREP " version \""` 64180 if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then 64181 boot_jdk_jvmargs_big="$boot_jdk_jvmargs_big -Xms64M" 64182 JVM_ARG_OK=true 64183 else 64184 $ECHO "Arg failed:" >&5 64185 $ECHO "$OUTPUT" >&5 64186 JVM_ARG_OK=false 64187 fi 64188 64189 BOOTCYCLE_JVM_ARGS_BIG=-Xms64M 64190 64191 # Maximum amount of heap memory and stack size. 64192 JVM_HEAP_LIMIT_32="1024" 64193 # Running a 64 bit JVM allows for and requires a bigger heap 64194 JVM_HEAP_LIMIT_64="1600" 64195 STACK_SIZE_32=768 64196 STACK_SIZE_64=1536 64197 JVM_HEAP_LIMIT_GLOBAL=`expr $MEMORY_SIZE / 2` 64198 if test "$JVM_HEAP_LIMIT_GLOBAL" -lt "$JVM_HEAP_LIMIT_32"; then 64199 JVM_HEAP_LIMIT_32=$JVM_HEAP_LIMIT_GLOBAL 64200 fi 64201 if test "$JVM_HEAP_LIMIT_GLOBAL" -lt "$JVM_HEAP_LIMIT_64"; then 64202 JVM_HEAP_LIMIT_64=$JVM_HEAP_LIMIT_GLOBAL 64203 fi 64204 if test "$JVM_HEAP_LIMIT_GLOBAL" -lt "512"; then 64205 JVM_HEAP_LIMIT_32=512 64206 JVM_HEAP_LIMIT_64=512 64207 fi 64208 64209 if test "x$BOOT_JDK_BITS" = "x32"; then 64210 STACK_SIZE=$STACK_SIZE_32 64211 JVM_MAX_HEAP=$JVM_HEAP_LIMIT_32 64212 else 64213 STACK_SIZE=$STACK_SIZE_64 64214 JVM_MAX_HEAP=$JVM_HEAP_LIMIT_64 64215 fi 64216 64217 $ECHO "Check if jvm arg is ok: -Xmx${JVM_MAX_HEAP}M" >&5 64218 $ECHO "Command: $JAVA -Xmx${JVM_MAX_HEAP}M -version" >&5 64219 OUTPUT=`$JAVA -Xmx${JVM_MAX_HEAP}M -version 2>&1` 64220 FOUND_WARN=`$ECHO "$OUTPUT" | $GREP -i warn` 64221 FOUND_VERSION=`$ECHO $OUTPUT | $GREP " version \""` 64222 if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then 64223 boot_jdk_jvmargs_big="$boot_jdk_jvmargs_big -Xmx${JVM_MAX_HEAP}M" 64224 JVM_ARG_OK=true 64225 else 64226 $ECHO "Arg failed:" >&5 64227 $ECHO "$OUTPUT" >&5 64228 JVM_ARG_OK=false 64229 fi 64230 64231 64232 $ECHO "Check if jvm arg is ok: -XX:ThreadStackSize=$STACK_SIZE" >&5 64233 $ECHO "Command: $JAVA -XX:ThreadStackSize=$STACK_SIZE -version" >&5 64234 OUTPUT=`$JAVA -XX:ThreadStackSize=$STACK_SIZE -version 2>&1` 64235 FOUND_WARN=`$ECHO "$OUTPUT" | $GREP -i warn` 64236 FOUND_VERSION=`$ECHO $OUTPUT | $GREP " version \""` 64237 if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then 64238 boot_jdk_jvmargs_big="$boot_jdk_jvmargs_big -XX:ThreadStackSize=$STACK_SIZE" 64239 JVM_ARG_OK=true 64240 else 64241 $ECHO "Arg failed:" >&5 64242 $ECHO "$OUTPUT" >&5 64243 JVM_ARG_OK=false 64244 fi 64245 64246 64247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $boot_jdk_jvmargs_big" >&5 64248 $as_echo "$boot_jdk_jvmargs_big" >&6; } 64249 64250 JAVA_FLAGS_BIG=$boot_jdk_jvmargs_big 64251 64252 64253 if test "x$OPENJDK_TARGET_CPU_BITS" = "x32"; then 64254 BOOTCYCLE_MAX_HEAP=$JVM_HEAP_LIMIT_32 64255 BOOTCYCLE_STACK_SIZE=$STACK_SIZE_32 64256 else 64257 BOOTCYCLE_MAX_HEAP=$JVM_HEAP_LIMIT_64 64258 BOOTCYCLE_STACK_SIZE=$STACK_SIZE_64 64259 fi 64260 BOOTCYCLE_JVM_ARGS_BIG="$BOOTCYCLE_JVM_ARGS_BIG -Xmx${BOOTCYCLE_MAX_HEAP}M" 64261 BOOTCYCLE_JVM_ARGS_BIG="$BOOTCYCLE_JVM_ARGS_BIG -XX:ThreadStackSize=$BOOTCYCLE_STACK_SIZE" 64262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking flags for bootcycle boot jdk java command for big workloads" >&5 64263 $as_echo_n "checking flags for bootcycle boot jdk java command for big workloads... " >&6; } 64264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOTCYCLE_JVM_ARGS_BIG" >&5 64265 $as_echo "$BOOTCYCLE_JVM_ARGS_BIG" >&6; } 64266 64267 64268 # By default, the main javac compilations use big 64269 JAVA_FLAGS_JAVAC="$JAVA_FLAGS_BIG" 64270 64271 64272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking flags for boot jdk java command for small workloads" >&5 64273 $as_echo_n "checking flags for boot jdk java command for small workloads... " >&6; } 64274 64275 # Use serial gc for small short lived tools if possible 64276 64277 $ECHO "Check if jvm arg is ok: -XX:+UseSerialGC" >&5 64278 $ECHO "Command: $JAVA -XX:+UseSerialGC -version" >&5 64279 OUTPUT=`$JAVA -XX:+UseSerialGC -version 2>&1` 64280 FOUND_WARN=`$ECHO "$OUTPUT" | $GREP -i warn` 64281 FOUND_VERSION=`$ECHO $OUTPUT | $GREP " version \""` 64282 if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then 64283 boot_jdk_jvmargs_small="$boot_jdk_jvmargs_small -XX:+UseSerialGC" 64284 JVM_ARG_OK=true 64285 else 64286 $ECHO "Arg failed:" >&5 64287 $ECHO "$OUTPUT" >&5 64288 JVM_ARG_OK=false 64289 fi 64290 64291 64292 $ECHO "Check if jvm arg is ok: -Xms32M" >&5 64293 $ECHO "Command: $JAVA -Xms32M -version" >&5 64294 OUTPUT=`$JAVA -Xms32M -version 2>&1` 64295 FOUND_WARN=`$ECHO "$OUTPUT" | $GREP -i warn` 64296 FOUND_VERSION=`$ECHO $OUTPUT | $GREP " version \""` 64297 if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then 64298 boot_jdk_jvmargs_small="$boot_jdk_jvmargs_small -Xms32M" 64299 JVM_ARG_OK=true 64300 else 64301 $ECHO "Arg failed:" >&5 64302 $ECHO "$OUTPUT" >&5 64303 JVM_ARG_OK=false 64304 fi 64305 64306 64307 $ECHO "Check if jvm arg is ok: -Xmx512M" >&5 64308 $ECHO "Command: $JAVA -Xmx512M -version" >&5 64309 OUTPUT=`$JAVA -Xmx512M -version 2>&1` 64310 FOUND_WARN=`$ECHO "$OUTPUT" | $GREP -i warn` 64311 FOUND_VERSION=`$ECHO $OUTPUT | $GREP " version \""` 64312 if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then 64313 boot_jdk_jvmargs_small="$boot_jdk_jvmargs_small -Xmx512M" 64314 JVM_ARG_OK=true 64315 else 64316 $ECHO "Arg failed:" >&5 64317 $ECHO "$OUTPUT" >&5 64318 JVM_ARG_OK=false 64319 fi 64320 64321 64322 $ECHO "Check if jvm arg is ok: -XX:TieredStopAtLevel=1" >&5 64323 $ECHO "Command: $JAVA -XX:TieredStopAtLevel=1 -version" >&5 64324 OUTPUT=`$JAVA -XX:TieredStopAtLevel=1 -version 2>&1` 64325 FOUND_WARN=`$ECHO "$OUTPUT" | $GREP -i warn` 64326 FOUND_VERSION=`$ECHO $OUTPUT | $GREP " version \""` 64327 if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then 64328 boot_jdk_jvmargs_small="$boot_jdk_jvmargs_small -XX:TieredStopAtLevel=1" 64329 JVM_ARG_OK=true 64330 else 64331 $ECHO "Arg failed:" >&5 64332 $ECHO "$OUTPUT" >&5 64333 JVM_ARG_OK=false 64334 fi 64335 64336 64337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $boot_jdk_jvmargs_small" >&5 64338 $as_echo "$boot_jdk_jvmargs_small" >&6; } 64339 64340 JAVA_FLAGS_SMALL=$boot_jdk_jvmargs_small 64341 64342 64343 JAVA_TOOL_FLAGS_SMALL="" 64344 for f in $JAVA_FLAGS_SMALL; do 64345 JAVA_TOOL_FLAGS_SMALL="$JAVA_TOOL_FLAGS_SMALL -J$f" 64346 done 64347 64348 64349 64350 # Setup smart javac (after cores and memory have been setup) 64351 64352 64353 # Check whether --with-sjavac-server-java was given. 64354 if test "${with_sjavac_server_java+set}" = set; then : 64355 withval=$with_sjavac_server_java; 64356 fi 64357 64358 64359 if test "x$with_sjavac_server_java" != x; then 64360 SJAVAC_SERVER_JAVA="$with_sjavac_server_java" 64361 FOUND_VERSION=`$SJAVAC_SERVER_JAVA -version 2>&1 | grep " version \""` 64362 if test "x$FOUND_VERSION" = x; then 64363 as_fn_error $? "Could not execute server java: $SJAVAC_SERVER_JAVA" "$LINENO" 5 64364 fi 64365 else 64366 SJAVAC_SERVER_JAVA="$JAVA" 64367 fi 64368 64369 64370 if test "$MEMORY_SIZE" -gt "3000"; then 64371 64372 $ECHO "Check if jvm arg is ok: -d64" >&5 64373 $ECHO "Command: $SJAVAC_SERVER_JAVA -d64 -version" >&5 64374 OUTPUT=`$SJAVAC_SERVER_JAVA -d64 -version 2>&1` 64375 FOUND_WARN=`$ECHO "$OUTPUT" | $GREP -i warn` 64376 FOUND_VERSION=`$ECHO $OUTPUT | $GREP " version \""` 64377 if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then 64378 SJAVAC_SERVER_JAVA_FLAGS="$SJAVAC_SERVER_JAVA_FLAGS -d64" 64379 JVM_ARG_OK=true 64380 else 64381 $ECHO "Arg failed:" >&5 64382 $ECHO "$OUTPUT" >&5 64383 JVM_ARG_OK=false 64384 fi 64385 64386 if test "$JVM_ARG_OK" = true; then 64387 JVM_64BIT=true 64388 JVM_ARG_OK=false 64389 fi 64390 fi 64391 64392 MX_VALUE=`expr $MEMORY_SIZE / 2` 64393 if test "$JVM_64BIT" = true; then 64394 # Set ms lower than mx since more than one instance of the server might 64395 # get launched at the same time before they figure out which instance won. 64396 MS_VALUE=512 64397 if test "$MX_VALUE" -gt "2048"; then 64398 MX_VALUE=2048 64399 fi 64400 else 64401 MS_VALUE=256 64402 if test "$MX_VALUE" -gt "1500"; then 64403 MX_VALUE=1500 64404 fi 64405 fi 64406 if test "$MX_VALUE" -lt "512"; then 64407 MX_VALUE=512 64408 fi 64409 64410 $ECHO "Check if jvm arg is ok: -Xms${MS_VALUE}M -Xmx${MX_VALUE}M" >&5 64411 $ECHO "Command: $SJAVAC_SERVER_JAVA -Xms${MS_VALUE}M -Xmx${MX_VALUE}M -version" >&5 64412 OUTPUT=`$SJAVAC_SERVER_JAVA -Xms${MS_VALUE}M -Xmx${MX_VALUE}M -version 2>&1` 64413 FOUND_WARN=`$ECHO "$OUTPUT" | $GREP -i warn` 64414 FOUND_VERSION=`$ECHO $OUTPUT | $GREP " version \""` 64415 if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then 64416 SJAVAC_SERVER_JAVA_FLAGS="$SJAVAC_SERVER_JAVA_FLAGS -Xms${MS_VALUE}M -Xmx${MX_VALUE}M" 64417 JVM_ARG_OK=true 64418 else 64419 $ECHO "Arg failed:" >&5 64420 $ECHO "$OUTPUT" >&5 64421 JVM_ARG_OK=false 64422 fi 64423 64424 64425 64426 # Check whether --enable-sjavac was given. 64427 if test "${enable_sjavac+set}" = set; then : 64428 enableval=$enable_sjavac; ENABLE_SJAVAC="${enableval}" 64429 else 64430 ENABLE_SJAVAC="no" 64431 fi 64432 64433 if test "x$JVM_ARG_OK" = "xfalse"; then 64434 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not set -Xms${MS_VALUE}M -Xmx${MX_VALUE}M, disabling sjavac" >&5 64435 $as_echo "$as_me: WARNING: Could not set -Xms${MS_VALUE}M -Xmx${MX_VALUE}M, disabling sjavac" >&2;} 64436 ENABLE_SJAVAC="no" 64437 fi 64438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use sjavac" >&5 64439 $as_echo_n "checking whether to use sjavac... " >&6; } 64440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ENABLE_SJAVAC" >&5 64441 $as_echo "$ENABLE_SJAVAC" >&6; } 64442 64443 64444 # Check whether --enable-javac-server was given. 64445 if test "${enable_javac_server+set}" = set; then : 64446 enableval=$enable_javac_server; ENABLE_JAVAC_SERVER="${enableval}" 64447 else 64448 ENABLE_JAVAC_SERVER="yes" 64449 fi 64450 64451 if test "x$JVM_ARG_OK" = "xfalse"; then 64452 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not set -Xms${MS_VALUE}M -Xmx${MX_VALUE}M, disabling javac server" >&5 64453 $as_echo "$as_me: WARNING: Could not set -Xms${MS_VALUE}M -Xmx${MX_VALUE}M, disabling javac server" >&2;} 64454 ENABLE_JAVAC_SERVER="no" 64455 fi 64456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use javac server" >&5 64457 $as_echo_n "checking whether to use javac server... " >&6; } 64458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ENABLE_JAVAC_SERVER" >&5 64459 $as_echo "$ENABLE_JAVAC_SERVER" >&6; } 64460 64461 64462 if test "x$ENABLE_JAVAC_SERVER" = "xyes" || test "x$ENABLE_SJAVAC" = "xyes"; then 64463 # When using a server javac, the small client instances do not need much 64464 # resources. 64465 JAVA_FLAGS_JAVAC="$JAVA_FLAGS_SMALL" 64466 fi 64467 64468 64469 # Setup use of icecc if requested 64470 64471 # Check whether --enable-icecc was given. 64472 if test "${enable_icecc+set}" = set; then : 64473 enableval=$enable_icecc; 64474 fi 64475 64476 64477 if test "x${enable_icecc}" = "xyes"; then 64478 64479 64480 64481 # Publish this variable in the help. 64482 64483 64484 if [ -z "${ICECC_CMD+x}" ]; then 64485 # The variable is not set by user, try to locate tool using the code snippet 64486 for ac_prog in icecc 64487 do 64488 # Extract the first word of "$ac_prog", so it can be a program name with args. 64489 set dummy $ac_prog; ac_word=$2 64490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 64491 $as_echo_n "checking for $ac_word... " >&6; } 64492 if ${ac_cv_path_ICECC_CMD+:} false; then : 64493 $as_echo_n "(cached) " >&6 64494 else 64495 case $ICECC_CMD in 64496 [\\/]* | ?:[\\/]*) 64497 ac_cv_path_ICECC_CMD="$ICECC_CMD" # Let the user override the test with a path. 64498 ;; 64499 *) 64500 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 64501 for as_dir in $PATH 64502 do 64503 IFS=$as_save_IFS 64504 test -z "$as_dir" && as_dir=. 64505 for ac_exec_ext in '' $ac_executable_extensions; do 64506 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 64507 ac_cv_path_ICECC_CMD="$as_dir/$ac_word$ac_exec_ext" 64508 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 64509 break 2 64510 fi 64511 done 64512 done 64513 IFS=$as_save_IFS 64514 64515 ;; 64516 esac 64517 fi 64518 ICECC_CMD=$ac_cv_path_ICECC_CMD 64519 if test -n "$ICECC_CMD"; then 64520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ICECC_CMD" >&5 64521 $as_echo "$ICECC_CMD" >&6; } 64522 else 64523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 64524 $as_echo "no" >&6; } 64525 fi 64526 64527 64528 test -n "$ICECC_CMD" && break 64529 done 64530 64531 else 64532 # The variable is set, but is it from the command line or the environment? 64533 64534 # Try to remove the string !ICECC_CMD! from our list. 64535 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!ICECC_CMD!/} 64536 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 64537 # If it failed, the variable was not from the command line. Ignore it, 64538 # but warn the user (except for BASH, which is always set by the calling BASH). 64539 if test "xICECC_CMD" != xBASH; then 64540 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of ICECC_CMD from the environment. Use command line variables instead." >&5 64541 $as_echo "$as_me: WARNING: Ignoring value of ICECC_CMD from the environment. Use command line variables instead." >&2;} 64542 fi 64543 # Try to locate tool using the code snippet 64544 for ac_prog in icecc 64545 do 64546 # Extract the first word of "$ac_prog", so it can be a program name with args. 64547 set dummy $ac_prog; ac_word=$2 64548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 64549 $as_echo_n "checking for $ac_word... " >&6; } 64550 if ${ac_cv_path_ICECC_CMD+:} false; then : 64551 $as_echo_n "(cached) " >&6 64552 else 64553 case $ICECC_CMD in 64554 [\\/]* | ?:[\\/]*) 64555 ac_cv_path_ICECC_CMD="$ICECC_CMD" # Let the user override the test with a path. 64556 ;; 64557 *) 64558 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 64559 for as_dir in $PATH 64560 do 64561 IFS=$as_save_IFS 64562 test -z "$as_dir" && as_dir=. 64563 for ac_exec_ext in '' $ac_executable_extensions; do 64564 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 64565 ac_cv_path_ICECC_CMD="$as_dir/$ac_word$ac_exec_ext" 64566 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 64567 break 2 64568 fi 64569 done 64570 done 64571 IFS=$as_save_IFS 64572 64573 ;; 64574 esac 64575 fi 64576 ICECC_CMD=$ac_cv_path_ICECC_CMD 64577 if test -n "$ICECC_CMD"; then 64578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ICECC_CMD" >&5 64579 $as_echo "$ICECC_CMD" >&6; } 64580 else 64581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 64582 $as_echo "no" >&6; } 64583 fi 64584 64585 64586 test -n "$ICECC_CMD" && break 64587 done 64588 64589 else 64590 # If it succeeded, then it was overridden by the user. We will use it 64591 # for the tool. 64592 64593 # First remove it from the list of overridden variables, so we can test 64594 # for unknown variables in the end. 64595 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 64596 64597 # Check if we try to supply an empty value 64598 if test "x$ICECC_CMD" = x; then 64599 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool ICECC_CMD= (no value)" >&5 64600 $as_echo "$as_me: Setting user supplied tool ICECC_CMD= (no value)" >&6;} 64601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ICECC_CMD" >&5 64602 $as_echo_n "checking for ICECC_CMD... " >&6; } 64603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 64604 $as_echo "disabled" >&6; } 64605 else 64606 # Check if the provided tool contains a complete path. 64607 tool_specified="$ICECC_CMD" 64608 tool_basename="${tool_specified##*/}" 64609 if test "x$tool_basename" = "x$tool_specified"; then 64610 # A command without a complete path is provided, search $PATH. 64611 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool ICECC_CMD=$tool_basename" >&5 64612 $as_echo "$as_me: Will search for user supplied tool ICECC_CMD=$tool_basename" >&6;} 64613 # Extract the first word of "$tool_basename", so it can be a program name with args. 64614 set dummy $tool_basename; ac_word=$2 64615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 64616 $as_echo_n "checking for $ac_word... " >&6; } 64617 if ${ac_cv_path_ICECC_CMD+:} false; then : 64618 $as_echo_n "(cached) " >&6 64619 else 64620 case $ICECC_CMD in 64621 [\\/]* | ?:[\\/]*) 64622 ac_cv_path_ICECC_CMD="$ICECC_CMD" # Let the user override the test with a path. 64623 ;; 64624 *) 64625 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 64626 for as_dir in $PATH 64627 do 64628 IFS=$as_save_IFS 64629 test -z "$as_dir" && as_dir=. 64630 for ac_exec_ext in '' $ac_executable_extensions; do 64631 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 64632 ac_cv_path_ICECC_CMD="$as_dir/$ac_word$ac_exec_ext" 64633 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 64634 break 2 64635 fi 64636 done 64637 done 64638 IFS=$as_save_IFS 64639 64640 ;; 64641 esac 64642 fi 64643 ICECC_CMD=$ac_cv_path_ICECC_CMD 64644 if test -n "$ICECC_CMD"; then 64645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ICECC_CMD" >&5 64646 $as_echo "$ICECC_CMD" >&6; } 64647 else 64648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 64649 $as_echo "no" >&6; } 64650 fi 64651 64652 64653 if test "x$ICECC_CMD" = x; then 64654 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 64655 fi 64656 else 64657 # Otherwise we believe it is a complete path. Use it as it is. 64658 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool ICECC_CMD=$tool_specified" >&5 64659 $as_echo "$as_me: Will use user supplied tool ICECC_CMD=$tool_specified" >&6;} 64660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ICECC_CMD" >&5 64661 $as_echo_n "checking for ICECC_CMD... " >&6; } 64662 if test ! -x "$tool_specified"; then 64663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 64664 $as_echo "not found" >&6; } 64665 as_fn_error $? "User supplied tool ICECC_CMD=$tool_specified does not exist or is not executable" "$LINENO" 5 64666 fi 64667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 64668 $as_echo "$tool_specified" >&6; } 64669 fi 64670 fi 64671 fi 64672 64673 fi 64674 64675 64676 64677 if test "x$ICECC_CMD" = x; then 64678 as_fn_error $? "Could not find required tool for ICECC_CMD" "$LINENO" 5 64679 fi 64680 64681 64682 old_path="$PATH" 64683 64684 # Look for icecc-create-env in some known places 64685 PATH="$PATH:/usr/lib/icecc:/usr/lib64/icecc" 64686 64687 64688 64689 # Publish this variable in the help. 64690 64691 64692 if [ -z "${ICECC_CREATE_ENV+x}" ]; then 64693 # The variable is not set by user, try to locate tool using the code snippet 64694 for ac_prog in icecc-create-env 64695 do 64696 # Extract the first word of "$ac_prog", so it can be a program name with args. 64697 set dummy $ac_prog; ac_word=$2 64698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 64699 $as_echo_n "checking for $ac_word... " >&6; } 64700 if ${ac_cv_path_ICECC_CREATE_ENV+:} false; then : 64701 $as_echo_n "(cached) " >&6 64702 else 64703 case $ICECC_CREATE_ENV in 64704 [\\/]* | ?:[\\/]*) 64705 ac_cv_path_ICECC_CREATE_ENV="$ICECC_CREATE_ENV" # Let the user override the test with a path. 64706 ;; 64707 *) 64708 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 64709 for as_dir in $PATH 64710 do 64711 IFS=$as_save_IFS 64712 test -z "$as_dir" && as_dir=. 64713 for ac_exec_ext in '' $ac_executable_extensions; do 64714 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 64715 ac_cv_path_ICECC_CREATE_ENV="$as_dir/$ac_word$ac_exec_ext" 64716 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 64717 break 2 64718 fi 64719 done 64720 done 64721 IFS=$as_save_IFS 64722 64723 ;; 64724 esac 64725 fi 64726 ICECC_CREATE_ENV=$ac_cv_path_ICECC_CREATE_ENV 64727 if test -n "$ICECC_CREATE_ENV"; then 64728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ICECC_CREATE_ENV" >&5 64729 $as_echo "$ICECC_CREATE_ENV" >&6; } 64730 else 64731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 64732 $as_echo "no" >&6; } 64733 fi 64734 64735 64736 test -n "$ICECC_CREATE_ENV" && break 64737 done 64738 64739 else 64740 # The variable is set, but is it from the command line or the environment? 64741 64742 # Try to remove the string !ICECC_CREATE_ENV! from our list. 64743 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!ICECC_CREATE_ENV!/} 64744 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 64745 # If it failed, the variable was not from the command line. Ignore it, 64746 # but warn the user (except for BASH, which is always set by the calling BASH). 64747 if test "xICECC_CREATE_ENV" != xBASH; then 64748 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of ICECC_CREATE_ENV from the environment. Use command line variables instead." >&5 64749 $as_echo "$as_me: WARNING: Ignoring value of ICECC_CREATE_ENV from the environment. Use command line variables instead." >&2;} 64750 fi 64751 # Try to locate tool using the code snippet 64752 for ac_prog in icecc-create-env 64753 do 64754 # Extract the first word of "$ac_prog", so it can be a program name with args. 64755 set dummy $ac_prog; ac_word=$2 64756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 64757 $as_echo_n "checking for $ac_word... " >&6; } 64758 if ${ac_cv_path_ICECC_CREATE_ENV+:} false; then : 64759 $as_echo_n "(cached) " >&6 64760 else 64761 case $ICECC_CREATE_ENV in 64762 [\\/]* | ?:[\\/]*) 64763 ac_cv_path_ICECC_CREATE_ENV="$ICECC_CREATE_ENV" # Let the user override the test with a path. 64764 ;; 64765 *) 64766 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 64767 for as_dir in $PATH 64768 do 64769 IFS=$as_save_IFS 64770 test -z "$as_dir" && as_dir=. 64771 for ac_exec_ext in '' $ac_executable_extensions; do 64772 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 64773 ac_cv_path_ICECC_CREATE_ENV="$as_dir/$ac_word$ac_exec_ext" 64774 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 64775 break 2 64776 fi 64777 done 64778 done 64779 IFS=$as_save_IFS 64780 64781 ;; 64782 esac 64783 fi 64784 ICECC_CREATE_ENV=$ac_cv_path_ICECC_CREATE_ENV 64785 if test -n "$ICECC_CREATE_ENV"; then 64786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ICECC_CREATE_ENV" >&5 64787 $as_echo "$ICECC_CREATE_ENV" >&6; } 64788 else 64789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 64790 $as_echo "no" >&6; } 64791 fi 64792 64793 64794 test -n "$ICECC_CREATE_ENV" && break 64795 done 64796 64797 else 64798 # If it succeeded, then it was overridden by the user. We will use it 64799 # for the tool. 64800 64801 # First remove it from the list of overridden variables, so we can test 64802 # for unknown variables in the end. 64803 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 64804 64805 # Check if we try to supply an empty value 64806 if test "x$ICECC_CREATE_ENV" = x; then 64807 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool ICECC_CREATE_ENV= (no value)" >&5 64808 $as_echo "$as_me: Setting user supplied tool ICECC_CREATE_ENV= (no value)" >&6;} 64809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ICECC_CREATE_ENV" >&5 64810 $as_echo_n "checking for ICECC_CREATE_ENV... " >&6; } 64811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 64812 $as_echo "disabled" >&6; } 64813 else 64814 # Check if the provided tool contains a complete path. 64815 tool_specified="$ICECC_CREATE_ENV" 64816 tool_basename="${tool_specified##*/}" 64817 if test "x$tool_basename" = "x$tool_specified"; then 64818 # A command without a complete path is provided, search $PATH. 64819 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool ICECC_CREATE_ENV=$tool_basename" >&5 64820 $as_echo "$as_me: Will search for user supplied tool ICECC_CREATE_ENV=$tool_basename" >&6;} 64821 # Extract the first word of "$tool_basename", so it can be a program name with args. 64822 set dummy $tool_basename; ac_word=$2 64823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 64824 $as_echo_n "checking for $ac_word... " >&6; } 64825 if ${ac_cv_path_ICECC_CREATE_ENV+:} false; then : 64826 $as_echo_n "(cached) " >&6 64827 else 64828 case $ICECC_CREATE_ENV in 64829 [\\/]* | ?:[\\/]*) 64830 ac_cv_path_ICECC_CREATE_ENV="$ICECC_CREATE_ENV" # Let the user override the test with a path. 64831 ;; 64832 *) 64833 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 64834 for as_dir in $PATH 64835 do 64836 IFS=$as_save_IFS 64837 test -z "$as_dir" && as_dir=. 64838 for ac_exec_ext in '' $ac_executable_extensions; do 64839 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 64840 ac_cv_path_ICECC_CREATE_ENV="$as_dir/$ac_word$ac_exec_ext" 64841 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 64842 break 2 64843 fi 64844 done 64845 done 64846 IFS=$as_save_IFS 64847 64848 ;; 64849 esac 64850 fi 64851 ICECC_CREATE_ENV=$ac_cv_path_ICECC_CREATE_ENV 64852 if test -n "$ICECC_CREATE_ENV"; then 64853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ICECC_CREATE_ENV" >&5 64854 $as_echo "$ICECC_CREATE_ENV" >&6; } 64855 else 64856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 64857 $as_echo "no" >&6; } 64858 fi 64859 64860 64861 if test "x$ICECC_CREATE_ENV" = x; then 64862 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 64863 fi 64864 else 64865 # Otherwise we believe it is a complete path. Use it as it is. 64866 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool ICECC_CREATE_ENV=$tool_specified" >&5 64867 $as_echo "$as_me: Will use user supplied tool ICECC_CREATE_ENV=$tool_specified" >&6;} 64868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ICECC_CREATE_ENV" >&5 64869 $as_echo_n "checking for ICECC_CREATE_ENV... " >&6; } 64870 if test ! -x "$tool_specified"; then 64871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 64872 $as_echo "not found" >&6; } 64873 as_fn_error $? "User supplied tool ICECC_CREATE_ENV=$tool_specified does not exist or is not executable" "$LINENO" 5 64874 fi 64875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 64876 $as_echo "$tool_specified" >&6; } 64877 fi 64878 fi 64879 fi 64880 64881 fi 64882 64883 64884 64885 if test "x$ICECC_CREATE_ENV" = x; then 64886 as_fn_error $? "Could not find required tool for ICECC_CREATE_ENV" "$LINENO" 5 64887 fi 64888 64889 64890 # Use icecc-create-env to create a minimal compilation environment that can 64891 # be sent to the other hosts in the icecream cluster. 64892 icecc_create_env_log="${CONFIGURESUPPORT_OUTPUTDIR}/icecc/icecc_create_env.log" 64893 ${MKDIR} -p ${CONFIGURESUPPORT_OUTPUTDIR}/icecc 64894 # Older versions of icecc does not have the --gcc parameter 64895 if ${ICECC_CREATE_ENV} | $GREP -q -e --gcc; then 64896 icecc_gcc_arg="--gcc" 64897 fi 64898 if test "x${TOOLCHAIN_TYPE}" = "xgcc"; then 64899 64900 ( cd ${CONFIGURESUPPORT_OUTPUTDIR}/icecc \ 64901 && ${ICECC_CREATE_ENV} ${icecc_gcc_arg} ${CC} ${CXX} > \ 64902 ${icecc_create_env_log} 2>&1 ) 64903 if test "$?" != "0"; then 64904 { $as_echo "$as_me:${as_lineno-$LINENO}: icecc-create-env output:" >&5 64905 $as_echo "$as_me: icecc-create-env output:" >&6;} 64906 cat \ 64907 ${icecc_create_env_log} 64908 as_fn_error $? "Failed to create icecc compiler environment" "$LINENO" 5 64909 fi 64910 64911 elif test "x$TOOLCHAIN_TYPE" = "xclang"; then 64912 # For clang, the icecc compilerwrapper is needed. It usually resides next 64913 # to icecc-create-env. 64914 64915 64916 64917 # Publish this variable in the help. 64918 64919 64920 if [ -z "${ICECC_WRAPPER+x}" ]; then 64921 # The variable is not set by user, try to locate tool using the code snippet 64922 for ac_prog in compilerwrapper 64923 do 64924 # Extract the first word of "$ac_prog", so it can be a program name with args. 64925 set dummy $ac_prog; ac_word=$2 64926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 64927 $as_echo_n "checking for $ac_word... " >&6; } 64928 if ${ac_cv_path_ICECC_WRAPPER+:} false; then : 64929 $as_echo_n "(cached) " >&6 64930 else 64931 case $ICECC_WRAPPER in 64932 [\\/]* | ?:[\\/]*) 64933 ac_cv_path_ICECC_WRAPPER="$ICECC_WRAPPER" # Let the user override the test with a path. 64934 ;; 64935 *) 64936 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 64937 for as_dir in $PATH 64938 do 64939 IFS=$as_save_IFS 64940 test -z "$as_dir" && as_dir=. 64941 for ac_exec_ext in '' $ac_executable_extensions; do 64942 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 64943 ac_cv_path_ICECC_WRAPPER="$as_dir/$ac_word$ac_exec_ext" 64944 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 64945 break 2 64946 fi 64947 done 64948 done 64949 IFS=$as_save_IFS 64950 64951 ;; 64952 esac 64953 fi 64954 ICECC_WRAPPER=$ac_cv_path_ICECC_WRAPPER 64955 if test -n "$ICECC_WRAPPER"; then 64956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ICECC_WRAPPER" >&5 64957 $as_echo "$ICECC_WRAPPER" >&6; } 64958 else 64959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 64960 $as_echo "no" >&6; } 64961 fi 64962 64963 64964 test -n "$ICECC_WRAPPER" && break 64965 done 64966 64967 else 64968 # The variable is set, but is it from the command line or the environment? 64969 64970 # Try to remove the string !ICECC_WRAPPER! from our list. 64971 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!ICECC_WRAPPER!/} 64972 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 64973 # If it failed, the variable was not from the command line. Ignore it, 64974 # but warn the user (except for BASH, which is always set by the calling BASH). 64975 if test "xICECC_WRAPPER" != xBASH; then 64976 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of ICECC_WRAPPER from the environment. Use command line variables instead." >&5 64977 $as_echo "$as_me: WARNING: Ignoring value of ICECC_WRAPPER from the environment. Use command line variables instead." >&2;} 64978 fi 64979 # Try to locate tool using the code snippet 64980 for ac_prog in compilerwrapper 64981 do 64982 # Extract the first word of "$ac_prog", so it can be a program name with args. 64983 set dummy $ac_prog; ac_word=$2 64984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 64985 $as_echo_n "checking for $ac_word... " >&6; } 64986 if ${ac_cv_path_ICECC_WRAPPER+:} false; then : 64987 $as_echo_n "(cached) " >&6 64988 else 64989 case $ICECC_WRAPPER in 64990 [\\/]* | ?:[\\/]*) 64991 ac_cv_path_ICECC_WRAPPER="$ICECC_WRAPPER" # Let the user override the test with a path. 64992 ;; 64993 *) 64994 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 64995 for as_dir in $PATH 64996 do 64997 IFS=$as_save_IFS 64998 test -z "$as_dir" && as_dir=. 64999 for ac_exec_ext in '' $ac_executable_extensions; do 65000 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 65001 ac_cv_path_ICECC_WRAPPER="$as_dir/$ac_word$ac_exec_ext" 65002 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 65003 break 2 65004 fi 65005 done 65006 done 65007 IFS=$as_save_IFS 65008 65009 ;; 65010 esac 65011 fi 65012 ICECC_WRAPPER=$ac_cv_path_ICECC_WRAPPER 65013 if test -n "$ICECC_WRAPPER"; then 65014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ICECC_WRAPPER" >&5 65015 $as_echo "$ICECC_WRAPPER" >&6; } 65016 else 65017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 65018 $as_echo "no" >&6; } 65019 fi 65020 65021 65022 test -n "$ICECC_WRAPPER" && break 65023 done 65024 65025 else 65026 # If it succeeded, then it was overridden by the user. We will use it 65027 # for the tool. 65028 65029 # First remove it from the list of overridden variables, so we can test 65030 # for unknown variables in the end. 65031 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 65032 65033 # Check if we try to supply an empty value 65034 if test "x$ICECC_WRAPPER" = x; then 65035 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool ICECC_WRAPPER= (no value)" >&5 65036 $as_echo "$as_me: Setting user supplied tool ICECC_WRAPPER= (no value)" >&6;} 65037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ICECC_WRAPPER" >&5 65038 $as_echo_n "checking for ICECC_WRAPPER... " >&6; } 65039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 65040 $as_echo "disabled" >&6; } 65041 else 65042 # Check if the provided tool contains a complete path. 65043 tool_specified="$ICECC_WRAPPER" 65044 tool_basename="${tool_specified##*/}" 65045 if test "x$tool_basename" = "x$tool_specified"; then 65046 # A command without a complete path is provided, search $PATH. 65047 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool ICECC_WRAPPER=$tool_basename" >&5 65048 $as_echo "$as_me: Will search for user supplied tool ICECC_WRAPPER=$tool_basename" >&6;} 65049 # Extract the first word of "$tool_basename", so it can be a program name with args. 65050 set dummy $tool_basename; ac_word=$2 65051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 65052 $as_echo_n "checking for $ac_word... " >&6; } 65053 if ${ac_cv_path_ICECC_WRAPPER+:} false; then : 65054 $as_echo_n "(cached) " >&6 65055 else 65056 case $ICECC_WRAPPER in 65057 [\\/]* | ?:[\\/]*) 65058 ac_cv_path_ICECC_WRAPPER="$ICECC_WRAPPER" # Let the user override the test with a path. 65059 ;; 65060 *) 65061 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 65062 for as_dir in $PATH 65063 do 65064 IFS=$as_save_IFS 65065 test -z "$as_dir" && as_dir=. 65066 for ac_exec_ext in '' $ac_executable_extensions; do 65067 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 65068 ac_cv_path_ICECC_WRAPPER="$as_dir/$ac_word$ac_exec_ext" 65069 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 65070 break 2 65071 fi 65072 done 65073 done 65074 IFS=$as_save_IFS 65075 65076 ;; 65077 esac 65078 fi 65079 ICECC_WRAPPER=$ac_cv_path_ICECC_WRAPPER 65080 if test -n "$ICECC_WRAPPER"; then 65081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ICECC_WRAPPER" >&5 65082 $as_echo "$ICECC_WRAPPER" >&6; } 65083 else 65084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 65085 $as_echo "no" >&6; } 65086 fi 65087 65088 65089 if test "x$ICECC_WRAPPER" = x; then 65090 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 65091 fi 65092 else 65093 # Otherwise we believe it is a complete path. Use it as it is. 65094 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool ICECC_WRAPPER=$tool_specified" >&5 65095 $as_echo "$as_me: Will use user supplied tool ICECC_WRAPPER=$tool_specified" >&6;} 65096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ICECC_WRAPPER" >&5 65097 $as_echo_n "checking for ICECC_WRAPPER... " >&6; } 65098 if test ! -x "$tool_specified"; then 65099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 65100 $as_echo "not found" >&6; } 65101 as_fn_error $? "User supplied tool ICECC_WRAPPER=$tool_specified does not exist or is not executable" "$LINENO" 5 65102 fi 65103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 65104 $as_echo "$tool_specified" >&6; } 65105 fi 65106 fi 65107 fi 65108 65109 fi 65110 65111 65112 65113 if test "x$ICECC_WRAPPER" = x; then 65114 as_fn_error $? "Could not find required tool for ICECC_WRAPPER" "$LINENO" 5 65115 fi 65116 65117 65118 65119 ( cd ${CONFIGURESUPPORT_OUTPUTDIR}/icecc \ 65120 && ${ICECC_CREATE_ENV} --clang ${CC} ${ICECC_WRAPPER} > ${icecc_create_env_log} 2>&1 ) 65121 if test "$?" != "0"; then 65122 { $as_echo "$as_me:${as_lineno-$LINENO}: icecc-create-env output:" >&5 65123 $as_echo "$as_me: icecc-create-env output:" >&6;} 65124 cat ${icecc_create_env_log} 65125 as_fn_error $? "Failed to create icecc compiler environment" "$LINENO" 5 65126 fi 65127 65128 else 65129 as_fn_error $? "Can only create icecc compiler packages for toolchain types gcc and clang" "$LINENO" 5 65130 fi 65131 PATH="$old_path" 65132 # The bundle with the compiler gets a name based on checksums. Parse log file 65133 # to find it. 65134 ICECC_ENV_BUNDLE_BASENAME="`${SED} -n '/^creating/s/creating //p' ${icecc_create_env_log}`" 65135 ICECC_ENV_BUNDLE="${CONFIGURESUPPORT_OUTPUTDIR}/icecc/${ICECC_ENV_BUNDLE_BASENAME}" 65136 if test ! -f ${ICECC_ENV_BUNDLE}; then 65137 as_fn_error $? "icecc-create-env did not produce an environment ${ICECC_ENV_BUNDLE}" "$LINENO" 5 65138 fi 65139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for icecc build environment for target compiler" >&5 65140 $as_echo_n "checking for icecc build environment for target compiler... " >&6; } 65141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ICECC_ENV_BUNDLE}" >&5 65142 $as_echo "${ICECC_ENV_BUNDLE}" >&6; } 65143 ICECC="ICECC_VERSION=${ICECC_ENV_BUNDLE} ICECC_CC=${CC} ICECC_CXX=${CXX} ${ICECC_CMD}" 65144 65145 if test "x${COMPILE_TYPE}" = "xcross"; then 65146 # If cross compiling, create a separate env package for the build compiler 65147 # Assume "gcc" or "cc" is gcc and "clang" is clang. Otherwise bail. 65148 icecc_create_env_log_build="${CONFIGURESUPPORT_OUTPUTDIR}/icecc/icecc_create_env_build.log" 65149 if test "x${BUILD_CC##*/}" = "xgcc" || test "x${BUILD_CC##*/}" = "xcc"; then 65150 65151 ( cd ${CONFIGURESUPPORT_OUTPUTDIR}/icecc \ 65152 && ${ICECC_CREATE_ENV} ${icecc_gcc_arg} ${BUILD_CC} ${BUILD_CXX} > \ 65153 ${icecc_create_env_log_build} 2>&1 ) 65154 if test "$?" != "0"; then 65155 { $as_echo "$as_me:${as_lineno-$LINENO}: icecc-create-env output:" >&5 65156 $as_echo "$as_me: icecc-create-env output:" >&6;} 65157 cat \ 65158 ${icecc_create_env_log_build} 65159 as_fn_error $? "Failed to create icecc compiler environment" "$LINENO" 5 65160 fi 65161 65162 elif test "x${BUILD_CC##*/}" = "xclang"; then 65163 65164 ( cd ${CONFIGURESUPPORT_OUTPUTDIR}/icecc \ 65165 && ${ICECC_CREATE_ENV} --clang ${BUILD_CC} ${ICECC_WRAPPER} > ${icecc_create_env_log_build} 2>&1 ) 65166 if test "$?" != "0"; then 65167 { $as_echo "$as_me:${as_lineno-$LINENO}: icecc-create-env output:" >&5 65168 $as_echo "$as_me: icecc-create-env output:" >&6;} 65169 cat ${icecc_create_env_log_build} 65170 as_fn_error $? "Failed to create icecc compiler environment" "$LINENO" 5 65171 fi 65172 65173 else 65174 as_fn_error $? "Cannot create icecc compiler package for ${BUILD_CC}" "$LINENO" 5 65175 fi 65176 ICECC_ENV_BUNDLE_BASENAME="`${SED} -n '/^creating/s/creating //p' ${icecc_create_env_log_build}`" 65177 ICECC_ENV_BUNDLE="${CONFIGURESUPPORT_OUTPUTDIR}/icecc/${ICECC_ENV_BUNDLE_BASENAME}" 65178 if test ! -f ${ICECC_ENV_BUNDLE}; then 65179 as_fn_error $? "icecc-create-env did not produce an environment ${ICECC_ENV_BUNDLE}" "$LINENO" 5 65180 fi 65181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for icecc build environment for build compiler" >&5 65182 $as_echo_n "checking for icecc build environment for build compiler... " >&6; } 65183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ICECC_ENV_BUNDLE}" >&5 65184 $as_echo "${ICECC_ENV_BUNDLE}" >&6; } 65185 BUILD_ICECC="ICECC_VERSION=${ICECC_ENV_BUNDLE} ICECC_CC=${BUILD_CC} \ 65186 ICECC_CXX=${BUILD_CXX} ${ICECC_CMD}" 65187 else 65188 BUILD_ICECC="${ICECC}" 65189 fi 65190 65191 65192 fi 65193 65194 65195 # Can the C/C++ compiler use precompiled headers? 65196 65197 65198 ############################################################################### 65199 # 65200 # Can the C/C++ compiler use precompiled headers? 65201 # 65202 # Check whether --enable-precompiled-headers was given. 65203 if test "${enable_precompiled_headers+set}" = set; then : 65204 enableval=$enable_precompiled_headers; ENABLE_PRECOMPH=${enable_precompiled_headers} 65205 else 65206 ENABLE_PRECOMPH=yes 65207 fi 65208 65209 65210 USE_PRECOMPILED_HEADER=1 65211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking If precompiled header is enabled" >&5 65212 $as_echo_n "checking If precompiled header is enabled... " >&6; } 65213 if test "x$ENABLE_PRECOMPH" = xno; then 65214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, forced" >&5 65215 $as_echo "no, forced" >&6; } 65216 USE_PRECOMPILED_HEADER=0 65217 elif test "x$ICECC" != "x"; then 65218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, does not work effectively with icecc" >&5 65219 $as_echo "no, does not work effectively with icecc" >&6; } 65220 USE_PRECOMPILED_HEADER=0 65221 elif test "x$TOOLCHAIN_TYPE" = xsolstudio; then 65222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, does not work with Solaris Studio" >&5 65223 $as_echo "no, does not work with Solaris Studio" >&6; } 65224 USE_PRECOMPILED_HEADER=0 65225 elif test "x$TOOLCHAIN_TYPE" = xxlc; then 65226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, does not work with xlc" >&5 65227 $as_echo "no, does not work with xlc" >&6; } 65228 USE_PRECOMPILED_HEADER=0 65229 else 65230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 65231 $as_echo "yes" >&6; } 65232 fi 65233 65234 if test "x$ENABLE_PRECOMPH" = xyes; then 65235 # Check that the compiler actually supports precomp headers. 65236 if test "x$TOOLCHAIN_TYPE" = xgcc; then 65237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that precompiled headers work" >&5 65238 $as_echo_n "checking that precompiled headers work... " >&6; } 65239 echo "int alfa();" > conftest.h 65240 $CXX -x c++-header conftest.h -o conftest.hpp.gch 2>&5 >&5 65241 if test ! -f conftest.hpp.gch; then 65242 USE_PRECOMPILED_HEADER=0 65243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 65244 $as_echo "no" >&6; } 65245 else 65246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 65247 $as_echo "yes" >&6; } 65248 fi 65249 $RM conftest.h conftest.hpp.gch 65250 fi 65251 fi 65252 65253 65254 65255 65256 # Setup use of ccache, if available 65257 65258 # Check whether --enable-ccache was given. 65259 if test "${enable_ccache+set}" = set; then : 65260 enableval=$enable_ccache; 65261 fi 65262 65263 65264 CCACHE_STATUS= 65265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking is ccache enabled" >&5 65266 $as_echo_n "checking is ccache enabled... " >&6; } 65267 if test "x$enable_ccache" = xyes; then 65268 if test "x$TOOLCHAIN_TYPE" = "xgcc" -o "x$TOOLCHAIN_TYPE" = "xclang"; then 65269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 65270 $as_echo "yes" >&6; } 65271 OLD_PATH="$PATH" 65272 if test "x$TOOLCHAIN_PATH" != x; then 65273 PATH=$TOOLCHAIN_PATH:$PATH 65274 fi 65275 65276 65277 65278 # Publish this variable in the help. 65279 65280 65281 if [ -z "${CCACHE+x}" ]; then 65282 # The variable is not set by user, try to locate tool using the code snippet 65283 for ac_prog in ccache 65284 do 65285 # Extract the first word of "$ac_prog", so it can be a program name with args. 65286 set dummy $ac_prog; ac_word=$2 65287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 65288 $as_echo_n "checking for $ac_word... " >&6; } 65289 if ${ac_cv_path_CCACHE+:} false; then : 65290 $as_echo_n "(cached) " >&6 65291 else 65292 case $CCACHE in 65293 [\\/]* | ?:[\\/]*) 65294 ac_cv_path_CCACHE="$CCACHE" # Let the user override the test with a path. 65295 ;; 65296 *) 65297 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 65298 for as_dir in $PATH 65299 do 65300 IFS=$as_save_IFS 65301 test -z "$as_dir" && as_dir=. 65302 for ac_exec_ext in '' $ac_executable_extensions; do 65303 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 65304 ac_cv_path_CCACHE="$as_dir/$ac_word$ac_exec_ext" 65305 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 65306 break 2 65307 fi 65308 done 65309 done 65310 IFS=$as_save_IFS 65311 65312 ;; 65313 esac 65314 fi 65315 CCACHE=$ac_cv_path_CCACHE 65316 if test -n "$CCACHE"; then 65317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CCACHE" >&5 65318 $as_echo "$CCACHE" >&6; } 65319 else 65320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 65321 $as_echo "no" >&6; } 65322 fi 65323 65324 65325 test -n "$CCACHE" && break 65326 done 65327 65328 else 65329 # The variable is set, but is it from the command line or the environment? 65330 65331 # Try to remove the string !CCACHE! from our list. 65332 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CCACHE!/} 65333 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 65334 # If it failed, the variable was not from the command line. Ignore it, 65335 # but warn the user (except for BASH, which is always set by the calling BASH). 65336 if test "xCCACHE" != xBASH; then 65337 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CCACHE from the environment. Use command line variables instead." >&5 65338 $as_echo "$as_me: WARNING: Ignoring value of CCACHE from the environment. Use command line variables instead." >&2;} 65339 fi 65340 # Try to locate tool using the code snippet 65341 for ac_prog in ccache 65342 do 65343 # Extract the first word of "$ac_prog", so it can be a program name with args. 65344 set dummy $ac_prog; ac_word=$2 65345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 65346 $as_echo_n "checking for $ac_word... " >&6; } 65347 if ${ac_cv_path_CCACHE+:} false; then : 65348 $as_echo_n "(cached) " >&6 65349 else 65350 case $CCACHE in 65351 [\\/]* | ?:[\\/]*) 65352 ac_cv_path_CCACHE="$CCACHE" # Let the user override the test with a path. 65353 ;; 65354 *) 65355 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 65356 for as_dir in $PATH 65357 do 65358 IFS=$as_save_IFS 65359 test -z "$as_dir" && as_dir=. 65360 for ac_exec_ext in '' $ac_executable_extensions; do 65361 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 65362 ac_cv_path_CCACHE="$as_dir/$ac_word$ac_exec_ext" 65363 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 65364 break 2 65365 fi 65366 done 65367 done 65368 IFS=$as_save_IFS 65369 65370 ;; 65371 esac 65372 fi 65373 CCACHE=$ac_cv_path_CCACHE 65374 if test -n "$CCACHE"; then 65375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CCACHE" >&5 65376 $as_echo "$CCACHE" >&6; } 65377 else 65378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 65379 $as_echo "no" >&6; } 65380 fi 65381 65382 65383 test -n "$CCACHE" && break 65384 done 65385 65386 else 65387 # If it succeeded, then it was overridden by the user. We will use it 65388 # for the tool. 65389 65390 # First remove it from the list of overridden variables, so we can test 65391 # for unknown variables in the end. 65392 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 65393 65394 # Check if we try to supply an empty value 65395 if test "x$CCACHE" = x; then 65396 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool CCACHE= (no value)" >&5 65397 $as_echo "$as_me: Setting user supplied tool CCACHE= (no value)" >&6;} 65398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CCACHE" >&5 65399 $as_echo_n "checking for CCACHE... " >&6; } 65400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 65401 $as_echo "disabled" >&6; } 65402 else 65403 # Check if the provided tool contains a complete path. 65404 tool_specified="$CCACHE" 65405 tool_basename="${tool_specified##*/}" 65406 if test "x$tool_basename" = "x$tool_specified"; then 65407 # A command without a complete path is provided, search $PATH. 65408 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CCACHE=$tool_basename" >&5 65409 $as_echo "$as_me: Will search for user supplied tool CCACHE=$tool_basename" >&6;} 65410 # Extract the first word of "$tool_basename", so it can be a program name with args. 65411 set dummy $tool_basename; ac_word=$2 65412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 65413 $as_echo_n "checking for $ac_word... " >&6; } 65414 if ${ac_cv_path_CCACHE+:} false; then : 65415 $as_echo_n "(cached) " >&6 65416 else 65417 case $CCACHE in 65418 [\\/]* | ?:[\\/]*) 65419 ac_cv_path_CCACHE="$CCACHE" # Let the user override the test with a path. 65420 ;; 65421 *) 65422 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 65423 for as_dir in $PATH 65424 do 65425 IFS=$as_save_IFS 65426 test -z "$as_dir" && as_dir=. 65427 for ac_exec_ext in '' $ac_executable_extensions; do 65428 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 65429 ac_cv_path_CCACHE="$as_dir/$ac_word$ac_exec_ext" 65430 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 65431 break 2 65432 fi 65433 done 65434 done 65435 IFS=$as_save_IFS 65436 65437 ;; 65438 esac 65439 fi 65440 CCACHE=$ac_cv_path_CCACHE 65441 if test -n "$CCACHE"; then 65442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CCACHE" >&5 65443 $as_echo "$CCACHE" >&6; } 65444 else 65445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 65446 $as_echo "no" >&6; } 65447 fi 65448 65449 65450 if test "x$CCACHE" = x; then 65451 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 65452 fi 65453 else 65454 # Otherwise we believe it is a complete path. Use it as it is. 65455 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CCACHE=$tool_specified" >&5 65456 $as_echo "$as_me: Will use user supplied tool CCACHE=$tool_specified" >&6;} 65457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CCACHE" >&5 65458 $as_echo_n "checking for CCACHE... " >&6; } 65459 if test ! -x "$tool_specified"; then 65460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 65461 $as_echo "not found" >&6; } 65462 as_fn_error $? "User supplied tool CCACHE=$tool_specified does not exist or is not executable" "$LINENO" 5 65463 fi 65464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 65465 $as_echo "$tool_specified" >&6; } 65466 fi 65467 fi 65468 fi 65469 65470 fi 65471 65472 65473 65474 if test "x$CCACHE" = x; then 65475 as_fn_error $? "Could not find required tool for CCACHE" "$LINENO" 5 65476 fi 65477 65478 65479 PATH="$OLD_PATH" 65480 CCACHE_VERSION=`$CCACHE --version | head -n1 | $SED 's/[A-Za-z ]*//'` 65481 CCACHE_STATUS="Active ($CCACHE_VERSION)" 65482 else 65483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 65484 $as_echo "no" >&6; } 65485 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ccache is not supported with toolchain type $TOOLCHAIN_TYPE" >&5 65486 $as_echo "$as_me: WARNING: ccache is not supported with toolchain type $TOOLCHAIN_TYPE" >&2;} 65487 fi 65488 elif test "x$enable_ccache" = xno; then 65489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, explicitly disabled" >&5 65490 $as_echo "no, explicitly disabled" >&6; } 65491 CCACHE_STATUS="Disabled" 65492 elif test "x$enable_ccache" = x; then 65493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 65494 $as_echo "no" >&6; } 65495 else 65496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unknown" >&5 65497 $as_echo "unknown" >&6; } 65498 as_fn_error $? "--enable-ccache does not accept any parameters" "$LINENO" 5 65499 fi 65500 65501 65502 65503 # Check whether --with-ccache-dir was given. 65504 if test "${with_ccache_dir+set}" = set; then : 65505 withval=$with_ccache_dir; 65506 fi 65507 65508 65509 if test "x$with_ccache_dir" != x; then 65510 # When using a non home ccache directory, assume the use is to share ccache files 65511 # with other users. Thus change the umask. 65512 SET_CCACHE_DIR="CCACHE_DIR=$with_ccache_dir CCACHE_UMASK=002" 65513 if test "x$CCACHE" = x; then 65514 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --with-ccache-dir has no meaning when ccache is not enabled" >&5 65515 $as_echo "$as_me: WARNING: --with-ccache-dir has no meaning when ccache is not enabled" >&2;} 65516 fi 65517 fi 65518 65519 if test "x$CCACHE" != x; then 65520 65521 if test "x$CCACHE" != x; then 65522 if test "x$OPENJDK_BUILD_OS" = "xmacosx"; then 65523 HAS_BAD_CCACHE=`$ECHO $CCACHE_VERSION | \ 65524 $GREP -e '^1\.' -e '^2\.' -e '^3\.0\.' -e '^3\.1\.'` 65525 if test "x$HAS_BAD_CCACHE" != "x"; then 65526 as_fn_error $? "On macosx, ccache 3.2 or later is required, found $CCACHE_VERSION" "$LINENO" 5 65527 fi 65528 fi 65529 if test "x$USE_PRECOMPILED_HEADER" = "x1"; then 65530 HAS_BAD_CCACHE=`$ECHO $CCACHE_VERSION | \ 65531 $GREP -e '^1.*' -e '^2.*' -e '^3\.0.*' -e '^3\.1\.[0123]$'` 65532 if test "x$HAS_BAD_CCACHE" != "x"; then 65533 as_fn_error $? "Precompiled headers requires ccache 3.1.4 or later, found $CCACHE_VERSION" "$LINENO" 5 65534 fi 65535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if C-compiler supports ccache precompiled headers" >&5 65536 $as_echo_n "checking if C-compiler supports ccache precompiled headers... " >&6; } 65537 CCACHE_PRECOMP_FLAG="-fpch-preprocess" 65538 PUSHED_FLAGS="$CXXFLAGS" 65539 CXXFLAGS="$CCACHE_PRECOMP_FLAG $CXXFLAGS" 65540 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 65541 /* end confdefs.h. */ 65542 65543 int 65544 main () 65545 { 65546 65547 ; 65548 return 0; 65549 } 65550 _ACEOF 65551 if ac_fn_cxx_try_compile "$LINENO"; then : 65552 CC_KNOWS_CCACHE_TRICK=yes 65553 else 65554 CC_KNOWS_CCACHE_TRICK=no 65555 fi 65556 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 65557 CXXFLAGS="$PUSHED_FLAGS" 65558 if test "x$CC_KNOWS_CCACHE_TRICK" = xyes; then 65559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 65560 $as_echo "yes" >&6; } 65561 CFLAGS_CCACHE="$CCACHE_PRECOMP_FLAG" 65562 65563 CCACHE_SLOPPINESS=pch_defines,time_macros 65564 else 65565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 65566 $as_echo "no" >&6; } 65567 as_fn_error $? "Cannot use ccache with precompiled headers without compiler support for $CCACHE_PRECOMP_FLAG" "$LINENO" 5 65568 fi 65569 fi 65570 65571 CCACHE="CCACHE_COMPRESS=1 $SET_CCACHE_DIR \ 65572 CCACHE_SLOPPINESS=$CCACHE_SLOPPINESS CCACHE_BASEDIR=$TOPDIR $CCACHE" 65573 65574 if test "x$SET_CCACHE_DIR" != x; then 65575 mkdir -p $CCACHE_DIR > /dev/null 2>&1 65576 chmod a+rwxs $CCACHE_DIR > /dev/null 2>&1 65577 fi 65578 fi 65579 65580 fi 65581 65582 65583 ############################################################################### 65584 # 65585 # And now the finish... 65586 # 65587 ############################################################################### 65588 65589 # Check for some common pitfalls 65590 65591 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 65592 file_to_test="$SRC_ROOT/LICENSE" 65593 if test `$STAT -c '%a' "$file_to_test"` -lt 400; then 65594 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 65595 fi 65596 fi 65597 65598 65599 # Did user specify any unknown variables? 65600 65601 if test "x$CONFIGURE_OVERRIDDEN_VARIABLES" != x; then 65602 # Replace the separating ! with spaces before presenting for end user. 65603 unknown_variables=${CONFIGURE_OVERRIDDEN_VARIABLES//!/ } 65604 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: The following variables might be unknown to configure: $unknown_variables" >&5 65605 $as_echo "$as_me: WARNING: The following variables might be unknown to configure: $unknown_variables" >&2;} 65606 fi 65607 65608 65609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if build directory is on local disk" >&5 65610 $as_echo_n "checking if build directory is on local disk... " >&6; } 65611 65612 # df -l lists only local disks; if the given directory is not found then 65613 # a non-zero exit code is given 65614 if test "x$DF" = x; then 65615 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 65616 # msys does not have df; use Windows "net use" instead. 65617 IS_NETWORK_DISK=`net use | grep \`pwd -W | cut -d ":" -f 1 | tr a-z A-Z\`:` 65618 if test "x$IS_NETWORK_DISK" = x; then 65619 OUTPUT_DIR_IS_LOCAL="yes" 65620 else 65621 OUTPUT_DIR_IS_LOCAL="no" 65622 fi 65623 else 65624 # No df here, say it's local 65625 OUTPUT_DIR_IS_LOCAL="yes" 65626 fi 65627 else 65628 if $DF -l $OUTPUT_ROOT > /dev/null 2>&1; then 65629 OUTPUT_DIR_IS_LOCAL="yes" 65630 else 65631 OUTPUT_DIR_IS_LOCAL="no" 65632 fi 65633 fi 65634 65635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OUTPUT_DIR_IS_LOCAL" >&5 65636 $as_echo "$OUTPUT_DIR_IS_LOCAL" >&6; } 65637 65638 65639 65640 # Check if the user has any old-style ALT_ variables set. 65641 FOUND_ALT_VARIABLES=`env | grep ^ALT_` 65642 65643 # Before generating output files, test if they exist. If they do, this is a reconfigure. 65644 # Since we can't properly handle the dependencies for this, warn the user about the situation 65645 if test -e $OUTPUT_ROOT/spec.gmk; then 65646 IS_RECONFIGURE=yes 65647 else 65648 IS_RECONFIGURE=no 65649 fi 65650 65651 65652 # At the end, call the custom hook. (Dummy macro if no custom sources available) 65653 65654 65655 # This needs to be done after CUSTOM_LATE_HOOK since we can setup custom features. 65656 65657 # Keep feature lists sorted and free of duplicates 65658 JVM_FEATURES_server="$($ECHO $($PRINTF '%s\n' $JVM_FEATURES_server | $SORT -u))" 65659 JVM_FEATURES_client="$($ECHO $($PRINTF '%s\n' $JVM_FEATURES_client | $SORT -u))" 65660 JVM_FEATURES_core="$($ECHO $($PRINTF '%s\n' $JVM_FEATURES_core | $SORT -u))" 65661 JVM_FEATURES_minimal="$($ECHO $($PRINTF '%s\n' $JVM_FEATURES_minimal | $SORT -u))" 65662 JVM_FEATURES_zero="$($ECHO $($PRINTF '%s\n' $JVM_FEATURES_zero | $SORT -u))" 65663 JVM_FEATURES_zeroshark="$($ECHO $($PRINTF '%s\n' $JVM_FEATURES_zeroshark | $SORT -u))" 65664 JVM_FEATURES_custom="$($ECHO $($PRINTF '%s\n' $JVM_FEATURES_custom | $SORT -u))" 65665 65666 # Validate features 65667 for variant in $JVM_VARIANTS; do 65668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking JVM features for JVM variant '$variant'" >&5 65669 $as_echo_n "checking JVM features for JVM variant '$variant'... " >&6; } 65670 features_var_name=JVM_FEATURES_$variant 65671 JVM_FEATURES_TO_TEST=${!features_var_name} 65672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JVM_FEATURES_TO_TEST" >&5 65673 $as_echo "$JVM_FEATURES_TO_TEST" >&6; } 65674 NEEDLE=${VALID_JVM_FEATURES// /$'\n'} 65675 STACK=${JVM_FEATURES_TO_TEST// /$'\n'} 65676 INVALID_FEATURES=`$GREP -Fvx "${NEEDLE}" <<< "${STACK}"` 65677 if test "x$INVALID_FEATURES" != x; then 65678 as_fn_error $? "Invalid JVM feature(s): $INVALID_FEATURES" "$LINENO" 5 65679 fi 65680 done 65681 65682 65683 # We're messing a bit with internal autoconf variables to put the config.status 65684 # in the output directory instead of the current directory. 65685 CONFIG_STATUS="$CONFIGURESUPPORT_OUTPUTDIR/config.status" 65686 65687 # Create the actual output files. Now the main work of configure is done. 65688 cat >confcache <<\_ACEOF 65689 # This file is a shell script that caches the results of configure 65690 # tests run on this system so they can be shared between configure 65691 # scripts and configure runs, see configure's option --config-cache. 65692 # It is not useful on other systems. If it contains results you don't 65693 # want to keep, you may remove or edit it. 65694 # 65695 # config.status only pays attention to the cache file if you give it 65696 # the --recheck option to rerun configure. 65697 # 65698 # `ac_cv_env_foo' variables (set or unset) will be overridden when 65699 # loading this file, other *unset* `ac_cv_foo' will be assigned the 65700 # following values. 65701 65702 _ACEOF 65703 65704 # The following way of writing the cache mishandles newlines in values, 65705 # but we know of no workaround that is simple, portable, and efficient. 65706 # So, we kill variables containing newlines. 65707 # Ultrix sh set writes to stderr and can't be redirected directly, 65708 # and sets the high bit in the cache file unless we assign to the vars. 65709 ( 65710 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 65711 eval ac_val=\$$ac_var 65712 case $ac_val in #( 65713 *${as_nl}*) 65714 case $ac_var in #( 65715 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 65716 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 65717 esac 65718 case $ac_var in #( 65719 _ | IFS | as_nl) ;; #( 65720 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 65721 *) { eval $ac_var=; unset $ac_var;} ;; 65722 esac ;; 65723 esac 65724 done 65725 65726 (set) 2>&1 | 65727 case $as_nl`(ac_space=' '; set) 2>&1` in #( 65728 *${as_nl}ac_space=\ *) 65729 # `set' does not quote correctly, so add quotes: double-quote 65730 # substitution turns \\\\ into \\, and sed turns \\ into \. 65731 sed -n \ 65732 "s/'/'\\\\''/g; 65733 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 65734 ;; #( 65735 *) 65736 # `set' quotes correctly as required by POSIX, so do not add quotes. 65737 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 65738 ;; 65739 esac | 65740 sort 65741 ) | 65742 sed ' 65743 /^ac_cv_env_/b end 65744 t clear 65745 :clear 65746 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 65747 t end 65748 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 65749 :end' >>confcache 65750 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 65751 if test -w "$cache_file"; then 65752 if test "x$cache_file" != "x/dev/null"; then 65753 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 65754 $as_echo "$as_me: updating cache $cache_file" >&6;} 65755 if test ! -f "$cache_file" || test -h "$cache_file"; then 65756 cat confcache >"$cache_file" 65757 else 65758 case $cache_file in #( 65759 */* | ?:*) 65760 mv -f confcache "$cache_file"$$ && 65761 mv -f "$cache_file"$$ "$cache_file" ;; #( 65762 *) 65763 mv -f confcache "$cache_file" ;; 65764 esac 65765 fi 65766 fi 65767 else 65768 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 65769 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 65770 fi 65771 fi 65772 rm -f confcache 65773 65774 test "x$prefix" = xNONE && prefix=$ac_default_prefix 65775 # Let make expand exec_prefix. 65776 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 65777 65778 # Transform confdefs.h into DEFS. 65779 # Protect against shell expansion while executing Makefile rules. 65780 # Protect against Makefile macro expansion. 65781 # 65782 # If the first sed substitution is executed (which looks for macros that 65783 # take arguments), then branch to the quote section. Otherwise, 65784 # look for a macro that doesn't take arguments. 65785 ac_script=' 65786 :mline 65787 /\\$/{ 65788 N 65789 s,\\\n,, 65790 b mline 65791 } 65792 t clear 65793 :clear 65794 s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g 65795 t quote 65796 s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g 65797 t quote 65798 b any 65799 :quote 65800 s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g 65801 s/\[/\\&/g 65802 s/\]/\\&/g 65803 s/\$/$$/g 65804 H 65805 :any 65806 ${ 65807 g 65808 s/^\n// 65809 s/\n/ /g 65810 p 65811 } 65812 ' 65813 DEFS=`sed -n "$ac_script" confdefs.h` 65814 65815 65816 ac_libobjs= 65817 ac_ltlibobjs= 65818 U= 65819 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 65820 # 1. Remove the extension, and $U if already installed. 65821 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 65822 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 65823 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 65824 # will be set to the directory where LIBOBJS objects are built. 65825 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 65826 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 65827 done 65828 LIBOBJS=$ac_libobjs 65829 65830 LTLIBOBJS=$ac_ltlibobjs 65831 65832 65833 65834 : "${CONFIG_STATUS=./config.status}" 65835 ac_write_fail=0 65836 ac_clean_files_save=$ac_clean_files 65837 ac_clean_files="$ac_clean_files $CONFIG_STATUS" 65838 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 65839 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 65840 as_write_fail=0 65841 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 65842 #! $SHELL 65843 # Generated by $as_me. 65844 # Run this file to recreate the current configuration. 65845 # Compiler output produced by configure, useful for debugging 65846 # configure, is in config.log if it exists. 65847 65848 debug=false 65849 ac_cs_recheck=false 65850 ac_cs_silent=false 65851 65852 SHELL=\${CONFIG_SHELL-$SHELL} 65853 export SHELL 65854 _ASEOF 65855 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 65856 ## -------------------- ## 65857 ## M4sh Initialization. ## 65858 ## -------------------- ## 65859 65860 # Be more Bourne compatible 65861 DUALCASE=1; export DUALCASE # for MKS sh 65862 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 65863 emulate sh 65864 NULLCMD=: 65865 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 65866 # is contrary to our usage. Disable this feature. 65867 alias -g '${1+"$@"}'='"$@"' 65868 setopt NO_GLOB_SUBST 65869 else 65870 case `(set -o) 2>/dev/null` in #( 65871 *posix*) : 65872 set -o posix ;; #( 65873 *) : 65874 ;; 65875 esac 65876 fi 65877 65878 65879 as_nl=' 65880 ' 65881 export as_nl 65882 # Printing a long string crashes Solaris 7 /usr/bin/printf. 65883 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 65884 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 65885 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 65886 # Prefer a ksh shell builtin over an external printf program on Solaris, 65887 # but without wasting forks for bash or zsh. 65888 if test -z "$BASH_VERSION$ZSH_VERSION" \ 65889 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 65890 as_echo='print -r --' 65891 as_echo_n='print -rn --' 65892 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 65893 as_echo='printf %s\n' 65894 as_echo_n='printf %s' 65895 else 65896 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 65897 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 65898 as_echo_n='/usr/ucb/echo -n' 65899 else 65900 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 65901 as_echo_n_body='eval 65902 arg=$1; 65903 case $arg in #( 65904 *"$as_nl"*) 65905 expr "X$arg" : "X\\(.*\\)$as_nl"; 65906 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 65907 esac; 65908 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 65909 ' 65910 export as_echo_n_body 65911 as_echo_n='sh -c $as_echo_n_body as_echo' 65912 fi 65913 export as_echo_body 65914 as_echo='sh -c $as_echo_body as_echo' 65915 fi 65916 65917 # The user is always right. 65918 if test "${PATH_SEPARATOR+set}" != set; then 65919 PATH_SEPARATOR=: 65920 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 65921 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 65922 PATH_SEPARATOR=';' 65923 } 65924 fi 65925 65926 65927 # IFS 65928 # We need space, tab and new line, in precisely that order. Quoting is 65929 # there to prevent editors from complaining about space-tab. 65930 # (If _AS_PATH_WALK were called with IFS unset, it would disable word 65931 # splitting by setting IFS to empty value.) 65932 IFS=" "" $as_nl" 65933 65934 # Find who we are. Look in the path if we contain no directory separator. 65935 as_myself= 65936 case $0 in #(( 65937 *[\\/]* ) as_myself=$0 ;; 65938 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 65939 for as_dir in $PATH 65940 do 65941 IFS=$as_save_IFS 65942 test -z "$as_dir" && as_dir=. 65943 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 65944 done 65945 IFS=$as_save_IFS 65946 65947 ;; 65948 esac 65949 # We did not find ourselves, most probably we were run as `sh COMMAND' 65950 # in which case we are not to be found in the path. 65951 if test "x$as_myself" = x; then 65952 as_myself=$0 65953 fi 65954 if test ! -f "$as_myself"; then 65955 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 65956 exit 1 65957 fi 65958 65959 # Unset variables that we do not need and which cause bugs (e.g. in 65960 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 65961 # suppresses any "Segmentation fault" message there. '((' could 65962 # trigger a bug in pdksh 5.2.14. 65963 for as_var in BASH_ENV ENV MAIL MAILPATH 65964 do eval test x\${$as_var+set} = xset \ 65965 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 65966 done 65967 PS1='$ ' 65968 PS2='> ' 65969 PS4='+ ' 65970 65971 # NLS nuisances. 65972 LC_ALL=C 65973 export LC_ALL 65974 LANGUAGE=C 65975 export LANGUAGE 65976 65977 # CDPATH. 65978 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH 65979 65980 65981 # as_fn_error STATUS ERROR [LINENO LOG_FD] 65982 # ---------------------------------------- 65983 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 65984 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the 65985 # script with STATUS, using 1 if that was 0. 65986 as_fn_error () 65987 { 65988 as_status=$1; test $as_status -eq 0 && as_status=1 65989 if test "$4"; then 65990 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 65991 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 65992 fi 65993 $as_echo "$as_me: error: $2" >&2 65994 as_fn_exit $as_status 65995 } # as_fn_error 65996 65997 65998 # as_fn_set_status STATUS 65999 # ----------------------- 66000 # Set $? to STATUS, without forking. 66001 as_fn_set_status () 66002 { 66003 return $1 66004 } # as_fn_set_status 66005 66006 # as_fn_exit STATUS 66007 # ----------------- 66008 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 66009 as_fn_exit () 66010 { 66011 set +e 66012 as_fn_set_status $1 66013 exit $1 66014 } # as_fn_exit 66015 66016 # as_fn_unset VAR 66017 # --------------- 66018 # Portably unset VAR. 66019 as_fn_unset () 66020 { 66021 { eval $1=; unset $1;} 66022 } 66023 as_unset=as_fn_unset 66024 # as_fn_append VAR VALUE 66025 # ---------------------- 66026 # Append the text in VALUE to the end of the definition contained in VAR. Take 66027 # advantage of any shell optimizations that allow amortized linear growth over 66028 # repeated appends, instead of the typical quadratic growth present in naive 66029 # implementations. 66030 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 66031 eval 'as_fn_append () 66032 { 66033 eval $1+=\$2 66034 }' 66035 else 66036 as_fn_append () 66037 { 66038 eval $1=\$$1\$2 66039 } 66040 fi # as_fn_append 66041 66042 # as_fn_arith ARG... 66043 # ------------------ 66044 # Perform arithmetic evaluation on the ARGs, and store the result in the 66045 # global $as_val. Take advantage of shells that can avoid forks. The arguments 66046 # must be portable across $(()) and expr. 66047 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 66048 eval 'as_fn_arith () 66049 { 66050 as_val=$(( $* )) 66051 }' 66052 else 66053 as_fn_arith () 66054 { 66055 as_val=`expr "$@" || test $? -eq 1` 66056 } 66057 fi # as_fn_arith 66058 66059 66060 if expr a : '\(a\)' >/dev/null 2>&1 && 66061 test "X`expr 00001 : '.*\(...\)'`" = X001; then 66062 as_expr=expr 66063 else 66064 as_expr=false 66065 fi 66066 66067 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 66068 as_basename=basename 66069 else 66070 as_basename=false 66071 fi 66072 66073 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 66074 as_dirname=dirname 66075 else 66076 as_dirname=false 66077 fi 66078 66079 as_me=`$as_basename -- "$0" || 66080 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 66081 X"$0" : 'X\(//\)$' \| \ 66082 X"$0" : 'X\(/\)' \| . 2>/dev/null || 66083 $as_echo X/"$0" | 66084 sed '/^.*\/\([^/][^/]*\)\/*$/{ 66085 s//\1/ 66086 q 66087 } 66088 /^X\/\(\/\/\)$/{ 66089 s//\1/ 66090 q 66091 } 66092 /^X\/\(\/\).*/{ 66093 s//\1/ 66094 q 66095 } 66096 s/.*/./; q'` 66097 66098 # Avoid depending upon Character Ranges. 66099 as_cr_letters='abcdefghijklmnopqrstuvwxyz' 66100 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 66101 as_cr_Letters=$as_cr_letters$as_cr_LETTERS 66102 as_cr_digits='0123456789' 66103 as_cr_alnum=$as_cr_Letters$as_cr_digits 66104 66105 ECHO_C= ECHO_N= ECHO_T= 66106 case `echo -n x` in #((((( 66107 -n*) 66108 case `echo 'xy\c'` in 66109 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 66110 xy) ECHO_C='\c';; 66111 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 66112 ECHO_T=' ';; 66113 esac;; 66114 *) 66115 ECHO_N='-n';; 66116 esac 66117 66118 rm -f conf$$ conf$$.exe conf$$.file 66119 if test -d conf$$.dir; then 66120 rm -f conf$$.dir/conf$$.file 66121 else 66122 rm -f conf$$.dir 66123 mkdir conf$$.dir 2>/dev/null 66124 fi 66125 if (echo >conf$$.file) 2>/dev/null; then 66126 if ln -s conf$$.file conf$$ 2>/dev/null; then 66127 as_ln_s='ln -s' 66128 # ... but there are two gotchas: 66129 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 66130 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 66131 # In both cases, we have to default to `cp -pR'. 66132 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 66133 as_ln_s='cp -pR' 66134 elif ln conf$$.file conf$$ 2>/dev/null; then 66135 as_ln_s=ln 66136 else 66137 as_ln_s='cp -pR' 66138 fi 66139 else 66140 as_ln_s='cp -pR' 66141 fi 66142 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 66143 rmdir conf$$.dir 2>/dev/null 66144 66145 66146 # as_fn_mkdir_p 66147 # ------------- 66148 # Create "$as_dir" as a directory, including parents if necessary. 66149 as_fn_mkdir_p () 66150 { 66151 66152 case $as_dir in #( 66153 -*) as_dir=./$as_dir;; 66154 esac 66155 test -d "$as_dir" || eval $as_mkdir_p || { 66156 as_dirs= 66157 while :; do 66158 case $as_dir in #( 66159 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 66160 *) as_qdir=$as_dir;; 66161 esac 66162 as_dirs="'$as_qdir' $as_dirs" 66163 as_dir=`$as_dirname -- "$as_dir" || 66164 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 66165 X"$as_dir" : 'X\(//\)[^/]' \| \ 66166 X"$as_dir" : 'X\(//\)$' \| \ 66167 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 66168 $as_echo X"$as_dir" | 66169 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 66170 s//\1/ 66171 q 66172 } 66173 /^X\(\/\/\)[^/].*/{ 66174 s//\1/ 66175 q 66176 } 66177 /^X\(\/\/\)$/{ 66178 s//\1/ 66179 q 66180 } 66181 /^X\(\/\).*/{ 66182 s//\1/ 66183 q 66184 } 66185 s/.*/./; q'` 66186 test -d "$as_dir" && break 66187 done 66188 test -z "$as_dirs" || eval "mkdir $as_dirs" 66189 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 66190 66191 66192 } # as_fn_mkdir_p 66193 if mkdir -p . 2>/dev/null; then 66194 as_mkdir_p='mkdir -p "$as_dir"' 66195 else 66196 test -d ./-p && rmdir ./-p 66197 as_mkdir_p=false 66198 fi 66199 66200 66201 # as_fn_executable_p FILE 66202 # ----------------------- 66203 # Test if FILE is an executable regular file. 66204 as_fn_executable_p () 66205 { 66206 test -f "$1" && test -x "$1" 66207 } # as_fn_executable_p 66208 as_test_x='test -x' 66209 as_executable_p=as_fn_executable_p 66210 66211 # Sed expression to map a string onto a valid CPP name. 66212 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 66213 66214 # Sed expression to map a string onto a valid variable name. 66215 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 66216 66217 66218 exec 6>&1 66219 ## ----------------------------------- ## 66220 ## Main body of $CONFIG_STATUS script. ## 66221 ## ----------------------------------- ## 66222 _ASEOF 66223 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 66224 66225 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 66226 # Save the log message, to keep $0 and so on meaningful, and to 66227 # report actual input values of CONFIG_FILES etc. instead of their 66228 # values after options handling. 66229 ac_log=" 66230 This file was extended by OpenJDK $as_me jdk9, which was 66231 generated by GNU Autoconf 2.69. Invocation command line was 66232 66233 CONFIG_FILES = $CONFIG_FILES 66234 CONFIG_HEADERS = $CONFIG_HEADERS 66235 CONFIG_LINKS = $CONFIG_LINKS 66236 CONFIG_COMMANDS = $CONFIG_COMMANDS 66237 $ $0 $@ 66238 66239 on `(hostname || uname -n) 2>/dev/null | sed 1q` 66240 " 66241 66242 _ACEOF 66243 66244 case $ac_config_files in *" 66245 "*) set x $ac_config_files; shift; ac_config_files=$*;; 66246 esac 66247 66248 66249 66250 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 66251 # Files that config.status was made for. 66252 config_files="$ac_config_files" 66253 66254 _ACEOF 66255 66256 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 66257 ac_cs_usage="\ 66258 \`$as_me' instantiates files and other configuration actions 66259 from templates according to the current configuration. Unless the files 66260 and actions are specified as TAGs, all are instantiated by default. 66261 66262 Usage: $0 [OPTION]... [TAG]... 66263 66264 -h, --help print this help, then exit 66265 -V, --version print version number and configuration settings, then exit 66266 --config print configuration, then exit 66267 -q, --quiet, --silent 66268 do not print progress messages 66269 -d, --debug don't remove temporary files 66270 --recheck update $as_me by reconfiguring in the same conditions 66271 --file=FILE[:TEMPLATE] 66272 instantiate the configuration file FILE 66273 66274 Configuration files: 66275 $config_files 66276 66277 Report bugs to <build-dev@openjdk.java.net>. 66278 OpenJDK home page: <http://openjdk.java.net>." 66279 66280 _ACEOF 66281 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 66282 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 66283 ac_cs_version="\\ 66284 OpenJDK config.status jdk9 66285 configured by $0, generated by GNU Autoconf 2.69, 66286 with options \\"\$ac_cs_config\\" 66287 66288 Copyright (C) 2012 Free Software Foundation, Inc. 66289 This config.status script is free software; the Free Software Foundation 66290 gives unlimited permission to copy, distribute and modify it." 66291 66292 ac_pwd='$ac_pwd' 66293 srcdir='$srcdir' 66294 AWK='$AWK' 66295 test -n "\$AWK" || AWK=awk 66296 _ACEOF 66297 66298 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 66299 # The default lists apply if the user does not specify any file. 66300 ac_need_defaults=: 66301 while test $# != 0 66302 do 66303 case $1 in 66304 --*=?*) 66305 ac_option=`expr "X$1" : 'X\([^=]*\)='` 66306 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 66307 ac_shift=: 66308 ;; 66309 --*=) 66310 ac_option=`expr "X$1" : 'X\([^=]*\)='` 66311 ac_optarg= 66312 ac_shift=: 66313 ;; 66314 *) 66315 ac_option=$1 66316 ac_optarg=$2 66317 ac_shift=shift 66318 ;; 66319 esac 66320 66321 case $ac_option in 66322 # Handling of the options. 66323 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 66324 ac_cs_recheck=: ;; 66325 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 66326 $as_echo "$ac_cs_version"; exit ;; 66327 --config | --confi | --conf | --con | --co | --c ) 66328 $as_echo "$ac_cs_config"; exit ;; 66329 --debug | --debu | --deb | --de | --d | -d ) 66330 debug=: ;; 66331 --file | --fil | --fi | --f ) 66332 $ac_shift 66333 case $ac_optarg in 66334 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 66335 '') as_fn_error $? "missing file argument" ;; 66336 esac 66337 as_fn_append CONFIG_FILES " '$ac_optarg'" 66338 ac_need_defaults=false;; 66339 --he | --h | --help | --hel | -h ) 66340 $as_echo "$ac_cs_usage"; exit ;; 66341 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 66342 | -silent | --silent | --silen | --sile | --sil | --si | --s) 66343 ac_cs_silent=: ;; 66344 66345 # This is an error. 66346 -*) as_fn_error $? "unrecognized option: \`$1' 66347 Try \`$0 --help' for more information." ;; 66348 66349 *) as_fn_append ac_config_targets " $1" 66350 ac_need_defaults=false ;; 66351 66352 esac 66353 shift 66354 done 66355 66356 ac_configure_extra_args= 66357 66358 if $ac_cs_silent; then 66359 exec 6>/dev/null 66360 ac_configure_extra_args="$ac_configure_extra_args --silent" 66361 fi 66362 66363 _ACEOF 66364 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 66365 if \$ac_cs_recheck; then 66366 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 66367 shift 66368 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 66369 CONFIG_SHELL='$SHELL' 66370 export CONFIG_SHELL 66371 exec "\$@" 66372 fi 66373 66374 _ACEOF 66375 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 66376 exec 5>>config.log 66377 { 66378 echo 66379 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 66380 ## Running $as_me. ## 66381 _ASBOX 66382 $as_echo "$ac_log" 66383 } >&5 66384 66385 _ACEOF 66386 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 66387 _ACEOF 66388 66389 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 66390 66391 # Handling of arguments. 66392 for ac_config_target in $ac_config_targets 66393 do 66394 case $ac_config_target in 66395 "$OUTPUT_ROOT/spec.gmk") CONFIG_FILES="$CONFIG_FILES $OUTPUT_ROOT/spec.gmk:$AUTOCONF_DIR/spec.gmk.in" ;; 66396 "$OUTPUT_ROOT/bootcycle-spec.gmk") CONFIG_FILES="$CONFIG_FILES $OUTPUT_ROOT/bootcycle-spec.gmk:$AUTOCONF_DIR/bootcycle-spec.gmk.in" ;; 66397 "$OUTPUT_ROOT/buildjdk-spec.gmk") CONFIG_FILES="$CONFIG_FILES $OUTPUT_ROOT/buildjdk-spec.gmk:$AUTOCONF_DIR/buildjdk-spec.gmk.in" ;; 66398 "$OUTPUT_ROOT/compare.sh") CONFIG_FILES="$CONFIG_FILES $OUTPUT_ROOT/compare.sh:$AUTOCONF_DIR/compare.sh.in" ;; 66399 "$OUTPUT_ROOT/Makefile") CONFIG_FILES="$CONFIG_FILES $OUTPUT_ROOT/Makefile:$AUTOCONF_DIR/Makefile.in" ;; 66400 66401 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 66402 esac 66403 done 66404 66405 66406 # If the user did not use the arguments to specify the items to instantiate, 66407 # then the envvar interface is used. Set only those that are not. 66408 # We use the long form for the default assignment because of an extremely 66409 # bizarre bug on SunOS 4.1.3. 66410 if $ac_need_defaults; then 66411 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 66412 fi 66413 66414 # Have a temporary directory for convenience. Make it in the build tree 66415 # simply because there is no reason against having it here, and in addition, 66416 # creating and moving files from /tmp can sometimes cause problems. 66417 # Hook for its removal unless debugging. 66418 # Note that there is a small window in which the directory will not be cleaned: 66419 # after its creation but before its name has been assigned to `$tmp'. 66420 $debug || 66421 { 66422 tmp= ac_tmp= 66423 trap 'exit_status=$? 66424 : "${ac_tmp:=$tmp}" 66425 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 66426 ' 0 66427 trap 'as_fn_exit 1' 1 2 13 15 66428 } 66429 # Create a (secure) tmp directory for tmp files. 66430 66431 { 66432 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 66433 test -d "$tmp" 66434 } || 66435 { 66436 tmp=./conf$$-$RANDOM 66437 (umask 077 && mkdir "$tmp") 66438 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 66439 ac_tmp=$tmp 66440 66441 # Set up the scripts for CONFIG_FILES section. 66442 # No need to generate them if there are no CONFIG_FILES. 66443 # This happens for instance with `./config.status config.h'. 66444 if test -n "$CONFIG_FILES"; then 66445 66446 66447 ac_cr=`echo X | tr X '\015'` 66448 # On cygwin, bash can eat \r inside `` if the user requested igncr. 66449 # But we know of no other shell where ac_cr would be empty at this 66450 # point, so we can use a bashism as a fallback. 66451 if test "x$ac_cr" = x; then 66452 eval ac_cr=\$\'\\r\' 66453 fi 66454 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 66455 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 66456 ac_cs_awk_cr='\\r' 66457 else 66458 ac_cs_awk_cr=$ac_cr 66459 fi 66460 66461 echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 66462 _ACEOF 66463 66464 66465 { 66466 echo "cat >conf$$subs.awk <<_ACEOF" && 66467 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 66468 echo "_ACEOF" 66469 } >conf$$subs.sh || 66470 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 66471 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 66472 ac_delim='%!_!# ' 66473 for ac_last_try in false false false false false :; do 66474 . ./conf$$subs.sh || 66475 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 66476 66477 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 66478 if test $ac_delim_n = $ac_delim_num; then 66479 break 66480 elif $ac_last_try; then 66481 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 66482 else 66483 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 66484 fi 66485 done 66486 rm -f conf$$subs.sh 66487 66488 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 66489 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 66490 _ACEOF 66491 sed -n ' 66492 h 66493 s/^/S["/; s/!.*/"]=/ 66494 p 66495 g 66496 s/^[^!]*!// 66497 :repl 66498 t repl 66499 s/'"$ac_delim"'$// 66500 t delim 66501 :nl 66502 h 66503 s/\(.\{148\}\)..*/\1/ 66504 t more1 66505 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 66506 p 66507 n 66508 b repl 66509 :more1 66510 s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 66511 p 66512 g 66513 s/.\{148\}// 66514 t nl 66515 :delim 66516 h 66517 s/\(.\{148\}\)..*/\1/ 66518 t more2 66519 s/["\\]/\\&/g; s/^/"/; s/$/"/ 66520 p 66521 b 66522 :more2 66523 s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 66524 p 66525 g 66526 s/.\{148\}// 66527 t delim 66528 ' <conf$$subs.awk | sed ' 66529 /^[^""]/{ 66530 N 66531 s/\n// 66532 } 66533 ' >>$CONFIG_STATUS || ac_write_fail=1 66534 rm -f conf$$subs.awk 66535 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 66536 _ACAWK 66537 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 66538 for (key in S) S_is_set[key] = 1 66539 FS = "" 66540 66541 } 66542 { 66543 line = $ 0 66544 nfields = split(line, field, "@") 66545 substed = 0 66546 len = length(field[1]) 66547 for (i = 2; i < nfields; i++) { 66548 key = field[i] 66549 keylen = length(key) 66550 if (S_is_set[key]) { 66551 value = S[key] 66552 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 66553 len += length(value) + length(field[++i]) 66554 substed = 1 66555 } else 66556 len += 1 + keylen 66557 } 66558 66559 print line 66560 } 66561 66562 _ACAWK 66563 _ACEOF 66564 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 66565 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 66566 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 66567 else 66568 cat 66569 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 66570 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 66571 _ACEOF 66572 66573 # VPATH may cause trouble with some makes, so we remove sole $(srcdir), 66574 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 66575 # trailing colons and then remove the whole line if VPATH becomes empty 66576 # (actually we leave an empty line to preserve line numbers). 66577 if test "x$srcdir" = x.; then 66578 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 66579 h 66580 s/// 66581 s/^/:/ 66582 s/[ ]*$/:/ 66583 s/:\$(srcdir):/:/g 66584 s/:\${srcdir}:/:/g 66585 s/:@srcdir@:/:/g 66586 s/^:*// 66587 s/:*$// 66588 x 66589 s/\(=[ ]*\).*/\1/ 66590 G 66591 s/\n// 66592 s/^[^=]*=[ ]*$// 66593 }' 66594 fi 66595 66596 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 66597 fi # test -n "$CONFIG_FILES" 66598 66599 66600 eval set X " :F $CONFIG_FILES " 66601 shift 66602 for ac_tag 66603 do 66604 case $ac_tag in 66605 :[FHLC]) ac_mode=$ac_tag; continue;; 66606 esac 66607 case $ac_mode$ac_tag in 66608 :[FHL]*:*);; 66609 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 66610 :[FH]-) ac_tag=-:-;; 66611 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 66612 esac 66613 ac_save_IFS=$IFS 66614 IFS=: 66615 set x $ac_tag 66616 IFS=$ac_save_IFS 66617 shift 66618 ac_file=$1 66619 shift 66620 66621 case $ac_mode in 66622 :L) ac_source=$1;; 66623 :[FH]) 66624 ac_file_inputs= 66625 for ac_f 66626 do 66627 case $ac_f in 66628 -) ac_f="$ac_tmp/stdin";; 66629 *) # Look for the file first in the build tree, then in the source tree 66630 # (if the path is not absolute). The absolute path cannot be DOS-style, 66631 # because $ac_f cannot contain `:'. 66632 test -f "$ac_f" || 66633 case $ac_f in 66634 [\\/$]*) false;; 66635 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 66636 esac || 66637 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 66638 esac 66639 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 66640 as_fn_append ac_file_inputs " '$ac_f'" 66641 done 66642 66643 # Let's still pretend it is `configure' which instantiates (i.e., don't 66644 # use $as_me), people would be surprised to read: 66645 # /* config.h. Generated by config.status. */ 66646 configure_input='Generated from '` 66647 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 66648 `' by configure.' 66649 if test x"$ac_file" != x-; then 66650 configure_input="$ac_file. $configure_input" 66651 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 66652 $as_echo "$as_me: creating $ac_file" >&6;} 66653 fi 66654 # Neutralize special characters interpreted by sed in replacement strings. 66655 case $configure_input in #( 66656 *\&* | *\|* | *\\* ) 66657 ac_sed_conf_input=`$as_echo "$configure_input" | 66658 sed 's/[\\\\&|]/\\\\&/g'`;; #( 66659 *) ac_sed_conf_input=$configure_input;; 66660 esac 66661 66662 case $ac_tag in 66663 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 66664 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 66665 esac 66666 ;; 66667 esac 66668 66669 ac_dir=`$as_dirname -- "$ac_file" || 66670 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 66671 X"$ac_file" : 'X\(//\)[^/]' \| \ 66672 X"$ac_file" : 'X\(//\)$' \| \ 66673 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 66674 $as_echo X"$ac_file" | 66675 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 66676 s//\1/ 66677 q 66678 } 66679 /^X\(\/\/\)[^/].*/{ 66680 s//\1/ 66681 q 66682 } 66683 /^X\(\/\/\)$/{ 66684 s//\1/ 66685 q 66686 } 66687 /^X\(\/\).*/{ 66688 s//\1/ 66689 q 66690 } 66691 s/.*/./; q'` 66692 as_dir="$ac_dir"; as_fn_mkdir_p 66693 ac_builddir=. 66694 66695 case "$ac_dir" in 66696 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 66697 *) 66698 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 66699 # A ".." for each directory in $ac_dir_suffix. 66700 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 66701 case $ac_top_builddir_sub in 66702 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 66703 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 66704 esac ;; 66705 esac 66706 ac_abs_top_builddir=$ac_pwd 66707 ac_abs_builddir=$ac_pwd$ac_dir_suffix 66708 # for backward compatibility: 66709 ac_top_builddir=$ac_top_build_prefix 66710 66711 case $srcdir in 66712 .) # We are building in place. 66713 ac_srcdir=. 66714 ac_top_srcdir=$ac_top_builddir_sub 66715 ac_abs_top_srcdir=$ac_pwd ;; 66716 [\\/]* | ?:[\\/]* ) # Absolute name. 66717 ac_srcdir=$srcdir$ac_dir_suffix; 66718 ac_top_srcdir=$srcdir 66719 ac_abs_top_srcdir=$srcdir ;; 66720 *) # Relative name. 66721 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 66722 ac_top_srcdir=$ac_top_build_prefix$srcdir 66723 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 66724 esac 66725 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 66726 66727 66728 case $ac_mode in 66729 :F) 66730 # 66731 # CONFIG_FILE 66732 # 66733 66734 _ACEOF 66735 66736 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 66737 # If the template does not know about datarootdir, expand it. 66738 # FIXME: This hack should be removed a few years after 2.60. 66739 ac_datarootdir_hack=; ac_datarootdir_seen= 66740 ac_sed_dataroot=' 66741 /datarootdir/ { 66742 p 66743 q 66744 } 66745 /@datadir@/p 66746 /@docdir@/p 66747 /@infodir@/p 66748 /@localedir@/p 66749 /@mandir@/p' 66750 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 66751 *datarootdir*) ac_datarootdir_seen=yes;; 66752 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 66753 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 66754 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 66755 _ACEOF 66756 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 66757 ac_datarootdir_hack=' 66758 s&@datadir@&$datadir&g 66759 s&@docdir@&$docdir&g 66760 s&@infodir@&$infodir&g 66761 s&@localedir@&$localedir&g 66762 s&@mandir@&$mandir&g 66763 s&\\\${datarootdir}&$datarootdir&g' ;; 66764 esac 66765 _ACEOF 66766 66767 # Neutralize VPATH when `$srcdir' = `.'. 66768 # Shell code in configure.ac might set extrasub. 66769 # FIXME: do we really want to maintain this feature? 66770 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 66771 ac_sed_extra="$ac_vpsub 66772 $extrasub 66773 _ACEOF 66774 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 66775 :t 66776 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b 66777 s|@configure_input@|$ac_sed_conf_input|;t t 66778 s&@top_builddir@&$ac_top_builddir_sub&;t t 66779 s&@top_build_prefix@&$ac_top_build_prefix&;t t 66780 s&@srcdir@&$ac_srcdir&;t t 66781 s&@abs_srcdir@&$ac_abs_srcdir&;t t 66782 s&@top_srcdir@&$ac_top_srcdir&;t t 66783 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 66784 s&@builddir@&$ac_builddir&;t t 66785 s&@abs_builddir@&$ac_abs_builddir&;t t 66786 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 66787 $ac_datarootdir_hack 66788 " 66789 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 66790 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 66791 66792 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 66793 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 66794 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 66795 "$ac_tmp/out"`; test -z "$ac_out"; } && 66796 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 66797 which seems to be undefined. Please make sure it is defined" >&5 66798 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 66799 which seems to be undefined. Please make sure it is defined" >&2;} 66800 66801 rm -f "$ac_tmp/stdin" 66802 case $ac_file in 66803 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 66804 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 66805 esac \ 66806 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 66807 ;; 66808 66809 66810 66811 esac 66812 66813 done # for ac_tag 66814 66815 66816 as_fn_exit 0 66817 _ACEOF 66818 ac_clean_files=$ac_clean_files_save 66819 66820 test $ac_write_fail = 0 || 66821 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 66822 66823 66824 # configure is writing to config.log, and then calls config.status. 66825 # config.status does its own redirection, appending to config.log. 66826 # Unfortunately, on DOS this fails, as config.log is still kept open 66827 # by configure, so config.status won't be able to write to it; its 66828 # output is simply discarded. So we exec the FD to /dev/null, 66829 # effectively closing config.log, so it can be properly (re)opened and 66830 # appended to by config.status. When coming back to configure, we 66831 # need to make the FD available again. 66832 if test "$no_create" != yes; then 66833 ac_cs_success=: 66834 ac_config_status_args= 66835 test "$silent" = yes && 66836 ac_config_status_args="$ac_config_status_args --quiet" 66837 exec 5>/dev/null 66838 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 66839 exec 5>>config.log 66840 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 66841 # would make configure fail if this is the last instruction. 66842 $ac_cs_success || as_fn_exit 1 66843 fi 66844 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 66845 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 66846 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 66847 fi 66848 66849 66850 # After AC_OUTPUT, we need to do final work 66851 66852 66853 # Try to move config.log (generated by autoconf) to the configure-support directory. 66854 if test -e ./config.log; then 66855 $MV -f ./config.log "$CONFIGURESUPPORT_OUTPUTDIR/config.log" 2> /dev/null 66856 fi 66857 66858 # Rotate our log file (configure.log) 66859 if test -e "$OUTPUT_ROOT/configure.log.old"; then 66860 $RM -f "$OUTPUT_ROOT/configure.log.old" 66861 fi 66862 if test -e "$OUTPUT_ROOT/configure.log"; then 66863 $MV -f "$OUTPUT_ROOT/configure.log" "$OUTPUT_ROOT/configure.log.old" 2> /dev/null 66864 fi 66865 66866 # Move configure.log from current directory to the build output root 66867 if test -e ./configure.log; then 66868 $MV -f ./configure.log "$OUTPUT_ROOT/configure.log" 2> /dev/null 66869 fi 66870 66871 # Make the compare script executable 66872 $CHMOD +x $OUTPUT_ROOT/compare.sh 66873 66874 66875 # Finally output some useful information to the user 66876 66877 # Finally output some useful information to the user 66878 66879 printf "\n" 66880 printf "====================================================\n" 66881 if test "x$no_create" != "xyes"; then 66882 if test "x$IS_RECONFIGURE" != "xyes"; then 66883 printf "A new configuration has been successfully created in\n%s\n" "$OUTPUT_ROOT" 66884 else 66885 printf "The existing configuration has been successfully updated in\n%s\n" "$OUTPUT_ROOT" 66886 fi 66887 else 66888 if test "x$IS_RECONFIGURE" != "xyes"; then 66889 printf "A configuration has been successfully checked but not created\n" 66890 else 66891 printf "The existing configuration has been successfully checked in\n%s\n" "$OUTPUT_ROOT" 66892 fi 66893 fi 66894 if test "x$CONFIGURE_COMMAND_LINE" != x; then 66895 printf "using configure arguments '$CONFIGURE_COMMAND_LINE'.\n" 66896 else 66897 printf "using default settings.\n" 66898 fi 66899 66900 printf "\n" 66901 printf "Configuration summary:\n" 66902 printf "* Debug level: $DEBUG_LEVEL\n" 66903 printf "* HS debug level: $HOTSPOT_DEBUG_LEVEL\n" 66904 printf "* JDK variant: $JDK_VARIANT\n" 66905 printf "* JVM variants: $JVM_VARIANTS\n" 66906 printf "* OpenJDK target: OS: $OPENJDK_TARGET_OS, CPU architecture: $OPENJDK_TARGET_CPU_ARCH, address length: $OPENJDK_TARGET_CPU_BITS\n" 66907 printf "* Version string: $VERSION_STRING ($VERSION_SHORT)\n" 66908 66909 printf "\n" 66910 printf "Tools summary:\n" 66911 if test "x$OPENJDK_BUILD_OS" = "xwindows"; then 66912 printf "* Environment: $WINDOWS_ENV_VENDOR version $WINDOWS_ENV_VERSION (root at $WINDOWS_ENV_ROOT_PATH)\n" 66913 fi 66914 printf "* Boot JDK: $BOOT_JDK_VERSION (at $BOOT_JDK)\n" 66915 if test "x$TOOLCHAIN_VERSION" != "x"; then 66916 print_version=" $TOOLCHAIN_VERSION" 66917 fi 66918 printf "* Toolchain: $TOOLCHAIN_TYPE ($TOOLCHAIN_DESCRIPTION$print_version)\n" 66919 printf "* C Compiler: Version $CC_VERSION_NUMBER (at $CC)\n" 66920 printf "* C++ Compiler: Version $CXX_VERSION_NUMBER (at $CXX)\n" 66921 66922 printf "\n" 66923 printf "Build performance summary:\n" 66924 printf "* Cores to use: $JOBS\n" 66925 printf "* Memory limit: $MEMORY_SIZE MB\n" 66926 if test "x$CCACHE_STATUS" != "x"; then 66927 printf "* ccache status: $CCACHE_STATUS\n" 66928 fi 66929 printf "\n" 66930 66931 if test "x$BUILDING_MULTIPLE_JVM_VARIANTS" = "xtrue"; then 66932 printf "NOTE: You have requested to build more than one version of the JVM, which\n" 66933 printf "will result in longer build times.\n" 66934 printf "\n" 66935 fi 66936 66937 if test "x$FOUND_ALT_VARIABLES" != "x"; then 66938 printf "WARNING: You have old-style ALT_ environment variables set.\n" 66939 printf "These are not respected, and will be ignored. It is recommended\n" 66940 printf "that you clean your environment. The following variables are set:\n" 66941 printf "$FOUND_ALT_VARIABLES\n" 66942 printf "\n" 66943 fi 66944 66945 if test "x$OUTPUT_DIR_IS_LOCAL" != "xyes"; then 66946 printf "WARNING: Your build output directory is not on a local disk.\n" 66947 printf "This will severely degrade build performance!\n" 66948 printf "It is recommended that you create an output directory on a local disk,\n" 66949 printf "and run the configure script again from that directory.\n" 66950 printf "\n" 66951 fi 66952 66953 if test "x$IS_RECONFIGURE" = "xyes" && test "x$no_create" != "xyes"; then 66954 printf "WARNING: The result of this configuration has overridden an older\n" 66955 printf "configuration. You *should* run 'make clean' to make sure you get a\n" 66956 printf "proper build. Failure to do so might result in strange build problems.\n" 66957 printf "\n" 66958 fi 66959 66960 if test "x$IS_RECONFIGURE" != "xyes" && test "x$no_create" = "xyes"; then 66961 printf "WARNING: The result of this configuration was not saved.\n" 66962 printf "You should run without '--no-create | -n' to create the configuration.\n" 66963 printf "\n" 66964 fi 66965 66966 66967 66968 # Locate config.log. 66969 if test -e "$CONFIGURESUPPORT_OUTPUTDIR/config.log"; then 66970 CONFIG_LOG_PATH="$CONFIGURESUPPORT_OUTPUTDIR" 66971 elif test -e "./config.log"; then 66972 CONFIG_LOG_PATH="." 66973 fi 66974 66975 if test -e "$CONFIG_LOG_PATH/config.log"; then 66976 $GREP '^configure:.*: WARNING:' "$CONFIG_LOG_PATH/config.log" > /dev/null 2>&1 66977 if test $? -eq 0; then 66978 printf "The following warnings were produced. Repeated here for convenience:\n" 66979 # We must quote sed expression (using []) to stop m4 from eating the []. 66980 $GREP '^configure:.*: WARNING:' "$CONFIG_LOG_PATH/config.log" | $SED -e 's/^configure:[0-9]*: //' 66981 printf "\n" 66982 fi 66983 fi 66984